FFmpeg
Macros | Functions | Variables
tableprint_vlc.h File Reference
#include "tableprint.h"
#include "vlc.h"
#include "libavutil/reverse.c"
#include "vlc.c"

Go to the source code of this file.

Macros

#define AVUTIL_LOG_H
 
#define av_log(a, ...)   while(0)
 
#define ff_dlog(a, ...)   while(0)
 
#define AVUTIL_MEM_H
 
#define av_malloc(s)   NULL
 
#define av_malloc_array(a, b)   NULL
 
#define av_realloc_f(p, o, n)   NULL
 
#define av_free(p)   while(0)
 
#define av_freep(p)   while(0)
 
#define AVUTIL_INTERNAL_H
 
#define avpriv_request_sample(...)
 
#define WRITE_VLC_TABLE(prefix, name)   WRITE_ARRAY(prefix, VLCElem, name)
 
#define WRITE_VLC_TYPE(prefix, name, base_table)
 
#define WRITE_VLC_ARRAY(prefix, name, base_table)
 

Functions

 WRITE_1D_FUNC_ARGV (VLCElem, 3, "{ .sym =%5" PRId16 ", .len =%2"PRIi16 " }", data[i].sym, data[i].len) static void write_vlc_type(const VLC *vlc
 
 printf (" .table = (VLCElem *)(%s + 0x%x),\n", base_table_name,(int)(vlc->table - base_table))
 
 printf (" .table_size = 0x%x,\n", vlc->table_size)
 

Variables

const VLCElembase_table
 
const VLCElem const char * base_table_name
 

Macro Definition Documentation

◆ AVUTIL_LOG_H

#define AVUTIL_LOG_H

Definition at line 26 of file tableprint_vlc.h.

◆ av_log

#define av_log (   a,
  ... 
)    while(0)

◆ ff_dlog

#define ff_dlog (   a,
  ... 
)    while(0)

Definition at line 28 of file tableprint_vlc.h.

◆ AVUTIL_MEM_H

#define AVUTIL_MEM_H

Definition at line 29 of file tableprint_vlc.h.

◆ av_malloc

#define av_malloc (   s)    NULL
Examples
avio_reading.c, hw_decode.c, and qsv_transcode.c.

Definition at line 30 of file tableprint_vlc.h.

◆ av_malloc_array

#define av_malloc_array (   a,
  b 
)    NULL
Examples
transcoding.c.

Definition at line 31 of file tableprint_vlc.h.

◆ av_realloc_f

#define av_realloc_f (   p,
  o,
 
)    NULL

Definition at line 32 of file tableprint_vlc.h.

◆ av_free

#define av_free (   p)    while(0)
Examples
decode_audio.c, demuxing_decoding.c, and transcoding.c.

Definition at line 33 of file tableprint_vlc.h.

◆ av_freep

#define av_freep (   p)    while(0)

◆ AVUTIL_INTERNAL_H

#define AVUTIL_INTERNAL_H

Definition at line 35 of file tableprint_vlc.h.

◆ avpriv_request_sample

#define avpriv_request_sample (   ...)

Definition at line 36 of file tableprint_vlc.h.

◆ WRITE_VLC_TABLE

#define WRITE_VLC_TABLE (   prefix,
  name 
)    WRITE_ARRAY(prefix, VLCElem, name)

Definition at line 55 of file tableprint_vlc.h.

◆ WRITE_VLC_TYPE

#define WRITE_VLC_TYPE (   prefix,
  name,
  base_table 
)
Value:
do { \
printf(prefix" VLC "#name" = {\n"); \
write_vlc_type(&name, base_table, #base_table); \
printf("};\n"); \
} while(0)

Definition at line 58 of file tableprint_vlc.h.

◆ WRITE_VLC_ARRAY

#define WRITE_VLC_ARRAY (   prefix,
  name,
  base_table 
)
Value:
do { \
int i; \
const size_t array_size = FF_ARRAY_ELEMS(name); \
printf(prefix" VLC "#name"[%"FMT"] = {{\n", \
array_size); \
for (i = 0; i < array_size; i++) { \
write_vlc_type(name + i, \
if (i != array_size - 1) printf("}, {\n"); \
} \
printf("}};\n"); \
} while(0)

Definition at line 65 of file tableprint_vlc.h.

Function Documentation

◆ WRITE_1D_FUNC_ARGV()

WRITE_1D_FUNC_ARGV ( VLCElem  ,
,
"{ .sym =%5" PRId16 ", .len =%2"PRIi16 " }"  ,
data.  sym[i],
data.  len[i] 
) const

◆ printf() [1/2]

printf ( " .  table = (VLCElem *)(%s + 0x%x),
\n"  ,
base_table_name  ,
(int)(vlc->table - base_table  
)

◆ printf() [2/2]

printf ( " .  table_size = 0x%x,
\n"  ,
vlc->  table_size 
)

Variable Documentation

◆ base_table

const VLCElem* base_table

Definition at line 46 of file tableprint_vlc.h.

◆ base_table_name

const VLCElem const char* base_table_name
Initial value:
{
printf(" .bits = %i,\n", vlc->bits)

Definition at line 47 of file tableprint_vlc.h.

name
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
Definition: writing_filters.txt:88
base_table
const VLCElem * base_table
Definition: tableprint_vlc.h:46
printf
printf(" .table = (VLCElem *)(%s + 0x%x),\n", base_table_name,(int)(vlc->table - base_table))
FF_ARRAY_ELEMS
#define FF_ARRAY_ELEMS(a)
Definition: sinewin_tablegen.c:29
FMT
#define FMT
Definition: tableprint.h:82
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:269