Lines Matching refs:pps
620 H264PPS* pps) {
630 res = ParseScalingList(arraysize(pps->scaling_list4x4[i]),
631 pps->scaling_list4x4[i],
637 DefaultScalingList4x4(i, pps->scaling_list4x4);
643 i, kDefault4x4Intra, kDefault4x4Inter, pps->scaling_list4x4);
649 pps->scaling_list4x4);
654 if (pps->transform_8x8_mode_flag) {
659 res = ParseScalingList(arraysize(pps->scaling_list8x8[i]),
660 pps->scaling_list8x8[i],
666 DefaultScalingList8x8(i, pps->scaling_list8x8);
672 i, kDefault8x8Intra, kDefault8x8Inter, pps->scaling_list8x8);
678 pps->scaling_list8x8);
931 std::unique_ptr<H264PPS> pps(new H264PPS());
933 READ_UE_OR_RETURN(&pps->pic_parameter_set_id);
934 READ_UE_OR_RETURN(&pps->seq_parameter_set_id);
935 TRUE_OR_RETURN(pps->seq_parameter_set_id < 32);
937 if (active_SPSes_.find(pps->seq_parameter_set_id) == active_SPSes_.end()) {
938 DVLOG(1) << "Invalid stream, no SPS id: " << pps->seq_parameter_set_id;
942 sps = GetSPS(pps->seq_parameter_set_id);
945 READ_BOOL_OR_RETURN(&pps->entropy_coding_mode_flag);
946 READ_BOOL_OR_RETURN(&pps->bottom_field_pic_order_in_frame_present_flag);
948 READ_UE_OR_RETURN(&pps->num_slice_groups_minus1);
949 if (pps->num_slice_groups_minus1 > 1) {
954 READ_UE_OR_RETURN(&pps->num_ref_idx_l0_default_active_minus1);
955 TRUE_OR_RETURN(pps->num_ref_idx_l0_default_active_minus1 < 32);
957 READ_UE_OR_RETURN(&pps->num_ref_idx_l1_default_active_minus1);
958 TRUE_OR_RETURN(pps->num_ref_idx_l1_default_active_minus1 < 32);
960 READ_BOOL_OR_RETURN(&pps->weighted_pred_flag);
961 READ_BITS_OR_RETURN(2, &pps->weighted_bipred_idc);
962 TRUE_OR_RETURN(pps->weighted_bipred_idc < 3);
964 READ_SE_OR_RETURN(&pps->pic_init_qp_minus26);
965 IN_RANGE_OR_RETURN(pps->pic_init_qp_minus26, -26, 25);
967 READ_SE_OR_RETURN(&pps->pic_init_qs_minus26);
968 IN_RANGE_OR_RETURN(pps->pic_init_qs_minus26, -26, 25);
970 READ_SE_OR_RETURN(&pps->chroma_qp_index_offset);
971 IN_RANGE_OR_RETURN(pps->chroma_qp_index_offset, -12, 12);
972 pps->second_chroma_qp_index_offset = pps->chroma_qp_index_offset;
974 READ_BOOL_OR_RETURN(&pps->deblocking_filter_control_present_flag);
975 READ_BOOL_OR_RETURN(&pps->constrained_intra_pred_flag);
976 READ_BOOL_OR_RETURN(&pps->redundant_pic_cnt_present_flag);
979 READ_BOOL_OR_RETURN(&pps->transform_8x8_mode_flag);
980 READ_BOOL_OR_RETURN(&pps->pic_scaling_matrix_present_flag);
982 if (pps->pic_scaling_matrix_present_flag) {
984 res = ParsePPSScalingLists(*sps, pps.get());
989 READ_SE_OR_RETURN(&pps->second_chroma_qp_index_offset);
993 *pps_id = pps->pic_parameter_set_id;
994 active_PPSes_[*pps_id] = std::move(pps);
1196 const H264PPS* pps;
1212 pps = GetPPS(shdr->pic_parameter_set_id);
1213 TRUE_OR_RETURN(pps);
1215 sps = GetSPS(pps->seq_parameter_set_id);
1239 if (pps->bottom_field_pic_order_in_frame_present_flag &&
1246 if (pps->bottom_field_pic_order_in_frame_present_flag &&
1254 if (pps->redundant_pic_cnt_present_flag) {
1270 pps->num_ref_idx_l0_default_active_minus1;
1273 pps->num_ref_idx_l1_default_active_minus1;
1293 if ((pps->weighted_pred_flag && (shdr->IsPSlice() || shdr->IsSPSlice())) ||
1294 (pps->weighted_bipred_idc == 1 && shdr->IsBSlice())) {
1306 if (pps->entropy_coding_mode_flag && !shdr->IsISlice() &&
1320 if (pps->deblocking_filter_control_present_flag) {
1333 if (pps->num_slice_groups_minus1 > 0) {