资源简介
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
相关资源
- QT,JPEG解码源代码(已完成)
- 将yuv各种格式的图片转换为jpg格式的
- 2006年湖北工业大学409数据结构试题
- jpeg图像压缩实例代码
- 基于V4L2的视频采集,能够采集YUVJPE
- 利用FFmpeg将Jpeg图片转为任意视频容器
- jpeglib读取jpeg,转为bmp图,24真彩和灰
- JPEG2000编码核心算法:EBCOT
- turbo-jpeg
- jpeg-8c库 及H264转jpeg代码
- opencv jpeg 编解码
- stm32+JPEG+bmp+RM04_WIFI+二值图像.rar
- JpegToYUV源代码
- ffmpeg将一个视频文件解码输出bmp和j
- libjpeg-turbo-1.2.1.tar.gz
- zw_JPEG400.zip
- 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
评论
共有 条评论