Blame include/freerdp/codec/nsc.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * NSCodec Codec
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2011 Samsung, Author Jiten Pathy
Packit 1fb8d4
 * Copyright 2012 Vic Lee
Packit 1fb8d4
 * Copyright 2016 Armin Novak <armin.novak@thincast.com>
Packit 1fb8d4
 * Copyright 2016 Thincast Technologies GmbH
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *	 http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_CODEC_NSCODEC_H
Packit 1fb8d4
#define FREERDP_CODEC_NSCODEC_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/api.h>
Packit 1fb8d4
#include <freerdp/types.h>
Packit 1fb8d4
#include <freerdp/constants.h>
Packit 1fb8d4
Packit 1fb8d4
#include <winpr/stream.h>
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit Service 5a9772
extern "C"
Packit 1fb8d4
{
Packit Service 5a9772
#endif
Packit 1fb8d4
Packit Service 5a9772
	typedef enum
Packit Service 5a9772
	{
Packit Service 5a9772
		NSC_COLOR_LOSS_LEVEL,
Packit Service 5a9772
		NSC_ALLOW_SUBSAMPLING,
Packit Service 5a9772
		NSC_DYNAMIC_COLOR_FIDELITY,
Packit Service 5a9772
		NSC_COLOR_FORMAT
Packit Service 5a9772
	} NSC_PARAMETER;
Packit Service 5a9772
Packit Service 5a9772
	typedef struct _NSC_CONTEXT NSC_CONTEXT;
Packit Service 5a9772
Packit Service 5a9772
	FREERDP_API WINPR_DEPRECATED(BOOL nsc_context_set_pixel_format(NSC_CONTEXT* context,
Packit Service 5a9772
	                                                               UINT32 pixel_format));
Packit Service 5a9772
	FREERDP_API BOOL nsc_context_set_parameters(NSC_CONTEXT* context, NSC_PARAMETER what,
Packit Service 5a9772
	                                            UINT32 value);
Packit Service 5a9772
Packit Service 5a9772
	FREERDP_API BOOL nsc_process_message(NSC_CONTEXT* context, UINT16 bpp, UINT32 width,
Packit Service 5a9772
	                                     UINT32 height, const BYTE* data, UINT32 length,
Packit Service 5a9772
	                                     BYTE* pDstData, UINT32 DstFormat, UINT32 nDstStride,
Packit Service 5a9772
	                                     UINT32 nXDst, UINT32 nYDst, UINT32 nWidth, UINT32 nHeight,
Packit Service 5a9772
	                                     UINT32 flip);
Packit Service 5a9772
	FREERDP_API BOOL nsc_compose_message(NSC_CONTEXT* context, wStream* s, const BYTE* bmpdata,
Packit Service 5a9772
	                                     UINT32 width, UINT32 height, UINT32 rowstride);
Packit Service 5a9772
	FREERDP_API BOOL nsc_decompose_message(NSC_CONTEXT* context, wStream* s, BYTE* bmpdata,
Packit Service 5a9772
	                                       UINT32 x, UINT32 y, UINT32 width, UINT32 height,
Packit Service 5a9772
	                                       UINT32 rowstride, UINT32 format, UINT32 flip);
Packit Service 5a9772
Packit Service 5a9772
	FREERDP_API BOOL nsc_context_reset(NSC_CONTEXT* context, UINT32 width, UINT32 height);
Packit Service 5a9772
Packit Service 5a9772
	FREERDP_API NSC_CONTEXT* nsc_context_new(void);
Packit Service 5a9772
	FREERDP_API void nsc_context_free(NSC_CONTEXT* context);
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit 1fb8d4
}
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_CODEC_NSCODEC_H */