FFmpeg
Data Structures | Functions | Variables
mpeg4_unpack_bframes_bsf.c File Reference
#include "bsf.h"
#include "bsf_internal.h"
#include "mpeg4videodefs.h"
#include "startcode.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 *pkt)
 
static int mpeg4_unpack_bframes_init (AVBSFContext *ctx)
 
static void mpeg4_unpack_bframes_close_flush (AVBSFContext *bsfc)
 

Variables

static enum AVCodecID codec_ids []
 
const FFBitStreamFilter 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 pkt 
)
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 133 of file mpeg4_unpack_bframes_bsf.c.

◆ mpeg4_unpack_bframes_close_flush()

static void mpeg4_unpack_bframes_close_flush ( AVBSFContext bsfc)
static

Definition at line 148 of file mpeg4_unpack_bframes_bsf.c.

Variable Documentation

◆ codec_ids

enum AVCodecID codec_ids[]
static
Initial value:

Definition at line 154 of file mpeg4_unpack_bframes_bsf.c.

◆ ff_mpeg4_unpack_bframes_bsf

const FFBitStreamFilter ff_mpeg4_unpack_bframes_bsf
Initial value:
= {
.p.name = "mpeg4_unpack_bframes",
.p.codec_ids = codec_ids,
.priv_data_size = sizeof(UnpackBFramesBSFContext),
}

Definition at line 158 of file mpeg4_unpack_bframes_bsf.c.

AV_CODEC_ID_MPEG4
@ AV_CODEC_ID_MPEG4
Definition: codec_id.h:64
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
mpeg4_unpack_bframes_filter
static int mpeg4_unpack_bframes_filter(AVBSFContext *ctx, AVPacket *pkt)
Definition: mpeg4_unpack_bframes_bsf.c:59
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
codec_ids
static enum AVCodecID codec_ids[]
Definition: mpeg4_unpack_bframes_bsf.c:154
mpeg4_unpack_bframes_init
static int mpeg4_unpack_bframes_init(AVBSFContext *ctx)
Definition: mpeg4_unpack_bframes_bsf.c:133
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
flush
void(* flush)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:367
mpeg4_unpack_bframes_close_flush
static void mpeg4_unpack_bframes_close_flush(AVBSFContext *bsfc)
Definition: mpeg4_unpack_bframes_bsf.c:148