OPJ_UINT32 x1
Xsiz: width of the reference grid.
Definition: openjpeg.h:715
unsigned char OPJ_BYTE
Definition: openjpeg.h:123
void * opj_calloc(size_t num, size_t size)
Allocate a memory block with elements initialized to 0.
Definition: opj_malloc.c:198
OPJ_UINT32 dy
YRsiz: vertical separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:681
OPJ_UINT32 y1
Ysiz: height of the reference grid.
Definition: openjpeg.h:717
OPJ_UINT32 numcomps
number of components in the image
Definition: openjpeg.h:719
static INLINE OPJ_UINT32 opj_uint_ceildiv(OPJ_UINT32 a, OPJ_UINT32 b)
Divide an integer and round upwards.
Definition: opj_intmath.h:170
#define SIZE_MAX
Definition: opj_malloc.c:40
OPJ_INT32 * data
image component data
Definition: openjpeg.h:701
void opj_image_comp_header_update(opj_image_t *p_image, const struct opj_cp *p_cp)
Updates the components characteristics of the image from the coding parameters.
Definition: image.c:121
void *OPJ_CALLCONV opj_image_data_alloc(OPJ_SIZE_T size)
Allocator for opj_image_t->comps[].data To be paired with opj_image_data_free.
Definition: openjpeg.c:1128
Component parameters structure used by the opj_image_create function.
Definition: openjpeg.h:734
OPJ_COLOR_SPACE color_space
color space: sRGB, Greyscale or YUV
Definition: openjpeg.h:721
OPJ_UINT32 y0
y component offset compared to the whole image
Definition: openjpeg.h:746
void opj_copy_image_header(const opj_image_t *p_image_src, opj_image_t *p_image_dest)
Copy only header of image and its component header (no data are copied) if dest image have data,...
Definition: image.c:164
Defines a single image component.
Definition: openjpeg.h:677
Coding parameters.
Definition: j2k.h:351
OPJ_BYTE * icc_profile_buf
'restricted' ICC profile
Definition: openjpeg.h:725
OPJ_UINT32 tdy
YTsiz.
Definition: j2k.h:363
OPJ_UINT32 tx0
XTOsiz.
Definition: j2k.h:357
OPJ_UINT32 tdx
XTsiz.
Definition: j2k.h:361
opj_image_t *OPJ_CALLCONV opj_image_create(OPJ_UINT32 numcmpts, opj_image_cmptparm_t *cmptparms, OPJ_COLOR_SPACE clrspc)
Create an image.
Definition: image.c:40
static INLINE OPJ_UINT32 opj_uint_adds(OPJ_UINT32 a, OPJ_UINT32 b)
Get the saturated sum of two unsigned integers.
Definition: opj_intmath.h:92
size_t OPJ_SIZE_T
Definition: openjpeg.h:139
OPJ_UINT32 x0
x component offset compared to the whole image
Definition: openjpeg.h:687
void OPJ_CALLCONV opj_image_destroy(opj_image_t *image)
Deallocate any resources associated with an image.
Definition: image.c:91
OPJ_UINT32 x0
x component offset compared to the whole image
Definition: openjpeg.h:744
OPJ_UINT32 sgnd
signed (1) / unsigned (0)
Definition: openjpeg.h:695
int32_t OPJ_INT32
Definition: openjpeg.h:131
OPJ_UINT32 th
number of tiles in height
Definition: j2k.h:369
OPJ_UINT32 h
data height
Definition: openjpeg.h:685
opj_image_t * opj_image_create0(void)
Create an empty image.
Definition: image.c:34
OPJ_UINT32 prec
precision: number of bits per component per pixel
Definition: openjpeg.h:691
OPJ_UINT32 y0
YOsiz: vertical offset from the origin of the reference grid to the top side of the image area.
Definition: openjpeg.h:713
OPJ_UINT32 y0
y component offset compared to the whole image
Definition: openjpeg.h:689
static INLINE OPJ_UINT32 opj_uint_min(OPJ_UINT32 a, OPJ_UINT32 b)
Get the minimum of two integers.
Definition: opj_intmath.h:65
static INLINE OPJ_UINT32 opj_uint_max(OPJ_UINT32 a, OPJ_UINT32 b)
Get the maximum of two integers.
Definition: opj_intmath.h:83
void * opj_malloc(size_t size)
Allocate an uninitialized memory block.
Definition: opj_malloc.c:191
void OPJ_CALLCONV opj_image_data_free(void *ptr)
Destructor for opj_image_t->comps[].data To be paired with opj_image_data_alloc.
Definition: openjpeg.c:1135
OPJ_UINT32 sgnd
signed (1) / unsigned (0)
Definition: openjpeg.h:752
void opj_free(void *ptr)
Deallocates or frees a memory block.
Definition: opj_malloc.c:246
OPJ_UINT32 w
data width
Definition: openjpeg.h:740
OPJ_UINT32 w
data width
Definition: openjpeg.h:683
enum COLOR_SPACE OPJ_COLOR_SPACE
Supported image color spaces.
OPJ_UINT32 x0
XOsiz: horizontal offset from the origin of the reference grid to the left side of the image area.
Definition: openjpeg.h:711
static INLINE OPJ_UINT32 opj_uint_ceildivpow2(OPJ_UINT32 a, OPJ_UINT32 b)
Divide an integer by a power of 2 and round upwards.
Definition: opj_intmath.h:198
opj_image_comp_t * comps
image components
Definition: openjpeg.h:723
OPJ_UINT32 icc_profile_len
size of ICC profile
Definition: openjpeg.h:727
opj_image_t *OPJ_CALLCONV opj_image_tile_create(OPJ_UINT32 numcmpts, opj_image_cmptparm_t *cmptparms, OPJ_COLOR_SPACE clrspc)
Creates an image without allocating memory for the image (used in the new version of the library).
Definition: image.c:227
OPJ_UINT32 tw
number of tiles in width
Definition: j2k.h:367
uint32_t OPJ_UINT32
Definition: openjpeg.h:132
OPJ_UINT32 factor
number of division by 2 of the out image compared to the original size of image
Definition: openjpeg.h:699
OPJ_UINT32 dx
XRsiz: horizontal separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:679
OPJ_UINT32 ty0
YTOsiz.
Definition: j2k.h:359
OPJ_UINT32 dx
XRsiz: horizontal separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:736
OPJ_UINT32 h
data height
Definition: openjpeg.h:742
void opj_copy_image_header(const opj_image_t *p_image_src, opj_image_t *p_image_dest)
Copy only header of image and its component header (no data are copied) if dest image have data,...
Definition: image.c:164
void opj_image_comp_header_update(opj_image_t *p_image_header, const struct opj_cp *p_cp)
Updates the components characteristics of the image from the coding parameters.
Definition: image.c:121
OPJ_UINT32 prec
precision: number of bits per component per pixel
Definition: openjpeg.h:748
opj_image_t * opj_image_create0(void)
Create an empty image.
Definition: image.c:34
#define OPJ_CALLCONV
Definition: openjpeg.h:98
OPJ_UINT32 dy
YRsiz: vertical separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:738
Defines image data and characteristics.
Definition: openjpeg.h:709