Lines Matching refs:local_bs
672 ia_bit_buf_struct local_bs = {0}; in ixheaacd_drc_read_compression() local
675 memcpy(&local_bs, bs, sizeof(ia_bit_buf_struct)); in ixheaacd_drc_read_compression()
677 if (local_bs.size < bs_pos) { in ixheaacd_drc_read_compression()
678 longjmp(*(local_bs.xaac_jmp_buf), in ixheaacd_drc_read_compression()
681 bytes = (local_bs.size - bs_pos) >> 3; in ixheaacd_drc_read_compression()
682 bits = (local_bs.size - bs_pos) % 8; in ixheaacd_drc_read_compression()
684 local_bs.cnt_bits = bs_pos; in ixheaacd_drc_read_compression()
685 local_bs.ptr_read_next = local_bs.ptr_bit_buf_base; in ixheaacd_drc_read_compression()
686 local_bs.ptr_read_next += bytes; in ixheaacd_drc_read_compression()
687 local_bs.bit_pos = 7 - bits; in ixheaacd_drc_read_compression()
689 if (ixheaacd_read_bits_buf(&local_bs, 8) != DVB_ANC_DATA_SYNC_BYTE) { in ixheaacd_drc_read_compression()
693 if (ixheaacd_read_bits_buf(&local_bs, 2) != 3) return 0; in ixheaacd_drc_read_compression()
695 ixheaacd_read_bits_buf(&local_bs, 2); in ixheaacd_drc_read_compression()
696 pstr_drc_dec->pres_mode = ixheaacd_read_bits_buf(&local_bs, 2); in ixheaacd_drc_read_compression()
697 ixheaacd_read_bits_buf(&local_bs, 1); in ixheaacd_drc_read_compression()
698 if (ixheaacd_read_bits_buf(&local_bs, 1) != 0) return 0; in ixheaacd_drc_read_compression()
700 if (ixheaacd_read_bits_buf(&local_bs, 3) != 0) return 0; in ixheaacd_drc_read_compression()
702 dmx_lvl_present = ixheaacd_read_bits_buf(&local_bs, 1); in ixheaacd_drc_read_compression()
703 ext_present = ixheaacd_read_bits_buf(&local_bs, 1); in ixheaacd_drc_read_compression()
704 compression_present = ixheaacd_read_bits_buf(&local_bs, 1); in ixheaacd_drc_read_compression()
705 coarse_gain_present = ixheaacd_read_bits_buf(&local_bs, 1); in ixheaacd_drc_read_compression()
706 fine_grain_present = ixheaacd_read_bits_buf(&local_bs, 1); in ixheaacd_drc_read_compression()
710 ixheaacd_read_bits_buf(&local_bs, 8); in ixheaacd_drc_read_compression()
717 if (ixheaacd_read_bits_buf(&local_bs, 7) != 0) return 0; in ixheaacd_drc_read_compression()
719 compression_on = (UWORD8)ixheaacd_read_bits_buf(&local_bs, 1); in ixheaacd_drc_read_compression()
720 compression_val = (UWORD8)ixheaacd_read_bits_buf(&local_bs, 8); in ixheaacd_drc_read_compression()
740 ixheaacd_read_bits_buf(&local_bs, 16); in ixheaacd_drc_read_compression()
744 ixheaacd_read_bits_buf(&local_bs, 16); in ixheaacd_drc_read_compression()
751 ixheaacd_read_bits_buf(&local_bs, 1); in ixheaacd_drc_read_compression()
752 if (ixheaacd_read_bits_buf(&local_bs, 1)) ext_bits += 8; in ixheaacd_drc_read_compression()
753 if (ixheaacd_read_bits_buf(&local_bs, 1)) ext_bits += 16; in ixheaacd_drc_read_compression()
754 if (ixheaacd_read_bits_buf(&local_bs, 1)) ext_bits += 8; in ixheaacd_drc_read_compression()
756 ixheaacd_read_bits_buf(&local_bs, ext_bits - 4); in ixheaacd_drc_read_compression()