imageformats.jpeg

Members

Functions

read_jpeg
IFImage read_jpeg(in char[] filename, long req_chans = 0)

Reads a JPEG image. req_chans defines the format of returned image (you can use ColFmt here).

read_jpeg_from_mem
IFImage read_jpeg_from_mem(in ubyte[] source, long req_chans = 0)

Reads an image from a buffer containing a JPEG image. req_chans defines the format of returned image (you can use ColFmt here).

read_jpeg_info
void read_jpeg_info(in char[] filename, out int w, out int h, out int chans)

Returns width, height and color format information via w, h and chans.

read_jpeg_info_from_mem
void read_jpeg_info_from_mem(in ubyte[] source, out int w, out int h, out int chans)

Returns width, height and color format information via w, h and chans.

Meta