FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
dump_extradata_bsf.c File Reference
#include <string.h>
#include "avcodec.h"
#include "bsf.h"
#include "libavutil/log.h"
#include "libavutil/mem.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 AVBitStreamFilter ff_dump_extradata_bsf
 

Macro Definition Documentation

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

Definition at line 81 of file dump_extradata_bsf.c.

Definition at line 82 of file dump_extradata_bsf.c.

Enumeration Type Documentation

enum DumpFreq
Enumerator
DUMP_FREQ_KEYFRAME 
DUMP_FREQ_ALL 

Definition at line 30 of file dump_extradata_bsf.c.

Function Documentation

static int dump_extradata ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 41 of file dump_extradata_bsf.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "freq", "When do dump extradata", OFFSET(freq), AV_OPT_TYPE_INT,
{ "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 },
}
#define NULL
Definition: coverity.c:32
#define FLAGS
#define OFFSET(x)

Definition at line 83 of file dump_extradata_bsf.c.

const AVClass dump_extradata_class
static
Initial value:
= {
.class_name = "dump_extradata bsf",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
static const AVOption options[]

Definition at line 93 of file dump_extradata_bsf.c.

const AVBitStreamFilter ff_dump_extradata_bsf
Initial value:
= {
.name = "dump_extra",
.priv_data_size = sizeof(DumpExtradataContext),
.priv_class = &dump_extradata_class,
}
static int dump_extradata(AVBSFContext *ctx, AVPacket *out)
static void filter(int16_t *output, ptrdiff_t out_stride, int16_t *low, ptrdiff_t low_stride, int16_t *high, ptrdiff_t high_stride, int len, int clip)
Definition: cfhd.c:153
static const AVClass dump_extradata_class

Definition at line 100 of file dump_extradata_bsf.c.