pub struct ZuneWebpImageEncoder {}Implementations§
Trait Implementations§
Source§impl EncoderTrait for ZuneWebpImageEncoder
impl EncoderTrait for ZuneWebpImageEncoder
Source§fn encode_inner<T: ZByteWriterTrait>(
&mut self,
image: &Image,
sink: T,
) -> Result<usize, ImageErrors>
fn encode_inner<T: ZByteWriterTrait>( &mut self, image: &Image, sink: T, ) -> Result<usize, ImageErrors>
Encode and write to a file Read more
Source§fn supported_colorspaces(&self) -> &'static [ColorSpace]
fn supported_colorspaces(&self) -> &'static [ColorSpace]
Return all colorspaces supported by this encoder. Read more
Source§fn format(&self) -> ImageFormat
fn format(&self) -> ImageFormat
Return the image format for which this
encoder will encode the format in Read more
Source§fn supported_bit_depth(&self) -> &'static [BitDepth]
fn supported_bit_depth(&self) -> &'static [BitDepth]
Get supported bit-depths for this image Read more
Source§fn default_depth(&self, depth: BitDepth) -> BitDepth
fn default_depth(&self, depth: BitDepth) -> BitDepth
Returns the common/expected bit depth for this image Read more
Source§fn encode<T: ZByteWriterTrait>(
&mut self,
image: &Image,
sink: T,
) -> Result<usize, ImageErrors>
fn encode<T: ZByteWriterTrait>( &mut self, image: &Image, sink: T, ) -> Result<usize, ImageErrors>
Encode the actual image into the specified format Read more
Source§fn encode_to_result(
&mut self,
image: &Image,
) -> Result<EncodeResult, ImageErrors>
fn encode_to_result( &mut self, image: &Image, ) -> Result<EncodeResult, ImageErrors>
Call
encode and then store the image
and format in EncodeResultSource§fn default_colorspace(&self, _: ColorSpace) -> ColorSpace
fn default_colorspace(&self, _: ColorSpace) -> ColorSpace
Returns the default colorspace to use when the image
contains a different colorspace Read more
Source§fn set_options(&mut self, _: EncoderOptions)
fn set_options(&mut self, _: EncoderOptions)
Set encoder options for this encoder Read more
Source§fn supports_animated_images(&self) -> bool
fn supports_animated_images(&self) -> bool
Return true if the encoder can encode multiple image frames as one animated Image. Read more
Auto Trait Implementations§
impl Freeze for ZuneWebpImageEncoder
impl RefUnwindSafe for ZuneWebpImageEncoder
impl Send for ZuneWebpImageEncoder
impl Sync for ZuneWebpImageEncoder
impl Unpin for ZuneWebpImageEncoder
impl UnsafeUnpin for ZuneWebpImageEncoder
impl UnwindSafe for ZuneWebpImageEncoder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more