summaryrefslogtreecommitdiff
path: root/drivers/pvr/PvrTcDecoder.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-04-06 21:48:20 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-04-06 21:48:20 -0300
commitb36e41cb7117757011e6f1ccc476ccc806219a58 (patch)
tree56cc08bad161f167d9217b0621123dd0947ea763 /drivers/pvr/PvrTcDecoder.h
parent5d99e15e43d5a446b35d48e8a3b08a478f1998a9 (diff)
Added a PVRTC encoder for iOS
Diffstat (limited to 'drivers/pvr/PvrTcDecoder.h')
-rw-r--r--drivers/pvr/PvrTcDecoder.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/pvr/PvrTcDecoder.h b/drivers/pvr/PvrTcDecoder.h
new file mode 100644
index 0000000000..1b6fcf964c
--- /dev/null
+++ b/drivers/pvr/PvrTcDecoder.h
@@ -0,0 +1,25 @@
+//============================================================================
+
+#pragma once
+#include "Point2.h"
+#include "ColorRgba.h"
+
+//============================================================================
+
+namespace Javelin
+{
+//============================================================================
+
+ class PvrTcDecoder
+ {
+ public:
+ static void DecodeRgb4Bpp(ColorRgb<unsigned char>* result, const Point2<int>& size, const void* data);
+ static void DecodeRgba4Bpp(ColorRgba<unsigned char>* result, const Point2<int>& size, const void* data);
+
+ private:
+ static unsigned GetMortonNumber(int x, int y);
+ };
+
+//============================================================================
+}
+//============================================================================