FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
mpeg4_unpack_bframes_bsf.c File Reference
#include "avcodec.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 (AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
 
static void mpeg4_unpack_bframes_close (AVBitStreamFilterContext *bsfc)
 

Variables

AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf
 

Function Documentation

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().

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

Definition at line 49 of file mpeg4_unpack_bframes_bsf.c.

Referenced by mpeg4_unpack_bframes_filter().

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().

static int mpeg4_unpack_bframes_filter ( AVBitStreamFilterContext bsfc,
AVCodecContext avctx,
const char *  args,
uint8_t **  poutbuf,
int *  poutbuf_size,
const uint8_t buf,
int  buf_size,
int  keyframe 
)
static

Definition at line 86 of file mpeg4_unpack_bframes_bsf.c.

static void mpeg4_unpack_bframes_close ( AVBitStreamFilterContext bsfc)
static

Definition at line 183 of file mpeg4_unpack_bframes_bsf.c.

Variable Documentation

AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf
Initial value:
= {
.name = "mpeg4_unpack_bframes",
.priv_data_size = sizeof(UnpackBFramesBSFContext),
}
static int mpeg4_unpack_bframes_filter(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
static void mpeg4_unpack_bframes_close(AVBitStreamFilterContext *bsfc)
static void filter(MpegAudioContext *s, int ch, const short *samples, int incr)

Definition at line 189 of file mpeg4_unpack_bframes_bsf.c.