decompress_jpeg_image_from_memory

decompress JPEG image from memory buffer. you can specify required color components in req_comps (3 for RGB or 4 for RGBA), or leave it as is to use image value.

ubyte[]
decompress_jpeg_image_from_memory
(
bool useMalloc = false
)
(
const(void)[] buf
,
out int width
,
out int height
,
out int actual_comps
,
int req_comps = -1
)

Meta