pub struct CodecFormats {
pub name: &'static str,
pub decode_outputs: &'static [FormatEntry],
pub encode_inputs: &'static [FormatEntry],
pub icc_decode: bool,
pub icc_encode: bool,
pub cicp: bool,
}Expand description
Static description of a codec’s format capabilities.
Fields§
§name: &'static strCodec name (e.g. “jpeg”, “png”).
decode_outputs: &'static [FormatEntry]Formats the decoder can produce (via zencodec supported_descriptors).
encode_inputs: &'static [FormatEntry]Formats the encoder can accept (via zencodec supported_descriptors).
icc_decode: boolWhether ICC profiles are extracted on decode.
icc_encode: boolWhether ICC profiles can be embedded on encode.
cicp: boolWhether CICP signaling is supported.
Trait Implementations§
Source§impl Clone for CodecFormats
impl Clone for CodecFormats
Source§fn clone(&self) -> CodecFormats
fn clone(&self) -> CodecFormats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodecFormats
impl RefUnwindSafe for CodecFormats
impl Send for CodecFormats
impl Sync for CodecFormats
impl Unpin for CodecFormats
impl UnsafeUnpin for CodecFormats
impl UnwindSafe for CodecFormats
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