FFmpeg
 All Data Structures Namespaces 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); \
}
ptrdiff_t size
Definition: opengl_enc.c:101
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
Definition: aviobuf.c:616
void * buf
Definition: avisynth_c.h:690
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:70
const char * name
Definition: opengl_enc.c:103

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().