资源简介
JPEG 编解码的程序大全(我搜集的所有程序)
很多的都好用
代码片段和文件信息
/*
* cdjpeg.c
*
* Copyright (C) 1991-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 support routines used by the IJG application
* programs (cjpeg djpeg jpegtran).
*/
#include “cdjpeg.h“ /* Common decls for cjpeg/djpeg applications */
#include /* to declare isupper() tolower() */
#ifdef NEED_SIGNAL_CATCHER
#include /* to declare signal() */
#endif
#ifdef USE_SETMODE
#include /* to declare setmode()‘s parameter macros */
/* If you have setmode() but not just delete this line: */
#include /* to declare setmode() */
#endif
/*
* Signal catcher to ensure that temporary files are removed before aborting.
* NB: for Amiga Manx C this is actually a global routine named _abort();
* we put “#define signal_catcher _abort“ in jconfig.h. Talk about bogus...
*/
#ifdef NEED_SIGNAL_CATCHER
static j_common_ptr sig_cinfo;
void /* must be global for Manx C */
signal_catcher (int signum)
{
if (sig_cinfo != NULL)
{
if (sig_cinfo->err != NULL) /* turn off trace output */
sig_cinfo->err->trace_level = 0;
jpeg_destroy(sig_cinfo); /* clean up memory allocation & temp files */
}
exit(EXIT_FAILURE);
}
GLOBAL(void)
enable_signal_catcher (j_common_ptr cinfo)
{
sig_cinfo = cinfo;
#ifdef SIGINT /* not all systems have SIGINT */
signal(SIGINT signal_catcher);
#endif
#ifdef SIGTERM /* not all systems have SIGTERM */
signal(SIGTERM signal_catcher);
#endif
}
#endif
/*
* Optional progress monitor: display a percent-done figure on stderr.
*/
#ifdef PROGRESS_REPORT
METHODDEF(void)
progress_monitor (j_common_ptr cinfo)
{
cd_progress_ptr prog = (cd_progress_ptr) cinfo->progress;
int total_passes = prog->pub.total_passes + prog->total_extra_passes;
int percent_done = (int) (prog->pub.pass_counter*100L/prog->pub.pass_limit);
if (percent_done != prog->percent_done)
{
prog->percent_done = percent_done;
if (total_passes > 1)
{
fprintf(stderr “\rPass %d/%d: %3d%% “
prog->pub.completed_passes + prog->completed_extra_passes + 1
total_passes percent_done);
} else {
fprintf(stderr “\r %3d%% “ percent_done);
}
fflush(stderr);
}
}
GLOBAL(void)
start_progress_monitor (j_common_ptr cinfo cd_progress_ptr progress)
{
/* Enable progress display unless trace output is on */
if (cinfo->err->trace_level == 0) {
progress->pub.progress_monitor = progress_monitor;
progress->completed_extra_passes = 0;
progress->total_extra_passes = 0;
progress->percent_done = -1;
cinfo->progress = &progress->pub;
}
}
GLOBAL(void)
end_progress_monitor (j_common_ptr cinfo)
{
/* Clear away progress display */
if (cinfo->err->trace_level == 0) {
fprintf(stder
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5381 1997-12-17 22:50 JPEG\djpeg\cderror.h
文件 4876 2009-08-27 09:38 JPEG\djpeg\cdjpeg.c
文件 6308 2009-08-26 15:13 JPEG\djpeg\cdjpeg.h
文件 20166 2009-08-13 15:09 JPEG\djpeg\cjpeg.c
文件 6255 2000-08-10 12:56 JPEG\djpeg\cjpeg.dsp
文件 533 2000-01-04 22:39 JPEG\djpeg\cjpeg.dsw
文件 123904 2009-11-12 19:55 JPEG\djpeg\cjpeg.ncb
文件 48640 2009-11-12 19:55 JPEG\djpeg\cjpeg.opt
文件 244 2009-11-12 19:55 JPEG\djpeg\cjpeg.plg
文件 1948 2009-09-10 17:00 JPEG\djpeg\cjpeg.sln
..A..H. 26624 2009-09-10 17:00 JPEG\djpeg\cjpeg.suo
文件 19481 2009-09-10 14:57 JPEG\djpeg\cjpeg.vcproj
文件 12568 1994-08-03 03:26 JPEG\djpeg\ckconfig.c
文件 2880054 2009-09-04 14:37 JPEG\djpeg\Debug\20.bmp
文件 208475 2009-11-11 19:44 JPEG\djpeg\Debug\20.jpg
文件 2880016 2009-11-12 19:55 JPEG\djpeg\Debug\20rec.bmp
文件 4669 2009-11-11 19:41 JPEG\djpeg\Debug\cdjpeg.obj
文件 33512 2009-11-11 19:41 JPEG\djpeg\Debug\cdjpeg.sbr
文件 352339 2009-11-11 19:41 JPEG\djpeg\Debug\cjpeg.exe
文件 308744 2009-11-11 19:41 JPEG\djpeg\Debug\cjpeg.ilk
文件 34039 2009-11-11 19:41 JPEG\djpeg\Debug\cjpeg.obj
文件 259704 2009-11-11 19:41 JPEG\djpeg\Debug\cjpeg.pch
文件 607232 2009-11-11 19:41 JPEG\djpeg\Debug\cjpeg.pdb
文件 31777 2009-11-11 19:41 JPEG\djpeg\Debug\cjpeg.sbr
文件 23 2009-11-11 19:44 JPEG\djpeg\Debug\CJPEG.txt
文件 26 2009-11-12 19:54 JPEG\djpeg\Debug\DJPEG.bat
文件 397395 2009-11-11 19:45 JPEG\djpeg\Debug\djpeg.exe
文件 311432 2009-11-11 19:45 JPEG\djpeg\Debug\djpeg.ilk
文件 37266 2009-11-11 19:45 JPEG\djpeg\Debug\djpeg.obj
文件 259704 2009-11-11 19:45 JPEG\djpeg\Debug\djpeg.pch
............此处省略561个文件信息
- 上一篇:康耐视视觉入门培训.doc
- 下一篇:ADFSIMPLL4.1.03
相关资源
- JPEG标准中文版
- libjpeg-turbo.rar
- mjpeg_viewer_win软件
- jpeg编码实现
- kakadu2.2.3和openjpeg1.3两开源图像压缩软
- Mjpeg-streamer流实现抓拍功能
- 小波分析经典教材小波变换与JPEG200
- C实现的JPEG编码源代码,决定真实
- ios libjpeg .a静态库
- ISO/IEC 10918-1 ITU-T.81
- JPEG头信息解析c
- JPEG编码器源代码分析
- jpeg编解码原理详解
- JPEG标准文档itu-t81
- stegdetect-0.6
- ISO_IEC_15444-1-2000
- 普通图像JPEG压缩可以实现.zip
- 社群商业模式设计图.jpeg
- MSTAR数据集全部JPEG格式图片
- 将MP4视频关键帧数据保存成JPEG格式
- JPEG 图像压缩 源码 源代码 算法文档介
- jpeg压缩算法介绍及其源码
- 1191170125_严伟_音视频实验3 (.zip
- SAR图像MSTAR数据库,全JPEG格式
- JPEG2000图像压缩基础、标准和实践——
- 基于verilog的亮度jpeg压缩算法
- mjpeg文件资源
- 快速抠图,破解版,容易操作,图像
- pdf2swf.exe
- JPEG2000图像压缩基础、标准和实践——
评论
共有 条评论