#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) |
Predefined functions for printing tables | |
| 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 WRITE_1D_FUNC | ( | type, | |||
| fmtstr, | |||||
| linebrk | ) | WRITE_1D_FUNC_ARGV(type, linebrk, fmtstr, data[i]) |
Definition at line 43 of file tableprint.h.
| #define WRITE_1D_FUNC_ARGV | ( | type, | |||
| linebrk, | |||||
| fmtstr, | |||||
| ... | ) |
| #define WRITE_2D_ARRAY | ( | prefix, | |||
| type, | |||||
| name | ) |
Value:
do { \ const size_t array_size1 = FF_ARRAY_ELEMS(name); \ const size_t array_size2 = FF_ARRAY_ELEMS(name[0]); \ printf(prefix" "#type" "#name"[%zu][%zu] = {\n", \ array_size1, array_size2 ); \ write_##type##_2d_array(name, array_size1, array_size2); \ printf("};\n"); \ } while(0)
Definition at line 83 of file tableprint.h.
Referenced by main().
| #define WRITE_2D_FUNC | ( | type | ) |
| #define WRITE_ARRAY | ( | prefix, | |||
| type, | |||||
| name | ) |
Value:
do { \ const size_t array_size = FF_ARRAY_ELEMS(name); \ printf(prefix" "#type" "#name"[%zu] = {\n", \ array_size); \ write_##type##_array(name, array_size); \ printf("};\n"); \ } while(0)
Definition at line 74 of file tableprint.h.
Referenced by main().
| static void write_fileheader | ( | void | ) | [inline, static] |
Referenced by write_float_3d_array().
| void write_int8_t_array | ( | const int8_t * | , | |
| int | ||||
| ) |
| void write_uint16_t_array | ( | const uint16_t * | , | |
| int | ||||
| ) |
| void write_uint32_t_array | ( | const uint32_t * | , | |
| int | ||||
| ) |
1.5.8