gfx.h (2032B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * GDI Graphics Pipeline 4 * 5 * Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20#ifndef FREERDP_GDI_GFX_H 21#define FREERDP_GDI_GFX_H 22 23#include <freerdp/api.h> 24#include <freerdp/gdi/gdi.h> 25 26struct gdi_gfx_surface 27{ 28 UINT16 surfaceId; 29 rdpCodecs* codecs; 30 H264_CONTEXT* h264; 31 UINT32 width; 32 UINT32 height; 33 UINT32 mappedWidth; 34 UINT32 mappedHeight; 35 BYTE* data; 36 UINT32 scanline; 37 UINT32 format; 38 BOOL outputMapped; 39 UINT32 outputOriginX; 40 UINT32 outputOriginY; 41 REGION16 invalidRegion; 42 UINT64 windowId; 43 UINT32 outputTargetWidth; 44 UINT32 outputTargetHeight; 45}; 46typedef struct gdi_gfx_surface gdiGfxSurface; 47 48struct gdi_gfx_cache_entry 49{ 50 UINT64 cacheKey; 51 UINT32 width; 52 UINT32 height; 53 BYTE* data; 54 UINT32 scanline; 55 UINT32 format; 56}; 57typedef struct gdi_gfx_cache_entry gdiGfxCacheEntry; 58 59#ifdef __cplusplus 60extern "C" 61{ 62#endif 63 64 FREERDP_API BOOL gdi_graphics_pipeline_init(rdpGdi* gdi, RdpgfxClientContext* gfx); 65 FREERDP_API BOOL gdi_graphics_pipeline_init_ex(rdpGdi* gdi, RdpgfxClientContext* gfx, 66 pcRdpgfxMapWindowForSurface map, 67 pcRdpgfxUnmapWindowForSurface unmap, 68 pcRdpgfxUpdateSurfaceArea update); 69 FREERDP_API void gdi_graphics_pipeline_uninit(rdpGdi* gdi, RdpgfxClientContext* gfx); 70 71#ifdef __cplusplus 72} 73#endif 74 75#endif /* FREERDP_GDI_GFX_H */