| /rockchip-linux_mpp/mpp/base/ |
| H A D | mpp_bitread.c | 24 static MPP_RET update_curbyte_default(BitReadCtx_t *bitctx) in update_curbyte_default() argument 26 if (bitctx->bytes_left_ < 1) in update_curbyte_default() 30 bitctx->curr_byte_ = *bitctx->data_++ & 0xff; in update_curbyte_default() 31 --bitctx->bytes_left_; in update_curbyte_default() 32 bitctx->num_remaining_bits_in_curr_byte_ = 8; in update_curbyte_default() 33 bitctx->prev_two_bytes_ = (bitctx->prev_two_bytes_ << 8) | bitctx->curr_byte_; in update_curbyte_default() 38 static MPP_RET update_curbyte_h264(BitReadCtx_t *bitctx) in update_curbyte_h264() argument 40 if (bitctx->bytes_left_ < 1) in update_curbyte_h264() 45 if ((*bitctx->data_ == 0x03) in update_curbyte_h264() 46 && ((bitctx->prev_two_bytes_ & 0xffff) == 0)) { in update_curbyte_h264() [all …]
|
| /rockchip-linux_mpp/mpp/base/inc/ |
| H A D | mpp_bitread.h | 28 #define READ_ONEBIT(bitctx, out)\ argument 31 bitctx->ret = mpp_read_bits(bitctx, 1, &_out); \ 32 if (!bitctx->ret) { *out = _out; }\ 36 #define READ_BITS(bitctx, num_bits, out)\ argument 39 bitctx->ret = mpp_read_bits(bitctx, num_bits, &_out); \ 40 if (!bitctx->ret) { *out = _out; }\ 44 #define READ_BITS_LONG(bitctx, num_bits, out)\ argument 47 bitctx->ret = mpp_read_longbits(bitctx, num_bits, &_out); \ 48 if (!bitctx->ret) { *out = _out; }\ 52 #define SHOW_BITS(bitctx, num_bits, out)\ argument [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/avs2/ |
| H A D | avs2d_ps.c | 212 static MPP_RET parse_sequence_wqm(BitReadCtx_t *bitctx, Avs2dSeqHeader_t *vsh) in parse_sequence_wqm() argument 219 READ_ONEBIT(bitctx, &load_seq_wquant_data_flag); in parse_sequence_wqm() 226 READ_UE(bitctx, &vsh->seq_wq_matrix[size_id][j * wqm_size + i]); in parse_sequence_wqm() 239 return ret = bitctx->ret; in parse_sequence_wqm() 242 static MPP_RET parse_one_rps(BitReadCtx_t *bitctx, Avs2dRps_t *rps) in parse_one_rps() argument 248 READ_ONEBIT(bitctx, &rps->refered_by_others); in parse_one_rps() 250 READ_BITS(bitctx, 3, &rps->num_of_ref); in parse_one_rps() 258 READ_BITS(bitctx, 6, &rps->ref_pic[j]); in parse_one_rps() 262 READ_BITS(bitctx, 3, &rps->num_to_remove); in parse_one_rps() 264 READ_BITS(bitctx, 6, &rps->remove_pic[j]); in parse_one_rps() [all …]
|
| H A D | avs2d_parse.c | 203 static MPP_RET parse_seq_dispay_ext_header(BitReadCtx_t *bitctx, Avs2dSeqExtHeader_t *exh) in parse_seq_dispay_ext_header() argument 207 READ_BITS(bitctx, 3, &exh->video_format); in parse_seq_dispay_ext_header() 208 READ_ONEBIT(bitctx, &exh->sample_range); in parse_seq_dispay_ext_header() 209 READ_ONEBIT(bitctx, &exh->color_description); in parse_seq_dispay_ext_header() 212 READ_BITS(bitctx, 8, &exh->color_primaries); in parse_seq_dispay_ext_header() 213 READ_BITS(bitctx, 8, &exh->transfer_characteristics); in parse_seq_dispay_ext_header() 214 READ_BITS(bitctx, 8, &exh->matrix_coefficients); in parse_seq_dispay_ext_header() 216 READ_BITS(bitctx, 14, &exh->display_horizontal_size); in parse_seq_dispay_ext_header() 217 READ_MARKER_BIT(bitctx); in parse_seq_dispay_ext_header() 218 READ_BITS(bitctx, 14, &exh->display_vertical_size); in parse_seq_dispay_ext_header() [all …]
|
| H A D | avs2d_global.h | 86 #define READ_MARKER_BIT(bitctx)\ argument 89 READ_ONEBIT(bitctx, &bval);\ 388 BitReadCtx_t bitctx; member
|
| /rockchip-linux_mpp/mpp/codec/dec/avs/ |
| H A D | avsd_parse.c | 29 static MPP_RET get_sequence_header(BitReadCtx_t *bitctx, AvsdSeqHeader_t *vsh) in get_sequence_header() argument 34 READ_BITS(bitctx, 8, &vsh->profile_id); in get_sequence_header() 41 READ_BITS(bitctx, 8, &vsh->level_id); in get_sequence_header() 47 READ_ONEBIT(bitctx, &vsh->progressive_sequence); in get_sequence_header() 48 READ_BITS(bitctx, 14, &vsh->horizontal_size); in get_sequence_header() 49 READ_BITS(bitctx, 14, &vsh->vertical_size); in get_sequence_header() 50 READ_BITS(bitctx, 2, &vsh->chroma_format); in get_sequence_header() 51 READ_BITS(bitctx, 3, &vsh->sample_precision); in get_sequence_header() 52 READ_BITS(bitctx, 4, &vsh->aspect_ratio); in get_sequence_header() 53 READ_BITS(bitctx, 4, &vsh->frame_rate_code); in get_sequence_header() [all …]
|
| H A D | avsd_parse.h | 202 BitReadCtx_t bitctx; member
|
| H A D | avsd_api.c | 102 p_dec->bx = &p_dec->mem->bitctx; in avsd_init()
|
| /rockchip-linux_mpp/mpp/codec/dec/h264/ |
| H A D | h264d_pps.c | 135 BitReadCtx_t *p_bitctx = &p_Cur->bitctx; in process_pps() 192 BitReadCtx_t *p_bitctx = &p_Cur->bitctx; in process_prefix()
|
| H A D | h264d_slice.c | 49 BitReadCtx_t *p_bitctx = &currSlice->p_Cur->bitctx; in ref_pic_list_mvc_modification() 117 BitReadCtx_t *p_bitctx = &currSlice->p_Cur->bitctx; in pred_weight_table() 172 BitReadCtx_t *p_bitctx = &pSlice->p_Cur->bitctx; in dec_ref_pic_marking() 470 BitReadCtx_t *p_bitctx = &p_Cur->bitctx; in process_slice()
|
| H A D | h264d_sei.c | 239 BitReadCtx_t *p_bitctx = &currSlice->p_Cur->bitctx; in process_sei()
|
| H A D | h264d_sps.c | 463 BitReadCtx_t *p_bitctx = &p_Cur->bitctx; in process_sps() 538 BitReadCtx_t *p_bitctx = &currSlice->p_Cur->bitctx; in process_subsps()
|
| H A D | h264d_parse.c | 156 BitReadCtx_t *p_bitctx = &p_Cur->bitctx; in parser_nalu_header() 478 BitReadCtx_t *p_bitctx = &p_Cur->bitctx; in judge_is_new_frame()
|
| H A D | h264d_global.h | 953 struct bitread_ctx_t bitctx; //!< for control bit_read member
|