Blame include/freerdp/altsec.h

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