From 8298fd2b0a976cbf064c04f6a248dbfe124d2cf3 Mon Sep 17 00:00:00 2001 From: Francois-Olivier Devaux Date: Mon, 20 Aug 2007 15:20:42 +0000 Subject: Added support for the TGA file format in the codec --- codec/convert.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'codec/convert.h') diff --git a/codec/convert.h b/codec/convert.h index b2bc16de..98611c66 100644 --- a/codec/convert.h +++ b/codec/convert.h @@ -47,8 +47,12 @@ typedef struct raw_cparameters { /*@}*/ } raw_cparameters_t; -opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters); +/* TGA conversion */ +opj_image_t* tgatoimage(const char *filename, opj_cparameters_t *parameters); +int imagetotga(opj_image_t * image, const char *outfile); +/* BMP conversion */ +opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters); int imagetobmp(opj_image_t *image, const char *outfile); /* TIFF to image conversion*/ @@ -61,15 +65,13 @@ Load a single image component encoded in PGX file format @return Returns a greyscale image if successful, returns NULL otherwise */ opj_image_t* pgxtoimage(const char *filename, opj_cparameters_t *parameters); - int imagetopgx(opj_image_t *image, const char *outfile); opj_image_t* pnmtoimage(const char *filename, opj_cparameters_t *parameters); - int imagetopnm(opj_image_t *image, const char *outfile); +/* RAW conversion */ int imagetoraw(opj_image_t * image, const char *outfile); - opj_image_t* rawtoimage(const char *filename, opj_cparameters_t *parameters, raw_cparameters_t *raw_cp); #endif /* __J2K_CONVERT_H */ -- cgit v1.2.3