JWS C Library
C language utility library
|
JWS image file format. More...
#include <jwsc/config.h>
#include <stdlib.h>
#include "jwsc/base/error.h"
#include "jwsc/image/image.h"
Go to the source code of this file.
Data Structures | |
struct | JIFF_attributes |
Attributes for a JIFF image. More... | |
Enumerations | |
enum | JIFF_colorspace { JIFF_GRAY, JIFF_RGB } |
Colorspace for a JIFF image. More... | |
enum | JIFF_depth { JIFF_8_BIT, JIFF_16_BIT, JIFF_32_BIT } |
Depth for colorspace channels. More... | |
enum | JIFF_type { JIFF_INTEGER, JIFF_FLOAT } |
Channel type. More... | |
Functions | |
void | init_jiff_attributes (JIFF_attributes *attrs) |
Initializes a JIFF_attributes with defaults values. | |
Error * | read_image_as_jiff_f (Image_f **img_out, const char *fname) |
Reads an Image_f from a JIFF image file. | |
Error * | write_image_as_jiff_f (const Image_f *img, const char *fname, const JIFF_attributes *attrs) |
Writes an Image_f to a JIFF image file. |
JWS image file format.
Specifies an integer or floating point image with grayscale or RGB channels.
Definition in file jiff.h.
enum JIFF_colorspace |
enum JIFF_depth |
enum JIFF_type |
void init_jiff_attributes | ( | JIFF_attributes * | attrs | ) |
Initializes a JIFF_attributes with defaults values.
attrs | Attributes to initialize. |
Reads an Image_f from a JIFF image file.
img_out | Result parameter. If *img_out is NULL, an image is allocated; otherwise its space is re-used. |
fname | Name of the image file to read. |
Error* write_image_as_jiff_f | ( | const Image_f * | img, |
const char * | fname, | ||
const JIFF_attributes * | attrs | ||
) |