summaryrefslogtreecommitdiffstats
path: root/libhb/colormap.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-03-30 17:27:18 +0000
committerjstebbins <[email protected]>2014-03-30 17:27:18 +0000
commit05e6e447df6d66307a2cbcf7be19dc6d67676e07 (patch)
tree311923bb6f135f43c71f155008e2036c8e37fe68 /libhb/colormap.h
parentc02a0dc40464e6d0700ae0514de72d951276b020 (diff)
libhb: enable burn-in of all supported text subtitle formats
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6141 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/colormap.h')
-rw-r--r--libhb/colormap.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/libhb/colormap.h b/libhb/colormap.h
new file mode 100644
index 000000000..ab049aa0b
--- /dev/null
+++ b/libhb/colormap.h
@@ -0,0 +1,20 @@
+/* colormap.h
+ *
+ * Copyright (c) 2003-2014 HandBrake Team
+ * This file is part of the HandBrake source code
+ * Homepage: <http://handbrake.fr/>.
+ * It may be used under the terms of the GNU General Public License v2.
+ * For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
+ */
+
+#ifndef HB_COLORMAP_H
+#define HB_COLORMAP_H
+
+#define HB_RGB_TO_BGR(c) (((c & 0xff0000) >> 16) | \
+ ((c & 0x00ff00) ) | \
+ ((c & 0x0000ff) << 16))
+#define HB_BGR_TO_RGB(c) HB_RGB_TO_BGR(c)
+
+uint32_t hb_rgb_lookup_by_name(const char *color);
+
+#endif // HB_COLORMAP_H