2.2.2.22 RDPGFX_MAP_SURFACE_TO_SCALED_OUTPUT_PDU

The RDPGFX_MAP_SURFACE_TO_SCALED_OUTPUT_PDU message is sent by the server to instruct the client to map a surface to a rectangular area of the Graphics Output Buffer (section 3.3.1.7) ADM element, including a target width and height to which the surface MUST be scaled.


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

header

...

surfaceId

reserved

outputOriginX

outputOriginY

targetWidth

targetHeight

header (8 bytes): An RDPGFX_HEADER (section 2.2.1.5) structure. The cmdId field MUST be set to RDPGFX_CMDID_MAPSURFACETOSCALEDOUTPUT (0x0017), while the flags field MUST be set to zero.

surfaceId (2 bytes): A 16-bit unsigned integer that specifies the ID of the surface to be associated with the output-to-surface mapping.

reserved (2 bytes): A 16-bit unsigned integer that is reserved for future use. This field MUST be set to zero.

outputOriginX (4 bytes): A 32-bit unsigned integer that specifies the x-coordinate of the point, relative to the origin of the Graphics Output Buffer ADM element, at which to map the top-left corner of the surface.

outputOriginY (4 bytes): A 32-bit unsigned integer that specifies the y-coordinate of the point, relative to the origin of the Graphics Output Buffer ADM element, at which to map the upper-left corner of the surface.

targetWidth (4 bytes): A 32-bit unsigned integer that specifies the width of the target Graphics Output Buffer ADM element to which the surface will be mapped, as specified in section 3.3.1.7.

targetHeight (4 bytes): A 32-bit unsigned integer that specifies the height of the target Graphics Output Buffer ADM element to which the surface will be mapped.