void jas_image_destroy(jas_image_t *image)
Deallocate any resources associated with an image.
Definition: jas_image.c:303
int jas_stream_printf(jas_stream_t *stream, const char *fmt,...)
Write formatted output to a stream.
Definition: jas_stream.c:781
#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
#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
#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
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
jas_image_t * jas_image_create(unsigned numcmpts, const jas_image_cmptparm_t *cmptparms, jas_clrspc_t clrspc)
Create an image.
Definition: jas_image.c:127
#define jas_image_cmptsgnd(image, cmptno)
Get the signedness of the sample data for a component.
Definition: jas_image.h:421
unsigned jas_stream_peek(jas_stream_t *stream, void *buf, size_t cnt)
Attempt to retrieve one or more pending characters of input from a stream into a buffer without actua...
Definition: jas_stream.c:720
#define jas_image_clrspc(image)
Get the color model used by the image.
Definition: jas_image.h:392
int jas_stream_flush(jas_stream_t *stream)
Flush any pending output to a stream.
Definition: jas_stream.c:1001
#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
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