From: Kostya Shishkov Date: Thu, 15 Jun 2017 10:49:36 +0000 (+0200) Subject: formats: F32 -> F32P X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=126b7eb84c57f45e8f17e093115136d782db0d0e;p=nihav.git formats: F32 -> F32P --- diff --git a/src/formats.rs b/src/formats.rs index 180e980..29b54b0 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -23,7 +23,7 @@ bitflags! { pub const SND_U8_FORMAT: NASoniton = NASoniton { bits: 8, be: false, packed: false, planar: false, float: false, signed: false }; pub const SND_S16_FORMAT: NASoniton = NASoniton { bits: 16, be: false, packed: false, planar: false, float: false, signed: true }; -pub const SND_F32_FORMAT: NASoniton = NASoniton { bits: 32, be: false, packed: false, planar: false, float: true, signed: true }; +pub const SND_F32P_FORMAT: NASoniton = NASoniton { bits: 32, be: false, packed: false, planar: true, float: true, signed: true }; impl NASoniton { pub fn new(bits: u8, flags: SonitonFlags) -> Self { @@ -414,7 +414,7 @@ mod test { fn test_fmt() { println!("{}", SND_S16_FORMAT); println!("{}", SND_U8_FORMAT); - println!("{}", SND_F32_FORMAT); + println!("{}", SND_F32P_FORMAT); println!("formaton yuv- {}", YUV420_FORMAT); println!("formaton pal- {}", PAL8_FORMAT); println!("formaton rgb565- {}", RGB565_FORMAT);