Go to the documentation of this file.
51 if (
ctx->color_space >= 0) {
53 if (!(
ctx->color_warnings & 2)) {
55 "incompatible with profiles 0 and 2.\n");
56 ctx->color_warnings |= 2;
62 if (
ctx->color_range >= 0)
65 if (!(
ctx->color_warnings & 1) && !
header->color_range) {
67 "implicitly sets color range to PC range.\n");
68 ctx->color_warnings |= 1;
75 "profile 0 are automatically BT.601.\n");
76 ctx->color_warnings |= 4;
85 .fragment_name =
"superframe",
95 #define OFFSET(x) offsetof(VP9MetadataContext, x)
96 #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_BSF_PARAM)
98 {
"color_space",
"Set colour space (section 7.2.2)",
116 {
"color_range",
"Set colour range (section 7.2.2)",
118 { .i64 = -1 }, -1, 1,
FLAGS, .unit =
"cr" },
120 { .i64 = 0 }, .flags =
FLAGS, .unit =
"cr" },
122 { .i64 = 1 }, .flags =
FLAGS, .unit =
"cr" },
139 .
p.
name =
"vp9_metadata",
#define AV_LOG_WARNING
Something somehow does not look correct.
int ff_cbs_bsf_generic_init(AVBSFContext *bsf, const CBSBSFType *type)
Initialise generic CBS BSF setup.
void * content
Pointer to the decomposed form of this unit.
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
The bitstream filter state.
CodedBitstreamUnit * units
Pointer to an array of units of length nb_units_allocated.
Coded bitstream fragment structure, combining one or more units.
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
const char * av_default_item_name(void *ptr)
Return the context name.
AVCodecID
Identify the syntax and semantics of the bitstream.
AVBitStreamFilter p
The public AVBitStreamFilter.
int(* init)(AVBSFContext *ctx)
void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
static const uint8_t header[24]
#define i(width, name, range_min, range_max)
void * priv_data
Opaque filter-specific private data.
int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt)
Filter operation for CBS BSF.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
This structure stores compressed data.
int nb_units
Number of units in this fragment.