JPH01174165A - Image data processing unit - Google Patents

Image data processing unit

Info

Publication number
JPH01174165A
JPH01174165A JP62334756A JP33475687A JPH01174165A JP H01174165 A JPH01174165 A JP H01174165A JP 62334756 A JP62334756 A JP 62334756A JP 33475687 A JP33475687 A JP 33475687A JP H01174165 A JPH01174165 A JP H01174165A
Authority
JP
Japan
Prior art keywords
signal line
register
color information
run length
output
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
JP62334756A
Other languages
Japanese (ja)
Other versions
JP2809635B2 (en
Inventor
Shigehiro Kajiwara
梶原 茂弘
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP62334756A priority Critical patent/JP2809635B2/en
Publication of JPH01174165A publication Critical patent/JPH01174165A/en
Application granted granted Critical
Publication of JP2809635B2 publication Critical patent/JP2809635B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To execute direct magnification and reduction to a compressed data by subtracting repetitively a reciprocal of designated magnification from run length information till the result of reduction reaches zero or negative and outputting the same color information by the number of times of subtraction. CONSTITUTION:An MH code inputted to a signal line 1 is decoded by a decode section 2 and the outputted color information is latched in a register 22 and a run length is latched by a register 10 respectively as the result of decoding. Then a reciprocal of a multiple given to the register 13 is subtracted from the content of the register 10 by a subtractor 16 synchronously with the clock CLK and the result of subtraction is latched in the register 10. The subtraction is implemented until the result of subtraction reaches '0' or negative and the color information latched in the register 22 is outputted by the number of times of subtraction. Thus, the image data magnified and reduced is obtained according to the said designation multiple.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、−次元方向に圧縮されたイメージデータの伸
張処理(符号−復号処理)と、指定倍率に従うイメージ
の拡大・縮小処理を同時に実行可能としたイメージデ ータ処理装置に関する。
Detailed Description of the Invention (Field of Industrial Application) The present invention simultaneously executes decompression processing (encoding/decoding processing) of image data compressed in the -dimensional direction and processing of enlarging/reducing the image according to a specified magnification. The present invention relates to an image data processing device that enables image data processing.

(従来の技術) 従来、圧縮データを伸張処理し、同処理によって得られ
たイメージデータを拡大、縮小する場合、これらの処理
は別々に行なわれていた。即ち第6図に示すように、圧
縮データを一旦イメージデータに伸張し、その伸張処理
したイメージデータに拡大・縮小の処理を施していた。
(Prior Art) Conventionally, when compressed data is expanded and image data obtained by the same process is enlarged or reduced, these processes are performed separately. That is, as shown in FIG. 6, compressed data is once expanded into image data, and the expanded image data is subjected to enlargement/reduction processing.

そのため、バイブライン処理等の特別のアーキテクチャ
を採用しない限り、伸張と拡大・縮小を並行して行なう
ことができず、従って処理時間が伸張処理と拡大・縮小
処理の2つの処理時間の和になってしまう。また、パイ
プライン処理を行なっても原画像の伸張後のイメージデ
ータの大きさが一定であれば、第6図のバスBus−A
を流れるデータ量は一定であり、縮小時はこの転送速度
で処理時間が決まる。このことは逆にいえばA4 8本
/ mmの表示器にA4 8本/ mmのデータを表示
する場合に比べて、A418本/ muのデータを表示
するのは4倍の時間がかかることになる。
Therefore, unless a special architecture such as vibline processing is adopted, decompression and enlargement/reduction cannot be performed in parallel, and therefore the processing time becomes the sum of the two processing times: decompression processing and enlargement/reduction processing. It ends up. In addition, if the size of the image data after expanding the original image is constant even if pipeline processing is performed, the bus Bus-A in FIG.
The amount of data flowing through is constant, and the processing time is determined by this transfer rate during reduction. Conversely, this means that it takes four times as long to display A4 18 lines/mu data as it does to display A4 8 lines/mm data on an A4 8 lines/mm display. Become.

具体例として、第2図のようなM H(Modifye
dllaff[1Ian)符号を考える。第2図のA)
〜(F)のコードを伸張すると、第5図の入力側の20
ビツト(20ビツト分)のイ メージとなる。第6図のバスBLIS−Aが1ビツトの
場合、この20ビツトを処理するには20サイクル必要
になる。拡大の場合は出力が入力よりも多いため処理時
間は倍率によって異なる。
As a specific example, M H (Modify
Consider the dllaff[1Ian) code. A) in Figure 2
When the code of ~(F) is expanded, 20 on the input side of Figure 5
This is an image of bits (20 bits). If the bus BLIS-A in FIG. 6 has 1 bit, 20 cycles are required to process this 20 bits. In the case of enlargement, the output is greater than the input, so the processing time varies depending on the magnification.

(発明が解決しようとする問題点) 上述したように従来では、圧縮データを伸張処理し、同
処理によって得られたイメージデータを拡大・縮小する
とき、圧縮データを伸張処理した後に、そのイメージデ
ータに拡大・縮小処理を施しており、伸張処理と拡大・
縮小処理の2つの処理を別々に行なっていた。従って処
理時間が伸張処理と拡大・縮小処理の2つの処理時間の
和となり、高速のイメージ処理が実現できなかった。
(Problems to be Solved by the Invention) As described above, conventionally, when compressed data is decompressed and image data obtained by the same process is enlarged or reduced, after decompressing the compressed data, the image data is Expansion processing and expansion/reduction processing are applied to the image.
The two reduction processes were performed separately. Therefore, the processing time becomes the sum of the two processing times of decompression processing and enlargement/reduction processing, making it impossible to realize high-speed image processing.

そこで高速イメージ処理を実現すべく伸張処理と拡大・
縮小処理をパイプライン処理機構により並行して行なう
ことが考えられるが、この際は処理機構の繁雑化、高価
格化を招く一方、全体の処理速度の向上はさほど期待で
きないという問題があった。
Therefore, in order to achieve high-speed image processing, decompression processing and enlargement/
It is conceivable to perform the reduction processing in parallel using a pipeline processing mechanism, but in this case there is a problem that the processing mechanism becomes complicated and expensive, and the overall processing speed cannot be expected to improve much.

本発明は上記実情に鑑みなされたもので、パイプライン
処理等による特別のアーキテクチャを採らずに比較的簡
単かつ安価な構成で、−次元方向に圧縮されたイメージ
データの伸張処理と指定倍率に従うイメージの拡大・縮
小処理を同時に実行可能としたイメージデータ処理装置
を提供することを目的とする。
The present invention has been made in view of the above-mentioned circumstances, and has a relatively simple and inexpensive configuration without employing a special architecture such as pipeline processing. An object of the present invention is to provide an image data processing device that can simultaneously perform enlargement and reduction processing.

[発明の構成] (問題点を解決するための手段) 本発明は、圧縮データを一旦伸張してから拡大・縮小す
るのではなく、圧縮データから直接に指定倍率に従う拡
大・縮小されたイメージデータを得るもので、圧縮デー
タから色情報とランレングス情報を得る手段と、そのラ
ンレングス情報から指定倍率の逆数を減算して、その結
果が零又は負になるまでの減算を繰返し、その減算回数
だけ上記色情報と同一の色情報を出力する手段とを有し
てなる。
[Structure of the Invention] (Means for Solving the Problems) The present invention does not expand or reduce compressed data once and then expand or reduce the image data directly from the compressed data according to a specified magnification. The method is to obtain color information and run length information from compressed data, subtract the reciprocal of the specified magnification from the run length information, repeat the subtraction until the result becomes zero or negative, and calculate the number of subtractions. and means for outputting the same color information as the above color information.

(作用) 圧縮データをデコードして色情報とランレングス情報を
得、そのランレングス情報から指定倍率の逆数を減算し
て、その結果が零又は負になるまでの減算を繰返し、そ
の減算回数だけ上記色情報と同一の色情報を出力して、
指定倍率に従うイメージデータを得る。このようなイメ
ージ処理により、パイプライン処理等による特別のアー
キテクチャを採らずに比較的簡単かつ安価な構成で、−
次元方向に圧縮されたイメージデータの伸張処理と指定
倍率に従うイメージの拡大・縮小処理が同時に実行可能
となる。更に縮小時に於いて縮小前のイメージデータを
一旦生成する必要がないことから、圧縮データの人力速
度が充分速ければ縮小比が大きい程、処理時間が短くな
り、第6図のパイプライン処理よりも高速の処理が可能
となる。
(Operation) Decode the compressed data to obtain color information and run length information, subtract the reciprocal of the specified magnification from the run length information, and repeat the subtraction until the result becomes zero or negative, for the number of times of subtraction. Output the same color information as the above color information,
Obtain image data according to the specified magnification. With this kind of image processing, −
It becomes possible to simultaneously perform decompression processing of image data compressed in the dimensional direction and processing of enlarging/reducing the image according to a specified magnification. Furthermore, since there is no need to once generate image data before reduction during reduction, if the manual speed of the compressed data is sufficiently fast, the processing time will be shorter as the reduction ratio becomes larger, which is faster than the pipeline processing shown in Figure 6. High-speed processing becomes possible.

(実施例) 以下図面を参照して本発明の一実施例を説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明による装置の一実施例を示す回路ブロッ
ク図である。尚、ここでは入力される一次元の圧縮コー
ドとして、MH符号を例にとる。
FIG. 1 is a circuit block diagram showing one embodiment of a device according to the present invention. Here, an MH code is taken as an example of the input one-dimensional compressed code.

図中、■は伸張(復号化)及び拡大・縮小の対象となる
圧縮コード、即ち、ここでは第2図に示すようなMH符
号を入力する信号線である。2は同MH符号をデコード
し、ランレングス情報を信号線3上に、又、色情報(白
か黒かを“L“か“H”かで表わす)を信号線4上に出
力するデコード部である。5はランレングス情報(以下
単にランレングスと称す)の各ビットに対応して設けら
れたアンドゲートであり、信号線19が“H”(高レベ
ル)の時、人力されたランレングスをそのまま信号線6
に出力し、信号線I9が“L” (低レベル)の時は信
号線6への出力を“0” (全ビット“L“)にする。
In the figure, ■ is a signal line for inputting a compressed code to be expanded (decoded) and expanded/reduced, that is, an MH code as shown in FIG. 2 here. 2 is a decoding unit that decodes the MH code and outputs run length information on the signal line 3 and color information (white or black is expressed as "L" or "H") on the signal line 4. It is. 5 is an AND gate provided corresponding to each bit of run length information (hereinafter simply referred to as run length), and when the signal line 19 is "H" (high level), the manually inputted run length is directly signaled. line 6
When the signal line I9 is "L" (low level), the output to the signal line 6 is set to "0" (all bits are "L").

7はアンドゲート5より出力される信号線G上のデータ
と減算器1Bの出力データ17とを加算する加算器であ
り、その和を信号線8に出力する。また和が「0」以下
の場合は信帰線9に“H“を出力する。lOは信号線1
1のクロック(CLK)に同期して入力データをラッチ
するレジスタであり、加算器7より得られる信号線8上
の和を上位に、減算器16の差の小数部(後述する)を
下位にそれぞれ入力し、ラッチして信号線I2に出力す
る。18は復号イメージデータに対する指定倍率の逆数
をセットするレジスタである。
7 is an adder that adds the data on the signal line G output from the AND gate 5 and the output data 17 of the subtracter 1B, and outputs the sum to the signal line 8. If the sum is "0" or less, "H" is output to the signal feedback line 9. lO is signal line 1
This is a register that latches input data in synchronization with the clock (CLK) of 1, and the sum on the signal line 8 obtained from the adder 7 is placed in the upper part, and the decimal part of the difference from the subtracter 16 (described later) is placed in the lower part. They are respectively input, latched, and output to the signal line I2. 18 is a register for setting the reciprocal of the specified magnification for decoded image data.

このレジスタ13の出力はアンドゲート14に入力され
、信号線21上の信号が“L”のときマスクされて同ゲ
ートの信号出力線15が“0”となり、又、信号線21
が“H“のときレジスタ13の内容が信号線15に出力
される。16はレジスタlOの出力信号線I2の内容か
らアンドゲートI4の出力信号線I5の内容を引く減算
器である。
The output of this register 13 is input to the AND gate 14, and when the signal on the signal line 21 is "L", it is masked and the signal output line 15 of the same gate becomes "0", and the signal line 21
When is “H”, the contents of the register 13 are output to the signal line 15. 16 is a subtracter that subtracts the content of the output signal line I5 of the AND gate I4 from the content of the output signal line I2 of the register IO.

ここで倍率の精度を、整数部16ビツト、小数部16ビ
ツトとする。この場合、レジスタ13は32ビツト幅と
なる。ランレングス情報は整数であるから、信号線3,
6.8はそれぞれ16ビツト幅である。
Here, the accuracy of the magnification is assumed to be 16 bits for the integer part and 16 bits for the decimal part. In this case, register 13 is 32 bits wide. Since the run length information is an integer, signal line 3,
6.8 are each 16 bits wide.

減算器16の減算結果は32ビツトであり、整数部16
ビツトを信号線17に、小数部16ビツトを信号線18
にそれぞれ出力する。また、上記減算の結果、差が「0
」以下のときは信号線19にH″を出力する。そして上
記信号線17の整数部のデータは加算器7に、又、信号
線18上の小数部のデータはレジスタ10の下位に入力
される。レジスタ1oの出力信号線12は32ビツト幅
である。
The subtraction result of the subtracter 16 is 32 bits, and the integer part 16
The bits are connected to signal line 17, and the 16 bits of the decimal part are connected to signal line 18.
Output each. Also, as a result of the above subtraction, the difference is “0”
'', outputs H'' to the signal line 19. Then, the integer part data on the signal line 17 is input to the adder 7, and the decimal part data on the signal line 18 is input to the lower register 10. The output signal line 12 of register 1o is 32 bits wide.

20は次のサイクルの出力を決定する論理回路であり、
その信号状態を21に出力する。22はデコード部2が
出力する信号線4上の色情報をラッチするレジスタであ
り、クロック(CLK)に同期して信号線19が“H”
のとき信号線4の値をラッチし、信号線19が“L“の
ときホールドする。23はレジスタ22の出力である。
20 is a logic circuit that determines the output of the next cycle;
The signal state is outputted to 21. 22 is a register that latches the color information on the signal line 4 output by the decoding section 2, and the signal line 19 is set to "H" in synchronization with the clock (CLK).
When the signal line 19 is at "L", the value on the signal line 4 is latched, and when the signal line 19 is at "L", it is held. 23 is the output of the register 22.

レジスタ22の出力か有効であるとき信号線21は“L
″になる。
When the output of the register 22 is valid, the signal line 21 is “L”.
"become.

尚、MH符号の入力信号線lは信号線19が“H“のと
き次のサイクルに移る。即ち信号線11にクロック(C
LK)が入力されると次のコードが与えられる。デコー
ド部2は入力が与えられると同一サイクル内でランレン
グスを信号線3に、色情報を信号線4にそれぞれ出力す
る。信号線19が“L”のとき入力(MH符号)は変化
しないものとする。
Note that the input signal line l of the MH code moves to the next cycle when the signal line 19 is at "H". That is, a clock (C
When LK) is input, the following code is given. When the decoder 2 receives an input, it outputs the run length to the signal line 3 and the color information to the signal line 4 within the same cycle. It is assumed that the input (MH code) does not change when the signal line 19 is "L".

第2図乃至第5図はそれぞれ上記実施例の動作を説明す
るためのもので、第2図は信号線1に入力されたMH符
号の人カバターン例を示す図である。
2 to 5 are for explaining the operation of the above embodiment, respectively, and FIG. 2 is a diagram showing an example of a human cover turn of the MH code input to the signal line 1.

第3図及び第4図はそれぞれ上記第1図に示す各信号線
(3,4,6,9,12,15,17,18,19゜2
1、23)上の信号状態と動作ステップ81〜SIOと
の関係を示す図であり、ここで(17,18)は整数部
の信号線(バス) 17と少数部の信号線(バス)I8
をペアにして読んだ数を意味する。(8,18)も同様
である。尚、ここでは複数ビットの信号線(バス)で表
現されるデータ(数値)を10進法で表現し、 1ビツ
トの信号をH/Lで表現している。
Figures 3 and 4 respectively show the signal lines (3, 4, 6, 9, 12, 15, 17, 18, 19°2) shown in Figure 1 above.
1, 23) is a diagram showing the relationship between the above signal states and operation steps 81 to SIO, where (17, 18) is the integer part signal line (bus) 17 and the decimal part signal line (bus) I8.
means the number of pairs read. The same applies to (8, 18). Note that here, data (numeric values) expressed by multiple-bit signal lines (buses) are expressed in decimal notation, and 1-bit signals are expressed in H/L.

第5図は入力ドツトパターンと出力ドツトパターンの関
係を示したもので、ここでは第2図の入カバターンに従
う一次元ドットパターンを 215倍して出力する場合
を例に示している。
FIG. 5 shows the relationship between the input dot pattern and the output dot pattern. Here, an example is shown in which the one-dimensional dot pattern according to the input pattern shown in FIG. 2 is multiplied by 215 and output.

ここで上記第1図乃至第5図を参照して本発明の一実施
例による動作を説明する。
The operation of one embodiment of the present invention will now be described with reference to FIGS. 1 to 5.

本発明の一実施例による動作を説明するに際して、本発
明の動作原理を説明する。
In explaining the operation of one embodiment of the present invention, the principle of operation of the present invention will be explained.

MF符号の場合、それをデコードすることにより、色(
白か黒か)およびそのランレングス(長さ)を得ること
ができる。
In the case of MF code, by decoding it, the color (
white or black) and its run length.

本発明ではMH符号以外であっても、それをデコードす
ることにより色及びランレングスを得ることができれば
どのような符号であってもよいが、ここではその代表と
してMH符号を取上げている。
In the present invention, any code other than the MH code may be used as long as the color and run length can be obtained by decoding it, but the MH code is taken up here as a representative example.

本発明は上記の如くして得られたランレングスより倍率
の逆数を引き、結果が「0」または負になるまでその引
算を繰返し、その色を出力するものである。例えば色が
白でランレングスが「4」のデータを!/2に縮小する
場合、倍率(1/2)の逆数は「2」であるから、 ここでは「2」が2回引けるので、出力として、白を2
ドツト出力する。
The present invention subtracts the reciprocal of the magnification from the run length obtained as described above, repeats the subtraction until the result becomes "0" or negative, and outputs the color. For example, the color is white and the run length is "4"! When reducing the size to /2, the reciprocal of the magnification (1/2) is 2, so 2 can be subtracted twice, so the output is 2 white.
Outputs dots.

又、同じ入力データを2倍に拡大する場合、4−0. 
5−3. 5 3. 5−0. 5−3 3−0. 5−2. 5 2、 5−0. 5−2 2−0. 5−1. 5 1.5−屹 5−1 1−0. 5−0. 5 0、 5−0. 5−0 この際は0,5が8回引けるので白を8ドツト出力すれ
ばよい。
Also, when expanding the same input data twice, 4-0.
5-3. 5 3. 5-0. 5-3 3-0. 5-2. 5 2, 5-0. 5-2 2-0. 5-1. 5 1.5-屹 5-1 1-0. 5-0. 5 0, 5-0. 5-0 In this case, since 0 and 5 can be subtracted 8 times, it is sufficient to output 8 dots of white.

倍率の逆数を引いた結果が「0」または負になった場合
、次のコードの色及びランレングスを得、ランレングス
を先程の減算結果に加算する。そしてその加算結果から
倍率の逆数を繰返し減算する。
If the result of subtracting the reciprocal of the magnification is "0" or negative, obtain the color and run length of the next code, and add the run length to the previous subtraction result. Then, the reciprocal of the magnification is repeatedly subtracted from the addition result.

これを繰返すことにより伸張と同時に拡大・縮小を行な
うことができる。
By repeating this process, expansion and reduction can be performed simultaneously with expansion.

第1図の回路を上記した動作原理に対応させると、信号
線lに入力されたMH符号はデコード部2でデコードさ
れ、色情報が信号線4に、ランレングスが信号線3に出
力される。そして色情報をレジスタ22に、ランレング
スをレジスタ10にそれぞれラッチし、入力信号線1上
には次のコードを与える。そしてクロック(CLK)に
同期して、レジスタ10の内容からレジスタ13に与え
られた倍数の逆数を減算器16で減算し、その減じた結
果をレジスタIOにラッチする。また減算結果が「0」
または負になった場合、次のランレングス情報を加算器
7により加算してその結果をレジスタ10にラッチさせ
ている。縮小・拡大した結果は信号線23に出力される
が、各サイクル毎に常に出力結果が得られるわけでは無
い(詳細は後述する)ので、信号線23に出力されてい
るデータが有効か否かを示す出力として信号線21が存
在する。従って出力されるイメージデータは信号線21
が“H”のとき信号線23上の色出力をクロック(CL
K)に同期してラッチすれば得ることができる。
When the circuit of FIG. 1 is made to correspond to the above-mentioned operating principle, the MH code input to the signal line 1 is decoded by the decoder 2, the color information is output to the signal line 4, and the run length is output to the signal line 3. . Then, the color information is latched into the register 22, the run length is latched into the register 10, and the following code is applied to the input signal line 1. Then, in synchronization with the clock (CLK), the subtracter 16 subtracts the reciprocal of the multiple given to the register 13 from the contents of the register 10, and the subtracted result is latched in the register IO. Also, the subtraction result is “0”
Or, if it becomes negative, the next run length information is added by the adder 7 and the result is latched in the register 10. The reduced/enlarged results are output to the signal line 23, but since the output results are not always obtained in each cycle (details will be described later), it is important to check whether the data being output to the signal line 23 is valid or not. A signal line 21 exists as an output indicating. Therefore, the image data that is output is the signal line 21.
is “H”, the color output on the signal line 23 is clocked (CL
This can be obtained by latching in synchronization with K).

次に実施例による具体的な動作を説明する。ここでは第
1図の回路に第2図のMH符号が与えられ、それを21
5倍する場合を考える。倍率は215倍であるので、そ
の逆数のr2.5Jをレジスタ13に設定する。また、
初期状態としてレジスタ20.22は“L”に、レジス
タ10は「0」に設定しておく。そして信号線1上の最
初の人力(MH符号)がデコード部2によりデコードさ
れて、信号線3上にはランレングス情報として「5」が
、又、デコード部2上には“白”を示す色情報“L”が
それぞれ出力されているものとする。この状態以後の動
作を第3図を参照して説明する。
Next, specific operations according to the embodiment will be explained. Here, the MH code shown in Fig. 2 is given to the circuit shown in Fig. 1, and it is
Consider the case of multiplying by 5. Since the magnification is 215 times, the reciprocal number r2.5J is set in the register 13. Also,
As an initial state, registers 20 and 22 are set to "L" and register 10 is set to "0". Then, the first human input (MH code) on the signal line 1 is decoded by the decoder 2, and "5" is displayed as run length information on the signal line 3, and "white" is displayed on the decoder 2. It is assumed that color information "L" is output. The operation after this state will be explained with reference to FIG.

第3図は、クロック(CLK)に同期する動作ステップ
毎の各部の値を書出したものである。この第3図のサイ
クルに沿って以後の動作を説明する。
FIG. 3 shows the values of each part for each operation step synchronized with the clock (CLK). The subsequent operation will be explained along the cycle shown in FIG.

尚、図中の各ステップSt、S2.S3.・・・SlO
の間に於いてクロック(CLK)が発生される。
Note that each step St, S2 . S3. ... SlO
A clock (CLK) is generated during this period.

Sル ジメタ20の出力信号線21は“L2なので、アンドゲ
ート14の出力信号線15は「0」となり、その減算結
果もro、OJ  (信号線17.18が共にrOJ 
) 、信号線19は“Hlとなる。これによりデコード
部2より出力された最初のランレングス「5」がアンド
ゲート5を介して信号線6に出力され、更に信号線17
上の整数部の減算結果データ「0」と共に加算器7に供
給されて加算される。
Since the output signal line 21 of the S-digital meta 20 is "L2", the output signal line 15 of the AND gate 14 is "0", and the subtraction results are also ro, OJ (signal lines 17 and 18 are both rOJ
), the signal line 19 becomes "Hl". As a result, the first run length "5" outputted from the decoding section 2 is outputted to the signal line 6 via the AND gate 5, and further to the signal line 17.
It is supplied to the adder 7 together with the subtraction result data "0" of the integer part above and added.

この加算の結果、加算器7の出力信号線8上には「5」
が出力され、このデータがその後の最初のクロック(C
LK)に同期してレジスタIOにラッチされる。又、こ
の際は信号線19が“H“であるから、デコード部2よ
り出力された信号線4上の最初の色である白を示す色情
報“L″が22に人力される。更に加算器7の出力信号
線8が「5」であるから、加算器7の符号出力信号線9
は“L”になり、次のサイクルでレジスタ20は“H”
にセットされる。従って次のサイクルでは論理回路2゜
の出力信号線21が“H″となり、信号線23より出力
される“白゛ (“L“)の色情報が有効であることを
示す。また入力信号線l上の入力データ(MH符号)も
 4ビツトシフトし、デコード部2によりデコードされ
て、次のサイクルでは信号線3上にランレングスとして
「3」、信号線4上に色情報として黒“H”が得られる
As a result of this addition, "5" appears on the output signal line 8 of the adder 7.
is output, and this data is then used as the first clock (C
LK) is latched into register IO in synchronization with LK. Also, at this time, since the signal line 19 is "H", color information "L" indicating white, which is the first color on the signal line 4 outputted from the decoding section 2, is manually inputted to 22. Furthermore, since the output signal line 8 of the adder 7 is "5", the sign output signal line 9 of the adder 7
becomes “L” and the register 20 becomes “H” in the next cycle.
is set to Therefore, in the next cycle, the output signal line 21 of the logic circuit 2 becomes "H", indicating that the "white"("L") color information output from the signal line 23 is valid. The input data (MH code) on I is also shifted by 4 bits and decoded by the decoder 2, and in the next cycle, "3" is placed on the signal line 3 as the run length, and black "H" is placed on the signal line 4 as the color information. is obtained.

82〜54 SLの場合と同様に減算結果が「0」以下、すなわち信
号線19が“H”の時には、次のランレングスを加算し
てレジスタ10にセットし、その色情報をレジスタ22
にセットする。減算結果が正の場合、すなわち信号線1
9が“L”の時にはレジスタIOの内容から倍率の逆数
(レジスタ13の値)を減じる。
82-54 As in the case of SL, when the subtraction result is "0" or less, that is, when the signal line 19 is "H", the next run length is added and set in the register 10, and the color information is stored in the register 22.
Set to . If the subtraction result is positive, that is, signal line 1
When 9 is "L", the reciprocal of the magnification (value of register 13) is subtracted from the contents of register IO.

減算結果が負で、なおかつ次のランレングスを加算して
も結果が負の場合(信号線19,9が共にH#)、その
ランレングスのデータは縮小により失われてしまったと
いう意味で無視する。そのため、次のクロック(CLK
)で論理回路20のレジスタを“L″にセットし、レジ
スタ22の出力が無効であることを示す。すなわちこの
論理回路20は縮小の際、選択されない入力ビットを無
視する所謂間引きの縮小を行なっている。尚、ランレン
グスを加算した結果、信号線8が負の間のデータを捨て
ずに何らかの処理を施し、次の色(レジスタ22の値)
を決定するようにすれば、間引き以外の縮小を行なえる
If the result of subtraction is negative, and the result is negative even after adding the next run length (signal lines 19 and 9 are both H#), the data for that run length is ignored as it has been lost due to reduction. do. Therefore, the next clock (CLK
) sets the register of the logic circuit 20 to "L", indicating that the output of the register 22 is invalid. That is, this logic circuit 20 performs so-called thinning-out reduction in which unselected input bits are ignored during reduction. As a result of adding the run lengths, some processing is performed without discarding the data while the signal line 8 is negative, and the next color (value of register 22) is
By determining this, reduction other than thinning out can be performed.

信号線21が“L”のため、アンドゲート14の出力信
号線15は「0」となる。これより、レジスタIOの値
(−1,0)にそのまま次のランレングスが加算される
。今度は信号線8,18が正のため、次のクロック(C
LK)で論理回路20のレジスタは“H″となる。
Since the signal line 21 is at "L", the output signal line 15 of the AND gate 14 is at "0". From this, the next run length is directly added to the value (-1, 0) of the register IO. This time, since signal lines 8 and 18 are positive, the next clock (C
LK), the register of the logic circuit 20 becomes "H".

87〜5lO 82〜S4と同様の処理を行ない、縮小結果を出力する
87-5lO Performs the same processing as 82-S4 and outputs the reduction result.

以上の処理に於いて、色情報出力(信号線23の値)が
有効であることを示す出力信号線21が“H′の時の色
情報出力信号線23を抜出して並べると第5図のように
なる。これは第2図の入カバターンに於いて(A)〜(
F)まで伸張後、縮小前のイメージで考えて20ドツト
のデータを処理し、それによって8ドツト(215倍)
の出力が得られたことを意味する。
In the above process, when the color information output signal line 23 when the output signal line 21 indicating that the color information output (value of the signal line 23) is "H'" is extracted and arranged, the result is shown in FIG. This is shown in (A) to ( in the input cover pattern in Figure 2).
After expanding to F), we process 20 dots of data considering the image before reduction, and thereby 8 dots (215x).
This means that the output is obtained.

また、この処理例に於いてどのような間引き(縮小)を
行なっているかを知るために入力に順番号(1〜6)を
割当て、レジスタ22の出力も順番号(0〜5)をとり
、ランレングス(信号線3の値)は全て「0」であると
して、どの色が有効となって出力されるかを第4図を用
いて見てみる。
In addition, in order to know what kind of thinning (reduction) is being performed in this processing example, a sequential number (1 to 6) is assigned to the input, and the output of the register 22 also takes a sequential number (0 to 5). Assuming that the run lengths (values of signal line 3) are all "0", let's examine which colors are valid and output using FIG. 4.

これによると入力されたデータのうち、「1」の色と「
3」の色にのみ有効フラグが立っている(信号線21の
値が“H”)ことが分る。また、S6の状態は色を除い
てSlの状態と同一であり、S6からはS1〜S5の繰
返しとなる。従って処理された20ビツトのイメージか
ら第5図のように間引いて8ビツトのイメージを得たこ
とになる。
According to this, among the input data, the color of "1" and "
It can be seen that the valid flag is set only for the color "3" (the value of the signal line 21 is "H"). Further, the state of S6 is the same as the state of Sl except for the color, and from S6 onwards, S1 to S5 are repeated. Therefore, an 8-bit image is obtained by thinning out the processed 20-bit image as shown in FIG.

拡大を行なう場合も縮小の場合と同様の動作をする。但
し拡大の場合、その逆数は1未満の数であるため、減算
器16の結果は「1」以下になることは無い。そしてラ
ンレングスは「1」以上(自然数)であるから加算器7
の出力は必ず正になる。
When enlarging, the same operation as when reducing is performed. However, in the case of expansion, the reciprocal is a number less than 1, so the result of the subtracter 16 will never be less than "1". Since the run length is "1" or more (a natural number), the adder 7
The output of is always positive.

従って全ての出力が有効(信号線21の値が常に′H”
)になる。
Therefore, all outputs are valid (value of signal line 21 is always 'H')
)become.

処理速度については、縮小の場合は、従来技術では20
サイクルかかっているが、上記実施例では第2図の入カ
バターンを215倍する場合、lOサイクルで処理が終
わっている。
Regarding the processing speed, in the case of reduction, the conventional technology has a speed of 20
However, in the above embodiment, when the input cover turn shown in FIG. 2 is multiplied by 215, the process is completed in 10 cycles.

また、MH符号のメイクアップコード(Makeup 
 Code)はデコード部2の内部に於いて処理を施し
、前と同じ色を信号線4より出力し、ランレングスを信
号線3に出力する。
In addition, the make-up code of MH code (Makeup
Code) is processed inside the decoder 2, outputs the same color as before from the signal line 4, and outputs the run length to the signal line 3.

上記したような本発明の実施例によるイメージ処理手段
を用いることにより、符号の複合化処理、及びX方向の
拡大・縮小処理が同時に行なえ、これによりパイプライ
ン処理のように特別のアーキテクチャを採らなくとも高
速に処理できる。又、縮小を行なう場合に縮小前のイメ
ージデータを生成しないため、符号データの入力速度が
充分速ければ、縮小比が大きい程、処理時間が短くなり
、第6図のようなパイプライン処理手段よりも高速に処
理できる。
By using the image processing means according to the embodiment of the present invention as described above, code decoding processing and expansion/reduction processing in the X direction can be performed simultaneously, thereby eliminating the need for special architectures such as pipeline processing. Both can be processed at high speed. In addition, since image data before reduction is not generated when performing reduction, if the input speed of encoded data is sufficiently fast, the processing time will be shorter as the reduction ratio becomes larger, and the processing time will be shorter than the pipeline processing means shown in Fig. 6. can also be processed quickly.

[発明の効果] 以上詳記したように本発明のイメージデータ処理装置に
よれば、圧縮データから色情報とランレングス情報を得
る手段と、上記ランレングス情報から指定された倍率の
逆数を減算する手段と、上記減算の結果が零又は負にな
るまでの減算回数分だけ対応する色情報と同一の色情報
を出力する手段とを備え、圧縮データから直接に指定倍
率に従う拡大・縮小されたイメージデータを得る構成と
したことにより、パイプライン処理等による特別のアー
キテクチャを採らずに比較的簡単かつ安価な構成で、−
次元方向に圧縮されたイメージデータの伸張処理と指定
倍率に従うイメージの拡大・縮小処理を同時に実行でき
る。又、縮小時に於いて縮小前のイメージデータを一旦
生成する必要がないことから、圧縮データの人力速度が
充分速ければ縮小比が大きい程、処理時間が短くなり、
従来のパイプライン処理よりも高速の処理が可能となる
[Effects of the Invention] As detailed above, the image data processing device of the present invention includes means for obtaining color information and run length information from compressed data, and subtracting the reciprocal of a designated magnification from the run length information. and means for outputting the same color information as the corresponding color information for the number of subtractions until the result of the subtraction becomes zero or negative, and the image is enlarged or reduced according to a specified magnification directly from the compressed data. By adopting a configuration for obtaining data, it is a relatively simple and inexpensive configuration without special architecture such as pipeline processing, and -
It is possible to simultaneously perform decompression processing of image data compressed in the dimension direction and processing of enlarging/reducing the image according to a specified magnification. In addition, since there is no need to generate image data before reduction during reduction, if the manual speed of compressed data is sufficiently fast, the larger the reduction ratio, the shorter the processing time.
Faster processing than conventional pipeline processing is possible.

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

第1図は本発明の一実施例を示すブロック図、第2図は
上記実施例に於ける入カバターン例を示す図、第3図及
び第4図はそれぞれ上記実施例に於ける各部の信号状態
と動作ステップを示す図、第5図は上記実施例に於ける
入力ドツトパターンと出力ドツトパターンの関係を示す
図、第6図は従来のパイプラインによるイメージの復号
及び拡大・縮小処理手段を示すブロック図である。 1、3.4.6.8.9.11.12.15.17.1
8゜19、21.23・・・信号線、2・・・デコード
部、5・・・アンドゲート、7・・・加算器、10. 
13.22・・・レジスタ、14・・・アンドゲート、
16・・・減算器、20・・・論理回路。 出願人代理人 弁理士 鈴江武彦
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a diagram showing an example of the input cover pattern in the above embodiment, and FIGS. 3 and 4 are signals of each part in the above embodiment. FIG. 5 is a diagram showing the relationship between the input dot pattern and the output dot pattern in the above embodiment. FIG. 6 is a diagram showing the image decoding and enlargement/reduction processing means using a conventional pipeline. FIG. 1, 3.4.6.8.9.11.12.15.17.1
8゜19, 21.23... Signal line, 2... Decoding section, 5... AND gate, 7... Adder, 10.
13.22...Register, 14...And gate,
16...Subtractor, 20...Logic circuit. Applicant's agent Patent attorney Takehiko Suzue

Claims (1)

【特許請求の範囲】[Claims] 一次元方向に圧縮されたイメージデータの伸張処理手段
、及び指定倍率に従うイメージの拡大・縮小処理手段を
もつ装置に於いて、圧縮データから色情報とランレング
ス情報を得る手段と、上記ランレングス情報から指定さ
れた倍率の逆数を減算する手段と、上記減算の結果が零
又は負になるまでの減算回数分だけ対応する色情報と同
一の色情報を出力する手段とを具備し、圧縮データから
直接に指定倍率に従う拡大・縮小されたイメージデータ
を得ることを特徴としたイメージデータ処理装置。
In an apparatus having means for decompressing image data compressed in one dimension and means for enlarging/reducing the image according to a designated magnification, means for obtaining color information and run length information from the compressed data, and means for obtaining color information and run length information from the compressed data; and a means for outputting the same color information as the corresponding color information for the number of subtractions until the result of the subtraction becomes zero or negative from the compressed data. An image data processing device that directly obtains image data that is enlarged or reduced according to a specified magnification.
JP62334756A 1987-12-28 1987-12-28 Image data processing device Expired - Lifetime JP2809635B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62334756A JP2809635B2 (en) 1987-12-28 1987-12-28 Image data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62334756A JP2809635B2 (en) 1987-12-28 1987-12-28 Image data processing device

Publications (2)

Publication Number Publication Date
JPH01174165A true JPH01174165A (en) 1989-07-10
JP2809635B2 JP2809635B2 (en) 1998-10-15

Family

ID=18280878

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62334756A Expired - Lifetime JP2809635B2 (en) 1987-12-28 1987-12-28 Image data processing device

Country Status (1)

Country Link
JP (1) JP2809635B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56138356A (en) * 1980-03-31 1981-10-28 Fujitsu Ltd Picture shrinking system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56138356A (en) * 1980-03-31 1981-10-28 Fujitsu Ltd Picture shrinking system

Also Published As

Publication number Publication date
JP2809635B2 (en) 1998-10-15

Similar Documents

Publication Publication Date Title
JP3505266B2 (en) Program execution device
JPH0366227A (en) Method and system for compression coding and decoding method
JPH08314690A (en) Data compression method of individual string sequencers of data stream and its execution processor
JP2001136524A (en) Compression and expansion device
JPS63138881A (en) Mr code expander
JPH01174165A (en) Image data processing unit
JP3127883B2 (en) Image processing device
JPS62195979A (en) Facsimile code converter
JP3842914B2 (en) Data encoding method / decoding method, data encoding device / decoding device, and image data recording system using the data encoding method / decoding method
JP2933029B2 (en) Digital signal encoding / decoding circuit
JP3461640B2 (en) Arithmetic encoding / decoding device
JPH0669146B2 (en) Run length coded data decoding device
JPH05244438A (en) Compression expansion circuit
JP3193285B2 (en) Coding noise reduction filter circuit
KR100256463B1 (en) Process and system for adding or subtracting symbols in any base without converting to a common base
JP3293382B2 (en) Data compression device and data decompression device
JP2859507B2 (en) Image data compression / decompression method and apparatus
JPH05265698A (en) Information processor
JP3028122U (en) Parallel processor for run length code
JPS63299520A (en) Companding processor
JPH09223973A (en) Memory interface method and circuit for variable length decoder
JP2000224585A (en) Encoding and decoding device
JPH04297185A (en) Quantizing method for image compression
JP3099480B2 (en) High-speed graphic drawing method and apparatus
JPH08139939A (en) Compander

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080731

Year of fee payment: 10

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080731

Year of fee payment: 10