forge
Explore
Log in

Don't you dare go Hollow

S11: drop doc comments added on Syntax::of and downmix_gains (no-comments rule)

Browse files at this commit

96cce03dc0f284e6adb3912b026ae2cbb87a4cbdAhmet Kaan GümüşParent: a4831bd
crates/ec-ac3/src/decode.rsmodified+0 -2
@@ -36,8 +36,6 @@ pub enum Syntax {
36 }36 }
37 37
38 impl Syntax {38 impl Syntax {
39- /// The syntax of the syncframe at `data`, read from bsid, which sits in
40- /// the sixth byte of both. `None` when there are not six bytes yet.
41 pub(crate) fn of(data: &[u8]) -> Option<Syntax> {39 pub(crate) fn of(data: &[u8]) -> Option<Syntax> {
42 let bsid = *data.get(5)? >> 3;40 let bsid = *data.get(5)? >> 3;
43 Some(if bsid <= 10 { Syntax::Ac3 } else { Syntax::Eac3 })41 Some(if bsid <= 10 { Syntax::Ac3 } else { Syntax::Eac3 })
crates/ec-ac3/src/decoder.rsmodified+0 -1
@@ -413,7 +413,6 @@ impl Ac3Decoder {
413 }413 }
414 }414 }
415 415
416- /// Per-channel gains into the left and right downmix sums (§7.8.2).
417 fn downmix_gains(info: &FrameInfo, positions: &[ChannelPosition]) -> (Vec<f32>, Vec<f32>) {416 fn downmix_gains(info: &FrameInfo, positions: &[ChannelPosition]) -> (Vec<f32>, Vec<f32>) {
418 let clev = info.center_mix_level.unwrap_or(0.707);417 let clev = info.center_mix_level.unwrap_or(0.707);
419 let slev = info.surround_mix_level.unwrap_or(0.707);418 let slev = info.surround_mix_level.unwrap_or(0.707);