bee2e1526d
(some client side channels and all server side channels still need to be ported to new api) server: build fix, do not disable threads for rfx encoder cliprdr client channel: implemented support for DisableThreads option looks like thread does not make sense at all for this channel do not initialize disabled image codecs (respect settings) channels: client: rail: added support for DisableThreads setting changed "BOOL DisableThreads" to "UINT32 ThreadingFlags" dropped unnecessary apu changes draft implementation of threading settings aware message handling api for addins/channels rail: use new messaging api fixed memory leak msgs handlers external api changes (as requested) msgs_handlers: init fix fixed memory leak logic fix resolved problems appeared after rebase to master, dropped unnecessary changes git clang-format origin/master fixed TestFreeRDPCodecRemoteFX.c "formatting, run `clang-format` please" properly use new "rfx_context_new(BOOL, UINT32)" everywhere passed Threading Flags to "rfx_context_new" where available in older C standarts veriables declaration must be done before any code requested changes clang-format as requested use broken signatures of standert C functions for m$ s**tos clang-format requested changes requested changes moved ThreadingFlags to stable api zone define type for channel msg handler typo fix clang-format build fix us ThreadingFlags from server settings git clang-format origin/master clang-format
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/**
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
* YUV decoder
|
|
*
|
|
* Copyright 2017 David Fort <contact@hardening-consulting.com>
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef FREERDP_CODEC_YUV_H
|
|
#define FREERDP_CODEC_YUV_H
|
|
|
|
typedef struct _YUV_CONTEXT YUV_CONTEXT;
|
|
|
|
#include <freerdp/api.h>
|
|
#include <freerdp/types.h>
|
|
#include <freerdp/freerdp.h>
|
|
#include <freerdp/constants.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
FREERDP_API BOOL yuv_context_decode(YUV_CONTEXT* context, const BYTE* pYUVData[3],
|
|
UINT32 iStride[3], DWORD DstFormat, BYTE* dest,
|
|
UINT32 nDstStep);
|
|
|
|
FREERDP_API void yuv_context_reset(YUV_CONTEXT* context, UINT32 width, UINT32 height);
|
|
|
|
FREERDP_API YUV_CONTEXT* yuv_context_new(BOOL encoder, UINT32 ThreadingFlags);
|
|
FREERDP_API void yuv_context_free(YUV_CONTEXT* context);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* FREERDP_CODEC_YUV_H */
|