FreeRDP
|
Macros | |
#define | OUT_COLOR_COUNT2(in_count, in_s, in_data) in_count = out_color_count_2(in_count, in_s, in_data) |
#define | OUT_COLOR_COUNT3(in_count, in_s, in_data) in_count = out_color_count_3(in_count, in_s, in_data) |
#define | OUT_COPY_COUNT2(in_count, in_s, in_data) in_count = out_copy_count_2(in_count, in_s, in_data) |
#define | OUT_COPY_COUNT3(in_count, in_s, in_data) in_count = out_copy_count_3(in_count, in_s, in_data) |
#define | OUT_BICOLOR_COUNT2(in_count, in_s, in_color1, in_color2) in_count = out_bicolor_count_2(in_count, in_s, in_color1, in_color2) |
#define | OUT_BICOLOR_COUNT3(in_count, in_s, in_color1, in_color2) in_count = out_bicolor_count_3(in_count, in_s, in_color1, in_color2) |
#define | OUT_FILL_COUNT2(in_count, in_s) in_count = out_fill_count_2(in_count, in_s) |
#define | OUT_FILL_COUNT3(in_count, in_s) in_count = out_fill_count_3(in_count, in_s) |
#define | OUT_MIX_COUNT2(in_count, in_s) in_count = out_mix_count_2(in_count, in_s) |
#define | OUT_MIX_COUNT3(in_count, in_s) in_count = out_mix_count_3(in_count, in_s) |
#define | OUT_FOM_COUNT2(in_count, in_s, in_mask, in_mask_len) in_count = out_from_count_2(in_count, in_s, in_mask, in_mask_len) |
#define | OUT_FOM_COUNT3(in_count, in_s, in_mask, in_mask_len) in_count = out_from_count_3(in_count, in_s, in_mask, in_mask_len) |
#define | TEST_FILL ((last_line == 0 && pixel == 0) || (last_line != 0 && pixel == ypixel)) |
#define | TEST_MIX ((last_line == 0 && pixel == mix) || (last_line != 0 && pixel == (ypixel ^ mix))) |
#define | TEST_FOM TEST_FILL || TEST_MIX |
#define | TEST_COLOR pixel == last_pixel |
#define | TEST_BICOLOR |
#define | RESET_COUNTS |
Functions | |
static INLINE UINT16 | GETPIXEL16 (const void *WINPR_RESTRICT d, UINT32 x, UINT32 y, UINT32 w) |
static INLINE UINT32 | GETPIXEL32 (const void *WINPR_RESTRICT d, UINT32 x, UINT32 y, UINT32 w) |
static INLINE UINT16 | IN_PIXEL16 (const void *WINPR_RESTRICT in_ptr, UINT32 in_x, UINT32 in_y, UINT32 in_w, UINT16 in_last_pixel) |
static INLINE UINT32 | IN_PIXEL32 (const void *WINPR_RESTRICT in_ptr, UINT32 in_x, UINT32 in_y, UINT32 in_w, UINT32 in_last_pixel) |
static INLINE UINT16 | out_color_count_2 (UINT16 in_count, wStream *WINPR_RESTRICT in_s, UINT16 in_data) |
static INLINE UINT16 | out_color_count_3 (UINT16 in_count, wStream *WINPR_RESTRICT in_s, UINT32 in_data) |
static INLINE UINT16 | out_copy_count_2 (UINT16 in_count, wStream *WINPR_RESTRICT in_s, wStream *WINPR_RESTRICT in_data) |
static INLINE UINT16 | out_copy_count_3 (UINT16 in_count, wStream *WINPR_RESTRICT in_s, wStream *WINPR_RESTRICT in_data) |
static INLINE UINT16 | out_bicolor_count_2 (UINT16 in_count, wStream *WINPR_RESTRICT in_s, UINT16 in_color1, UINT16 in_color2) |
static INLINE UINT16 | out_bicolor_count_3 (UINT16 in_count, wStream *WINPR_RESTRICT in_s, UINT32 in_color1, UINT32 in_color2) |
static INLINE UINT16 | out_fill_count_2 (UINT16 in_count, wStream *WINPR_RESTRICT in_s) |
static INLINE UINT16 | out_fill_count_3 (UINT16 in_count, wStream *WINPR_RESTRICT in_s) |
static INLINE UINT16 | out_mix_count_2 (UINT16 in_count, wStream *WINPR_RESTRICT in_s) |
static INLINE UINT16 | out_mix_count_3 (UINT16 in_count, wStream *WINPR_RESTRICT in_s) |
static INLINE UINT16 | out_from_count_2 (UINT16 in_count, wStream *WINPR_RESTRICT in_s, const char *WINPR_RESTRICT in_mask, size_t in_mask_len) |
static INLINE UINT16 | out_from_count_3 (UINT16 in_count, wStream *WINPR_RESTRICT in_s, const char *WINPR_RESTRICT in_mask, size_t in_mask_len) |
static INLINE SSIZE_T | freerdp_bitmap_compress_24 (const void *WINPR_RESTRICT srcData, UINT32 width, UINT32 height, wStream *WINPR_RESTRICT s, UINT32 byte_limit, UINT32 start_line, wStream *WINPR_RESTRICT temp_s, UINT32 e) |
static INLINE SSIZE_T | freerdp_bitmap_compress_16 (const void *WINPR_RESTRICT srcData, UINT32 width, UINT32 height, wStream *WINPR_RESTRICT s, UINT32 bpp, UINT32 byte_limit, UINT32 start_line, wStream *WINPR_RESTRICT temp_s, UINT32 e) |
SSIZE_T | freerdp_bitmap_compress (const void *WINPR_RESTRICT srcData, UINT32 width, UINT32 height, wStream *WINPR_RESTRICT s, UINT32 bpp, UINT32 byte_limit, UINT32 start_line, wStream *WINPR_RESTRICT temp_s, UINT32 e) |
#define OUT_BICOLOR_COUNT2 | ( | in_count, | |
in_s, | |||
in_color1, | |||
in_color2 | |||
) | in_count = out_bicolor_count_2(in_count, in_s, in_color1, in_color2) |
#define OUT_BICOLOR_COUNT3 | ( | in_count, | |
in_s, | |||
in_color1, | |||
in_color2 | |||
) | in_count = out_bicolor_count_3(in_count, in_s, in_color1, in_color2) |
#define OUT_COLOR_COUNT2 | ( | in_count, | |
in_s, | |||
in_data | |||
) | in_count = out_color_count_2(in_count, in_s, in_data) |
#define OUT_COLOR_COUNT3 | ( | in_count, | |
in_s, | |||
in_data | |||
) | in_count = out_color_count_3(in_count, in_s, in_data) |
#define OUT_COPY_COUNT2 | ( | in_count, | |
in_s, | |||
in_data | |||
) | in_count = out_copy_count_2(in_count, in_s, in_data) |
#define OUT_COPY_COUNT3 | ( | in_count, | |
in_s, | |||
in_data | |||
) | in_count = out_copy_count_3(in_count, in_s, in_data) |
#define OUT_FILL_COUNT2 | ( | in_count, | |
in_s | |||
) | in_count = out_fill_count_2(in_count, in_s) |
#define OUT_FILL_COUNT3 | ( | in_count, | |
in_s | |||
) | in_count = out_fill_count_3(in_count, in_s) |
#define OUT_FOM_COUNT2 | ( | in_count, | |
in_s, | |||
in_mask, | |||
in_mask_len | |||
) | in_count = out_from_count_2(in_count, in_s, in_mask, in_mask_len) |
#define OUT_FOM_COUNT3 | ( | in_count, | |
in_s, | |||
in_mask, | |||
in_mask_len | |||
) | in_count = out_from_count_3(in_count, in_s, in_mask, in_mask_len) |
#define OUT_MIX_COUNT2 | ( | in_count, | |
in_s | |||
) | in_count = out_mix_count_2(in_count, in_s) |
#define OUT_MIX_COUNT3 | ( | in_count, | |
in_s | |||
) | in_count = out_mix_count_3(in_count, in_s) |
#define RESET_COUNTS |
#define TEST_BICOLOR |
#define TEST_COLOR pixel == last_pixel |
#define TEST_FILL ((last_line == 0 && pixel == 0) || (last_line != 0 && pixel == ypixel)) |
#define TEST_MIX ((last_line == 0 && pixel == mix) || (last_line != 0 && pixel == (ypixel ^ mix))) |
SSIZE_T freerdp_bitmap_compress | ( | const void *WINPR_RESTRICT | srcData, |
UINT32 | width, | ||
UINT32 | height, | ||
wStream *WINPR_RESTRICT | s, | ||
UINT32 | bpp, | ||
UINT32 | byte_limit, | ||
UINT32 | start_line, | ||
wStream *WINPR_RESTRICT | temp_s, | ||
UINT32 | e | ||
) |
|
static |
|
static |
|
static |
FreeRDP: A Remote Desktop Protocol Implementation Bitmap Compression
Copyright 2004-2012 Jay Sorg jay.s org@ gmail .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.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |