aboutsummaryrefslogtreecommitdiff
path: root/hw/pixel_ops.h
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-13 22:36:30 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-13 22:36:30 +0000
commite27f01ef248ce63b2dc6591c28a275526d2dbc16 (patch)
tree656ab643026050fa9fe5f7f59e7da290ce98f340 /hw/pixel_ops.h
parent85b2d44057c2519f3878d0772b55b44f9280d085 (diff)
downloadqemu-e27f01ef248ce63b2dc6591c28a275526d2dbc16.zip
qemu-e27f01ef248ce63b2dc6591c28a275526d2dbc16.tar.gz
qemu-e27f01ef248ce63b2dc6591c28a275526d2dbc16.tar.bz2
Use pixel_ops.h in PXA LCD screen drawing.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2983 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pixel_ops.h')
-rw-r--r--hw/pixel_ops.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/pixel_ops.h b/hw/pixel_ops.h
index 5334f1d..d390adf 100644
--- a/hw/pixel_ops.h
+++ b/hw/pixel_ops.h
@@ -28,6 +28,18 @@ static inline unsigned int rgb_to_pixel16bgr(unsigned int r, unsigned int g,
return ((b >> 3) << 11) | ((g >> 2) << 5) | (r >> 3);
}
+static inline unsigned int rgb_to_pixel24(unsigned int r, unsigned int g,
+ unsigned int b)
+{
+ return (r << 16) | (g << 8) | b;
+}
+
+static inline unsigned int rgb_to_pixel24bgr(unsigned int r, unsigned int g,
+ unsigned int b)
+{
+ return (b << 16) | (g << 8) | r;
+}
+
static inline unsigned int rgb_to_pixel32(unsigned int r, unsigned int g,
unsigned int b)
{