Lines Matching refs:bpp
43 * bpp must be bytes per pixel, not bits!
45 void et6000aclInit(uint8 bpp) {
51 set8(mmRegs+0x8e, 0xcf, (bpp - 1) << 4); /* set pixel color depth */
80 uint8 bpp = si->bytesPerPixel;
92 *((vuint16 *)(mmRegs+0x8a)) = screenWidth * bpp - 1;
95 *((vuint16 *)(mmRegs+0x8c)) = screenWidth * bpp - 1;
114 *((vuint16 *)(mmRegs+0x98)) = (width + 1) * bpp - 1;
121 srcAddr = (src_top * screenWidth + src_left) * bpp;
122 destAddr = (dest_top * screenWidth + dest_left) * bpp;
126 srcAddr = (src_top * screenWidth + src_left + width) * bpp + bpp-1;
127 destAddr = (dest_top * screenWidth + dest_left + width) * bpp + bpp-1;
131 srcAddr = ((src_top + height)*screenWidth + src_left) * bpp;
132 destAddr = ((dest_top + height)*screenWidth + dest_left) * bpp;
136 srcAddr = ((src_top + height)*screenWidth + src_left + width) * bpp + bpp-1;
137 destAddr = ((dest_top + height)*screenWidth + dest_left + width) * bpp + bpp-1;
170 uint8 bpp = si->bytesPerPixel;
179 if (bpp == 2)
190 si->dm.virtual_width * si->dm.virtual_height * bpp;
192 switch(bpp) {
210 *((vuint16 *)(mmRegs+0x8a)) = screenWidth * bpp - 1;
212 *((vuint16 *)(mmRegs+0x8c)) = screenWidth * bpp - 1;
233 *((vuint16 *)(mmRegs+0x98)) = (right-left+1)*bpp - 1;
250 *((vuint32 *)(mmRegs+0xa0)) = (top * screenWidth + left) * bpp;