summaryrefslogtreecommitdiff
path: root/codec/convert.h
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-08-20 15:20:42 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-08-20 15:20:42 +0000
commit8298fd2b0a976cbf064c04f6a248dbfe124d2cf3 (patch)
tree29ec6eb35f636a60ca5fe3da2d8279f6687ab525 /codec/convert.h
parent7dcb817e6acf9ec78a1bf09dfa9b188dd18e68b6 (diff)
Added support for the TGA file format in the codec
Diffstat (limited to 'codec/convert.h')
-rw-r--r--codec/convert.h10
1 files changed, 6 insertions, 4 deletions
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 */