diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-06-09 14:56:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-12 16:13:30 +0300 |
commit | f12204196fb1ee985ab9745cf9c70877601145f9 (patch) | |
tree | 9a0ea8bb9eaa869a9e4b9c74b80f8dd5b86b0394 /extern/libopenjpeg/image.h | |
parent | 57983012913f98056315dd3fb03552f5d75258d7 (diff) |
OpenJPEG: update to 2.1 from 1.5
Stream handling has changed so this required changes to how files & memory are accessed.
Diffstat (limited to 'extern/libopenjpeg/image.h')
-rw-r--r-- | extern/libopenjpeg/image.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/extern/libopenjpeg/image.h b/extern/libopenjpeg/image.h index f828b5b77c8..e0e2772d406 100644 --- a/extern/libopenjpeg/image.h +++ b/extern/libopenjpeg/image.h @@ -1,4 +1,9 @@ /* + * The copyright in this software is being made available under the 2-clauses + * BSD License, included below. This software may be subject to other third + * party and contributor rights, including patent rights, and no such rights + * are granted under this license. + * * Copyright (c) 2005, Herve Drolon, FreeImage Team * All rights reserved. * @@ -32,16 +37,31 @@ The functions in IMAGE.C have for goal to realize operations on images. */ +struct opj_image; +struct opj_cp; + /** @defgroup IMAGE IMAGE - Implementation of operations on images */ /*@{*/ /** -Create an empty image -@todo this function should be removed -@return returns an empty image if successful, returns NULL otherwise -*/ + * Create an empty image + * + * @return returns an empty image if successful, returns NULL otherwise + */ opj_image_t* opj_image_create0(void); + + +/** + * Updates the components characteristics of the image from the coding parameters. + * + * @param p_image_header the image header to update. + * @param p_cp the coding parameters from which to update the image. + */ +void opj_image_comp_header_update(opj_image_t * p_image, const struct opj_cp* p_cp); + +void opj_copy_image_header(const opj_image_t* p_image_src, opj_image_t* p_image_dest); + /*@}*/ #endif /* __IMAGE_H */ |