FFmpeg
Loading...
Searching...
No Matches
remove_extradata.c File Reference

Go to the source code of this file.

Data Structures

struct  RemoveExtradataContext
 

Macros

#define START_CODE   0x000001
 
#define OFFSET(x)
 
#define FLAGS   (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_BSF_PARAM)
 

Enumerations

enum  RemoveFreq { REMOVE_FREQ_KEYFRAME , REMOVE_FREQ_ALL , REMOVE_FREQ_NONKEYFRAME }
 

Functions

static int av1_split (const uint8_t *buf, int buf_size, void *logctx)
 
static int h264_split (const uint8_t *buf, int buf_size)
 
static int hevc_split (const uint8_t *buf, int buf_size)
 
static int mpegvideo_split (const uint8_t *buf, int buf_size)
 
static int mpeg4video_split (const uint8_t *buf, int buf_size)
 
static int vc1_split (const uint8_t *buf, int buf_size)
 
static int remove_extradata (AVBSFContext *ctx, AVPacket *pkt)
 

Variables

static const AVOption options []
 
static const AVClass remove_extradata_class
 
const FFBitStreamFilter ff_remove_extradata_bsf
 

Macro Definition Documentation

◆ START_CODE

#define START_CODE   0x000001

◆ OFFSET

#define OFFSET ( x)
Value:

Definition at line 231 of file remove_extradata.c.

◆ FLAGS

Definition at line 232 of file remove_extradata.c.

Enumeration Type Documentation

◆ RemoveFreq

enum RemoveFreq
Enumerator
REMOVE_FREQ_KEYFRAME 
REMOVE_FREQ_ALL 
REMOVE_FREQ_NONKEYFRAME 

Definition at line 33 of file remove_extradata.c.

Function Documentation

◆ av1_split()

static int av1_split ( const uint8_t * buf,
int buf_size,
void * logctx )
static

Definition at line 46 of file remove_extradata.c.

Referenced by remove_extradata().

◆ h264_split()

static int h264_split ( const uint8_t * buf,
int buf_size )
static

Definition at line 67 of file remove_extradata.c.

Referenced by remove_extradata().

◆ hevc_split()

static int hevc_split ( const uint8_t * buf,
int buf_size )
static

Definition at line 104 of file remove_extradata.c.

Referenced by remove_extradata().

◆ mpegvideo_split()

static int mpegvideo_split ( const uint8_t * buf,
int buf_size )
static

Definition at line 136 of file remove_extradata.c.

Referenced by remove_extradata().

◆ mpeg4video_split()

static int mpeg4video_split ( const uint8_t * buf,
int buf_size )
static

Definition at line 151 of file remove_extradata.c.

Referenced by remove_extradata().

◆ vc1_split()

static int vc1_split ( const uint8_t * buf,
int buf_size )
static

Definition at line 165 of file remove_extradata.c.

Referenced by remove_extradata().

◆ remove_extradata()

static int remove_extradata ( AVBSFContext * ctx,
AVPacket * pkt )
static

Definition at line 182 of file remove_extradata.c.

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "k", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = REMOVE_FREQ_NONKEYFRAME }, .flags = FLAGS, .unit = "freq" },
{ "keyframe", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = REMOVE_FREQ_KEYFRAME }, .flags = FLAGS, .unit = "freq" },
{ "e", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = REMOVE_FREQ_ALL }, .flags = FLAGS, .unit = "freq" },
{ "all", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = REMOVE_FREQ_ALL }, .flags = FLAGS, .unit = "freq" },
{ NULL },
}
#define FLAGS
Definition cmdutils.c:598
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
Definition opt.h:298
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258
@ REMOVE_FREQ_ALL
@ REMOVE_FREQ_NONKEYFRAME
@ REMOVE_FREQ_KEYFRAME

Definition at line 233 of file remove_extradata.c.

◆ remove_extradata_class

const AVClass remove_extradata_class
static
Initial value:
= {
.class_name = "remove_extradata",
.item_name = av_default_item_name,
.option = options,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85

Definition at line 242 of file remove_extradata.c.

◆ ff_remove_extradata_bsf

const FFBitStreamFilter ff_remove_extradata_bsf
Initial value:
= {
.p.name = "remove_extra",
.p.priv_class = &remove_extradata_class,
.priv_data_size = sizeof(RemoveExtradataContext),
}
static const AVClass remove_extradata_class
static int remove_extradata(AVBSFContext *ctx, AVPacket *pkt)
void(* filter)(uint8_t *src, ptrdiff_t stride, int qscale)
Definition h263dsp.c:29

Definition at line 249 of file remove_extradata.c.