FFmpeg
Data Structures | Functions | Variables
mpeg4_unpack_bframes.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.c.

◆ mpeg4_unpack_bframes_init()

static int mpeg4_unpack_bframes_init ( AVBSFContext ctx)
static

Definition at line 133 of file mpeg4_unpack_bframes.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.c.

Variable Documentation

◆ codec_ids

enum AVCodecID codec_ids[]
static
Initial value:

Definition at line 154 of file mpeg4_unpack_bframes.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.c.

AV_CODEC_ID_MPEG4
@ AV_CODEC_ID_MPEG4
Definition: codec_id.h:64
mpeg4_unpack_bframes_close_flush
static void mpeg4_unpack_bframes_close_flush(AVBSFContext *bsfc)
Definition: mpeg4_unpack_bframes.c:148
filter
void(* filter)(uint8_t *src, int stride, int qscale)
Definition: h263dsp.c:29
UnpackBFramesBSFContext
Definition: mpeg4_unpack_bframes.c:27
mpeg4_unpack_bframes_init
static int mpeg4_unpack_bframes_init(AVBSFContext *ctx)
Definition: mpeg4_unpack_bframes.c:133
flush
void(* flush)(AVBSFContext *ctx)
Definition: dts2pts.c:370
mpeg4_unpack_bframes_filter
static int mpeg4_unpack_bframes_filter(AVBSFContext *ctx, AVPacket *pkt)
Definition: mpeg4_unpack_bframes.c:59
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
codec_ids
static enum AVCodecID codec_ids[]
Definition: mpeg4_unpack_bframes.c:154
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50