📄 jerror.h
字号:
/* Copyright 2000, ESS Technology, Inc. *//* SCCSID @(#)jerror.h 1.2 01/22/02 *//* Based on DVD/SVCD version 1.5 05/30/01 *//* $Id$ *//* * $Log$ *//* * jerror.h * * Copyright (C) 1994-1995, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file defines the error and message codes for the JPEG library. * Edit this file to add new codes, or to translate the message strings to * some other language. * A set of error-reporting macros are defined too. Some applications using * the JPEG library may wish to include this file to get the error codes * and/or the macros. *//* * To define the enum list of message codes, include this file without * defining macro JMESSAGE. To create a message string table, include it * again with a suitable JMESSAGE definition (see jerror.c for an example). */#ifndef JMESSAGE#ifndef JERROR_H/* First time through, define the enum list */#define JMAKE_ENUM_LIST#else/* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */#define JMESSAGE(code,string)#endif /* JERROR_H */#endif /* JMESSAGE */#ifdef JMAKE_ENUM_LISTtypedef enum {#define JMESSAGE(code,string) code ,#endif /* JMAKE_ENUM_LIST */JMESSAGE(JMSG_NOMESSAGE, "Bogus message code %d") /* Must be first entry! *//* DVD Error Messages */JMESSAGE(JERR_CORRUPT_DATA, "Corrupt JPEG data: bad Huffman code")JMESSAGE(JERR_OUT_OF_MEMORY, "Insufficient memory (compsize %d)")JMESSAGE(JERR_COMPONENT_COUNT, "Too many color components: %d")JMESSAGE(JERR_PROGRESSIVE_MODE, "Not supported yet.")JMESSAGE(JERR_JPEG_ERROR, "JPEG general decoding error.")#ifdef JMAKE_ENUM_LIST JMSG_LASTMSGCODE} J_MESSAGE_CODE;#undef JMAKE_ENUM_LIST#endif /* JMAKE_ENUM_LIST *//* Zap JMESSAGE macro so that future re-inclusions do nothing by default */#undef JMESSAGE#ifndef JERROR_H#define JERROR_H/* Macros to simplify using the error and trace message stuff *//* The first parameter is either type of cinfo pointer *//* Fatal errors (print message and exit) */#define ERREXITDVD(cinfo,code,p1) \ ((cinfo)->err->msg_code = (code), \ (cinfo)->err->msg_parm.i[0] = (p1), \ (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))#define ERREXIT(cinfo,code) \ (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))#define ERREXIT1(cinfo,code,p1) \ (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))#define ERREXIT2(cinfo,code,p1,p2) \ (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))#define ERREXIT3(cinfo,code,p1,p2,p3)#define ERREXIT4(cinfo,code,p1,p2,p3,p4)#define ERREXITS(cinfo,code,str)#define MAKESTMT(stuff) do { stuff } while (0)/* Nonfatal errors (we can keep going, but the data is probably corrupt) */#define WARNMS(cinfo,code)#define WARNMS1(cinfo,code,p1)#define WARNMS2(cinfo,code,p1,p2)/* Informational/debugging messages */#define TRACEMS(cinfo,lvl,code)#define TRACEMS1(cinfo,lvl,code,p1)#define TRACEMS2(cinfo,lvl,code,p1,p2)#define TRACEMS3(cinfo,lvl,code,p1,p2,p3)#define TRACEMS4(cinfo,lvl,code,p1,p2,p3,p4)#define TRACEMS8(cinfo,lvl,code,p1,p2,p3,p4,p5,p6,p7,p8)#define TRACEMSS(cinfo,lvl,code,str)#endif /* JERROR_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -