Files
motion/jpegutils.h
void-user fcc66b8c91 Setjmp fixes for jpegutils.c (#650)
* 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.
2018-02-12 21:41:55 -07:00

19 lines
510 B
C

/*
* jpegutils.h: Some Utility programs for dealing with
* JPEG encoded images
*
* Copyright (C) 1999 Rainer Johanni <Rainer@Johanni.de>
* Copyright (C) 2001 pHilipp Zabel <pzabel@gmx.de>
* Copyright (C) 2008 Angel Carpintero <motiondevelop@gmail.com>
*
*/
#ifndef __JPEGUTILS_H__
#define __JPEGUTILS_H__
int jpgutl_decode_jpeg (unsigned char *jpeg_data_in, int jpeg_data_len,
unsigned int width, unsigned int height, unsigned char *volatile img_out);
#endif