Blame include/freerdp/altsec.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Alternate Secondary Drawing Orders Interface API
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_UPDATE_ALTSEC_H
Packit 1fb8d4
#define FREERDP_UPDATE_ALTSEC_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/types.h>
Packit 1fb8d4
Packit 1fb8d4
#define DSDNG_STRETCH 			0x00000001
Packit 1fb8d4
#define DSDNG_TILE 			0x00000002
Packit 1fb8d4
#define DSDNG_PERPIXELALPHA 		0x00000004
Packit 1fb8d4
#define DSDNG_TRANSPARENT 		0x00000008
Packit 1fb8d4
#define DSDNG_MUSTFLIP 			0x00000010
Packit 1fb8d4
#define DSDNG_TRUESIZE 			0x00000020
Packit 1fb8d4
Packit 1fb8d4
#define FRAME_START			0x00000000
Packit 1fb8d4
#define FRAME_END			0x00000001
Packit 1fb8d4
Packit 1fb8d4
#define STREAM_BITMAP_END		0x01
Packit 1fb8d4
#define STREAM_BITMAP_COMPRESSED	0x02
Packit 1fb8d4
#define STREAM_BITMAP_V2		0x04
Packit 1fb8d4
Packit 1fb8d4
struct _OFFSCREEN_DELETE_LIST
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 sIndices;
Packit 1fb8d4
	UINT32 cIndices;
Packit 1fb8d4
	UINT16* indices;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _OFFSCREEN_DELETE_LIST OFFSCREEN_DELETE_LIST;
Packit 1fb8d4
Packit 1fb8d4
struct _CREATE_OFFSCREEN_BITMAP_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 id;
Packit 1fb8d4
	UINT32 cx;
Packit 1fb8d4
	UINT32 cy;
Packit 1fb8d4
	OFFSCREEN_DELETE_LIST deleteList;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _CREATE_OFFSCREEN_BITMAP_ORDER CREATE_OFFSCREEN_BITMAP_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _SWITCH_SURFACE_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 bitmapId;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _SWITCH_SURFACE_ORDER SWITCH_SURFACE_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _NINE_GRID_BITMAP_INFO
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 flFlags;
Packit 1fb8d4
	UINT32 ulLeftWidth;
Packit 1fb8d4
	UINT32 ulRightWidth;
Packit 1fb8d4
	UINT32 ulTopHeight;
Packit 1fb8d4
	UINT32 ulBottomHeight;
Packit 1fb8d4
	UINT32 crTransparent;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _NINE_GRID_BITMAP_INFO NINE_GRID_BITMAP_INFO;
Packit 1fb8d4
Packit 1fb8d4
struct _CREATE_NINE_GRID_BITMAP_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 bitmapBpp;
Packit 1fb8d4
	UINT32 bitmapId;
Packit 1fb8d4
	UINT32 cx;
Packit 1fb8d4
	UINT32 cy;
Packit 1fb8d4
	NINE_GRID_BITMAP_INFO nineGridInfo;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _CREATE_NINE_GRID_BITMAP_ORDER CREATE_NINE_GRID_BITMAP_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _FRAME_MARKER_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 action;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _FRAME_MARKER_ORDER FRAME_MARKER_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _STREAM_BITMAP_FIRST_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 bitmapFlags;
Packit 1fb8d4
	UINT32 bitmapBpp;
Packit 1fb8d4
	UINT32 bitmapType;
Packit 1fb8d4
	UINT32 bitmapWidth;
Packit 1fb8d4
	UINT32 bitmapHeight;
Packit 1fb8d4
	UINT32 bitmapSize;
Packit 1fb8d4
	UINT32 bitmapBlockSize;
Packit 1fb8d4
	BYTE* bitmapBlock;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _STREAM_BITMAP_FIRST_ORDER STREAM_BITMAP_FIRST_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _STREAM_BITMAP_NEXT_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 bitmapFlags;
Packit 1fb8d4
	UINT32 bitmapType;
Packit 1fb8d4
	UINT32 bitmapBlockSize;
Packit 1fb8d4
	BYTE* bitmapBlock;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _STREAM_BITMAP_NEXT_ORDER STREAM_BITMAP_NEXT_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _DRAW_GDIPLUS_FIRST_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 cbSize;
Packit 1fb8d4
	UINT32 cbTotalSize;
Packit 1fb8d4
	UINT32 cbTotalEmfSize;
Packit 1fb8d4
	BYTE* emfRecords;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _DRAW_GDIPLUS_FIRST_ORDER DRAW_GDIPLUS_FIRST_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _DRAW_GDIPLUS_NEXT_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 cbSize;
Packit 1fb8d4
	BYTE* emfRecords;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _DRAW_GDIPLUS_NEXT_ORDER DRAW_GDIPLUS_NEXT_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _DRAW_GDIPLUS_END_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 cbSize;
Packit 1fb8d4
	UINT32 cbTotalSize;
Packit 1fb8d4
	UINT32 cbTotalEmfSize;
Packit 1fb8d4
	BYTE* emfRecords;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _DRAW_GDIPLUS_END_ORDER DRAW_GDIPLUS_END_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _DRAW_GDIPLUS_CACHE_FIRST_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 flags;
Packit 1fb8d4
	UINT32 cacheType;
Packit 1fb8d4
	UINT32 cacheIndex;
Packit 1fb8d4
	UINT32 cbSize;
Packit 1fb8d4
	UINT32 cbTotalSize;
Packit 1fb8d4
	BYTE* emfRecords;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _DRAW_GDIPLUS_CACHE_FIRST_ORDER DRAW_GDIPLUS_CACHE_FIRST_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _DRAW_GDIPLUS_CACHE_NEXT_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 flags;
Packit 1fb8d4
	UINT32 cacheType;
Packit 1fb8d4
	UINT32 cacheIndex;
Packit 1fb8d4
	UINT32 cbSize;
Packit 1fb8d4
	BYTE* emfRecords;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _DRAW_GDIPLUS_CACHE_NEXT_ORDER DRAW_GDIPLUS_CACHE_NEXT_ORDER;
Packit 1fb8d4
Packit 1fb8d4
struct _DRAW_GDIPLUS_CACHE_END_ORDER
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 flags;
Packit 1fb8d4
	UINT32 cacheType;
Packit 1fb8d4
	UINT32 cacheIndex;
Packit 1fb8d4
	UINT32 cbSize;
Packit 1fb8d4
	UINT32 cbTotalSize;
Packit 1fb8d4
	BYTE* emfRecords;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _DRAW_GDIPLUS_CACHE_END_ORDER DRAW_GDIPLUS_CACHE_END_ORDER;
Packit 1fb8d4
Packit 1fb8d4
typedef BOOL (*pCreateOffscreenBitmap)(rdpContext* context,
Packit 1fb8d4
                                       const CREATE_OFFSCREEN_BITMAP_ORDER* create_offscreen_bitmap);
Packit 1fb8d4
typedef BOOL (*pSwitchSurface)(rdpContext* context,
Packit 1fb8d4
                               const SWITCH_SURFACE_ORDER* switch_surface);
Packit 1fb8d4
typedef BOOL (*pCreateNineGridBitmap)(rdpContext* context,
Packit 1fb8d4
                                      const CREATE_NINE_GRID_BITMAP_ORDER* create_nine_grid_bitmap);
Packit 1fb8d4
typedef BOOL (*pFrameMarker)(rdpContext* context,
Packit 1fb8d4
                             const FRAME_MARKER_ORDER* frame_marker);
Packit 1fb8d4
typedef BOOL (*pStreamBitmapFirst)(rdpContext* context,
Packit 1fb8d4
                                   const STREAM_BITMAP_FIRST_ORDER* stream_bitmap_first);
Packit 1fb8d4
typedef BOOL (*pStreamBitmapNext)(rdpContext* context,
Packit 1fb8d4
                                  const STREAM_BITMAP_NEXT_ORDER* stream_bitmap_next);
Packit 1fb8d4
typedef BOOL (*pDrawGdiPlusFirst)(rdpContext* context,
Packit 1fb8d4
                                  const DRAW_GDIPLUS_FIRST_ORDER* draw_gdiplus_first);
Packit 1fb8d4
typedef BOOL (*pDrawGdiPlusNext)(rdpContext* context,
Packit 1fb8d4
                                 const DRAW_GDIPLUS_NEXT_ORDER* draw_gdiplus_next);
Packit 1fb8d4
typedef BOOL (*pDrawGdiPlusEnd)(rdpContext* context,
Packit 1fb8d4
                                const DRAW_GDIPLUS_END_ORDER* draw_gdiplus_end);
Packit 1fb8d4
typedef BOOL (*pDrawGdiPlusCacheFirst)(rdpContext* context,
Packit 1fb8d4
                                       const DRAW_GDIPLUS_CACHE_FIRST_ORDER* draw_gdiplus_cache_first);
Packit 1fb8d4
typedef BOOL (*pDrawGdiPlusCacheNext)(rdpContext* context,
Packit 1fb8d4
                                      const DRAW_GDIPLUS_CACHE_NEXT_ORDER* draw_gdiplus_cache_next);
Packit 1fb8d4
typedef BOOL (*pDrawGdiPlusCacheEnd)(rdpContext* context,
Packit 1fb8d4
                                     const DRAW_GDIPLUS_CACHE_END_ORDER* draw_gdiplus_cache_end);
Packit 1fb8d4
Packit 1fb8d4
struct rdp_altsec_update
Packit 1fb8d4
{
Packit 1fb8d4
	rdpContext* context; /* 0 */
Packit 1fb8d4
	UINT32 paddingA[16 - 1]; /* 1 */
Packit 1fb8d4
Packit 1fb8d4
	pCreateOffscreenBitmap CreateOffscreenBitmap; /* 16 */
Packit 1fb8d4
	pSwitchSurface SwitchSurface; /* 17 */
Packit 1fb8d4
	pCreateNineGridBitmap CreateNineGridBitmap; /* 18 */
Packit 1fb8d4
	pFrameMarker FrameMarker; /* 19 */
Packit 1fb8d4
	pStreamBitmapFirst StreamBitmapFirst; /* 20 */
Packit 1fb8d4
	pStreamBitmapNext StreamBitmapNext; /* 21 */
Packit 1fb8d4
	pDrawGdiPlusFirst DrawGdiPlusFirst; /* 22 */
Packit 1fb8d4
	pDrawGdiPlusNext DrawGdiPlusNext; /* 23 */
Packit 1fb8d4
	pDrawGdiPlusEnd DrawGdiPlusEnd; /* 24 */
Packit 1fb8d4
	pDrawGdiPlusCacheFirst DrawGdiPlusCacheFirst; /* 25 */
Packit 1fb8d4
	pDrawGdiPlusCacheNext DrawGdiPlusCacheNext; /* 26 */
Packit 1fb8d4
	pDrawGdiPlusCacheEnd DrawGdiPlusCacheEnd; /* 27 */
Packit 1fb8d4
	UINT32 paddingB[32 - 28]; /* 28 */
Packit 1fb8d4
Packit 1fb8d4
	/* internal */
Packit 1fb8d4
Packit 1fb8d4
	CREATE_OFFSCREEN_BITMAP_ORDER create_offscreen_bitmap;
Packit 1fb8d4
	SWITCH_SURFACE_ORDER switch_surface;
Packit 1fb8d4
	CREATE_NINE_GRID_BITMAP_ORDER create_nine_grid_bitmap;
Packit 1fb8d4
	FRAME_MARKER_ORDER frame_marker;
Packit 1fb8d4
	STREAM_BITMAP_FIRST_ORDER stream_bitmap_first;
Packit 1fb8d4
	STREAM_BITMAP_NEXT_ORDER stream_bitmap_next;
Packit 1fb8d4
	DRAW_GDIPLUS_CACHE_FIRST_ORDER draw_gdiplus_cache_first;
Packit 1fb8d4
	DRAW_GDIPLUS_CACHE_NEXT_ORDER draw_gdiplus_cache_next;
Packit 1fb8d4
	DRAW_GDIPLUS_CACHE_END_ORDER draw_gdiplus_cache_end;
Packit 1fb8d4
	DRAW_GDIPLUS_FIRST_ORDER draw_gdiplus_first;
Packit 1fb8d4
	DRAW_GDIPLUS_NEXT_ORDER draw_gdiplus_next;
Packit 1fb8d4
	DRAW_GDIPLUS_END_ORDER draw_gdiplus_end;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct rdp_altsec_update rdpAltSecUpdate;
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_UPDATE_ALTSEC_H */