FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
dump_extradata.c File Reference
#include <string.h>
#include "bsf.h"
#include "bsf_internal.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  DumpExtradataContext
 

Macros

#define OFFSET(x)   offsetof(DumpExtradataContext, x)
 
#define FLAGS   (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_BSF_PARAM)
 

Enumerations

enum  DumpFreq { DUMP_FREQ_KEYFRAME, DUMP_FREQ_ALL }
 

Functions

static int dump_extradata (AVBSFContext *ctx, AVPacket *out)
 

Variables

static const AVOption options []
 
static const AVClass dump_extradata_class
 
const FFBitStreamFilter ff_dump_extradata_bsf
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 82 of file dump_extradata.c.

◆ FLAGS

Definition at line 83 of file dump_extradata.c.

Enumeration Type Documentation

◆ DumpFreq

enum DumpFreq
Enumerator
DUMP_FREQ_KEYFRAME 
DUMP_FREQ_ALL 

Definition at line 29 of file dump_extradata.c.

Function Documentation

◆ dump_extradata()

static int dump_extradata ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 40 of file dump_extradata.c.

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "freq", "When to dump extradata", OFFSET(freq), AV_OPT_TYPE_INT,
{ .i64 = DUMP_FREQ_KEYFRAME }, DUMP_FREQ_KEYFRAME, DUMP_FREQ_ALL, FLAGS, .unit = "freq" },
{ "k", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = DUMP_FREQ_KEYFRAME }, .flags = FLAGS, .unit = "freq" },
{ "keyframe", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = DUMP_FREQ_KEYFRAME }, .flags = FLAGS, .unit = "freq" },
{ "e", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = DUMP_FREQ_ALL }, .flags = FLAGS, .unit = "freq" },
{ "all", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = DUMP_FREQ_ALL }, .flags = FLAGS, .unit = "freq" },
{ NULL },
}

Definition at line 84 of file dump_extradata.c.

◆ dump_extradata_class

const AVClass dump_extradata_class
static
Initial value:
= {
.class_name = "dump_extradata bsf",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 94 of file dump_extradata.c.

◆ ff_dump_extradata_bsf

const FFBitStreamFilter ff_dump_extradata_bsf
Initial value:
= {
.p.name = "dump_extra",
.p.priv_class = &dump_extradata_class,
.priv_data_size = sizeof(DumpExtradataContext),
}

Definition at line 101 of file dump_extradata.c.

DUMP_FREQ_ALL
@ DUMP_FREQ_ALL
Definition: dump_extradata.c:31
filter
void(* filter)(uint8_t *src, int stride, int qscale)
Definition: h263dsp.c:29
DUMP_FREQ_KEYFRAME
@ DUMP_FREQ_KEYFRAME
Definition: dump_extradata.c:30
dump_extradata
static int dump_extradata(AVBSFContext *ctx, AVPacket *out)
Definition: dump_extradata.c:40
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
DumpExtradataContext
Definition: dump_extradata.c:34
dump_extradata_class
static const AVClass dump_extradata_class
Definition: dump_extradata.c:94
FLAGS
#define FLAGS
Definition: dump_extradata.c:83
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition: opt.h:259
options
static const AVOption options[]
Definition: dump_extradata.c:84
OFFSET
#define OFFSET(x)
Definition: dump_extradata.c:82
AV_OPT_TYPE_CONST
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
Definition: opt.h:299