| /rockchip-linux_mpp/mpp/base/inc/ |
| H A D | mpp_bitread.h | 127 } BitReadCtx_t; typedef 135 void mpp_set_bitread_ctx(BitReadCtx_t *bitctx, RK_U8 *data, RK_S32 size); 138 MPP_RET mpp_read_bits(BitReadCtx_t *bitctx, RK_S32 num_bits, RK_S32 *out); 141 MPP_RET mpp_read_longbits(BitReadCtx_t *bitctx, RK_S32 num_bits, RK_U32 *out); 144 MPP_RET mpp_show_bits(BitReadCtx_t *bitctx, RK_S32 num_bits, RK_S32 *out); 147 MPP_RET mpp_show_longbits(BitReadCtx_t *bitctx, RK_S32 num_bits, RK_U32 *out); 150 MPP_RET mpp_skip_bits(BitReadCtx_t *bitctx, RK_S32 num_bits); 153 MPP_RET mpp_skip_longbits(BitReadCtx_t *bitctx, RK_S32 num_bits); 156 MPP_RET mpp_read_ue(BitReadCtx_t *bitctx, RK_U32* val); 159 MPP_RET mpp_read_se(BitReadCtx_t *bitctx, RK_S32* val); [all …]
|
| /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() 38 static MPP_RET update_curbyte_h264(BitReadCtx_t *bitctx) in update_curbyte_h264() 66 static MPP_RET update_curbyte_h2645_sei(BitReadCtx_t *bitctx) in update_curbyte_h2645_sei() 89 static MPP_RET update_curbyte_avs2(BitReadCtx_t *bitctx) in update_curbyte_avs2() 118 MPP_RET mpp_read_bits(BitReadCtx_t *bitctx, RK_S32 num_bits, RK_S32 *out) in mpp_read_bits() 146 MPP_RET mpp_read_longbits(BitReadCtx_t *bitctx, RK_S32 num_bits, RK_U32 *out) in mpp_read_longbits() 170 MPP_RET mpp_skip_bits(BitReadCtx_t *bitctx, RK_S32 num_bits) in mpp_skip_bits() 192 MPP_RET mpp_skip_longbits(BitReadCtx_t *bitctx, RK_S32 num_bits) in mpp_skip_longbits() 211 MPP_RET mpp_show_bits(BitReadCtx_t *bitctx, RK_S32 num_bits, RK_S32 *out) in mpp_show_bits() 214 BitReadCtx_t tmp_ctx = *bitctx; in mpp_show_bits() [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/h265/ |
| H A D | h265d_sei.c | 36 static RK_S32 decode_nal_sei_decoded_picture_hash(BitReadCtx_t *gb) in decode_nal_sei_decoded_picture_hash() 58 static RK_S32 decode_nal_sei_frame_packing_arrangement(HEVCContext *s, BitReadCtx_t *gb) in decode_nal_sei_frame_packing_arrangement() 87 static RK_S32 decode_pic_timing(HEVCContext *s, BitReadCtx_t *gb) in decode_pic_timing() 120 static RK_S32 active_parameter_sets(HEVCContext *s, BitReadCtx_t *gb) in active_parameter_sets() 146 static RK_S32 mastering_display_colour_volume(HEVCContext *s, BitReadCtx_t *gb) in mastering_display_colour_volume() 185 static RK_S32 content_light_info(HEVCContext *s, BitReadCtx_t *gb) in content_light_info() 195 static RK_S32 colour_remapping_info(BitReadCtx_t *gb) in colour_remapping_info() 256 static RK_S32 tone_mapping_info(BitReadCtx_t *gb) in tone_mapping_info() 332 static RK_S32 vivid_display_info(HEVCContext *s, BitReadCtx_t *gb, RK_U32 size) in vivid_display_info() 339 static RK_S32 hdr10plus_dynamic_data(HEVCContext *s, BitReadCtx_t *gb, RK_U32 size) in hdr10plus_dynamic_data() [all …]
|
| H A D | h265d_ps.c | 148 BitReadCtx_t *gb = &lc->gb; in mpp_hevc_decode_short_term_rps() 278 BitReadCtx_t *gb = &lc->gb; in decode_profile_tier_level() 319 BitReadCtx_t *gb = &lc->gb; in parse_ptl() 346 BitReadCtx_t *gb = &s->HEVClc->gb; in decode_sublayer_hrd() 367 BitReadCtx_t *gb = &s->HEVClc->gb; in decode_hrd() 435 BitReadCtx_t *gb = &s->HEVClc->gb; in parse_vps_extension() 1043 BitReadCtx_t *gb = &s->HEVClc->gb; in mpp_hevc_decode_nal_vps() 1182 BitReadCtx_t *gb = &s->HEVClc->gb; in decode_vui() 1341 BitReadCtx_t *gb = &s->HEVClc->gb; in scaling_list_data() 1416 BitReadCtx_t *gb = &s->HEVClc->gb; in mpp_hevc_decode_nal_sps() [all …]
|
| /rockchip-linux_mpp/mpp/base/test/ |
| H A D | mpp_bit_read_test.c | 292 MPP_RET proc_bit_ops(BitReadCtx_t *ctx, BitOps *ops, RK_S32 *ret_val) in proc_bit_ops() 333 BitReadCtx_t reader; in main() 339 memset(&reader, 0, sizeof(BitReadCtx_t)); in main() 352 memset(&reader, 0, sizeof(BitReadCtx_t)); in main() 363 memset(&reader, 0, sizeof(BitReadCtx_t)); in main() 374 memset(&reader, 0, sizeof(BitReadCtx_t)); in main()
|
| /rockchip-linux_mpp/mpp/codec/dec/av1/ |
| H A D | av1d_cbs.c | 53 static RK_S32 mpp_av1_read_uvlc(BitReadCtx_t *gbc, const char *name, RK_U32 *write_to, in mpp_av1_read_uvlc() 71 static RK_S32 mpp_av1_read_leb128(BitReadCtx_t *gbc, RK_U64 *write_to) in mpp_av1_read_leb128() 102 static RK_S32 mpp_av1_read_ns(BitReadCtx_t *gbc, const char *name, in mpp_av1_read_ns() 136 static RK_S32 mpp_av1_read_increment(BitReadCtx_t *gbc, RK_U32 range_min, in mpp_av1_read_increment() 169 RK_S32 mpp_av1_read_unsigned(BitReadCtx_t *gbc, in mpp_av1_read_unsigned() 208 RK_S32 mpp_av1_read_signed(BitReadCtx_t *gbc, in mpp_av1_read_signed() 240 static RK_S32 mpp_av1_read_subexp(BitReadCtx_t *gbc, in mpp_av1_read_subexp() 300 static size_t mpp_av1_get_payload_bytes_left(BitReadCtx_t *gbc) in mpp_av1_get_payload_bytes_left() 409 static RK_S32 mpp_av1_read_obu_header(AV1Context *ctx, BitReadCtx_t *gb, in mpp_av1_read_obu_header() 437 static RK_S32 mpp_av1_trailing_bits(AV1Context *ctx, BitReadCtx_t *gb, RK_S32 nb_bits) in mpp_av1_trailing_bits() [all …]
|
| H A D | av1d_codec.h | 50 BitReadCtx_t gb;
|
| H A D | av1d_parser.h | 83 BitReadCtx_t gb;
|
| /rockchip-linux_mpp/mpp/codec/dec/h264/ |
| H A D | h264d_scalist.h | 32 MPP_RET parse_scalingList(BitReadCtx_t *p_bitctx, RK_S32 size, RK_S32 *scaling_list, RK_S32 *use_de… 33 MPP_RET parse_sps_scalinglists(BitReadCtx_t *p_bitctx, H264_SPS_t *sps);
|
| H A D | h264d_pps.c | 35 static MPP_RET parse_pps_calingLists(BitReadCtx_t *p_bitctx, H264_SPS_t *sps, H264_PPS_t *pps) in parse_pps_calingLists() 65 static MPP_RET parser_pps(BitReadCtx_t *p_bitctx, H264_SPS_t *cur_sps, H264_PPS_t *cur_pps) in parser_pps() 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_sei.c | 30 BitReadCtx_t *p_bitctx, in interpret_picture_timing_info() 161 BitReadCtx_t *p_bitctx, in interpret_buffering_period_info() 205 static MPP_RET interpret_recovery_point(BitReadCtx_t *p_bitctx, H264dVideoCtx_t *p_videoctx) in interpret_recovery_point() 239 BitReadCtx_t *p_bitctx = &currSlice->p_Cur->bitctx; in process_sei() 240 BitReadCtx_t payload_bitctx; in process_sei()
|
| H A D | h264d_sps.c | 46 static MPP_RET read_hrd_parameters(BitReadCtx_t *p_bitctx, H264_HRD_t *hrd) in read_hrd_parameters() 80 static MPP_RET read_VUI(BitReadCtx_t *p_bitctx, H264_VUI_t *vui) in read_VUI() 173 static MPP_RET parser_sps(BitReadCtx_t *p_bitctx, H264_SPS_t *cur_sps, H264_DecCtx_t *p_Dec) in parser_sps() 298 static MPP_RET sps_mvc_extension(BitReadCtx_t *p_bitctx, H264_subSPS_t *subset_sps) in sps_mvc_extension() 370 static MPP_RET parser_subsps_ext(BitReadCtx_t *p_bitctx, H264_subSPS_t *cur_subsps) in parser_subsps_ext() 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_scalist.c | 174 MPP_RET parse_scalingList(BitReadCtx_t *p_bitctx, RK_S32 size, RK_S32 *scaling_list, RK_S32 *use_de… in parse_scalingList() 303 MPP_RET parse_sps_scalinglists(BitReadCtx_t *p_bitctx, H264_SPS_t *sps) in parse_sps_scalinglists()
|
| 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()
|
| /rockchip-linux_mpp/mpp/codec/dec/m2v/ |
| H A D | m2vd_parser.c | 112 static inline RK_S32 m2vd_get_readbits(BitReadCtx_t *bx) in m2vd_get_readbits() 117 static inline RK_S32 m2vd_get_leftbits(BitReadCtx_t *bx) in m2vd_get_leftbits() 122 static RK_S32 m2vd_read_bits(BitReadCtx_t *bx, RK_U32 bits) in m2vd_read_bits() 132 static RK_S32 m2vd_show_bits(BitReadCtx_t *bx, RK_U32 bits) in m2vd_show_bits() 150 ctx->bitread_ctx = mpp_calloc(BitReadCtx_t, 1); in m2vd_parser_init_ctx() 567 static RK_U32 m2vd_search_header(BitReadCtx_t *bx) in m2vd_search_header() 584 BitReadCtx_t *bx = ctx->bitread_ctx; in m2vd_decode_seq_ext_header() 610 BitReadCtx_t *bx = ctx->bitread_ctx; in m2vd_decode_seqdisp_ext_header() 633 BitReadCtx_t *bx = ctx->bitread_ctx; in m2vd_decode_matrix_ext_header() 668 BitReadCtx_t *bx = ctx->bitread_ctx; in m2vd_decode_scalable_ext_header() [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() 242 static MPP_RET parse_one_rps(BitReadCtx_t *bitctx, Avs2dRps_t *rps) in parse_one_rps() 285 BitReadCtx_t *bitctx = &p_dec->bitctx; in avs2d_parse_sequence_header() 401 static MPP_RET read_pic_alf_coeff(BitReadCtx_t *bitctx, RK_S32 *alf_coeff) in read_pic_alf_coeff() 428 static MPP_RET parse_pic_alf_params(BitReadCtx_t *bitctx, Avs2dPicHeader_t *ph) in parse_pic_alf_params() 497 BitReadCtx_t *bitctx = &p_dec->bitctx; in parse_picture_header_comm() 590 BitReadCtx_t *bitctx = &p_dec->bitctx; in parse_picture_header_intra() 704 BitReadCtx_t *bitctx = &p_dec->bitctx; in parse_picture_header_inter()
|
| 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() 231 static MPP_RET parse_mastering_display_and_content_meta(BitReadCtx_t *bitctx, in parse_mastering_display_and_content_meta() 276 static MPP_RET parse_hdr_dynamic_meta_extension(BitReadCtx_t *bitctx, MppFrameHdrDynamicMeta *hdr_m… in parse_hdr_dynamic_meta_extension() 297 static MPP_RET parse_extension_header(Avs2dCtx_t *p_dec, BitReadCtx_t *bitctx) in parse_extension_header() 637 memset(&p_dec->bitctx, 0, sizeof(BitReadCtx_t)); in avs2d_parse_stream()
|
| /rockchip-linux_mpp/mpp/codec/dec/h263/ |
| H A D | h263d_parser.c | 84 BitReadCtx_t *bit_ctx; 148 static MPP_RET h263_parse_picture_header(H263dParserImpl *p, BitReadCtx_t *gb) in h263_parse_picture_header() 216 BitReadCtx_t *bit_ctx = mpp_calloc(BitReadCtx_t, 1); in mpp_h263_parser_init() 406 BitReadCtx_t *gb = p->bit_ctx; in mpp_h263_parser_decode()
|
| /rockchip-linux_mpp/mpp/codec/dec/common/ |
| H A D | h2645d_sei.h | 26 MPP_RET check_encoder_sei_info(BitReadCtx_t *gb, RK_S32 payload_size, RK_U32 *is_match);
|
| H A D | h2645d_sei.c | 30 MPP_RET check_encoder_sei_info(BitReadCtx_t *gb, RK_S32 payload_size, RK_U32 *is_match) in check_encoder_sei_info()
|
| /rockchip-linux_mpp/mpp/codec/dec/jpeg/ |
| H A D | jpegd_parser.c | 179 static inline RK_U16 jpegd_read_len(BitReadCtx_t *gb) in jpegd_read_len() 192 BitReadCtx_t *gb = ctx->bit_ctx; in jpegd_skip_section() 214 BitReadCtx_t *gb = ctx->bit_ctx; in jpegd_decode_dht() 318 BitReadCtx_t *gb = ctx->bit_ctx; in jpegd_decode_dqt() 394 BitReadCtx_t *gb = ctx->bit_ctx; in jpegd_decode_sof() 487 BitReadCtx_t *gb = ctx->bit_ctx; in jpegd_decode_sos() 577 BitReadCtx_t *gb = ctx->bit_ctx; in jpegd_decode_dri() 740 BitReadCtx_t *gb = ctx->bit_ctx; in jpegd_decode_frame() 1244 JpegCtx->bit_ctx = mpp_calloc(BitReadCtx_t, 1); in jpegd_init()
|
| H A D | jpegd_parser.h | 147 BitReadCtx_t *bit_ctx;
|
| /rockchip-linux_mpp/mpp/codec/dec/mpg4/ |
| H A D | mpg4d_parser.c | 176 BitReadCtx_t *bit_ctx; 218 static MPP_RET mpg4d_parse_matrix(BitReadCtx_t *gb, RK_U8 * matrix) in mpg4d_parse_matrix() 264 static MPP_RET read_vol_complexity_estimation_header(Mpeg4Estimation *e, BitReadCtx_t *gb) in read_vol_complexity_estimation_header() 327 static MPP_RET read_vop_complexity_estimation_header(Mpeg4Estimation *e, BitReadCtx_t *gb, Mpg4Hdr … in read_vop_complexity_estimation_header() 445 static MPP_RET mpg4d_parse_vol_header(Mpg4dParserImpl *p, BitReadCtx_t *cb) in mpg4d_parse_vol_header() 705 static MPP_RET mpg4d_parse_user_data(Mpg4dParserImpl *p, BitReadCtx_t *gb) in mpg4d_parse_user_data() 785 static MPP_RET mpeg4_parse_gop_header(Mpg4dParserImpl *p, BitReadCtx_t *gb) in mpeg4_parse_gop_header() 804 static MPP_RET mpeg4_parse_profile_level(Mpg4dParserImpl *p, BitReadCtx_t *bc) in mpeg4_parse_profile_level() 814 static MPP_RET mpeg4_parse_vop_header(Mpg4dParserImpl *p, BitReadCtx_t *gb) in mpeg4_parse_vop_header() 1059 BitReadCtx_t *bit_ctx = mpp_calloc(BitReadCtx_t, 1); in mpp_mpg4_parser_init() [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/avs/ |
| H A D | avsd_parse.h | 202 BitReadCtx_t bitctx; 221 BitReadCtx_t *bx;
|
| H A D | avsd_parse.c | 29 static MPP_RET get_sequence_header(BitReadCtx_t *bitctx, AvsdSeqHeader_t *vsh) in get_sequence_header() 115 static MPP_RET get_extend_header(BitReadCtx_t *bitctx, AvsdSeqHeader_t *vsh, AvsdPicHeader_t *ph) in get_extend_header() 165 static MPP_RET get_seq_dispay_ext_header(BitReadCtx_t *bitctx, AvsdSeqExtHeader_t *ext) in get_seq_dispay_ext_header() 191 static MPP_RET get_extension_header(BitReadCtx_t *bitctx, AvsdSeqExtHeader_t *ext) in get_extension_header() 213 static MPP_RET get_i_picture_header(BitReadCtx_t *bitctx, AvsdSeqHeader_t *vsh, AvsdPicHeader_t *ph) in get_i_picture_header() 286 static MPP_RET get_pb_picture_header(BitReadCtx_t *bitctx, AvsdSeqHeader_t *vsh, AvsdPicHeader_t *p… in get_pb_picture_header()
|