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

Go to the source code of this file.

Data Structures

struct  UnpackBFramesBSFContext
 

Functions

static unsigned int find_startcode (const uint8_t *buf, int buf_size, int *pos)
 
static void scan_buffer (const uint8_t *buf, int buf_size, int *pos_p, int *nb_vop, int *pos_vop2)
 
static uint8_tcreate_new_buffer (const uint8_t *src, int size)
 
static int mpeg4_unpack_bframes_filter (AVBSFContext *ctx, AVPacket *out)
 
static int mpeg4_unpack_bframes_init (AVBSFContext *ctx)
 
static void mpeg4_unpack_bframes_close (AVBSFContext *bsfc)
 

Variables

static enum AVCodecID codec_ids []
 
const AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf
 

Function Documentation

◆ find_startcode()

static unsigned int find_startcode ( const uint8_t buf,
int  buf_size,
int pos 
)
static

Definition at line 32 of file mpeg4_unpack_bframes_bsf.c.

Referenced by scan_buffer().

◆ scan_buffer()

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

◆ create_new_buffer()

static uint8_t* create_new_buffer ( const uint8_t src,
int  size 
)
static

Definition at line 75 of file mpeg4_unpack_bframes_bsf.c.

Referenced by mpeg4_unpack_bframes_filter().

◆ mpeg4_unpack_bframes_filter()

static int mpeg4_unpack_bframes_filter ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 86 of file mpeg4_unpack_bframes_bsf.c.

◆ mpeg4_unpack_bframes_init()

static int mpeg4_unpack_bframes_init ( AVBSFContext ctx)
static

Definition at line 172 of file mpeg4_unpack_bframes_bsf.c.

◆ mpeg4_unpack_bframes_close()

static void mpeg4_unpack_bframes_close ( AVBSFContext bsfc)
static

Definition at line 187 of file mpeg4_unpack_bframes_bsf.c.

Variable Documentation

◆ codec_ids

enum AVCodecID codec_ids[]
static

◆ ff_mpeg4_unpack_bframes_bsf

const AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf
Initial value:
= {
.name = "mpeg4_unpack_bframes",
.priv_data_size = sizeof(UnpackBFramesBSFContext),
}
static void mpeg4_unpack_bframes_close(AVBSFContext *bsfc)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int mpeg4_unpack_bframes_filter(AVBSFContext *ctx, AVPacket *out)
static void filter(int16_t *output, ptrdiff_t out_stride, int16_t *low, ptrdiff_t low_stride, int16_t *high, ptrdiff_t high_stride, int len, int clip)
Definition: cfhd.c:114
static int mpeg4_unpack_bframes_init(AVBSFContext *ctx)
static enum AVCodecID codec_ids[]

Definition at line 197 of file mpeg4_unpack_bframes_bsf.c.