* Changed how jpeg is written to file
Removed redundant code, put jpeg to memory and then write to file using fwrite
* Similar reuse of function put_jpeg_grey_memory
* Add jpeg error handler to put_jpeg_yuv420p_memory
Handlers copied from jpegutils.c
* Too much copied, removing extra line
* Similar changes to grey jpeg code
* Moved jpeg related functions from picture.c to jpegutils.c
* Fix for travis: unused parameter
* Few more unnecessary code removed from picture.c
* Fix for travis: no previous prototype
* Adjust function names and headers
* Move setjmp invocation back into decoding function.
Behavior is undefined if longjmp is called after the function containing
setjmp invocation has terminated.
* Revert "Add error checking on jpeg utils (#563)"
This is dead code because longjmp invocation ensures control is returned
to the existing error path.
This reverts commit caea41df75.
* Silence spurious gcc 4.8.4 warning.
The previous version of jpegutils.c was performing the downsampling of images manually
This commit rewrites the decompression to take advantage of the built in downsampling
and image color space conversion that is part of the JPEG libaries.
This function is currently only called from the vid_mjpegtoyuv420p routine.