Lines Matching refs:pSlice
164 static MPP_RET dec_ref_pic_marking(H264_SLICE_t *pSlice) in dec_ref_pic_marking() argument
171 H264dVideoCtx_t *p_Vid = pSlice->p_Vid; in dec_ref_pic_marking()
172 BitReadCtx_t *p_bitctx = &pSlice->p_Cur->bitctx; in dec_ref_pic_marking()
176 pSlice->drpm_used_bitlen = 0; in dec_ref_pic_marking()
178 if (pSlice->idr_flag || in dec_ref_pic_marking()
179 (pSlice->svc_extension_flag == 0 && pSlice->mvcExt.non_idr_flag == 0)) { in dec_ref_pic_marking()
180 READ_ONEBIT(p_bitctx, &pSlice->no_output_of_prior_pics_flag); in dec_ref_pic_marking()
181 p_Vid->no_output_of_prior_pics_flag = pSlice->no_output_of_prior_pics_flag; in dec_ref_pic_marking()
182 READ_ONEBIT(p_bitctx, &pSlice->long_term_reference_flag); in dec_ref_pic_marking()
184 READ_ONEBIT(p_bitctx, &pSlice->adaptive_ref_pic_buffering_flag); in dec_ref_pic_marking()
186 if (pSlice->adaptive_ref_pic_buffering_flag) { in dec_ref_pic_marking()
190 if (!pSlice->p_Cur->dec_ref_pic_marking_buffer[i]) in dec_ref_pic_marking()
191 pSlice->p_Cur->dec_ref_pic_marking_buffer[i] = mpp_calloc(H264_DRPM_t, 1); in dec_ref_pic_marking()
192 tmp_drpm = pSlice->p_Cur->dec_ref_pic_marking_buffer[i]; in dec_ref_pic_marking()
212 if (pSlice->dec_ref_pic_marking_buffer == NULL) { in dec_ref_pic_marking()
213 pSlice->dec_ref_pic_marking_buffer = tmp_drpm; in dec_ref_pic_marking()
215 tmp_drpm2 = pSlice->dec_ref_pic_marking_buffer; in dec_ref_pic_marking()
231 pSlice->drpm_used_bitlen = p_bitctx->used_bits - drpm_used_bits - (emulation_prevention * 8); in dec_ref_pic_marking()