codecs.h (2232B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * RDP Codecs 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_CODECS_H 21#define FREERDP_CODECS_H 22 23#include <freerdp/api.h> 24 25#include <freerdp/codec/color.h> 26 27#include <freerdp/codec/rfx.h> 28#include <freerdp/codec/nsc.h> 29#include <freerdp/codec/h264.h> 30#include <freerdp/codec/clear.h> 31#include <freerdp/codec/planar.h> 32#include <freerdp/codec/interleaved.h> 33#include <freerdp/codec/progressive.h> 34 35#define FREERDP_CODEC_INTERLEAVED 0x00000001 36#define FREERDP_CODEC_PLANAR 0x00000002 37#define FREERDP_CODEC_NSCODEC 0x00000004 38#define FREERDP_CODEC_REMOTEFX 0x00000008 39#define FREERDP_CODEC_CLEARCODEC 0x00000010 40#define FREERDP_CODEC_ALPHACODEC 0x00000020 41#define FREERDP_CODEC_PROGRESSIVE 0x00000040 42#define FREERDP_CODEC_AVC420 0x00000080 43#define FREERDP_CODEC_AVC444 0x00000100 44#define FREERDP_CODEC_ALL 0xFFFFFFFF 45 46struct rdp_codecs 47{ 48 rdpContext* context; 49 50 RFX_CONTEXT* rfx; 51 NSC_CONTEXT* nsc; 52 H264_CONTEXT* h264; 53 CLEAR_CONTEXT* clear; 54 PROGRESSIVE_CONTEXT* progressive; 55 BITMAP_PLANAR_CONTEXT* planar; 56 BITMAP_INTERLEAVED_CONTEXT* interleaved; 57}; 58 59#ifdef __cplusplus 60extern "C" 61{ 62#endif 63 64 FREERDP_API BOOL freerdp_client_codecs_prepare(rdpCodecs* codecs, UINT32 flags, UINT32 width, 65 UINT32 height); 66 FREERDP_API BOOL freerdp_client_codecs_reset(rdpCodecs* codecs, UINT32 flags, UINT32 width, 67 UINT32 height); 68 69 FREERDP_API rdpCodecs* codecs_new(rdpContext* context); 70 FREERDP_API void codecs_free(rdpCodecs* codecs); 71 72#ifdef __cplusplus 73} 74#endif 75 76#endif /* FREERDP_CODECS_H */