pub trait JpegPixel: Pixel<Subpixel = u8> {
const PIXEL_FORMAT: PixelFormat;
}
Expand description
Trait implemented for image::Pixel
s that correspond to a PixelFormat
supported
by TurboJPEG.
Required Associated Constants§
sourceconst PIXEL_FORMAT: PixelFormat
const PIXEL_FORMAT: PixelFormat
The TurboJPEG pixel format that corresponds to this pixel type.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl JpegPixel for Luma<u8>
impl JpegPixel for Luma<u8>
source§const PIXEL_FORMAT: PixelFormat = PixelFormat::GRAY
const PIXEL_FORMAT: PixelFormat = PixelFormat::GRAY
Available on crate feature
image
only.source§impl JpegPixel for Rgb<u8>
impl JpegPixel for Rgb<u8>
source§const PIXEL_FORMAT: PixelFormat = PixelFormat::RGB
const PIXEL_FORMAT: PixelFormat = PixelFormat::RGB
Available on crate feature
image
only.source§impl JpegPixel for Rgba<u8>
impl JpegPixel for Rgba<u8>
source§const PIXEL_FORMAT: PixelFormat = PixelFormat::RGBA
const PIXEL_FORMAT: PixelFormat = PixelFormat::RGBA
Available on crate feature
image
only.