3dphotoshoot

annotate libs/imago/ftype_module.h @ 16:c6952cc82cca

asset manager, android version
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 09 Jun 2015 18:38:33 +0300
parents
children
rev   line source
nuclear@14 1 /*
nuclear@14 2 libimago - a multi-format image file input/output library.
nuclear@14 3 Copyright (C) 2010 John Tsiombikas <nuclear@member.fsf.org>
nuclear@14 4
nuclear@14 5 This program is free software: you can redistribute it and/or modify
nuclear@14 6 it under the terms of the GNU Lesser General Public License as published
nuclear@14 7 by the Free Software Foundation, either version 3 of the License, or
nuclear@14 8 (at your option) any later version.
nuclear@14 9
nuclear@14 10 This program is distributed in the hope that it will be useful,
nuclear@14 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
nuclear@14 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
nuclear@14 13 GNU Lesser General Public License for more details.
nuclear@14 14
nuclear@14 15 You should have received a copy of the GNU Lesser General Public License
nuclear@14 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
nuclear@14 17 */
nuclear@14 18
nuclear@14 19 #ifndef FTYPE_MODULE_H_
nuclear@14 20 #define FTYPE_MODULE_H_
nuclear@14 21
nuclear@14 22 #include "imago2.h"
nuclear@14 23
nuclear@14 24 struct ftype_module {
nuclear@14 25 char *suffix; /* used for format autodetection during saving only */
nuclear@14 26
nuclear@14 27 int (*check)(struct img_io *io);
nuclear@14 28 int (*read)(struct img_pixmap *img, struct img_io *io);
nuclear@14 29 int (*write)(struct img_pixmap *img, struct img_io *io);
nuclear@14 30 };
nuclear@14 31
nuclear@14 32 int img_register_module(struct ftype_module *mod);
nuclear@14 33
nuclear@14 34 struct ftype_module *img_find_format_module(struct img_io *io);
nuclear@14 35 struct ftype_module *img_guess_format(const char *fname);
nuclear@14 36 struct ftype_module *img_get_module(int idx);
nuclear@14 37
nuclear@14 38
nuclear@14 39 #endif /* FTYPE_MODULE_H_ */