pub enum ImageData {
Embedded(VideoFrame),
Source(Arc<dyn AssetSource>),
External {
uri: String,
mime: Option<String>,
},
}Expand description
Encoded or decoded texture pixels.
Variants§
Embedded(VideoFrame)
Already-decoded pixel buffer. Only available with the
default-on registry feature (which pulls in
oxideav-core’s VideoFrame).
Source(Arc<dyn AssetSource>)
Lazy reference. The wrapped AssetSource streams bytes on
demand (open()) and may expose raw_storage() so a writer
targeting the same container scheme can pass the original
payload through without re-encoding.
External
URI to fetch and decode lazily. mime is a hint when known.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ImageData
impl !UnwindSafe for ImageData
impl Freeze for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnsafeUnpin for ImageData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more