Libav
Data Structures | Macros | Functions | Variables
hevc_mp4toannexb_bsf.c File Reference
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "bsf.h"
#include "bytestream.h"
#include "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 AVBitStreamFilter ff_hevc_mp4toannexb_bsf
 

Macro Definition Documentation

◆ MIN_HEVCC_LENGTH

#define MIN_HEVCC_LENGTH   23

Definition at line 32 of file hevc_mp4toannexb_bsf.c.

Referenced by hevc_mp4toannexb_init().

Function Documentation

◆ hevc_extradata_to_annexb()

static int hevc_extradata_to_annexb ( AVBSFContext ctx)
static

Definition at line 39 of file hevc_mp4toannexb_bsf.c.

Referenced by hevc_mp4toannexb_init().

◆ hevc_mp4toannexb_init()

static int hevc_mp4toannexb_init ( AVBSFContext ctx)
static

Definition at line 97 of file hevc_mp4toannexb_bsf.c.

◆ hevc_mp4toannexb_filter()

static int hevc_mp4toannexb_filter ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 118 of file hevc_mp4toannexb_bsf.c.

Variable Documentation

◆ codec_ids

enum AVCodecID codec_ids[]
static
Initial value:

Definition at line 185 of file hevc_mp4toannexb_bsf.c.

◆ ff_hevc_mp4toannexb_bsf

const AVBitStreamFilter ff_hevc_mp4toannexb_bsf
Initial value:
= {
.name = "hevc_mp4toannexb",
.priv_data_size = sizeof(HEVCBSFContext),
}
static int hevc_mp4toannexb_filter(AVBSFContext *ctx, AVPacket *out)
static void filter(MpegAudioContext *s, int ch, const short *samples, int incr)
Definition: mpegaudioenc.c:307
static int hevc_mp4toannexb_init(AVBSFContext *ctx)
static enum AVCodecID codec_ids[]
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:582

Definition at line 189 of file hevc_mp4toannexb_bsf.c.