资源简介
JBIG是一种无损图像的压缩标准,
JBIG(Joint Bi-level Image Experts Group,联合二值图像专家组)是发布二值图像编码标准的专家组。在官方来说,JBIG是ISO/IEC JTC1 SC29工作组1,这个工作组也负责JPEG标准,它是一套压缩算法,用来产生Web浏览器支持的以及典型地用于复杂图像(例如照片)的图像文件。
代码片段和文件信息
/*
* Portable Free JBIG image compression library
*
* Markus Kuhn -- http://www.cl.cam.ac.uk/~mgk25/
*
* $Id: jbig.cv 1.22 2004-06-11 15:17:06+01 mgk25 Exp $
*
* This module implements a portable standard C encoder and decoder
* using the JBIG lossless bi-level image compression algorithm as
* specified in International Standard ISO 11544:1993 or equivalently
* as specified in ITU-T Recommendation T.82. See the file jbig.doc
* for usage instructions and application examples.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not write to the Free Software
* Foundation Inc. 675 Mass Ave Cambridge MA 02139 USA.
*
* If you want to use this program under different license conditions
* then contact the author for an arrangement.
*
* It is possible that certain products which can be built using this
* software module might form inventions protected by patent rights in
* some countries (e.g. by patents about arithmetic coding algorithms
* owned by IBM and AT&T in the USA). Provision of this software by the
* author does NOT include any licences for any patents. In those
* countries where a patent licence is required for certain applications
* of this software module you will have to obtain such a licence
* yourself.
*/
#ifdef DEBUG
#include
#else
#ifndef NDEBUG
#define NDEBUG
#endif
#endif
#include
#include
#include
#include “jbig.h“
/* optional export of arithmetic coder functions for test purposes */
#ifdef TEST_CODEC
#define ARITH
#define ARITH_INL
#else
#define ARITH static
#ifdef __GNUC__
#define ARITH_INL static __inline__
#else
#define ARITH_INL static
#endif
#endif
#define MX_MAX 127 /* maximal supported mx offset for
* adaptive template in the encoder */
#define TPB2CX 0x195 /* contexts for TP special pixels */
#define TPB3CX 0x0e5
#define TPDCX 0xc3f
/* marker codes */
#define MARKER_STUFF 0x00
#define MARKER_RESERVE 0x01
#define MARKER_SDNORM 0x02
#define MARKER_SDRST 0x03
#define MARKER_ABORT 0x04
#define MARKER_NEWLEN 0x05
#define MARKER_ATMOVE 0x06
#define MARKER_COMMENT 0x07
#define MARKER_ESC 0xff
/* loop array indices */
#define STRIPE 0
#define layer 1
#define PLANE 2
/* special jbg_buf pointers (instead of NULL) */
#define SDE_DONE ((struct jbg_buf *) -1)
#define SDE_TODO ((struct jbg_buf *) 0)
/* object code version id */
c
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 17982 1995-05-29 07:10 jbig\copying.txt
文件 94821 2004-10-11 06:57 jbig\jbig.c
文件 34984 2004-06-10 20:53 jbig\jbig.doc
文件 4915 2012-01-12 14:23 jbig\jbig.dsp
文件 531 2002-08-20 07:08 jbig\jbig.dsw
文件 11222 2004-06-11 14:18 jbig\jbig.h
文件 50176 2012-01-12 14:23 jbig\jbig.ncb
文件 53760 2012-01-12 14:23 jbig\jbig.opt
文件 918 2012-01-12 14:22 jbig\jbig.plg
文件 312 2012-01-12 14:23 jbig\jbig.positions
文件 17288 2011-01-01 01:27 jbig\jbig.vcproj
文件 7033 2011-02-05 06:57 jbig\jbig.vcxproj
文件 26014 2000-04-08 11:15 jbig\jbig_tab.c
文件 3244 2006-04-04 01:46 jbig\jbig_wince.sln
文件 16182 2006-04-01 02:13 jbig\jbig_wince.vcproj
文件 678 2004-06-08 14:40 jbig\Makefile
文件 10123 2002-08-21 19:29 jbig\patents.htm
文件 15446 2004-06-11 14:17 jbig\tstcodec.c
目录 0 2012-01-13 00:11 jbig
----------- --------- ---------- ----- ----
365629 19
- 上一篇:1588 时钟同步原理
- 下一篇:声速测量习题及数据处理
相关资源
- 基于图像处理的焊点缺陷识别方法的
- 基于小波变换的图像增强方法与实现
- 基于PDE的图像边缘保留去噪源代码
- 图像二值化程序,自己定义阈值
- 算数编码实现对文本的压缩程序
- 用zlib库在内存中解压或压缩http会话中
- OpenCV使用特殊颜色标记彩色图像轮廓
- 几种图像分割算法在CT 图像分割上的
- labview保存图像
- B样条的实现
- Kinect获取彩色图像并保存为jpg图片
- 三种方法实现图像的分割含程序源码
- lz4-r127.tar.gz
- 图像取证之关键技术——GAN网络
- 图像分割+GUI
- Spring实战Spring in Action中文第4版pdf高清
- 已配准的医学图像
- 利用OpenCV,通过SVM识别图像中图形链
- 图像文字识别,BP神经网络
- 基于Huffman树的文件压缩C源码
- jpeg压缩编码中的Huffman编码表
- 基于灰度共生矩阵的图像匹配算法
- 实现图像分割的grabcut代码
- Live图像库主观值
- IDL语言实现图像旋转程序
- 图像特征之方向直方图OPENCV程序
- 道格拉斯曲线矢量数据压缩算法
- Bayer图像格式转化为标准RGB格式
- 一种抗JPEG压缩的半脆弱图像水印算法
- JPEG2000图像编解码 源码
评论
共有 条评论