diff options
| author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-03-08 15:27:27 +0200 | 
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-03-08 15:42:47 +0200 | 
| commit | a41cbe24c45975aab44389e7e894582ee2622806 (patch) | |
| tree | 2a12638e08a0f64b1714e7792f2cacb07f0b4c81 /libkmstest/color.h | |
| parent | 3f0a0230676d9d38ec677f88143222ffd70a9f7d (diff) | |
libkmstest: color & draw_rect
Diffstat (limited to 'libkmstest/color.h')
| -rw-r--r-- | libkmstest/color.h | 28 | 
1 files changed, 12 insertions, 16 deletions
| diff --git a/libkmstest/color.h b/libkmstest/color.h index f84fc68..f99a951 100644 --- a/libkmstest/color.h +++ b/libkmstest/color.h @@ -10,19 +10,18 @@ struct RGB  {  	RGB();  	RGB(uint8_t r, uint8_t g, uint8_t b); +	RGB(uint8_t a, uint8_t r, uint8_t g, uint8_t b); +	RGB(uint32_t argb); -	uint32_t rgb888() const; -	uint32_t bgr888() const; +	uint32_t argb8888() const; +	uint32_t abgr8888() const;  	uint16_t rgb565() const;  	YUV yuv() const; -	struct -	{ -		uint8_t b; -		uint8_t g; -		uint8_t r; -		uint8_t a; -	}; +	uint8_t b; +	uint8_t g; +	uint8_t r; +	uint8_t a;  };  struct YUV @@ -31,12 +30,9 @@ struct YUV  	YUV(uint8_t y, uint8_t u, uint8_t v);  	YUV(const RGB& rgb); -	struct -	{ -		uint8_t v; -		uint8_t u; -		uint8_t y; -		uint8_t a; -	}; +	uint8_t v; +	uint8_t u; +	uint8_t y; +	uint8_t a;  };  } | 
