pub trait ColorType {
    type Inner: TiffValue;

    const TIFF_VALUE: PhotometricInterpretation;
    const BITS_PER_SAMPLE: &'static [u16];
    const SAMPLE_FORMAT: &'static [SampleFormat];
}
Expand description

Trait for different colortypes that can be encoded.

Required Associated Types§

source

type Inner: TiffValue

The type of each sample of this colortype

Required Associated Constants§

source

const TIFF_VALUE: PhotometricInterpretation

The value of the tiff tag PhotometricInterpretation

source

const BITS_PER_SAMPLE: &'static [u16]

The value of the tiff tag BitsPerSample

source

const SAMPLE_FORMAT: &'static [SampleFormat]

The value of the tiff tag SampleFormat

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ColorType for CMYK8

§

type Inner = u8

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::CMYK

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for CMYK16

§

type Inner = u16

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::CMYK

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for CMYK32

§

type Inner = u32

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::CMYK

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for CMYK32Float

§

type Inner = f32

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::CMYK

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for CMYK64

§

type Inner = u64

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::CMYK

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for CMYK64Float

§

type Inner = f64

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::CMYK

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for Gray8

§

type Inner = u8

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::BlackIsZero

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for Gray16

§

type Inner = u16

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::BlackIsZero

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for Gray32

§

type Inner = u32

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::BlackIsZero

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for Gray32Float

§

type Inner = f32

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::BlackIsZero

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for Gray64

§

type Inner = u64

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::BlackIsZero

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for Gray64Float

§

type Inner = f64

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::BlackIsZero

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for GrayI8

§

type Inner = i8

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::BlackIsZero

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for GrayI16

§

type Inner = i16

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::BlackIsZero

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for GrayI32

§

type Inner = i32

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::BlackIsZero

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for GrayI64

§

type Inner = i64

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::BlackIsZero

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGB8

§

type Inner = u8

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGB16

§

type Inner = u16

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGB32

§

type Inner = u32

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGB32Float

§

type Inner = f32

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGB64

§

type Inner = u64

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGB64Float

§

type Inner = f64

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGBA8

§

type Inner = u8

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGBA16

§

type Inner = u16

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGBA32

§

type Inner = u32

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGBA32Float

§

type Inner = f32

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGBA64

§

type Inner = u64

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for RGBA64Float

§

type Inner = f64

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::RGB

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _

source§

impl ColorType for YCbCr8

§

type Inner = u8

source§

const TIFF_VALUE: PhotometricInterpretation = PhotometricInterpretation::YCbCr

source§

const BITS_PER_SAMPLE: &'static [u16] = _

source§

const SAMPLE_FORMAT: &'static [SampleFormat] = _