cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

clear.h (1815B)


      1/**
      2 * FreeRDP: A Remote Desktop Protocol Implementation
      3 * ClearCodec Bitmap Compression
      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_CODEC_CLEAR_H
     21#define FREERDP_CODEC_CLEAR_H
     22
     23#include <freerdp/api.h>
     24#include <freerdp/types.h>
     25
     26#include <freerdp/codec/nsc.h>
     27#include <freerdp/codec/color.h>
     28
     29typedef struct _CLEAR_CONTEXT CLEAR_CONTEXT;
     30
     31#ifdef __cplusplus
     32extern "C"
     33{
     34#endif
     35
     36	FREERDP_API int clear_compress(CLEAR_CONTEXT* clear, const BYTE* pSrcData, UINT32 SrcSize,
     37	                               BYTE** ppDstData, UINT32* pDstSize);
     38
     39	FREERDP_API INT32 clear_decompress(CLEAR_CONTEXT* clear, const BYTE* pSrcData, UINT32 SrcSize,
     40	                                   UINT32 nWidth, UINT32 nHeight, BYTE* pDstData,
     41	                                   UINT32 DstFormat, UINT32 nDstStep, UINT32 nXDst,
     42	                                   UINT32 nYDst, UINT32 nDstWidth, UINT32 nDstHeight,
     43	                                   const gdiPalette* palette);
     44
     45	FREERDP_API BOOL clear_context_reset(CLEAR_CONTEXT* clear);
     46
     47	FREERDP_API CLEAR_CONTEXT* clear_context_new(BOOL Compressor);
     48	FREERDP_API void clear_context_free(CLEAR_CONTEXT* clear);
     49
     50#ifdef __cplusplus
     51}
     52#endif
     53
     54#endif /* FREERDP_CODEC_CLEAR_H */