Struct image::codecs::dxt::DxtEncoder [−][src]
pub struct DxtEncoder<W: Write> { /* fields omitted */ }
DXT encoder
Implementations
impl<W: Write> DxtEncoder<W>
[src]
impl<W: Write> DxtEncoder<W>
[src]pub fn new(w: W) -> DxtEncoder<W>
[src]
Create a new encoder that writes its output to w
pub fn encode(
self,
data: &[u8],
width: u32,
height: u32,
variant: DXTVariant
) -> ImageResult<()>
[src]
self,
data: &[u8],
width: u32,
height: u32,
variant: DXTVariant
) -> ImageResult<()>
Encodes 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,
W: RefUnwindSafe,
impl<W> Send for DxtEncoder<W> where
W: Send,
W: Send,
impl<W> Sync for DxtEncoder<W> where
W: Sync,
W: Sync,
impl<W> Unpin for DxtEncoder<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for DxtEncoder<W> where
W: UnwindSafe,
W: UnwindSafe,