summaryrefslogtreecommitdiff
path: root/libopenjpeg/openjpeg.h
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2011-11-17 14:21:11 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2011-11-17 14:21:11 +0000
commit8026d0b2e75d390ece184893780fff51dafb8937 (patch)
tree30c8933bdb6bf8daa9d1ef41ed8715867c870d43 /libopenjpeg/openjpeg.h
parentb41cad58cb0dcb0daba15e207b6116acb869c46a (diff)
[trunk] WIP: add a set decoded resolution factor function and update j2k_to_image help about decoded region
Diffstat (limited to 'libopenjpeg/openjpeg.h')
-rw-r--r--libopenjpeg/openjpeg.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/libopenjpeg/openjpeg.h b/libopenjpeg/openjpeg.h
index 3c82498c..a1f3b83a 100644
--- a/libopenjpeg/openjpeg.h
+++ b/libopenjpeg/openjpeg.h
@@ -1277,13 +1277,25 @@ OPJ_API opj_bool OPJ_CALLCONV opj_decode_v2(opj_codec_t *p_decompressor,
* @param p_image output image
* @param tile_index index of the tile which will be decode
*
- * @return a pointer to a JP2 index structure.
+ * @return opj_true if all is ok.
*/
OPJ_API opj_bool OPJ_CALLCONV opj_get_decoded_tile( opj_codec_t *p_codec,
opj_stream_t *p_cio,
opj_image_t *p_image,
OPJ_UINT32 tile_index);
+
+/**
+ * Set the resolution factor of the decoded image
+ * @param p_codec the jpeg2000 codec.
+ * @param res_factor resolution factor to set
+ *
+ * @return opj_true if all is ok.
+ */
+OPJ_API opj_bool OPJ_CALLCONV opj_set_decoded_resolution_factor(opj_codec_t *p_codec, OPJ_UINT32 res_factor);
+
+
+
/**
* Reads a tile header. This function is compulsory and allows one to know the size of the tile thta will be decoded.
* The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile.