void jas_image_destroy(jas_image_t *image)
Deallocate any resources associated with an image.
Definition: jas_image.c:303
jas_image_t * jas_image_create0()
Create an "empty" image.
Definition: jas_image.c:202
#define jas_stream_putc(stream, c)
jas_stream_putc Write a character to a stream.
Definition: jas_stream.h:558
#define jas_image_cmptprec(image, cmptno)
Get the precision of the sample data for a component.
Definition: jas_image.h:427
int_fast32_t jas_image_coord_t
Image coordinate.
Definition: jas_image.h:133
#define jas_image_numcmpts(image)
Get the number of image components.
Definition: jas_image.h:386
#define jas_image_cmptvstep(image, cmptno)
Get the vertical subsampling factor for a component.
Definition: jas_image.h:439
int jas_image_readcmpt(jas_image_t *image, unsigned cmptno, jas_image_coord_t x, jas_image_coord_t y, jas_image_coord_t width, jas_image_coord_t height, jas_matrix_t *data)
Read a rectangular region of an image component.
Definition: jas_image.c:470
int jas_image_addcmpt(jas_image_t *image, int cmptno, const jas_image_cmptparm_t *cmptparm)
Add a component to an image.
Definition: jas_image.c:845
#define jas_image_cmpttly(image, cmptno)
Get the y-coordinate of the top-left corner of a component.
Definition: jas_image.h:451
#define jas_image_cmpthstep(image, cmptno)
Get the horizontal subsampling factor for a component.
Definition: jas_image.h:433
#define jas_stream_error(stream)
Get the error indicator for a stream.
Definition: jas_stream.h:467
#define jas_image_cmptheight(image, cmptno)
Get the height of a component.
Definition: jas_image.h:415
#define jas_image_width(image)
Get the width of the image in units of the image reference grid.
Definition: jas_image.h:346
int jas_image_writecmpt(jas_image_t *image, unsigned cmptno, jas_image_coord_t x, jas_image_coord_t y, jas_image_coord_t width, jas_image_coord_t height, const jas_matrix_t *data)
Write a rectangular region of an image component.
Definition: jas_image.c:570
#define jas_image_setclrspc(image, clrspc)
Set the color model for an image.
Definition: jas_image.h:398
#define jas_stream_getc(stream)
jas_stream_getc Read a character from a stream.
Definition: jas_stream.h:547
JasPer Debugging-Related Functionality.
#define jas_image_cmptwidth(image, cmptno)
Get the width of a component.
Definition: jas_image.h:409
#define jas_image_cmptsgnd(image, cmptno)
Get the signedness of the sample data for a component.
Definition: jas_image.h:421
#define jas_image_clrspc(image)
Get the color model used by the image.
Definition: jas_image.h:392
#define jas_image_cmpttlx(image, cmptno)
Get the x-coordinate of the top-left corner of a component.
Definition: jas_image.h:445
Image class.
Definition: jas_image.h:202
#define jas_image_height(image)
Get the height of the image in units of the image reference grid.
Definition: jas_image.h:352
int jas_image_getcmptbytype(const jas_image_t *image, jas_image_cmpttype_t ctype)
Get an image component by its type.
Definition: jas_image.c:1112
Component parameters class.
Definition: jas_image.h:243