JPH04180469A - Code extending method and plotting device - Google Patents

Code extending method and plotting device

Info

Publication number
JPH04180469A
JPH04180469A JP30727590A JP30727590A JPH04180469A JP H04180469 A JPH04180469 A JP H04180469A JP 30727590 A JP30727590 A JP 30727590A JP 30727590 A JP30727590 A JP 30727590A JP H04180469 A JPH04180469 A JP H04180469A
Authority
JP
Japan
Prior art keywords
code
data
extracted
plotting
expansion table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP30727590A
Other languages
Japanese (ja)
Other versions
JP2689020B2 (en
Inventor
Yasuyuki Kokubu
国分 靖之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Telecom Technologies Ltd
Original Assignee
Hitachi Telecom Technologies Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Telecom Technologies Ltd filed Critical Hitachi Telecom Technologies Ltd
Priority to JP2307275A priority Critical patent/JP2689020B2/en
Publication of JPH04180469A publication Critical patent/JPH04180469A/en
Application granted granted Critical
Publication of JP2689020B2 publication Critical patent/JP2689020B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To shorten plotting processing time and to reduce a memory capacity by determining a Modified Huffman(MH) code extending table and a plotting color, extracting an arbitrary MH code word from among MH code data and converting the extracted code word into a non-compressed code by referring to the MH code extending table. CONSTITUTION:The constitution of a plotting device 2 is separated into a character developing and processing part 2a, a graphic developing and processing part 2b and a picture developing and processing part 2c to execute corresponding processing by respective data classifications such as character data 1a, graphic data 1b, picture data 1c transferred from a computer 1. A picture data control processing part 2c1 executes the setting of the plotting attribute of the picture data. An MH code extending processing part 2c2 executes elongating processing from an MH code word which is a compressed word to a non- compressed code. A clip processing part 2c3 executes the monitoring of a plotting area. A plotting processing part 2c4 executes the plotting of the non- compressed code. An offline data processing part 2c5 executes the linear density conversion of the picture data of offline plotting.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、圧縮符号であるMH符号(Modified
t(utlvxn符号 CCITT勧告、文書伝送用グ
ループファクシミリ装置の標準化により規定)語を、非
圧縮符号に変換し、描画処理を行なう圧縮符号伸長方法
及び描画装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention is directed to an MH code (Modified Code) which is a compression code.
The present invention relates to a compressed code decompression method and a drawing device for converting a utlvxn code (defined by CCITT recommendation, standardization of group facsimile devices for document transmission) into an uncompressed code and performing drawing processing.

(従来の技術) 従来の描画装置は、描画すべき画像データは、非圧縮符
号を用いていた。描画処理においては、符号または、デ
ータそのものが画像データであり、ビットが「0」また
は「1」かによって描画色が決定し、符号そのものの数
分の描画処理を行なうことで、画像データの描画を行な
っていた。
(Prior Art) Conventional drawing devices use uncompressed codes for image data to be drawn. In drawing processing, the code or data itself is image data, and the drawing color is determined depending on whether the bit is "0" or "1", and by performing drawing processing for the number of codes themselves, the image data is drawn. was doing.

(発明が解決しようとする課題) 上記従来の描画装置は、描画すべき画像データが、増加
した場合の描画処理時間と、メモリ容量についての配慮
がなされておらず、画像データ量が増加した場合、画像
データ量に比例して、描画処理時間と、メモリ量が増加
してしまうという問題があった。
(Problems to be Solved by the Invention) The conventional drawing device described above does not take into consideration the drawing processing time and memory capacity when the amount of image data to be drawn increases, and when the amount of image data increases. However, there is a problem in that the drawing processing time and memory amount increase in proportion to the amount of image data.

本発明はこのような問題を解消するものであり、請求項
1の発明は、描画すべき画像データ量が増加した場合の
画像データの描画処理時間の短縮と、メモリ容量の削減
を期することができる圧縮符号伸長方法を提供すること
を特徴とする 請求項2の発明は、MH符号データの中から必ず1回の
MH符号語の固定抽出を行って圧縮符号から非圧縮符号
への変換を行うことができ、分割抽出・可変抽出よりも
伸長処理が簡略にできるMH符号伸長方法を提供するこ
とを特徴とする請求項3の発明は、MH符号データの中
から、A回MH符号語を抽出することにより符号長≧抽
出ビットの関係が満たされるまでの符号抽出ができ、M
H符号伸長テーブル容量を削減することかできるMH符
号伸長方法を提供することを特徴とする 請求項4の発明は、MH符号データの中から任意に抽出
するMH符号語を含む所定ビットのヒ・ソト情報により
抽出するビット数を可変長とすることにより、MH符号
伸長テーブル容量の削減と伸長処理時間の短縮化を図る
ことができるMH符号伸長方法を提供することを特徴と
する 請求項5の発明は、MH符号伸長テーブル容量の削減と
MH符号伸長速度の向上の両方を満たすことができる描
画装置を提供することを目的とする。
The present invention solves such problems, and the invention of claim 1 aims to shorten the drawing processing time of image data and reduce the memory capacity when the amount of image data to be drawn increases. The invention according to claim 2 is characterized in that it provides a compressed code decompression method capable of converting a compressed code into an uncompressed code by performing fixed extraction of an MH code word once from MH code data. The invention as claimed in claim 3 is characterized in that it provides an MH code decompression method that allows the MH code word to be extracted A times from the MH code data. By extracting, codes can be extracted until the relationship of code length ≧ extraction bits is satisfied, and M
The invention according to claim 4 is characterized in that it provides an MH code expansion method capable of reducing the capacity of an H code expansion table. According to claim 5, there is provided an MH code decompression method capable of reducing the capacity of the MH code decompression table and shortening the decompression processing time by making the number of bits extracted based on the sort information variable length. SUMMARY OF THE INVENTION An object of the invention is to provide a drawing device that can reduce the capacity of an MH code expansion table and increase the speed of MH code expansion.

(課題を解決するための手段) 請求項1の発明は、上記目的を達成するために、個々の
MH符号語に対応したMH符号伸長テーブルを参照して
MH符号語を非圧縮符号に変換するMH符号伸長方法と
したものである。
(Means for Solving the Problem) In order to achieve the above object, the invention of claim 1 converts an MH code word into an uncompressed code by referring to an MH code expansion table corresponding to each MH code word. This is an MH code expansion method.

請求項2の発明は、上記目的を達成するために、MH符
号データの中から1回の抽出で、必ず一つ以上のMH符
号語を含むように固定抽出方法で抽出し、この抽出した
MH符号語を1回のMH符号伸長テーブルを参照して、
非圧縮符号に変換するMH符号伸長方法としたものであ
る。
In order to achieve the above object, the invention of claim 2 uses a fixed extraction method to extract from MH code data so that one or more MH code words are always included in one extraction, and the extracted MH By referring to the MH code expansion table for the code word once,
This is an MH code expansion method that converts into an uncompressed code.

請求項3の発明は、上記目的を達成するために、MH符
号データの中からA回(A=1.2.3・・・)の分割
抽出方法で抽出を行ない、各回の抽出毎に、MH符号伸
長テーブルを参照し、1つ以上のMH符号語が抽出され
たときに、この抽出されたMH符号語を非圧縮符号に変
換するMH符号伸長方法としたものである。
In order to achieve the above object, the invention of claim 3 performs extraction from the MH code data using a divided extraction method A times (A=1.2.3...), and for each extraction, This MH code expansion method refers to an MH code expansion table and, when one or more MH code words are extracted, converts the extracted MH code words into uncompressed codes.

請求項4の発明は、上記目的を達成するめに、MH符号
データの中−から可変抽出方法により任意に抽出しよう
とするMH符号語を含むB (B=1゜2.3・・・)
ビットのビット情報により抽出するビット数を可変長と
し、この抽出された可変長のビット数のMH符号語をM
H符号伸長テーブルを参照して非圧縮符号に変換するM
H符号伸長方法としたものである。
In order to achieve the above-mentioned object, the invention of claim 4 includes B (B=1°2.3...) containing an MH code word to be arbitrarily extracted from MH code data by a variable extraction method.
The number of bits extracted according to the bit information of the bit is set as variable length, and the MH code word of the extracted variable length bit number is M
M to convert to uncompressed code by referring to H code expansion table
This is an H code decompression method.

請求項5の発明は、上記目的を達成するために、MH符
号伸長テーブルと描画色を決定する手段と、MH符号デ
ータの中から任意のMH符号語を抽出する手段と、この
手段で抽出されたMH符号語をMH符号伸長テーブルを
参照して非圧縮符号に変換する手段とを備えた描画装置
としたものである。
In order to achieve the above object, the invention of claim 5 includes a means for determining an MH code expansion table and a drawing color, a means for extracting an arbitrary MH code word from MH code data, and a means for extracting an arbitrary MH code word from the MH code data. The present invention is a drawing device that includes means for converting a MH code word into an uncompressed code by referring to an MH code expansion table.

(作用) 請求項1の発明は、圧縮符号であるMH符号語を、非圧
縮符号に変換するため、参照するMH符号伸長テーブル
の内容には、個々のMH符号語の符号長と、描画量に対
応する非圧縮符号数を設定しておき、このMH符号伸長
テーブルにおいて、抽出した任意のビットのMH符号語
はオフセット量と見なして、MH符号伸長テーブルのベ
ースアドレスと加算して、個々のMH符号語に対応した
MH符号伸長アドレスを加算し、参照することにより、
今回抽出したMH符号の変換の実際のMH符号語の符号
長と非圧縮符号化された描画量を知ることができる。
(Function) The invention of claim 1 converts the MH codeword, which is a compressed code, into an uncompressed code. The number of uncompressed codes corresponding to By adding and referencing the MH code expansion address corresponding to the MH code word,
It is possible to know the code length of the actual MH code word of the conversion of the MH code extracted this time and the drawing amount that has been non-compressed encoded.

請求項2の発明においては、1回の固定した固定抽出方
法により抽出するMH符号語のビット数を所定ビットと
することで、必ず1度の抽出に一つ以上のMH符号語が
存在することになり、この抽出したMH符号語を1回の
MH符号語伸長テーブルの参照で非圧縮符号に変換する
In the invention of claim 2, by setting the number of bits of the MH code word extracted by one fixed extraction method to a predetermined bit number, one or more MH code words always exist in one extraction. The extracted MH code word is converted into an uncompressed code by referring to the MH code word expansion table once.

請求項3の発明においては、A回の分割抽出方法を採用
し、各回のMH符号語の抽出毎に抽出するビット数を分
割することにより、その分割したビット数のMH符号語
をMH符号伸長テーブルを参照して非圧縮符号に変換す
ることにより、その分割によるビット数よりも、小さい
符号長のMH符号語は、初期の分割により伸長を行なう
ことができ、MH符号伸長テーブルの容量は、削減する
ことができる。
In the invention of claim 3, the divided extraction method is adopted A times, and by dividing the number of bits to be extracted for each extraction of the MH code word, the MH code word of the divided number of bits is subjected to MH code decompression. By referring to the table and converting it into an uncompressed code, MH codewords whose code length is smaller than the number of bits resulting from the division can be expanded by initial division, and the capacity of the MH code expansion table is can be reduced.

請求項4の発明においては、MH符号データの中から任
意に抽出しようとするMH符号語を含むBビットのビッ
ト情報により抽出するビット数を可変する可変抽出方法
においては、抽出する前に、個々のMH符号語の特徴を
まとめたグループとし、それらのグループに見合った抽
出を行なうために、抽出するビット数は、グループ別に
可変となり、この抽出されたビット数のMH符号語をM
H符号伸長テーブルを参照して非圧縮符号に変換するか
ら、MH符号伸長テーブル容量は、削減することができ
る。
In the invention of claim 4, in the variable extraction method in which the number of bits to be extracted is varied according to the bit information of B bits including the MH code word to be arbitrarily extracted from the MH code data, The number of bits to be extracted is variable for each group, and the number of bits to be extracted is variable for each group, and the MH codeword with this extracted number of bits is
Since the H code expansion table is referred to and converted into an uncompressed code, the capacity of the MH code expansion table can be reduced.

請求項5の発明においては、描画色を決定して、MH符
号データの中から任意のMH符号語を抽出し、この抽出
したMH符号語をMH符号伸長テーブルを参照して、非
圧縮符号に変換して描画量を知る。
In the invention of claim 5, a drawing color is determined, an arbitrary MH code word is extracted from the MH code data, and the extracted MH code word is converted into an uncompressed code by referring to an MH code expansion table. Convert to know the amount of drawing.

(実施例) 以下、この発明のMH符号伸長方法および描画装置の実
施例について図面に基づき説明する。第1図はこの発明
の描画装置の一実施例の概略構成を示すブロック図であ
る。
(Embodiments) Hereinafter, embodiments of the MH code decompression method and drawing device of the present invention will be described based on the drawings. FIG. 1 is a block diagram showing a schematic configuration of an embodiment of a drawing apparatus according to the present invention.

この第1図において、ホストコンピュータ1から送られ
てくるデータには、ホストコンピュータ1の文字データ
バッファ、図形データバッファ、画像データバッファに
それぞれ蓄えられた文字データla’s図形データlb
、画像データIC(MH符号データ)とが有り、特に画
像データには、圧縮符号であるMH符号語による圧縮を
行なっている。
In FIG. 1, data sent from the host computer 1 includes character data la's graphic data lb stored in the character data buffer, graphic data buffer, and image data buffer of the host computer 1, respectively.
, and image data IC (MH code data).In particular, the image data is compressed using an MH code word, which is a compression code.

描画装置2はコンピュータ1から転送される上記文字デ
ータ1 a s図形データlb、画像データ10などの
各データ種別に対応する処理を行うための文字展開処理
部2a、図形展開処理部2b。
The drawing device 2 includes a character expansion processing section 2a and a graphic expansion processing section 2b for performing processing corresponding to each data type such as the character data 1a, the graphic data lb, and the image data 10 transferred from the computer 1.

画像展開処理部2Cに分かれた構成となっている。It has a configuration divided into an image development processing section 2C.

これらの処理部の内、画像展開処理部2cは、以下に述
べる五つの処理部から構成されている。
Among these processing units, the image development processing unit 2c is composed of five processing units described below.

(1)画像データの描画属性の設定を行なう画像データ
制御処理部2cl、 (2)圧縮符号であるMH符号語から非圧縮符号への伸
長処理を行なう、MH符号伸長処理部2c2、 (3)描画領域の監視を行なう、クリップ処理部2c3
、 (4)非圧縮符号の描画を行なう描画処理部2c4、 (5)オフライン描画時に、描面する画像データの線密
度変換を行なうオフラインデータ処理部2c5、 である。
(1) An image data control processing unit 2cl that sets drawing attributes of image data; (2) an MH code expansion processing unit 2c2 that performs expansion processing from an MH code word, which is a compressed code, to an uncompressed code; (3) Clip processing unit 2c3 that monitors the drawing area
, (4) a drawing processing section 2c4 that performs drawing of uncompressed codes, and (5) an offline data processing section 2c5 that performs line density conversion of image data to be drawn during offline drawing.

上記の各処理部を経ることにより、画像データの描画処
理が行なわれる。
Image data is subjected to drawing processing by passing through each of the processing units described above.

次に、上記描画装置の実施例の動作説明と請求項1、請
求項2に基づく固定抽出方法によるMH符号伸長方法の
説明を兼用する。この発明に適用するMH符号のターミ
ネ・ティング符号語は次の第1表、第2表にまた、メー
クアップ符号語は第3表にそれぞれ示されている。
Next, a description of the operation of the embodiment of the drawing apparatus described above and a description of the MH code decompression method using the fixed extraction method based on claims 1 and 2 will be provided. The terminating code words of the MH code applied to this invention are shown in Tables 1 and 2 below, and the make-up code words are shown in Table 3, respectively.

(以下余白) 第2図はこの固定抽出方法によるM)l符号伸長方法の
説明図であり、この第2図に示すように、ホストコンピ
ュータ1の画像データバッファに蓄えられている画像デ
ータ1cであるMH符号データの先頭ビットから13ビ
ツトを固定抽出方法にて、ステップ1で抽出を行なう。
(Margins below) Figure 2 is an explanatory diagram of the M)l code decompression method using this fixed extraction method.As shown in Figure 2, the image data 1c stored in the image data buffer of the host computer 1. In step 1, 13 bits from the leading bit of certain MH code data are extracted using a fixed extraction method.

ここでいう13ビツトとは、MH符号語の最大長を示す
。この抽出した13ビツトのMH符号をステップ2でM
H符号伸長テーブル3のオフセット量として、MH符号
伸長テーブル3のベースアドレスと加算して、符号伸長
テーブル3のアドレスを算出する。
13 bits here indicates the maximum length of the MH code word. This extracted 13-bit MH code is converted to M in step 2.
The address of the code expansion table 3 is calculated by adding it to the base address of the MH code expansion table 3 as the offset amount of the H code expansion table 3.

次に算出したMH符号伸長テーブルアドレス(001G
000000011) BiNを参照して、ステップ3
で符号長=6、描画量(非圧縮符号)=12を得る。
Next, the calculated MH code expansion table address (001G
000000011) Refer to BiN, step 3
As a result, code length = 6 and drawing amount (uncompressed code) = 12 are obtained.

このステップ3で、抽出開始点「1」に符号長「6」を
加算して、次抽出開始点「7」を算出する( rlJ 
+r6J = r7J )。
In this step 3, the code length "6" is added to the extraction start point "1" to calculate the next extraction start point "7" (rlJ
+r6J = r7J).

以下、上記操作をくり返すことにより、MH符号の圧縮
符号から非圧縮符号への変換を行なっていく。
Thereafter, by repeating the above operations, the MH code is converted from a compressed code to an uncompressed code.

また、MH符号伸長テーブル3の大きさは、以下のよう
にして決定される。
Further, the size of the MH code expansion table 3 is determined as follows.

2AXBXC=MH符号伸長テーブル容量であり、ここ
にAは、画像データ中から抽出するMH符号のビット数
=MH符号語の最大符号長=13ビットである。
2AXBXC=MH code expansion table capacity, where A is the number of bits of the MH code extracted from the image data=maximum code length of the MH code word=13 bits.

また、Bは一つのMH符号伸長テーブルの大きさであり
、Cは描画色の種数(白色描画と黒色描画)である。
Further, B is the size of one MH code expansion table, and C is the genus of drawing colors (white drawing and black drawing).

本実施例の描画装置のMH符号伸長テーブル容量は、2
13X2X2=32 (Kバイト)となる。
The MH code expansion table capacity of the drawing device of this embodiment is 2
13X2X2=32 (K bytes).

次に請求項1、請求項3、請求項5に基づく、分割抽出
方法による伸長方法を、第3図により説明する。
Next, the decompression method using the division extraction method based on claims 1, 3, and 5 will be explained with reference to FIG.

ステップ11でホストコンピュータ1の画像データバッ
ファの画像データであるMH符号データの先頭ビットか
ら8ビツトを固定抽出方法により抽出を行なう。
In step 11, 8 bits from the leading bits of the MH code data, which is the image data in the image data buffer of the host computer 1, are extracted using a fixed extraction method.

次に、この抽出した8ビツトのMH符号をMH符号伸長
テーブル4のオフセット量として、ステップ12でMH
符号伸長テーブル4のベースアドレスと加算して、MH
符号伸長テーブル4のアドレスを算出する。
Next, in step 12, the extracted 8-bit MH code is used as the offset amount in the MH code expansion table 4.
Add it to the base address of code extension table 4 and get MH
Calculate the address of the code extension table 4.

この算出したMH符号伸長テーブル4のアドレスを参照
して、符号長が8以下であれば、今回抽出したMl符号
データ中に一つ以上のMH符号語が存在したこととなり
、ステップ13で符号長=Q1描画量(非圧縮符号)=
bを得て、一つの伸長の終了を意味する。このステップ
13で抽出開始点に符号長を加算して次の抽出開始点を
求める。
Referring to the address of the calculated MH code expansion table 4, if the code length is 8 or less, it means that one or more MH code words exist in the Ml code data extracted this time, and in step 13, the code length is =Q1 drawing amount (uncompressed code)=
Obtaining b means the end of one extension. In step 13, the code length is added to the extraction start point to find the next extraction start point.

しかし、上記算出したMH符号伸長テーブルアドレスの
符号長が9以上、13以下であれば、ステップ14でさ
らに固定抽出法にて5ビツトのMH符号データの抽出を
行なう。
However, if the code length of the MH code expansion table address calculated above is greater than or equal to 9 and less than or equal to 13, then in step 14, 5-bit MH code data is further extracted using the fixed extraction method.

この抽出した5ビツトのMH符号を、MH符号伸長テー
ブル5のオフセット量として、ステップ15でMH符号
伸長テーブル5のベースアドレスと加算して、MH符号
伸長テーブル5のアドレスを算出する。
The extracted 5-bit MH code is used as an offset amount for the MH code expansion table 5, and is added to the base address of the MH code expansion table 5 in step 15 to calculate the address of the MH code expansion table 5.

この算出したMH符号伸長テーブル5のアドレスを参照
して、ステップ16で符号長=Q、描画量(非圧縮符号
)=Cを得る。
Referring to the calculated address of the MH code expansion table 5, the code length=Q and the drawing amount (uncompressed code)=C are obtained in step 16.

次に抽出開始点に符号長Qを加算して、次抽出開始点を
算出する。
Next, the code length Q is added to the extraction start point to calculate the next extraction start point.

以下、上記操作を繰り返すことにより、圧縮符号から、
非圧縮符号への変換を行なっていく。
From the compressed code, by repeating the above operation,
Conversion to uncompressed code is performed.

上記方法における8ビツト、5ビツトの2回の抽出によ
る場合のMH符号伸長テーブル5の大きさは、2 (K
バイト)となる。
The size of the MH code expansion table 5 when 8 bits and 5 bits are extracted twice in the above method is 2 (K
part-time job).

次に請求項1、請求項4、請求項5に基づく、可変抽出
方法による伸長方法を、第4図により説明する。
Next, a decompression method using a variable extraction method based on claims 1, 4, and 5 will be explained with reference to FIG.

fA)白色描画の場合 ホストコンピュータ1の画像データバッファの画像デー
タであるMH符号データの先頭ビットから1ビツト目が
「0」か「1」であるかをステップ21に判定する。
fA) In the case of white drawing, it is determined in step 21 whether the first bit from the first bit of the MH code data, which is the image data in the image data buffer of the host computer 1, is "0" or "1".

この判定の結果、「0」であった場合、ステップ22で
MH符号データの先頭ビットから12ビットの抽出を行
なう。
If the result of this determination is "0", 12 bits from the first bit of the MH code data are extracted in step 22.

この抽出した12ビツトの抽出符号はMH符号テーブル
アドレス6のアドレスであり、(0010001011
011[1iNである。
This extracted 12-bit extraction code is the address of MH code table address 6, (0010001011
011[1iN.

このステップ22で抽出した12ビツトのMH符号をス
テップ23でMH符号伸長テーブル6のオフセット量と
して、MH符号伸長テーブル6のベースアドレスと加算
して、MH符号伸長テーブル6のアドレスを算出する。
The 12-bit MH code extracted in step 22 is added to the base address of the MH code expansion table 6 as an offset amount for the MH code expansion table 6 in step 23, thereby calculating the address of the MH code expansion table 6.

このMH符号伸長テーブル6のアドレスを参照して符号
長6と描画量12を得て、次の抽出開始点を、抽出開始
点(rlJ )+符号長(r6J )=次抽出開始点(
r7J )を算出する。
The code length 6 and drawing amount 12 are obtained by referring to the address of this MH code expansion table 6, and the next extraction start point is determined as the extraction start point (rlJ) + code length (r6J) = next extraction start point (
r7J) is calculated.

また、上記ステップ21において、MH符号データの先
頭ビットから1ビツト目が「1」であると判定した場合
には、ステップ24でMH符号データの先頭ビットから
6ビツトの抽出を行う。
If it is determined in step 21 that the first bit from the first bit of the MH code data is "1", then in step 24 six bits from the first bit of the MH code data are extracted.

この抽出した6ビツトのMH符号はMH符号伸長テーブ
ル7のアドレスであり、(10110118iNである
This extracted 6-bit MH code is the address of the MH code expansion table 7, which is (10110118iN).

このステップ24で抽出した6ビツトのMH符号をステ
ップ25でMH符号伸長テーブル7のオフセット量とし
て、MH符号伸長テーブル7のベースアドレスと加算し
て、MH符号伸長テーブル7のアドレスを算出する。
The 6-bit MH code extracted in step 24 is added to the base address of the MH code expansion table 7 as an offset amount for the MH code expansion table 7 in step 25 to calculate the address of the MH code expansion table 7.

このMH符号伸長テーブル7のアドレスを参照して、ス
テップ25で描画量4、符号長4を得て、次の抽出開始
点を抽出開始点(r7J )+符号長(r4J)=次抽
出開始点(rl IJ )として算出する。
Referring to the address of this MH code expansion table 7, the drawing amount 4 and code length 4 are obtained in step 25, and the next extraction start point is determined as extraction start point (r7J) + code length (r4J) = next extraction start point (rl IJ).

(Bl黒色描画の場合 ホストコンピュータlの画像データバッファの画像デー
タであるMH符号データの先頭ビットから4ビツト目ま
でrlJが立っているかどうかをステップ26で判定す
る。
(In the case of Bl black drawing, it is determined in step 26 whether rlJ is set from the first bit to the fourth bit of the MH code data, which is the image data in the image data buffer of the host computer l.

この判定の結果、UOコであった場合、ステップ27で
MH符号データの先頭ビットから13ビツトの抽出を行
う。
If the result of this determination is UO, 13 bits from the leading bit of the MH code data are extracted in step 27.

この抽出された13ビツトの抽出符号はMH符号伸長テ
ーブル8のアドレスであり、 (0000011100011) BiNである。
This extracted 13-bit code is the address of the MH code expansion table 8, and is (0000011100011) BiN.

この抽出した13ビツトのMH符号をステップ28でM
H符号伸長テーブル8のオフセット量として、MH符号
伸長テーブル8のベースアドレスと加算して、MH符号
伸長テーブルのアドレスを算出する。このMH符号伸長
テーブル8のアドレスを参照して、符号長8と描画量1
4を算出し、次抽出開始点を、抽出開始点(「1」)十
符号長(r8J )=次抽出開始点(r9J )として
算出する。
The extracted 13-bit MH code is converted to M in step 28.
The offset amount for the H code expansion table 8 is added to the base address of the MH code expansion table 8 to calculate the address of the MH code expansion table. Referring to the address of this MH code expansion table 8, code length 8 and drawing amount 1
4 is calculated, and the next extraction start point is calculated as extraction start point (1) ten code length (r8J)=next extraction start point (r9J).

また、上記ステップ26において、MH符号データ9の
先頭ビットから4ビツト目までに「1」が立っていると
判断した場合には、ステップ29でMH符号データの先
頭ビットから6ビツトの抽出を行う。
Furthermore, if it is determined in step 26 that "1" is set from the first bit to the fourth bit of the MH code data 9, then in step 29, 6 bits from the first bit of the MH code data are extracted. .

この抽出した6ビツト抽出符号はM!(符号伸長テーブ
ル9のアドレスであり、fooollo) BiNであ
る。
This extracted 6-bit extraction code is M! (This is the address of the code extension table 9, fooollo) BiN.

この抽出した6ビツトのMH符号をステップ30でMH
符号伸長テーブルのオフセット量として、MH符号伸長
テーブル9のベースアドレスと加算して、MH符号伸長
テーブル9のアドレスを算出する。
The extracted 6-bit MH code is converted to MH in step 30.
The address of the MH code expansion table 9 is calculated by adding it to the base address of the MH code expansion table 9 as the offset amount of the code expansion table.

この算出したMH符号伸長テーブル9のアドレスを参照
して、符号長「5」と描画量「7」 (非圧縮符号)を
得る。
The code length "5" and the drawing amount "7" (uncompressed code) are obtained by referring to the calculated address of the MH code expansion table 9.

次に抽出開始点(r9J、)に符号長(r5J )を加
算して、次抽出開始点を算出する。
Next, the code length (r5J) is added to the extraction start point (r9J,) to calculate the next extraction start point.

以下、上記操作を繰り返すことにより、圧縮符号から、
非圧縮符号への変換を行なっていく。
From the compressed code, by repeating the above operation,
Conversion to uncompressed code is performed.

上記方法によるMH符号伸長テーブル9の大きさは、以
下のようになる。
The size of the MH code expansion table 9 according to the above method is as follows.

白色描画(2”X2)+ (26X2)=4224(バ
イト) 黒色描画(29X2)+ (26X2)=1152(バ
イト) 合計5376 (バイト)=5.25(Kバイト)上記
各抽出方法による1回のMH符号伸長時間とMH符号伸
長テーブル容量の関係は第5図に示すとおりである。こ
の第5図のαは固定抽出方法、βは可変抽出方法、γは
分割抽出方法をそれぞれ示し、この第5図にも示すとお
り、それぞれMH符号伸長テーブル容量は固定抽出方法
で32にバイト、可変抽出方法で5.2にバイト、分割
抽出方法で2にバイトである。
White drawing (2” x 2) + (26 The relationship between the MH code expansion time and the MH code expansion table capacity is shown in Figure 5. In Figure 5, α represents the fixed extraction method, β represents the variable extraction method, and γ represents the divided extraction method. As shown in FIG. 5, the MH code expansion table capacity is 32 bytes for the fixed extraction method, 5.2 bytes for the variable extraction method, and 2 bytes for the divided extraction method.

(発明の効果) 以上説明したように、請求項1の発明によれば、圧縮符
号であるMH符号により画像データを圧縮しているので
、描画すべき画像データが増加した場合、たとえば、2
倍、3倍、〜n倍になったとしても、圧縮符号により画
像データを示すため、2倍、3倍、〜n倍とはならず、
少ない画像データで示すことが可能となる点である。
(Effects of the Invention) As explained above, according to the invention of claim 1, since the image data is compressed by the MH code, which is a compression code, when the amount of image data to be drawn increases, for example, 2
Even if it becomes 2 times, 3 times, or ~n times, it will not be 2 times, 3 times, or ~n times because the image data is represented by compression code.
The point is that it can be shown with less image data.

請求項2の発明によれば、MH符号語の最大符号長13
ビツトを固定抽出方法にて抽出するため、かならず1回
のMH符号の読み出しにより、圧縮符号から非圧縮符号
への変換を行なうことが可能となる。
According to the invention of claim 2, the maximum code length of the MH code word is 13.
Since bits are extracted using a fixed extraction method, it is possible to convert a compressed code into an uncompressed code by reading the MH code only once.

また、1回の固定抽出方法にて、伸長処理を行なうため
、分割抽出、可変抽出、にょる場合よりも、簡略化を図
ることが可能となる。
In addition, since the decompression process is performed using a single fixed extraction method, it is possible to simplify the process compared to divided extraction, variable extraction, or other methods.

請求項3の発明によれば、MH符号データの中から分割
抽出方法によりMal符号語の最大符号長13ビツトを
分割にて抽出し、(符号長≧抽出ビット数)の関係か満
たされるまでの符号抽出と、MH符号伸長テーブルへの
アクセスを行なうことにより、MH符号伸長テーブルの
容量を削減することを可能とする効果がある。
According to the invention of claim 3, the maximum code length of 13 bits of the Mal code word is extracted by division from the MH code data by the division extraction method, and the maximum code length of 13 bits of the Mal code word is extracted by division until the relationship (code length ≧ number of extracted bits) is satisfied. By performing code extraction and access to the MH code expansion table, it is possible to reduce the capacity of the MH code expansion table.

請求項4の発明によれば、可変抽出方法により、MH符
号語の抽出する前に個々のMH符号語の特徴をまとめて
グループ化し、そのグループに見合った抽出を行い、抽
出するビット数はグループ別に可変となり、この抽出さ
れたビット数のMH符号語をMH符号伸長テーブルを参
照して非圧縮符号に変換するようにしたので、MH符号
伸長テーブル容量の削減とMH符号伸長速度の向上の両
方を満たすことを可能とする効果がある。
According to the invention of claim 4, before extracting the MH codeword, the features of the individual MH codewords are grouped together, and extraction is performed in accordance with the group, and the number of bits to be extracted is set according to the group. Since the MH code word with the extracted number of bits is converted into an uncompressed code by referring to the MH code expansion table, it is possible to both reduce the MH code expansion table capacity and improve the MH code expansion speed. It has the effect of making it possible to satisfy the following.

さらに、請求項5の発明によれば、描画色を決定してM
H符号語データの中から任意のMH符号語を抽出し、こ
の抽出したMH符号語をMH符号伸長テーブルを参照し
て非圧縮符号に変換して描画量を知るようにしたので、
MH符号伸長テーブルの容量が削減できるとともに、M
H符号伸長速度の向上が可能となる効果を奏する。
Furthermore, according to the invention of claim 5, the drawing color is determined and M
An arbitrary MH code word is extracted from the H code word data, and the extracted MH code word is converted to an uncompressed code by referring to the MH code expansion table to know the amount of drawing.
The capacity of the MH code expansion table can be reduced, and the M
This has the effect of making it possible to improve the H code decompression speed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の描画装置の概略構成を示すブロック図
、第2図は固定抽出方法を適用するこの発明のMH符号
伸長方法の概略説明図、第3図は分割抽出方法を適用す
るこの発明のMH符号伸長方法の概略説明図、第4図は
可変抽出方法を適用するこの発明のMH符号伸長方法の
概略説明図、第5図は固定抽出方法、可変抽出方法、お
よび分割抽出方法による1回のMI(符号伸長時間とM
H符号伸長テーブル容量の関係を示す説明図である。 1・・・ホストコンピュータ、1a・・・文字データ、
1b・・・図形データ、  1c・・・画像データ、2
・・・描画装置、    2a・・・文字展開処理部、
2b・・・図形展開処理部、2c・・・画像展開処理部
、2cl・・・画像データ制御処理部、 2c2・・・MH符号伸長処理部、 2c3・・・クリップ処理部、 2c4・・・描画処理部、 2c5・・・オフラインデータ処理部、3〜7・・・M
H符号伸長テーブル。 第2図 第3図
FIG. 1 is a block diagram showing a schematic configuration of the drawing device of the present invention, FIG. 2 is a schematic explanatory diagram of the MH code decompression method of the present invention applying the fixed extraction method, and FIG. A schematic explanatory diagram of the MH code decompression method of the invention, FIG. 4 is a schematic explanatory diagram of the MH code decompression method of the present invention applying a variable extraction method, and FIG. One MI (code decompression time and M
FIG. 3 is an explanatory diagram showing the relationship between H code expansion table capacities. 1... host computer, 1a... character data,
1b...Graphic data, 1c...Image data, 2
...Drawing device, 2a...Character expansion processing unit,
2b...Graphic expansion processing unit, 2c...Image expansion processing unit, 2cl...Image data control processing unit, 2c2...MH code expansion processing unit, 2c3...Clip processing unit, 2c4... Drawing processing unit, 2c5...Offline data processing unit, 3 to 7...M
H code expansion table. Figure 2 Figure 3

Claims (5)

【特許請求の範囲】[Claims] (1)個々のMH符号に対応したMH符号伸長テーブル
を参照してMH符号語を、非圧縮符号に変換することを
特徴とするMH符号伸長方法。
(1) An MH code expansion method characterized by converting an MH code word into an uncompressed code by referring to an MH code expansion table corresponding to each MH code.
(2)MH符号データの中から、1回の抽出で、必ず一
つ以上のMH符号語を含むように固定抽出方法で抽出し
、この抽出したMH符号語を1回のMH符号伸長テーブ
ルを参照して非圧縮符号に変換することを特徴とするM
H符号伸長方法。
(2) Extract from MH code data using a fixed extraction method so that one extraction always includes at least one MH code word, and use this extracted MH code word in a single MH code expansion table. M characterized in that it is converted into an uncompressed code by referring to
H code expansion method.
(3)MH符号データの中から、A(A=1、2、3・
・・)回の分割抽出方法で抽出を行ない、各回の抽出毎
に、MH符号伸長テーブルを参照し、一つ以上のMH符
号語が抽出されたときにこの抽出されたMH符号語を非
圧縮符号に変換することを特徴とするMH符号伸長方法
(3) From the MH code data, select A (A=1, 2, 3.
) Extraction is performed using the divided extraction method, and for each extraction, the MH code expansion table is referred to, and when one or more MH code words are extracted, the extracted MH code words are uncompressed. An MH code expansion method characterized by converting into a code.
(4)MH符号データの中から可変抽出方法により任意
に抽出しようとするMH符号語も含むB(B=1、2、
3・・・)ビットのビット情報により、抽出するビット
数を可変長とし、この抽出された可変長のビット数のM
H符号語をMH符号伸長テーブルを参照して非圧縮符号
に変換することを特徴とするMH符号伸長方法。
(4) B (B=1, 2,
3...) The number of bits to be extracted is set to a variable length according to the bit information of the bit, and the number of bits of the extracted variable length is M.
An MH code expansion method characterized by converting an H code word into an uncompressed code by referring to an MH code expansion table.
(5)MH符号伸長テーブルと、描画色を決定する手段
と、MH符号データの中から任意のMH符号語を抽出す
る手段と、この手段で抽出されたMH符号語をMH符号
伸長テーブルを参照して非圧縮符号に変換する手段とを
備えたことを特徴とする描画装置。
(5) An MH code expansion table, a means for determining a drawing color, a means for extracting an arbitrary MH code word from the MH code data, and an MH code word extracted by this means with reference to the MH code expansion table. and means for converting the data into an uncompressed code.
JP2307275A 1990-11-15 1990-11-15 Code decompression method and drawing device Expired - Fee Related JP2689020B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2307275A JP2689020B2 (en) 1990-11-15 1990-11-15 Code decompression method and drawing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2307275A JP2689020B2 (en) 1990-11-15 1990-11-15 Code decompression method and drawing device

Publications (2)

Publication Number Publication Date
JPH04180469A true JPH04180469A (en) 1992-06-26
JP2689020B2 JP2689020B2 (en) 1997-12-10

Family

ID=17967166

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2307275A Expired - Fee Related JP2689020B2 (en) 1990-11-15 1990-11-15 Code decompression method and drawing device

Country Status (1)

Country Link
JP (1) JP2689020B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0686081A (en) * 1992-09-07 1994-03-25 Mitsubishi Electric Corp Compressed data expanding device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58170280A (en) * 1982-03-31 1983-10-06 Fujitsu Ltd Decoding system of mh code
JPS59146265A (en) * 1983-02-09 1984-08-22 Hitachi Ltd Picture signal decoding system
JPS60257668A (en) * 1984-06-05 1985-12-19 Canon Inc Encoder for compression code

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58170280A (en) * 1982-03-31 1983-10-06 Fujitsu Ltd Decoding system of mh code
JPS59146265A (en) * 1983-02-09 1984-08-22 Hitachi Ltd Picture signal decoding system
JPS60257668A (en) * 1984-06-05 1985-12-19 Canon Inc Encoder for compression code

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0686081A (en) * 1992-09-07 1994-03-25 Mitsubishi Electric Corp Compressed data expanding device

Also Published As

Publication number Publication date
JP2689020B2 (en) 1997-12-10

Similar Documents

Publication Publication Date Title
US20030164975A1 (en) Image processing apparatus and image processing method
JPS62298280A (en) Image encoding method
JP2000295113A (en) Huffman coded data compressor
US6798914B1 (en) Neural-network-based method of image compression
US4972497A (en) Image coding system
JPH05183443A (en) Code conversion method
JPH04180469A (en) Code extending method and plotting device
US20040141655A1 (en) Method and apparatus for image processing
US6658156B1 (en) Information processing apparatus and method
US20020001414A1 (en) System for building a data compression encoder
CN1656688B (en) Processing digital data prior to compression
JP2001217722A (en) Device and method for encoding information, and computer readable storage medium
JPH06217110A (en) Image converting method
Rincy et al. Preprocessed text compression method for Malayalam text files
JPH02190080A (en) Picture encoding device
JPH08162973A (en) Data processing method and device and information system using this data processor
JP3796235B2 (en) Image compression and decompression method
JPH03133263A (en) Picture data compression system
JPH118771A (en) Image output device/method and storage medium storing program which computer can read
JPH06152988A (en) Decoder for variable length encoding
KR100434727B1 (en) Method for inserting password in image file
JPH11259636A (en) Image converting method
JP4399965B2 (en) Printing apparatus and printing method
JP2503225B2 (en) Data compression method
JPH0311883A (en) Decoding system for variable length code, and facsimile equipment and still picture transmission system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees