JP3134461B2 - Change point detection circuit - Google Patents
Change point detection circuitInfo
- Publication number
- JP3134461B2 JP3134461B2 JP04051347A JP5134792A JP3134461B2 JP 3134461 B2 JP3134461 B2 JP 3134461B2 JP 04051347 A JP04051347 A JP 04051347A JP 5134792 A JP5134792 A JP 5134792A JP 3134461 B2 JP3134461 B2 JP 3134461B2
- Authority
- JP
- Japan
- Prior art keywords
- change point
- circuit
- dimensional
- shift register
- detected
- 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.)
- Expired - Fee Related
Links
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、ファクシミリ装置など
において、走査ラインの画素データを2次元符号化によ
り圧縮する回路(以下、2次元圧縮回路という)及び2
次元符号化により圧縮された画素データを圧縮前の画素
データに伸長する回路(以下、2次元伸長回路という)
の一部に使用される変化点検出回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a circuit (hereinafter referred to as a two-dimensional compression circuit) for compressing pixel data of a scanning line by two-dimensional encoding in a facsimile apparatus or the like.
A circuit for expanding pixel data compressed by dimensional encoding into pixel data before compression (hereinafter referred to as a two-dimensional expansion circuit)
The present invention relates to a change point detection circuit used in a part of the circuit.
【0002】[0002]
【従来の技術】従来、CCITT(国際電信電話諮問委
員会)は、ファクシミリ装置における符号化方式とし
て、MH方式、MR方式、M2R方式を勧告している
(勧告T4、勧告T6)。2. Description of the Related Art Conventionally, CCITT (International Telegraph and Telephone Consultative Committee) has recommended MH, MR and M 2 R systems as coding systems for facsimile machines (Recommendations T4 and T6).
【0003】MH方式とは、全走査ラインの画素データ
を1次元符号化方式により符号化するというものであ
り、1次元符号化方式とは、1走査ライン上に交互に現
れる白画像と黒画像の同色画素の連続長、いわゆるラン
レングスをターミネイティング符号又はメイクアップ符
号あるいは1個のターミネイティング符号を後に付けた
メイクアップ符号により符号化するというものである。[0003] The MH system encodes pixel data of all scan lines by a one-dimensional encoding system. The one-dimensional encoding system is a white image and a black image appearing alternately on one scanning line. Is encoded by a terminating code or a makeup code or a makeup code followed by one terminating code.
【0004】また、MR方式とは、1つの走査ラインの
画素データを1次元符号化方式により符号化した後に、
最大K−1個(標準解像度の場合は、K=2、高解像度
の場合は、K=4)の連続する走査ラインを2次元符号
化方式により符号化するというものであり、M2R方式
とは、全ての走査ラインの画素データを2次元符号化方
式により符号化するというものである。[0004] Further, the MR method is a method in which pixel data of one scan line is encoded by a one-dimensional encoding method.
Maximum K-1 pieces (in the case of standard resolution, K = 2, in the case of high-resolution, K = 4) are those that encode the two-dimensional coding scheme successive scan lines, M 2 R method Means that the pixel data of all the scanning lines is encoded by a two-dimensional encoding method.
【0005】ここに、2次元符号化方式とは、現在、符
号化の対象としている走査ライン、即ち、符号化ライン
の画素データを、その直前に符号化されたラインを参照
ラインとして符号化するというものである。Here, the two-dimensional encoding method is to encode a scan line which is a current encoding target, that is, pixel data of an encoding line, using a line encoded immediately before as a reference line. That is.
【0006】かかる2次元符号化方式においては、次の
5個の変化点(同一走査ライン上、その直前の画素と色
の異なる画素)a0、a1、a2、b1、b2が定義される
(図27参照)と共に、変化点の位置関係によって、パ
スモード、垂直モード、水平モードの3個の符号化モー
ドが定義され、表1に示す符号表に従って符号化が行わ
れる。In such a two-dimensional encoding method, the following five change points (pixels on the same scanning line and different in color from the immediately preceding pixel) a 0 , a 1 , a 2 , b 1 , b 2 are used. At the same time, three encoding modes, a pass mode, a vertical mode, and a horizontal mode, are defined according to the positional relationship between the changing points, and encoding is performed according to the code table shown in Table 1.
【0007】[0007]
【表1】 [Table 1]
【0008】ここに、a0は、符号化ライン上の起点と
なる変化点として定義される。最初は、符号化ラインの
先頭画素の直前に仮想的に位置される白画素に設定さ
れ、その後は、直前の符号化モードにより決定される。Here, a 0 is defined as a change point which is a starting point on a coding line. At first, it is set to a white pixel virtually positioned immediately before the first pixel of the coding line, and thereafter, it is determined by the immediately preceding coding mode.
【0009】また、a1は、符号化ライン上でa0より右
の最初の変化点として定義される。また、変化点a
2は、符号化ライン上でa1より右の最初の変化点として
定義される。また、b1は、a0より右でa0と反対の色
を持つ参照ライン上の最初の変化点として定義される。
また、b2は、参照ライン上でb1の右の最初の変化点と
して定義される。Also, a 1 is defined as the first transition point on the coding line to the right of a 0 . In addition, change point a
2 is defined as the first transition point to the right of a 1 on the coding line. Further, b 1 is defined as the first change point on the reference line having a color opposite to that of a 0 in the right of a 0.
Further, b 2 is defined as the first change point of the right of b 1 on the reference line.
【0010】ここに、パスモードは、例えば、図28に
示すように、a1の左側にb2が存在することで定義され
る。なお、パスモードでの符号化の後、a0は、次の符
号化に備えてb2の直下(a0')に設定される。Here, the pass mode is defined, for example, by the existence of b 2 on the left side of a 1 as shown in FIG. After encoding in the pass mode, a 0 is set immediately below b 2 (a 0 ′) in preparation for the next encoding.
【0011】また、垂直モードは、例えば、図29に示
すように、a1とb1との間の相対距離|a1b1|が3以
下であることで定義される。この場合、相対距離|a1
b1|は、a1とb1との位置関係により異なる記号で表
わされる7つの値、V(0)、VR(1)、VR(2)、VR
(3)、VL(1)、VL(2)、VL(3)のいずれかの値
をとる。なお、垂直モードの符号化の後、a0は、次の
符号化に備えてa1の位置(a0')に設定される。The vertical mode is defined, for example, by a relative distance | a 1 b 1 | between a 1 and b 1 being 3 or less, as shown in FIG. In this case, the relative distance | a 1
b 1 | are seven values represented by different symbols depending on the positional relationship between a 1 and b 1 , V (0), V R (1), V R (2), V R
(3), one of V L (1), V L (2), and V L (3). After the coding in the vertical mode, a 0 is set at the position a 1 (a 0 ′) in preparation for the next coding.
【0012】また、水平モードは、例えば、図30に示
すようにa1とb1との間の相対距離|a1b1|が4以上
であることで定義される。この場合、001+H(a0a
1)+H(a1a2)を用いて符号化される。なお、H(a0
a1)及びH(a1a2)は、それぞれ、距離a0a1及び距
離a1a2を1次元符合化方式で符号化することを意味し
ている。なお、水平モードでの符号化の後、a0は、次
の符号化に備えてa2の位置(a0')に設定される。The horizontal mode is defined by, for example, that the relative distance | a 1 b 1 | between a 1 and b 1 is 4 or more as shown in FIG. In this case, 001 + H (a 0 a
1 ) Encoding is performed using + H (a 1 a 2 ). Note that H (a 0
a 1 ) and H (a 1 a 2 ) mean that the distance a 0 a 1 and the distance a 1 a 2 are coded by a one-dimensional coding method, respectively. After encoding in the horizontal mode, a 0 is set to the position a 2 (a 0 ′) in preparation for the next encoding.
【0013】ここに、2次元符号化は、符号化モードを
検知することにより行われるが、具体的には、次の手順
1、手順2に従って行われる。なお、図31、図32
は、手順1、手順2の内容を更に詳しく示すフローチャ
ートである。Here, the two-dimensional encoding is performed by detecting the encoding mode. Specifically, the two-dimensional encoding is performed according to the following procedures 1 and 2. 31 and 32.
5 is a flowchart showing the contents of procedure 1 and procedure 2 in more detail.
【0014】手順1 (ア)a1の左側にb1が存在するときは、パスモードを
検出したものとして、パスモードに対応した符号化を行
う。この後、b2の真下の点が変化点a0とされる。 (イ)パスモードが検出されないときは、手順2に進
む。Procedure 1 (a) When b 1 exists on the left side of a 1 , it is assumed that the path mode has been detected, and coding corresponding to the path mode is performed. Thereafter, are the change points a 0 point directly below the b 2. (A) If the path mode is not detected, the procedure proceeds to procedure 2.
【0015】手順2 (ア)相対距離|a1b1|の絶対値を決定する。 (イ)|a1b1|≦3ならば、垂直モードを検出したも
のとして、垂直モードに対応する符号化を行う。その
後、変化点a1が変化点a0とされる。 (イ)|a1b1|>3ならば、水平モードを検出したも
のとして、水平モードに対応した符号化を行う。その
後、変化点a2が変化点a0とされる。Procedure 2 (a) Determine the absolute value of the relative distance | a 1 b 1 | (A) If | a 1 b 1 | ≦ 3, it is assumed that the vertical mode has been detected, and encoding corresponding to the vertical mode is performed. Thereafter, the change point a 1 is the change point a 0. (A) If | a 1 b 1 |> 3, it is assumed that the horizontal mode has been detected, and encoding corresponding to the horizontal mode is performed. Thereafter, the change point a 2 are change point a 0.
【0016】[0016]
【発明が解決しようとする課題】ここに、図31、図3
2に示すフローチャートは、一度検出した変化点を再び
検出しなければならない場合を含んでおり、このため、
図31、図32に示すフローチャートをそのまま実施す
るように変化点検出回路を構成すると、その回路構成
は、きわめて複雑になってしまうという問題点があっ
た。M2R方式において、変化点を検出する場合も同様
である。FIG. 31 and FIG.
The flowchart shown in FIG. 2 includes a case where a once-detected change point has to be detected again.
If the change point detection circuit is configured to carry out the flow charts shown in FIGS. 31 and 32 as it is, there is a problem that the circuit configuration becomes extremely complicated. The same applies to the case where a change point is detected in the M 2 R method.
【0017】本発明は、かかる点に鑑み、走査ラインの
画素データを2次元符号化により圧縮する場合や、2次
元符号化により圧縮された画素データを圧縮前の画素デ
ータに伸長する場合に必要とされる変化点の検出を簡単
な回路構成で行うことができるようにし、2次元圧縮回
路及び2次元伸長回路の小規模化を図ることができるよ
うにした変化点検出回路を提供することを目的とする。In view of the above, the present invention is required when compressing pixel data of a scanning line by two-dimensional encoding or when decompressing pixel data compressed by two-dimensional encoding into pixel data before compression. To provide a change point detection circuit capable of detecting a change point with a simple circuit configuration and reducing the size of a two-dimensional compression circuit and a two-dimensional expansion circuit. Aim.
【0018】[0018]
【課題を解決するための手段】図1は本発明の原理説明
図であり、図中、1は参照ラインの画素データをシフト
させるための8ビットのシフトレジスタ、2はシフトレ
ジスタ1内の必要な範囲で参照ラインの変化点の位置を
検出するための参照ライン変化点検出回路である。FIG. 1 is a diagram for explaining the principle of the present invention. In FIG. 1, reference numeral 1 denotes an 8-bit shift register for shifting pixel data of a reference line; This is a reference line change point detection circuit for detecting the position of the change point of the reference line within a suitable range.
【0019】また、3は符号化ラインの画素データをシ
フトさせるための2ビットのシフトレジスタ、4はシフ
トレジスタ3内で符号化ラインの変化点の有無を検出さ
せるための符号化ライン変化点検出回路である。Reference numeral 3 denotes a 2-bit shift register for shifting the pixel data of the coding line, and reference numeral 4 denotes a coding line change point detection for detecting the presence or absence of a change point of the coding line in the shift register 3. Circuit.
【0020】また、5はシフトレジスタ1の7ビット目
部分に変化点が存在した場合において、1ビットのシフ
トを行った場合、必要に応じて、その事実を記憶させる
ための記憶回路である。Reference numeral 5 denotes a storage circuit for storing the fact that, if necessary, when a shift point is present in the seventh bit of the shift register 1 and a 1-bit shift is performed.
【0021】なお、本明細書において、シフトレジスタ
の「nビット目に変化点が存在する場合」というのは、
シフトレジスタのnビット目とn+1ビット目の色が異
なる場合を意味している。Note that in this specification, "the case where a change point exists at the n-th bit" of the shift register means that
This means that the colors of the n-th bit and the (n + 1) -th bit of the shift register are different.
【0022】[0022]
【作用】本発明は、これを2次元符号化により圧縮を行
う2次元圧縮回路の一部として使用する場合には、参照
ライン及び符号化ラインの画素データをそれぞれシフト
レジスタ1、3に取り込み、シフトさせる。According to the present invention, when this is used as a part of a two-dimensional compression circuit for performing compression by two-dimensional encoding, pixel data of a reference line and an encoded line are respectively taken into shift registers 1 and 3, Shift.
【0023】このようにする場合、参照ライン変化点検
出回路2から出力される参照ラインの変化点の位置情
報、符号化ライン変化点検出回路4から出力される符号
化ラインの変化点の有無の情報及び記憶回路5の記憶内
容から符号化モードを知ることができる。In this case, the position information of the change point of the reference line output from the reference line change point detection circuit 2 and the presence / absence of the change point of the coded line output from the coding line change point detection circuit 4 are determined. The encoding mode can be known from the information and the contents stored in the storage circuit 5.
【0024】また、本発明は、これを2次元符号化によ
り圧縮された画素データを圧縮前の画素データに伸長す
る2次元伸長回路の一部として使用する場合には、2次
元符号化により圧縮された画素データがいかなる符号化
モードで符号化されたかを別の回路で判定すると共に、
参照ラインの画素データをシフトレジスタ1に取り込
み、シフトさせる。Further, according to the present invention, when this is used as a part of a two-dimensional decompression circuit for decompressing pixel data compressed by two-dimensional encoding into pixel data before compression, the data is compressed by two-dimensional encoding. A different circuit determines which encoding mode the encoded pixel data has been encoded in, and
The pixel data of the reference line is taken into the shift register 1 and shifted.
【0025】このようにする場合、参照ライン変化点検
出回路2から出力される参照ラインの変化点の位置情報
及び記憶回路5の記憶内容から、判定された符合化モー
ドに対応する位置に参照ラインをシフトさせることがで
き、更に、この状態を利用して画素データを生成するこ
とにより、2次元符号化により圧縮された画素データを
圧縮前の画素データに伸長することができる。In this case, based on the position information of the change point of the reference line output from the reference line change point detection circuit 2 and the contents stored in the storage circuit 5, the reference line is shifted to a position corresponding to the determined encoding mode. Can be shifted, and by generating pixel data using this state, the pixel data compressed by the two-dimensional encoding can be expanded to the pixel data before compression.
【0026】[0026]
【実施例】以下、図2〜図26を参照して本発明の一実
施例につき、(1)構成、(2)2次元圧縮回路の一部
として使用する場合の動作、(3)2次元伸長回路の一
部に使用する場合の動作、(4)効果、に項を分けて説
明する。Embodiments of the present invention will be described below with reference to FIGS. 2 to 26. (1) Configuration, (2) Operation when used as part of a two-dimensional compression circuit, (3) Two-dimensional The operation when used for a part of the decompression circuit and the effect (4) will be described separately.
【0027】(1)構成・・図2、図3 図2は本発明の一実施例の要部を示すブロック図であ
り、図中、6は参照ラインの画素データをシフトさせる
ための8ビットのシフトレジスタ、7は現在、変化点の
色と比較すべき色を現在色として内部的に表示する現在
色表示回路をなすフラグ、8はシフトレジスタ6の隣合
ったビット間の色とフラグ7が表示する現在色とを比較
して、変化点のある場所を検出する比較器である。(1) Configuration FIG. 2 and FIG. 3 FIG. 2 is a block diagram showing a main part of an embodiment of the present invention. In FIG. 2, reference numeral 6 denotes 8 bits for shifting pixel data of a reference line. , A flag which forms a current color display circuit for internally displaying a color to be compared with the color of the change point as the current color, and 8 a color between adjacent bits of the shift register 6 and the flag 7 Is a comparator for detecting a place where a change point is present by comparing the current color displayed by the.
【0028】また、9は比較器8に対して比較を行う範
囲を指示するためのマスクカウンタであり、例えば、こ
のマスクカウンタ9のカウント値が「3」の場合、比較
器8は、最下位の1ビット目から3ビット目までに存在
する変化点を検出するように動作する。換言すれば、比
較器8は、4ビット目から7ビット目にある変化点は検
出しないように動作する。なお、比較器8は、この指示
による比較のほか、3ビットと4ビットとの間の比較を
常に行うようにされている。Reference numeral 9 denotes a mask counter for instructing the comparator 8 on the range in which the comparison is to be performed. For example, when the count value of the mask counter 9 is "3", the comparator 8 operates at the lowest position. Operates to detect a change point existing from the first bit to the third bit. In other words, the comparator 8 operates so as not to detect a transition point at the fourth to seventh bits. The comparator 8 always performs comparison between 3 bits and 4 bits in addition to the comparison based on this instruction.
【0029】かかるマスクカウンタ9は、初期状態の設
定及びモード判定後のリセットの際に必要となるもので
あり、参照ラインのシフトに従ってカウントされるが、
「7」以上はカウントしないように制御される。The mask counter 9 is required when setting the initial state and resetting after the mode determination, and is counted according to the shift of the reference line.
It is controlled not to count above "7".
【0030】また、10は符号化ラインの画素データを
シフトさせるための2ビットのシフトレジスタ、11は
シフトレジスタ10におけるビット間の色を比較して変
化点の有無を検出する比較器である。Reference numeral 10 denotes a two-bit shift register for shifting the pixel data of the encoding line, and reference numeral 11 denotes a comparator for comparing colors between bits in the shift register 10 to detect the presence or absence of a change point.
【0031】また、12はシフトレジスタ6内の7ビッ
ト目に検出対象の変化点が存在した場合において、1ビ
ット分のシフトを行った場合、シフトレジスタ10に変
化点が存在しない場合に、その事実、即ち、モード判定
に使用されなかった比較あふれの変化点が存在すること
を保持するためのフラグであり、図3に示すように、か
かる比較あふれの変化点が存在しない場合には、「0」
が立てられ、存在する場合には、「1」が立てられる。
なお、これは、パスモードを完全に検出するために必要
とされるものである。Reference numeral 12 denotes a case where a change point to be detected exists at the seventh bit in the shift register 6, a shift of one bit is performed, and a case where no change point exists in the shift register 10. In fact, that is, a flag for holding that there is a change point of the comparison overflow not used for the mode determination. As shown in FIG. 0 "
Is set, and if it exists, "1" is set.
This is necessary to completely detect the pass mode.
【0032】また、13は白画像及び黒画像のランレン
グスをカウントするためのランレングス・カウンタであ
り、このランレングス・カウンタ13は、変化点の検出
開始と同時にカウントを開始するが、圧縮時において検
出された符号化モードが水平モード以外の場合及び伸長
時において判定された符号化モードが水平モード以外の
場合は、「0」にリセットされる。Reference numeral 13 denotes a run-length counter for counting the run lengths of the white image and the black image. The run-length counter 13 starts counting at the same time as the start of detection of a change point. Is reset to "0" when the encoding mode detected in step (1) is other than the horizontal mode and when the encoding mode determined at the time of decompression is other than the horizontal mode.
【0033】また、14は2次元圧縮回路を構成する符
号出力回路であり、この符号出力回路14は、比較器
8、11の出力及びフラグ12の内容に応じて符号化モ
ードを検出し、表1に基づいて対応する符号を出力する
ものである。なお、水平モードの場合には、ランレング
ス・カウンタ13を使用してランレングスがカウントさ
れた後、1次元符号化が行われる。A code output circuit 14 constitutes a two-dimensional compression circuit. The code output circuit 14 detects an encoding mode in accordance with the outputs of the comparators 8 and 11 and the contents of the flag 12, and outputs a code. 1 to output a corresponding code. In the case of the horizontal mode, one-dimensional encoding is performed after the run length is counted using the run length counter 13.
【0034】また、15は2次元伸長回路を構成するモ
ード判定回路であり、このモード判定回路15は、伸長
の対象となる画素データがいかなる符号化モードで圧縮
されたかを判定するものである。また、16は伸長され
た画像データを出力するためのシフトレジスタである。Reference numeral 15 denotes a mode determination circuit which constitutes a two-dimensional expansion circuit. The mode determination circuit 15 determines in which coding mode the pixel data to be expanded is compressed. Reference numeral 16 denotes a shift register for outputting expanded image data.
【0035】(2)2次元圧縮回路の一部として使用す
る場合の動作・・図4〜図15 まず、最初に初期状態の設定が行われるが、これは、マ
スクカウンタ9の出力値を「0」に設定した状態で、図
4に示すように、参照ラインの画素データをシフトレジ
スタ6に取り込み、3ビット分、シフトさせると共に、
ランレングス・カウンタ13を「−1」にセットするこ
とで行われる。(2) Operation when used as part of a two-dimensional compression circuit. FIGS. 4 to 15 First, an initial state is set. First, the output value of the mask counter 9 is set to " 4, the pixel data of the reference line is fetched into the shift register 6 and shifted by 3 bits, as shown in FIG.
This is performed by setting the run length counter 13 to "-1".
【0036】このとき、マスクカウンタ9の出力値は
「3」となり、また、フラグ12は、「0」を立て、比
較あふれの変化点がない状態を表示する。また、フラグ
7は、その表示する現在色を「白」にセットされる。At this time, the output value of the mask counter 9 becomes "3", the flag 12 is set to "0", and a state where there is no change point of the comparison overflow is displayed. In the flag 7, the current color to be displayed is set to "white".
【0037】また、符号化モードを判定できる変化点の
検出が行われた場合には、リセットが行われるが、これ
は、図5に示すように、マスクカウンタ9の出力値を
「3」にリセットし、シフトレジスタ6の最下位ビット
から数えて4ビット目以上に存在する変化点を検出対象
から除外すると共に、パスモードを検出した場合を除
き、フラグ7の現在色を反転させることにより行われ
る。When a change point at which the encoding mode can be determined is detected, a reset is performed. This is because the output value of the mask counter 9 is set to "3" as shown in FIG. A reset is performed by excluding the change point existing in the fourth bit or more counted from the least significant bit of the shift register 6 from the detection target, and inverting the current color of the flag 7 except when the pass mode is detected. Will be
【0038】ここに、本実施例においては、参照ライン
及び符号化ラインを初期状態又はリセット状態から同時
にシフトさせた場合、次のようにして符号化モードの検
出が行われる。Here, in this embodiment, when the reference line and the encoding line are simultaneously shifted from the initial state or the reset state, the encoding mode is detected as follows.
【0039】もし、参照ラインの変化点が最下位ビット
から数えて4ビット目に検出され、符号化ラインの変化
点も検出された場合、これは、図6に示すような状態で
あるから、かかる変化点の検出によって、垂直モードV
(0)が判定され、符号出力回路14から垂直モードV
(0)に対応する符号が出力される。If the change point of the reference line is detected at the fourth bit counting from the least significant bit and the change point of the coding line is also detected, this is the state shown in FIG. By detecting such a change point, the vertical mode V
(0) is determined, and the vertical mode V
The code corresponding to (0) is output.
【0040】また、参照ラインの変化点が最下位ビット
から数えて5ビット目に検出され、符号化ラインの変化
点も検出された場合、これは、図7に示すような状態で
あるから、かかる変化点の検出によって、垂直モードV
R(1)が判定され、符号出力回路14から垂直モードV
R(1)に対応する符号が出力される。When the change point of the reference line is detected at the fifth bit counting from the least significant bit and the change point of the coded line is also detected, since this is the state shown in FIG. By detecting such a change point, the vertical mode V
R (1) is determined, and the vertical mode V
The code corresponding to R (1) is output.
【0041】また、参照ラインの変化点が最下位ビット
から数えて6ビット目に検出され、符号化ラインの変化
点も検出された場合、これは、図8に示すような状態で
あるから、かかる変化点の検出によって、垂直モードV
R(2)が判定され、符号出力回路14から垂直モードV
R(2)に対応する符号が出力される。When the change point of the reference line is detected at the sixth bit counting from the least significant bit and the change point of the coded line is also detected, since this is the state shown in FIG. By detecting such a change point, the vertical mode V
R (2) is determined, and the vertical mode V
The code corresponding to R (2) is output.
【0042】また、参照ラインの変化点が最下位ビット
から数えて7ビット目に検出され、符号化ラインの変化
点も検出された場合、これは、図9に示すような状態で
あるから、かかる変化点の検出によって、垂直モードV
R(3)が判定され、符号出力回路14から垂直モードV
R(3)に対応する符号が出力される。When the change point of the reference line is detected at the seventh bit counting from the least significant bit and the change point of the coding line is also detected, since this is the state shown in FIG. By detecting such a change point, the vertical mode V
R (3) is determined, and the sign output circuit 14 outputs the vertical mode V
The code corresponding to R (3) is output.
【0043】また、参照ラインの変化点が最下位ビット
から数えて3ビット目に検出され、符号化ラインの変化
点も検出された場合、これは、図10に示すような状態
であるから、かかる変化点の検出によって、垂直モード
VL(1)が判定され、符号出力回路14から垂直モード
VL(1)に対応する符号が出力される。When the change point of the reference line is detected at the third bit counting from the least significant bit and the change point of the coding line is also detected, this is the state shown in FIG. By detecting such a change point, the vertical mode V L (1) is determined, and the code output circuit 14 outputs a code corresponding to the vertical mode V L (1).
【0044】また、参照ラインの変化点が最下位ビット
から数えて2ビット目に検出され、符号化ラインの変化
点も検出された場合、これは、図11に示すような状態
であるから、かかる変化点の検出によって、垂直モード
VL(2)が判定され、符号出力回路14から垂直モード
VL(2)に対応する符号が出力される。When the change point of the reference line is detected at the second bit counting from the least significant bit and the change point of the coding line is also detected, this is the state shown in FIG. By detecting such a change point, the vertical mode V L (2) is determined, and the code output circuit 14 outputs a code corresponding to the vertical mode V L (2).
【0045】また、参照ラインの変化点が最下位ビット
に検出され、符号化ラインの変化点も検出された場合、
これは、図12に示すような状態であるから、かかる変
化点の検出によって、垂直モードVL(3)が判定され、
符号出力回路14から垂直モードVL(3)に対応する符
号が出力される。When the change point of the reference line is detected in the least significant bit and the change point of the coding line is also detected,
Since this is the state shown in FIG. 12, the vertical mode V L (3) is determined by detecting such a change point.
The code output circuit 14 outputs a code corresponding to the vertical mode V L (3).
【0046】また、参照ラインの変化点が最下位ビット
から数えて7ビット目及び4ビット目に検出され、符号
化ラインの変化点が検出されない場合、これは、図13
に示すような状態であるから、かかる変化点の検出によ
って、パスモードPが判定され、符号出力回路14から
パスモードPに対応する符号が出力される。When the change point of the reference line is detected at the 7th and 4th bits counting from the least significant bit, and the change point of the coding line is not detected, this corresponds to FIG.
In the state shown in (1), the pass mode P is determined by detecting such a change point, and the code output circuit 14 outputs a code corresponding to the pass mode P.
【0047】また、参照ラインの変化点が最下位ビット
から数えて4ビット目に検出され、かつ、フラグ12=
1で、符号化ラインの変化点が検出されない場合、これ
は、図14に示すような状態であるから、かかる変化点
の検出によっても、パスモードPが判定され、符号出力
回路14からパスモードPに対応する符号が出力され
る。The change point of the reference line is detected at the fourth bit counting from the least significant bit, and the flag 12 =
In the case where the change point of the coding line is not detected in 1, this is the state as shown in FIG. 14. The code corresponding to P is output.
【0048】また、参照ラインの変化点が検出されず、
符号化ラインの変化点が検出された場合、これは、図1
5(a)に示すような状態であるから、かかる変化点の
検出によって、水平モードHであると、判定することが
できる。Further, no change point of the reference line is detected,
If a transition point in the coding line is detected,
Since the state is as shown in FIG. 5A, the horizontal mode H can be determined by detecting such a change point.
【0049】したがって、この場合には、ランレングス
・カウンタ13の値「XXXX」を保存した後にリセッ
トし、図15(b)に示すように、シフトレジスタ10
において変化点が検出されるまで、参照ライン及び符号
化ラインをシフトする。Therefore, in this case, after the value "XXXX" of the run-length counter 13 is stored and reset, the shift register 10 is reset as shown in FIG.
The reference line and the encoding line are shifted until a change point is detected in.
【0050】このとき、ランレングス・カウンタ13の
示す値「YYYY」は、距離a1a2を示しており、ま
た、先に保存した「XXXX」は距離a0a1を示してい
るから、001+H(a0a1)+H(a1a2)なる符号
化を行う。At this time, the value “YYYY” indicated by the run-length counter 13 indicates the distance a 1 a 2 , and the previously saved “XXXX” indicates the distance a 0 a 1 . 001 + H (a 0 a 1 ) + perform H (a 1 a 2) comprising coding.
【0051】このようにして、2次元符号化が行われる
が、本実施例においては、図31、図32に示すフロー
チャートをそのまま実施する回路の場合と異なり、一度
検出した変化点を再び検出しなければならないというこ
とがない。In this way, two-dimensional encoding is performed. In this embodiment, however, unlike the case of a circuit that directly executes the flowcharts shown in FIGS. 31 and 32, a once-detected change point is detected again. You don't have to.
【0052】(3)2次元伸長回路の一部に使用する場
合の動作・・図16〜図26 まず、最初に初期状態の設定が行われるが、これは、マ
スクカウンタ9の出力値を「0」に設定した状態で、図
16に示すように、参照ラインの画素データをシフトレ
ジスタ6に取り込み、4ビット分、シフトさせることで
行われる。(3) Operation when used as part of a two-dimensional decompression circuit: FIGS. 16 to 26 First, an initial state is set. In the state where it is set to “0”, as shown in FIG. 16, the pixel data of the reference line is taken into the shift register 6 and shifted by 4 bits.
【0053】このとき、マスクカウンタ9の出力値は
「4」となる。また、フラグ12は、「0」を立て、比
較あふれの変化点がない状態を表示する。なお、リセッ
トの方法は、圧縮時の場合と同様である。At this time, the output value of the mask counter 9 is "4". The flag 12 is set to "0" to indicate that there is no change point in the comparison overflow. The method of resetting is the same as in the case of compression.
【0054】ここに、本実施例においては、モード判定
回路15によって伸長の対象となる画素データがいかな
る符号化モードで圧縮されたかの判定を行い、この判定
された符号化モードが、垂直モード及びパスモードの場
合は、かかる符合化モードに対応する位置に参照ライン
の変化点が検出されるように参照ラインのシフトが行わ
れ、伸長が行われる。Here, in the present embodiment, it is determined by the mode determination circuit 15 in which encoding mode the pixel data to be decompressed has been compressed, and the determined encoding mode is the vertical mode and the pass mode. In the case of the mode, the reference line is shifted and expanded such that a change point of the reference line is detected at a position corresponding to the encoding mode.
【0055】例えば、伸長すべき画素データが垂直モー
ドV(0)で符号化されている場合は、図17に示すよ
うに、シフトレジスタ6の最下位ビットから数えて4ビ
ット目に変化点が検出されるように、フラグ7からシフ
トレジスタ16に対して現在色を出力しながら参照ライ
ンをシフトし、その後、次の伸長に備えてフラグ7の現
在色を反転させる。For example, when the pixel data to be expanded is encoded in the vertical mode V (0), as shown in FIG. As detected, the reference line is shifted while outputting the current color from the flag 7 to the shift register 16, and then the current color of the flag 7 is inverted in preparation for the next expansion.
【0056】また、例えば、伸長すべき画素データが垂
直モードVR(1)で符号化されている場合は、図18に
示すように、シフトレジスタ6の最下位ビットから数え
て5ビット目に変化点が検出されるように、フラグ7か
らシフトレジスタ16に対して現在色を出力しながら参
照ラインをシフトし、その後、次の伸長に備えてフラグ
7の現在色を反転させる。For example, when the pixel data to be expanded is encoded in the vertical mode V R (1), as shown in FIG. 18, the fifth bit counting from the least significant bit of the shift register 6 is used. The reference line is shifted while the current color is output from the flag 7 to the shift register 16 so that a change point is detected, and then the current color of the flag 7 is inverted for the next expansion.
【0057】また、例えば、伸長すべき画素データが垂
直モードVR(2)で符号化されている場合は、図19に
示すように、シフトレジスタ6の最下位ビットから数え
て6ビット目に変化点が検出されるように、フラグ7か
らシフトレジスタ16に対して現在色を出力しながら参
照ラインをシフトし、その後、次の伸長に備えてフラグ
7の現在色を反転させる。For example, when the pixel data to be expanded is encoded in the vertical mode V R (2), as shown in FIG. 19, the sixth bit counted from the least significant bit of the shift register 6 is used. The reference line is shifted while the current color is output from the flag 7 to the shift register 16 so that a change point is detected, and then the current color of the flag 7 is inverted for the next expansion.
【0058】また、例えば、伸長すべき画素データが垂
直モードVR(3)で符号化されている場合は、図20に
示すように、シフトレジスタ6の最下位ビットから数え
て7ビット目に変化点が検出されるように、フラグ7か
らシフトレジスタ16に対して現在色を出力しながら参
照ラインをシフトし、その後、次の伸長に備えてフラグ
7の現在色を反転させる。For example, when the pixel data to be decompressed is encoded in the vertical mode V R (3), the seventh bit counted from the least significant bit of the shift register 6 as shown in FIG. The reference line is shifted while the current color is output from the flag 7 to the shift register 16 so that a change point is detected, and then the current color of the flag 7 is inverted for the next expansion.
【0059】また、例えば、伸長すべき画素データが垂
直モードVL(1)で符号化されている場合は、図21に
示すように、シフトレジスタ6の最下位ビットから数え
て3ビット目に変化点が検出されるように、フラグ7か
らシフトレジスタ16に対して現在色を出力しながら参
照ラインをシフトし、その後、次の伸長に備えてフラグ
7の現在色を反転させる。For example, when the pixel data to be expanded is encoded in the vertical mode V L (1), as shown in FIG. 21, the third bit counted from the least significant bit of the shift register 6 is used. The reference line is shifted while the current color is output from the flag 7 to the shift register 16 so that a change point is detected, and then the current color of the flag 7 is inverted for the next expansion.
【0060】また、例えば、伸長すべき画素データが垂
直モードVL(2)で符号化されている場合は、図22に
示すように、シフトレジスタ6の最下位ビットから数え
て2ビット目に変化点が検出されるように、フラグ7か
らシフトレジスタ16に対して現在色を出力しながら参
照ラインをシフトし、その後、次の伸長に備えてフラグ
7の現在色を反転させる。For example, when pixel data to be expanded is encoded in the vertical mode V L (2), as shown in FIG. 22, the second bit counted from the least significant bit of the shift register 6 is used. The reference line is shifted while the current color is output from the flag 7 to the shift register 16 so that a change point is detected, and then the current color of the flag 7 is inverted for the next expansion.
【0061】また、例えば、伸長すべき画素データが垂
直モードVL(3)で符号化されている場合は、図23に
示すように、シフトレジスタ6の最下位ビットに変化点
が検出されるように、フラグ7からシフトレジスタ16
に対して現在色を出力しながら参照ラインをシフトし、
その後、次の伸長に備えてフラグ7の現在色を反転させ
る。For example, when pixel data to be expanded is encoded in the vertical mode V L (3), a change point is detected in the least significant bit of the shift register 6 as shown in FIG. As described above, the shift register 16
Shifts the reference line while outputting the current color to
Thereafter, the current color of the flag 7 is inverted for the next decompression.
【0062】また、例えば、伸長すべき画素データがパ
スモードPで符号化されている場合において、フラグ1
2=「0」の場合には、図24に示すように、シフトレ
ジスタ6の最下位ビットから数えて7ビット目及び4ビ
ット目に変化点が検出されるように、フラグ7からシフ
トレジスタ16に対して現在色を出力しながら参照ライ
ンをシフトする。なお、この場合には、フラグ7の現在
色は反転させない。For example, when pixel data to be expanded is encoded in the pass mode P, the flag 1
When 2 = “0”, as shown in FIG. 24, the shift register 16 is shifted from the flag 7 so that the change point is detected at the seventh and fourth bits counted from the least significant bit of the shift register 6. Shift the reference line while outputting the current color. In this case, the current color of the flag 7 is not inverted.
【0063】また、例えば、伸長すべき画素データがパ
スモードPで符号化されている場合において、フラグ1
2=「1」の場合には、図25に示すように、シフトレ
ジスタ6の最下位ビットから数えて4ビット目に変化点
が検出されるように、フラグ7からシフトレジスタ16
に対して現在色を出力しながら参照ラインをシフトす
る。なお、この場合には、フラグ7の現在色は反転させ
ない。For example, when the pixel data to be expanded is encoded in the pass mode P, the flag 1
When 2 = “1”, as shown in FIG. 25, the shift register 16 is shifted from the flag 7 so that a change point is detected at the fourth bit counting from the least significant bit of the shift register 6.
Shift the reference line while outputting the current color. In this case, the current color of the flag 7 is not inverted.
【0064】これらに対して、伸長すべき画素データが
水平モードHで符号化されている場合には、図26
(a)に示すように、ランレングス・カウンタ13を使
用して、カウント値「XXXX」が距離a0a1を示すま
で、フラグ7からシフトレジスタ16に対して現在色を
出力しながら参照ラインをシフトし、フラグ7の現在色
を反転させると共に、ランレングス・カウンタ13を
「0」にリセットする。On the other hand, when the pixel data to be decompressed is encoded in the horizontal mode H, FIG.
As shown in (a), the reference line is output from the flag 7 to the shift register 16 using the run-length counter 13 until the count value “XXXX” indicates the distance a 0 a 1 . , The current color of the flag 7 is inverted, and the run-length counter 13 is reset to “0”.
【0065】その後、続いて、図26(b)に示すよう
に、ランレングス・カウンタ13を使用して、カウント
値「YYYY」が距離a1a2を示すまで、フラグ7から
シフトレジスタ16に対して現在色を出力しながら参照
ラインをシフトし、フラグ7の現在色を反転させると共
に、ランレングス・カウンタ13を「0」にリセットす
る。[0065] After that, subsequently, as shown in FIG. 26 (b), using a run-length counter 13, the count value "YYYY" until indicates the distance a 1 a 2, from the flag 7 to the shift register 16 On the other hand, the reference line is shifted while outputting the current color, the current color of the flag 7 is inverted, and the run-length counter 13 is reset to “0”.
【0066】このようにして、2次元符号化により圧縮
された画素データの伸長が行われるが、本実施例におい
ては、2次元符号化を行う場合と同様に、一度検出した
変化点を再び検出しなければならないということがな
い。In this manner, the pixel data compressed by the two-dimensional encoding is expanded. In this embodiment, as in the case of the two-dimensional encoding, the once detected change point is detected again. You don't have to.
【0067】(4)効果 本実施例によれば、走査ラインの画素データを2次元符
号化により圧縮する場合や、2次元符号化によって圧縮
された画素データを圧縮前の画素データに伸長する場
合、一度検出した変化点を再び検出するということがな
いようにし、必要とされる変化点の検出を簡単な回路構
成で行うことができるようにされているので、変化点検
出回路として一度検出した変化点を再び検出しなければ
ならないような複雑な回路を使用する必要がなくなり、
2次元圧縮回路及び2次元伸長回路の小規模化を図るこ
とができる。(4) Effects According to the present embodiment, a case where pixel data of a scan line is compressed by two-dimensional encoding, or a case where pixel data compressed by two-dimensional encoding is expanded to pixel data before compression The change point once detected is prevented from being detected again, and the required change point can be detected with a simple circuit configuration. Eliminates the need to use complex circuits that need to detect change points again,
The size of the two-dimensional compression circuit and the two-dimensional expansion circuit can be reduced.
【0068】[0068]
【発明の効果】以上のように、本発明によれば、走査ラ
インの画素データを2次元符号化により圧縮する場合
や、2次元符号化により圧縮された画素データを圧縮前
の画素データに伸長する場合、一度検出した変化点を再
び検出しなければならないということがなく、必要とさ
れる変化点の検出を簡単な回路構成で行うことができる
ので、変化点検出回路として一度検出した変化点を再び
検出しなければならないような複雑な回路を構成する必
要がなく、2次元圧縮回路及び2次元伸長回路の小規模
化を図ることができる。As described above, according to the present invention, pixel data of a scan line is compressed by two-dimensional encoding, or pixel data compressed by two-dimensional encoding is expanded to pixel data before compression. In this case, the change point once detected is not required to be detected again, and the required change point can be detected with a simple circuit configuration. Does not need to be configured as a complicated circuit that must be detected again, and the two-dimensional compression circuit and the two-dimensional expansion circuit can be downsized.
【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.
【図2】本発明の一実施例の要部を示すブロック図であ
る。FIG. 2 is a block diagram showing a main part of one embodiment of the present invention.
【図3】本発明の一実施例を2次元符号化による圧縮を
行う2次元圧縮回路の一部に使用する場合において比較
あふれの変化点を保持するフラグの使用方法を示す図で
ある。FIG. 3 is a diagram illustrating a method of using a flag for holding a change point of a comparison overflow in a case where an embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図4】本発明の一実施例を2次元符号化による圧縮を
行う2次元圧縮回路の一部に使用する場合において初期
状態を設定した場合の状態を示す図である。FIG. 4 is a diagram illustrating a state in which an initial state is set when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図5】本発明の一実施例を2次元符号化による圧縮を
行う2次元圧縮回路の一部に使用する場合においてマス
クカウンタをリセットする方法を示す図である。FIG. 5 is a diagram illustrating a method of resetting a mask counter when the embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図6】本発明の一実施例を2次元符号化による圧縮を
行う2次元圧縮回路の一部に使用する場合において垂直
モードV(0)を検出した状態を示す図である。FIG. 6 is a diagram showing a state in which a vertical mode V (0) is detected when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図7】本発明の一実施例を2次元符号化による圧縮を
行う2次元圧縮回路の一部に使用する場合において垂直
モードVR(1)を検出した状態を示す図である。FIG. 7 is a diagram showing a state in which a vertical mode V R (1) is detected when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図8】本発明の一実施例を2次元符号化による圧縮を
行う2次元圧縮回路の一部に使用する場合において垂直
モードVR(2)を検出した状態を示す図である。FIG. 8 is a diagram showing a state in which a vertical mode V R (2) is detected when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図9】本発明の一実施例を2次元符号化による圧縮を
行う2次元圧縮回路の一部に使用する場合において垂直
モードVR(3)を検出した状態を示す図である。FIG. 9 is a diagram showing a state in which a vertical mode V R (3) is detected when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図10】本発明の一実施例を2次元符号化による圧縮
を行う2次元圧縮回路の一部に使用する場合において垂
直モードVL(1)を検出した状態を示す図である。FIG. 10 is a diagram showing a state in which a vertical mode V L (1) is detected when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図11】本発明の一実施例を2次元符号化による圧縮
を行う2次元圧縮回路の一部に使用する場合において垂
直モードVL(2)を検出した状態を示す図である。FIG. 11 is a diagram illustrating a state in which a vertical mode V L (2) is detected when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図12】本発明の一実施例を2次元符号化による圧縮
を行う2次元圧縮回路の一部に使用する場合において垂
直モードVL(3)を検出した状態を示す図である。FIG. 12 is a diagram showing a state in which a vertical mode V L (3) is detected when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図13】本発明の一実施例を2次元符号化による圧縮
を行う2次元圧縮回路の一部に使用する場合においてパ
スモードPを検出した状態を示す図である。FIG. 13 is a diagram illustrating a state in which a path mode P is detected when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図14】本発明の一実施例を2次元符号化による圧縮
を行う2次元圧縮回路の一部に使用する場合においてパ
スモードPを検出した状態を示す図である。FIG. 14 is a diagram illustrating a state in which a path mode P is detected when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding.
【図15】本発明の一実施例を2次元符号化による圧縮
を行う2次元圧縮回路の一部に使用する場合において水
平モードHを検出した状態及びその場合に採るべき措置
を説明するための図である。FIG. 15 is a diagram for explaining a state in which a horizontal mode H is detected and a measure to be taken in that case when one embodiment of the present invention is used in a part of a two-dimensional compression circuit that performs compression by two-dimensional encoding. FIG.
【図16】本発明の一実施例を2次元符号データを伸長
する2次元伸長回路の一部に使用する場合において初期
状態を設定した場合を示す図である。FIG. 16 is a diagram showing a case where an initial state is set when one embodiment of the present invention is used in a part of a two-dimensional expansion circuit for expanding two-dimensional code data.
【図17】本発明の一実施例を2次元符号を伸長する2
次元伸長回路の一部に使用する場合において伸長すべき
画素データが垂直モードV(0)で符号化されているこ
とを判定した場合における伸長動作を示す図である。FIG. 17 is a diagram showing an embodiment of the present invention in which a two-dimensional code is expanded
FIG. 11 is a diagram illustrating an expansion operation when it is determined that pixel data to be expanded is encoded in the vertical mode V (0) when used in a part of the dimension expansion circuit.
【図18】本発明の一実施例を2次元符号を伸長する2
次元伸長回路の一部に使用する場合において伸長すべき
画素データが垂直モードVR(1)で符号化されている
ことを判定した場合における伸長動作を示す図である。FIG. 18 is a diagram showing an embodiment of the present invention, in which a two-dimensional code is expanded 2
Pixel data to be extended in the case of using a portion of the dimension decompression circuit is a diagram showing an extended operation when it is determined that it is encoded by the vertical mode V R (1).
【図19】本発明の一実施例を2次元符号を伸長する2
次元伸長回路の一部に使用する場合において伸長すべき
画素データが垂直モードVR(2)で符号化されている
ことを判定した場合における伸長動作を示す図である。FIG. 19 shows an embodiment of the present invention in which a two-dimensional code is expanded 2
Pixel data to be extended in the case of using a portion of the dimension decompression circuit is a diagram showing an extended operation when it is determined that it is encoded by the vertical mode V R (2).
【図20】本発明の一実施例を2次元符号を伸長する2
次元伸長回路の一部に使用する場合において伸長すべき
画素データが垂直モードVR(3)で符号化されている
ことを判定した場合における伸長動作を示す図である。FIG. 20 is a diagram illustrating an embodiment of the present invention, in which two-dimensional codes are expanded.
Pixel data to be extended in the case of using a portion of the dimension decompression circuit is a diagram showing an extended operation when it is determined that it is encoded by the vertical mode V R (3).
【図21】本発明の一実施例を2次元符号を伸長する2
次元伸長回路の一部に使用する場合において伸長すべき
画素データが垂直モードVL(1)で符号化されている
ことを判定した場合における伸長動作を示す図である。FIG. 21 is a diagram showing an embodiment of the present invention, in which a two-dimensional code is expanded 2
FIG. 8 is a diagram illustrating an expansion operation when it is determined that pixel data to be expanded is encoded in the vertical mode V L (1) when used in a part of the dimension expansion circuit.
【図22】本発明の一実施例を2次元符号を伸長する2
次元伸長回路の一部に使用する場合において伸長すべき
画素データが垂直モードVL(2)で符号化されている
ことを判定した場合における伸長動作を示す図である。FIG. 22 is a diagram showing an example of expanding the two-dimensional code according to an embodiment of the present invention.
FIG. 8 is a diagram illustrating an expansion operation when it is determined that pixel data to be expanded is encoded in the vertical mode V L (2) when used in a part of the dimension expansion circuit.
【図23】本発明の一実施例を2次元符号を伸長する2
次元伸長回路の一部に使用する場合において伸長すべき
画素データが垂直モードVL(3)で符号化されている
ことを判定した場合における伸長動作を示す図である。FIG. 23 shows an embodiment of the present invention, in which a two-dimensional code is expanded 2
FIG. 11 is a diagram illustrating an expansion operation when it is determined that pixel data to be expanded is encoded in the vertical mode V L (3) when used in a part of the dimension expansion circuit.
【図24】本発明の一実施例を2次元符号を伸長する2
次元伸長回路の一部に使用する場合において伸長すべき
画素データがパスモードPで符号化されていることを判
定した場合における伸長動作を示す図である。FIG. 24 shows an embodiment of the present invention in which a two-dimensional code is expanded 2
FIG. 9 is a diagram illustrating an expansion operation when it is determined that pixel data to be expanded is encoded in the pass mode P when used in a part of the dimension expansion circuit.
【図25】本発明の一実施例を2次元符号を伸長する2
次元伸長回路の一部に使用する場合において伸長すべき
画素データがパスモードPで符号化されていることを判
定した場合における伸長動作を示す図である。FIG. 25 shows an embodiment of the present invention in which a two-dimensional code is expanded 2
FIG. 9 is a diagram illustrating an expansion operation when it is determined that pixel data to be expanded is encoded in the pass mode P when used in a part of the dimension expansion circuit.
【図26】本発明の一実施例を2次元符号を伸長する2
次元伸長回路の一部に使用する場合において伸長すべき
画素データが水平モードHで符号化されていることを判
定した場合における伸長動作を示す図である。FIG. 26 shows an embodiment of the present invention, in which a two-dimensional code is expanded 2
FIG. 11 is a diagram illustrating an expansion operation when it is determined that pixel data to be expanded is encoded in the horizontal mode H when used in a part of the dimension expansion circuit.
【図27】2次元符号化方式において定義される変化点
を説明するための図である。FIG. 27 is a diagram for describing a change point defined in the two-dimensional encoding method.
【図28】2次元符号化方式において定義されるパスモ
ードを説明するための図である。FIG. 28 is a diagram for describing a pass mode defined in the two-dimensional encoding method.
【図29】2次元符号化方式において定義される垂直モ
ードを説明するための図である。FIG. 29 is a diagram for describing a vertical mode defined in the two-dimensional encoding method.
【図30】2次元符号化方式において定義される水平モ
ードを説明するための図である。FIG. 30 is a diagram for describing a horizontal mode defined in the two-dimensional encoding method.
【図31】MR方式による符号化手順を示すフローチャ
ートである。FIG. 31 is a flowchart showing an encoding procedure by the MR method.
【図32】MR方式による符号化手順を示すフローチャ
ートである。FIG. 32 is a flowchart showing an encoding procedure by the MR method.
1 8ビットのシフトレジスタ 2 参照ライン変化点検出回路 3 2ビットのシフトレジスタ 4 符号化ライン変化点検出回路 5 記憶回路 Reference Signs List 1 8-bit shift register 2 Reference line change point detection circuit 3 2-bit shift register 4 Encoding line change point detection circuit 5 Storage circuit
Claims (2)
めの8ビットの第1のシフトレジスタ(1)と、この第
1のシフトレジスタ(1)内の必要な範囲で前記参照ラ
インの変化点の位置を検出するための参照ライン変化点
検出回路(2)と、符号化ラインの画素データをシフト
させるための2ビットの第2のシフトレジスタ(3)
と、この第2のシフトレジスタ(3)内で前記符号化ラ
インの変化点の有無を検出するための符号化ライン変化
点検出回路(4)と、前記第1のシフトレジスタ(1)
の7ビット目部分に変化点が存在した場合において、1
ビット分のシフトを行った場合、必要に応じて、その事
実を記憶させるための記憶回路(5)とを設けて構成さ
れていることを特徴とする変化点検出回路。1. An 8-bit first shift register (1) for shifting pixel data of a reference line, and a change point of the reference line within a necessary range in the first shift register (1). A reference line change point detection circuit (2) for detecting a position, and a 2-bit second shift register (3) for shifting pixel data of an encoding line
A coding line change point detection circuit (4) for detecting the presence or absence of a change point of the coding line in the second shift register (3); and the first shift register (1)
If there is a change point in the 7th bit of
A change point detection circuit characterized by being provided with a storage circuit (5) for storing the fact that a shift by bits has been performed, if necessary.
として内部的に表示する現在色表示回路を設け、前記第
1のシフトレジスタ(1)の隣接するビット間の参照ラ
インの色と前記現在色とを比較する第1の比較回路と、
この第1の比較回路に対して比較すべき前記第1のシフ
トレジスタ(1)のビット範囲を指示する比較範囲指示
回路とで前記参照ライン変化点検出回路(2)を構成す
ると共に、前記第2のシフトレジスタ(3)の隣接する
ビット間の符号化ラインの色と前記現在色とを比較する
第2の比較回路とで前記符号化ライン変化点検出回路
(4)を構成していることを特徴とする請求項1記載の
変化点検出回路。2. A current color display circuit for internally displaying a color to be compared with a color of a change point as a current color, wherein a current color display circuit is provided for a reference line between adjacent bits of the first shift register (1). A first comparison circuit for comparing a color with the current color;
The reference line change point detection circuit (2) comprises a comparison range designating circuit for designating a bit range of the first shift register (1) to be compared with the first comparison circuit. The coding line change point detection circuit (4) comprises a second comparison circuit for comparing the color of the coding line between adjacent bits of the second shift register (3) with the current color. The change point detection circuit according to claim 1, wherein:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP04051347A JP3134461B2 (en) | 1992-03-10 | 1992-03-10 | Change point detection circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP04051347A JP3134461B2 (en) | 1992-03-10 | 1992-03-10 | Change point detection circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05260321A JPH05260321A (en) | 1993-10-08 |
| JP3134461B2 true JP3134461B2 (en) | 2001-02-13 |
Family
ID=12884396
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP04051347A Expired - Fee Related JP3134461B2 (en) | 1992-03-10 | 1992-03-10 | Change point detection circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3134461B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102800676B1 (en) | 2022-07-28 | 2025-04-24 | 김은경 | A wrist rest for computer using |
-
1992
- 1992-03-10 JP JP04051347A patent/JP3134461B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102800676B1 (en) | 2022-07-28 | 2025-04-24 | 김은경 | A wrist rest for computer using |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05260321A (en) | 1993-10-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Sneyers et al. | FLIF: Free lossless image format based on MANIAC compression | |
| US5331426A (en) | Image encoding method | |
| KR900701129A (en) | Video telecommunication system and method for compressing and decompressing digital color video data | |
| JPH03502628A (en) | motion estimation circuit | |
| JP2924964B2 (en) | Image information encoding device, image information decoding device, and image information encoding / decoding device | |
| US20060214819A1 (en) | Image encoding device and method, and encoded image decoding device and method | |
| KR100239307B1 (en) | Contour image encoder | |
| JP3134461B2 (en) | Change point detection circuit | |
| JPH04270564A (en) | Serial picture data compression system having color information | |
| US6301300B1 (en) | Method and apparatus for efficiently coding and decoding sparse images | |
| JP2002091407A (en) | Image display device | |
| EP0357388A2 (en) | Image encoding method | |
| JPH04270569A (en) | Data compression system for picture processor | |
| JP2845376B2 (en) | Pixel density converter | |
| JPS59182670A (en) | Coder of picture signal | |
| JP2798025B2 (en) | Video coding method and apparatus | |
| JP2833743B2 (en) | MH code decoder | |
| JP2002221953A (en) | Image display device | |
| JP2842781B2 (en) | Image information processing method | |
| JPH08317228A (en) | Code decoding device | |
| JP2002135654A (en) | Image compressing device | |
| JPH0812691B2 (en) | How to convert a compressed image to a decompressed gray level reduced image | |
| JPH10108025A (en) | Image processing device | |
| KR900007566B1 (en) | Image data conversion device and method | |
| JPH08186503A (en) | System and device for compressing/extending data |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20001031 |
|
| LAPS | Cancellation because of no payment of annual fees |