sauce.c File Reference

SAUCE header parser. More...

#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "sauce.h"
Include dependency graph for sauce.c:

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); \
}
const char * name
Definition: avisynth_c.h:675
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
Definition: aviobuf.c:478
int size
void * buf
Definition: avisynth_c.h:594
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
Definition: dict.c:62

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 init_stream(), and read_header().