Lines Matching refs:ps_ent_ctxt
604 static IH264E_ERROR_T ih264e_write_coeff8x8_cavlc(entropy_ctxt_t *ps_ent_ctxt, in ih264e_write_coeff8x8_cavlc() argument
614 bitstrm_t *ps_bitstream = ps_ent_ctxt->ps_bitstrm; in ih264e_write_coeff8x8_cavlc()
615 UWORD8 *pu1_zero_run = ps_ent_ctxt->au1_zero_run, *pu1_ngbr_avbl; in ih264e_write_coeff8x8_cavlc()
698 static IH264E_ERROR_T ih264e_encode_residue(entropy_ctxt_t *ps_ent_ctxt, in ih264e_encode_residue() argument
706 void *pv_mb_coeff_data = ps_ent_ctxt->pv_mb_coeff_data; in ih264e_encode_residue()
709 bitstrm_t *ps_bitstream = ps_ent_ctxt->ps_bitstrm; in ih264e_encode_residue()
712 UWORD8 *pu1_zero_run = ps_ent_ctxt->au1_zero_run; in ih264e_encode_residue()
719 UWORD8 *pu1_slice_idx = ps_ent_ctxt->pu1_slice_idx; in ih264e_encode_residue()
733 i4_mb_x = ps_ent_ctxt->i4_mb_x; in ih264e_encode_residue()
734 i4_mb_y = ps_ent_ctxt->i4_mb_y; in ih264e_encode_residue()
735 pu1_slice_idx += (i4_mb_y * ps_ent_ctxt->i4_wd_mbs); in ih264e_encode_residue()
741 … (pu1_slice_idx[i4_mb_x-ps_ent_ctxt->i4_wd_mbs] != pu1_slice_idx[i4_mb_x]))? 0 : 1; in ih264e_encode_residue()
744 pu1_top_nnz = ps_ent_ctxt->pu1_top_nnz_luma[ps_ent_ctxt->i4_mb_x]; in ih264e_encode_residue()
745 pu1_left_nnz = (UWORD8 *)&ps_ent_ctxt->u4_left_nnz_luma; in ih264e_encode_residue()
786 …error_status = ih264e_write_coeff8x8_cavlc(ps_ent_ctxt, pi2_res_block, au1_nnz, au2_sig_coeff_map,… in ih264e_encode_residue()
808 …error_status = ih264e_write_coeff8x8_cavlc(ps_ent_ctxt, pi2_res_block, au1_nnz, au2_sig_coeff_map,… in ih264e_encode_residue()
830 …error_status = ih264e_write_coeff8x8_cavlc(ps_ent_ctxt, pi2_res_block, au1_nnz, au2_sig_coeff_map,… in ih264e_encode_residue()
851 …error_status = ih264e_write_coeff8x8_cavlc(ps_ent_ctxt, pi2_res_block, au1_nnz, au2_sig_coeff_map,… in ih264e_encode_residue()
875 pu1_top_nnz = ps_ent_ctxt->pu1_top_nnz_cbcr[ps_ent_ctxt->i4_mb_x]; in ih264e_encode_residue()
876 pu1_left_nnz = (UWORD8 *) &ps_ent_ctxt->u4_left_nnz_cbcr; in ih264e_encode_residue()
895 …error_status = ih264e_write_coeff8x8_cavlc(ps_ent_ctxt, pi2_res_block, au1_nnz, au2_sig_coeff_map,… in ih264e_encode_residue()
916 …error_status = ih264e_write_coeff8x8_cavlc(ps_ent_ctxt, pi2_res_block, au1_nnz, au2_sig_coeff_map,… in ih264e_encode_residue()
925 ps_ent_ctxt->pv_mb_coeff_data = pv_mb_coeff_data; in ih264e_encode_residue()
952 IH264E_ERROR_T ih264e_write_islice_mb_cavlc(entropy_ctxt_t *ps_ent_ctxt) in ih264e_write_islice_mb_cavlc() argument
958 bitstrm_t *ps_bitstream = ps_ent_ctxt->ps_bitstrm; in ih264e_write_islice_mb_cavlc()
961 UWORD8 *pu1_byte = ps_ent_ctxt->pv_mb_header_data; in ih264e_write_islice_mb_cavlc()
1063 UWORD32 u4_transform_size_8x8_flag = ps_ent_ctxt->i1_transform_8x8_mode_flag; in ih264e_write_islice_mb_cavlc()
1135 ps_ent_ctxt->u4_header_bits[0] += bitstream_end_offset - bitstream_start_offset; in ih264e_write_islice_mb_cavlc()
1141 error_status = ih264e_encode_residue(ps_ent_ctxt, mb_type, cbp); in ih264e_write_islice_mb_cavlc()
1145 ps_ent_ctxt->u4_residue_bits[0] += bitstream_end_offset - bitstream_start_offset; in ih264e_write_islice_mb_cavlc()
1148 ps_ent_ctxt->pv_mb_header_data = pu1_byte; in ih264e_write_islice_mb_cavlc()
1174 IH264E_ERROR_T ih264e_write_pslice_mb_cavlc(entropy_ctxt_t *ps_ent_ctxt) in ih264e_write_pslice_mb_cavlc() argument
1180 bitstrm_t *ps_bitstream = ps_ent_ctxt->ps_bitstrm; in ih264e_write_pslice_mb_cavlc()
1183 UWORD8 *pu1_byte = ps_ent_ctxt->pv_mb_header_data; in ih264e_write_pslice_mb_cavlc()
1227 (*ps_ent_ctxt->pi4_mb_skip_run)++; in ih264e_write_pslice_mb_cavlc()
1230 ps_ent_ctxt->pv_mb_header_data = pu1_byte; in ih264e_write_pslice_mb_cavlc()
1233 ps_ent_ctxt->u4_left_nnz_luma = 0; in ih264e_write_pslice_mb_cavlc()
1234 nnz = (UWORD32 *)ps_ent_ctxt->pu1_top_nnz_luma[ps_ent_ctxt->i4_mb_x]; in ih264e_write_pslice_mb_cavlc()
1236 ps_ent_ctxt->u4_left_nnz_cbcr = 0; in ih264e_write_pslice_mb_cavlc()
1237 nnz = (UWORD32 *)ps_ent_ctxt->pu1_top_nnz_cbcr[ps_ent_ctxt->i4_mb_x]; in ih264e_write_pslice_mb_cavlc()
1241 error_status = ih264e_encode_residue(ps_ent_ctxt, P16x16, 0); in ih264e_write_pslice_mb_cavlc()
1245 ps_ent_ctxt->u4_header_bits[is_inter] += bitstream_end_offset - bitstream_start_offset; in ih264e_write_pslice_mb_cavlc()
1255 PUT_BITS_UEV(ps_bitstream, *ps_ent_ctxt->pi4_mb_skip_run, error_status, "mb skip run"); in ih264e_write_pslice_mb_cavlc()
1258 *ps_ent_ctxt->pi4_mb_skip_run = 0; in ih264e_write_pslice_mb_cavlc()
1335 UWORD32 u4_transform_size_8x8_flag = ps_ent_ctxt->i1_transform_8x8_mode_flag; in ih264e_write_pslice_mb_cavlc()
1431 ps_ent_ctxt->u4_header_bits[is_inter] += bitstream_end_offset - bitstream_start_offset; in ih264e_write_pslice_mb_cavlc()
1437 error_status = ih264e_encode_residue(ps_ent_ctxt, mb_type, cbp); in ih264e_write_pslice_mb_cavlc()
1442 ps_ent_ctxt->u4_residue_bits[is_inter] += bitstream_end_offset - bitstream_start_offset; in ih264e_write_pslice_mb_cavlc()
1445 ps_ent_ctxt->pv_mb_header_data = pu1_byte; in ih264e_write_pslice_mb_cavlc()
1472 IH264E_ERROR_T ih264e_write_bslice_mb_cavlc(entropy_ctxt_t *ps_ent_ctxt) in ih264e_write_bslice_mb_cavlc() argument
1478 bitstrm_t *ps_bitstream = ps_ent_ctxt->ps_bitstrm; in ih264e_write_bslice_mb_cavlc()
1481 UWORD8 *pu1_byte = ps_ent_ctxt->pv_mb_header_data; in ih264e_write_bslice_mb_cavlc()
1524 (*ps_ent_ctxt->pi4_mb_skip_run)++; in ih264e_write_bslice_mb_cavlc()
1527 ps_ent_ctxt->pv_mb_header_data = pu1_byte; in ih264e_write_bslice_mb_cavlc()
1530 ps_ent_ctxt->u4_left_nnz_luma = 0; in ih264e_write_bslice_mb_cavlc()
1531 nnz = (UWORD32 *)ps_ent_ctxt->pu1_top_nnz_luma[ps_ent_ctxt->i4_mb_x]; in ih264e_write_bslice_mb_cavlc()
1533 ps_ent_ctxt->u4_left_nnz_cbcr = 0; in ih264e_write_bslice_mb_cavlc()
1534 nnz = (UWORD32 *)ps_ent_ctxt->pu1_top_nnz_cbcr[ps_ent_ctxt->i4_mb_x]; in ih264e_write_bslice_mb_cavlc()
1538 error_status = ih264e_encode_residue(ps_ent_ctxt, B16x16, 0); in ih264e_write_bslice_mb_cavlc()
1542 ps_ent_ctxt->u4_header_bits[is_inter] += bitstream_end_offset in ih264e_write_bslice_mb_cavlc()
1554 PUT_BITS_UEV(ps_bitstream, *ps_ent_ctxt->pi4_mb_skip_run, error_status, "mb skip run"); in ih264e_write_bslice_mb_cavlc()
1557 *ps_ent_ctxt->pi4_mb_skip_run = 0; in ih264e_write_bslice_mb_cavlc()
1634 UWORD32 u4_transform_size_8x8_flag = ps_ent_ctxt->i1_transform_8x8_mode_flag; in ih264e_write_bslice_mb_cavlc()
1753 ps_ent_ctxt->u4_header_bits[is_inter] += bitstream_end_offset - bitstream_start_offset; in ih264e_write_bslice_mb_cavlc()
1759 error_status = ih264e_encode_residue(ps_ent_ctxt, mb_type, cbp); in ih264e_write_bslice_mb_cavlc()
1764 ps_ent_ctxt->u4_residue_bits[is_inter] += bitstream_end_offset - bitstream_start_offset; in ih264e_write_bslice_mb_cavlc()
1767 ps_ent_ctxt->pv_mb_header_data = pu1_byte; in ih264e_write_bslice_mb_cavlc()