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_http_serve_files.c, avio_read_callback.c, decode_audio.c, decode_video.c, demux_decode.c, encode_video.c, extract_mvs.c, ffhash.c, mux.c, remux.c, resample_audio.c, and show_metadata.c.

Referenced by ARRAY_RENAME(), audio_decode_frame(), bench_init(), bench_init_ffmpeg(), check(), check_asset_locator_attributes(), check_func(), check_yuv2yuv1(), check_yuv2yuvX(), close_out(), compare_crc_in_array(), compute_crc_of_packets(), dct_error(), decode(), decode_packet(), dict_iterate(), display_integral(), do_exit(), doTest(), encode(), failing_deinit(), fileTest(), find_best_wrapper(), finish(), help(), idct248_error(), io_write_data_type(), log_packet(), main(), opt_init_hw_device(), opt_sections(), output_audio_frame(), output_video_frame(), print_audio_bytes(), print_benchs(), print_codec(), print_codecs(), print_codecs_for_id(), print_cpu_flags(), print_data(), print_dict(), print_formats_internal(), print_help(), print_matrix(), print_md5(), print_option(), print_pix_fmt_fourccs(), print_results(), print_sdp(), print_section(), print_sequence(), printval(), queue_picture(), read_cb(), read_packet(), run_implementation(), run_psnr(), run_single_test(), run_test(), selfTest(), show_bsfs(), show_codec_opts(), show_codecs(), show_colors(), show_differences(), show_dispositions(), 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(), test2(), test_asset_map_parsing(), 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_bad_cpl_parsing(), test_blowfish(), test_broadcast_input0(), test_broadcast_input1(), test_cpl_parsing(), test_decompose(), test_dwt(), test_dwtf(), test_encode_decode(), test_encrypt(), test_function(), test_motion(), test_no_broadcast(), test_random_shared_secret(), test_ref_data(), test_separators(), test_tea(), test_with_mode_constant(), test_with_mode_reflect(), test_with_mode_symmetric(), test_with_same(), test_with_same_dilate(), test_with_valid(), test_xtea(), update_co64_offsets(), update_moov_atom(), update_stco_offsets(), usage(), video_decode_example(), WRITE_1D_FUNC_ARGV(), write_fileheader(), writer_put_str_printf(), and writer_w8_printf().

◆ 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

◆ 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