首页> 外国专利> Method for compression of data using single pass LZSS and run- length encoding

Method for compression of data using single pass LZSS and run- length encoding

机译:使用单遍LZSS和游程编码的数据压缩方法

摘要

A method used preferably with LZSS-based compression methods for compressing a stream of digital data. The method uses a run-length encoding scheme especially suited for data strings of identical data bytes having large run-lengths, such as data representing scanned images. The method reads an input data stream to determine the length of the data strings. Longer data strings are then encoded in one of two ways depending on the length of the string. For data strings having run- lengths less than 18 bytes, a cleared offset and the actual run-length are written to an output buffer and then a run byte is written to the output buffer. For data strings of 18 bytes or longer, a set offset and an encoded run-length are written to the output buffer and then a run byte is written to the output buffer. The encoded run-length is written in two parts obtained by dividing the run length by a factor of 255. The first of two parts of the encoded run-length is the quotient; the second part is the remainder. Data bytes that are not part of data strings of sufficient length are written directly to the output buffer.
机译:最好与基于LZSS的压缩方法一起使用的方法,用于压缩数字数据流。该方法使用游程长度编码方案,该游程长度编码方案特别适合于具有大游程长度的相同数据字节的数据串,例如表示扫描图像的数据。该方法读取输入数据流以确定数据字符串的长度。然后,根据字符串的长度,以两种方式之一对较长的数据字符串进行编码。对于游程长度小于18个字节的数据串,将清除的偏移量和实际游程长度写入输出缓冲区,然后将游程字节写入输出缓冲区。对于18字节或更长的数据串,将设置的偏移量和编码的游程长度写入输出缓冲区,然后将游程字节写入输出缓冲区。将经过编码的游程长度分为两部分,即将游程长度除以255所得的系数。两部分中的第一个是商。第二部分是其余部分。不属于足够长度数据串的数据字节将直接写入输出缓冲区。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号