Libav
Data Structures | Macros | Enumerations | Functions | Variables
remove_extradata_bsf.c File Reference
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bsf.h"

Go to the source code of this file.

Data Structures

struct  RemoveExtradataContext
 

Macros

#define OFFSET(x)   offsetof(RemoveExtradataContext, x)
 

Enumerations

enum  RemoveFreq { REMOVE_FREQ_KEYFRAME, REMOVE_FREQ_ALL }
 

Functions

static int remove_extradata (AVBSFContext *ctx, AVPacket *out)
 
static int remove_extradata_init (AVBSFContext *ctx)
 
static void remove_extradata_close (AVBSFContext *ctx)
 

Variables

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

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(RemoveExtradataContext, x)

Definition at line 94 of file remove_extradata_bsf.c.

Enumeration Type Documentation

◆ RemoveFreq

enum RemoveFreq
Enumerator
REMOVE_FREQ_KEYFRAME 
REMOVE_FREQ_ALL 

Definition at line 27 of file remove_extradata_bsf.c.

Function Documentation

◆ remove_extradata()

static int remove_extradata ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 40 of file remove_extradata_bsf.c.

◆ remove_extradata_init()

static int remove_extradata_init ( AVBSFContext ctx)
static

Definition at line 66 of file remove_extradata_bsf.c.

◆ remove_extradata_close()

static void remove_extradata_close ( AVBSFContext ctx)
static

Definition at line 86 of file remove_extradata_bsf.c.

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "keyframe", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = REMOVE_FREQ_KEYFRAME }, .unit = "freq" },
{ "all", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = REMOVE_FREQ_ALL }, .unit = "freq" },
{ NULL },
}
#define OFFSET(x)
NULL
Definition: eval.c:55

Definition at line 95 of file remove_extradata_bsf.c.

◆ remove_extradata_class

const AVClass remove_extradata_class
static
Initial value:
= {
.class_name = "remove_extradata",
.item_name = av_default_item_name,
.option = options,
}
LIBAVUTIL_VERSION_INT
Definition: eval.c:55
av_default_item_name
Definition: dnxhdenc.c:55
static const AVOption options[]

Definition at line 102 of file remove_extradata_bsf.c.

◆ ff_remove_extradata_bsf

const AVBitStreamFilter ff_remove_extradata_bsf
Initial value:
= {
.name = "remove_extra",
.priv_data_size = sizeof(RemoveExtradataContext),
.priv_class = &remove_extradata_class,
}
static const AVClass remove_extradata_class
static void remove_extradata_close(AVBSFContext *ctx)
static void filter(MpegAudioContext *s, int ch, const short *samples, int incr)
Definition: mpegaudioenc.c:307
static int remove_extradata(AVBSFContext *ctx, AVPacket *out)
static int remove_extradata_init(AVBSFContext *ctx)
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:582

Definition at line 109 of file remove_extradata_bsf.c.