pub struct JpegCodec;Expand description
JPEG codec marker type for j2k-core trait integrations.
Trait Implementations§
impl Copy for JpegCodec
impl Eq for JpegCodec
Source§impl ImageCodec for JpegCodec
impl ImageCodec for JpegCodec
impl StructuralPartialEq for JpegCodec
Source§impl TileBatchDecode for JpegCodec
impl TileBatchDecode for JpegCodec
Source§type Context = DecoderContext
type Context = DecoderContext
Codec-specific context cached across tiles.
Source§fn decode_tile(
ctx: &mut CoreDecoderContext<Self::Context>,
pool: &mut Self::Pool,
input: &[u8],
out: &mut [u8],
stride: usize,
fmt: PixelFormat,
) -> Result<CoreDecodeOutcome<Self::Warning>, Self::Error>
fn decode_tile( ctx: &mut CoreDecoderContext<Self::Context>, pool: &mut Self::Pool, input: &[u8], out: &mut [u8], stride: usize, fmt: PixelFormat, ) -> Result<CoreDecodeOutcome<Self::Warning>, Self::Error>
Decode one tile into caller-owned output.
Source§fn decode_tile_region(
ctx: &mut CoreDecoderContext<Self::Context>,
pool: &mut Self::Pool,
input: &[u8],
out: &mut [u8],
stride: usize,
fmt: PixelFormat,
roi: Rect,
) -> Result<CoreDecodeOutcome<Self::Warning>, Self::Error>
fn decode_tile_region( ctx: &mut CoreDecoderContext<Self::Context>, pool: &mut Self::Pool, input: &[u8], out: &mut [u8], stride: usize, fmt: PixelFormat, roi: Rect, ) -> Result<CoreDecodeOutcome<Self::Warning>, Self::Error>
Decode one tile region into caller-owned output.
Source§fn decode_tile_scaled(
ctx: &mut CoreDecoderContext<Self::Context>,
pool: &mut Self::Pool,
input: &[u8],
out: &mut [u8],
stride: usize,
fmt: PixelFormat,
scale: Downscale,
) -> Result<CoreDecodeOutcome<Self::Warning>, Self::Error>
fn decode_tile_scaled( ctx: &mut CoreDecoderContext<Self::Context>, pool: &mut Self::Pool, input: &[u8], out: &mut [u8], stride: usize, fmt: PixelFormat, scale: Downscale, ) -> Result<CoreDecodeOutcome<Self::Warning>, Self::Error>
Decode one tile at reduced resolution into caller-owned output.
Source§fn decode_tile_region_scaled(
ctx: &mut CoreDecoderContext<Self::Context>,
pool: &mut Self::Pool,
input: &[u8],
out: &mut [u8],
stride: usize,
fmt: PixelFormat,
roi: Rect,
scale: Downscale,
) -> Result<CoreDecodeOutcome<Self::Warning>, Self::Error>
fn decode_tile_region_scaled( ctx: &mut CoreDecoderContext<Self::Context>, pool: &mut Self::Pool, input: &[u8], out: &mut [u8], stride: usize, fmt: PixelFormat, roi: Rect, scale: Downscale, ) -> Result<CoreDecodeOutcome<Self::Warning>, Self::Error>
Decode one tile region at reduced resolution into caller-owned output.
Source§fn decode_tile_request<'a>(
ctx: &mut DecoderContext<Self::Context>,
pool: &mut Self::Pool,
input: &'a [u8],
out: &mut [u8],
stride: usize,
fmt: PixelFormat,
request: DecodeRequest,
) -> Result<DecodeOutcome<Self::Warning>, Self::Error>
fn decode_tile_request<'a>( ctx: &mut DecoderContext<Self::Context>, pool: &mut Self::Pool, input: &'a [u8], out: &mut [u8], stride: usize, fmt: PixelFormat, request: DecodeRequest, ) -> Result<DecodeOutcome<Self::Warning>, Self::Error>
Decode one tile for a normalized full/ROI/scaled request.
Auto Trait Implementations§
impl Freeze for JpegCodec
impl RefUnwindSafe for JpegCodec
impl Send for JpegCodec
impl Sync for JpegCodec
impl Unpin for JpegCodec
impl UnsafeUnpin for JpegCodec
impl UnwindSafe for JpegCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more