20 #ifndef FREERDP_CODEC_INTERLEAVED_H
21 #define FREERDP_CODEC_INTERLEAVED_H
23 #include <freerdp/api.h>
24 #include <freerdp/types.h>
26 #include <freerdp/codec/color.h>
27 #include <freerdp/codec/bitmap.h>
34 typedef struct S_BITMAP_INTERLEAVED_CONTEXT BITMAP_INTERLEAVED_CONTEXT;
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);
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,
53 bitmap_interleaved_context_reset(BITMAP_INTERLEAVED_CONTEXT* WINPR_RESTRICT interleaved);
56 bitmap_interleaved_context_free(BITMAP_INTERLEAVED_CONTEXT* WINPR_RESTRICT interleaved);
58 WINPR_ATTR_MALLOC(bitmap_interleaved_context_free, 1)
59 FREERDP_API BITMAP_INTERLEAVED_CONTEXT* bitmap_interleaved_context_new(BOOL Compressor);