FFmpeg  4.0
Data Structures | Functions | Variables
h264_mp4toannexb_bsf.c File Reference
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "bsf.h"

Go to the source code of this file.

Data Structures

struct  H264BSFContext
 

Functions

static int alloc_and_copy (AVPacket *out, const uint8_t *sps_pps, uint32_t sps_pps_size, const uint8_t *in, uint32_t in_size, int ps)
 
static int h264_extradata_to_annexb (AVBSFContext *ctx, const int padding)
 
static int h264_mp4toannexb_init (AVBSFContext *ctx)
 
static int h264_mp4toannexb_filter (AVBSFContext *ctx, AVPacket *out)
 

Variables

static enum AVCodecID codec_ids []
 
const AVBitStreamFilter ff_h264_mp4toannexb_bsf
 

Function Documentation

◆ alloc_and_copy()

static int alloc_and_copy ( AVPacket out,
const uint8_t sps_pps,
uint32_t  sps_pps_size,
const uint8_t in,
uint32_t  in_size,
int  ps 
)
static

Definition at line 40 of file h264_mp4toannexb_bsf.c.

Referenced by h264_mp4toannexb_filter().

◆ h264_extradata_to_annexb()

static int h264_extradata_to_annexb ( AVBSFContext ctx,
const int  padding 
)
static

Definition at line 66 of file h264_mp4toannexb_bsf.c.

Referenced by h264_mp4toannexb_init().

◆ h264_mp4toannexb_init()

static int h264_mp4toannexb_init ( AVBSFContext ctx)
static

Definition at line 140 of file h264_mp4toannexb_bsf.c.

◆ h264_mp4toannexb_filter()

static int h264_mp4toannexb_filter ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 170 of file h264_mp4toannexb_bsf.c.

Variable Documentation

◆ codec_ids

enum AVCodecID codec_ids[]
static
Initial value:

Definition at line 282 of file h264_mp4toannexb_bsf.c.

◆ ff_h264_mp4toannexb_bsf

const AVBitStreamFilter ff_h264_mp4toannexb_bsf
Initial value:
= {
.name = "h264_mp4toannexb",
.priv_data_size = sizeof(H264BSFContext),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int h264_mp4toannexb_init(AVBSFContext *ctx)
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 h264_mp4toannexb_filter(AVBSFContext *ctx, AVPacket *out)
static enum AVCodecID codec_ids[]

Definition at line 286 of file h264_mp4toannexb_bsf.c.