pub trait TileBatchDecodeManyDevice: ImageCodec {
type Context: CodecContext;
type DeviceSurface: DeviceSurface;
// Required method
fn decode_tiles_to_device(
ctx: &mut DecoderContext<Self::Context>,
pool: &mut Self::Pool,
inputs: &[&[u8]],
fmt: PixelFormat,
backend: BackendRequest,
) -> Result<Vec<Self::DeviceSurface>, Self::Error>;
}Expand description
Full-tile batch helpers that decode many independent tiles to device surfaces.
Required Associated Types§
Sourcetype Context: CodecContext
type Context: CodecContext
Codec-specific context cached across tiles.
Sourcetype DeviceSurface: DeviceSurface
type DeviceSurface: DeviceSurface
Device surface returned by decode calls.
Required Methods§
Sourcefn decode_tiles_to_device(
ctx: &mut DecoderContext<Self::Context>,
pool: &mut Self::Pool,
inputs: &[&[u8]],
fmt: PixelFormat,
backend: BackendRequest,
) -> Result<Vec<Self::DeviceSurface>, Self::Error>
fn decode_tiles_to_device( ctx: &mut DecoderContext<Self::Context>, pool: &mut Self::Pool, inputs: &[&[u8]], fmt: PixelFormat, backend: BackendRequest, ) -> Result<Vec<Self::DeviceSurface>, Self::Error>
Decode many full tiles to the requested backend, preserving input order.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".