Struct titanium::desktop::gui::libdruid::piet::image_crate::codecs::dxt::DxtEncoder
pub struct DxtEncoder<W>where
W: Write,{ /* private fields */ }
👎Deprecated: DXT support will be removed or reworked in a future version. Prefer the
squish
crate instead. See https://github.com/image-rs/image/issues/1623Expand description
DXT encoder
Implementations§
§impl<W> DxtEncoder<W>where
W: Write,
impl<W> DxtEncoder<W>where W: Write,
pub fn new(w: W) -> DxtEncoder<W>
👎Deprecated: DXT support will be removed or reworked in a future version. Prefer the squish
crate instead. See https://github.com/image-rs/image/issues/1623
pub fn new(w: W) -> DxtEncoder<W>
squish
crate instead. See https://github.com/image-rs/image/issues/1623Create a new encoder that writes its output to w
pub fn encode(
self,
data: &[u8],
width: u32,
height: u32,
variant: DxtVariant
) -> Result<(), ImageError>
👎Deprecated: DXT support will be removed or reworked in a future version. Prefer the squish
crate instead. See https://github.com/image-rs/image/issues/1623
pub fn encode( self, data: &[u8], width: u32, height: u32, variant: DxtVariant ) -> Result<(), ImageError>
squish
crate instead. See https://github.com/image-rs/image/issues/1623Encodes the image data data
that has dimensions width
and height
in DxtVariant
variant
data is assumed to be in variant.color_type()
Auto Trait Implementations§
impl<W> RefUnwindSafe for DxtEncoder<W>where W: RefUnwindSafe,
impl<W> Send for DxtEncoder<W>where W: Send,
impl<W> Sync for DxtEncoder<W>where W: Sync,
impl<W> Unpin for DxtEncoder<W>where W: Unpin,
impl<W> UnwindSafe for DxtEncoder<W>where W: UnwindSafe,
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.