From a41e33e42a0126315152e397f3053d045cf4edf6 Mon Sep 17 00:00:00 2001 From: Andrew Champion Date: Thu, 6 Feb 2020 19:23:45 +0000 Subject: [PATCH] Fix wrong inner types for color types --- src/encoder/colortype.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encoder/colortype.rs b/src/encoder/colortype.rs index 2f97066..a625b78 100644 --- a/src/encoder/colortype.rs +++ b/src/encoder/colortype.rs @@ -82,14 +82,14 @@ impl ColorType for RGBA16 { pub struct RGBA32; impl ColorType for RGBA32 { - type Inner = u16; + type Inner = u32; const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB; const BITS_PER_SAMPLE: &'static [u16] = &[32, 32, 32, 32]; } pub struct RGBA64; impl ColorType for RGBA64 { - type Inner = u16; + type Inner = u64; const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB; const BITS_PER_SAMPLE: &'static [u16] = &[64, 64, 64, 64]; }