From ee154f16bd09a43359967f7e7b86c3677c09461d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 30 Mar 2005 08:30:22 +0200 Subject: rename part 1 -- files --- filter/dctc.h | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 filter/dctc.h (limited to 'filter/dctc.h') diff --git a/filter/dctc.h b/filter/dctc.h deleted file mode 100644 index 8aa6aeb7..00000000 --- a/filter/dctc.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Extend libjpegs error handler to use setjmp/longjmp - */ - -#include - -#include - -struct myerrmgr -{ - struct jpeg_error_mgr super; - jmp_buf jb; - char msg[JMSG_LENGTH_MAX]; -}; - -static void myerrexit(j_common_ptr cinfo) -{ - struct myerrmgr *err = (struct myerrmgr *)cinfo->err; - char msgbuf[JMSG_LENGTH_MAX]; - err->super.format_message(cinfo, msgbuf); - strlcpy(err->msg, msgbuf, sizeof err->msg); - longjmp(err->jb, 1); -} - -static void myoutmess(j_common_ptr cinfo) -{ - struct myerrmgr *err = (struct myerrmgr *)cinfo->err; - char msgbuf[JMSG_LENGTH_MAX]; - err->super.format_message(cinfo, msgbuf); - fprintf(stderr, "ioerror: dct: %s", msgbuf); -} - -static void myiniterr(struct myerrmgr *err) -{ - jpeg_std_error(&err->super); - err->super.error_exit = myerrexit; - err->super.output_message = myoutmess; -} - -- cgit v1.2.3