pub struct BlpRaw1 {
pub cmap: Vec<u32>,
pub images: Vec<Raw1Image>,
}
Fields§
§cmap: Vec<u32>
The cmap field array is the colour look up table used for an indexed colour model. Each element represents 24 bit RGB colour component values in the order of 0xBBGGRR. The final byte is alignment padding and will not alter the decoded image in any way. One might be able to improve the file compressibility by carefully choosing padding values.
images: Vec<Raw1Image>
Image itself and all mipmaps levels. If there are no mipmaps, the length of the vector is 1.
Implementations§
Source§impl BlpRaw1
impl BlpRaw1
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 BlpRaw1
impl Ord for BlpRaw1
Source§impl PartialOrd for BlpRaw1
impl PartialOrd for BlpRaw1
impl Eq for BlpRaw1
impl StructuralPartialEq for BlpRaw1
Auto Trait Implementations§
impl Freeze for BlpRaw1
impl RefUnwindSafe for BlpRaw1
impl Send for BlpRaw1
impl Sync for BlpRaw1
impl Unpin for BlpRaw1
impl UnwindSafe for BlpRaw1
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