Skip to main content

TileBatchDecodeManyDevice

Trait TileBatchDecodeManyDevice 

Source
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§

Source

type Context: CodecContext

Codec-specific context cached across tiles.

Source

type DeviceSurface: DeviceSurface

Device surface returned by decode calls.

Required Methods§

Source

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".

Implementors§