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 "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

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
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 ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 86 of file mpeg4_unpack_bframes_bsf.c.

static int mpeg4_unpack_bframes_init ( AVBSFContext ctx)
static

Definition at line 169 of file mpeg4_unpack_bframes_bsf.c.

static void mpeg4_unpack_bframes_close ( AVBSFContext bsfc)
static

Definition at line 184 of file mpeg4_unpack_bframes_bsf.c.

Variable Documentation

enum AVCodecID codec_ids[]
static
Initial value:

Definition at line 190 of file mpeg4_unpack_bframes_bsf.c.

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:97
static int mpeg4_unpack_bframes_init(AVBSFContext *ctx)
static enum AVCodecID codec_ids[]

Definition at line 194 of file mpeg4_unpack_bframes_bsf.c.