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