os: add RGB888 pixel format

This commit is contained in:
Norman Feske 2014-08-20 21:23:50 +02:00
parent 3b71998054
commit eab1febd0d
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,26 @@
/*
* \brief Template specializations for the RGB888 pixel format
* \author Norman Feske
* \date 2014-08-14
*/
/*
* Copyright (C) 2014 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef _INCLUDE__OS__PIXEL_RGB888_H_
#define _INCLUDE__OS__PIXEL_RGB888_H_
#include <os/pixel_rgba.h>
namespace Genode {
typedef Pixel_rgba<unsigned long, Surface_base::RGB888,
0xff0000, 16, 0xff00, 8, 0xff, 0, 0, 0>
Pixel_rgb888;
}
#endif /* _INCLUDE__OS__PIXEL_RGB888_H_ */

View File

@ -37,7 +37,7 @@ class Genode::Surface_base
typedef Genode::Rect<> Rect;
typedef Genode::Color Color;
enum Pixel_format { UNKNOWN, RGB565 };
enum Pixel_format { UNKNOWN, RGB565, RGB888 };
struct Flusher
{