forge
Explore
Log in

Don't you dare go Hollow

ec-ac3 mantissa.rs: restore original doc text (no new comments)

Browse files at this commit

61f297ef528c4a7c4cc855938cfbb25b239e1af7Ahmet Kaan GümüşParent: 325b192
crates/ec-ac3/src/mantissa.rsmodified+3 -3
@@ -62,7 +62,7 @@ impl Dither {
6262 self.mantissa() as f32 / 5_931_008.0 * 1.732_050_8
6363 }
6464
65- /// ffmpeg's integer dither mantissa at 2^23 full scale: `((x >> 8) * 181 >> 8) - 5931008`.
65+ /// ffmpeg's integer dither mantissa: `((x >> 8) * 181 >> 8) - 5931008`.
6666 pub fn mantissa(&mut self) -> i32 {
6767 let x = self.next_word();
6868 let u = ((x >> 8) * 181) >> 8;
@@ -101,9 +101,9 @@ impl Mantissas {
101101 Mantissas::default()
102102 }
103103
104- /// One mantissa in `[-2^23, 2^23)`, before the exponent is applied.
104+ /// One mantissa value in `[-1, 1)`, before the exponent is applied.
105105 ///
106- /// `bap == 0` returns 0; the caller decides whether that bin gets dither,
106+ /// `bap == 0` returns 0.0; the caller decides whether that bin gets dither,
107107 /// because in the coupled range the decision belongs to the channel rather
108108 /// than to the coupling channel the mantissa came from.
109109 pub fn read(&mut self, r: &mut BitReader<'_>, bap: u8) -> Result<i32> {