Lines Matching refs:ctx

89     H264MetadataContext *ctx = bsf->priv_data;
124 ctx->aud_nal = (H264RawAUD) {
130 &ctx->aud_nal, NULL);
142 H264MetadataContext *ctx = bsf->priv_data;
146 if (ctx->sample_aspect_ratio.num && ctx->sample_aspect_ratio.den) {
157 av_reduce(&num, &den, ctx->sample_aspect_ratio.num,
158 ctx->sample_aspect_ratio.den, 65535);
177 if (ctx->field >= 0) { \
178 sps->vui.field = ctx->field; \
183 if (ctx->overscan_appropriate_flag >= 0) {
188 if (ctx->video_format >= 0 ||
189 ctx->video_full_range_flag >= 0 ||
190 ctx->colour_primaries >= 0 ||
191 ctx->transfer_characteristics >= 0 ||
192 ctx->matrix_coefficients >= 0) {
198 if (ctx->colour_primaries >= 0 ||
199 ctx->transfer_characteristics >= 0 ||
200 ctx->matrix_coefficients >= 0) {
211 if (ctx->chroma_sample_loc_type >= 0) {
213 ctx->chroma_sample_loc_type;
215 ctx->chroma_sample_loc_type;
220 if (ctx->tick_rate.num && ctx->tick_rate.den) {
223 av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den,
233 if (ctx->zero_new_constraint_set_flags) {
247 if (ctx->crop_ ## border >= 0) { \
248 if (ctx->crop_ ## border % unit != 0) { \
254 ctx->crop_ ## border / unit; \
264 if (ctx->level != LEVEL_UNSET) {
267 if (ctx->level == LEVEL_AUTO) {
308 level_idc = ctx->level;
336 H264MetadataContext *ctx = bsf->priv_data;
341 while (ff_cbs_sei_find_message(ctx->common.output, au,
379 if (ctx->display_orientation == BSF_ELEMENT_REMOVE ||
380 ctx->display_orientation == BSF_ELEMENT_INSERT) {
381 ff_cbs_sei_delete_message_type(ctx->common.output, au,
385 if (ctx->display_orientation == BSF_ELEMENT_INSERT) {
387 &ctx->display_orientation_payload;
442 if (!isnan(ctx->rotate)) {
444 (uint16_t)rint((ctx->rotate >= 0.0 ? ctx->rotate
445 : ctx->rotate + 360.0) *
449 if (ctx->flip) {
450 disp->hor_flip = !!(ctx->flip & FLIP_HORIZONTAL);
451 disp->ver_flip = !!(ctx->flip & FLIP_VERTICAL);
459 err = ff_cbs_sei_add_message(ctx->common.output, au, 1,
476 H264MetadataContext *ctx = bsf->priv_data;
481 if (ctx->aud == BSF_ELEMENT_REMOVE)
484 if (pkt && ctx->aud == BSF_ELEMENT_INSERT) {
507 seek_point = !ctx->done_first_au || has_sps ||
513 if (ctx->sei_user_data && seek_point) {
514 err = ff_cbs_sei_add_message(ctx->common.output, au, 1,
516 &ctx->sei_user_data_payload, NULL);
524 if (ctx->delete_filler) {
532 ff_cbs_sei_delete_message_type(ctx->common.output, au,
536 if (pkt && ctx->display_orientation != BSF_ELEMENT_PASS) {
544 ctx->done_first_au = 1;
558 H264MetadataContext *ctx = bsf->priv_data;
560 if (ctx->sei_user_data) {
561 SEIRawUserDataUnregistered *udu = &ctx->sei_user_data_payload;
566 for (i = j = 0; j < 32 && i < 64 && ctx->sei_user_data[i]; i++) {
568 c = ctx->sei_user_data[i];
583 if (j == 32 && ctx->sei_user_data[i] == '+') {
584 udu->data = (uint8_t*)ctx->sei_user_data + i + 1;