2.2.4.12.4 SurfacePool_Allocate

The SurfacePool_Allocate message allocates an underlying surface to store content.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

_size

_msgid

_idObjectSubject

sizePxl

...

nOptions

_size (4 bytes): An unsigned 32-bit integer. The total message size, in bytes.

_msgid (4 bytes): A signed 32-bit integer. The message ID that is unique to the specific target. The _msgid value is 0x00000003 for this message.

_idObjectSubject (4 bytes): An unsigned 32-bit integer. The ID of the target object.

sizePxl (8 bytes): A Size (section 2.2.6.6). The size of the surface, in pixels.

nOptions (4 bytes): An unsigned 32-bit integer. The pixel format of the surface. Possible values are listed in the following table.

Value

Description

0

None

0x00200000

Bpp32

0x00180000

Bpp24

0x00100000

Bpp16

0x00080000

Bpp8

0x00208888

ARGB32

0x00200888

RGB32

0x00180888

RGB24

0x00101555

ARGB16-1555

0x00100555

RGB16-555

0x00100565

RGB16-565

0x21100000

YUY2

0x00080008

L8