#[repr(C)]pub struct IMAGE_PALDATA {Show 13 fields
pub palette_id: byte,
pub ncolors: byte,
pub camera: byte,
pub threshold: byte,
pub flags: UINT16,
pub image_number: UINT16,
pub extra: [byte; 10],
pub rfirst_color: byte,
pub rfirst_brite: byte,
pub rlast_color: byte,
pub rlast_brite: byte,
pub nspecial: INT16,
pub spcolors: [IMAGE_PALDATA__bindgen_ty_1; 6],
}Expand description
@internal
image data and palette structure uses brightness ramp plus special colors to compress and make remapping easier fits in old palette’s 48-byte area
Fields§
§palette_id: byte§ncolors: byte§camera: byte§threshold: byte§flags: UINT16§image_number: UINT16§extra: [byte; 10]§rfirst_color: byte§rfirst_brite: byte§rlast_color: byte§rlast_brite: byte§nspecial: INT16§spcolors: [IMAGE_PALDATA__bindgen_ty_1; 6]Trait Implementations§
Source§impl Clone for IMAGE_PALDATA
impl Clone for IMAGE_PALDATA
Source§fn clone(&self) -> IMAGE_PALDATA
fn clone(&self) -> IMAGE_PALDATA
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IMAGE_PALDATA
impl Debug for IMAGE_PALDATA
Source§impl Default for IMAGE_PALDATA
impl Default for IMAGE_PALDATA
Source§fn default() -> IMAGE_PALDATA
fn default() -> IMAGE_PALDATA
Returns the “default value” for a type. Read more
impl Copy for IMAGE_PALDATA
Auto Trait Implementations§
impl Freeze for IMAGE_PALDATA
impl RefUnwindSafe for IMAGE_PALDATA
impl Send for IMAGE_PALDATA
impl Sync for IMAGE_PALDATA
impl Unpin for IMAGE_PALDATA
impl UnwindSafe for IMAGE_PALDATA
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