mirror of
https://github.com/Motion-Project/motion.git
synced 2026-01-23 06:09:05 -05:00
* 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.
19 lines
510 B
C
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
|