FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vp9_metadata_bsf.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "bsf.h"
#include "cbs.h"
#include "cbs_vp9.h"

Go to the source code of this file.

Data Structures

struct  VP9MetadataContext
 

Macros

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

Functions

static int vp9_metadata_filter (AVBSFContext *bsf, AVPacket *out)
 
static int vp9_metadata_init (AVBSFContext *bsf)
 
static void vp9_metadata_close (AVBSFContext *bsf)
 

Variables

static const AVOption vp9_metadata_options []
 
static const AVClass vp9_metadata_class
 
static enum AVCodecID vp9_metadata_codec_ids []
 
const AVBitStreamFilter ff_vp9_metadata_bsf
 

Macro Definition Documentation

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

Definition at line 111 of file vp9_metadata_bsf.c.

Definition at line 112 of file vp9_metadata_bsf.c.

Function Documentation

static int vp9_metadata_filter ( AVBSFContext bsf,
AVPacket out 
)
static

Definition at line 40 of file vp9_metadata_bsf.c.

static int vp9_metadata_init ( AVBSFContext bsf)
static

Definition at line 98 of file vp9_metadata_bsf.c.

static void vp9_metadata_close ( AVBSFContext bsf)
static

Definition at line 105 of file vp9_metadata_bsf.c.

Variable Documentation

const AVOption vp9_metadata_options[]
static
Initial value:
= {
{ "color_space", "Set colour space (section 7.2.2)",
OFFSET(color_space), AV_OPT_TYPE_INT,
{ .i64 = -1 }, -1, VP9_CS_RGB, FLAGS, "cs" },
{ "unknown", "Unknown/unspecified", 0, AV_OPT_TYPE_CONST,
{ .i64 = VP9_CS_UNKNOWN }, .flags = FLAGS, .unit = "cs" },
{ "bt601", "ITU-R BT.601-7", 0, AV_OPT_TYPE_CONST,
{ .i64 = VP9_CS_BT_601 }, .flags = FLAGS, .unit = "cs" },
{ "bt709", "ITU-R BT.709-6", 0, AV_OPT_TYPE_CONST,
{ .i64 = VP9_CS_BT_709 }, .flags = FLAGS, .unit = "cs" },
{ "smpte170", "SMPTE-170", 0, AV_OPT_TYPE_CONST,
{ .i64 = VP9_CS_SMPTE_170 }, .flags = FLAGS, .unit = "cs" },
{ "smpte240", "SMPTE-240", 0, AV_OPT_TYPE_CONST,
{ .i64 = VP9_CS_SMPTE_240 }, .flags = FLAGS, .unit = "cs" },
{ "bt2020", "ITU-R BT.2020-2", 0, AV_OPT_TYPE_CONST,
{ .i64 = VP9_CS_BT_2020 }, .flags = FLAGS, .unit = "cs" },
{ "rgb", "sRGB / IEC 61966-2-1", 0, AV_OPT_TYPE_CONST,
{ .i64 = VP9_CS_RGB }, .flags = FLAGS, .unit = "cs" },
{ "color_range", "Set colour range (section 7.2.2)",
{ .i64 = -1 }, -1, 1, FLAGS, "cr" },
{ "tv", "TV (limited) range", 0, AV_OPT_TYPE_CONST,
{ .i64 = 0 }, .flags = FLAGS, .unit = "cr" },
{ "pc", "PC (full) range", 0, AV_OPT_TYPE_CONST,
{ .i64 = 1 }, .flags = FLAGS, .unit = "cr" },
{ NULL }
}
#define NULL
Definition: coverity.c:32
color_range
#define OFFSET(x)
#define FLAGS

Definition at line 113 of file vp9_metadata_bsf.c.

const AVClass vp9_metadata_class
static
Initial value:
= {
.class_name = "vp9_metadata_bsf",
.item_name = av_default_item_name,
}
#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 vp9_metadata_options[]

Definition at line 143 of file vp9_metadata_bsf.c.

enum AVCodecID vp9_metadata_codec_ids[]
static
Initial value:

Definition at line 150 of file vp9_metadata_bsf.c.

const AVBitStreamFilter ff_vp9_metadata_bsf
Initial value:
= {
.name = "vp9_metadata",
.priv_data_size = sizeof(VP9MetadataContext),
.priv_class = &vp9_metadata_class,
.close = &vp9_metadata_close,
}
static int vp9_metadata_filter(AVBSFContext *bsf, AVPacket *out)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static enum AVCodecID vp9_metadata_codec_ids[]
static int vp9_metadata_init(AVBSFContext *bsf)
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 vp9_metadata_class
static void vp9_metadata_close(AVBSFContext *bsf)
static enum AVCodecID codec_ids[]

Definition at line 154 of file vp9_metadata_bsf.c.