FFmpeg
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 "bsf_internal.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

#define MIN_HEVCC_LENGTH   23

Definition at line 33 of file hevc_mp4toannexb_bsf.c.

Referenced by hevc_mp4toannexb_init().

Function Documentation

static int hevc_extradata_to_annexb ( AVBSFContext ctx)
static

Definition at line 40 of file hevc_mp4toannexb_bsf.c.

Referenced by hevc_mp4toannexb_init().

static int hevc_mp4toannexb_init ( AVBSFContext ctx)
static

Definition at line 98 of file hevc_mp4toannexb_bsf.c.

static int hevc_mp4toannexb_filter ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 119 of file hevc_mp4toannexb_bsf.c.

Variable Documentation

enum AVCodecID codec_ids[]
static
Initial value:

Definition at line 190 of file hevc_mp4toannexb_bsf.c.

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 av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
static int hevc_mp4toannexb_init(AVBSFContext *ctx)
static enum AVCodecID codec_ids[]

Definition at line 194 of file hevc_mp4toannexb_bsf.c.