|
FFmpeg
|
#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 |
| printf | ( | ) |
| write_uint8_t_array | ( | my_array | , |
| 100 | |||
| ) |
| printf | ( | "};\n" | ) |
| WRITE_ARRAY | ( | "static const" | , |
| uint8_t | , | ||
| my_array | |||
| ) |
Referenced by main().
| write_fileheader | ( | ) |
Definition at line 39 of file tablegen.txt.
Referenced by main(), and WRITE_1D_FUNC_ARGV().
| 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().
| 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 aptx_invert_quantization(), aptx_process_subband(), aptx_quantize_difference(), compile(), decode_significance_8x8_loongarch(), decode_significance_loongarch(), ff_rtp_send_jpeg(), ff_sws_op_compile_tables(), get_cabac_inline_loongarch(), get_cabac_inline_mips(), and truemotion1_decode_header().
| 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().
Definition at line 45 of file tablegen.txt.
Referenced by check_size(), and demux_audio().
| 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.
| 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.
| 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.
| 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.
| 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 |
Definition at line 66 of file tablegen.txt.
Referenced by adaptive_cb_search(), do_hybrid_window(), ff_interp(), filter_slice(), find_best_vect(), fir_to_phase(), fixed_cb_search(), get_match_score(), and ra144_encode_subblock().
1.8.17