/external/libhevc/decoder/ |
ihevcd_bitstream.c | 86 * @param[in] ps_bitstrm 105 void ihevcd_bits_init(bitstrm_t *ps_bitstrm, 120 ps_bitstrm->u4_bit_ofst = 0; 121 ps_bitstrm->pu1_buf_base = pu1_buf; 122 ps_bitstrm->pu4_buf = pu4_buf; 123 ps_bitstrm->u4_cur_word = u4_cur_word; 124 ps_bitstrm->u4_nxt_word = u4_nxt_word; 126 ps_bitstrm->pu1_buf_max = pu1_buf + u4_numbytes + 8; 142 * @param[in] ps_bitstrm 155 void ihevcd_bits_flush(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits [all...] |
ihevcd_cabac.c | 116 * @param[in] ps_bitstrm 133 bitstrm_t *ps_bitstrm, 140 ASSERT(ps_bitstrm != NULL); 151 BITS_GET(ps_cabac->u4_ofst, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, 152 ps_bitstrm->u4_cur_word, ps_bitstrm->u4_nxt_word, (9 + RANGE_SHIFT)); 156 BITS_GET(ps_cabac->u4_ofst, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, 157 ps_bitstrm->u4_cur_word, ps_bitstrm->u4_nxt_word, 9) [all...] |
ihevcd_parse_headers.c | 126 * @param[in] ps_bitstrm 146 WORD32 ihevcd_parse_pred_wt_ofst(bitstrm_t *ps_bitstrm, 158 UEV_PARSE("luma_log2_weight_denom", value, ps_bitstrm); 163 SEV_PARSE("delta_chroma_log2_weight_denom", value, ps_bitstrm); 169 BITS_PARSE("luma_weight_l0_flag[ i ]", value, ps_bitstrm, 1); 179 BITS_PARSE("chroma_weight_l0_flag[ i ]", value, ps_bitstrm, 1); 196 SEV_PARSE("delta_luma_weight_l0[ i ]", value, ps_bitstrm); 201 SEV_PARSE("luma_offset_l0[ i ]", value, ps_bitstrm); 214 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm); 218 SEV_PARSE("delta_chroma_offset_l0[ i ][ j ]", value, ps_bitstrm); 956 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; local 1089 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; local 1193 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; local 1627 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; local [all...] |
ihevcd_cabac.h | 59 #define IHEVCD_CABAC_DECODE_BIN(u4_bin, ps_cabac, ps_bitstrm, ctxt_index) \ 103 BITS_GET(u4_bits, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, \ 104 ps_bitstrm->u4_cur_word, ps_bitstrm->u4_nxt_word, numbits); \ 117 #define IHEVCD_CABAC_DECODE_BIN(u4_bin, ps_cabac, ps_bitstrm, ctxt_index) \ 118 u4_bin = ihevcd_cabac_decode_bin(ps_cabac, ps_bitstrm, ctxt_index); 122 #define IHEVCD_CABAC_DECODE_BYPASS_BIN(u4_bin, ps_cabac, ps_bitstrm) \ 133 BIT_GET(u4_bits, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, [all...] |
ihevcd_bitstream.h | 201 void ihevcd_bits_init(bitstrm_t *ps_bitstrm, 204 void ihevcd_bits_flush(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits); 206 void ihevcd_bits_flush_to_byte_boundary(bitstrm_t *ps_bitstrm); 208 UWORD32 ihevcd_bits_nxt(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits); 210 UWORD32 ihevcd_bits_nxt32(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits); 213 UWORD32 ihevcd_bits_get(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits); 215 UWORD32 ihevcd_bits_num_bits_remaining(bitstrm_t *ps_bitstrm); 218 UWORD32 ihevcd_bits_num_bits_consumed(bitstrm_t *ps_bitstrm); 220 UWORD32 ihevcd_uev(bitstrm_t *ps_bitstrm); 222 WORD32 ihevcd_sev(bitstrm_t *ps_bitstrm); [all...] |
ihevcd_parse_slice_header.h | 38 IHEVCD_ERROR_T ihevcd_short_term_ref_pic_set(bitstrm_t *ps_bitstrm, 44 WORD32 ihevcd_parse_pred_wt_ofst(bitstrm_t *ps_bitstrm,
|
ihevcd_parse_slice_header.c | 89 * @param[in] ps_bitstrm 101 IHEVCD_ERROR_T ihevcd_operation_point_set(vps_t *ps_vps, bitstrm_t *ps_bitstrm, WORD32 ops_idx) 110 BITS_PARSE("list_entry_l0[ i ]", value, ps_bitstrm, 1); 140 WORD32 ihevcd_ref_pic_list_modification(bitstrm_t *ps_bitstrm, 164 BITS_PARSE("ref_pic_list_modification_flag_l0", value, ps_bitstrm, 1); 170 BITS_PARSE("list_entry_l0", value, ps_bitstrm, num_bits_list_entry); 179 BITS_PARSE("ref_pic_list_modification_flag_l1", value, ps_bitstrm, 1); 185 BITS_PARSE("list_entry_l1", value, ps_bitstrm, num_bits_list_entry); 229 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; local 245 BITS_PARSE("first_slice_in_pic_flag", first_slice_in_pic_flag, ps_bitstrm, 1) [all...] |
/external/libavc/encoder/ |
ih264e_bitstream.c | 79 * @param[in] ps_bitstrm 95 IH264E_ERROR_T ih264e_bitstrm_init(bitstrm_t *ps_bitstrm, 99 ps_bitstrm->pu1_strm_buffer = pu1_bitstrm_buf; 100 ps_bitstrm->u4_max_strm_size = u4_max_bitstrm_size; 103 ps_bitstrm->u4_strm_buf_offset = 0; 104 ps_bitstrm->u4_cur_word = 0; 105 ps_bitstrm->i4_bits_left_in_cw = WORD_SIZE; 106 ps_bitstrm->i4_zero_bytes_run = 0; 123 * @param[in] ps_bitstrm 140 IH264E_ERROR_T ih264e_put_bits(bitstrm_t *ps_bitstrm, [all...] |
ih264e_bitstream.h | 149 #define BYTE_ALIGNMENT(ps_bitstrm) ih264e_put_rbsp_trailing_bits(ps_bitstrm) 167 #define BITSTREAM_BYTE_ALIGN(ps_bitstrm) \ 168 if (ps_bitstrm->i4_bits_left_in_cw & 0x07) \ 170 const WORD32 len = (WORD32)((ps_bitstrm->i4_bits_left_in_cw) & 0x07);\ 171 ih264e_put_bits(ps_bitstrm, (UWORD32)((1 << len) - 1), len); \ 181 #define BITSTREAM_FLUSH(ps_bitstrm) \ 184 for (i = WORD_SIZE; i > ps_bitstrm->i4_bits_left_in_cw; i -= 8) \ 186 UWORD8 u1_next_byte = (ps_bitstrm->u4_cur_word >> (i - 8)) & 0xFF; \ 187 PUTBYTE_EPB(ps_bitstrm->pu1_strm_buffer, ps_bitstrm->u4_strm_buf_offset, [all...] |
ih264e_encode_header.h | 52 #define PUT_BITS(ps_bitstrm, code_val, code_len, ret_val, syntax_string) \ 54 ret_val |= ih264e_put_bits((ps_bitstrm), (code_val), (code_len)) 63 #define PUT_BITS_UEV(ps_bitstrm, code_val, ret_val, syntax_string) \ 65 ret_val |= ih264e_put_uev((ps_bitstrm), (code_val)) 74 #define PUT_BITS_SEV(ps_bitstrm, code_val, ret_val, syntax_string) \ 76 ret_val |= ih264e_put_sev((ps_bitstrm), (code_val)) 91 * @param[in] ps_bitstrm 103 bitstrm_t *ps_bitstrm, 115 * @param[in] ps_bitstrm 127 bitstrm_t *ps_bitstrm, [all...] |
ih264e_encode_header.c | 108 * @param[inout] ps_bitstrm 121 static WORD32 ih264e_generate_nal_unit_header(bitstrm_t *ps_bitstrm, 131 PUT_BITS(ps_bitstrm, 148 * @param[in] ps_bitstrm 158 WORD32 ih264e_generate_sps(bitstrm_t *ps_bitstrm, sps_t *ps_sps) 166 return_status |= ih264e_put_nal_start_code_prefix(ps_bitstrm, 1); 169 return_status |= ih264e_generate_nal_unit_header(ps_bitstrm, i1_nal_unit_type, i1_nal_ref_idc); 172 PUT_BITS(ps_bitstrm, ps_sps->u1_profile_idc, 8, return_status, "profile_idc"); 175 PUT_BITS(ps_bitstrm, ps_sps->u1_constraint_set0_flag, 1, return_status, "constrained_set0_flag"); 176 PUT_BITS(ps_bitstrm, ps_sps->u1_constraint_set1_flag, 1, return_status, "constrained_set1_flag") [all...] |
/external/libavc/decoder/ |
ih264d_vui.c | 53 /* ps_bitstrm Bitstream */ 69 dec_bit_stream_t *ps_bitstrm) 72 UWORD32 *pu4_bitstrm_ofst = &ps_bitstrm->u4_ofst; 73 UWORD32 *pu4_bitstrm_buf = ps_bitstrm->pu4_buffer; 79 ps_hrd->u1_bit_rate_scale = ih264d_get_bits_h264(ps_bitstrm, 4); 80 ps_hrd->u1_cpb_size_scale = ih264d_get_bits_h264(ps_bitstrm, 4); 90 ps_hrd->u1_cbr_flag[u1_index] = ih264d_get_bits_h264(ps_bitstrm, 1); 94 + ih264d_get_bits_h264(ps_bitstrm, 5); 96 + ih264d_get_bits_h264(ps_bitstrm, 5); 98 + ih264d_get_bits_h264(ps_bitstrm, 5) [all...] |
ih264d_bitstrm.c | 90 UWORD32 ih264d_get_bits_h264(dec_bit_stream_t *ps_bitstrm, UWORD32 u4_num_bits) 94 GETBITS(u4_code, ps_bitstrm->u4_ofst, ps_bitstrm->pu4_buffer, u4_num_bits); 115 UWORD32 ih264d_next_bits_h264(dec_bit_stream_t *ps_bitstrm, UWORD32 u4_num_bits) 117 UWORD32 u4_word_off = (ps_bitstrm->u4_ofst >> 5); 118 UWORD32 u4_bit_off = ps_bitstrm->u4_ofst & 0x1F; 119 UWORD32 *pu4_bitstream = ps_bitstrm->pu4_buffer; 150 WORD32 ih264d_flush_bits_h264(dec_bit_stream_t *ps_bitstrm, WORD32 u4_num_bits) 152 ps_bitstrm->u4_ofst += u4_num_bits; 154 if(ps_bitstrm->u4_ofst > ps_bitstrm->u4_max_ofst [all...] |
ih264d_sei.c | 55 /* ps_bitstrm Bitstream */ 71 dec_bit_stream_t *ps_bitstrm, 78 UWORD32 *pu4_bitstrm_ofst = &ps_bitstrm->u4_ofst; 79 UWORD32 *pu4_bitstrm_buf = ps_bitstrm->pu4_buffer; 101 ps_bitstrm, 104 ps_bitstrm, 115 ps_bitstrm, 118 ps_bitstrm, 131 /* Inputs : ps_bitstrm Bitstream */ 147 WORD32 ih264d_parse_pic_timing(dec_bit_stream_t *ps_bitstrm, [all...] |
ih264d_nal.h | 45 WORD32 ih264d_process_nal_unit(dec_bit_stream_t *ps_bitstrm, 48 void ih264d_rbsp_to_sodb(dec_bit_stream_t *ps_bitstrm);
|
ih264d_parse_cabac.h | 44 UWORD8 ih264d_read_coeff4x4_cabac(dec_bit_stream_t *ps_bitstrm, 50 void ih264d_read_coeff8x8_cabac(dec_bit_stream_t *ps_bitstrm,
|
ih264d_bitstrm.h | 55 /* Structure for the ps_bitstrm */ 83 * \param ps_bitstrm : Pointer to bitstream 91 #define MORE_RBSP_DATA(ps_bitstrm) \ 92 (ps_bitstrm->u4_ofst < ps_bitstrm->u4_max_ofst) 93 #define EXCEED_OFFSET(ps_bitstrm) \ 94 (ps_bitstrm->u4_ofst > ps_bitstrm->u4_max_ofst) 96 void GoToByteBoundary(dec_bit_stream_t * ps_bitstrm); 97 UWORD8 ih264d_check_byte_aligned(dec_bit_stream_t * ps_bitstrm); [all...] |
ih264d_cabac.c | 63 dec_bit_stream_t *ps_bitstrm) 68 NEXTBITS(u4_code_int_val_ofst, ps_bitstrm->u4_ofst, ps_bitstrm->pu4_buffer, 70 FLUSHBITS(ps_bitstrm->u4_ofst, 9) 72 if(ps_bitstrm->u4_ofst > ps_bitstrm->u4_max_ofst) 234 dec_bit_stream_t *ps_bitstrm, 278 pu4_buffer = ps_bitstrm->pu4_buffer; 279 u4_offset = ps_bitstrm->u4_ofst; 284 ps_bitstrm->u4_ofst = u4_offset [all...] |
ih264d_nal.c | 177 * \param ps_bitstrm : Poiter to dec_bit_stream_t structure. 182 * Returns number of bytes in RBSP ps_bitstrm. 192 WORD32 ih264d_process_nal_unit(dec_bit_stream_t *ps_bitstrm, 202 ps_bitstrm->pu4_buffer = puc_bitstream_buffer; 346 ps_bitstrm->u4_ofst = 0; 347 ps_bitstrm->u4_max_ofst = ((u4_num_bytes_in_rbsp + NAL_FIRST_BYTE_SIZE) << 3); 360 * \param ps_bitstrm : Poiter to dec_bit_stream_t structure. 367 void ih264d_rbsp_to_sodb(dec_bit_stream_t *ps_bitstrm) 374 ui_lastWord = (ps_bitstrm->u4_max_ofst >> 5); 375 i = (ps_bitstrm->u4_max_ofst >> 3) & 0x03 [all...] |
ih264d_parse_cavlc.h | 52 WORD32 ih264d_uvlc(dec_bit_stream_t *ps_bitstrm, 69 dec_bit_stream_t *ps_bitstrm, 74 dec_bit_stream_t *ps_bitstrm); 78 dec_bit_stream_t *ps_bitstrm); 82 dec_bit_stream_t *ps_bitstrm); 98 dec_bit_stream_t *ps_bitstrm, 143 WORD8 ResidualBlockChromaDC(WORD16 *pi2_level, dec_bit_stream_t *ps_bitstrm); 146 dec_bit_stream_t *ps_bitstrm, 151 dec_bit_stream_t *ps_bitstrm, 156 dec_bit_stream_t *ps_bitstrm, [all...] |
ih264d_parse_mb_header.c | 72 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; local 93 u1_mb_type = (UWORD8)ih264d_decode_bin(u4_cxt_inc, ps_mb_bin_ctxt, ps_bitstrm, 99 u1_bin = ih264d_decode_terminate(ps_cab_env, ps_bitstrm); 106 u1_bin = ih264d_decode_bins(2, u4_cxt_inc, ps_mb_bin_ctxt, ps_bitstrm, 120 ps_bitstrm, ps_cab_env); 128 ps_bitstrm, ps_cab_env); 158 dec_bit_stream_t *ps_bitstrm = ps_dec->ps_bitstrm; local 179 u1_bin = (UWORD8)ih264d_decode_bin(u4_cxt_inc, ps_mb_bin_ctxt, ps_bitstrm, 538 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; local 590 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; local 637 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; local 697 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; local 794 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; local 1137 dec_bit_stream_t * ps_bitstrm = ps_dec->ps_bitstrm; local [all...] |
ih264d_quant_scaling.h | 25 dec_bit_stream_t *ps_bitstrm);
|
ih264d_parse_headers.c | 69 /* ps_bitstrm Bitstream */ 85 dec_bit_stream_t * ps_bitstrm) 89 UNUSED(ps_bitstrm); 101 /* ps_bitstrm Bitstream */ 115 WORD32 ih264d_parse_sei(dec_struct_t * ps_dec, dec_bit_stream_t * ps_bitstrm) 118 UNUSED(ps_bitstrm); 130 /* ps_bitstrm Bitstream */ 145 dec_bit_stream_t * ps_bitstrm) 148 UNUSED(ps_bitstrm); 190 WORD32 ih264d_parse_pps(dec_struct_t * ps_dec, dec_bit_stream_t * ps_bitstrm) 1079 dec_bit_stream_t *ps_bitstrm; local [all...] |
ih264d_cabac.h | 125 dec_bit_stream_t *ps_bitstrm); 129 dec_bit_stream_t *ps_bitstrm, 132 dec_bit_stream_t * ps_bitstrm); 137 dec_bit_stream_t *ps_bitstrm, 143 dec_bit_stream_t *ps_bitstrm, 148 dec_bit_stream_t *ps_bitstrm, 152 dec_bit_stream_t *ps_bitstrm); 156 dec_bit_stream_t *ps_bitstrm);
|
ih264d_parse_mb_header.h | 53 dec_bit_stream_t * ps_bitstrm, 63 dec_bit_stream_t * const ps_bitstrm, 83 WORD16 ih264d_parse_mvd_cabac(dec_bit_stream_t * ps_bitstrm,
|