Trait turbojpeg::JpegPixel

source ·
pub trait JpegPixel: Pixel<Subpixel = u8> {
    const PIXEL_FORMAT: PixelFormat;
}
Expand description

Trait implemented for image::Pixels that correspond to a PixelFormat supported by TurboJPEG.

Required Associated Constants§

source

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>

source§

const PIXEL_FORMAT: PixelFormat = PixelFormat::GRAY

Available on crate feature image only.
source§

impl JpegPixel for Rgb<u8>

source§

const PIXEL_FORMAT: PixelFormat = PixelFormat::RGB

Available on crate feature image only.
source§

impl JpegPixel for Rgba<u8>

source§

const PIXEL_FORMAT: PixelFormat = PixelFormat::RGBA

Available on crate feature image only.

Implementors§