FFmpeg
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
 

Functions

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 *out)
 
static int mpeg4_unpack_bframes_init (AVBSFContext *ctx)
 
static void mpeg4_unpack_bframes_flush (AVBSFContext *bsfc)
 
static void mpeg4_unpack_bframes_close (AVBSFContext *bsfc)
 

Variables

static enum AVCodecID codec_ids []
 
const AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf
 

Function Documentation

◆ scan_buffer()

static void scan_buffer ( const uint8_t buf,
int  buf_size,
int pos_p,
int nb_vop,
int pos_vop2 
)
static

◆ mpeg4_unpack_bframes_filter()

static int mpeg4_unpack_bframes_filter ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 59 of file mpeg4_unpack_bframes_bsf.c.

◆ mpeg4_unpack_bframes_init()

static int mpeg4_unpack_bframes_init ( AVBSFContext ctx)
static

Definition at line 134 of file mpeg4_unpack_bframes_bsf.c.

◆ mpeg4_unpack_bframes_flush()

static void mpeg4_unpack_bframes_flush ( AVBSFContext bsfc)
static

Definition at line 155 of file mpeg4_unpack_bframes_bsf.c.

◆ mpeg4_unpack_bframes_close()

static void mpeg4_unpack_bframes_close ( AVBSFContext bsfc)
static

Definition at line 161 of file mpeg4_unpack_bframes_bsf.c.

Variable Documentation

◆ codec_ids

enum AVCodecID codec_ids[]
static
Initial value:

Definition at line 167 of file mpeg4_unpack_bframes_bsf.c.

◆ ff_mpeg4_unpack_bframes_bsf

const AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf
Initial value:

Definition at line 171 of file mpeg4_unpack_bframes_bsf.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
AV_CODEC_ID_MPEG4
@ AV_CODEC_ID_MPEG4
Definition: avcodec.h:230
filter
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
Definition: filter_design.txt:228
UnpackBFramesBSFContext
Definition: mpeg4_unpack_bframes_bsf.c:27
codec_ids
static enum AVCodecID codec_ids[]
Definition: mpeg4_unpack_bframes_bsf.c:167
mpeg4_unpack_bframes_filter
static int mpeg4_unpack_bframes_filter(AVBSFContext *ctx, AVPacket *out)
Definition: mpeg4_unpack_bframes_bsf.c:59
flush
static void flush(AVCodecContext *avctx)
Definition: aacdec_template.c:500
mpeg4_unpack_bframes_init
static int mpeg4_unpack_bframes_init(AVBSFContext *ctx)
Definition: mpeg4_unpack_bframes_bsf.c:134
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: avcodec.h:216
mpeg4_unpack_bframes_flush
static void mpeg4_unpack_bframes_flush(AVBSFContext *bsfc)
Definition: mpeg4_unpack_bframes_bsf.c:155
mpeg4_unpack_bframes_close
static void mpeg4_unpack_bframes_close(AVBSFContext *bsfc)
Definition: mpeg4_unpack_bframes_bsf.c:161