diff options
| author | Antonin Descampe <antonin@gmail.com> | 2014-03-26 14:26:49 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2014-03-26 14:26:49 +0000 |
| commit | f1d69068c7d677a3e9c8c0963904cae80ce22ca0 (patch) | |
| tree | 339f66cb175f0e4c222e5667a7ea3605fc944e00 /src/bin/jp2/convert.h | |
| parent | ee130e23066251776dc64529a5c0d885934dee78 (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.h | 22 |
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; |
