#include <inttypes.h>
#include <stdio.h>
#include "libavutil/common.h"
Go to the source code of this file.
Defines |
#define | WRITE_1D_FUNC_ARGV(type, linebrk, fmtstr,...) |
#define | WRITE_1D_FUNC(type, fmtstr, linebrk) WRITE_1D_FUNC_ARGV(type, linebrk, fmtstr, data[i]) |
#define | WRITE_2D_FUNC(type) |
#define | WRITE_ARRAY(prefix, type, name) |
#define | WRITE_2D_ARRAY(prefix, type, name) |
Functions |
static void | write_fileheader (void) |
|
|
void | write_int8_t_array (const int8_t *, int) |
void | write_uint8_t_array (const uint8_t *, int) |
void | write_uint16_t_array (const uint16_t *, int) |
void | write_uint32_t_array (const uint32_t *, int) |
void | write_float_array (const float *, int) |
void | write_int8_t_2d_array (const void *, int, int) |
void | write_uint8_t_2d_array (const void *, int, int) |
void | write_uint32_t_2d_array (const void *, int, int) |
void | write_float_2d_array (const void *, int, int) |
Define Documentation
#define WRITE_1D_FUNC |
( |
|
type, |
|
|
|
fmtstr, |
|
|
|
linebrk | |
|
) |
| | WRITE_1D_FUNC_ARGV(type, linebrk, fmtstr, data[i]) |
#define WRITE_1D_FUNC_ARGV |
( |
|
type, |
|
|
|
linebrk, |
|
|
|
fmtstr, |
|
|
|
... | |
|
) |
| | |
Value:void write_##type##_array(const type *data, int len)\
{\
int i;\
printf(" ");\
for (i = 0; i < len - 1; i++) {\
printf(" "fmtstr",", __VA_ARGS__);\
if ((i & linebrk) == linebrk) printf("\n ");\
}\
printf(" "fmtstr"\n", __VA_ARGS__);\
}
Definition at line 31 of file tableprint.h.
#define WRITE_2D_ARRAY |
( |
|
prefix, |
|
|
|
type, |
|
|
|
name | |
|
) |
| | |
#define WRITE_2D_FUNC |
( |
|
type |
) |
|
Value:void write_##type##_2d_array(const void *arg, int len, int len2)\
{\
const type *data = arg;\
int i;\
printf(" {\n");\
for (i = 0; i < len; i++) {\
write_##type##_array(data + i * len2, len2);\
printf(i == len - 1 ? " }\n" : " }, {\n");\
}\
}
Definition at line 46 of file tableprint.h.
#define WRITE_ARRAY |
( |
|
prefix, |
|
|
|
type, |
|
|
|
name | |
|
) |
| | |
Function Documentation
static void write_fileheader |
( |
void |
|
) |
[inline, static] |
void write_float_2d_array |
( |
const void * |
, |
|
|
int |
, |
|
|
int |
| |
|
) |
| | |
void write_float_array |
( |
const float * |
, |
|
|
int |
| |
|
) |
| | |
void write_int8_t_2d_array |
( |
const void * |
, |
|
|
int |
, |
|
|
int |
| |
|
) |
| | |
void write_int8_t_array |
( |
const int8_t * |
, |
|
|
int |
| |
|
) |
| | |
void write_uint16_t_array |
( |
const uint16_t * |
, |
|
|
int |
| |
|
) |
| | |
void write_uint32_t_2d_array |
( |
const void * |
, |
|
|
int |
, |
|
|
int |
| |
|
) |
| | |
void write_uint32_t_array |
( |
const uint32_t * |
, |
|
|
int |
| |
|
) |
| | |
void write_uint8_t_2d_array |
( |
const void * |
, |
|
|
int |
, |
|
|
int |
| |
|
) |
| | |
void write_uint8_t_array |
( |
const uint8_t * |
, |
|
|
int |
| |
|
) |
| | |