- _free
void _free(void* ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
- _free
void _free(void* ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
- _malloc
void* _malloc(size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
- _malloc
void* _malloc(size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
- _realloc
void* _realloc(void* ptr, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
- _realloc
void* _realloc(void* ptr, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
- _write_image
ubyte _write_image(int fmt, Writer* wc, int w, int h, ubyte[] buf, int reqchans)
Undocumented in source. Be warned that the author may not have intended to support it.
- bpc16to8
ubyte[] bpc16to8(ushort[] b16)
Converts a 16-bit buffer to an 8-bit buffer in place.
On error, returns null and frees the original buffer.
- bpc8to16
ushort[] bpc8to16(ubyte[] b8)
Converts an 8-bit buffer to a 16-bit buffer in place.
On error, returns null and frees the original buffer.
- conv16_bgr2y
void conv16_bgr2y(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_bgr2ya
void conv16_bgr2ya(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_bgra2y
void conv16_bgra2y(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_bgra2ya
void conv16_bgra2ya(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_rgb2bgr
void conv16_rgb2bgr(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_rgb2bgra
void conv16_rgb2bgra(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_rgb2rgba
void conv16_rgb2rgba(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_rgb2y
void conv16_rgb2y(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_rgb2ya
void conv16_rgb2ya(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_rgba2bgr
void conv16_rgba2bgr(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_rgba2bgra
void conv16_rgba2bgra(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_rgba2rgb
void conv16_rgba2rgb(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_rgba2y
void conv16_rgba2y(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_rgba2ya
void conv16_rgba2ya(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_y2rgb
void conv16_y2rgb(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_y2rgba
void conv16_y2rgba(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_y2ya
void conv16_y2ya(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_ya2rgb
void conv16_ya2rgb(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_ya2rgba
void conv16_ya2rgba(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv16_ya2y
void conv16_ya2y(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_bgr2y
void conv_bgr2y(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_bgr2ya
void conv_bgr2ya(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_bgra2y
void conv_bgra2y(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_bgra2ya
void conv_bgra2ya(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_rgb2bgr
void conv_rgb2bgr(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_rgb2bgra
void conv_rgb2bgra(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_rgb2rgba
void conv_rgb2rgba(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_rgb2y
void conv_rgb2y(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_rgb2ya
void conv_rgb2ya(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_rgba2bgr
void conv_rgba2bgr(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_rgba2bgra
void conv_rgba2bgra(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_rgba2rgb
void conv_rgba2rgb(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_rgba2y
void conv_rgba2y(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_rgba2ya
void conv_rgba2ya(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_y2rgb
void conv_y2rgb(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_y2rgba
void conv_y2rgba(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_y2ya
void conv_y2ya(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_ya2rgb
void conv_ya2rgb(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_ya2rgba
void conv_ya2rgba(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- conv_ya2y
void conv_ya2y(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- copy
void copy(ubyte[] src, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- copy16
void copy16(ushort[] src, ushort[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- fileflush
int fileflush(void* st)
Undocumented in source. Be warned that the author may not have intended to support it.
- fileread
int fileread(void* st, ubyte* buf, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
- fileseek
int fileseek(void* st, int off)
Undocumented in source. Be warned that the author may not have intended to support it.
- filewrite
int filewrite(void* st, ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
- fillbuf_io
void fillbuf_io(Reader* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
- fillbuf_mem
void fillbuf_mem(Reader* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
- findlast
int findlast(char[] s, char c)
Undocumented in source. Be warned that the author may not have intended to support it.
- flip_vertically
ubyte flip_vertically(int w, int h, int c, ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
- fname2fmt
int fname2fmt(char[] fname)
Undocumented in source. Be warned that the author may not have intended to support it.
- fullflush
ubyte fullflush(Writer* wc)
Undocumented in source. Be warned that the author may not have intended to support it.
- getconv
void* getconv(int sc, int tc, int bpc)
Undocumented in source. Be warned that the author may not have intended to support it.
- init_reader
ubyte init_reader(Reader* rc, Read io, ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
- init_writer
ubyte init_writer(Writer* wc, Write io, ubyte[] iobuf)
Undocumented in source. Be warned that the author may not have intended to support it.
- luminance
ubyte luminance(ubyte r, ubyte g, ubyte b)
Undocumented in source. Be warned that the author may not have intended to support it.
- luminance16
ushort luminance16(ushort r, ushort g, ushort b)
Undocumented in source. Be warned that the author may not have intended to support it.
- morespace
void morespace(Writer* wc)
Undocumented in source. Be warned that the author may not have intended to support it.
- new_buffer
ubyte[] new_buffer(size_t count, ubyte err)
Undocumented in source. Be warned that the author may not have intended to support it.
- new_buffer16
ushort[] new_buffer16(size_t count, ubyte err)
Undocumented in source. Be warned that the author may not have intended to support it.
- read_block
void read_block(Reader* rc, ubyte[] tgt)
Undocumented in source. Be warned that the author may not have intended to support it.
- read_image
IFImage read_image(char[] fname, int c, int bpc)
Reads an image file, detecting its type.
- read_image
IFImage read_image(FILE* f, int c, int bpc)
Reads from f which must already be open. Does not close it afterwards.
- read_image
IFImage read_image(Read io, int c, int bpc)
Reads an image using given io functions.
- read_image
IFImage read_image(ubyte[] buf, int c, int bpc)
- read_info
IFInfo read_info(char[] fname)
Reads basic information about an image.
- read_info
IFInfo read_info(FILE* f)
Reads from f which must already be open. Does not close it afterwards.
- read_info
IFInfo read_info(Read io)
Reads basic information about an image.
- read_info
IFInfo read_info(ubyte[] buf)
Reads basic information about an image.
- read_slice
ubyte[] read_slice(Reader* rc, int maxn)
Undocumented in source. Be warned that the author may not have intended to support it.
- read_u16be
ushort read_u16be(Reader* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
- read_u16le
ushort read_u16le(Reader* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
- read_u32be
uint read_u32be(Reader* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
- read_u32le
uint read_u32le(Reader* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
- read_u8
ubyte read_u8(Reader* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
- reset2start_io
void reset2start_io(Reader* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
- reset2start_mem
void reset2start_mem(Reader* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
- set_yaxis_up_on_load
void set_yaxis_up_on_load(bool up)
Control whether y-axis points up in returned buffers.
- set_yaxis_up_on_save
void set_yaxis_up_on_save(bool up)
Inform writing functions whether y-axis points up in buffers passed to them.
- skip_io
void skip_io(Reader* rc, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
- skip_mem
void skip_mem(Reader* rc, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
- skipto
void skipto(Reader* rc, int pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- weakflush
void weakflush(Writer* wc)
Undocumented in source. Be warned that the author may not have intended to support it.
- write_block
void write_block(Writer* wc, ubyte[] block)
Undocumented in source. Be warned that the author may not have intended to support it.
- write_image
ubyte write_image(char[] fname, int w, int h, ubyte[] buf, int reqchans)
Returns 0 on success, else an error code. Assumes RGB order for color components
in buf, if present. Note: The file will remain even if the write fails.
- write_image
ubyte write_image(int fmt, FILE* f, int w, int h, ubyte[] buf, int reqchans)
Writes to f which must already be open. Does not close it afterwards. Returns 0
on success, else an error code. Assumes RGB order for color components in buf, if
present. Note: The file will remain even if the write fails.
- write_image
ubyte write_image(int fmt, Write io, int w, int h, ubyte[] buf, int reqchans)
Returns 0 on success, else an error code. Assumes RGB order for color components
in buf, if present.
- write_image_mem
ubyte[] write_image_mem(int fmt, int w, int h, ubyte[] buf, int reqchans, int e)
Returns null on error and the error code through e. Assumes RGB order for color
components in buf, if present.
- write_u16le
void write_u16le(Writer* wc, ushort x)
Undocumented in source. Be warned that the author may not have intended to support it.
- write_u32le
void write_u32le(Writer* wc, uint x)
Undocumented in source. Be warned that the author may not have intended to support it.
- write_u8
void write_u8(Writer* wc, ubyte x)
Undocumented in source. Be warned that the author may not have intended to support it.