FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
h264_mp4toannexb_bsf.c File Reference
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  H264BSFContext
 

Functions

static int alloc_and_copy (uint8_t **poutbuf, int *poutbuf_size, const uint8_t *sps_pps, uint32_t sps_pps_size, const uint8_t *in, uint32_t in_size)
 
static int h264_extradata_to_annexb (H264BSFContext *ctx, AVCodecContext *avctx, const int padding)
 
static int h264_mp4toannexb_filter (AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
 

Variables

AVBitStreamFilter ff_h264_mp4toannexb_bsf
 

Function Documentation

static int alloc_and_copy ( uint8_t **  poutbuf,
int *  poutbuf_size,
const uint8_t sps_pps,
uint32_t  sps_pps_size,
const uint8_t in,
uint32_t  in_size 
)
static

Definition at line 38 of file h264_mp4toannexb_bsf.c.

Referenced by h264_mp4toannexb_filter().

static int h264_extradata_to_annexb ( H264BSFContext ctx,
AVCodecContext avctx,
const int  padding 
)
static

Definition at line 66 of file h264_mp4toannexb_bsf.c.

Referenced by h264_mp4toannexb_filter().

static int h264_mp4toannexb_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 139 of file h264_mp4toannexb_bsf.c.

Variable Documentation

AVBitStreamFilter ff_h264_mp4toannexb_bsf
Initial value:
= {
.name = "h264_mp4toannexb",
.priv_data_size = sizeof(H264BSFContext),
}

Definition at line 256 of file h264_mp4toannexb_bsf.c.