add CMYKA (#208)

This commit is contained in:
Emma authored and GitHub committed 2025-06-15 16:38:22 -07:00
1 parent 83e6d64751
commit 29b71ff597
6 files changed
+23

No files matched your search

+10
View File
@@ -341,3 +341,13 @@ impl ColorType for YCbCr8 {
integer_horizontal_predict!();
}
pub struct CMYKA8;
impl ColorType for CMYKA8 {
type Inner = u8;
const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::CMYK;
const BITS_PER_SAMPLE: &'static [u16] = &[8, 8, 8, 8, 8];
const SAMPLE_FORMAT: &'static [SampleFormat] = &[SampleFormat::Uint; 5];
integer_horizontal_predict!();
}