Lines Matching refs:ctx
51 AV1MetadataContext *ctx = bsf->priv_data;
55 if (ctx->color_primaries >= 0 ||
56 ctx->transfer_characteristics >= 0 ||
57 ctx->matrix_coefficients >= 0) {
60 if (ctx->color_primaries >= 0)
61 clc->color_primaries = ctx->color_primaries;
62 if (ctx->transfer_characteristics >= 0)
63 clc->transfer_characteristics = ctx->transfer_characteristics;
64 if (ctx->matrix_coefficients >= 0)
65 clc->matrix_coefficients = ctx->matrix_coefficients;
68 if (ctx->color_range >= 0) {
75 clc->color_range = ctx->color_range;
79 if (ctx->chroma_sample_position >= 0) {
84 clc->chroma_sample_position = ctx->chroma_sample_position;
88 if (ctx->tick_rate.num && ctx->tick_rate.den) {
91 av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den,
98 if (ctx->num_ticks_per_picture > 0) {
101 ctx->num_ticks_per_picture - 1;
111 AV1MetadataContext *ctx = bsf->priv_data;
125 if (ctx->td == BSF_ELEMENT_REMOVE)
127 } else if (pkt && ctx->td == BSF_ELEMENT_INSERT) {
129 &ctx->td_obu, NULL);
136 if (ctx->delete_padding) {
155 AV1MetadataContext *ctx = bsf->priv_data;
157 ctx->td_obu = (AV1RawOBU) {