FFmpeg
Data Structures | Macros | Functions | Variables
hevc_mp4toannexb.c File Reference
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "bsf.h"
#include "bsf_internal.h"
#include "bytestream.h"
#include "defs.h"
#include "hevc/hevc.h"

Go to the source code of this file.

Data Structures

struct  HEVCBSFContext
 

Macros

#define MIN_HEVCC_LENGTH   23
 

Functions

static int hevc_extradata_to_annexb (AVBSFContext *ctx)
 
static int hevc_mp4toannexb_init (AVBSFContext *ctx)
 
static int hevc_mp4toannexb_filter (AVBSFContext *ctx, AVPacket *out)
 

Variables

static enum AVCodecID codec_ids []
 
const FFBitStreamFilter ff_hevc_mp4toannexb_bsf
 

Macro Definition Documentation

◆ MIN_HEVCC_LENGTH

#define MIN_HEVCC_LENGTH   23

Definition at line 34 of file hevc_mp4toannexb.c.

Function Documentation

◆ hevc_extradata_to_annexb()

static int hevc_extradata_to_annexb ( AVBSFContext ctx)
static

Definition at line 41 of file hevc_mp4toannexb.c.

Referenced by hevc_mp4toannexb_init().

◆ hevc_mp4toannexb_init()

static int hevc_mp4toannexb_init ( AVBSFContext ctx)
static

Definition at line 101 of file hevc_mp4toannexb.c.

◆ hevc_mp4toannexb_filter()

static int hevc_mp4toannexb_filter ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 122 of file hevc_mp4toannexb.c.

Variable Documentation

◆ codec_ids

enum AVCodecID codec_ids[]
static
Initial value:

Definition at line 198 of file hevc_mp4toannexb.c.

◆ ff_hevc_mp4toannexb_bsf

const FFBitStreamFilter ff_hevc_mp4toannexb_bsf
Initial value:
= {
.p.name = "hevc_mp4toannexb",
.p.codec_ids = codec_ids,
.priv_data_size = sizeof(HEVCBSFContext),
}

Definition at line 202 of file hevc_mp4toannexb.c.

filter
void(* filter)(uint8_t *src, int stride, int qscale)
Definition: h263dsp.c:29
hevc_mp4toannexb_init
static int hevc_mp4toannexb_init(AVBSFContext *ctx)
Definition: hevc_mp4toannexb.c:101
hevc_mp4toannexb_filter
static int hevc_mp4toannexb_filter(AVBSFContext *ctx, AVPacket *out)
Definition: hevc_mp4toannexb.c:122
HEVCBSFContext
Definition: hevc_mp4toannexb.c:36
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
codec_ids
static enum AVCodecID codec_ids[]
Definition: hevc_mp4toannexb.c:198
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
AV_CODEC_ID_HEVC
@ AV_CODEC_ID_HEVC
Definition: codec_id.h:228