2 * FreeRDP: A Remote Desktop Protocol client.
3 * RemoteFX Codec Library - Decode
5 * Copyright 2011 Vic Lee
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #ifndef __RFX_DECODE_H
21 #define __RFX_DECODE_H
23 #include <freerdp/codec/rfx.h>
25 void rfx_decode_ycbcr_to_rgb(sint16* y_r_buf, sint16* cb_g_buf, sint16* cr_b_buf);
27 void rfx_decode_rgb(RFX_CONTEXT* context, STREAM* data_in,
28 int y_size, const uint32 * y_quants,
29 int cb_size, const uint32 * cb_quants,
30 int cr_size, const uint32 * cr_quants, uint8* rgb_buffer);
32 #endif /* __RFX_DECODE_H */