Struct image::codecs::dxt::DxtEncoder
source · pub struct DxtEncoder<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§
source§impl<W: Write> DxtEncoder<W>
impl<W: Write> DxtEncoder<W>
sourcepub 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
sourcepub fn encode(
self,
data: &[u8],
width: u32,
height: u32,
variant: DxtVariant
) -> ImageResult<()>
👎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 ) -> ImageResult<()>
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()