⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cdjpeg.h

📁 基于Linux的ffmepg decoder
💻 H
字号:
/* * 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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -