Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fidoman committed Jan 14, 2014
1 parent b948f9b commit a7091a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libfreerdp/codec/color.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ UINT32 freerdp_color_convert_rgb(UINT32 srcColor, int srcBpp, int dstBpp, HCLRCO
BYTE alpha = 0xFF;
UINT32 dstColor = 0;

//fprintf(stderr, "color_covert_rgb %d->%d\n", srcBpp, dstBpp);
freerdp_color_split_rgb(&srcColor, srcBpp, &red, &green, &blue, &alpha, clrconv);
freerdp_color_make_rgb(&dstColor, dstBpp, &red, &green, &blue, &alpha, clrconv);

Expand All @@ -311,6 +312,7 @@ UINT32 freerdp_color_convert_bgr(UINT32 srcColor, int srcBpp, int dstBpp, HCLRCO
BYTE alpha = 0xFF;
UINT32 dstColor = 0;

//fprintf(stderr, "color_covert_bgr %d->%d\n", srcBpp, dstBpp);
freerdp_color_split_bgr(&srcColor, srcBpp, &red, &green, &blue, &alpha, clrconv);
freerdp_color_make_bgr(&dstColor, dstBpp, &red, &green, &blue, &alpha, clrconv);

Expand All @@ -325,6 +327,7 @@ UINT32 freerdp_color_convert_rgb_bgr(UINT32 srcColor, int srcBpp, int dstBpp, HC
BYTE alpha = 0xFF;
UINT32 dstColor = 0;

//fprintf(stderr, "color_covert_rgb_bgr %d->%d\n", srcBpp, dstBpp);
freerdp_color_split_rgb(&srcColor, srcBpp, &red, &green, &blue, &alpha, clrconv);
freerdp_color_make_bgr(&dstColor, dstBpp, &red, &green, &blue, &alpha, clrconv);

Expand All @@ -339,6 +342,7 @@ UINT32 freerdp_color_convert_bgr_rgb(UINT32 srcColor, int srcBpp, int dstBpp, HC
BYTE alpha = 0xFF;
UINT32 dstColor = 0;

//fprintf(stderr, "color_covert_bgr_rgb %d->%d\n", srcBpp, dstBpp);
freerdp_color_split_bgr(&srcColor, srcBpp, &red, &green, &blue, &alpha, clrconv);
freerdp_color_make_rgb(&dstColor, dstBpp, &red, &green, &blue, &alpha, clrconv);

Expand All @@ -347,6 +351,7 @@ UINT32 freerdp_color_convert_bgr_rgb(UINT32 srcColor, int srcBpp, int dstBpp, HC

UINT32 freerdp_color_convert_var(UINT32 srcColor, int srcBpp, int dstBpp, HCLRCONV clrconv)
{
//fprintf(stderr, "color_covert_var %d->%d\n", srcBpp, dstBpp);
if (clrconv->invert)
return freerdp_color_convert_var_bgr(srcColor, srcBpp, dstBpp, clrconv);
else
Expand All @@ -355,6 +360,7 @@ UINT32 freerdp_color_convert_var(UINT32 srcColor, int srcBpp, int dstBpp, HCLRCO

UINT32 freerdp_color_convert_var_rgb(UINT32 srcColor, int srcBpp, int dstBpp, HCLRCONV clrconv)
{
//fprintf(stderr, "color_covert_var_rgb %d->%d\n", srcBpp, dstBpp);
if (srcBpp == 8)
{
BYTE alpha = 0xFF;
Expand All @@ -374,6 +380,7 @@ UINT32 freerdp_color_convert_var_rgb(UINT32 srcColor, int srcBpp, int dstBpp, HC

UINT32 freerdp_color_convert_var_bgr(UINT32 srcColor, int srcBpp, int dstBpp, HCLRCONV clrconv)
{
//fprintf(stderr, "color_covert_var_bgr %d->%d\n", srcBpp, dstBpp);
if (srcBpp == 8)
{
BYTE alpha = 0xFF;
Expand Down

0 comments on commit a7091a6

Please sign in to comment.