pub struct BlpRaw3 {
pub cmap: Vec<u32>,
pub images: Vec<Raw3Image>,
}
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<Raw3Image>
Image itself and all mipmaps levels. If there are no mipmaps, the length of the vector is 1.
Implementations§
Source§impl BlpRaw3
impl BlpRaw3
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 BlpRaw3
impl Ord for BlpRaw3
Source§impl PartialOrd for BlpRaw3
impl PartialOrd for BlpRaw3
impl Eq for BlpRaw3
impl StructuralPartialEq for BlpRaw3
Auto Trait Implementations§
impl Freeze for BlpRaw3
impl RefUnwindSafe for BlpRaw3
impl Send for BlpRaw3
impl Sync for BlpRaw3
impl Unpin for BlpRaw3
impl UnwindSafe for BlpRaw3
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