[trunk] add ability in opj_compress to input subsampled images through
[openjpeg.git] / src / bin / jp2 / convert.h
index 11bc31eefce5df20d722e396ef5e70b5179bccc6..360d92936930922cf953e695fa010abc3f966dd6 100644 (file)
 #ifndef __J2K_CONVERT_H
 #define __J2K_CONVERT_H
 
+/**@name RAW component encoding parameters */
+/*@{*/
+typedef struct raw_comp_cparameters {
+    /** subsampling in X direction */
+    int dx;
+    /** subsampling in Y direction */
+    int dy;
+    /*@}*/
+} raw_comp_cparameters_t;
+
 /**@name RAW image encoding parameters */
 /*@{*/
 typedef struct raw_cparameters {
@@ -38,12 +48,14 @@ typedef struct raw_cparameters {
        int rawWidth;
        /** height of the raw image */
        int rawHeight;
-       /** components of the raw image */
+    /** number of components of the raw image */
        int rawComp;
-       /** bit depth of the raw image */
-       int rawBitDepth;
-       /** signed/unsigned raw image */
-       OPJ_BOOL rawSigned;
+    /** bit depth of the raw image */
+    int rawBitDepth;
+    /** signed/unsigned raw image */
+    OPJ_BOOL rawSigned;
+    /** raw components parameters */
+    raw_comp_cparameters_t *rawComps;
        /*@}*/
 } raw_cparameters_t;