2004-01-15 05:26:47 +08:00
|
|
|
/*
|
|
|
|
* ZoneMinder Jpeg Interface, $Date$, $Revision$
|
2005-02-24 22:40:14 +08:00
|
|
|
* Copyright (C) 2003, 2004, 2005 Philip Coombes
|
2004-01-15 05:26:47 +08:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2005-10-18 05:45:06 +08:00
|
|
|
#include <setjmp.h>
|
|
|
|
|
2004-01-15 05:26:47 +08:00
|
|
|
#include "jinclude.h"
|
|
|
|
#include "jpeglib.h"
|
|
|
|
#include "jerror.h"
|
|
|
|
|
2005-10-18 05:45:06 +08:00
|
|
|
/* Stuff for overriden error handlers */
|
|
|
|
struct zm_error_mgr
|
|
|
|
{
|
|
|
|
struct jpeg_error_mgr pub;
|
|
|
|
jmp_buf setjmp_buffer;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct zm_error_mgr *zm_error_ptr;
|
|
|
|
|
|
|
|
void zm_jpeg_error_exit( j_common_ptr cinfo );
|
2005-11-20 02:31:59 +08:00
|
|
|
void zm_jpeg_emit_message( j_common_ptr cinfo, int msg_level );
|
2005-10-18 05:45:06 +08:00
|
|
|
|
2004-06-30 22:32:45 +08:00
|
|
|
// Prototypes for memory compress/decompression object */
|
2004-01-15 05:26:47 +08:00
|
|
|
void jpeg_mem_src(j_decompress_ptr cinfo, JOCTET *inbuffer, int inbuffer_size );
|
|
|
|
void jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size );
|