Home
last modified time | relevance | path

Searched refs:read_n_bits (Results 1 – 3 of 3) sorted by relevance

/xiu/library/container/flv/src/
H A Dmpeg4_aac.rs217 if self.bits_reader.read_n_bits(1)? > 0 { in celp_specific_config_load()
219 self.bits_reader.read_n_bits(1)?; in celp_specific_config_load()
220 self.bits_reader.read_n_bits(1)?; in celp_specific_config_load()
223 self.bits_reader.read_n_bits(3)?; in celp_specific_config_load()
225 self.bits_reader.read_n_bits(5)?; in celp_specific_config_load()
230 self.bits_reader.read_n_bits(1)?; in celp_specific_config_load()
231 self.bits_reader.read_n_bits(2)?; in celp_specific_config_load()
243 self.bits_reader.read_n_bits(1)?; in ga_specific_config_load()
246 self.bits_reader.read_n_bits(14)?; in ga_specific_config_load()
255 self.bits_reader.read_n_bits(3)?; in ga_specific_config_load()
[all …]
/xiu/library/codec/h264/src/
H A Dutils.rs21 let code_num = (1 << leading_zeros_bits) - 1 + bit_reader.read_n_bits(leading_zeros_bits)?; in read_uev()
67 bits_reader.read_n_bits(7).unwrap(); in test_read_uev()
72 bits_reader.read_n_bits(5).unwrap(); in test_read_uev()
77 bits_reader.read_n_bits(5).unwrap(); in test_read_uev()
82 bits_reader.read_n_bits(3).unwrap(); in test_read_uev()
87 bits_reader.read_n_bits(3).unwrap(); in test_read_uev()
92 bits_reader.read_n_bits(3).unwrap(); in test_read_uev()
97 bits_reader.read_n_bits(3).unwrap(); in test_read_uev()
102 bits_reader.read_n_bits(1).unwrap(); in test_read_uev()
107 bits_reader.read_n_bits(1).unwrap(); in test_read_uev()
/xiu/library/bytesio/src/
H A Dbits_reader.rs54 pub fn read_n_bits(&mut self, n: usize) -> Result<u64, BitError> { in read_n_bits() method
118 assert!(bit_reader.read_n_bits(16).unwrap() == 0x207); in test_read_n_bits()
120 assert!(bit_reader.read_n_bits(5).unwrap() == 0); in test_read_n_bits()
122 assert!(bit_reader.read_n_bits(3).unwrap() == 2); in test_read_n_bits()