X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fopenjpip%2Fimgreg_manager.h;h=6963467313a95f921cae8dd695804dcd172a97cb;hb=aaff099b49365cfecfc475ada48b9244c6eefc9c;hp=8cd73e34b343bfc3be5bb136ae88dc9cd4e58f4c;hpb=759be64115508e4589c098c5e777d03a1a04bb25;p=openjpeg.git diff --git a/src/lib/openjpip/imgreg_manager.h b/src/lib/openjpip/imgreg_manager.h index 8cd73e34..69634673 100644 --- a/src/lib/openjpip/imgreg_manager.h +++ b/src/lib/openjpip/imgreg_manager.h @@ -1,8 +1,8 @@ /* * $Id$ * - * Copyright (c) 2002-2011, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium - * Copyright (c) 2002-2011, Professor Benoit Macq + * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium + * Copyright (c) 2002-2014, Professor Benoit Macq * Copyright (c) 2010-2011, Kaori Hagihara * All rights reserved. * @@ -28,17 +28,17 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef IMGREG_MANAGER_H_ -# define IMGREG_MANAGER_H_ +#ifndef IMGREG_MANAGER_H_ +# define IMGREG_MANAGER_H_ /** image region parameters */ -typedef struct imgreg_param{ - int xosiz, yosiz; /** offset from the origin of the reference grid - at the decomposition level */ - int fx, fy; /** frame size (fsiz) */ - int ox, oy; /** offset (roff) */ - int sx, sy; /** region size (rsiz) */ - int level; /** decomposition level */ +typedef struct imgreg_param { + int xosiz, yosiz; /** offset from the origin of the reference grid + at the decomposition level */ + int fx, fy; /** frame size (fsiz) */ + int ox, oy; /** offset (roff) */ + int sx, sy; /** region size (rsiz) */ + int level; /** decomposition level */ } imgreg_param_t; @@ -53,12 +53,12 @@ typedef struct imgreg_param{ * @param[in] numOfreslev number of resolution levels * @return structure of image region parameters */ -imgreg_param_t map_viewin2imgreg( const int fx, const int fy, - const int rx, const int ry, - const int rw, const int rh, - const int XOsiz, const int YOsiz, - const int Xsiz, const int Ysiz, - const int numOfreslev); +imgreg_param_t map_viewin2imgreg(const int fx, const int fy, + const int rx, const int ry, + const int rw, const int rh, + const int XOsiz, const int YOsiz, + const int Xsiz, const int Ysiz, + const int numOfreslev); /** @@ -76,7 +76,8 @@ imgreg_param_t map_viewin2imgreg( const int fx, const int fy, * @param[in,out] xmax horizontal image size pointer * @param[in,out] ymax vertical image size pointer */ -void find_level( int maxlev, int *lev, int *fx, int *fy, int *xmin, int *ymin, int *xmax, int *ymax); +void find_level(int maxlev, int *lev, int *fx, int *fy, int *xmin, int *ymin, + int *xmax, int *ymax); /** * compute decomposition level (only to get the level @@ -88,14 +89,14 @@ void find_level( int maxlev, int *lev, int *fx, int *fy, int *xmin, int *ymin, i * @param[in] Ysiz image height * @return decomposition level */ -int comp_decomplev( int fw, int fh, int Xsiz, int Ysiz); +int comp_decomplev(int fw, int fh, int Xsiz, int Ysiz); /** * print image region parameters * * @param[in] imgreg image region structure of parameters */ -void print_imgreg( imgreg_param_t imgreg); +void print_imgreg(imgreg_param_t imgreg); -#endif /* !IMGREG_MANAGER_H_ */ +#endif /* !IMGREG_MANAGER_H_ */