FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sauce.c File Reference

SAUCE header parser. More...

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

Go to the source code of this file.

Macros

#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.

Macro Definition Documentation

#define GET_SAUCE_META (   name,
  size 
)
Value:
if (avio_read(pb, buf, size) == size && buf[0]) { \
buf[size] = 0; \
av_dict_set(&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
avctxAVFormatContext
[out]fsizereturn length of file, less SAUCE header
[out]got_widthset to non-zero if SAUCE header reported height
get_heightTell SAUCE header to parse height

Definition at line 32 of file sauce.c.

Referenced by read_header().