JPH06276396A - Decoder and device in common use for coding and decoding - Google Patents

Decoder and device in common use for coding and decoding

Info

Publication number
JPH06276396A
JPH06276396A JP5760493A JP5760493A JPH06276396A JP H06276396 A JPH06276396 A JP H06276396A JP 5760493 A JP5760493 A JP 5760493A JP 5760493 A JP5760493 A JP 5760493A JP H06276396 A JPH06276396 A JP H06276396A
Authority
JP
Japan
Prior art keywords
output
decoding
run length
counter
test
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
JP5760493A
Other languages
Japanese (ja)
Other versions
JP3229421B2 (en
Inventor
Akihiro Hamamichi
昭宏 浜道
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP05760493A priority Critical patent/JP3229421B2/en
Publication of JPH06276396A publication Critical patent/JPH06276396A/en
Application granted granted Critical
Publication of JP3229421B2 publication Critical patent/JP3229421B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To test the decoding processing in a state close to the real operation by using a counter to be sharing at the time of decoding and at the time of test and performing an output of a comparator synchronously with a run length detection timing in the case of a rest request. CONSTITUTION:A color fed from a decoding section 2 is latched in a latch 3a, a run length is latched in a counter 4 and a shift register 5 receiving an output of the latch 3a is shifted by a value set to the counter 4. Thus, the content of the register 5 is outputted to an output section 6 for each shift. Upon a test request, the counter 4 is cleared to input coded picture information to an input section 1. Then the counter 4 does not latch the run length and counts up an output of the run length from the decoding section 2 once per twice and the value is coincident with an output run length from the decoding section 2. Thus, an error in a table and decoding processing is tested by providing an output of the comparator 7 for each run length output of the decoding section 2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、復号装置及び符号化・
復号化兼用装置に係り、詳しくは、ファクシミリ装置の
テーブルを用いた符号化処理及び復号化処理についての
テスト技術に適用することができ、特に、テスト時の出
力量を増加させることなく、テーブルを用いた復号化処
理及び符号化処理を実動作に近い状態でテストすること
ができる復号装置及び符号化・復号化兼用装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decoding device and an encoding / coding device.
The present invention relates to a decoding / combining device, and more specifically, it can be applied to a test technique for an encoding process and a decoding process using a table of a facsimile device. In particular, the table can be displayed without increasing the output amount at the time of the test. The present invention relates to a decoding device and a combined encoding / decoding device capable of testing the used decoding process and encoding process in a state close to actual operation.

【0002】[0002]

【従来の技術】一般に、ファクシミリにおける画情報の
圧縮符号化方式としては、交信性及び互換性を確保する
意図から国際規格で特定されているMH(Modified Huf
fman)、MR(Modified Relative Element adress desi
gnate) 、MMR(ModifiedMR)の各符号化方式が広
く用いられている。これらの符号化方式では、画情報
を、白ランレングスを示すコードと黒ランレングスを示
すコード及び白・黒の変化点と参照ラインの白・黒の変
化点との対応関係を表わす2次元符号化モードを示すコ
ードとの組み合わせで表現する。特に、白ランレングス
を示すコードと黒ランレングスを示すコードは、図6の
ターミネイティング符号に示す如く、コード体系になっ
ており、前述の符号化方式の何ずれにおいても利用され
る。
2. Description of the Related Art Generally, as a compression encoding method of image information in a facsimile, MH (Modified Huf) specified by an international standard is intended to ensure communication and compatibility.
fman), MR (Modified Relative Element adress desi
gnate) and MMR (Modified MR) coding systems are widely used. In these encoding methods, image information is a two-dimensional code representing a code indicating a white run length, a code indicating a black run length, and a correspondence between a white / black change point and a white / black change point on a reference line. Expressed in combination with the code that indicates the activation mode. In particular, the code indicating the white run length and the code indicating the black run length have a code system as shown in the terminating code of FIG. 6, and are used in any deviation of the above-mentioned encoding method.

【0003】ところで、近年、ISDN等のファクシミ
リ端末間の通信速度の向上及びデュアルアクセス等の機
能の高級化に伴ない、画情報の圧縮符号化及び圧縮符号
化画情報の復号再生化の速度向上の要求が高まってお
り、このために圧縮符号化・復号再生化装置のLSI化
が進めらるようになってきた。しかしながら、符号化・
復号化装置をLSI化するにあたっては、LSI製造過
程での不良の出現は避けられないものであり、それらを
篩い落とすためにLSI内部の回路が正しく動作するか
否かのテストが必要になる。このテストは、LSIに内
蔵される全ての回路について行われるのが望ましく、し
かもLSI本来の実動作に促したテストであるのが望ま
しい。
By the way, in recent years, as the communication speed between facsimile terminals such as ISDN has been improved and the functions such as dual access have been upgraded, the speed of compression encoding of image information and decoding / reproduction of compression encoded image information has been improved. There is an increasing demand for the above, and therefore, the LSI of the compression encoding / decoding / reproducing apparatus has been promoted. However, encoding
When the decoding device is integrated into an LSI, appearance of defects in the LSI manufacturing process is unavoidable, and it is necessary to test whether or not the circuit inside the LSI operates properly in order to remove them. It is desirable that this test be performed on all circuits incorporated in the LSI, and that it is a test that encourages the actual operation of the LSI.

【0004】さて、従来、例えば特開平2−21897
5号公報で報告されたテスト容易化回路では、各機能素
子の制御部にテスト用制御回路を付加し、テストモード
では機能素子単体での動作結果を出力させて期待値と比
較する方法を採っている。
Conventionally, for example, Japanese Patent Laid-Open No. 21897/1990.
In the test facilitation circuit reported in Japanese Patent Publication No. 5, a test control circuit is added to the control unit of each functional element, and in the test mode, the operation result of the functional element alone is output and compared with the expected value. ing.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記し
たような従来の符号化・復号化装置においては、図6の
コード表に相当するテーブルを内蔵する必要があり、こ
のテーブルの全てのコードについてのテストを実動作に
促して行なうのは非常に困難であるという不具合があっ
た。例えば、2560のコードについて、復号動作のテ
ストをするためには、2560画素分もの出力を得なけ
ればならず、このようなテストを全コードについて行な
うと、膨大なテスト量となり、テスト時間に莫大な時間
を要す等非常に困難である。
However, in the conventional encoding / decoding apparatus as described above, it is necessary to incorporate a table corresponding to the code table of FIG. 6, and all the codes in this table must be stored. There was a problem that it was very difficult to urge the test to the actual operation. For example, in order to test the decoding operation for 2560 codes, it is necessary to obtain an output of 2560 pixels. If such a test is carried out for all codes, a huge amount of test is required and the test time is huge. It takes a very long time and is very difficult.

【0006】これを解決するためには、LSIにテスト
回路を内蔵する方法が考えられ、容易な方法としては、
LSIにテスト用入出力端子を設け、テーブルへのアク
セスと出力を直接行う手段が考えられるが、この方法で
は、テスト用の端子が増加するとともに、テーブル自体
のテストしか行なわれず、テーブルを使用した符号化処
理及び復号化処理についてのテストを実動作に近い状態
で行えないという不都合が生じる。
In order to solve this, a method of incorporating a test circuit in the LSI can be considered, and an easy method is as follows.
It is conceivable to provide a test input / output terminal on the LSI to directly access and output the table. However, this method increases the number of test terminals and only tests the table itself. There is an inconvenience that the test for the encoding process and the decoding process cannot be performed in a state close to the actual operation.

【0007】そこで本発明は、テスト時の出力量を増加
させることなく、テーブルを用いた復号化処理及び符号
化処理を実動作に近い状態でテストすることができる復
号装置及び符号化・復号化兼用装置を提供することを目
的としている。
Therefore, the present invention is a decoding device and an encoding / decoding device that can test a decoding process and an encoding process using a table in a state close to actual operation without increasing the output amount at the time of testing. It is intended to provide a combined use device.

【0008】[0008]

【課題を解決するための手段】請求項1記載の発明は、
MH(Modified Huffman) 符号化画情報の復号装置にお
いて、復号時とテスト時に兼用して用いるカウンタと、
該カウンタの出力と復号後のランレングスとを比較する
比較器と、テスト要求時にランレングス検出タイミング
に同期して該比較器出力を行うように制御する制御部と
を有することを特徴とするある。
The invention according to claim 1 is
In a decoding device for MH (Modified Huffman) coded image information, a counter used both for decoding and for testing,
It is characterized in that it has a comparator for comparing the output of the counter and the run length after decoding, and a control unit for controlling the output of the comparator in synchronization with the run length detection timing at the time of a test request. .

【0009】請求項2記載の発明は、上記請求項1記載
の発明において、テスト要求があった時、前記比較器出
力を再生画情報として出力する出力部を有することを特
徴とするものである。請求項3記載の発明は、MH(Mo
dified Huffman) 符号の符号化・復号化兼用装置におい
て、符号化時とテスト時に兼用して用いるカウンタと、
該カウンタの出力と復号後のランレングスとを比較する
比較器と、テスト要求時にランレングス検出タイミング
に同期して該比較器出力を行うように制御する制御部と
を有することを特徴とするものである。
The invention according to claim 2 is characterized in that, in the invention according to claim 1, there is provided an output section for outputting the output of the comparator as reproduced image information when a test request is made. . The invention according to claim 3 is MH (Mo
dified Huffman) In a device for both encoding and decoding of codes, a counter that is used for both encoding and testing,
It has a comparator for comparing the output of the counter and the run length after decoding, and a control unit for controlling the output of the comparator in synchronization with the run length detection timing at the time of a test request. Is.

【0010】請求項4記載の発明は、上記請求項3記載
の発明において、テスト要求があった時、前記比較器出
力を再生画情報として出力する出力部を有することを特
徴とするものである。
The invention according to claim 4 is characterized in that, in the invention according to claim 3, there is an output section for outputting the output of the comparator as reproduced image information when a test request is made. .

【0011】[0011]

【作用】従来の特開平2−218975号公報では、各
機能素子の制御部にテスト用制御回路を付加し、テスト
モードでは、機能素子単体での動作結果を出力させて期
待値と比較する方法を採っているが、本発明では、上記
期待値に相当するものをLSI内部で作成し、その値と
テスト対象となる機能素子の出力値の比較結果を外部に
出力することにより、テスト時の出力量を減らすことが
できるうえ、テスト用制御回路をテスト対象となる機能
素子とは別の回路(カウンタ)に設けることにより、テ
スト用制御回路をテスト対象となる機能素子を通常動作
させてテストすることができる。以下、本発明の作用を
請求項毎に説明する。
In the conventional Japanese Unexamined Patent Publication No. 2-218975, a test control circuit is added to the control unit of each functional element, and in the test mode, the operation result of the functional element alone is output and compared with the expected value. However, in the present invention, a value corresponding to the expected value is created inside the LSI, and the comparison result of the value and the output value of the functional element to be tested is output to the outside, so that In addition to reducing the amount of output, by providing the test control circuit in a circuit (counter) separate from the functional element to be tested, the test control circuit can be tested by operating the functional element to be tested normally. can do. Hereinafter, the operation of the present invention will be described for each claim.

【0012】請求項1記載の発明では、MH符号化画情
報の復号装置において、復号時とテスト時に兼用される
カウンタを用い、このカウンタの出力と復号後のランレ
ングスとを比較器で比較し、テスト要求する際、ランレ
ングス検出タイミングに同期して比較器出力を行うよう
に制御部で適宜制御することができる。このため、テス
ト時の出力量を増加させることなく、僅かな回路追加で
MH符号テーブル及びテーブルを用いた復号処理を実動
作に近い状態でテストすることができる。
According to the first aspect of the present invention, in the decoding device for MH coded image information, a counter which is used both for decoding and for testing is used, and the output of this counter and the run length after decoding are compared by a comparator. When the test request is issued, the control section can appropriately control so that the comparator output is performed in synchronization with the run length detection timing. For this reason, the MH code table and the decoding process using the table can be tested in a state close to the actual operation by slightly adding a circuit without increasing the output amount at the time of the test.

【0013】請求項2記載の発明では、上記請求項1記
載の発明において、テスト要求があった時、前記比較器
出力を再生画情報として出力部で出力することができ
る。このため、入出力端子を増やすことなく、上記請求
項1記載の発明の効果を効率良く得ることができる。請
求項3記載の発明では、MH符号の符号化・復号化兼用
装置において、復号時とテスト時に兼用されるカウンタ
を用い、このカウンタの出力と復号後のランレングスと
を比較器で比較し、テスト要求する際、ランレングス検
出タイミングに同期して比較器出力を行うように制御部
で適宜制御することができる。このため、テスト時の出
力量を増加させることなく、僅かな回路追加でMH符号
テーブル及びテーブルを用いた復号処理を実動作に近い
状態でテストすることができる他、符号化部のテーブル
及び符号化処理のテストにも兼用することができる。
According to the invention described in claim 2, in the invention described in claim 1, when there is a test request, the output of the comparator can be output at the output section as reproduced image information. Therefore, the effect of the invention described in claim 1 can be efficiently obtained without increasing the number of input / output terminals. According to the third aspect of the present invention, in the combined MH code encoding / decoding device, a counter that is used both for decoding and for testing is used, and the output of this counter and the run length after decoding are compared by a comparator, When a test request is issued, the control section can appropriately control so that the comparator output is performed in synchronization with the run length detection timing. For this reason, the MH code table and the decoding process using the table can be tested in a state close to the actual operation by slightly adding a circuit without increasing the output amount at the time of the test, and the table and the code of the encoding unit can be tested. It can also be used as a test for chemical processing.

【0014】請求項4記載の発明では、上記請求項3記
載の発明において、テスト要求があった時、前記比較器
出力を再生画情報として出力部で出力することができ
る。このため、入出力端子を増やすことなく、上記請求
項3記載の発明の効果を効率良く得ることができる。
According to the invention described in claim 4, in the invention described in claim 3, when there is a test request, the output of the comparator can be output as reproduction image information at the output section. Therefore, the effect of the invention described in claim 3 can be efficiently obtained without increasing the number of input / output terminals.

【0015】[0015]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。 (実施例1)図1は本発明(請求項1)の実施例1に則
した復号装置の構成を示すブロック図である。この図1
に従って復号再生動作を説明する。まず、符号化画情報
入力部1から供給される符号化画情報は、復号部2で符
号単位に区分けされ、前述した図6のテーブルに照らし
合わされてカラーとランレングスの形に復号される。次
いで、画像再生部では、復号部2から供給されるカラー
をラッチ3aにラッチし、ランレングスをカウンタ4に
ラッチし、ラッチ3aの出力を入力とするシフトレジス
タ5を、カウンタ4にセットされた値だけシフトする。
こうしてランレングスの画素数だけ画像再生され、シフ
トレジスタ5の一定量のシフト毎にシフトレジスタ5の
値を出力部6へ出力することで再生画像の出力が行われ
る。なお、カウンタ4の出力と符号後のランレングスと
を比較器7で比較し、この比較された値をラッチ3bに
ラッチした後、このラッチ3bの値を出力部6へ出力す
る。
Embodiments of the present invention will be described below with reference to the drawings. (Embodiment 1) FIG. 1 is a block diagram showing the configuration of a decoding device according to Embodiment 1 of the present invention (claim 1). This Figure 1
The decoding / reproducing operation will be described below. First, the coded image information supplied from the coded image information input unit 1 is divided into code units by the decoding unit 2 and compared with the above-described table of FIG. 6 to be decoded into color and run length forms. Next, in the image reproducing unit, the color supplied from the decoding unit 2 is latched in the latch 3a, the run length is latched in the counter 4, and the shift register 5 having the output of the latch 3a as an input is set in the counter 4. Shift by the value.
In this way, the image is reproduced by the number of pixels of the run length, and the reproduced image is output by outputting the value of the shift register 5 to the output unit 6 for each fixed amount of shift of the shift register 5. The comparator 7 compares the output of the counter 4 with the run length after signing, latches the compared value in the latch 3b, and then outputs the value of the latch 3b to the output unit 6.

【0016】ここでテスト要求があった時は、まずカウ
ンタ4をクリアし、符号化画情報入力部1に白ランレン
グス0・黒ランレングス0・白ランレングス1・黒ラン
レングス1・白ランレングス2……白ランレングス63・
黒ランレングス63のように、白・黒が各々0ランレング
スの画像から始まり、各々1画素づつ増した組み合わせ
の画像が順々に連なり、63ランレングスの組み合わせで
連なった画像を対象とする符号化画情報を入力する。従
って、復号部2から出力されるランレングスは、0〜63
の値が各々2回づつ出力される。そこで、カウンタ4は
ランレングスの値をラッチせずに、復号部2からのラン
レングスの出力の2回に1回の割合でカウントアップす
るように制御することで、その値は復号部2の出力のラ
ンレングス値と一致する。従って、復号部2のランレン
グス出力毎に比較器7の値を出力することにより、復号
部2のテーブル及び復号処理に誤りがないかをテストす
る。
When there is a test request, the counter 4 is cleared first, and the coded image information input unit 1 receives white run length 0, black run length 0, white run length 1, black run length 1, white run. Length 2 ... White run length 63
Like black run length 63, white and black each start with an image of 0 run length, and each combination of images increases by 1 pixel in sequence, and a code for an image of a combination of 63 run lengths Enter the transformation information. Therefore, the run length output from the decoding unit 2 is 0 to 63.
Is output twice each. Therefore, the counter 4 does not latch the run-length value, but controls the counter to count up the run-length output from the decoding unit 2 at a rate of once every two times. It matches the output run length value. Therefore, by outputting the value of the comparator 7 for each run length output of the decoding unit 2, it is tested whether or not there is an error in the table and the decoding process of the decoding unit 2.

【0017】ここで、テストモードにおける復号部2と
カウンタ4と比較器7の制御フローを図2のフローチャ
ートを用いて説明する。まず、テスト要求があると、カ
ウンタ4をクリアし(処理S2 )、テストパターンを入
力して復号処理を行う(処理S2 、S3 )。復合処理
後、カウンタ4と復号結果の比較結果を出力し(処理S
4 、S5 )、再度復号処理を行う(処理S6 )。復号処
理後、カウンタ4と復号結果の比較結果を出力し(処理
8 )、全テストパターンの復号処理を行うと(処理S
9 )、テストを終了し、一方、全テストパターンの復合
処理を終了していない場合は、カウンタ4でカウントア
ップし(処理S10)、処理S3 に戻り再度上記と同様の
処理を行う。
Here, the decoding unit 2 in the test mode
The control flow of the counter 4 and the comparator 7 is shown in the flow chart of FIG.
It will be explained using a table. First, if there is a test request,
Clear Unta 4 (Process S2), Enter the test pattern
Force to perform the decoding process (process S2, S3). Recovery process
After that, the comparison result of the counter 4 and the decoding result is output (process S
Four, SFive), The decryption process is performed again (process S)6). Decryption process
After that, the comparison result between the counter 4 and the decoding result is output (processing
S8), When all the test patterns are decoded (process S
9), End the test, and then merge all test patterns
If processing is not completed, the counter 4
(Process STen), Process S3Return to the same as above
Perform processing.

【0018】このように、本実施例では、MH符号化画
情報の復号装置において、復号時とテスト時に兼用され
るカウンタ4を用い、このカウンタ4の出力と復号後の
ランレングスとを比較器7で比較し、テスト要求する
際、ランレングス検出タイミングに同期して比較器7出
力を行うように適宜制御するように構成している。この
ため、テスト時の出力量を増加させることなく、僅かな
回路追加でMH符号テーブル及びテーブルを用いた復号
処理を実動作に近い状態でテストすることができる。 (実施例2)図3は本発明(請求項2)の実施例2に則
して復号装置の構成を示すブロック図である。本実施例
では、請求項2に該当する特徴部分を具体的に説明し、
図2の復号部2とカウンタ4と比較器7の制御等は実施
例1と同様であるので省略する。図3において、図1と
同一符号は同一又は相当部分を示し、11は復号部2から
供給されるカラーがラッチされるラッチ3aの値が入力
されるとともに、カウンタ4の出力と復号後のランレン
グスとを比較器7で比較された値がラッチされるラッチ
3bの値が入力されるセレクタである。本実施例では、
テスト要求があった時に、セレクタ11での比較結果がシ
フトレジスタ5に入力され、シフトレジスタ5は、復号
部2のランレングス出力タイミングに同期してシフトす
るように制御することによってテスト結果を再生画像に
見倣なして出力する。
As described above, in this embodiment, in the decoding apparatus for MH encoded image information, the counter 4 which is used both for decoding and for testing is used, and the output of this counter 4 and the run length after decoding are compared. When the comparison is performed in step 7 and a test request is made, the control is appropriately performed so that the comparator 7 outputs in synchronization with the run length detection timing. For this reason, the MH code table and the decoding process using the table can be tested in a state close to the actual operation by slightly adding a circuit without increasing the output amount at the time of the test. (Embodiment 2) FIG. 3 is a block diagram showing a configuration of a decoding device according to Embodiment 2 of the present invention (claim 2). In this embodiment, the characteristic part corresponding to claim 2 will be specifically described.
The control of the decoding unit 2, the counter 4, and the comparator 7 in FIG. In FIG. 3, the same reference numerals as those in FIG. 1 indicate the same or corresponding portions, and 11 indicates the value of the latch 3a for latching the color supplied from the decoding unit 2 and the output of the counter 4 and the run after decoding. It is a selector to which the value of the latch 3b into which the value obtained by comparing the length with the comparator 7 is latched is input. In this embodiment,
When there is a test request, the comparison result of the selector 11 is input to the shift register 5, and the shift register 5 reproduces the test result by controlling to shift in synchronization with the run length output timing of the decoding unit 2. The image is imitated and output.

【0019】このように、本実施例では、テスト要求が
あった時、比較器7出力を再生画情報として出力するよ
うに構成している。このため、入出力端子を増やすこと
なく、上記実施例1の効果を効率良く得ることができ
る。 (実施例3)図4は本発明(請求項3)の実施例3に則
した符号化・復号化兼用装置の構成を示すブロック図で
ある。図4において、図3と同一符号は同一又は相当部
分を示す。なお、比較器7には、実施例1と同様にカウ
ンタ4の値と復号後のランレングスとが入力されるとと
もに、更にカウンタ23の値が入力され、この比較器7で
の比較結果は、実施例1と同様にラッチ3bに入力さ
れ、更に出力部6に入力される。本実施例では、復号動
作については実施例1と同様であるので省略し、符号化
動作について具体的に説明する。まず、画情報入力部21
より画情報が変化点検出部22に与えられると、変化点が
検出されるまでの画素数をカウンタ23でカウントし、そ
の時のカラーがラッチ24に保存される。次いで、変化点
が検出されると、その時点でのカラーとカウンタ23の値
が符号化部25に与えられ、符号化部25では図6のテー
ブルに基づいて符号化して結果を出力することにより、
画情報の符号化が行なわれる。そして、テスト要求があ
った時は、カウンタ23のカウントアップを実施例1と同
様に制御することにより、復号部2のテスト結果が得ら
れる他、画情報入力することなく符号化部25のテスト出
力を得ることができる。
As described above, in this embodiment, when the test is requested, the output of the comparator 7 is output as the reproduced image information. Therefore, the effect of the first embodiment can be efficiently obtained without increasing the number of input / output terminals. (Embodiment 3) FIG. 4 is a block diagram showing the structure of a combined encoding / decoding device according to Embodiment 3 of the present invention (claim 3). 4, the same reference numerals as those in FIG. 3 indicate the same or corresponding parts. The value of the counter 4 and the decoded run length are input to the comparator 7 as in the first embodiment, and the value of the counter 23 is further input. The comparison result of the comparator 7 is Similar to the first embodiment, it is input to the latch 3b and further input to the output unit 6. In this embodiment, the decoding operation is the same as that in the first embodiment, and therefore the description thereof is omitted, and the encoding operation will be specifically described. First, the image information input section 21
When the image information is given to the changing point detecting unit 22, the number of pixels until the changing point is detected is counted by the counter 23, and the color at that time is stored in the latch 24. Next, when a change point is detected, the color at that time and the value of the counter 23 are given to the encoding unit 25, and the encoding unit 25 encodes based on the table of FIG. 6 and outputs the result. ,
Image information is encoded. When a test request is made, the test result of the decoding unit 2 is obtained by controlling the count-up of the counter 23 in the same manner as in the first embodiment, and the test of the encoding unit 25 is performed without inputting image information. You can get the output.

【0020】このように、本実施例では、MH符号の符
号化・復号化兼用装置において、復号時とテスト時に兼
用されるカウンタ4を用い、このカウンタ4の出力と復
号後のランレングスとを比較器7で比較し、テスト要求
する際、ランレングス検出タイミングに同期して比較器
7出力を行うように適宜制御するように構成している。
このため、テスト時の出力量を増加させることなく、僅
かな回路追加でMH符号テーブル及びテーブルを用いた
復号処理を実動作に近い状態でテストすることができる
他、符号化部25のテーブル及び符号化処理のテストにも
兼用することができる。 (実施例4)図4は本発明(請求項4)の実施例4に則
した符号化・復号装置の構成を示すブロック図である。
本実施例では、請求項4に該当する特徴部分を具体的に
説明し、図2の復号部2とカウンタ4と比較器7の制御
等は実施例1と同様であるので省略する。図4におい
て、図3と同一符号は同一又は相当部分を示し、11aは
復合部2から供給されるカラーがラッチされるラッチ3
aの値が入力されるとともに、カウンタ4、23の出力と
復号後のランレングスとを比較器7で比較された値がラ
ッチされるラッチ3bの値が入力されるセレクタであ
る。本実施例では、テスト要求があった時に、セレクタ
11での比較結果がシフトレジスタ5に入力され、シフト
レジスタ5は、復号部2のランレングス出力タイミング
に同期してシフトするように制御することによって、テ
スト結果を再生画像に見倣なして出力する。
As described above, in this embodiment, in the combined MH code encoding / decoding device, the counter 4 which is used both for decoding and for testing is used, and the output of this counter 4 and the run length after decoding are used. When the comparator 7 compares and requests a test, the comparator 7 is appropriately controlled so as to output the comparator 7 in synchronization with the run length detection timing.
For this reason, the MH code table and the decoding process using the table can be tested in a state close to the actual operation by slightly adding a circuit without increasing the output amount at the time of the test, and the table of the encoding unit 25 and It can also be used for testing the encoding process. (Embodiment 4) FIG. 4 is a block diagram showing the structure of an encoding / decoding device according to Embodiment 4 of the present invention (claim 4).
In the present embodiment, the characteristic portion corresponding to claim 4 will be specifically described, and the control of the decoding unit 2, the counter 4, and the comparator 7 in FIG. 4, the same reference numerals as those in FIG. 3 indicate the same or corresponding portions, and 11a is a latch 3 for latching the color supplied from the merging unit 2.
It is a selector to which the value of a is input and the value of the latch 3b into which the value obtained by comparing the outputs of the counters 4 and 23 and the decoded run length by the comparator 7 is input. In this embodiment, when there is a test request, the selector
The comparison result at 11 is input to the shift register 5, and the shift register 5 outputs the test result while imitating the reproduced image by controlling so as to shift in synchronization with the run length output timing of the decoding unit 2. To do.

【0021】このように、本実施例では、テスト要求が
あった時、比較器7出力を再生画情報として出力するよ
うに構成している。このため、入出力端子を増やすこと
なく、上記実施例3の効果を効率良く得ることができ
る。
As described above, in this embodiment, when the test is requested, the output of the comparator 7 is output as the reproduced image information. Therefore, the effect of the third embodiment can be efficiently obtained without increasing the number of input / output terminals.

【0022】[0022]

【発明の効果】本発明によれば、テスト時の出力量を増
加させることなく、テーブルを用いた復号化処理及び符
号化処理を実動作に近い状態でテストするこができると
いう効果がある。
According to the present invention, there is an effect that the decoding process and the encoding process using the table can be tested in a state close to the actual operation without increasing the output amount at the time of the test.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施例1に則した復号装置の構成を示
すブロック図である。
FIG. 1 is a block diagram showing a configuration of a decoding device according to a first embodiment of the present invention.

【図2】本発明の実施例1に則したテストモードにおけ
る復号部とカウンタと比較器の制御フローを示すフロー
チャートである。
FIG. 2 is a flowchart showing a control flow of the decoding unit, the counter, and the comparator in the test mode according to the first embodiment of the present invention.

【図3】本発明の実施例2に則した復号装置の構成を示
すブロック図である。
FIG. 3 is a block diagram showing a configuration of a decoding device according to a second embodiment of the present invention.

【図4】本発明の実施例3に則した符号化・復号化兼用
装置の構成を示すブロック図である。
FIG. 4 is a block diagram showing a configuration of a combined encoding / decoding device according to a third embodiment of the present invention.

【図5】本発明の実施例4に則した符号化・復号化兼用
装置の構成を示すブロック図である。
FIG. 5 is a block diagram showing the configuration of a combined encoding / decoding device according to a fourth embodiment of the present invention.

【図6】ターミネイティング符号を示す図である。FIG. 6 is a diagram showing a terminating code.

【符号の説明】[Explanation of symbols]

1 符号化画情報入力部 2 復号部 3a、3b、24ラッチ 4、23カウンタ 5 シフトレジスタ 6 出力部 7 比較器 11 セレクタ 21 画情報入力部 22 変化点検出部 25 符号化部 1 coded image information input unit 2 decoding unit 3a, 3b, 24 latch 4, 23 counter 5 shift register 6 output unit 7 comparator 11 selector 21 image information input unit 22 change point detection unit 25 coding unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】MH(Modified Huffman) 符号化画情報の
復号装置において、復号時とテスト時に兼用して用いる
カウンタと、該カウンタの出力と復号後のランレングス
とを比較する比較器と、テスト要求時にランレングス検
出タイミングに同期して該比較器出力を行うように制御
する制御部とを有することを特徴とする復号装置。
1. A decoding device for MH (Modified Huffman) coded image information, a counter used for both decoding and testing, a comparator for comparing the output of the counter and the decoded run length, and a test. And a control unit that controls the output of the comparator in synchronization with the run length detection timing when requested.
【請求項2】テスト要求があった時、前記比較器出力を
再生画情報として出力する出力部を有することを特徴と
する請求項1記載の復号装置。
2. The decoding apparatus according to claim 1, further comprising an output unit for outputting the output of the comparator as reproduced image information when a test request is made.
【請求項3】MH(Modified Huffman) 符号の符号化・
復号化兼用装置において、符号化時とテスト時に兼用し
て用いるカウンタと、該カウンタの出力と復号後のラン
レングスとを比較する比較器と、テスト要求時にランレ
ングス検出タイミングに同期して該比較器出力を行うよ
うに制御する制御部とを有することを特徴とする符号化
・復号化兼用装置。
3. Encoding of MH (Modified Huffman) code
In a decoding / combining device, a counter used for both encoding and testing, a comparator for comparing the output of the counter with the run length after decoding, and the comparison in synchronization with the run length detection timing when a test is requested. And an encoding / decoding device having a control unit for controlling so as to perform a digital output.
【請求項4】テスト要求があった時、前記比較器出力を
再生画情報として出力する出力部を有することを特徴と
する請求項3記載の符号化・復号化兼用装置。
4. The combined encoding / decoding apparatus according to claim 3, further comprising an output unit for outputting the output of the comparator as reproduced image information when a test request is made.
JP05760493A 1993-03-18 1993-03-18 Decoding device and encoding / decoding combined device Expired - Fee Related JP3229421B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05760493A JP3229421B2 (en) 1993-03-18 1993-03-18 Decoding device and encoding / decoding combined device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05760493A JP3229421B2 (en) 1993-03-18 1993-03-18 Decoding device and encoding / decoding combined device

Publications (2)

Publication Number Publication Date
JPH06276396A true JPH06276396A (en) 1994-09-30
JP3229421B2 JP3229421B2 (en) 2001-11-19

Family

ID=13060468

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05760493A Expired - Fee Related JP3229421B2 (en) 1993-03-18 1993-03-18 Decoding device and encoding / decoding combined device

Country Status (1)

Country Link
JP (1) JP3229421B2 (en)

Also Published As

Publication number Publication date
JP3229421B2 (en) 2001-11-19

Similar Documents

Publication Publication Date Title
US5742351A (en) Device for encoding sequences of frames constituted by film-type images and video-type images, and corresponding decoding device
US6185339B1 (en) Bit stream analyzing method and apparatus
KR100269869B1 (en) Data rate conversion
US6298090B1 (en) System for detecting redundant images in a video sequence by comparing two predetermined threshold values
JPH04270568A (en) Data compression system in picture processing unit
JPS6145429B2 (en)
JPH11239351A (en) Moving image coding method, decoding method, encoding device, decoding device and recording medium storing moving image coding and decoding program
JP3308675B2 (en) Encoding device
JP2001157204A (en) Moving picture decoding method and device
US5479209A (en) Preprocessor for moving picture encoding
JP3229421B2 (en) Decoding device and encoding / decoding combined device
US20040076235A1 (en) Method and an apparatus for reordering a decoded picture sequence using virtual picture
JPH05227440A (en) Device and method of coding data
CN112449201B (en) Decoding method, encoding method, corresponding devices, electronic equipment and storage medium
US7440503B2 (en) Decoding apparatus and decoding method in an order opposite to the encoding order
JP2002091407A (en) Picture display device
JPH10215228A (en) Transmission code error correction system and coder and decoder used for the system
JPH04270569A (en) Data compression system for picture processor
JP3543595B2 (en) Digital magnetic recording and reproducing device
JPH08228350A (en) Circuit and method for developing zero-run
JP3029863B2 (en) Compressed data decoding device
JPH0723384A (en) Encoder and decoder
JPH0556284A (en) Treatment of coder and decoder
JP3371634B2 (en) Fractal image compression restoration method and compression apparatus
JP3108243B2 (en) Encoding and decoding device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080907

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20080907

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20090907

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090907

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100907

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees