torch / image

An Image toolbox for Torch.
Other
208 stars 141 forks source link

jpeg: auto-detect jpeg_mem_src and jpeg_mem_dest #155

Closed deltheil closed 8 years ago

deltheil commented 8 years ago

If not defined then return a meaningful error at runtime.

This makes it possible to build and use the image package - except the in-memory JPEG compress and decompress operations - on systems that ship with old libjpeg or libjpeg-turbo like Centos 6.x (#152) or Amazon Linux AMI (libjpeg-turbo 1.2.90 at the time of writing).

Later on we can also decide to write replacement functions if we really want to add support for these operations (see this).

soumith commented 8 years ago

excellent. thanks.