Go to the documentation of this file.
43 if (
ctx->color_primaries >= 0 ||
44 ctx->transfer_characteristics >= 0 ||
45 ctx->matrix_coefficients >= 0 ||
46 ctx->full_range_flag >= 0) {
49 if (
ctx->color_primaries >= 0)
51 if (
ctx->transfer_characteristics >= 0)
53 if (
ctx->matrix_coefficients >= 0)
55 if (
ctx->full_range_flag >= 0)
81 .fragment_name =
"access unit",
91 #define OFFSET(x) offsetof(APVMetadataContext, x)
92 #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_BSF_PARAM)
94 {
"color_primaries",
"Set color primaries (section 5.3.5)",
96 { .i64 = -1 }, -1, 255,
FLAGS },
97 {
"transfer_characteristics",
"Set transfer characteristics (section 5.3.5)",
99 { .i64 = -1 }, -1, 255,
FLAGS },
100 {
"matrix_coefficients",
"Set matrix coefficients (section 5.3.5)",
102 { .i64 = -1 }, -1, 255,
FLAGS },
104 {
"full_range_flag",
"Set full range flag flag (section 5.3.5)",
106 { .i64 = -1 }, -1, 1,
FLAGS, .unit =
"cr" },
108 { .i64 = 0 }, .flags =
FLAGS, .unit =
"cr" },
110 { .i64 = 1 }, .flags =
FLAGS, .unit =
"cr" },
127 .
p.
name =
"apv_metadata",
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.
void(* filter)(uint8_t *src, int stride, int qscale)
CodedBitstreamUnitType type
Codec-specific type of this unit.
The bitstream filter state.
CodedBitstreamUnit * units
Pointer to an array of units of length nb_units_allocated.
APVRawFrameHeader frame_header
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.
av_cold void CBS_FUNC() close(CodedBitstreamContext **ctx_ptr)
Close a context and free all internal state.
AVCodecID
Identify the syntax and semantics of the bitstream.
static const AVColorPrimariesDesc color_primaries[AVCOL_PRI_NB]
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 struct TransferCharacteristics transfer_characteristics[AVCOL_TRC_NB]
#define i(width, name, range_min, range_max)
int transfer_characteristics
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...
@ AV_OPT_TYPE_INT
Underlying C type is int.
This structure stores compressed data.
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
int nb_units
Number of units in this fragment.