Home
last modified time | relevance | path

Searched refs:READ_BITS (Results 1 – 21 of 21) sorted by relevance

/rockchip-linux_mpp/mpp/codec/dec/h265/
H A Dh265d_sei.c40 READ_BITS(gb, 8, &hash_type); in decode_nal_sei_decoded_picture_hash()
67 READ_BITS(gb, 7, &s->frame_packing_arrangement_type); in decode_nal_sei_frame_packing_arrangement()
69 READ_BITS(gb, 6, &s->content_interpretation_type); in decode_nal_sei_frame_packing_arrangement()
96 READ_BITS(gb, 4, &s->picture_struct); in decode_pic_timing()
153 READ_BITS(gb, 16, &value); in mastering_display_colour_volume()
155 READ_BITS(gb, 16, &value); in mastering_display_colour_volume()
158 READ_BITS(gb, 16, &value); in mastering_display_colour_volume()
160 READ_BITS(gb, 16, &value); in mastering_display_colour_volume()
209 READ_BITS(gb, 8, &value); //colour_remap_primaries in colour_remapping_info()
210 READ_BITS(gb, 8, &value); //colour_remap_transfer_function in colour_remapping_info()
[all …]
H A Dh265d_ps.c173 READ_BITS(gb, 1, &delta_rps_sign); in mpp_hevc_decode_short_term_rps()
280 READ_BITS(gb, 2, &ptl->profile_space); in decode_profile_tier_level()
282 READ_BITS(gb, 5, &ptl->profile_idc); in decode_profile_tier_level()
322 READ_BITS(gb, 8, &ptl->general_ptl.level_idc); in parse_ptl()
335 READ_BITS(gb, 8, &ptl->sub_layer_ptl[i].level_idc); in parse_ptl()
451 READ_BITS(gb, 3, &vps->dimension_id_len[i]); in parse_vps_extension()
470 READ_BITS(gb, 6, vps->layer_id_in_nuh[i]); in parse_vps_extension()
476 READ_BITS(gb, vps->dimension_id_len[j], &vps->dimension_id[i][j]); in parse_vps_extension()
500 READ_BITS(gb, 10, value); in parse_vps_extension()
504 READ_BITS(gb, 6, &vps->vps_num_profile_tier_level); in parse_vps_extension()
[all …]
H A Dh265d_parser.c457 READ_BITS(gb, mpp_ceil_log2(sps->num_long_term_ref_pics_sps), &lt_idx_sps); in decode_lt_rps()
462 READ_BITS(gb, sps->log2_max_poc_lsb, &rps->poc[i]); in decode_lt_rps()
786 READ_BITS(gb, slice_address_length, &sh->slice_segment_addr); in hls_slice_header()
828 READ_BITS(gb, 2, &sh->colour_plane_id ); in hls_slice_header()
833 READ_BITS(gb, s->sps->log2_max_poc_lsb, &sh->pic_order_cnt_lsb); in hls_slice_header()
867 READ_BITS(gb, numbits, &rps_idx); in hls_slice_header()
957 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh->list_entry_lx[0][i]); in hls_slice_header()
964 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh->list_entry_lx[1][i]); in hls_slice_header()
1140 READ_BITS(gb, 6, &s->nal_unit_type); in hls_nal_unit()
1142 READ_BITS(gb, 6, &s->nuh_layer_id); in hls_nal_unit()
[all …]
H A Dh265d_parser2_syntax.c428 READ_BITS(gb, 6, &nal_type); in h265d_syntax_fill_slice()
/rockchip-linux_mpp/mpp/codec/dec/h264/
H A Dh264d_sei.c70 READ_BITS(p_bitctx, cpb_removal_delay_length, &pic_timing->cpb_removal_delay); in interpret_picture_timing_info()
71 READ_BITS(p_bitctx, dpb_output_delay_length, &pic_timing->dpb_output_delay); in interpret_picture_timing_info()
75 READ_BITS(p_bitctx, 4, &pic_timing->pic_struct); in interpret_picture_timing_info()
81 READ_BITS(p_bitctx, 1, &pic_timing->clock_timestamp_flag[i]); in interpret_picture_timing_info()
84 READ_BITS(p_bitctx, 2, &pic_timing->ct_type[i]); in interpret_picture_timing_info()
85 READ_BITS(p_bitctx, 1, &pic_timing->nuit_field_based_flag[i]); in interpret_picture_timing_info()
87 READ_BITS(p_bitctx, 5, &pic_timing->counting_type[i]); in interpret_picture_timing_info()
93 READ_BITS(p_bitctx, 1, &pic_timing->full_timestamp_flag[i]); in interpret_picture_timing_info()
94 READ_BITS(p_bitctx, 1, &pic_timing->discontinuity_flag[i]); in interpret_picture_timing_info()
95 READ_BITS(p_bitctx, 1, &pic_timing->cnt_dropped_flag[i]); in interpret_picture_timing_info()
[all …]
H A Dh264d_sps.c53 READ_BITS(p_bitctx, 4, &hrd->bit_rate_scale); in read_hrd_parameters()
54 READ_BITS(p_bitctx, 4, &hrd->cpb_size_scale); in read_hrd_parameters()
60 READ_BITS(p_bitctx, 5, &hrd->initial_cpb_removal_delay_length_minus1); in read_hrd_parameters()
62 READ_BITS(p_bitctx, 5, &hrd->cpb_removal_delay_length_minus1); in read_hrd_parameters()
64 READ_BITS(p_bitctx, 5, &hrd->dpb_output_delay_length_minus1); in read_hrd_parameters()
66 READ_BITS(p_bitctx, 5, &hrd->time_offset_length); in read_hrd_parameters()
86 READ_BITS(p_bitctx, 8, &vui->aspect_ratio_idc); in read_VUI()
88 READ_BITS(p_bitctx, 16, &vui->sar_width); in read_VUI()
89 READ_BITS(p_bitctx, 16, &vui->sar_height); in read_VUI()
98 READ_BITS(p_bitctx, 3, &vui->video_format); in read_VUI()
[all …]
H A Dh264d_parse.c162 READ_BITS(p_bitctx, 1, &cur_nal->forbidden_bit); in parser_nalu_header()
167 READ_BITS(p_bitctx, 2, ptmp); //!< nal_ref_idc in parser_nalu_header()
169 READ_BITS(p_bitctx, 5, ptmp); //!< nalu_type in parser_nalu_header()
180 READ_BITS(p_bitctx, 6, &currSlice->svcExt.priority_id); in parser_nalu_header()
182 READ_BITS(p_bitctx, 3, &currSlice->svcExt.dependency_id); in parser_nalu_header()
183 READ_BITS(p_bitctx, 4, &currSlice->svcExt.quality_id); in parser_nalu_header()
184 READ_BITS(p_bitctx, 3, &currSlice->svcExt.temporal_id); in parser_nalu_header()
197 READ_BITS(p_bitctx, 6, &currSlice->mvcExt.priority_id); in parser_nalu_header()
198 READ_BITS(p_bitctx, 10, &currSlice->mvcExt.view_id); in parser_nalu_header()
199 READ_BITS(p_bitctx, 3, &currSlice->mvcExt.temporal_id); in parser_nalu_header()
[all …]
H A Dh264d_pps.c88 READ_BITS(p_bitctx, 2, &cur_pps->weighted_bipred_idc); in parser_pps()
H A Dh264d_slice.c490READ_BITS(p_bitctx, currSlice->active_sps->log2_max_frame_num_minus4 + 4, &currSlice->frame_num); in process_slice()
530READ_BITS(p_bitctx, currSlice->active_sps->log2_max_pic_order_cnt_lsb_minus4 + 4, &currSlice->pic_… in process_slice()
/rockchip-linux_mpp/mpp/codec/dec/mpg4/
H A Dmpg4d_parser.c225 READ_BITS(gb, 8, &value); in mpg4d_parse_matrix()
268 READ_BITS(gb, 2, &(e->method)); /* estimation_method */ in read_vol_complexity_estimation_header()
271 READ_BITS(gb, 1, &val); in read_vol_complexity_estimation_header()
273 READ_BITS(gb, 1, &(e->opaque)); /* opaque */ in read_vol_complexity_estimation_header()
274 READ_BITS(gb, 1, &(e->transparent)); /* transparent */ in read_vol_complexity_estimation_header()
275 READ_BITS(gb, 1, &(e->intra_cae)); /* intra_cae */ in read_vol_complexity_estimation_header()
276 READ_BITS(gb, 1, &(e->inter_cae)); /* inter_cae */ in read_vol_complexity_estimation_header()
277 READ_BITS(gb, 1, &(e->no_update)); /* no_update */ in read_vol_complexity_estimation_header()
278 READ_BITS(gb, 1, &(e->upsampling)); /* upsampling */ in read_vol_complexity_estimation_header()
281 READ_BITS(gb, 1, &val); in read_vol_complexity_estimation_header()
[all …]
/rockchip-linux_mpp/mpp/codec/dec/avs2/
H A Davs2d_ps.c250 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()
290 READ_BITS(bitctx, 8, &vsh->profile_id); in avs2d_parse_sequence_header()
297 READ_BITS(bitctx, 8, &vsh->level_id); in avs2d_parse_sequence_header()
305 READ_BITS(bitctx, 14, &vsh->horizontal_size); in avs2d_parse_sequence_header()
306 READ_BITS(bitctx, 14, &vsh->vertical_size); in avs2d_parse_sequence_header()
314 READ_BITS(bitctx, 2, &vsh->chroma_format); in avs2d_parse_sequence_header()
320 READ_BITS(bitctx, 3, &vsh->sample_precision); in avs2d_parse_sequence_header()
[all …]
H A Davs2d_parse.c207 READ_BITS(bitctx, 3, &exh->video_format); 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()
218 READ_BITS(bitctx, 14, &exh->display_vertical_size); in parse_seq_dispay_ext_header()
222 READ_BITS(bitctx, 8, &exh->td_packing_mode); in parse_seq_dispay_ext_header()
241 READ_BITS(bitctx, 16, &value); in parse_mastering_display_and_content_meta()
244 READ_BITS(bitctx, 16, &value); in parse_mastering_display_and_content_meta()
248 READ_BITS(bitctx, 16, &value); in parse_mastering_display_and_content_meta()
[all …]
/rockchip-linux_mpp/mpp/codec/dec/avs/
H A Davsd_parse.c34 READ_BITS(bitctx, 8, &vsh->profile_id); in get_sequence_header()
41 READ_BITS(bitctx, 8, &vsh->level_id); 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()
54 READ_BITS(bitctx, 18, &val_temp); //!< bit_rate_high_18 in get_sequence_header()
57 READ_BITS(bitctx, 12, &val_temp); //!< bit_rate_low_12 in get_sequence_header()
[all …]
/rockchip-linux_mpp/mpp/codec/dec/jpeg/
H A Djpegd_parser.c182 READ_BITS(gb, 8, &lh); in jpegd_read_len()
183 READ_BITS(gb, 8, &ll); in jpegd_read_len()
235 READ_BITS(gb, 4, &table_type); /* 0 - DC; 1 - AC */ in jpegd_decode_dht()
241 READ_BITS(gb, 4, &table_id); in jpegd_decode_dht()
251 READ_BITS(gb, 8, &value); in jpegd_decode_dht()
260 READ_BITS(gb, 8, &value); in jpegd_decode_dht()
283 READ_BITS(gb, 8, &value); in jpegd_decode_dht()
294 READ_BITS(gb, 8, &value); in jpegd_decode_dht()
334 READ_BITS(gb, 4, &pr); in jpegd_decode_dqt()
340 READ_BITS(gb, 4, &index); in jpegd_decode_dqt()
[all …]
/rockchip-linux_mpp/mpp/codec/dec/h263/
H A Dh263d_parser.c155 READ_BITS(gb, 17, &val); /* start code */ in h263_parse_picture_header()
159 READ_BITS(gb, 5, &val); /* gob */ in h263_parse_picture_header()
163 READ_BITS(gb, 8, &hdr_curr->TR); in h263_parse_picture_header()
169 READ_BITS(gb, 3, &val); /* source format */ in h263_parse_picture_header()
178 READ_BITS(gb, 1, &val); in h263_parse_picture_header()
182 READ_BITS(gb, 4, &val); in h263_parse_picture_header()
188 READ_BITS(gb, 5, &val); in h263_parse_picture_header()
193 READ_BITS(gb, 1, &val); in h263_parse_picture_header()
196 READ_BITS(gb, 1, &val); in h263_parse_picture_header()
/rockchip-linux_mpp/mpp/hal/rkdec/h265d/
H A Dhal_h265d_com.c410 READ_BITS(gb, 6, &nal_type); in hal_h265d_slice_output_rps()
448 READ_BITS(gb, slice_address_length, &sh.slice_segment_addr); in hal_h265d_slice_output_rps()
487 READ_BITS(gb, 2, &sh.colour_plane_id ); in hal_h265d_slice_output_rps()
492READ_BITS(gb, (dxva_cxt->pp.log2_max_pic_order_cnt_lsb_minus4 + 4), &sh.pic_order_cnt_lsb); in hal_h265d_slice_output_rps()
509 READ_BITS(gb, numbits, &rps_idx); in hal_h265d_slice_output_rps()
534READ_BITS(gb, mpp_ceil_log2(dxva_cxt->pp.num_long_term_ref_pics_sps), &lt_idx_sps); 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()
618 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh.list_entry_lx[1][i]); in hal_h265d_slice_output_rps()
/rockchip-linux_mpp/mpp/codec/dec/common/
H A Dh2645d_sei.c42 READ_BITS(gb, 8, &payload[i]); in check_encoder_sei_info()
/rockchip-linux_mpp/mpp/base/inc/
H A Dmpp_bitread.h36 #define READ_BITS(bitctx, num_bits, out)\ macro
/rockchip-linux_mpp/mpp/base/test/
H A Dmpp_bit_read_test.c300 READ_BITS(ctx, ops->len, ret_val); in proc_bit_ops()
/rockchip-linux_mpp/mpp/codec/dec/av1/
H A Dav1d_cbs.c80 READ_BITS(gbc, 8, &byte); in mpp_av1_read_leb128()
117 READ_BITS(gbc, w - 1, &v); in mpp_av1_read_ns()
307 READ_BITS(gbc, 8, &value); in mpp_av1_get_payload_bytes_left()
1206 READ_BITS(gb, bits[j], &data); in mpp_av1_segmentation_params()
2387 READ_BITS(gb, 8, &tmp); \ in mpp_av1_get_dlby_rpu()
2416 READ_BITS(gb, 8, &data); in mpp_av1_get_dlby_rpu()
2520 READ_BITS(gb, 8, &application_identifier); in mpp_av1_metadata_itut_t35()
/rockchip-linux_mpp/mpp/codec/dec/vp9/
H A Dvp9d_parser.c446 READ_BITS(gb, n, &v); in get_sbits_inv()
552 READ_BITS(gb, num_bit, &value); in mpp_get_bits()