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
const char * name
Definition: avisynth_c.h:867
buf
void * buf
Definition: avisynth_c.h:766
size
int size
Definition: twinvq_data.h:11134
avio_read
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
Definition: aviobuf.c:647