libavformat/sauce.c File Reference

SAUCE header parser. More...

#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "sauce.h"

Go to the source code of this file.

Defines

#define GET_SAUCE_META(name, size)

Functions

int ff_sauce_read (AVFormatContext *avctx, uint64_t *fsize, int *got_width, int get_height)


Detailed Description

SAUCE header parser.

Definition in file sauce.c.


Define Documentation

#define GET_SAUCE_META ( name,
size   ) 

Value:

if (avio_read(pb, buf, size) == size && buf[0]) { \
        buf[size] = 0; \
        av_metadata_set2(&avctx->metadata, name, buf, 0); \
    }

Referenced by ff_sauce_read().


Function Documentation

int ff_sauce_read ( AVFormatContext avctx,
uint64_t *  fsize,
int *  got_width,
int  get_height 
)

Parameters:
avctx AVFormatContext
[out] fsize return length of file, less SAUCE header
[out] got_width set to non-zero if SAUCE header reported height
get_height Tell SAUCE header to parse height

Definition at line 31 of file sauce.c.

Referenced by read_header().


Generated on Mon May 2 19:50:28 2011 for FFmpeg by  doxygen 1.5.6