Home
last modified time | relevance | path

Searched refs:byte_per_pixel (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/src/driver/video/fbdev/base/
H A Drender_helper.rs10 byte_per_pixel: u32, field
25 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()
H A Dmod.rs68 let byte_per_pixel = core::mem::size_of::<u32>() as u32; in generic_imageblit() localVariable
74 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()