libavformat/metadata_compat.c File Reference

#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)
#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 Documentation

#define FILL_METADATA ( s,
key,
value   ) 

Value:

{                                        \
    if (!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 116 of file metadata_compat.c.

Referenced by ff_metadata_mux_compat().

#define FILL_METADATA_STR ( s,
key   ) 

Value:

{                                           \
    if (s->key && *s->key)  FILL_METADATA(s, key, s->key); }

Definition at line 114 of file metadata_compat.c.

Referenced by ff_metadata_mux_compat().

#define SIZE_OFFSET (  )     sizeof(((AVFormatContext*)0)->x),offsetof(AVFormatContext,x)

Definition at line 28 of file metadata_compat.c.


Function Documentation

void ff_metadata_demux_compat ( AVFormatContext ctx  ) 

Definition at line 59 of file metadata_compat.c.

Referenced by av_open_input_stream().

void ff_metadata_mux_compat ( AVFormatContext ctx  ) 

Definition at line 121 of file metadata_compat.c.

Referenced by avformat_write_header().


Variable Documentation

struct { ... } compat_tab[] [static]

const char name[16]

Definition at line 31 of file metadata_compat.c.

int offset

Definition at line 33 of file metadata_compat.c.

int size

Definition at line 32 of file metadata_compat.c.


Generated on Fri Oct 26 02:38:20 2012 for FFmpeg by  doxygen 1.5.8