FFmpeg
Macros | Functions
sauce.c File Reference
#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

◆ GET_SAUCE_META

#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); \
}

Function Documentation

◆ ff_sauce_read()

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

name
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
Definition: writing_filters.txt:88
size
int size
Definition: twinvq_data.h:10344
avio_read
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
Definition: aviobuf.c:611