Lines Matching refs:gb
321 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()
389 READ_ONEBIT(gb, &chroma_weight_l1_flag[i]); in pred_weight_table()
397 READ_UE(gb, &delta_luma_weight_l1); in pred_weight_table()
399 READ_SE(gb, &s->sh.luma_offset_l1[i]); in pred_weight_table()
405 READ_SE(gb, &delta_chroma_weight_l1); in pred_weight_table()
406 READ_SE(gb, &delta_chroma_offset_l1); in pred_weight_table()
424 static RK_S32 decode_lt_rps(HEVCContext *s, LongTermRPS *rps, BitReadCtx_t *gb) in decode_lt_rps() argument
432 RK_S32 bit_begin = gb->used_bits; in decode_lt_rps()
441 READ_UE(gb, &nb_sps); in decode_lt_rps()
443 READ_UE(gb, &nb_sh); in decode_lt_rps()
457 READ_BITS(gb, mpp_ceil_log2(sps->num_long_term_ref_pics_sps), <_idx_sps); in decode_lt_rps()
462 READ_BITS(gb, sps->log2_max_poc_lsb, &rps->poc[i]); in decode_lt_rps()
463 READ_ONEBIT(gb, &rps->used[i]); in decode_lt_rps()
466 READ_ONEBIT(gb, &delta_poc_msb_present); in decode_lt_rps()
470 READ_UE(gb, &delta); in decode_lt_rps()
481 += (gb->used_bits - bit_begin); in decode_lt_rps()
711 BitReadCtx_t *gb = &s->HEVClc->gb; in hls_slice_header() local
724 READ_ONEBIT(gb, &sh->first_slice_in_pic_flag); in hls_slice_header()
732 READ_ONEBIT(gb, &sh->no_output_of_prior_pics_flag); in hls_slice_header()
739 READ_UE(gb, &pps_id); in hls_slice_header()
781 READ_ONEBIT(gb, &sh->dependent_slice_segment_flag); in hls_slice_header()
786 READ_BITS(gb, slice_address_length, &sh->slice_segment_addr); in hls_slice_header()
809 SKIP_BITS(gb, 1); // slice_reserved_undetermined_flag[] in hls_slice_header()
811 READ_UE(gb, &sh->slice_type); in hls_slice_header()
825 READ_ONEBIT(gb, &sh->pic_output_flag); 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()
845 READ_ONEBIT(gb, &sh->short_term_ref_pic_set_sps_flag); in hls_slice_header()
847 bit_begin = gb->used_bits; in hls_slice_header()
867 READ_BITS(gb, numbits, &rps_idx); in hls_slice_header()
874 s->rps_bit_offset_st[s->slice_idx] = gb->used_bits - bit_begin; in hls_slice_header()
878 ret = decode_lt_rps(s, &sh->long_term_rps, gb); in hls_slice_header()
886 READ_ONEBIT(gb, &sh->slice_temporal_mvp_enabled_flag); in hls_slice_header()
906 READ_ONEBIT(gb, &sh->slice_sample_adaptive_offset_flag[0]); in hls_slice_header()
908 READ_ONEBIT(gb, &sh->slice_sample_adaptive_offset_flag[1]); in hls_slice_header()
929 READ_ONEBIT(gb, &value); in hls_slice_header()
932 READ_UE(gb, &sh->nb_refs[L0]); in hls_slice_header()
935 READ_UE(gb, &sh->nb_refs[L1]); in hls_slice_header()
954 READ_ONEBIT(gb, &sh->rpl_modification_flag[0]); in hls_slice_header()
957 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh->list_entry_lx[0][i]); in hls_slice_header()
961 READ_ONEBIT(gb, &sh->rpl_modification_flag[1]); in hls_slice_header()
964 READ_BITS(gb, mpp_ceil_log2(nb_refs), &sh->list_entry_lx[1][i]); in hls_slice_header()
969 READ_ONEBIT(gb, &sh->mvd_l1_zero_flag); in hls_slice_header()
972 READ_ONEBIT(gb, &sh->cabac_init_flag); in hls_slice_header()
980 READ_ONEBIT(gb, &value); in hls_slice_header()
985 READ_UE(gb, &sh->collocated_ref_idx); in hls_slice_header()
997 pred_weight_table(s, gb); in hls_slice_header()
1000 READ_UE(gb, &value); in hls_slice_header()
1009 READ_SE(gb, &sh->slice_qp_delta ); in hls_slice_header()
1011 READ_SE(gb, &sh->slice_cb_qp_offset); in hls_slice_header()
1012 READ_SE(gb, &sh->slice_cr_qp_offset); in hls_slice_header()
1022 READ_ONEBIT(gb, & deblocking_filter_override_flag); in hls_slice_header()
1025 READ_ONEBIT(gb, &sh->disable_deblocking_filter_flag); in hls_slice_header()
1027 READ_SE(gb, &sh->beta_offset); in hls_slice_header()
1029 READ_SE(gb, &sh->tc_offset); in hls_slice_header()
1047 READ_ONEBIT(gb, &sh->slice_loop_filter_across_slices_enabled_flag); in hls_slice_header()
1058 READ_UE(gb, &sh->num_entry_point_offsets); in hls_slice_header()
1077 READ_UE(gb, &offset_len_minus1); in hls_slice_header()
1079 SKIP_BITS(gb, offset_len_minus1 + 1); in hls_slice_header()
1086 s->start_bit = gb->used_bits; in hls_slice_header()
1087 READ_UE(gb, &length); in hls_slice_header()
1089 SKIP_BITS(gb, 8); // slice_header_extension_data_byte in hls_slice_header()
1091 s->end_bit = gb->used_bits; in hls_slice_header()
1135 BitReadCtx_t*gb = &s->HEVClc->gb; in hls_nal_unit() local
1138 READ_ONEBIT(gb, &value); /*this bit should be zero*/ in hls_nal_unit()
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()
1144 READ_BITS(gb, 3, &s->temporal_id); in hls_nal_unit()
1344 BitReadCtx_t *gb = &lc->gb; in parser_nal_unit() local
1346 mpp_set_bitread_ctx(gb, (RK_U8*)nal, length); in parser_nal_unit()
1347 mpp_set_bitread_pseudo_code_type(gb, PSEUDO_CODE_H264_H265); in parser_nal_unit()
1714 mpp_set_bitread_ctx(&s->HEVClc->gb, (RK_U8 *)nal->data, nal->size); in split_nal_units()
1715 mpp_set_bitread_pseudo_code_type(&s->HEVClc->gb, PSEUDO_CODE_H264_H265); in split_nal_units()
1788 BitReadCtx_t gb; in check_rpus() local
1791 mpp_set_bitread_ctx((&gb), (RK_U8*)nal->data, nal->size); in check_rpus()
1792 mpp_set_bitread_pseudo_code_type((&gb), PSEUDO_CODE_H264_H265); in check_rpus()
1794 READ_ONEBIT((&gb), &value); /*this bit should be zero*/ in check_rpus()
1795 READ_BITS((&gb), 6, &nal_unit_type); in check_rpus()
1796 READ_BITS((&gb), 6, &nuh_layer_id); in check_rpus()
1797 READ_BITS((&gb), 3, &temporal_id); in check_rpus()
1808 mpp_hevc_fill_dynamic_meta(s, nal->data + 2, gb.bytes_left_ + 4, DLBY); in check_rpus()