The OpenD Programming Language

decompress_jpeg_image_from_stream

decompress JPEG image, what else? 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. Returns pixelAspectRatio and dotsPerInchY, -1 if not available.

version(decodeJPEG)
nothrow @nogc
ubyte[]
decompress_jpeg_image_from_stream
(,
void* userData
,
out int width
,
out int height
,
out int actual_comps
,,
out float dotsPerInchY
,
int req_comps = -1
)

Meta