//! Skia imaging adapter corresponding to `LibreMetaverse.Imaging.Skia`.

extern crate self as libremetaverse_imaging_skia;

pub mod backend;

mod generated;
mod skia_codec;

pub use generated::*;
pub use libremetaverse_imaging as imaging;
pub use libremetaverse_types::Error;

impl libremetaverse_imaging::ITextureCodec for SkiaTextureCodec {
    fn decode(
        &self,
        stream: Box<dyn libremetaverse_types::compat::ReadWrite + Send>,
    ) -> Result<libremetaverse_imaging::ManagedImage, Error> {
        Self::decode(self, stream)
    }
}
