2013-10-22 05:59:23 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Graphics Pipeline Extension
|
|
|
|
*
|
|
|
|
* Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FREERDP_CHANNEL_RDPGFX_H
|
|
|
|
#define FREERDP_CHANNEL_RDPGFX_H
|
|
|
|
|
|
|
|
#include <freerdp/api.h>
|
|
|
|
#include <freerdp/dvc.h>
|
|
|
|
#include <freerdp/types.h>
|
|
|
|
|
2013-10-22 06:53:55 +04:00
|
|
|
#define RDPGFX_DVC_CHANNEL_NAME "Microsoft::Windows::RDS::Graphics"
|
|
|
|
|
2013-10-22 05:59:23 +04:00
|
|
|
/**
|
|
|
|
* Common Data Types
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct _RDPGFX_POINT16
|
|
|
|
{
|
|
|
|
UINT16 x;
|
|
|
|
UINT16 y;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_POINT16 RDPGFX_POINT16;
|
|
|
|
|
|
|
|
struct _RDPGFX_COLOR32
|
|
|
|
{
|
|
|
|
BYTE B;
|
|
|
|
BYTE G;
|
|
|
|
BYTE R;
|
|
|
|
BYTE XA;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_COLOR32 RDPGFX_COLOR32;
|
|
|
|
|
2016-07-13 15:58:11 +03:00
|
|
|
#define GFX_PIXEL_FORMAT_XRGB_8888 0x20
|
|
|
|
#define GFX_PIXEL_FORMAT_ARGB_8888 0x21
|
2013-10-22 05:59:23 +04:00
|
|
|
|
|
|
|
typedef BYTE RDPGFX_PIXELFORMAT;
|
|
|
|
|
2014-06-03 23:32:03 +04:00
|
|
|
#define RDPGFX_CMDID_UNUSED_0000 0x0000
|
2013-10-22 05:59:23 +04:00
|
|
|
#define RDPGFX_CMDID_WIRETOSURFACE_1 0x0001
|
|
|
|
#define RDPGFX_CMDID_WIRETOSURFACE_2 0x0002
|
|
|
|
#define RDPGFX_CMDID_DELETEENCODINGCONTEXT 0x0003
|
|
|
|
#define RDPGFX_CMDID_SOLIDFILL 0x0004
|
|
|
|
#define RDPGFX_CMDID_SURFACETOSURFACE 0x0005
|
|
|
|
#define RDPGFX_CMDID_SURFACETOCACHE 0x0006
|
|
|
|
#define RDPGFX_CMDID_CACHETOSURFACE 0x0007
|
|
|
|
#define RDPGFX_CMDID_EVICTCACHEENTRY 0x0008
|
|
|
|
#define RDPGFX_CMDID_CREATESURFACE 0x0009
|
|
|
|
#define RDPGFX_CMDID_DELETESURFACE 0x000A
|
|
|
|
#define RDPGFX_CMDID_STARTFRAME 0x000B
|
|
|
|
#define RDPGFX_CMDID_ENDFRAME 0x000C
|
|
|
|
#define RDPGFX_CMDID_FRAMEACKNOWLEDGE 0x000D
|
|
|
|
#define RDPGFX_CMDID_RESETGRAPHICS 0x000E
|
|
|
|
#define RDPGFX_CMDID_MAPSURFACETOOUTPUT 0x000F
|
|
|
|
#define RDPGFX_CMDID_CACHEIMPORTOFFER 0x0010
|
|
|
|
#define RDPGFX_CMDID_CACHEIMPORTREPLY 0x0011
|
|
|
|
#define RDPGFX_CMDID_CAPSADVERTISE 0x0012
|
|
|
|
#define RDPGFX_CMDID_CAPSCONFIRM 0x0013
|
2014-06-03 23:32:03 +04:00
|
|
|
#define RDPGFX_CMDID_UNUSED_0014 0x0014
|
2013-10-22 05:59:23 +04:00
|
|
|
#define RDPGFX_CMDID_MAPSURFACETOWINDOW 0x0015
|
2016-04-23 20:49:10 +03:00
|
|
|
#define RDPGFX_CMDID_QOEFRAMEACKNOWLEDGE 0x0016
|
2019-02-27 18:36:15 +03:00
|
|
|
#define RDPGFX_CMDID_MAPSURFACETOSCALEDOUTPUT 0x0017
|
|
|
|
#define RDPGFX_CMDID_MAPSURFACETOSCALEDWINDOW 0x0018
|
2013-10-22 05:59:23 +04:00
|
|
|
|
2014-06-04 03:48:47 +04:00
|
|
|
#define RDPGFX_HEADER_SIZE 8
|
|
|
|
|
2013-10-22 05:59:23 +04:00
|
|
|
struct _RDPGFX_HEADER
|
|
|
|
{
|
|
|
|
UINT16 cmdId;
|
|
|
|
UINT16 flags;
|
|
|
|
UINT32 pduLength;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_HEADER RDPGFX_HEADER;
|
|
|
|
|
|
|
|
/**
|
2016-10-20 10:59:54 +03:00
|
|
|
* Capability Sets [MS-RDPEGFX] 2.2.3
|
2013-10-22 05:59:23 +04:00
|
|
|
*/
|
|
|
|
|
2016-10-20 10:59:54 +03:00
|
|
|
#define RDPGFX_CAPVERSION_8 0x00080004 /** [MS-RDPEGFX] 2.2.3.1 */
|
|
|
|
#define RDPGFX_CAPVERSION_81 0x00080105 /** [MS-RDPEGFX] 2.2.3.2 */
|
|
|
|
#define RDPGFX_CAPVERSION_10 0x000A0002 /** [MS-RDPEGFX] 2.2.3.3 */
|
2019-02-27 18:36:15 +03:00
|
|
|
#define RDPGFX_CAPVERSION_101 0x000A0100 /** [MS-RDPEGFX] 2.2.3.4 */
|
|
|
|
#define RDPGFX_CAPVERSION_102 0x000A0200 /** [MS-RDPEGFX] 2.2.3.5 */
|
|
|
|
#define RDPGFX_CAPVERSION_103 0x000A0301 /** [MS-RDPEGFX] 2.2.3.6 */
|
|
|
|
#define RDPGFX_CAPVERSION_104 0x000A0400 /** [MS-RDPEGFX] 2.2.3.7 */
|
|
|
|
#define RDPGFX_CAPVERSION_105 0x000A0502 /** [MS-RDPEGFX] 2.2.3.8 */
|
|
|
|
#define RDPGFX_CAPVERSION_106 0x000A0601 /** [MS-RDPEGFX] 2.2.3.9 */
|
|
|
|
|
|
|
|
#define RDPGFX_NUMBER_CAPSETS 9
|
2019-02-27 19:15:43 +03:00
|
|
|
#define RDPGFX_CAPSET_BASE_SIZE 8
|
2014-06-04 03:48:47 +04:00
|
|
|
|
2013-10-22 05:59:23 +04:00
|
|
|
struct _RDPGFX_CAPSET
|
|
|
|
{
|
|
|
|
UINT32 version;
|
2019-02-27 18:36:15 +03:00
|
|
|
UINT32 length;
|
2014-06-04 03:48:47 +04:00
|
|
|
UINT32 flags;
|
2013-10-22 05:59:23 +04:00
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CAPSET RDPGFX_CAPSET;
|
|
|
|
|
2017-07-17 10:00:57 +03:00
|
|
|
#define RDPGFX_CAPS_FLAG_THINCLIENT 0x00000001U /* 8.0+ */
|
|
|
|
#define RDPGFX_CAPS_FLAG_SMALL_CACHE 0x00000002U /* 8.0+ */
|
|
|
|
#define RDPGFX_CAPS_FLAG_AVC420_ENABLED 0x00000010U /* 8.1+ */
|
|
|
|
#define RDPGFX_CAPS_FLAG_AVC_DISABLED 0x00000020U /* 10.0+ */
|
2019-02-27 18:36:15 +03:00
|
|
|
#define RDPGFX_CAPS_FLAG_AVC_THINCLIENT 0x00000040U /* 10.3+ */
|
2013-10-22 05:59:23 +04:00
|
|
|
|
|
|
|
struct _RDPGFX_CAPSET_VERSION8
|
|
|
|
{
|
|
|
|
UINT32 version;
|
|
|
|
UINT32 capsDataLength;
|
|
|
|
UINT32 flags;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CAPSET_VERSION8 RDPGFX_CAPSET_VERSION8;
|
|
|
|
|
|
|
|
struct _RDPGFX_CAPSET_VERSION81
|
|
|
|
{
|
|
|
|
UINT32 version;
|
|
|
|
UINT32 capsDataLength;
|
|
|
|
UINT32 flags;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CAPSET_VERSION81 RDPGFX_CAPSET_VERSION81;
|
|
|
|
|
2016-03-02 17:16:49 +03:00
|
|
|
struct _RDPGFX_CAPSET_VERSION10
|
|
|
|
{
|
|
|
|
UINT32 version;
|
|
|
|
UINT32 capsDataLength;
|
|
|
|
UINT32 flags;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CAPSET_VERSION10 RDPGFX_CAPSET_VERSION10;
|
|
|
|
|
2013-10-22 05:59:23 +04:00
|
|
|
/**
|
|
|
|
* Graphics Messages
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define RDPGFX_CODECID_UNCOMPRESSED 0x0000
|
|
|
|
#define RDPGFX_CODECID_CAVIDEO 0x0003
|
|
|
|
#define RDPGFX_CODECID_CLEARCODEC 0x0008
|
|
|
|
#define RDPGFX_CODECID_PLANAR 0x000A
|
2016-03-02 17:16:49 +03:00
|
|
|
#define RDPGFX_CODECID_AVC420 0x000B
|
2013-10-22 05:59:23 +04:00
|
|
|
#define RDPGFX_CODECID_ALPHA 0x000C
|
2016-03-02 17:16:49 +03:00
|
|
|
#define RDPGFX_CODECID_AVC444 0x000E
|
2017-04-10 18:16:57 +03:00
|
|
|
#define RDPGFX_CODECID_AVC444v2 0x000F
|
2013-10-22 05:59:23 +04:00
|
|
|
|
2016-08-16 09:49:56 +03:00
|
|
|
#define RDPGFX_WIRE_TO_SURFACE_PDU_1_SIZE 17
|
|
|
|
|
2013-10-22 05:59:23 +04:00
|
|
|
struct _RDPGFX_WIRE_TO_SURFACE_PDU_1
|
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
UINT16 codecId;
|
|
|
|
RDPGFX_PIXELFORMAT pixelFormat;
|
2016-03-02 16:39:36 +03:00
|
|
|
RECTANGLE_16 destRect;
|
2013-10-22 05:59:23 +04:00
|
|
|
UINT32 bitmapDataLength;
|
|
|
|
BYTE* bitmapData;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_WIRE_TO_SURFACE_PDU_1 RDPGFX_WIRE_TO_SURFACE_PDU_1;
|
|
|
|
|
|
|
|
#define RDPGFX_CODECID_CAPROGRESSIVE 0x0009
|
|
|
|
#define RDPGFX_CODECID_CAPROGRESSIVE_V2 0x000D
|
|
|
|
|
2016-08-16 09:49:56 +03:00
|
|
|
#define RDPGFX_WIRE_TO_SURFACE_PDU_2_SIZE 13
|
|
|
|
|
2013-10-22 05:59:23 +04:00
|
|
|
struct _RDPGFX_WIRE_TO_SURFACE_PDU_2
|
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
UINT16 codecId;
|
|
|
|
UINT32 codecContextId;
|
|
|
|
RDPGFX_PIXELFORMAT pixelFormat;
|
|
|
|
UINT32 bitmapDataLength;
|
|
|
|
BYTE* bitmapData;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_WIRE_TO_SURFACE_PDU_2 RDPGFX_WIRE_TO_SURFACE_PDU_2;
|
|
|
|
|
2014-06-04 04:51:28 +04:00
|
|
|
struct _RDPGFX_SURFACE_COMMAND
|
|
|
|
{
|
2014-06-05 05:35:31 +04:00
|
|
|
UINT32 surfaceId;
|
|
|
|
UINT32 codecId;
|
|
|
|
UINT32 contextId;
|
2016-10-10 19:23:48 +03:00
|
|
|
UINT32 format; /* FreeRDP color format. @see freerdp/codec/color.h */
|
2014-06-05 05:35:31 +04:00
|
|
|
UINT32 left;
|
|
|
|
UINT32 top;
|
|
|
|
UINT32 right;
|
|
|
|
UINT32 bottom;
|
|
|
|
UINT32 width;
|
|
|
|
UINT32 height;
|
|
|
|
UINT32 length;
|
|
|
|
BYTE* data;
|
2014-07-09 01:37:29 +04:00
|
|
|
void* extra;
|
2014-06-04 04:51:28 +04:00
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_SURFACE_COMMAND RDPGFX_SURFACE_COMMAND;
|
|
|
|
|
2013-10-22 05:59:23 +04:00
|
|
|
struct _RDPGFX_DELETE_ENCODING_CONTEXT_PDU
|
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
UINT32 codecContextId;
|
|
|
|
};
|
2016-10-04 10:00:01 +03:00
|
|
|
typedef struct _RDPGFX_DELETE_ENCODING_CONTEXT_PDU
|
2019-02-27 18:36:15 +03:00
|
|
|
RDPGFX_DELETE_ENCODING_CONTEXT_PDU;
|
2013-10-22 05:59:23 +04:00
|
|
|
|
2014-06-04 03:48:47 +04:00
|
|
|
struct _RDPGFX_SOLID_FILL_PDU
|
2013-10-22 05:59:23 +04:00
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
RDPGFX_COLOR32 fillPixel;
|
|
|
|
UINT16 fillRectCount;
|
2016-03-02 16:39:36 +03:00
|
|
|
RECTANGLE_16* fillRects;
|
2013-10-22 05:59:23 +04:00
|
|
|
};
|
2014-06-04 03:48:47 +04:00
|
|
|
typedef struct _RDPGFX_SOLID_FILL_PDU RDPGFX_SOLID_FILL_PDU;
|
2013-10-22 05:59:23 +04:00
|
|
|
|
|
|
|
struct _RDPGFX_SURFACE_TO_SURFACE_PDU
|
|
|
|
{
|
|
|
|
UINT16 surfaceIdSrc;
|
|
|
|
UINT16 surfaceIdDest;
|
2016-03-02 16:39:36 +03:00
|
|
|
RECTANGLE_16 rectSrc;
|
2013-10-22 05:59:23 +04:00
|
|
|
UINT16 destPtsCount;
|
|
|
|
RDPGFX_POINT16* destPts;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_SURFACE_TO_SURFACE_PDU RDPGFX_SURFACE_TO_SURFACE_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_SURFACE_TO_CACHE_PDU
|
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
UINT64 cacheKey;
|
|
|
|
UINT16 cacheSlot;
|
2016-03-02 16:39:36 +03:00
|
|
|
RECTANGLE_16 rectSrc;
|
2013-10-22 05:59:23 +04:00
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_SURFACE_TO_CACHE_PDU RDPGFX_SURFACE_TO_CACHE_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_CACHE_TO_SURFACE_PDU
|
|
|
|
{
|
|
|
|
UINT16 cacheSlot;
|
|
|
|
UINT16 surfaceId;
|
|
|
|
UINT16 destPtsCount;
|
|
|
|
RDPGFX_POINT16* destPts;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CACHE_TO_SURFACE_PDU RDPGFX_CACHE_TO_SURFACE_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_EVICT_CACHE_ENTRY_PDU
|
|
|
|
{
|
|
|
|
UINT16 cacheSlot;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_EVICT_CACHE_ENTRY_PDU RDPGFX_EVICT_CACHE_ENTRY_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_CREATE_SURFACE_PDU
|
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
UINT16 width;
|
|
|
|
UINT16 height;
|
|
|
|
RDPGFX_PIXELFORMAT pixelFormat;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CREATE_SURFACE_PDU RDPGFX_CREATE_SURFACE_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_DELETE_SURFACE_PDU
|
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_DELETE_SURFACE_PDU RDPGFX_DELETE_SURFACE_PDU;
|
|
|
|
|
2016-08-16 09:49:56 +03:00
|
|
|
#define RDPGFX_START_FRAME_PDU_SIZE 8
|
|
|
|
|
2013-10-22 05:59:23 +04:00
|
|
|
struct _RDPGFX_START_FRAME_PDU
|
|
|
|
{
|
|
|
|
UINT32 timestamp;
|
|
|
|
UINT32 frameId;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_START_FRAME_PDU RDPGFX_START_FRAME_PDU;
|
|
|
|
|
2016-08-16 09:49:56 +03:00
|
|
|
#define RDPGFX_END_FRAME_PDU_SIZE 4
|
|
|
|
|
2013-10-22 05:59:23 +04:00
|
|
|
struct _RDPGFX_END_FRAME_PDU
|
|
|
|
{
|
|
|
|
UINT32 frameId;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_END_FRAME_PDU RDPGFX_END_FRAME_PDU;
|
|
|
|
|
|
|
|
#define QUEUE_DEPTH_UNAVAILABLE 0x00000000
|
|
|
|
#define SUSPEND_FRAME_ACKNOWLEDGEMENT 0xFFFFFFFF
|
|
|
|
|
|
|
|
struct _RDPGFX_FRAME_ACKNOWLEDGE_PDU
|
|
|
|
{
|
|
|
|
UINT32 queueDepth;
|
|
|
|
UINT32 frameId;
|
|
|
|
UINT32 totalFramesDecoded;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_FRAME_ACKNOWLEDGE_PDU RDPGFX_FRAME_ACKNOWLEDGE_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_RESET_GRAPHICS_PDU
|
|
|
|
{
|
|
|
|
UINT32 width;
|
|
|
|
UINT32 height;
|
|
|
|
UINT32 monitorCount;
|
2014-06-03 23:32:03 +04:00
|
|
|
MONITOR_DEF* monitorDefArray;
|
2013-10-22 05:59:23 +04:00
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_RESET_GRAPHICS_PDU RDPGFX_RESET_GRAPHICS_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_MAP_SURFACE_TO_OUTPUT_PDU
|
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
UINT16 reserved;
|
|
|
|
UINT32 outputOriginX;
|
|
|
|
UINT32 outputOriginY;
|
|
|
|
};
|
2016-10-04 10:00:01 +03:00
|
|
|
typedef struct _RDPGFX_MAP_SURFACE_TO_OUTPUT_PDU
|
2019-02-27 18:36:15 +03:00
|
|
|
RDPGFX_MAP_SURFACE_TO_OUTPUT_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_MAP_SURFACE_TO_SCALED_OUTPUT_PDU
|
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
UINT16 reserved;
|
|
|
|
UINT32 outputOriginX;
|
|
|
|
UINT32 outputOriginY;
|
2019-05-05 12:34:57 +03:00
|
|
|
UINT32 targetWidth;
|
|
|
|
UINT32 targetHeight;
|
2019-02-27 18:36:15 +03:00
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_MAP_SURFACE_TO_SCALED_OUTPUT_PDU
|
|
|
|
RDPGFX_MAP_SURFACE_TO_SCALED_OUTPUT_PDU;
|
2013-10-22 05:59:23 +04:00
|
|
|
|
|
|
|
struct _RDPGFX_CACHE_ENTRY_METADATA
|
|
|
|
{
|
|
|
|
UINT64 cacheKey;
|
|
|
|
UINT32 bitmapLength;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CACHE_ENTRY_METADATA RDPGFX_CACHE_ENTRY_METADATA;
|
|
|
|
|
|
|
|
struct _RDPGFX_CACHE_IMPORT_OFFER_PDU
|
|
|
|
{
|
|
|
|
UINT16 cacheEntriesCount;
|
|
|
|
RDPGFX_CACHE_ENTRY_METADATA* cacheEntries;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CACHE_IMPORT_OFFER_PDU RDPGFX_CACHE_IMPORT_OFFER_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_CACHE_IMPORT_REPLY_PDU
|
|
|
|
{
|
|
|
|
UINT16 importedEntriesCount;
|
|
|
|
UINT16* cacheSlots;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CACHE_IMPORT_REPLY_PDU RDPGFX_CACHE_IMPORT_REPLY_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_CAPS_ADVERTISE_PDU
|
|
|
|
{
|
|
|
|
UINT16 capsSetCount;
|
2014-06-04 03:48:47 +04:00
|
|
|
RDPGFX_CAPSET* capsSets;
|
2013-10-22 05:59:23 +04:00
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CAPS_ADVERTISE_PDU RDPGFX_CAPS_ADVERTISE_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_CAPS_CONFIRM_PDU
|
|
|
|
{
|
2014-06-03 23:32:03 +04:00
|
|
|
RDPGFX_CAPSET* capsSet;
|
2013-10-22 05:59:23 +04:00
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_CAPS_CONFIRM_PDU RDPGFX_CAPS_CONFIRM_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_MAP_SURFACE_TO_WINDOW_PDU
|
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
UINT64 windowId;
|
|
|
|
UINT32 mappedWidth;
|
|
|
|
UINT32 mappedHeight;
|
|
|
|
};
|
2016-10-04 10:00:01 +03:00
|
|
|
typedef struct _RDPGFX_MAP_SURFACE_TO_WINDOW_PDU
|
2019-02-27 18:36:15 +03:00
|
|
|
RDPGFX_MAP_SURFACE_TO_WINDOW_PDU;
|
|
|
|
|
|
|
|
struct _RDPGFX_MAP_SURFACE_TO_SCALED_WINDOW_PDU
|
|
|
|
{
|
|
|
|
UINT16 surfaceId;
|
|
|
|
UINT64 windowId;
|
|
|
|
UINT32 mappedWidth;
|
|
|
|
UINT32 mappedHeight;
|
|
|
|
UINT32 targetWidth;
|
|
|
|
UINT32 targetHeight;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_MAP_SURFACE_TO_SCALED_WINDOW_PDU
|
|
|
|
RDPGFX_MAP_SURFACE_TO_SCALED_WINDOW_PDU;
|
2013-10-22 05:59:23 +04:00
|
|
|
|
2014-07-09 01:16:13 +04:00
|
|
|
/* H264 */
|
|
|
|
|
|
|
|
struct _RDPGFX_H264_QUANT_QUALITY
|
|
|
|
{
|
|
|
|
BYTE qpVal;
|
|
|
|
BYTE qualityVal;
|
|
|
|
|
|
|
|
BYTE qp;
|
|
|
|
BYTE r;
|
|
|
|
BYTE p;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_H264_QUANT_QUALITY RDPGFX_H264_QUANT_QUALITY;
|
|
|
|
|
|
|
|
struct _RDPGFX_H264_METABLOCK
|
|
|
|
{
|
|
|
|
UINT32 numRegionRects;
|
2016-03-02 16:39:36 +03:00
|
|
|
RECTANGLE_16* regionRects;
|
2014-07-09 01:16:13 +04:00
|
|
|
RDPGFX_H264_QUANT_QUALITY* quantQualityVals;
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_H264_METABLOCK RDPGFX_H264_METABLOCK;
|
|
|
|
|
2016-03-02 17:16:49 +03:00
|
|
|
struct _RDPGFX_AVC420_BITMAP_STREAM
|
2014-07-09 01:37:29 +04:00
|
|
|
{
|
|
|
|
RDPGFX_H264_METABLOCK meta;
|
|
|
|
UINT32 length;
|
|
|
|
BYTE* data;
|
|
|
|
};
|
2016-03-02 17:16:49 +03:00
|
|
|
typedef struct _RDPGFX_AVC420_BITMAP_STREAM RDPGFX_AVC420_BITMAP_STREAM;
|
|
|
|
|
|
|
|
struct _RDPGFX_AVC444_BITMAP_STREAM
|
|
|
|
{
|
|
|
|
UINT32 cbAvc420EncodedBitstream1;
|
|
|
|
BYTE LC;
|
|
|
|
RDPGFX_AVC420_BITMAP_STREAM bitstream[2];
|
|
|
|
};
|
|
|
|
typedef struct _RDPGFX_AVC444_BITMAP_STREAM RDPGFX_AVC444_BITMAP_STREAM;
|
|
|
|
|
2016-04-23 20:49:10 +03:00
|
|
|
struct _RDPGFX_QOE_FRAME_ACKNOWLEDGE_PDU
|
|
|
|
{
|
|
|
|
UINT32 frameId;
|
|
|
|
UINT32 timestamp;
|
|
|
|
UINT16 timeDiffSE;
|
|
|
|
UINT16 timeDiffEDR;
|
|
|
|
};
|
2016-10-04 10:00:01 +03:00
|
|
|
typedef struct _RDPGFX_QOE_FRAME_ACKNOWLEDGE_PDU
|
2019-02-27 18:36:15 +03:00
|
|
|
RDPGFX_QOE_FRAME_ACKNOWLEDGE_PDU;
|
2014-07-09 01:37:29 +04:00
|
|
|
|
2013-10-22 05:59:23 +04:00
|
|
|
#endif /* FREERDP_CHANNEL_RDPGFX_H */
|
|
|
|
|