Home
last modified time | relevance | path

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

/external/crosvm/media/cros-codecs/src/decoders/vp8/
Dbool_decoder.rs108 fn read_literal(&mut self, mut nbits: usize) -> Result<i32> { in read_literal() method
125 self.read_literal(1).map(|bit| bit != 0) in read_bool()
138 let value = self.read_literal(nbits)?; in read_uint()
146 let mut value = self.read_literal(nbits)?; in read_sint()
227 assert!(bd.read_literal(1).unwrap() == 0); in decode_literals_with_zeros_and_even_probabilities()
228 assert!(bd.read_literal(32).unwrap() == 0); in decode_literals_with_zeros_and_even_probabilities()
249 assert!(bd.read_literal(1).unwrap() == 1); in decode_literals_with_ones_and_even_probabilities()
250 assert!(bd.read_literal(31).unwrap() == 0x7fffffff); in decode_literals_with_ones_and_even_probabilities()