Searched refs:byte_per_pixel (Results 1 – 2 of 2) sorted by relevance
10 byte_per_pixel: u32, field25 byte_per_pixel: u32, in new()32 fgcolor = Self::reverse(fgcolor, byte_per_pixel); in new()33 bkcolor = Self::reverse(bkcolor, byte_per_pixel); in new()43 byte_per_pixel, in new()55 fn reverse(num: u32, byte_per_pixel: u32) -> u32 { in reverse()65 ans >>= (4 - byte_per_pixel) * 8; in reverse()98 let mask = 0x000000ff << ((self.byte_per_pixel - 1) << 3); in full_buffer()108 temp <<= (4 - self.byte_per_pixel) * 8; in full_buffer()113 if self.left_byte >= self.byte_per_pixel { in full_buffer()
68 let byte_per_pixel = core::mem::size_of::<u32>() as u32; in generic_imageblit() localVariable74 let pitch_index = (self.current_fb_fix().line_length & (byte_per_pixel - 1)) * 8; in generic_imageblit()79 bitstart &= !(byte_per_pixel - 1); in generic_imageblit()