Subversion Repositories HelenOS

Rev

Rev 4647 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4647 Rev 4651
Line 114... Line 114...
114
{
114
{
115
    *((uint32_t *) dst)
115
    *((uint32_t *) dst)
116
        = (BLUE(rgb, 8) << 16) | (GREEN(rgb, 8) << 8) | RED(rgb, 8);
116
        = (BLUE(rgb, 8) << 16) | (GREEN(rgb, 8) << 8) | RED(rgb, 8);
117
}
117
}
118
 
118
 
-
 
119
static void rgb_8880(void *dst, uint32_t rgb)
-
 
120
{
-
 
121
    *((uint32_t *) dst)
-
 
122
       = (RED(rgb, 8) << 24) | (GREEN(rgb, 8) << 16) | (BLUE(rgb, 8) << 8);
-
 
123
 
-
 
124
}
-
 
125
 
119
 
126
 
120
/** RGB 8:8:8 conversion
127
/** RGB 8:8:8 conversion
121
 *
128
 *
122
 */
129
 */
123
static void rgb_888(void *dst, uint32_t rgb)
130
static void rgb_888(void *dst, uint32_t rgb)
Line 468... Line 475...
468
    case VISUAL_BGR_8_8_8:
475
    case VISUAL_BGR_8_8_8:
469
        rgb_conv = bgr_888;
476
        rgb_conv = bgr_888;
470
        pixelbytes = 3;
477
        pixelbytes = 3;
471
        break;
478
        break;
472
    case VISUAL_RGB_8_8_8_0:
479
    case VISUAL_RGB_8_8_8_0:
473
        rgb_conv = rgb_888;
480
        rgb_conv = rgb_8880;
474
        pixelbytes = 4;
481
        pixelbytes = 4;
475
        break;
482
        break;
476
    case VISUAL_RGB_0_8_8_8:
483
    case VISUAL_RGB_0_8_8_8:
477
        rgb_conv = rgb_0888;
484
        rgb_conv = rgb_0888;
478
        pixelbytes = 4;
485
        pixelbytes = 4;