FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 "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 (HEVCBSFContext *ctx, AVCodecContext *avctx)
 
static int hevc_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 void hevc_mp4toannexb_close (AVBitStreamFilterContext *bsfc)
 

Variables

AVBitStreamFilter ff_hevc_mp4toannexb_bsf
 

Macro Definition Documentation

#define MIN_HEVCC_LENGTH   23

Definition at line 31 of file hevc_mp4toannexb_bsf.c.

Referenced by hevc_mp4toannexb_filter().

Function Documentation

static int hevc_extradata_to_annexb ( HEVCBSFContext ctx,
AVCodecContext avctx 
)
static

Definition at line 52 of file hevc_mp4toannexb_bsf.c.

Referenced by hevc_mp4toannexb_filter().

static int hevc_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 114 of file hevc_mp4toannexb_bsf.c.

static void hevc_mp4toannexb_close ( AVBitStreamFilterContext bsfc)
static

Definition at line 200 of file hevc_mp4toannexb_bsf.c.

Variable Documentation

AVBitStreamFilter ff_hevc_mp4toannexb_bsf
Initial value:
= {
"hevc_mp4toannexb",
sizeof(HEVCBSFContext),
}
static int hevc_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 void hevc_mp4toannexb_close(AVBitStreamFilterContext *bsfc)

Definition at line 207 of file hevc_mp4toannexb_bsf.c.