Home | History | Annotate | Download | only in media

Lines Matching refs:sps

112   // If we are in kDecoding, we can resume without processing an SPS.
227 const media::H264SPS* sps = parser_.GetSPS(pps->seq_parameter_set_id);
228 DCHECK(sps);
235 #define FROM_SPS_TO_PP(a) pic_param.a = sps->a;
236 #define FROM_SPS_TO_PP2(a, b) pic_param.b = sps->a;
246 #define FROM_SPS_TO_PP_SF(a) pic_param.seq_fields.bits.a = sps->a;
247 #define FROM_SPS_TO_PP_SF2(a, b) pic_param.seq_fields.bits.b = sps->a;
255 pic_param.seq_fields.bits.MinLumaBiPredSize8x8 = (sps->level_idc >= 31);
303 pic_param.num_ref_frames = sps->max_num_ref_frames;
328 const media::H264SPS* sps = parser_.GetSPS(pps->seq_parameter_set_id);
329 DCHECK(sps);
332 iq_matrix_buf.ScalingList4x4[i][j] = sps->scaling_list4x4[i][j];
337 iq_matrix_buf.ScalingList8x8[i][j] = sps->scaling_list8x8[i][j];
350 const media::H264SPS* sps = parser_.GetSPS(pps->seq_parameter_set_id);
351 DCHECK(sps);
548 const media::H264SPS* sps = parser_.GetSPS(curr_sps_id_);
553 switch (sps->pic_order_cnt_type) {
619 if (sps->num_ref_frames_in_pic_order_cnt_cycle != 0)
629 if (sps->num_ref_frames_in_pic_order_cnt_cycle == 0) {
636 sps->num_ref_frames_in_pic_order_cnt_cycle;
638 sps->num_ref_frames_in_pic_order_cnt_cycle;
641 sps->expected_delta_per_pic_order_cnt_cycle;
644 expected_pic_order_cnt += sps->offset_for_ref_frame[i];
648 expected_pic_order_cnt += sps->offset_for_non_ref_pic;
654 sps->offset_for_top_to_bottom_field +
661 sps->offset_for_top_to_bottom_field +
701 DVLOG(1) << "Invalid pic_order_cnt_type: " << sps->pic_order_cnt_type;
1405 bool VaapiH264Decoder::UpdateMaxNumReorderFrames(const media::H264SPS* sps) {
1406 if (sps->vui_parameters_present_flag && sps->bitstream_restriction_flag) {
1408 base::checked_cast<size_t>(sps->max_num_reorder_frames);
1421 if (sps->constraint_set3_flag) {
1422 switch (sps->profile_idc) {
1443 const media::H264SPS* sps = parser_.GetSPS(sps_id);
1444 DCHECK(sps);
1445 DVLOG(4) << "Processing SPS";
1449 if (sps->frame_mbs_only_flag == 0) {
1455 if (sps->gaps_in_frame_num_value_allowed_flag) {
1461 curr_sps_id_ = sps->seq_parameter_set_id;
1465 int width_mb = sps->pic_width_in_mbs_minus1 + 1;
1466 sps->frame_mbs_only_flag) *
1467 (sps->pic_height_in_map_units_minus1 + 1);
1476 // Already have surfaces and this SPS keeps the same resolution,
1484 max_pic_order_cnt_lsb_ = 1 << (sps->log2_max_pic_order_cnt_lsb_minus4 + 4);
1485 max_frame_num_ = 1 << (sps->log2_max_frame_num_minus4 + 4);
1487 int level = sps->level_idc;
1502 if (!UpdateMaxNumReorderFrames(sps))
1589 // decoding state not only starting at/resuming from an SPS, but also from
1592 // Otherwise we just look for an SPS and don't produce any output frames.
1613 // TODO(posciak): the IDR may require an SPS that we don't have
1615 // to keep going until the next SPS in the stream.
1617 // We need an SPS, skip this IDR and keep looking.