FFmpeg
Functions | Variables
doc/tablegen.txt File Reference
#include "libavcodec/example_tables.h"
#include "example_tables.h"

Functions

 printf ("static const uint8_t my_array[100] = {\n")
 
 write_uint8_t_array (my_array, 100)
 
 printf ("};\n")
 
 WRITE_ARRAY ("static const", uint8_t, my_array)
 
 write_fileheader () adds some minor things like a "this is a generated file" comment and some standard includes. tablegen.h defines some write functions for one- and two-dimensional arrays for standard types - they print only the "core" parts so they are easier to reuse for multi-dimensional arrays so the outermost
 

Variables

Writing a table generator This documentation is preliminary Parts of the API are not good and should be changed Basic concepts A table generator consists of two files
 
Writing a table generator This documentation is preliminary Parts of the API are not good and should be changed Basic concepts A table generator consists of two *_tablegen c and *_tablegen h The h file will provide the variable declarations and initialization code for the tables
 
This is the more generic form
 
must be printed separately If there s no standard function for printing the type you need
 
must be printed separately If there s no standard function for printing the type you the WRITE_1D_FUNC_ARGV macro is a very quick way to create one See libavcodec dv_tablegen c for an example The h file This file should contain
 
must be printed separately If there s no standard function for printing the type you the WRITE_1D_FUNC_ARGV macro is a very quick way to create one See libavcodec dv_tablegen c for an example The h file This file should the initialization functions should not do anything
 
must be printed separately If there s no standard function for printing the type you the WRITE_1D_FUNC_ARGV macro is a very quick way to create one See libavcodec dv_tablegen c for an example The h file This file should the initialization functions should not do and instead of the variable declarations the generated *_tables h file should be included Since that will be generated in the build directory
 
must be printed separately If there s no standard function for printing the type you the WRITE_1D_FUNC_ARGV macro is a very quick way to create one See libavcodec dv_tablegen c for an example The h file This file should the initialization functions should not do and instead of the variable declarations the generated *_tables h file should be included Since that will be generated in the build the path must be included
 
must be printed separately If there s no standard function for printing the type you the WRITE_1D_FUNC_ARGV macro is a very quick way to create one See libavcodec dv_tablegen c for an example The h file This file should the initialization functions should not do and instead of the variable declarations the generated *_tables h file should be included Since that will be generated in the build the path must be i e not Makefile changes To make the automatic table creation work
 

Function Documentation

◆ printf() [1/2]

printf ( )
Examples
avio_reading.c, decode_video.c, demuxing_decoding.c, encode_video.c, ffhash.c, http_multiclient.c, metadata.c, muxing.c, remuxing.c, and resampling_audio.c.

Referenced by ARRAY_RENAME(), audio_decode_frame(), bench_init(), bench_init_ffmpeg(), check(), check_func(), close_out(), compact_print_int(), compact_print_section_footer(), compact_print_section_header(), compact_print_str(), compare_crc_in_array(), compute_crc_of_packets(), dct_error(), decode(), decode_packet(), default_print_int(), default_print_section_footer(), default_print_section_header(), default_print_str(), display_integral(), do_exit(), doTest(), dump_video_streams(), encode(), failing_deinit(), fileTest(), finish(), flat_print_int(), flat_print_str(), help(), idct248_error(), ini_print_int(), ini_print_section_header(), ini_print_str(), io_write_data_type(), json_print_int(), json_print_item_str(), json_print_section_footer(), json_print_section_header(), json_print_str(), log_packet(), main(), opt_init_hw_device(), opt_sections(), print_audio_bytes(), print_benchs(), print_codec(), print_codecs(), print_codecs_for_id(), print_cpu_flags(), print_data(), print_dict(), print_help(), print_matrix(), print_md5(), print_option(), print_pix_fmt_fourccs(), print_results(), print_sdp(), print_section(), print_sequence(), printval(), queue_picture(), read_packet(), run_implementation(), run_psnr(), run_single_test(), run_test(), selfTest(), show_bsfs(), show_codec_opts(), show_codecs(), show_colors(), show_filters(), show_format_opts(), show_formats_devices(), show_help_bsf(), show_help_children(), show_help_default(), show_help_demuxer(), show_help_muxer(), show_help_options(), show_hwaccels(), show_layouts(), show_license(), show_opts(), show_pix_fmts(), show_protocols(), show_sample_fmts(), test(), test_av_find_info_tag(), test_av_get_known_color_name(), test_av_parse_color(), test_av_parse_time(), test_av_parse_video_rate(), test_av_small_strptime(), test_blowfish(), test_copy(), test_copy_print_codec(), test_dwt(), test_dwtf(), test_encode_decode(), test_encrypt(), test_function(), test_motion(), test_random_shared_secret(), test_ref_data(), test_separators(), test_tea(), test_xtea(), update_co64_offsets(), update_moov_atom(), update_stco_offsets(), usage(), video_decode_example(), WRITE_1D_FUNC_ARGV(), write_fileheader(), write_vlc_type(), xml_print_int(), xml_print_section_footer(), xml_print_section_header(), and xml_print_str().

◆ write_uint8_t_array()

write_uint8_t_array ( my_array  ,
100   
)

◆ printf() [2/2]

printf ( "};\n"  )

◆ WRITE_ARRAY()

WRITE_ARRAY ( "static const"  ,
uint8_t  ,
my_array   
)

Referenced by main().

◆ write_fileheader()

write_fileheader ( )

Definition at line 39 of file tablegen.txt.

Referenced by main(), and WRITE_1D_FUNC_ARGV().

Variable Documentation

◆ files

Writing a table generator This documentation is preliminary Parts of the API are not good and should be changed Basic concepts A table generator consists of two files

Definition at line 8 of file tablegen.txt.

Referenced by real_seek().

◆ tables

Writing a table generator This documentation is preliminary Parts of the API are not good and should be changed Basic concepts A table generator consists of two * _tablegen c and* _tablegen h The h file will provide the variable declarations and initialization code for the tables

Definition at line 10 of file tablegen.txt.

Referenced by ff_rtp_send_jpeg(), get_cabac_inline(), and truemotion1_decode_header().

◆ form

This is the more generic in case you need to do something special Usually you should instead use the short form

Definition at line 34 of file tablegen.txt.

Referenced by find_form_factor().

◆ need

must be printed separately If there s no standard function for printing the type you need

Definition at line 45 of file tablegen.txt.

Referenced by check_size(), and demux_audio().

◆ contain

must be printed separately If there s no standard function for printing the type you the WRITE_1D_FUNC_ARGV macro is a very quick way to create one See libavcodec dv_tablegen c for an example The h file This file should contain

Definition at line 55 of file tablegen.txt.

◆ anything

must be printed separately If there s no standard function for printing the type you the WRITE_1D_FUNC_ARGV macro is a very quick way to create one See libavcodec dv_tablegen c for an example The h file This file should the initialization functions should not do anything

Definition at line 56 of file tablegen.txt.

◆ directory

must be printed separately If there s no standard function for printing the type you the WRITE_1D_FUNC_ARGV macro is a very quick way to create one See libavcodec dv_tablegen c for an example The h file This file should the initialization functions should not do and instead of the variable declarations the generated* _tables h file should be included Since that will be generated in the build directory

Definition at line 58 of file tablegen.txt.

◆ included

must be printed separately If there s no standard function for printing the type you the WRITE_1D_FUNC_ARGV macro is a very quick way to create one See libavcodec dv_tablegen c for an example The h file This file should the initialization functions should not do and instead of the variable declarations the generated* _tables h file should be included Since that will be generated in the build the path must be included

Definition at line 59 of file tablegen.txt.

◆ work

must be printed separately If there s no standard function for printing the type you the WRITE_1D_FUNC_ARGV macro is a very quick way to create one See libavcodec dv_tablegen c for an example The h file This file should the initialization functions should not do and instead of the variable declarations the generated* _tables h file should be included Since that will be generated in the build the path must be i e not Makefile changes To make the automatic table creation work