Home
last modified time | relevance | path

Searched refs:gb (Results 1 – 17 of 17) sorted by relevance

/rockchip-linux_mpp/mpp/codec/dec/h265/
H A Dh265d_sei.c36 static RK_S32 decode_nal_sei_decoded_picture_hash(BitReadCtx_t *gb) in decode_nal_sei_decoded_picture_hash() argument
40 READ_BITS(gb, 8, &hash_type); in decode_nal_sei_decoded_picture_hash()
46 SKIP_BITS(gb, 8); in decode_nal_sei_decoded_picture_hash()
48 SKIP_BITS(gb, 16); in decode_nal_sei_decoded_picture_hash()
50 SKIP_BITS(gb, 32); 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() argument
62 READ_UE(gb, &value); // frame_packing_arrangement_id in decode_nal_sei_frame_packing_arrangement()
63 READ_ONEBIT(gb, &value); in decode_nal_sei_frame_packing_arrangement()
67 READ_BITS(gb, 7, &s->frame_packing_arrangement_type); in decode_nal_sei_frame_packing_arrangement()
68 READ_ONEBIT(gb, &s->quincunx_subsampling); in decode_nal_sei_frame_packing_arrangement()
[all …]
H A Dh265d_ps.c148 BitReadCtx_t *gb = &lc->gb; in mpp_hevc_decode_short_term_rps() local
151 READ_ONEBIT(gb, &rps_predict); in mpp_hevc_decode_short_term_rps()
161 READ_UE(gb, &delta_idx); in mpp_hevc_decode_short_term_rps()
173 READ_BITS(gb, 1, &delta_rps_sign); in mpp_hevc_decode_short_term_rps()
175 READ_UE(gb, &abs_delta_rps); in mpp_hevc_decode_short_term_rps()
182 READ_ONEBIT(gb, &used); in mpp_hevc_decode_short_term_rps()
187 READ_ONEBIT(gb, &use_delta_flag); in mpp_hevc_decode_short_term_rps()
237 READ_UE(gb, &rps->num_negative_pics); in mpp_hevc_decode_short_term_rps()
239 READ_UE(gb, &nb_positive_pics); in mpp_hevc_decode_short_term_rps()
251 READ_UE(gb, &delta_poc); in mpp_hevc_decode_short_term_rps()
[all …]
H A Dh265d_parser.c321 static RK_S32 pred_weight_table(HEVCContext *s, BitReadCtx_t *gb) in pred_weight_table() argument
330 READ_UE(gb, &s->sh.luma_log2_weight_denom); in pred_weight_table()
333 READ_SE(gb, &delta); in pred_weight_table()
338 READ_ONEBIT(gb, &luma_weight_l0_flag[i]); in pred_weight_table()
347 READ_ONEBIT(gb, &chroma_weight_l0_flag[i]); in pred_weight_table()
357 READ_SE(gb, &delta_luma_weight_l0); in pred_weight_table()
359 READ_SE(gb, &s->sh.luma_offset_l0[i]); in pred_weight_table()
365 READ_SE(gb, &delta_chroma_weight_l0); in pred_weight_table()
366 READ_SE(gb, &delta_chroma_offset_l0); in pred_weight_table()
381 READ_ONEBIT(gb, &luma_weight_l1_flag[i]); in pred_weight_table()
[all …]
H A Dh265d_parser2_syntax.c416 BitReadCtx_t gb_cxt, *gb; in h265d_syntax_fill_slice() local
424 gb = &gb_cxt; in h265d_syntax_fill_slice()
426 READ_ONEBIT(gb, &value); /*this bit should be zero*/ in h265d_syntax_fill_slice()
428 READ_BITS(gb, 6, &nal_type); in h265d_syntax_fill_slice()
H A Dh265d_parser.h509 BitReadCtx_t gb; member
/rockchip-linux_mpp/mpp/codec/dec/mpg4/
H A Dmpg4d_parser.c218 static MPP_RET mpg4d_parse_matrix(BitReadCtx_t *gb, RK_U8 * matrix) in mpg4d_parse_matrix() argument
225 READ_BITS(gb, 8, &value); in mpg4d_parse_matrix()
264 static MPP_RET read_vol_complexity_estimation_header(Mpeg4Estimation *e, BitReadCtx_t *gb) in read_vol_complexity_estimation_header() argument
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()
[all …]
/rockchip-linux_mpp/mpp/codec/dec/av1/
H A Dav1d_cbs.c345 CHECK(mpp_av1_read_unsigned(gb, width, #name, \
352 CHECK(mpp_av1_read_signed(gb, width, #name, \
361 CHECK(mpp_av1_read_uvlc(gb, #name, \
368 CHECK(mpp_av1_read_ns(gb, #name, max_value, \
375 CHECK(mpp_av1_read_increment(gb, min, max, #name, &value)); \
381 CHECK(mpp_av1_read_subexp(gb, max, \
399 CHECK(mpp_av1_read_leb128(gb, &value)); \
407 #define byte_alignment(gb) (mpp_get_bits_count(gb) % 8) argument
409 static RK_S32 mpp_av1_read_obu_header(AV1Context *ctx, BitReadCtx_t *gb, in mpp_av1_read_obu_header() argument
437 static RK_S32 mpp_av1_trailing_bits(AV1Context *ctx, BitReadCtx_t *gb, RK_S32 nb_bits) in mpp_av1_trailing_bits() argument
[all …]
H A Dav1d_parser.c523 GetByteCxt gb; in get_tiles_info() local
528 bytestream_init(&gb, tile_group->tile_data.data, in get_tiles_info()
536 s->tile_offset_start[tile_num] = bytestream_tell(&gb) + s->tile_offset; in get_tiles_info()
537 …s->tile_offset_end[tile_num] = bytestream_tell(&gb) + bytestream_get_bytes_left(&gb) + s->tile_off… in get_tiles_info()
542 if (bytestream_get_bytes_left(&gb) < size_bytes) in get_tiles_info()
546 size |= bytestream_get_byteu(&gb) << 8 * i; in get_tiles_info()
547 if (bytestream_get_bytes_left(&gb) <= size) in get_tiles_info()
551 s->tile_offset_start[tile_num] = bytestream_tell(&gb) + s->tile_offset; in get_tiles_info()
553 s->tile_offset_end[tile_num] = bytestream_tell(&gb) + size + s->tile_offset; in get_tiles_info()
555 bytestream_skipu(&gb, size); in get_tiles_info()
[all …]
H A Dav1d_codec.h50 BitReadCtx_t gb; member
H A Dav1d_parser.h83 BitReadCtx_t gb; member
/rockchip-linux_mpp/mpp/hal/rkdec/h265d/
H A Dhal_h265d_com.c376 BitReadCtx_t gb_cxt, *gb; in hal_h265d_slice_output_rps() local
403 gb = &gb_cxt; in hal_h265d_slice_output_rps()
405 READ_ONEBIT(gb, &value); in hal_h265d_slice_output_rps()
410 READ_BITS(gb, 6, &nal_type); in hal_h265d_slice_output_rps()
416 SKIP_BITS(gb, 9); in hal_h265d_slice_output_rps()
418 READ_ONEBIT(gb, &sh.first_slice_in_pic_flag); in hal_h265d_slice_output_rps()
421 READ_ONEBIT(gb, &sh.no_output_of_prior_pics_flag); in hal_h265d_slice_output_rps()
423 READ_UE(gb, &sh.pps_id); in hal_h265d_slice_output_rps()
444 READ_ONEBIT(gb, &sh.dependent_slice_segment_flag); in hal_h265d_slice_output_rps()
448 READ_BITS(gb, slice_address_length, &sh.slice_segment_addr); in hal_h265d_slice_output_rps()
[all …]
/rockchip-linux_mpp/mpp/codec/dec/jpeg/
H A Djpegd_parser.c179 static inline RK_U16 jpegd_read_len(BitReadCtx_t *gb) in jpegd_read_len() argument
182 READ_BITS(gb, 8, &lh); in jpegd_read_len()
183 READ_BITS(gb, 8, &ll); in jpegd_read_len()
192 BitReadCtx_t *gb = ctx->bit_ctx; in jpegd_skip_section() local
195 if (gb->bytes_left_ < 2) in jpegd_skip_section()
197 len = jpegd_read_len(gb); in jpegd_skip_section()
198 if (len < 2 /* invalid marker */ || (RK_U32)len - 2 > gb->bytes_left_) { in jpegd_skip_section()
203 SKIP_BITS(gb, (len - 2) * 8); in jpegd_skip_section()
214 BitReadCtx_t *gb = ctx->bit_ctx; in jpegd_decode_dht() local
220 len = jpegd_read_len(gb); in jpegd_decode_dht()
[all …]
/rockchip-linux_mpp/mpp/codec/dec/vp9/
H A Dvp9d_parser.c442 static RK_S32 get_sbits_inv(BitReadCtx_t *gb, RK_S32 n) in get_sbits_inv() argument
446 READ_BITS(gb, n, &v); in get_sbits_inv()
447 READ_ONEBIT(gb, &value); in get_sbits_inv()
540 static RK_S32 mpp_get_bit1(BitReadCtx_t *gb) in mpp_get_bit1() argument
543 READ_ONEBIT(gb, &value); in mpp_get_bit1()
549 static RK_S32 mpp_get_bits(BitReadCtx_t *gb, RK_S32 num_bit) in mpp_get_bits() argument
552 READ_BITS(gb, num_bit, &value); in mpp_get_bits()
566 RK_S32 bits = ctx->profile <= 1 ? 0 : 1 + mpp_get_bit1(&s->gb); // 0:8, 1:10, 2:12 in read_colorspace_details()
572 ctx->colorspace = colorspaces[mpp_get_bits(&s->gb, 3)]; in read_colorspace_details()
592 ctx->color_range = mpp_get_bit1(&s->gb) ? MPP_FRAME_RANGE_JPEG : MPP_FRAME_RANGE_MPEG; in read_colorspace_details()
[all …]
H A Dvp9d_parser.h111 BitReadCtx_t gb; member
/rockchip-linux_mpp/mpp/codec/dec/h263/
H A Dh263d_parser.c148 static MPP_RET h263_parse_picture_header(H263dParserImpl *p, BitReadCtx_t *gb) in h263_parse_picture_header() argument
155 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()
166 SKIP_BITS(gb, 5); 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()
191 SKIP_BITS(gb, 1); in h263_parse_picture_header()
[all …]
/rockchip-linux_mpp/mpp/codec/dec/common/
H A Dh2645d_sei.c30 MPP_RET check_encoder_sei_info(BitReadCtx_t *gb, RK_S32 payload_size, RK_U32 *is_match) in check_encoder_sei_info() argument
42 READ_BITS(gb, 8, &payload[i]); in check_encoder_sei_info()
56 return gb->ret; in check_encoder_sei_info()
H A Dh2645d_sei.h26 MPP_RET check_encoder_sei_info(BitReadCtx_t *gb, RK_S32 payload_size, RK_U32 *is_match);