summaryrefslogtreecommitdiffstats
path: root/libdimension/rgba16.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/rgba16.h')
-rw-r--r--libdimension/rgba16.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/libdimension/rgba16.h b/libdimension/rgba16.h
new file mode 100644
index 0000000..24af74a
--- /dev/null
+++ b/libdimension/rgba16.h
@@ -0,0 +1,32 @@
+/*************************************************************************
+ * Copyright (C) 2010-2011 Tavian Barnes <tavianator@tavianator.com> *
+ * *
+ * This file is part of The Dimension Library. *
+ * *
+ * The Dimension Library is free software; you can redistribute it and/ *
+ * or modify it under the terms of the GNU Lesser General Public License *
+ * as published by the Free Software Foundation; either version 3 of the *
+ * License, or (at your option) any later version. *
+ * *
+ * The Dimension Library is distributed in the hope that it will be *
+ * useful, but WITHOUT ANY WARRANTY; without even the implied warranty *
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this program. If not, see *
+ * <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
+/**
+ * @file
+ * 16-bit RGBA canvas optimizer interface, shared between PNG and GL optimizers.
+ */
+
+/** Apply the rgba16 optimizer to a canvas. */
+void dmnsn_rgba16_optimize_canvas(dmnsn_canvas *canvas);
+
+/** RGBA16 optimizer callback. */
+void dmnsn_rgba16_optimizer_fn(const dmnsn_canvas *canvas,
+ dmnsn_canvas_optimizer optimizer,
+ size_t x, size_t y);