Lines Matching refs:i
95 RK_S32 i; in hal_record_scaling_list() local
106 for (i = 0; i < (sizeId == 0 ? 16 : 64); i++) { in hal_record_scaling_list()
107 … pScalingFactor_out->scalingfactor0[nIndex++] = (RK_U8)pScalingList->sl[sizeId][listId][i]; in hal_record_scaling_list()
110 for (i = 0; i < 64; i ++) { in hal_record_scaling_list()
111 … pScalingFactor_out->scalingfactor0[nIndex++] = (RK_U8)pScalingList->sl[sizeId][listId][i]; in hal_record_scaling_list()
113 for (i = 0; i < 128; i ++) { in hal_record_scaling_list()
123 for (i = 0; i < 16; i ++) { in hal_record_scaling_list()
124 temp16[i] = (RK_U8)pScalingList->sl[0][listId][i]; in hal_record_scaling_list()
126 for (i = 0; i < 4; i ++) { in hal_record_scaling_list()
127 pScalingFactor_out->scalingfactor1[nIndex++] = temp16[i]; in hal_record_scaling_list()
128 pScalingFactor_out->scalingfactor1[nIndex++] = temp16[i + 4]; in hal_record_scaling_list()
129 pScalingFactor_out->scalingfactor1[nIndex++] = temp16[i + 8]; in hal_record_scaling_list()
130 pScalingFactor_out->scalingfactor1[nIndex++] = temp16[i + 12]; in hal_record_scaling_list()
146 for (i = 0; i < 4; i ++) { in hal_record_scaling_list()
157 for (i = 0; i < 4; i++) { in hal_record_scaling_list()
158 tmpBuf[4 * 0 + i] = p[i * 4 + 0]; in hal_record_scaling_list()
159 tmpBuf[4 * 1 + i] = p[i * 4 + 1]; in hal_record_scaling_list()
160 tmpBuf[4 * 2 + i] = p[i * 4 + 2]; in hal_record_scaling_list()
161 tmpBuf[4 * 3 + i] = p[i * 4 + 3]; in hal_record_scaling_list()
169 for (i = 0; i < 8; i++) { in hal_record_scaling_list()
170 tmpBuf[8 * 0 + i] = p[i * 8 + 0]; in hal_record_scaling_list()
171 tmpBuf[8 * 1 + i] = p[i * 8 + 1]; in hal_record_scaling_list()
172 tmpBuf[8 * 2 + i] = p[i * 8 + 2]; in hal_record_scaling_list()
173 tmpBuf[8 * 3 + i] = p[i * 8 + 3]; in hal_record_scaling_list()
174 tmpBuf[8 * 4 + i] = p[i * 8 + 4]; in hal_record_scaling_list()
175 tmpBuf[8 * 5 + i] = p[i * 8 + 5]; in hal_record_scaling_list()
176 tmpBuf[8 * 6 + i] = p[i * 8 + 6]; in hal_record_scaling_list()
177 tmpBuf[8 * 7 + i] = p[i * 8 + 7]; in hal_record_scaling_list()
185 for (i = 0; i < 8; i++) { in hal_record_scaling_list()
186 tmpBuf[8 * 0 + i] = p[i * 8 + 0]; in hal_record_scaling_list()
187 tmpBuf[8 * 1 + i] = p[i * 8 + 1]; in hal_record_scaling_list()
188 tmpBuf[8 * 2 + i] = p[i * 8 + 2]; in hal_record_scaling_list()
189 tmpBuf[8 * 3 + i] = p[i * 8 + 3]; in hal_record_scaling_list()
190 tmpBuf[8 * 4 + i] = p[i * 8 + 4]; in hal_record_scaling_list()
191 tmpBuf[8 * 5 + i] = p[i * 8 + 5]; in hal_record_scaling_list()
192 tmpBuf[8 * 6 + i] = p[i * 8 + 6]; in hal_record_scaling_list()
193 tmpBuf[8 * 7 + i] = p[i * 8 + 7]; in hal_record_scaling_list()
201 for (i = 0; i < 8; i++) { in hal_record_scaling_list()
202 tmpBuf[8 * 0 + i] = p[i * 8 + 0]; in hal_record_scaling_list()
203 tmpBuf[8 * 1 + i] = p[i * 8 + 1]; in hal_record_scaling_list()
204 tmpBuf[8 * 2 + i] = p[i * 8 + 2]; in hal_record_scaling_list()
205 tmpBuf[8 * 3 + i] = p[i * 8 + 3]; in hal_record_scaling_list()
206 tmpBuf[8 * 4 + i] = p[i * 8 + 4]; in hal_record_scaling_list()
207 tmpBuf[8 * 5 + i] = p[i * 8 + 5]; in hal_record_scaling_list()
208 tmpBuf[8 * 6 + i] = p[i * 8 + 6]; in hal_record_scaling_list()
209 tmpBuf[8 * 7 + i] = p[i * 8 + 7]; in hal_record_scaling_list()
218 for (i = 0; i < 4; i++) { in hal_record_scaling_list()
219 tmpBuf[4 * 0 + i] = p[i * 4 + 0]; in hal_record_scaling_list()
220 tmpBuf[4 * 1 + i] = p[i * 4 + 1]; in hal_record_scaling_list()
221 tmpBuf[4 * 2 + i] = p[i * 4 + 2]; in hal_record_scaling_list()
222 tmpBuf[4 * 3 + i] = p[i * 4 + 3]; in hal_record_scaling_list()
232 RK_U32 i, j; in hal_h265d_slice_rpl() local
240 for (i = 0; i < 8; i++ ) { in hal_h265d_slice_rpl()
241 if (dxva_cxt->pp.RefPicSetStCurrBefore[i] != 0xff) { in hal_h265d_slice_rpl()
245 if (dxva_cxt->pp.RefPicSetStCurrAfter[i] != 0xff) { in hal_h265d_slice_rpl()
249 if (dxva_cxt->pp.RefPicSetLtCurr[i] != 0xff) { in hal_h265d_slice_rpl()
274 for (i = 0; i < MPP_ARRAY_ELEMS(cand_lists); i++) { in hal_h265d_slice_rpl()
277 if (cand_lists[i] == ST_CURR_BEF) { in hal_h265d_slice_rpl()
280 } else if (cand_lists[i] == ST_CURR_AFT) { in hal_h265d_slice_rpl()
296 for (i = 0; i < sh->nb_refs[list_idx]; i++) { in hal_h265d_slice_rpl()
297 int idx = sh->list_entry_lx[list_idx][i]; in hal_h265d_slice_rpl()
298 rpl->dpb_index[i] = rpl_tmp.dpb_index[idx]; in hal_h265d_slice_rpl()
313 RK_S32 i = 0, j = 0; in hal_h265d_slice_hw_rps() local
323 for (i = 0; i < 32; i ++) { in hal_h265d_slice_hw_rps()
324 mpp_put_bits(&bp, dxva_cxt->pp.sps_lt_rps[i].lt_ref_pic_poc_lsb, 16); in hal_h265d_slice_hw_rps()
325 mpp_put_bits(&bp, dxva_cxt->pp.sps_lt_rps[i].used_by_curr_pic_lt_flag, 1); in hal_h265d_slice_hw_rps()
329 for (i = 0; i < 64; i++) { in hal_h265d_slice_hw_rps()
330 if (i < dxva_cxt->pp.num_short_term_ref_pic_sets) { in hal_h265d_slice_hw_rps()
332 mpp_put_bits(&bp, dxva_cxt->pp.sps_st_rps[i].num_negative_pics, 4); in hal_h265d_slice_hw_rps()
333 mpp_put_bits(&bp, dxva_cxt->pp.sps_st_rps[i].num_positive_pics, 4); in hal_h265d_slice_hw_rps()
334 for ( j = 0; j < dxva_cxt->pp.sps_st_rps[i].num_negative_pics; j++) { in hal_h265d_slice_hw_rps()
336 mpp_put_bits(&bp, dxva_cxt->pp.sps_st_rps[i].delta_poc_s0[j], 16); in hal_h265d_slice_hw_rps()
337 mpp_put_bits(&bp, dxva_cxt->pp.sps_st_rps[i].s0_used_flag[j], 1); in hal_h265d_slice_hw_rps()
340 for (j = 0; j < dxva_cxt->pp.sps_st_rps[i].num_positive_pics; j++) { in hal_h265d_slice_hw_rps()
341 mpp_put_bits(&bp, dxva_cxt->pp.sps_st_rps[i].delta_poc_s1[j], 16); in hal_h265d_slice_hw_rps()
342 mpp_put_bits(&bp, dxva_cxt->pp.sps_st_rps[i].s1_used_flag[j], 1); in hal_h265d_slice_hw_rps()
346 …for ( j = dxva_cxt->pp.sps_st_rps[i].num_negative_pics + dxva_cxt->pp.sps_st_rps[i].num_positive_p… in hal_h265d_slice_hw_rps()
364 for (i = 0; i < 400 * 8 / 4; i++) { in hal_h265d_slice_hw_rps()
365 h265h_dbg(H265H_DBG_RPS, "rps[%3d] = 0x%08x\n", i, tmp[i]); in hal_h265d_slice_hw_rps()
372 RK_U32 i, j, k; in hal_h265d_slice_output_rps() local
467 for (i = 0; i < dxva_cxt->pp.num_extra_slice_header_bits; i++) in hal_h265d_slice_output_rps()
527 for (i = 0; i < nb_refs; i++) { in hal_h265d_slice_output_rps()
530 if ((RK_U32)i < nb_sps) { in hal_h265d_slice_output_rps()
595 for (i = 0; i < (RK_S32)MPP_ARRAY_ELEMS(dxva_cxt->pp.RefPicList); i++) { in hal_h265d_slice_output_rps()
596 if (dxva_cxt->pp.RefPicList[i].bPicEntry != 0xff) { in hal_h265d_slice_output_rps()
597 …(H265H_DBG_RPS, "dxva_cxt->pp.RefPicList[i].bPicEntry = %d", dxva_cxt->pp.RefPicList[i].bPicEntry); in hal_h265d_slice_output_rps()
610 for (i = 0; (RK_U32)i < sh.nb_refs[L0]; i++) in hal_h265d_slice_output_rps()
611 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh.list_entry_lx[0][i]); in hal_h265d_slice_output_rps()
617 for (i = 0; (RK_U32)i < sh.nb_refs[L1]; i++) in hal_h265d_slice_output_rps()
618 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh.list_entry_lx[1][i]); in hal_h265d_slice_output_rps()
632 for (i = 0; i < ref.refPicList[j].nb_refs; i++) { in hal_h265d_slice_output_rps()
634 index = ref.refPicList[j].dpb_index[i]; in hal_h265d_slice_output_rps()
637 rps_pic_info[slice_idx][j][i].dpb_index = index; in hal_h265d_slice_output_rps()
638 rps_pic_info[slice_idx][j][i].is_long_term in hal_h265d_slice_output_rps()
662 for (i = 0; i < 15; i++) { in hal_h265d_slice_output_rps()
663 mpp_put_bits(&bp, rps_pic_info[k][j][i].is_long_term, 1); in hal_h265d_slice_output_rps()
664 if (j == 1 && i == 4) { in hal_h265d_slice_output_rps()
667 mpp_put_bits(&bp, rps_pic_info[k][j][i].dpb_index, 4); in hal_h265d_slice_output_rps()
697 RK_U32 i, j, pos; in hal_h265d_output_scalinglist_packet() local
705 for (i = 0; i < 6; i++) { in hal_h265d_output_scalinglist_packet()
708 sl.sl[0][i][pos] = dxva_cxt->qm.ucScalingLists0[i][j]; in hal_h265d_output_scalinglist_packet()
713 sl.sl[1][i][pos] = dxva_cxt->qm.ucScalingLists1[i][j]; in hal_h265d_output_scalinglist_packet()
714 sl.sl[2][i][pos] = dxva_cxt->qm.ucScalingLists2[i][j]; in hal_h265d_output_scalinglist_packet()
716 if (i < 2) in hal_h265d_output_scalinglist_packet()
717 sl.sl[3][i][pos] = dxva_cxt->qm.ucScalingLists3[i][j]; in hal_h265d_output_scalinglist_packet()
720 sl.sl_dc[0][i] = dxva_cxt->qm.ucScalingListDCCoefSizeID2[i]; in hal_h265d_output_scalinglist_packet()
721 if (i < 2) in hal_h265d_output_scalinglist_packet()
722 sl.sl_dc[1][i] = dxva_cxt->qm.ucScalingListDCCoefSizeID3[i]; in hal_h265d_output_scalinglist_packet()