Lines Matching refs:ppc
43 static void fill_scaling_lists(CUVIDHEVCPICPARAMS *ppc, const HEVCContext *s) in fill_scaling_lists() argument
52 ppc->ScalingList4x4[i][j] = sl->sl[0][i][pos]; in fill_scaling_lists()
57 ppc->ScalingList8x8[i][j] = sl->sl[1][i][pos]; in fill_scaling_lists()
58 ppc->ScalingList16x16[i][j] = sl->sl[2][i][pos]; in fill_scaling_lists()
61 ppc->ScalingList32x32[i][j] = sl->sl[3][i * 3][pos]; in fill_scaling_lists()
64 ppc->ScalingListDCCoeff16x16[i] = sl->sl_dc[0][i]; in fill_scaling_lists()
66 ppc->ScalingListDCCoeff32x32[i] = sl->sl_dc[1][i * 3]; in fill_scaling_lists()
79 CUVIDHEVCPICPARAMS *ppc = &pp->CodecSpecific.hevc; in nvdec_hevc_start_frame() local
196 if (pps->num_tile_columns > FF_ARRAY_ELEMS(ppc->column_width_minus1) || in nvdec_hevc_start_frame()
197 pps->num_tile_rows > FF_ARRAY_ELEMS(ppc->row_height_minus1)) { in nvdec_hevc_start_frame()
202 ppc->column_width_minus1[i] = pps->column_width[i] - 1; in nvdec_hevc_start_frame()
204 ppc->row_height_minus1[i] = pps->row_height[i] - 1; in nvdec_hevc_start_frame()
207 if (pps->chroma_qp_offset_list_len_minus1 > FF_ARRAY_ELEMS(ppc->cb_qp_offset_list) || in nvdec_hevc_start_frame()
208 pps->chroma_qp_offset_list_len_minus1 > FF_ARRAY_ELEMS(ppc->cr_qp_offset_list)) { in nvdec_hevc_start_frame()
213 ppc->cb_qp_offset_list[i] = pps->cb_qp_offset_list[i]; in nvdec_hevc_start_frame()
214 ppc->cr_qp_offset_list[i] = pps->cr_qp_offset_list[i]; in nvdec_hevc_start_frame()
218 if (s->rps[LT_CURR].nb_refs > FF_ARRAY_ELEMS(ppc->RefPicSetLtCurr) || in nvdec_hevc_start_frame()
219 s->rps[ST_CURR_BEF].nb_refs > FF_ARRAY_ELEMS(ppc->RefPicSetStCurrBefore) || in nvdec_hevc_start_frame()
220 s->rps[ST_CURR_AFT].nb_refs > FF_ARRAY_ELEMS(ppc->RefPicSetStCurrAfter)) { in nvdec_hevc_start_frame()
230 if (dpb_size >= FF_ARRAY_ELEMS(ppc->RefPicIdx)) { in nvdec_hevc_start_frame()
234 dpb_add(ppc, dpb_size++, ref); in nvdec_hevc_start_frame()
237 for (i = dpb_size; i < FF_ARRAY_ELEMS(ppc->RefPicIdx); i++) in nvdec_hevc_start_frame()
238 ppc->RefPicIdx[i] = -1; in nvdec_hevc_start_frame()
242 if (ppc->PicOrderCntVal[j] == s->rps[ST_CURR_BEF].list[i]) { in nvdec_hevc_start_frame()
243 ppc->RefPicSetStCurrBefore[i] = j; in nvdec_hevc_start_frame()
250 if (ppc->PicOrderCntVal[j] == s->rps[ST_CURR_AFT].list[i]) { in nvdec_hevc_start_frame()
251 ppc->RefPicSetStCurrAfter[i] = j; in nvdec_hevc_start_frame()
258 if (ppc->PicOrderCntVal[j] == s->rps[LT_CURR].list[i]) { in nvdec_hevc_start_frame()
259 ppc->RefPicSetLtCurr[i] = j; in nvdec_hevc_start_frame()
265 fill_scaling_lists(ppc, s); in nvdec_hevc_start_frame()