pub enum CodecCall {
Open(Vec<u8>),
OpenFile(PathBuf),
Decode {
index: u32,
max_size: Option<Size>,
hardware: bool,
},
Encode {
width: u32,
height: u32,
format: String,
quality: Option<f32>,
hardware: bool,
},
}Expand description
What the app asked of the codecs, in order.
Variants§
Open(Vec<u8>)
OpenFile(PathBuf)
Decode
A picture decoded into the app’s memory, or into a hardware buffer.
Encode
Pixels of a size, or a hardware buffer’s, encoded.
Trait Implementations§
impl StructuralPartialEq for CodecCall
Auto Trait Implementations§
impl Forget for CodecCall
impl Freeze for CodecCall
impl Move for CodecCall
impl RefUnwindSafe for CodecCall
impl Send for CodecCallwhere
RawVecInner: Send,
impl Sync for CodecCallwhere
RawVecInner: Sync,
impl Unpin for CodecCall
impl UnsafeUnpin for CodecCall
impl UnwindSafe for CodecCallwhere
RawVecInner: UnwindSafe,
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