yuv.h (1446B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * YUV decoder 4 * 5 * Copyright 2017 David Fort <contact@hardening-consulting.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_YUV_H 21#define FREERDP_CODEC_YUV_H 22 23typedef struct _YUV_CONTEXT YUV_CONTEXT; 24 25#include <freerdp/api.h> 26#include <freerdp/types.h> 27#include <freerdp/freerdp.h> 28#include <freerdp/constants.h> 29 30#ifdef __cplusplus 31extern "C" 32{ 33#endif 34 35 FREERDP_API BOOL yuv_context_decode(YUV_CONTEXT* context, const BYTE* pYUVData[3], 36 UINT32 iStride[3], DWORD DstFormat, BYTE* dest, 37 UINT32 nDstStep); 38 39 FREERDP_API void yuv_context_reset(YUV_CONTEXT* context, UINT32 width, UINT32 height); 40 41 FREERDP_API YUV_CONTEXT* yuv_context_new(BOOL encoder); 42 FREERDP_API void yuv_context_free(YUV_CONTEXT* context); 43 44#ifdef __cplusplus 45} 46#endif 47 48#endif /* FREERDP_CODEC_YUV_H */