summaryrefslogtreecommitdiff
path: root/src/bin/jp2/convert.h
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2014-03-26 14:26:49 +0000
committerAntonin Descampe <antonin@gmail.com>2014-03-26 14:26:49 +0000
commitf1d69068c7d677a3e9c8c0963904cae80ce22ca0 (patch)
tree339f66cb175f0e4c222e5667a7ea3605fc944e00 /src/bin/jp2/convert.h
parentee130e23066251776dc64529a5c0d885934dee78 (diff)
[trunk] add ability in opj_compress to input subsampled images through
'-F' (aka raw option). Let the user input raw images with 444, 422, 420 (etc) subsampling. To be used in conjunction with '-mct 0' option to compress subsampled YCC images.
Diffstat (limited to 'src/bin/jp2/convert.h')
-rw-r--r--src/bin/jp2/convert.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/bin/jp2/convert.h b/src/bin/jp2/convert.h
index 11bc31ee..360d9293 100644
--- a/src/bin/jp2/convert.h
+++ b/src/bin/jp2/convert.h
@@ -31,6 +31,16 @@
#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;