OPJ_UINT32 x1
Xsiz: width of the reference grid.
Definition: openjpeg.h:675
unsigned char OPJ_BYTE
Definition: openjpeg.h:117
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:641
OPJ_UINT32 y1
Ysiz: height of the reference grid.
Definition: openjpeg.h:677
OPJ_UINT32 numcomps
number of components in the image
Definition: openjpeg.h:679
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:661
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:122
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:1054
Component parameters structure used by the opj_image_create function.
Definition: openjpeg.h:694
OPJ_UINT32 bpp
image depth in bits
Definition: openjpeg.h:710
OPJ_COLOR_SPACE color_space
color space: sRGB, Greyscale or YUV
Definition: openjpeg.h:681
OPJ_UINT32 y0
y component offset compared to the whole image
Definition: openjpeg.h:706
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:165
Defines a single image component.
Definition: openjpeg.h:637
Coding parameters.
Definition: j2k.h:347
OPJ_BYTE * icc_profile_buf
'restricted' ICC profile
Definition: openjpeg.h:685
OPJ_UINT32 tdy
YTsiz.
Definition: j2k.h:359
OPJ_UINT32 tx0
XTOsiz.
Definition: j2k.h:353
OPJ_UINT32 tdx
XTsiz.
Definition: j2k.h:357
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:133
OPJ_UINT32 x0
x component offset compared to the whole image
Definition: openjpeg.h:647
void OPJ_CALLCONV opj_image_destroy(opj_image_t *image)
Deallocate any resources associated with an image.
Definition: image.c:92
OPJ_UINT32 x0
x component offset compared to the whole image
Definition: openjpeg.h:704
OPJ_UINT32 sgnd
signed (1) / unsigned (0)
Definition: openjpeg.h:655
int32_t OPJ_INT32
Definition: openjpeg.h:125
OPJ_UINT32 th
number of tiles in height
Definition: j2k.h:365
OPJ_UINT32 h
data height
Definition: openjpeg.h:645
opj_image_t * opj_image_create0(void)
Create an empty image.
Definition: image.c:34
OPJ_UINT32 prec
precision
Definition: openjpeg.h:651
OPJ_UINT32 y0
YOsiz: vertical offset from the origin of the reference grid to the top side of the image area.
Definition: openjpeg.h:673
OPJ_UINT32 y0
y component offset compared to the whole image
Definition: openjpeg.h:649
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:1061
OPJ_UINT32 sgnd
signed (1) / unsigned (0)
Definition: openjpeg.h:712
void opj_free(void *ptr)
Deallocates or frees a memory block.
Definition: opj_malloc.c:246
OPJ_UINT32 w
data width
Definition: openjpeg.h:700
OPJ_UINT32 w
data width
Definition: openjpeg.h:643
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:671
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:683
OPJ_UINT32 icc_profile_len
size of ICC profile
Definition: openjpeg.h:687
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:228
OPJ_UINT32 bpp
image depth in bits
Definition: openjpeg.h:653
OPJ_UINT32 tw
number of tiles in width
Definition: j2k.h:363
uint32_t OPJ_UINT32
Definition: openjpeg.h:126
OPJ_UINT32 factor
number of division by 2 of the out image compared to the original size of image
Definition: openjpeg.h:659
OPJ_UINT32 dx
XRsiz: horizontal separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:639
OPJ_UINT32 ty0
YTOsiz.
Definition: j2k.h:355
OPJ_UINT32 dx
XRsiz: horizontal separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:696
OPJ_UINT32 h
data height
Definition: openjpeg.h:702
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:165
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:122
OPJ_UINT32 prec
precision
Definition: openjpeg.h:708
opj_image_t * opj_image_create0(void)
Create an empty image.
Definition: image.c:34
#define OPJ_CALLCONV
Definition: openjpeg.h:92
OPJ_UINT32 dy
YRsiz: vertical separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:698
Defines image data and characteristics.
Definition: openjpeg.h:669