Lines Matching refs:ctx

70     H265MetadataContext *ctx = bsf->priv_data;
132 ctx->level_guess = desc->level_idc;
139 H265MetadataContext *ctx = bsf->priv_data;
141 if (ctx->level != LEVEL_UNSET) {
142 if (ctx->level == LEVEL_AUTO) {
143 if (ctx->level_guess) {
144 *level_idc = ctx->level_guess;
146 if (!ctx->level_warned) {
149 ctx->level_warned = 1;
154 *level_idc = ctx->level;
162 H265MetadataContext *ctx = bsf->priv_data;
164 if (ctx->tick_rate.num && ctx->tick_rate.den) {
167 av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den,
175 if (ctx->num_ticks_poc_diff_one > 0) {
177 ctx->num_ticks_poc_diff_one - 1;
179 } else if (ctx->num_ticks_poc_diff_one == 0) {
192 H265MetadataContext *ctx = bsf->priv_data;
196 if (ctx->sample_aspect_ratio.num && ctx->sample_aspect_ratio.den) {
207 av_reduce(&num, &den, ctx->sample_aspect_ratio.num,
208 ctx->sample_aspect_ratio.den, 65535);
234 if (ctx->video_format >= 0 ||
235 ctx->video_full_range_flag >= 0 ||
236 ctx->colour_primaries >= 0 ||
237 ctx->transfer_characteristics >= 0 ||
238 ctx->matrix_coefficients >= 0) {
240 SET_OR_INFER(sps->vui.video_format, ctx->video_format,
244 ctx->video_full_range_flag,
247 if (ctx->colour_primaries >= 0 ||
248 ctx->transfer_characteristics >= 0 ||
249 ctx->matrix_coefficients >= 0) {
252 ctx->colour_primaries,
256 ctx->transfer_characteristics,
260 ctx->matrix_coefficients,
269 if (ctx->chroma_sample_loc_type >= 0) {
271 ctx->chroma_sample_loc_type;
273 ctx->chroma_sample_loc_type;
278 if (ctx->tick_rate.num && ctx->tick_rate.den) {
281 av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den,
290 if (ctx->num_ticks_poc_diff_one > 0) {
292 ctx->num_ticks_poc_diff_one - 1;
294 } else if (ctx->num_ticks_poc_diff_one == 0) {
307 if (ctx->crop_ ## border >= 0) { \
308 if (ctx->crop_ ## border % unit != 0) { \
314 ctx->crop_ ## border / unit; \
335 H265MetadataContext *ctx = bsf->priv_data;
340 if (ctx->aud == BSF_ELEMENT_REMOVE)
343 if (pkt && ctx->aud == BSF_ELEMENT_INSERT) {
344 H265RawAUD *aud = &ctx->aud_nal;
381 if (ctx->level == LEVEL_AUTO && !ctx->level_guess)