pub struct BlpJpeg {
pub header: Vec<u8>,
pub images: Vec<Vec<u8>>,
}
Fields§
§header: Vec<u8>
JPEG header that is appended to each mipmap level data
images: Vec<Vec<u8>>
Image itself and all mipmaps levels. If there are no mipmaps, the length of the vector is 1.
Implementations§
Source§impl BlpJpeg
impl BlpJpeg
Sourcepub fn full_jpeg(&self, i: usize) -> Option<Vec<u8>>
pub fn full_jpeg(&self, i: usize) -> Option<Vec<u8>>
Concat JPEG header with body and get the required mipmap level.
Sourcepub fn mipmap_locator(&self, version: BlpVersion) -> MipmapLocator
pub fn mipmap_locator(&self, version: BlpVersion) -> MipmapLocator
Predict internal locator to write down mipmaps
Trait Implementations§
Source§impl Ord for BlpJpeg
impl Ord for BlpJpeg
Source§impl PartialOrd for BlpJpeg
impl PartialOrd for BlpJpeg
impl Eq for BlpJpeg
impl StructuralPartialEq for BlpJpeg
Auto Trait Implementations§
impl Freeze for BlpJpeg
impl RefUnwindSafe for BlpJpeg
impl Send for BlpJpeg
impl Sync for BlpJpeg
impl Unpin for BlpJpeg
impl UnwindSafe for BlpJpeg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more