#include <strings.h>
#include "avformat.h"
#include "metadata.h"
#include "libavutil/avstring.h"
Go to the source code of this file.
Defines | |
#define | SIZE_OFFSET(x) sizeof(((AVFormatContext*)0)->x),offsetof(AVFormatContext,x) |
#define | FILL_METADATA(s, key, value) |
#define | FILL_METADATA_STR(s, key) FILL_METADATA(s, key, s->key) |
#define | FILL_METADATA_INT(s, key) |
Functions | |
void | ff_metadata_demux_compat (AVFormatContext *ctx) |
void | ff_metadata_mux_compat (AVFormatContext *ctx) |
Variables | |
struct { | |
const char name [16] | |
int size | |
int offset | |
} | compat_tab [] |
#define FILL_METADATA | ( | s, | |||
key, | |||||
value | ) |
Value:
{ \ if (value && *value && !av_metadata_get(s->metadata, #key, NULL, 0)) \ av_metadata_set2(&s->metadata, #key, value, 0); \ }
Definition at line 110 of file metadata_compat.c.
#define FILL_METADATA_INT | ( | s, | |||
key | ) |
Value:
{ \ char number[10]; \ snprintf(number, sizeof(number), "%d", s->key); \ if(s->key) FILL_METADATA(s, key, number) }
Definition at line 115 of file metadata_compat.c.
Referenced by ff_metadata_mux_compat().
#define FILL_METADATA_STR | ( | s, | |||
key | ) | FILL_METADATA(s, key, s->key) |
#define SIZE_OFFSET | ( | x | ) | sizeof(((AVFormatContext*)0)->x),offsetof(AVFormatContext,x) |
Definition at line 28 of file metadata_compat.c.
void ff_metadata_demux_compat | ( | AVFormatContext * | ctx | ) |
void ff_metadata_mux_compat | ( | AVFormatContext * | ctx | ) |
struct { ... } compat_tab[] [static] |
Referenced by ff_metadata_demux_compat().
const char name[16] |
Definition at line 31 of file metadata_compat.c.
int offset |
Definition at line 33 of file metadata_compat.c.
Referenced by adpcm_decode_frame(), adx_decode_header(), adx_encode_header(), aiff_read_header(), alloc_and_copy(), altivec_packIntArrayToCharArray(), apply_window_and_mdct(), av_estimate_timings_from_pts(), aw_parse_coords(), bfi_decode_frame(), bitplane_decoding(), chroma_4mv_motion(), chroma_4mv_motion_lowres(), cin_decode_lzss(), compute_pkt_fields(), cook_decode_frame(), decode_blockcode(), decode_blocks(), decode_bytes_and_gain(), decode_decorrelation_matrix(), decode_fixed_sparse(), decode_frame(), decode_init(), decode_scalefactors(), decode_subframe(), decode_tilehdr(), denoise_dct_mmx(), denoise_dct_sse2(), dnxhd_encode_picture(), dnxhd_init_vlc(), dnxhd_setup_threads_slices(), do_a_deblock_TMPL(), dv_frame_offset(), dv_read_seek(), encode_block(), encode_frame(), encode_init(), ff_asf_parse_packet(), ff_copy_pce_data(), ff_draw_horiz_band(), ff_h264_decode_init_vlc(), ff_h264_filter_mb(), ff_mpa_synth_filter(), ff_mspel_motion(), ff_rtmp_packet_read(), ff_rv34_decode_frame(), ff_svq3_luma_dc_dequant_idct_c(), filter(), fixup_vorbis_headers(), flv_read_header(), get_intra_count(), get_p_cbp(), gmc1_motion(), h263_mv4_search(), h264_luma_dc_dequant_idct_c(), h_block_filter(), init_ref(), matroska_execute_seekhead(), matroska_parse_block(), matroska_read_header(), motion_search(), mov_probe(), mov_read_trun(), mp_read_changes_map(), mpeg4_encode_mb(), oggvorbis_encode_init(), postProcess_TMPL(), ptx_decode_frame(), qdm2_fft_decode_tones(), qdm2_fft_tone_synthesizer(), radix_count(), read_braindead_odml_indx(), read_frame_data(), read_uncompressed_sgi(), read_var_block_data(), rpl_read_header(), rv10_decode_frame(), seq_decode_op3(), svq1_decode_init(), svq1_encode_plane(), svq3_decode_init(), tgv_decode_inter(), unpack(), v_block_filter(), vorbis_floor1_decode(), vp3_draw_horiz_band(), vp56_get_vectors_predictors(), x11grab_read_header(), x8_vlc_init(), and yuv2yuvX_altivec_real().
int size |
Definition at line 32 of file metadata_compat.c.