mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-21 03:55:04 +00:00
os: add RGB888 pixel format
This commit is contained in:
parent
3b71998054
commit
eab1febd0d
26
repos/os/include/os/pixel_rgb888.h
Normal file
26
repos/os/include/os/pixel_rgb888.h
Normal 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_ */
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user