Changeset 15145 in vbox for trunk/src/VBox/Main/idl
- Timestamp:
- Dec 9, 2008 9:56:02 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r15140 r15145 4450 4450 Address of the shape buffer. 4451 4451 4452 The buffer contains 1 bpp (bits per pixel) AND mask followed by 32 bpp XOR (color) mask. 4453 4454 For pointers without alpha channel the XOR mask pixels are 32 bit values: (lsb)BGR0(msb). 4455 For pointers with alpha channel the XOR mask consists of (lsb)BGRA(msb) 32 bit values. 4456 4457 AND mask presents for pointers with alpha channel, so if the callback does not 4458 support alpha, the pointer could be displayed as a normal color pointer. 4459 4460 The AND mask is 1 bpp bitmap with byte aligned scanlines. Size of AND mask, 4461 therefore, is <tt>cbAnd = (width + 7) / 8 * height</tt>. The padding bits at the 4462 end of any scanline are undefined. 4463 4464 The XOR mask follows the AND mask on the next 4 bytes aligned offset: 4465 <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt> 4452 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask 4453 followed by a 32-bpp XOR (color) mask. 4454 4455 For pointers without alpha channel the XOR mask pixels are 32 4456 bit values: (lsb)BGR0(msb). For pointers with alpha channel 4457 the XOR mask consists of (lsb)BGRA(msb) 32 bit values. 4458 4459 An AND mask is used for pointers with alpha channel, so if the 4460 callback does not support alpha, the pointer could be 4461 displayed as a normal color pointer. 4462 4463 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The 4464 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 * 4465 height</tt>. The padding bits at the end of each scanline are 4466 undefined. 4467 4468 The XOR mask follows the AND mask on the next 4-byte aligned 4469 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>. 4466 4470 Bytes in the gap between the AND and the XOR mask are undefined. 4467 XOR mask scanlines have no gap between them and size of XOR mask is:4468 <tt>cXor = width * 4 * height</tt>.4471 The XOR mask scanlines have no gap between them and the size of 4472 the XOR mask is: <tt>cXor = width * 4 * height</tt>. 4469 4473 4470 4474 <note> 4471 If 'shape' is equal to 0, only pointer visibility is beingchanged.4475 If @a shape is 0, only the pointer visibility is changed. 4472 4476 </note> 4473 4477 </desc>
Note:
See TracChangeset
for help on using the changeset viewer.