From 6aafcec6823d2b99c40b2ce85ed6581b6c3af3ea Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 19 Oct 2011 14:26:51 -0400 Subject: Make PNG and GL share the same optimizer. --- libdimension/rgba16.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 libdimension/rgba16.h (limited to 'libdimension/rgba16.h') 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 * + * * + * 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 * + * . * + *************************************************************************/ + +/** + * @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); -- cgit v1.2.3