summaryrefslogtreecommitdiff
path: root/codec/convert.h
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-07-17 16:19:41 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-07-17 16:19:41 +0000
commitb7ce19709df0b304c1c8b0116b617208992b3a32 (patch)
treee3fec8768b8fd8d99f0c302c6631241f190f78f8 /codec/convert.h
parent5dec8bbbe9eb29454d0b1721ff137a9f98752449 (diff)
Added support for RAW images. This module has been developped by the University of Perugia team. Thanks to them !
Diffstat (limited to 'codec/convert.h')
-rw-r--r--codec/convert.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/codec/convert.h b/codec/convert.h
index 68aed4b3..b2bc16de 100644
--- a/codec/convert.h
+++ b/codec/convert.h
@@ -31,6 +31,22 @@
#ifndef __J2K_CONVERT_H
#define __J2K_CONVERT_H
+/**@name RAW image encoding parameters */
+/*@{*/
+typedef struct raw_cparameters {
+ /** width of the raw image */
+ int rawWidth;
+ /** height of the raw image */
+ int rawHeight;
+ /** components of the raw image */
+ int rawComp;
+ /** bit depth of the raw image */
+ int rawBitDepth;
+ /** signed/unsigned raw image */
+ bool rawSigned;
+ /*@}*/
+} raw_cparameters_t;
+
opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters);
int imagetobmp(opj_image_t *image, const char *outfile);
@@ -52,5 +68,9 @@ opj_image_t* pnmtoimage(const char *filename, opj_cparameters_t *parameters);
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);
+
#endif /* __J2K_CONVERT_H */