diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-02-19 09:59:29 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-02-19 09:59:29 +0000 |
| commit | eac141b69aea8840ccd8dfa5285f1cab5b59d5eb (patch) | |
| tree | 291504a63413f5ac52bd9fd1485947d58a6bc525 /libopenjpeg/openjpeg.h | |
| parent | d084ff59f2da8bfa430d113105df1037fb1c605f (diff) | |
Added OPJ_LIMIT_DECODING enabling us to limit the decoding to main header
Diffstat (limited to 'libopenjpeg/openjpeg.h')
| -rw-r--r-- | libopenjpeg/openjpeg.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libopenjpeg/openjpeg.h b/libopenjpeg/openjpeg.h index 39290106..8e9da446 100644 --- a/libopenjpeg/openjpeg.h +++ b/libopenjpeg/openjpeg.h @@ -143,6 +143,14 @@ typedef enum CODEC_FORMAT { CODEC_JP2 = 2 /**< JPEG-2000 file format : read/write */ } OPJ_CODEC_FORMAT; +/** +Limit decoding to certain portions of the codestream. +*/ +typedef enum LIMIT_DECODING { + NO_LIMITATION = 0, /**< No limitation for the decoding. The entire codestream will de decoded */ + LIMIT_TO_MAIN_HEADER = 1 /**< The decoding is limited to the Main Header */ +} OPJ_LIMIT_DECODING; + /* ========================================================== event manager typedef definitions @@ -331,6 +339,14 @@ typedef struct opj_dparameters { */ int cp_layer; + /** + Specify whether the decoding should be done on the entire codestream, or be limited to the main header + Limiting the decoding to the main header makes it possible to extract the characteristics of the codestream + if == NO_LIMITATION, the entire codestream is decoded; + if == LIMIT_TO_MAIN_HEADER, only the main header is decoded; + */ + OPJ_LIMIT_DECODING cp_limit_decoding; + /**@name command line encoder parameters (not used inside the library) */ /*@{*/ /** input file name */ |
