pub struct ReferenceZcrDecoderConfig;Expand description
The reference decoder registered under the self-detecting ZCR_FORMAT
instead of ImageFormat::Pnm.
Drop-in for ReferenceDecoderConfig on a CodecSet
when you want set.decode(bytes) / set.probe(bytes) to detect the
reference codec’s own bytes. Decode behavior is identical — only the
registration format differs.
Trait Implementations§
Source§impl Clone for ReferenceZcrDecoderConfig
impl Clone for ReferenceZcrDecoderConfig
Source§fn clone(&self) -> ReferenceZcrDecoderConfig
fn clone(&self) -> ReferenceZcrDecoderConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReferenceZcrDecoderConfig
impl Debug for ReferenceZcrDecoderConfig
Source§impl DecoderConfig for ReferenceZcrDecoderConfig
impl DecoderConfig for ReferenceZcrDecoderConfig
Source§type Job<'a> = RefDecodeJob
type Job<'a> = RefDecodeJob
Per-operation job type. Read more
Source§fn formats() -> &'static [ImageFormat]
fn formats() -> &'static [ImageFormat]
The image formats this decoder handles. Read more
Source§fn supported_descriptors() -> &'static [PixelDescriptor]
fn supported_descriptors() -> &'static [PixelDescriptor]
Pixel formats this decoder can produce natively. Read more
Source§fn capabilities() -> &'static DecodeCapabilities
fn capabilities() -> &'static DecodeCapabilities
Decoder capabilities (metadata support, cancellation, etc.). Read more
Source§fn estimate_decode_resources(
&self,
image: &ImageCharacteristics,
compute: &ComputeEnvironment,
) -> ResourceEstimate
fn estimate_decode_resources( &self, image: &ImageCharacteristics, compute: &ComputeEnvironment, ) -> ResourceEstimate
Predict peak memory, wall time, and CPU-core scaling for decoding an
image with the given
ImageCharacteristics on the compute
environment. Read moreSource§impl Default for ReferenceZcrDecoderConfig
impl Default for ReferenceZcrDecoderConfig
Source§fn default() -> ReferenceZcrDecoderConfig
fn default() -> ReferenceZcrDecoderConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReferenceZcrDecoderConfig
impl RefUnwindSafe for ReferenceZcrDecoderConfig
impl Send for ReferenceZcrDecoderConfig
impl Sync for ReferenceZcrDecoderConfig
impl Unpin for ReferenceZcrDecoderConfig
impl UnsafeUnpin for ReferenceZcrDecoderConfig
impl UnwindSafe for ReferenceZcrDecoderConfig
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<C> DynDecoderConfig for Cwhere
C: DecoderConfig + 'static,
impl<C> DynDecoderConfig for Cwhere
C: DecoderConfig + 'static,
Source§fn formats(&self) -> &'static [ImageFormat]
fn formats(&self) -> &'static [ImageFormat]
The image formats this decoder handles.
Source§fn supported_descriptors(&self) -> &'static [PixelDescriptor]
fn supported_descriptors(&self) -> &'static [PixelDescriptor]
Pixel formats this decoder can produce natively.
Source§fn capabilities(&self) -> &'static DecodeCapabilities
fn capabilities(&self) -> &'static DecodeCapabilities
Decoder capabilities (metadata support, cancellation, etc.).
Source§fn estimate_decode_resources(
&self,
image: &ImageCharacteristics,
compute: &ComputeEnvironment,
) -> ResourceEstimate
fn estimate_decode_resources( &self, image: &ImageCharacteristics, compute: &ComputeEnvironment, ) -> ResourceEstimate
Predict peak memory / time / core-scaling for decoding an image with
the given
image characteristics on compute (forwards to
DecoderConfig::estimate_decode_resources).Source§fn dyn_job(&self) -> Box<dyn DynDecodeJob<'_> + '_>
fn dyn_job(&self) -> Box<dyn DynDecodeJob<'_> + '_>
Create a dyn-dispatched decode job.