|  | 
| #define | JAS_IMAGE_MAXFMTS   32 | 
|  | The maximum number of image data formats supported. 
 | 
|  | 
| #define | jas_image_width(image) | 
|  | Get the width of the image in units of the image reference grid. 
 | 
|  | 
| #define | jas_image_height(image) | 
|  | Get the height of the image in units of the image reference grid. 
 | 
|  | 
| #define | jas_image_tlx(image) | 
|  | Get the x-coordinate of the top-left corner of the image bounding box on the reference grid. 
 | 
|  | 
| #define | jas_image_tly(image) | 
|  | Get the y-coordinate of the top-left corner of the image bounding box on the reference grid. 
 | 
|  | 
| #define | jas_image_brx(image) | 
|  | Get the x-coordinate of the bottom-right corner of the image bounding box on the reference grid (plus one). 
 | 
|  | 
| #define | jas_image_bry(image) | 
|  | Get the y-coordinate of the bottom-right corner of the image bounding box on the reference grid (plus one). 
 | 
|  | 
| #define | jas_image_numcmpts(image) | 
|  | Get the number of image components. 
 | 
|  | 
| #define | jas_image_clrspc(image) | 
|  | Get the color model used by the image. 
 | 
|  | 
| #define | jas_image_setclrspc(image,  clrspc) | 
|  | Set the color model for an image. 
 | 
|  | 
| #define | jas_image_cmptwidth(image,  cmptno) | 
|  | Get the width of a component. 
 | 
|  | 
| #define | jas_image_cmptheight(image,  cmptno) | 
|  | Get the height of a component. 
 | 
|  | 
| #define | jas_image_cmptsgnd(image,  cmptno) | 
|  | Get the signedness of the sample data for a component. 
 | 
|  | 
| #define | jas_image_cmptprec(image,  cmptno) | 
|  | Get the precision of the sample data for a component. 
 | 
|  | 
| #define | jas_image_cmpthstep(image,  cmptno) | 
|  | Get the horizontal subsampling factor for a component. 
 | 
|  | 
| #define | jas_image_cmptvstep(image,  cmptno) | 
|  | Get the vertical subsampling factor for a component. 
 | 
|  | 
| #define | jas_image_cmpttlx(image,  cmptno) | 
|  | Get the x-coordinate of the top-left corner of a component. 
 | 
|  | 
| #define | jas_image_cmpttly(image,  cmptno) | 
|  | Get the y-coordinate of the top-left corner of a component. 
 | 
|  | 
| #define | jas_image_cmptbrx(image,  cmptno) | 
|  | Get the x-coordinate of the bottom-right corner of a component (plus "one"). 
 | 
|  | 
| #define | jas_image_cmptbry(image,  cmptno) | 
|  | Get the y-coordinate of the bottom-right corner of a component (plus "one"). 
 | 
|  | 
| #define | jas_image_cmprof(image) | 
|  | Get the color management profile of an image. 
 | 
|  | 
| #define | jas_image_setcmprof(image,  cmprof) | 
|  | Set the color management profile for an image. 
 | 
|  | 
|  | 
| JAS_EXPORT jas_image_t * | jas_image_create (unsigned numcmpts, const jas_image_cmptparm_t *cmptparms, jas_clrspc_t clrspc) | 
|  | Create an image. 
 | 
|  | 
| JAS_EXPORT jas_image_t * | jas_image_create0 (void) | 
|  | Create an "empty" image. 
 | 
|  | 
| JAS_EXPORT jas_image_t * | jas_image_copy (jas_image_t *image) | 
|  | Clone an image. 
 | 
|  | 
| JAS_EXPORT void | jas_image_destroy (jas_image_t *image) | 
|  | Deallocate any resources associated with an image. 
 | 
|  | 
| JAS_ATTRIBUTE_PURE JAS_EXPORT bool | jas_image_cmpt_domains_same (const jas_image_t *image) | 
|  | Test if all components are specified at the same positions in space. 
 | 
|  | 
| JAS_ATTRIBUTE_PURE JAS_EXPORT uint_fast32_t | jas_image_rawsize (const jas_image_t *image) | 
|  | Get the raw size of an image (i.e., the nominal size of the image without any compression. 
 | 
|  | 
| JAS_EXPORT jas_image_t * | jas_image_decode (jas_stream_t *in, int fmt, const char *optstr) | 
|  | Create an image from a stream in some specified format. 
 | 
|  | 
| JAS_EXPORT int | jas_image_encode (jas_image_t *image, jas_stream_t *out, int fmt, const char *optstr) | 
|  | Write an image to a stream in a specified format. 
 | 
|  | 
| JAS_EXPORT 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. 
 | 
|  | 
| JAS_EXPORT 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. 
 | 
|  | 
| JAS_EXPORT void | jas_image_delcmpt (jas_image_t *image, unsigned cmptno) | 
|  | Delete a component from an image. 
 | 
|  | 
| JAS_EXPORT int | jas_image_addcmpt (jas_image_t *image, int cmptno, const jas_image_cmptparm_t *cmptparm) | 
|  | Add a component to an image. 
 | 
|  | 
| JAS_EXPORT int | jas_image_copycmpt (jas_image_t *dstimage, unsigned dstcmptno, jas_image_t *srcimage, unsigned srccmptno) | 
|  | Copy a component from one image to another. 
 | 
|  | 
| JAS_EXPORT int | jas_image_depalettize (jas_image_t *image, unsigned cmptno, unsigned numlutents, const int_fast32_t *lutents, unsigned dtype, unsigned newcmptno) | 
|  | Depalettize an image. 
 | 
|  | 
| JAS_EXPORT int | jas_image_readcmptsample (jas_image_t *image, unsigned cmptno, unsigned x, unsigned y) | 
|  | Read a component sample for an image. 
 | 
|  | 
| JAS_EXPORT void | jas_image_writecmptsample (jas_image_t *image, unsigned cmptno, unsigned x, unsigned y, int_fast32_t v) | 
|  | Write a component sample for an image. 
 | 
|  | 
| JAS_ATTRIBUTE_PURE JAS_EXPORT int | jas_image_getcmptbytype (const jas_image_t *image, jas_image_cmpttype_t ctype) | 
|  | Get an image component by its type. 
 | 
|  | 
| JAS_EXPORT void | jas_image_clearfmts (void) | 
|  | Clear the table of image formats. 
 | 
|  | 
| JAS_EXPORT const jas_image_fmtinfo_t * | jas_image_getfmtbyind (int index) | 
|  | Get a image format entry by its table index. 
 | 
|  | 
| JAS_EXPORT int | jas_image_getnumfmts (void) | 
|  | Get the number of image format table entries. 
 | 
|  | 
| JAS_EXPORT int | jas_image_setfmtenable (int index, int enabled) | 
|  | Get the number of image format table entries. 
 | 
|  | 
| JAS_EXPORT int | jas_image_addfmt (int id, const char *name, const char *ext, const char *desc, const jas_image_fmtops_t *ops) | 
|  | Add entry to table of image formats. 
 | 
|  | 
| JAS_ATTRIBUTE_PURE JAS_EXPORT int | jas_image_strtofmt (const char *s) | 
|  | Get the ID for the image format with the specified name. 
 | 
|  | 
| JAS_ATTRIBUTE_CONST JAS_EXPORT const char * | jas_image_fmttostr (int fmt) | 
|  | Get the name of the image format with the specified ID. 
 | 
|  | 
| JAS_ATTRIBUTE_CONST JAS_EXPORT const jas_image_fmtinfo_t * | jas_image_lookupfmtbyid (int id) | 
|  | Lookup image format information by the format ID. 
 | 
|  | 
| JAS_ATTRIBUTE_PURE JAS_EXPORT const jas_image_fmtinfo_t * | jas_image_lookupfmtbyname (const char *name) | 
|  | Lookup image format information by the format name. 
 | 
|  | 
| JAS_ATTRIBUTE_PURE JAS_EXPORT int | jas_image_fmtfromname (const char *filename) | 
|  | Guess the format of an image file based on its name. 
 | 
|  | 
| JAS_ATTRIBUTE_PURE JAS_EXPORT int | jas_image_getfmt (jas_stream_t *in) | 
|  | Get the format of image data in a stream. 
 | 
|  | 
| JAS_ATTRIBUTE_PURE JAS_EXPORT int | jas_image_ishomosamp (const jas_image_t *image) | 
|  | Test if the sampling of the image is homogeneous. 
 | 
|  | 
| JAS_EXPORT int | jas_image_sampcmpt (jas_image_t *image, unsigned cmptno, unsigned newcmptno, jas_image_coord_t ho, jas_image_coord_t vo, jas_image_coord_t hs, jas_image_coord_t vs, int sgnd, unsigned prec) | 
|  | ??? 
 | 
|  | 
| JAS_EXPORT int | jas_image_writecmpt2 (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 long *buf) | 
|  | Write sample data in a component of an image. 
 | 
|  | 
| JAS_EXPORT int | jas_image_readcmpt2 (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, long *buf) | 
|  | Read sample data in a component of an image. 
 | 
|  | 
| JAS_EXPORT jas_image_t * | jas_image_chclrspc (jas_image_t *image, const jas_cmprof_t *outprof, jas_cmxform_intent_t intent) | 
|  | Change the color space for an image. 
 | 
|  | 
| JAS_EXPORT int | jas_image_dump (jas_image_t *image, FILE *out) | 
|  | Dump the information for an image (for debugging). 
 | 
|  |