Lines Matching defs:seq
249 static int get_relative_dist(const AV1RawSequenceHeader *seq,
253 unsigned int m = 1 << seq->order_hint_bits_minus_1;
260 const AV1RawSequenceHeader *seq = s->raw_seq;
274 dist = get_relative_dist(seq, ref_hint, header->order_hint);
277 get_relative_dist(seq, ref_hint, forward_hint) > 0) {
283 get_relative_dist(seq, ref_hint, backward_hint) < 0) {
303 if (get_relative_dist(seq, ref_hint, forward_hint) < 0) {
305 get_relative_dist(seq, ref_hint, second_forward_hint) > 0) {
437 const AV1RawSequenceHeader *seq = s->raw_seq;
448 if (seq->seq_profile == 2 && seq->color_config.high_bitdepth)
449 bit_depth = seq->color_config.twelve_bit ? 12 : 10;
450 else if (seq->seq_profile <= 2)
451 bit_depth = seq->color_config.high_bitdepth ? 10 : 8;
454 "Unknown AV1 profile %d.\n", seq->seq_profile);
458 if (!seq->color_config.mono_chrome) {
460 if (seq->color_config.subsampling_x == 0 &&
461 seq->color_config.subsampling_y == 0) {
470 } else if (seq->color_config.subsampling_x == 1 &&
471 seq->color_config.subsampling_y == 0) {
480 } else if (seq->color_config.subsampling_x == 1 &&
481 seq->color_config.subsampling_y == 1) {
667 const AV1RawSequenceHeader *seq)
669 int width = seq->max_frame_width_minus_1 + 1;
670 int height = seq->max_frame_height_minus_1 + 1;
672 avctx->profile = seq->seq_profile;
673 avctx->level = seq->seq_level_idx[0];
676 seq->color_config.color_range ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG;
677 avctx->color_primaries = seq->color_config.color_primaries;
678 avctx->colorspace = seq->color_config.color_primaries;
679 avctx->color_trc = seq->color_config.transfer_characteristics;
681 switch (seq->color_config.chroma_sample_position) {
690 if (seq->film_grain_params_present)
702 if (seq->timing_info.num_units_in_display_tick &&
703 seq->timing_info.time_scale) {
705 seq->timing_info.num_units_in_display_tick,
706 seq->timing_info.time_scale,
708 if (seq->timing_info.equal_picture_interval)
709 avctx->ticks_per_frame = seq->timing_info.num_ticks_per_picture_minus_1 + 1;
748 AV1RawSequenceHeader *seq;
785 seq = ((CodedBitstreamAV1Context *)(s->cbc->priv_data))->sequence_header;
786 if (!seq) {
791 ret = set_context_with_sequence(avctx, seq);