[oe-commits] Marco Cavallini : psplash-24bpp-BGR666.patch: psplash patch to support 24bpp BGR666
git version control
git at git.openembedded.org
Thu Jan 20 14:31:29 UTC 2011
Module: openembedded.git
Branch: master
Commit: dc63b49ec34b4d319d7cea73ad9ef1cb62279427
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=dc63b49ec34b4d319d7cea73ad9ef1cb62279427
Author: Marco Cavallini <m.cavallini at koansoftware.com>
Date: Thu Jan 20 15:30:02 2011 +0100
psplash-24bpp-BGR666.patch: psplash patch to support 24bpp BGR666
---
recipes/psplash/files/psplash-24bpp-BGR666.patch | 25 ++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/recipes/psplash/files/psplash-24bpp-BGR666.patch b/recipes/psplash/files/psplash-24bpp-BGR666.patch
new file mode 100644
index 0000000..102f71b
--- /dev/null
+++ b/recipes/psplash/files/psplash-24bpp-BGR666.patch
@@ -0,0 +1,25 @@
+--- a/psplash-fb.c 2011-01-20 15:04:15.000000000 +0100
++++ b/psplash-fb.c 2011-01-20 15:03:50.000000000 +0100
+@@ -3,6 +3,10 @@
+ *
+ * Copyright (c) 2006 Matthew Allum <mallum at o-hand.com>
+ *
++ * Modifications:
++ * Jan-2011 - Marco Cavallini <m.cavallini at koansoftware.com>
++ * added case 24bpp mode BGR666 for PXA270
++ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+@@ -339,6 +343,11 @@ psplash_fb_plot_pixel (PSplashFB *fb,
+ | ((green >> (8 - fb->green_length)) << fb->green_offset)
+ | ((blue >> (8 - fb->blue_length)) << fb->blue_offset);
+ break;
++ case 24: /* BGR666 */
++ *(fb->data + off) = (blue >> 2) | ((green & 0x0C) << 4);
++ *(fb->data + off + 1) = ((green & 0xF0) >> 4) | ((red & 0x3C) << 2);
++ *(fb->data + off + 2) = (red & 0xC0) >> 6;
++ break;
+ case 16:
+ *(volatile uint16_t *) (fb->data + off)
+ = ((red >> (8 - fb->red_length)) << fb->red_offset)
More information about the Openembedded-commits
mailing list