FreeRDP
Loading...
Searching...
No Matches
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
30extern "C"
31{
32#endif
33
34 typedef struct S_BITMAP_INTERLEAVED_CONTEXT BITMAP_INTERLEAVED_CONTEXT;
35
36 WINPR_ATTR_NODISCARD
37 FREERDP_API BOOL interleaved_decompress(BITMAP_INTERLEAVED_CONTEXT* WINPR_RESTRICT interleaved,
38 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
39 UINT32 nSrcWidth, UINT32 nSrcHeight, UINT32 bpp,
40 BYTE* WINPR_RESTRICT pDstData, UINT32 DstFormat,
41 UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst,
42 UINT32 nDstWidth, UINT32 nDstHeight,
43 const gdiPalette* WINPR_RESTRICT palette);
44
45 WINPR_ATTR_NODISCARD
46 FREERDP_API BOOL interleaved_compress(BITMAP_INTERLEAVED_CONTEXT* WINPR_RESTRICT interleaved,
47 BYTE* WINPR_RESTRICT pDstData,
48 UINT32* WINPR_RESTRICT pDstSize, UINT32 nWidth,
49 UINT32 nHeight, const BYTE* WINPR_RESTRICT pSrcData,
50 UINT32 SrcFormat, UINT32 nSrcStep, UINT32 nXSrc,
51 UINT32 nYSrc, const gdiPalette* WINPR_RESTRICT palette,
52 UINT32 bpp);
53
54 WINPR_ATTR_NODISCARD
55 FREERDP_API BOOL
56 bitmap_interleaved_context_reset(BITMAP_INTERLEAVED_CONTEXT* WINPR_RESTRICT interleaved);
57
58 FREERDP_API void
59 bitmap_interleaved_context_free(BITMAP_INTERLEAVED_CONTEXT* WINPR_RESTRICT interleaved);
60
61 WINPR_ATTR_MALLOC(bitmap_interleaved_context_free, 1)
62 WINPR_ATTR_NODISCARD
63 FREERDP_API BITMAP_INTERLEAVED_CONTEXT* bitmap_interleaved_context_new(BOOL Compressor);
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* FREERDP_CODEC_INTERLEAVED_H */