FFmpeg
Macros | Functions
tableprint_vlc.h File Reference
#include "tableprint.h"
#include "get_bits.h"
#include "mathtables.c"
#include "libavutil/reverse.c"
#include "bitstream.c"

Go to the source code of this file.

Macros

#define FFMPEG_CONFIG_H
 
#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 REPLACE_DEFINE2(type)   write_##type##_array
 
#define REPLACE_DEFINE(type)   REPLACE_DEFINE2(type)
 
#define WRITE_VLC_TYPE(prefix, name, base_table)
 
#define WRITE_VLC_ARRAY(prefix, name, base_table)
 

Functions

static void write_VLC_TYPE_array (const VLC_TYPE *p, int s)
 
static void write_vlc_type (const VLC *vlc, VLC_TYPE(*base_table)[2], const char *base_table_name)
 

Macro Definition Documentation

◆ FFMPEG_CONFIG_H

#define FFMPEG_CONFIG_H

Definition at line 26 of file tableprint_vlc.h.

◆ AVUTIL_LOG_H

#define AVUTIL_LOG_H

Definition at line 27 of file tableprint_vlc.h.

◆ av_log

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

◆ ff_dlog

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

Definition at line 29 of file tableprint_vlc.h.

◆ AVUTIL_MEM_H

#define AVUTIL_MEM_H

Definition at line 30 of file tableprint_vlc.h.

◆ av_malloc

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

Definition at line 31 of file tableprint_vlc.h.

◆ av_malloc_array

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

Definition at line 32 of file tableprint_vlc.h.

◆ av_realloc_f

#define av_realloc_f (   p,
  o,
 
)    NULL

Definition at line 33 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 34 of file tableprint_vlc.h.

◆ av_freep

#define av_freep (   p)    while(0)

◆ AVUTIL_INTERNAL_H

#define AVUTIL_INTERNAL_H

Definition at line 36 of file tableprint_vlc.h.

◆ avpriv_request_sample

#define avpriv_request_sample (   ...)

Definition at line 37 of file tableprint_vlc.h.

◆ REPLACE_DEFINE2

#define REPLACE_DEFINE2 (   type)    write_##type##_array

Definition at line 44 of file tableprint_vlc.h.

◆ REPLACE_DEFINE

#define REPLACE_DEFINE (   type)    REPLACE_DEFINE2(type)

Definition at line 45 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 61 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, \
base_table, #base_table); \
if (i != array_size - 1) printf("}, {\n"); \
} \
printf("}};\n"); \
} while(0)

Definition at line 68 of file tableprint_vlc.h.

Function Documentation

◆ write_VLC_TYPE_array()

static void write_VLC_TYPE_array ( const VLC_TYPE p,
int  s 
)
static

Definition at line 46 of file tableprint_vlc.h.

◆ write_vlc_type()

static void write_vlc_type ( const VLC vlc,
VLC_TYPE(*)  base_table[2],
const char *  base_table_name 
)
static

Definition at line 52 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
FF_ARRAY_ELEMS
#define FF_ARRAY_ELEMS(a)
Definition: sinewin_tablegen.c:29
FMT
#define FMT
Definition: tableprint.h:82
printf
printf("static const uint8_t my_array[100] = {\n")
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:271