FreeRDP
interleaved.h
1 
20 #ifndef FREERDP_CODEC_INTERLEAVED_H
21 #define FREERDP_CODEC_INTERLEAVED_H
22 
23 #include <freerdp/api.h>
24 #include <freerdp/types.h>
25 
26 #include <freerdp/codec/color.h>
27 #include <freerdp/codec/bitmap.h>
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
34  typedef struct S_BITMAP_INTERLEAVED_CONTEXT BITMAP_INTERLEAVED_CONTEXT;
35 
36  FREERDP_API BOOL interleaved_decompress(BITMAP_INTERLEAVED_CONTEXT* WINPR_RESTRICT interleaved,
37  const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
38  UINT32 nSrcWidth, UINT32 nSrcHeight, UINT32 bpp,
39  BYTE* WINPR_RESTRICT pDstData, UINT32 DstFormat,
40  UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst,
41  UINT32 nDstWidth, UINT32 nDstHeight,
42  const gdiPalette* WINPR_RESTRICT palette);
43 
44  FREERDP_API BOOL interleaved_compress(BITMAP_INTERLEAVED_CONTEXT* WINPR_RESTRICT interleaved,
45  BYTE* WINPR_RESTRICT pDstData,
46  UINT32* WINPR_RESTRICT pDstSize, UINT32 nWidth,
47  UINT32 nHeight, const BYTE* WINPR_RESTRICT pSrcData,
48  UINT32 SrcFormat, UINT32 nSrcStep, UINT32 nXSrc,
49  UINT32 nYSrc, const gdiPalette* WINPR_RESTRICT palette,
50  UINT32 bpp);
51 
52  FREERDP_API BOOL
53  bitmap_interleaved_context_reset(BITMAP_INTERLEAVED_CONTEXT* WINPR_RESTRICT interleaved);
54 
55  FREERDP_API void
56  bitmap_interleaved_context_free(BITMAP_INTERLEAVED_CONTEXT* WINPR_RESTRICT interleaved);
57 
58  WINPR_ATTR_MALLOC(bitmap_interleaved_context_free, 1)
59  FREERDP_API BITMAP_INTERLEAVED_CONTEXT* bitmap_interleaved_context_new(BOOL Compressor);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* FREERDP_CODEC_INTERLEAVED_H */