?? cdjpeg.h
字號(hào):
/* * cdjpeg.h * * Copyright (C) 1994-1997, 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 contains common declarations for the sample applications * cjpeg and djpeg. It is NOT used by the core JPEG library. */#define JPEG_CJPEG_DJPEG /* define proper options in jconfig.h */#define JPEG_INTERNAL_OPTIONS /* cjpeg.c,djpeg.c need to see xxx_SUPPORTED */#include "jinclude.h"#include "jpeglib.h"#include "jerror.h" /* get library error codes too */#include "cderror.h" /* get application-specific error codes */
/* * cjpeg/djpeg may need to perform extra passes to convert to or from * the source/destination file format. The JPEG library does not know * about these passes, but we'd like them to be counted by the progress * monitor. We use an expanded progress monitor object to hold the * additional pass count. */struct cdjpeg_progress_mgr { struct jpeg_progress_mgr pub; /* fields known to JPEG library */ int completed_extra_passes; /* extra passes completed */ int total_extra_passes; /* total extra */ /* last printed percentage stored here to avoid multiple printouts */ int percent_done;};typedef struct cdjpeg_progress_mgr * cd_progress_ptr;/* miscellaneous useful macros */#ifdef DONT_USE_B_MODE /* define mode parameters for fopen() */#define READ_BINARY "r"#define WRITE_BINARY "w"#else#ifdef VMS /* VMS is very nonstandard */#define READ_BINARY "rb", "ctx=stm"#define WRITE_BINARY "wb", "ctx=stm"#else /* standard ANSI-compliant case */#define READ_BINARY "rb"#define WRITE_BINARY "wb"#endif#endif#ifndef EXIT_FAILURE /* define exit() codes if not provided */#define EXIT_FAILURE 1#endif#ifndef EXIT_SUCCESS#ifdef VMS#define EXIT_SUCCESS 1 /* VMS is very nonstandard */#else#define EXIT_SUCCESS 0#endif#endif#ifndef EXIT_WARNING#ifdef VMS#define EXIT_WARNING 1 /* VMS is very nonstandard */#else#define EXIT_WARNING 2#endif#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -