pub struct BitmapInfoHeader {
pub size: u32,
pub width: i32,
pub height: i32,
pub planes: u16,
pub bit_count: u16,
pub compression: u32,
pub image_size: u32,
pub x_pels_per_meter: i32,
pub y_pels_per_meter: i32,
pub colors_used: u32,
pub colors_important: u32,
}Expand description
BitmapInfoHeader (BITMAPINFOHEADER) – 40 bytes. Used in video strf chunks to describe the video format.
Fields§
§size: u32Size of this structure (should be >= 40).
width: i32Image width in pixels.
height: i32Image height in pixels (positive = bottom-up, negative = top-down).
planes: u16Number of color planes (must be 1).
bit_count: u16Bits per pixel (1, 4, 8, 16, 24, 32).
compression: u32Compression FourCC (0 = BI_RGB = uncompressed).
image_size: u32Size of the image data (may be 0 for BI_RGB).
x_pels_per_meter: i32Horizontal resolution (pixels per meter).
y_pels_per_meter: i32Vertical resolution (pixels per meter).
colors_used: u32Number of colors used (0 = all).
colors_important: u32Number of important colors (0 = all).
Trait Implementations§
Source§impl Clone for BitmapInfoHeader
impl Clone for BitmapInfoHeader
Source§fn clone(&self) -> BitmapInfoHeader
fn clone(&self) -> BitmapInfoHeader
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BitmapInfoHeader
impl Debug for BitmapInfoHeader
Source§impl Default for BitmapInfoHeader
impl Default for BitmapInfoHeader
Source§fn default() -> BitmapInfoHeader
fn default() -> BitmapInfoHeader
Returns the “default value” for a type. Read more
impl Copy for BitmapInfoHeader
Auto Trait Implementations§
impl Freeze for BitmapInfoHeader
impl RefUnwindSafe for BitmapInfoHeader
impl Send for BitmapInfoHeader
impl Sync for BitmapInfoHeader
impl Unpin for BitmapInfoHeader
impl UnwindSafe for BitmapInfoHeader
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)