Data Structures | Functions | Variables
mpeg4_unpack_bframes_bsf.c File Reference
#include "avcodec.h"
#include "bsf.h"
#include "internal.h"
#include "mpeg4video.h"

Go to the source code of this file.

Data Structures

struct  UnpackBFramesBSFContext


static void scan_buffer (const uint8_t *buf, int buf_size, int *pos_p, int *nb_vop, int *pos_vop2)
static int mpeg4_unpack_bframes_filter (AVBSFContext *ctx, AVPacket *pkt)
static int mpeg4_unpack_bframes_init (AVBSFContext *ctx)
static void mpeg4_unpack_bframes_close_flush (AVBSFContext *bsfc)


static enum AVCodecID codec_ids []
const AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf

Function Documentation

static void scan_buffer ( const uint8_t buf,
int  buf_size,
int pos_p,
int nb_vop,
int pos_vop2 
static int mpeg4_unpack_bframes_filter ( AVBSFContext ctx,
AVPacket pkt 

Definition at line 59 of file mpeg4_unpack_bframes_bsf.c.

static int mpeg4_unpack_bframes_init ( AVBSFContext ctx)

Definition at line 133 of file mpeg4_unpack_bframes_bsf.c.

static void mpeg4_unpack_bframes_close_flush ( AVBSFContext bsfc)

Definition at line 148 of file mpeg4_unpack_bframes_bsf.c.

Variable Documentation

enum AVCodecID codec_ids[]
const AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf
Initial value:
= {
.name = "mpeg4_unpack_bframes",
.priv_data_size = sizeof(UnpackBFramesBSFContext),
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int mpeg4_unpack_bframes_filter(AVBSFContext *ctx, AVPacket *pkt)
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
static void mpeg4_unpack_bframes_close_flush(AVBSFContext *bsfc)
static int mpeg4_unpack_bframes_init(AVBSFContext *ctx)
static enum AVCodecID codec_ids[]

Definition at line 158 of file mpeg4_unpack_bframes_bsf.c.