diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2010-03-26 15:46:17 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2010-03-26 15:46:17 +0000 |
| commit | 3e4b0ee509b3669f67cc1b2d7b00825e91aa9106 (patch) | |
| tree | de75aa18e864afec943586fa3b6c78c8a9a90a9c /codec/convert.h | |
| parent | 54214fb65fdc7af6b505ed0b924ea5d44d861ebf (diff) | |
Added support for PNG image format [Not yet functional under WIN32]. Thanks to Winfried for this patch. See details here http://code.google.com/p/openjpeg/issues/detail?id=16
Diffstat (limited to 'codec/convert.h')
| -rw-r--r-- | codec/convert.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/codec/convert.h b/codec/convert.h index 98611c66..1dc58d72 100644 --- a/codec/convert.h +++ b/codec/convert.h @@ -55,7 +55,7 @@ int imagetotga(opj_image_t * image, const char *outfile); opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters); int imagetobmp(opj_image_t *image, const char *outfile); -/* TIFF to image conversion*/ +/* TIFF conversion*/ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters); int imagetotif(opj_image_t *image, const char *outfile); /** @@ -74,5 +74,9 @@ int imagetopnm(opj_image_t *image, const char *outfile); 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); +/* PNG conversion*/ +extern int imagetopng(opj_image_t *image, const char *write_idf); +extern opj_image_t* pngtoimage(const char *filename, opj_cparameters_t *parameters); + #endif /* __J2K_CONVERT_H */ |
