FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vp9_parser.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavcodec/get_bits.h"
#include "parser.h"

Go to the source code of this file.

Data Structures

struct  VP9ParseContext
 

Macros

#define case_n(a, rd)
 

Functions

static int parse_frame (AVCodecParserContext *ctx, const uint8_t *buf, int size)
 
static int parse (AVCodecParserContext *ctx, AVCodecContext *avctx, const uint8_t **out_data, int *out_size, const uint8_t *data, int size)
 

Variables

AVCodecParser ff_vp9_parser
 

Macro Definition Documentation

#define case_n (   a,
  rd 
)
Value:
case a: \
while (n_frames--) { \
unsigned sz = rd; \
idx += a; \
if (sz == 0 || sz > size) { \
s->n_frames = 0; \
*out_size = size; \
*out_data = data; \
"Invalid superframe packet size: %u frame size: %d\n", \
sz, size); \
return full_size; \
} \
if (first) { \
first = 0; \
*out_data = data; \
*out_size = sz; \
s->n_frames = n_frames; \
} else { \
s->size[n_frames] = sz; \
} \
data += sz; \
size -= sz; \
} \
s->marker_size = size; \
parse_frame(ctx, *out_data, *out_size); \
return s->n_frames > 0 ? *out_size : full_size
const char * s
Definition: avisynth_c.h:768
ptrdiff_t const GLvoid * data
Definition: opengl_enc.c:101
int out_size
Definition: movenc.c:55
ptrdiff_t size
Definition: opengl_enc.c:101
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176
return
AVFormatContext * ctx
Definition: movenc.c:48
static int parse_frame(AVCodecParserContext *ctx, const uint8_t *buf, int size)
Definition: vp9_parser.c:35
if(ret< 0)
Definition: vf_mcdeint.c:282

Referenced by parse().

Function Documentation

static int parse_frame ( AVCodecParserContext ctx,
const uint8_t buf,
int  size 
)
static

Definition at line 35 of file vp9_parser.c.

Referenced by parse().

static int parse ( AVCodecParserContext ctx,
AVCodecContext avctx,
const uint8_t **  out_data,
int out_size,
const uint8_t data,
int  size 
)
static

Definition at line 76 of file vp9_parser.c.

Variable Documentation

AVCodecParser ff_vp9_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_VP9 },
.priv_data_size = sizeof(VP9ParseContext),
.parser_parse = parse,
}
static int parse(AVCodecParserContext *ctx, AVCodecContext *avctx, const uint8_t **out_data, int *out_size, const uint8_t *data, int size)
Definition: vp9_parser.c:76

Definition at line 169 of file vp9_parser.c.