JPS6341273B2 - - Google Patents
Info
- Publication number
- JPS6341273B2 JPS6341273B2 JP14578782A JP14578782A JPS6341273B2 JP S6341273 B2 JPS6341273 B2 JP S6341273B2 JP 14578782 A JP14578782 A JP 14578782A JP 14578782 A JP14578782 A JP 14578782A JP S6341273 B2 JPS6341273 B2 JP S6341273B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- signal
- image signal
- encoding
- sequencer
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/41—Bandwidth or redundancy reduction
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
Description
産業上の利用分野
本発明は、フアクシミリ装置等において、モデ
イフアイド・ホフマン(以下、MHと略記する)
およびモデイフアイド・リード(以下、MRと略
記する)符号化方式による符号化および復合化を
行う画信号符号化・復号化大規模集積回路に関す
る。
従来例の構成とその問題点
現在、フアクシミリにおける画信号の符号化方
式としては、CCITT(国際電信電話諮問委員会)
の勧告T.4により、一次元符号化についてはMH
符号化方式、二次元符号化についてはMR符号化
方式が国際的に標準化されている。
ここで、前記MH符号化方式とは、符号化ライ
ン画信号の変化点を検出し、そのラン・レングス
およびランの黒、白の別に対応するMH符号を用
いる方式であり、前記MH符号には、第1表に示
すように0〜63のラン・レングスに対応するター
ミネーテイング符号(以下、TCと略記する)と、
64〜2560までの64ラン毎のラン・レングスに対す
るメーク・アツプ符号(以下、MCと略記する)
とがある。すなわち、64以上のランは、MCとそ
れに続くTCにより符号化される。
Industrial Application Field The present invention is applicable to modified Hoffman (hereinafter abbreviated as MH) in facsimile equipment, etc.
The present invention also relates to a large-scale integrated circuit for encoding and decoding image signals that performs encoding and decoding using a modified read (hereinafter abbreviated as MR) encoding method. Conventional configuration and its problems Currently, the image signal encoding method for facsimile is based on the CCITT (International Telegraph and Telephone Consultative Committee).
According to Recommendation T.4, MH
Regarding the encoding method and two-dimensional encoding, the MR encoding method is internationally standardized. Here, the MH encoding method is a method that detects a change point in an encoded line image signal and uses an MH code corresponding to the run length and whether the run is black or white. , a terminating code (hereinafter abbreviated as TC) corresponding to a run length of 0 to 63 as shown in Table 1,
Make-up code for each run length of 64 runs from 64 to 2560 (hereinafter abbreviated as MC)
There is. That is, runs of 64 or more are encoded by an MC followed by a TC.
【表】【table】
【表】
また、前記MR符号化方式とは、符号化ライン
画信号の変化点と、参照ライン(符号化ラインの
前ライン)画信号の変化点とを検出し、その相対
位置から符号化ラインを逐次符号化する方式であ
る。このMR符号化方式において、符号化ライン
および参照ラインの変化点は、次のように定儀さ
れる。
a0:符号化ライン上の参照または基点変化点
符号化ラインの始めではa0はラインの最初の
画素の直前の仮想的白変化点上に置かれる。符
号ラインの符号化の間はa0の位置は直前の符号
化モードにより規定される。
a1:符号化ライン上でa0より右の最初の変化点
a2:符号化ライン上でa1より右の最初の変化点
b1:参照ライン上の変化画素のうちa0より右でa0
と反対の色を持つ最初の変化点
b2:参照ライン上でb1の右の最初の変化点
第1図は上述の変化点の位置関係の例を示す。
また、第2表は変化点の相対位置によるモードの
区分と対応する符号を示す。[Table] In addition, the above-mentioned MR encoding method detects the change point of the encoded line image signal and the change point of the reference line (line before the encoded line) image signal, and from their relative positions, the encoded line image signal is detected. This is a method that sequentially encodes the In this MR encoding method, the changing points of the encoded line and the reference line are defined as follows. a 0 : Reference or base point change point on the encoded line At the beginning of the encoded line, a 0 is placed on the virtual white change point immediately before the first pixel of the line. During encoding of a code line, the position of a 0 is defined by the previous encoding mode. a 1 : The first changing point to the right of a 0 on the encoding line a 2 : The first changing point to the right of a 1 on the encoding line b 1 : Among the changing pixels on the reference line, to the right of a 0 a 0
The first change point b 2 having the opposite color: the first change point to the right of b 1 on the reference line FIG. 1 shows an example of the positional relationship of the above-mentioned change points.
Further, Table 2 shows the mode classification according to the relative position of the change point and the corresponding code.
【表】
さて、従来のフアクシミリ装置におけるMH・
MR符号化および復合化回路には、汎用マイク
ロ・コンピユータ(以下、MPUと略記する)に
よるソフトウエアに依存するものと、専用ハード
ウエア回路によるものがあつた。
しかし、前者は、汎用MPUの動作速度により
処理速度が規定されてしまうので、高速処理には
不向きであると言う欠点があつた。
また、後者においては、符号化回路は、参照ラ
インおよび符号化ラインの変化点検出回路と、変
化点間距離a0a1、a0b1、a1a2、a0b2を計数するカ
ウンタと、この計数値を演算してMR符号化のモ
ードを出力する回路と、前記モードおよび計数値
をそれらに対応する符号データに変換するテーブ
ルROMと、前記符号データを連続したデータ列
に変換するパラレル/シリアル変換(以下、P/
S変換と略記する)回路とから構成される一方、
復号化回路はシリアルな符号データ列からMR符
号のモードまたはMH符号のラン・レングスを復
号するテーブルROM回路と、参照ライン上の変
化点b1,b2を検出し、前記モードから画信号を生
成する回路と、前記ラン・レングスを計数して画
信号を生成する回路とから構成される。
そして、前記符号化回路および復合化回路と
も、前記各構成回路を設定、制御する回路がさら
に必要であつた。
したがつて、処理速度は高速とできるが、回路
構成が大規模かつ繁雑となるという欠点があつ
た。
発明の目的
本発明は、前記従来の欠点を解消するべくなさ
れたもので、処理速度を低下させることなく、符
号化回路および復合化回路の構成規模を縮小する
ことができる画信号符号化/復合化LSIを提供す
ることを目的とする。
発明の構成
本発明の画信号符号化/復合化LSIは、参照ラ
イン画信号、符号化ライン画信号および1ライン
の画素数を規定するライン・イネーブル信号を入
力として、画信号の変化点およびMR符号化方式
のモードを検出する変化点・モード検出回路と、
復号化時に復号化ライン画信号を出力する復号化
ライン画信号出力回路と、画信号のラン・レング
スを計数するラン・レングス・カウンタ回路と、
符号化時に、生成された符号データのビツト・レ
ングスを計数するビツト・レングス・カウンタ回
路と、外部の汎用マイクロ・コンピユータのバス
に接続され、このバスに対し符号データを入出力
できるようになつているとともに、制御レジスタ
を備えた符号データ入出力回路と、一次記憶およ
び演算機能を持ち、かつ同一記憶回路にプログラ
ムとMH符号テーブルを格納したマイクロ・プロ
グラム方式のシーケンサ回路とを単一の半導体基
板に一体的に集積形成してなり、前記変化点・モ
ード検出回路、前記復号化ライン画信号出力回
路、前記ラン・レングス・カウンタ回路、前記ビ
ツト・レングス・カウンタ回路、前記符号データ
入出力回路および前記シーケンサ回路は共通のシ
ーケンサ・バスに接続されており、前記シーケン
サ回路が、前記外部の汎用マイクロ・コンピユー
タから前記制御レジスタに設定される動作モード
にしたがつて前記プログラムを実行することによ
り、前記共通のシーケンサ・バスに接続されてい
る他の回路を制御して、MHおよびMR符号化方
式の符号化および復号化処理を実行するものであ
り、MH・MR両符号化方式による符号化および
復号化処理を共通の回路構成で高速に実現でき、
また、制御および符号データの管理が外部の
MPUで簡単に行えるものである。
実施例の説明
第2図は本発明の一実施例による画信号符号
化/復号化LSIを示し、LSI1は変化点・モード
検出回路2、復号化ライン画信号出力回路3、ラ
ン・レングス・カウンタ回路4、ビツト・レング
ス・カウンタ回路5、符号データ入出力回路6、
およびシーケンサ回路7を単一の半導体基板に一
体的に集積形成してなる。
ここで、前記変化点・モード検出回路2は、参
照ライン画信号、符号化ライン画信号、および1
ラインの画素数を規定するライン・イネーブル信
号を同期してシリアルに入力し、これらの入力か
ら1画素毎に、変化点の検出とMR符号化のモー
ドの判定を行い、変化点検出情報はシーケンサ回
路7の条件信号として出力し、モード情報はシー
ケンサ・バスへ出力するものである。
前記復号化ライン画信号出力回路3は、復号化
時に、シーケンサ・バスを介して画信号の“1”、
“0”をセツトするものである。
前記ラン・レングス・カウンタ回路4は、画信
号の入力と同期してラン・レングスを計数するも
のであり、その計数値の読み出しと初期値の設定
はシーケンサ回路7により、シーケンサ・バスを
通して行われ、そのキヤリーはシーケンサ7の条
件信号とされる。
前記ビツト・レングス・カウンタ回路5は符号
データのシリアル・シフトに同期して符号データ
のビツト・レングスを計数するものであり、その
初期値はシーケンサ・バスを通して設定され、そ
のキヤリーは保持されてシーケンサ回路7の条件
信号として出力される。
前記符号データ入出力回路6は外部の汎用
MPU(図示せず)のバスに接続されるものであ
り、前記MPUとインターフエイス機能を持ち、
符号化時には、シーケンサ回路7からのシリアル
な符号データをシリアル/パラレル(以下、S/
Pと略記する)変換してMPUバスへ出力する一
方、復号化時には、前記MPUからのパラレルな
符号データをP/S変換して、シーケンサ回路7
へ出力する。また、この符号データ入出力回路6
はシーケンサ回路7が符号データの転送を要求し
たときに、外部MPUバスの転送が間に合わない
場合には、シーケンサ回路7へストツプ信号S14
を出力する。さらに、この符号データ入出力回路
6は本LSI1の動作モードを外部MPUから設定
される制御レジスタを有しており、このレジスタ
の内容はシーケンサ・バスへ読み出すことができ
る。
前記シーケンサ回路7はシーケンサ・バス上の
情報の一時記憶および演算機能を有するマイク
ロ・プログラム方式のシーケンサ回路であり、変
化点・モード検出回路2、復号化ライン画信号出
力回路3、ラン・レングス・カウンタ回路4、ビ
ツト・レングス・カウンタ回路5および符号デー
タ入出力回路6を、条件信号およびシーケンサ・
バスを通して制御する。また、このシーケンサ回
路7はそのプログラムROM上にMH符号デー
タ・テーブルを有している。
第3図は前記変化点・モード検出回路2および
復号化ライン画信号出力回路3の詳細を示すブロ
ツク図である。
このうち、前記変化点・モード検出回路2は、
次のように構成されている。8はライン・イネー
ブル信号を並列化する5ビツトのシフト・レジス
タ、9はANDゲート10によりライン・イネー
ブル信号とANDを取られた参照ライン画信号を
並列化する8ビツトのシフト・レジスタ、11は
ANDゲート12によりライン・イネーブル信号
とANDを取られた符号化ライン画信号を並列化
する5ビツトのシフト・レジスタであり、これら
のレジスタ8,9,11はシーケンサ回路7から
シーケンサ・バスを通して入力する画信号要求信
号S1に同期してシフト動作を行う。
13は符号化時にはシフト・レジスタ11の第
5ビツト(入力側を第1ビツトとする)の出力を
復号化時には復号化ライン画信号出力回路3から
出力される復号化ライン画信号をそれぞれ選択し
て、ラン色信号S2として出力するセレクタであ
る。
14は前記ラン色信号S2を一方の入力とし、シ
フト・レジスタ11の第4ビツトの出力を他方の
入力とするイクスクルーシブ・オア・ゲート(以
下、EORと略記する)である。15は8個の
EORからなるEOR群であり、前記8個のEORは
ラン色信号S2を共通に一方の入力とし、シフト・
レジスタ9の各ビツトの出力をそれぞれ他方の入
力としている。
16はb1検出フラグ用フリツプ・フロツプ(以
下、b1FFと略記する)であり、後述するプログ
ラマブル・ロジツク・アレイ(以下、PLAと略
記する)17がa1よりb1を検出したときに、同
PLA17により“1”にセツトされる。18は
水平モード検出フラグ用フリツプ・フロツプ(以
下、水平モードFFと略記する)であり、PLA1
7が水平モードを検出している間、同PLA17
により“1”にセツトされる。
19は制御レジスタであり、この変化点・モー
ド検出回路2の動作モード、すなわちMH方式と
MR方式との別、符号化と復号化との別をシーケ
ンサ回路7からシーケンサ・バスを通して設定さ
れる。
前記PLA17はシフト・レジスタ8、EOR1
4、EOR群15、b1FF16、水平モードFF18
およびレジスタ19の出力を入力として、あらか
じめプログラムされた積項(以下、PTと略記す
る)により、次に説明するように信号S3〜S8を出
力する。
すなわち、PLA17はMH符号化時には、
EOR14の出力が“1”のとき、符号化ライン
上の変化点を検出したものとして信号S3を“1”
とする。
また、MR符号化時には、EOR14、EOR群
15およびシフト・レジスタ8の各ビツトの出力
のパターンが、MR符号化の3つのモードのいず
れかに対応したときに、モード検出として、信号
S3を“1”とするとともに、検出されたモードの
種類を示すモード情報を信号S4〜S7によりコード
化して出力する。なお、このモード情報はバツフ
ア20を通してシーケンサ・バスに出力できる。
また、前記PLA17はMR復号化時には、
EOR群15の第5ビツトと第4ビツト、第4ビ
ツトと第3ビツト、第3ビツトと第2ビツト、第
2ビツトと第1ビツトの出力が、それぞれ“0”
と“1”になるときに、信号S4〜S7をそれぞれ
“1”とする(シフト・レジスタ9の第1ビツト
〜第5ビツトの出力を入力とするEORの出力を、
それぞれEOR群15の第1ビツト〜第5ビツト
の出力とする)。
また、前記PLA17は第5ビツトと第4ビツ
トの出力が、“1”と“0”のときに、S3を“1”
とする。
さらに、前記PLA17はMH・MR符号化およ
び復号化時に共通して、シフト・レジスタ8の第
4ビツト、第5ビツトがそれぞれ“0”、“1”の
ときに、1ライン終端として、信号S8を“1”と
する。
なお、信号S2〜S8は前記シーケンサ回路7の条
件信号となる。
21はシーケンサ・バス上の情報の入力、出力
を選択するアドレス・デコーダであり、後述する
シーケンサ回路7の命令デコーダ56から出力さ
れる信号S17,S18をイネーブル信号とする。ここ
で、信号S17はシーケンサ・バスへ情報を出力す
るイネーブル信号、信号S18はシーケンサ・バス
上の情報を入力するイネーブル信号である。
他方、前記復号化ライン画信号出力回路3はシ
ーケンス・バスに接続されたフリツプ・フロツプ
(以下、FFと略記する)22とアドレス・デコー
ダ23とから構成されている。ここで、前記FF
22は復号化ライン画信号を“0”または“1”
に設定するものであり、アドレス・デコーダ23
はFF22を選択するものである。また、アドレ
ス・デコーダ23は前記信号S18をイネーブル信
号とする。
第4図はラン・レングス・カウンタ回路4、ビ
ツト・レングス・カウンタ回路5および符号デー
タ入出力回路6の詳細を示すブロツク図である。
このうち、ラン・レングス・カウンタ回路4は
次のように構成されている。24は画信号要求信
号S1に同期して計数を行う6ビツトのカウンタ、
25はカウンタ24のキヤリーを計数する6ビツ
トのカウンタであり、このカウンタ25のキヤリ
ー信号S9はシーケンサ回路7の条件信号となる。
また、前記カウンタ24,25の初期値は、シー
ケンサ回路7により、シーケンサ・バスを通して
設定され、計数値はそれぞれバツフア26,27
を通してシーケンサ・バスに出力される。28は
カウンタ24,25の設定を行うとともに、バツ
フア26,27に対しイネーブル信号を出力する
アドレス・デコーダである。このアドレス・デコ
ーダ28は前記信号S17,S18をイネーブル信号と
する。
前記ビツト・レングス・カウンタ回路5は次の
ように構成されている。
29は符号データ・シフト信号S10に同期して
計数を行う11ビツトのカウンタであり、その上位
8ビツトをシーケンサ回路7によりシーケンサ・
バスを通して設定される。また、このカウンタ2
9のキヤリーはFF30により保持され、同FF3
0の出力信号S11はシーケンサ7の条件信号とな
る。31はカウンタ29設定用のアドレス・デコ
ーダである。そして、FF30はこのアドレス・
デコーダ31の出力によつて、カウンタ29の設
定時にリセツトされる。なお、前記アドレス・デ
コーダ31は前記信号S18をイネーブル信号とす
る。
符号データ入出力回路6は次のように構成され
ている。
32は符号データを、符号化時にはS/P変
換、復号化時にはP/S変換するシフト・レジス
タである。すなわち、符号化時には、シーケンサ
回路7からのシリアルな符号データが、前記符号
データ・シフト信号S10に同期して前記シフト・
レジスタ32にシリアルに入力され、3ビツトの
カウンタ33が符号データ・シフト信号S10を8
カウントする毎に、前記シフト・レジスタ32か
らレジスタ34へ8ビツト、パラレルに転送され
る。また、復号化時には、外部MPUバスからレ
ジスタ35上に書き込まれた符号データが8ビツ
ト・パラレルに前記シフト・レジスタ32へ転送
され、この転送されたデータが、さらに符号デー
タ・シフト信号S10に同期して、符号データS13と
してシーケンサ回路7へシリアルに出力される
(なお、前記レジスタ35からシフト・レジスタ
32への符号データの転送も、カウンタ33が符
号データ・シフト信号S10を8カウントする毎に
行われる)。
36はバス・インターフエイス回路であり、上
述の符号化データの転送の制御および外部MPU
バスとの制御信号のインターフエイスを行う。ま
た、このバス・インターフエイス回路36は符号
化時において、カウンタ33が8カウントしたと
きに、レジスタ34の内容が外部MPUに読み出
されていない場合、また復号化時において、カウ
ンタ33が8カウントしたときに、レジスタ35
に符号データが書き込まれていない場合に、それ
ぞれシーケンサ回路7へのストツプ信号S14を
“1”にする。
37は外部MPUから本LSI1の動作モードお
よびその他の制御情報を設定される制御レジスタ
群であり、この制御レジスタ群37の内容は、バ
ツフア38を通してシーケンサ・バスに出力され
る。39は本LSI1の内部ステータスを外部
MPUへ通知するステータス・レジスタであり、
このステータス・レジスタ39の内容はシーケン
サ・バスを通して設定される。40はバツフア3
8に対するイネーブル信号の出力およびステータ
ス・レジスタ39の設定を行うためのアドレス・
レコーダである。なお、このアドレス・デコーダ
40は前記信号S17,S18をイネーブル信号とす
る。
第5図は前記シーケンサ回路7の詳細を示すブ
ロツク図である。
41は符号化および復号化制御のためのマイク
ロ命令およびMH符号テーブルの両方を記憶して
いるROMであり、1語20ビツト、最高2048語の
容量を持つ。
なお、本LSI1では、上述のように同一の
ROM41上にプログラムおよび符号テーブルが
格納され、復号テーブルROMの機能は、プログ
ラムで代替されているので、ROMが1つに纒め
られ、構成が縮小されている。
前記マイクロ命令はパイプ・ライン・レジスタ
(以下、PLRと略記する)42に入力されて実行
される。他方、前記MH符号テーブルの符号デー
タは、20ビツト長のレジスタ43に入力され、バ
ツフア44,45,46通してシーケンサ・バス
に出力される。第6図は前記符号テーブルのフオ
ーマツトを示す。
ROM41のアドレスには、次の4種類のアド
レス、すなわちPLR42上のマイクロ命令によ
る直接アドレスA1、プログラムのブレーク用の
固定アドレスA2、加算器47によるオフセツト
付アドレスA3、プログラム・カウンタ・レジス
タ(以下、PCRと略記する)48によるPCRア
ドレスA4がある。そして、これらの4種類のア
ドレスA1,A2,A3,A4はセレクタ49によつて
選択される。
50はセレクタ49から出力されるアドレスに
1を加算するインクリメンタ、51はサブルーチ
ンの復帰アドレスを記憶するスタツク・レジス
タ、52は前記復帰アドレスと直接アドレスA1
とを入力し、その何れかを、オフセツト付アドレ
スA3の基準となるアドレスとして選択するセレ
クタ、53はPLR42上のマイクロ命令による
オフセツトとシーケンサ・バス上の情報によるオ
フセツトとを入力し、そのいずれかをオフセツト
付アドレスA3のオフセツト値として選択するセ
レクタである。なお、前記オフセツト付アドレス
A3はセレクタ52および53から出力されるア
ドレスを加算器47により加算することにより得
られる。
54は分岐マイクロ命令をセレクト信号とし
て、判定する条件信号を選択するセレクタ、55
はライン同期符号(以下、EOLと略記する)パ
ターン“000000000001”を検出するEOL検出器
であり、信号S13を入力とする12ビツトのシフ
ト・レジスタとデコーダとを有し、符号データ・
シフト信号S10に同期してシフトを行い、EOLを
検出すると、EOL検出信号S15を“1”とする。
また、このEOL検出器15は、前記シフト・レ
ジスタの出力を信号S16として出力する。
56は命令デコーダであり、PLR42からマ
イクロ命令の命令フイールド(4〜9ビツトの可
変長)と、セレクタ54の出力と、信号S14,S15
およびS16とを入力として、シーケンサ回路7内
部の制御信号S50およびシーケンサ・バスの前記
各制御信号S1,S10,S17,S18を出力する。また、
この命令デコーダ56はストツプ信号S14が“1”
になると、すべての制御信号をオフ状態にして命
令の実行を停止する。また、前記EOL検出信号
S15が“1”になると、次の実行命令へのアドレ
スとして、セレクタ49により固定アドレスA2
が選択される。
57はバツフアであり、PLR42上のマイク
ロ命令から直接データをシーケンサ・バスに出力
する。58は演算器(以下、ALUと略記する)
であり、シーケンサ・バスの情報と、8ビツト×
8の構成の読み出し書き込み可能なメモリ(以
下、RAMと略記する)59の出力とを入力とし
て、第3表に示す演算を行う。このALU58の
演算結果は、再びRAM59に入力され、演算結
果の状態(キヤリー、すべて“0”、すべて
“1”、符号ビツト)はレジスタ60に入力され
る。
前記レジスタ60の出力は、セレクタ54の入
力となることにより、シーケンサ7の条件信号に
なり、また、キヤリー・ビツトは符号データS12
となる。RAM59の内容はALU58およびバツ
フア61を通してシーケンサ・バスへ出力され
る。62はバツフア44,45,46に対しイネ
ーブル信号を出力するアドレスデコーダである。
このアドレスデコーダ62は前記信号S17,S18を
イネーブル信号とする。[Table] Now, the MH and
Some MR encoding and decoding circuits depend on software from a general-purpose microcomputer (hereinafter abbreviated as MPU), and others rely on dedicated hardware circuits. However, the former has the disadvantage that it is not suitable for high-speed processing because the processing speed is determined by the operating speed of the general-purpose MPU. In the latter case, the encoding circuit counts the distances a 0 a 1 , a 0 b 1 , a 1 a 2 , a 0 b 2 between the change points with the change point detection circuit of the reference line and the encoded line. A counter, a circuit that calculates the counted value and outputs the MR encoding mode, a table ROM that converts the mode and counted value into code data corresponding to them, and converts the code data into a continuous data string. Parallel/serial conversion (hereinafter referred to as P/
While it is composed of a circuit (abbreviated as S conversion),
The decoding circuit includes a table ROM circuit that decodes the MR code mode or MH code run length from a serial code data string, and a table ROM circuit that detects change points b 1 and b 2 on the reference line and extracts the image signal from the mode. and a circuit that counts the run length and generates an image signal. Further, both the encoding circuit and the decoding circuit require a circuit for setting and controlling each of the constituent circuits. Therefore, although the processing speed can be increased, the disadvantage is that the circuit configuration becomes large-scale and complicated. OBJECTS OF THE INVENTION The present invention has been made in order to eliminate the above-mentioned drawbacks of the conventional art. The purpose is to provide integrated LSI. Structure of the Invention The image signal encoding/decoding LSI of the present invention inputs a reference line image signal, an encoded line image signal, and a line enable signal that defines the number of pixels in one line, and detects change points of the image signal and MR. a change point/mode detection circuit that detects the mode of the encoding method;
a decoded line image signal output circuit that outputs a decoded line image signal during decoding; a run length counter circuit that counts the run length of the image signal;
A bit length counter circuit that counts the bit length of the generated code data during encoding is connected to the bus of an external general-purpose microcomputer, and code data can be input and output from this bus. At the same time, a code data input/output circuit equipped with a control register, and a microprogram type sequencer circuit that has primary storage and calculation functions and stores the program and MH code table in the same storage circuit are integrated on a single semiconductor substrate. The change point/mode detection circuit, the decoded line image signal output circuit, the run length counter circuit, the bit length counter circuit, the code data input/output circuit, and The sequencer circuit is connected to a common sequencer bus, and the sequencer circuit executes the program according to an operation mode set in the control register from the external general-purpose microcomputer. It controls other circuits connected to a common sequencer bus and executes encoding and decoding processes for MH and MR encoding methods. processing can be realized at high speed with a common circuit configuration,
Additionally, control and code data management can be done externally.
This can be easily done with an MPU. DESCRIPTION OF EMBODIMENTS FIG. 2 shows an image signal encoding/decoding LSI according to an embodiment of the present invention, in which LSI 1 includes a change point/mode detection circuit 2, a decoded line image signal output circuit 3, and a run length counter. circuit 4, bit length counter circuit 5, code data input/output circuit 6,
and the sequencer circuit 7 are integrally formed on a single semiconductor substrate. Here, the change point/mode detection circuit 2 detects a reference line image signal, an encoded line image signal, and a
A line enable signal that specifies the number of pixels in a line is synchronously input serially, and change points are detected and the MR encoding mode is determined for each pixel from these inputs, and the change point detection information is sent to the sequencer. It is output as a condition signal for the circuit 7, and mode information is output to the sequencer bus. The decoded line image signal output circuit 3 outputs “1” and “1” of the image signal via the sequencer bus during decoding.
It is set to "0". The run length counter circuit 4 counts the run length in synchronization with the input of the image signal, and reads out the counted value and sets the initial value by the sequencer circuit 7 through the sequencer bus. , the carry is used as a condition signal for the sequencer 7. The bit length counter circuit 5 counts the bit length of the code data in synchronization with the serial shift of the code data, and its initial value is set through the sequencer bus, and its carry is held and sent to the sequencer. It is output as a condition signal of the circuit 7. The code data input/output circuit 6 is an external general-purpose
It is connected to the bus of an MPU (not shown), has an interface function with the MPU,
During encoding, serial code data from the sequencer circuit 7 is converted into serial/parallel (hereinafter referred to as S/
(abbreviated as P) and outputs it to the MPU bus. At the time of decoding, the parallel encoded data from the MPU is P/S converted and sent to the sequencer circuit 7.
Output to. In addition, this code data input/output circuit 6
When the sequencer circuit 7 requests the transfer of code data, if the transfer of the external MPU bus is not in time, a stop signal S14 is sent to the sequencer circuit 7.
Output. Further, the code data input/output circuit 6 has a control register in which the operating mode of the present LSI 1 is set by the external MPU, and the contents of this register can be read out to the sequencer bus. The sequencer circuit 7 is a microprogram type sequencer circuit having temporary storage and calculation functions for information on the sequencer bus, and includes a change point/mode detection circuit 2, a decoded line image signal output circuit 3, a run length signal output circuit 3, and a run length detection circuit 2. The counter circuit 4, bit length counter circuit 5, and code data input/output circuit 6 are connected to the condition signal and the sequencer signal.
Control through the bus. The sequencer circuit 7 also has an MH code data table on its program ROM. FIG. 3 is a block diagram showing details of the change point/mode detection circuit 2 and the decoded line image signal output circuit 3. Among these, the change point/mode detection circuit 2 is
It is structured as follows. 8 is a 5-bit shift register that parallelizes the line enable signal; 9 is an 8-bit shift register that parallelizes the line enable signal and the reference line picture signal ANDed by AND gate 10; 11 is a 5-bit shift register that parallelizes the line enable signal;
This is a 5-bit shift register that parallelizes the encoded line image signal ANDed with the line enable signal by the AND gate 12. These registers 8, 9, and 11 receive input from the sequencer circuit 7 through the sequencer bus. The shift operation is performed in synchronization with the image signal request signal S1 . 13 selects the output of the fifth bit (input side is the first bit) of the shift register 11 during encoding, and the decoded line image signal output from the decoded line image signal output circuit 3 during decoding. This is a selector that outputs the run color signal S2 . 14 is an exclusive OR gate (hereinafter abbreviated as EOR) which takes the run color signal S2 as one input and takes the output of the fourth bit of the shift register 11 as the other input. 15 is 8
This is an EOR group consisting of EORs, and the eight EORs have the run color signal S2 as one input in common, and shift and
The output of each bit of register 9 is used as the input of the other. 16 is a flip-flop for b 1 detection flag (hereinafter abbreviated as b 1 FF), which is used when a programmable logic array (hereinafter abbreviated as PLA) 17, which will be described later, detects b 1 from a 1 . ,same
Set to "1" by PLA17. 18 is a flip-flop for horizontal mode detection flag (hereinafter abbreviated as horizontal mode FF);
While PLA 7 is detecting the horizontal mode, the same PLA17
It is set to "1" by Reference numeral 19 denotes a control register, which determines the operating mode of this change point/mode detection circuit 2, that is, MH method and
The distinction between MR method and encoding and decoding is set from the sequencer circuit 7 through the sequencer bus. The PLA17 has shift register 8, EOR1
4, EOR group 15, b 1 FF16, horizontal mode FF18
With the output of register 19 as input, signals S 3 to S 8 are output as described below using a preprogrammed product term (hereinafter abbreviated as PT). In other words, when PLA17 encodes MH,
When the output of EOR14 is "1", it is assumed that a change point on the encoded line has been detected, and the signal S3 is set to "1".
shall be. Also, during MR encoding, when the output pattern of each bit of EOR 14, EOR group 15, and shift register 8 corresponds to one of the three modes of MR encoding, a signal is detected as mode detection.
S3 is set to "1", and mode information indicating the type of detected mode is encoded using signals S4 to S7 and output. Note that this mode information can be output to the sequencer bus through the buffer 20. In addition, the PLA 17 performs MR decoding at the time of MR decoding.
The outputs of the 5th and 4th bits, the 4th and 3rd bits, the 3rd and 2nd bits, and the 2nd and 1st bits of the EOR group 15 are all "0".
and becomes "1", the signals S 4 to S 7 are respectively set to "1" (the output of the EOR whose input is the output of the 1st bit to the 5th bit of the shift register 9 is
(These are the outputs of the first to fifth bits of the EOR group 15, respectively). Furthermore, the PLA 17 sets S3 to " 1 " when the outputs of the fifth bit and the fourth bit are "1" and "0".
shall be. Furthermore, during MH/MR encoding and decoding, when the fourth bit and fifth bit of the shift register 8 are "0" and "1", respectively, the PLA 17 outputs the signal S as the end of one line. Let 8 be “1”. Note that the signals S 2 to S 8 serve as condition signals for the sequencer circuit 7. Reference numeral 21 denotes an address decoder that selects input and output of information on the sequencer bus, and uses signals S 17 and S 18 output from an instruction decoder 56 of the sequencer circuit 7, which will be described later, as enable signals. Here, signal S17 is an enable signal for outputting information to the sequencer bus, and signal S18 is an enable signal for inputting information on the sequencer bus. On the other hand, the decoded line image signal output circuit 3 is composed of a flip-flop (hereinafter abbreviated as FF) 22 connected to a sequence bus and an address decoder 23. Here, the FF
22 sets the decoded line image signal to “0” or “1”
The address decoder 23
is for selecting FF22. Further, the address decoder 23 uses the signal S18 as an enable signal. FIG. 4 is a block diagram showing details of the run length counter circuit 4, bit length counter circuit 5, and code data input/output circuit 6. Of these, the run length counter circuit 4 is configured as follows. 24 is a 6-bit counter that counts in synchronization with the image signal request signal S1 ;
A 6-bit counter 25 counts the carries of the counter 24, and the carry signal S9 of this counter 25 becomes a condition signal for the sequencer circuit 7.
Further, the initial values of the counters 24 and 25 are set by the sequencer circuit 7 through the sequencer bus, and the count values are set by the sequencer circuit 7 through the sequencer bus.
output to the sequencer bus through An address decoder 28 sets the counters 24 and 25 and outputs enable signals to the buffers 26 and 27. This address decoder 28 uses the signals S 17 and S 18 as enable signals. The bit length counter circuit 5 is constructed as follows. 29 is an 11-bit counter that performs counting in synchronization with the code data shift signal S10 , and its upper 8 bits are sent to the sequencer circuit 7.
Configured through the bus. Also, this counter 2
9's carry is held by FF30, and the same FF3
The output signal S 11 of 0 becomes a condition signal for the sequencer 7. 31 is an address decoder for setting the counter 29; And FF30 is this address
The output of the decoder 31 resets the counter 29 when it is set. Note that the address decoder 31 uses the signal S18 as an enable signal. The code data input/output circuit 6 is configured as follows. 32 is a shift register which performs S/P conversion of code data during encoding and P/S conversion during decoding. That is, during encoding, serial code data from the sequencer circuit 7 is shifted to the shift signal S10 in synchronization with the code data shift signal S10 .
The code data shift signal S10 is serially input to the register 32, and the 3-bit counter 33 converts the code data shift signal S10 into 8
At each count, 8 bits are transferred in parallel from the shift register 32 to the register 34. Furthermore, during decoding, the code data written on the register 35 from the external MPU bus is transferred to the shift register 32 in 8-bit parallel fashion, and this transferred data is further converted into a code data shift signal S10 . Synchronously, the code data S 13 is serially output to the sequencer circuit 7 (note that the transfer of code data from the register 35 to the shift register 32 also involves the counter 33 counting the code data shift signal S 10 by 8). (performed every time) 36 is a bus interface circuit that controls the transfer of the encoded data mentioned above and controls the external MPU.
Interfacing control signals with the bus. In addition, this bus interface circuit 36 is configured so that when the counter 33 counts 8 during encoding, if the contents of the register 34 have not been read out to the external MPU, and during decoding, the counter 33 counts 8. When register 35
If code data is not written in the respective sequencer circuits, the stop signal S14 to the sequencer circuit 7 is set to "1". Reference numeral 37 denotes a control register group in which the operating mode and other control information of the LSI 1 are set by the external MPU, and the contents of this control register group 37 are outputted to the sequencer bus through a buffer 38. 39 shows the internal status of this LSI1 externally.
This is a status register that notifies the MPU.
The contents of this status register 39 are set through the sequencer bus. 40 is batshua 3
8 and to set the status register 39.
It's a recorder. Note that this address decoder 40 uses the signals S 17 and S 18 as enable signals. FIG. 5 is a block diagram showing details of the sequencer circuit 7. 41 is a ROM that stores both microinstructions for encoding and decoding control and an MH code table, and has a capacity of 20 bits per word and a maximum of 2048 words. Note that this LSI1 uses the same
The program and code table are stored on the ROM 41, and the function of the decoding table ROM is replaced by the program, so the ROM is combined into one and the configuration is reduced. The microinstruction is input to a pipeline register (hereinafter abbreviated as PLR) 42 and executed. On the other hand, the code data of the MH code table is input to a 20-bit register 43, passed through buffers 44, 45, and 46, and output to the sequencer bus. FIG. 6 shows the format of the code table. The addresses of the ROM 41 include the following four types of addresses: a direct address A 1 by a microinstruction on the PLR 42, a fixed address A 2 for program breaks, an address with an offset by the adder 47 A 3 , and a program counter register. There is a PCR address A4 (hereinafter abbreviated as PCR) 48. These four types of addresses A 1 , A 2 , A 3 , and A 4 are selected by the selector 49. 50 is an incrementer that adds 1 to the address output from the selector 49; 51 is a stack register that stores the subroutine return address; and 52 is the return address and the direct address A1.
A selector 53 inputs an offset based on the microinstruction on the PLR 42 and an offset based on the information on the sequencer bus, and selects one of them as the reference address for the address with offset A3 . This is a selector for selecting one as the offset value of the address with offset A3 . In addition, the above address with offset
A 3 is obtained by adding the addresses output from selectors 52 and 53 using adder 47. 54 is a selector for selecting a condition signal to be determined using a branch microinstruction as a select signal; 55;
is an EOL detector that detects a line synchronization code (hereinafter abbreviated as EOL) pattern "000000000001", and has a 12-bit shift register and a decoder that receives the signal S13 as input.
Shifting is performed in synchronization with the shift signal S10 , and when EOL is detected, the EOL detection signal S15 is set to "1".
The EOL detector 15 also outputs the output of the shift register as a signal S16 . Reference numeral 56 denotes an instruction decoder, which receives the microinstruction instruction field (variable length of 4 to 9 bits) from the PLR 42, the output of the selector 54, and the signals S 14 and S 15 .
and S16 , and outputs the control signal S50 inside the sequencer circuit 7 and the control signals S1 , S10 , S17 , and S18 of the sequencer bus. Also,
This instruction decoder 56 has a stop signal S14 of "1".
When this happens, all control signals are turned off and instruction execution is stopped. In addition, the EOL detection signal
When S15 becomes "1", the selector 49 selects the fixed address A2 as the address for the next execution instruction.
is selected. A buffer 57 outputs data directly from the microinstructions on the PLR 42 to the sequencer bus. 58 is a computing unit (hereinafter abbreviated as ALU)
and the sequencer bus information and 8 bits
The calculations shown in Table 3 are performed using the output of a readable and writable memory (hereinafter abbreviated as RAM) 59 having the configuration shown in FIG. The operation result of this ALU 58 is inputted again to the RAM 59, and the status of the operation result (carry, all "0", all "1", sign bit) is inputted to the register 60. The output of the register 60 becomes the input of the selector 54, thereby becoming a condition signal for the sequencer 7, and the carry bit is the code data S12.
becomes. The contents of RAM 59 are output to the sequencer bus through ALU 58 and buffer 61. 62 is an address decoder that outputs enable signals to buffers 44, 45, and 46.
This address decoder 62 uses the signals S 17 and S 18 as enable signals.
【表】
次に、本LSI1の符号化、復号化動作を説明す
る。
本LSI1は、符号データ入出力回路6内の制御
レジスタ群37上に外部MPUから動作モードを
設定されることにより起動される。そして、
ROM41上にプログラムされているマイクロ命
令にしたがい、制御レジスタ37の内容はシーケ
ンサ・バスを通してALU58で判定され、この
判定結果にしたがつて、以下MH符号化、MH復
号化、MR符号化、MR復号化の各プログラムに
分岐し、それぞれ次のように処理が実行される。
(1) MH符号化処理
まず、ラン・レングス・カウンタ回路4のカ
ウンタ24,25が“0”に設定され、PLA
17の出力信号S3が“1”となるまで、命令デ
コーダ56から画信号要求信号S1が出力される
ことにより、符号化ライン画信号およびライ
ン・イネーブル信号が変化点・モード検出回路
2に入力される。このとき、カウンタ24,2
5上には、それぞれTC、MCに対応するラン
レングス値がある。
次に、カウンタ25の値が判定され、“0”
でなければ、シフト・レジスタ11の第5ビツ
トからセレクタ13および54を通して命令デ
コーダ56に入力するラン色信号S2により、ラ
ンの色を判定され、ROM41上の「白」また
は「黒」のMCテーブルからカウンタ25の値
に対応するMCが、オフセツト付アドレスA3に
より、レジスタ43に設定される。
のレジスタ43上に設定された符号データは
4ビツトの符号長と最大16ビツトの符号の構成
で、シーケンサ・バスを通してRAM59上の
3バイトに転送され、ALU58により符号長
だけシフトされ、信号S12として出力される。
このとき、1ビツト、シフト毎に、符号デー
タ・シフト信号S10がオンし、信号S12がシフ
ト・レジスタ32へ入力される。
また、カウンタ25が“0”であるとき、お
よびカウンタ25が“0”でなかつた場合にお
いて上述のようにシフト・レジスタ32への
MCの出力が終了した後には、カウンタ24の
値に対応するTCが前記MCの場合と同様にし
てシフト・レジスタ32へ出力される。
前記シフト・レジスタ32上の符号データは
8ビツト毎にレジスタ34へ転送され、さらに
このレジスタ34から外部MPU・バスへ読み
出される。
次に、PLA17の出力信号S8が“1”でな
ければ、再びカウンタ24,25が“0”に設
定され、前記同様の処理が繰り返される。ま
た、1ラインの処理のスタート時に、1ライン
の符号データの最小ビツト長がカウンタ29に
設定されており、信号S8が1の場合、カウンタ
29のキヤリー保持信号S11が判定され、同信
号S11が“1”になるまで、フイル・ビツト
(“0”)がシフト・レジスタ32に入力される。
以下、同様にして1ライン毎に符号化が行わ
れる(なお、説明が繁雑にならぬようにするた
め、ライン毎の初期設定等の処理の説明は省略
した)。
(2) MH復号化処理
まず、符号データは外部MPU・バスからレ
ジスタ35へ順次書き込まれ、さらに同レジス
タ35からシフト・レジスタ32へ転送され、
しかる後に、EOL検出信号S15が“1”になる
まで、符号データ・シフト信号S10によつてシ
フトされることにより、シフト・レジスタ32
から信号S13としてシリアルに出力される。
EOL検出信号S15が“1”となると、固定アド
レスA2により、プログラムは1ライン毎の復
号化処理の初めに分岐して、EOL検出器55
から出力されるシリアルな符号データS16につ
いて、EOL符号の次のビツトから1ビツト毎
に順次“1”、“0”が判定され、符号に対応す
るラン・レングス値が復号される。
このとき用いられるマイクロ命令は第7図に
示す11,12,13の3命令であり、第8図
はそのプログラム例を示す。ただし、第8図に
おいて、*印はオフセツト付アドレス(TCの
符号化ライン画信号出力プログラムへ移る)を
示している。また、前記MH符号に対応するラ
ン・レングス値は命令12,13によりカウン
タ24,25に設定される。
次に、カウンタ25のキヤリー信号S9が
“1”になるまで、画信号要求信号S1がオンさ
れ、FF22から復号化ライン画信号が出力さ
れる。
ここで、FF22はEOL符号検出時に、シー
ケンサ・バスを通じて“0”(白)に設定され、
以後、TCの復号化ライン画信号の出力の後、
“0”、“1”を反転される。
以下、EOL検出信号S15が“1”になるまで、
前記同様にしてMH符号の復号と、復号化ライ
ン画信号の出力とが繰り返され、1ラインの復
号化処理が行われる。
(3) MR符号化処理
まず、カウンタ24,25が“0”に設定さ
れ、PLA17の出力信号S3が“1”になるま
で、画信号要求信号S1により、符号化ライン画
信号、参照ライン画信号およびライン・イネー
ブル信号が変化点・モード検出回路2に入力さ
れる。
信号S3が“1”になつたとき、信号S4〜S7上
にコード化されたMR符号のモード情報が出力
されており、このモード情報がバツフア20を
通してシーケンサ・バスに出力され、このバス
の内容をオフセツトしたオフセツト付アドレス
A3で各モード毎の処理プログラムに分岐する。
各モード毎の処理プログラムでは、各モード
に対応する符号と符号長がRAM59上に設定
され、前記MH符号化処理の場合と同様にし
て、符号データがシフト・レジスタ32へ転送
される。
そして、水平モードの場合には、さらに前記
MH符号化処理の場合と同様にして、カウンタ
24,25の値からMH符号がシフト・レジス
タ32へ転送され、再びカウンタ24,25が
“0”に設定され、次の符号化ライン画信号の
ランもMH符号化処理が行われる。
次に、PLA17の出力信号S8が“1”でな
ければ、再びカウンタ24,25が“0”に設
定され、同様の処理が繰り返される。信号S8が
“1”になつた後の処理は、前記MH符号化処
理の場合と同様である。
(4) MR復号化処理
前記MH復号化処理の場合と同様に、外部
MPUバスからの符号データよりEOL符号が検
出されると、1ラインの復号が開始される。
EOL検出器55から出力されるシリアルな
符号データS16は命令I1により1ビツト毎に順
次“1”、“0”を判定され、符号に対応するモ
ード別にプログラムが分岐する。
パス・モードでは、変化点b1が検出されて、
PLA17の出力信号S4が“1”となり、かつ
その後変化点b2が検出されて、PLA17の出
力信号S3が“1”となるまで、画信号要求信号
S1がオンされて、FF22から復号化ライン画
信号が出力される。
水平モードでは、続いて来る符号データS16
をMH符号として、2つのランのMH復号化処
理が行われ、FF22から復号化ライン画信号
が出力される。
垂直モードでは、V(0)、VL(1)、VL(2)、VL
(3)の場合は、PLA17の出力信号S4,S5,S6,
S7が“1”になるまで、信号S1がオンされ、
FF22から復号化ライン画信号が出力された
後、FF22が反転される。
また、VR(1)、VR(2)、VR(3)の場合は、PLA1
7の出力信号S4が“1”になるまで、画信号要
求信号S1がオンされた後、さらに、それぞれ1
回、2回、3回画信号要求信号S1がオンされ
て、復号化ライン画信号が出力され、しかる後
にFF22が反転される。
第9図は、以上の各モード毎の処理の概略を
示すフローチヤートである。
以下、同様にして、EOL検出信号S15が“1”
になるまで、各モードの復号と、復号化ライン
画信号の出力が繰り返され、1ラインの復号化
処理が行われる。
なお、MR復号化処理の場合、参照ライン画
信号およびライン・イネーブル信号がそれぞれ
シフト・レジスタ8,9に5ビツト入力されて
から復号化処理が開始されるため、復号化ライ
ン画信号は5ビツト遅れて出力される。第10
図aにMR符号化処理の場合、第10図はbに
MR復号化処理の場合における符号化ライン画
信号、参照ライン画信号およびライン・イネー
ブル信号のタイミング図を示す。
発明の効果
以上のように本発明の画信号符号化・復号化
LSIは、
(イ) 外部MPUバスとのインターフエイス機能が
あるため、制御および符号データの管理を外部
のMPUで簡単に行える。
(ロ) マイクロ・プログラム方式のシーケンサ回路
およびハードウエア回路により、データ処理が
行われ、外部MPUが直接データ処理を行う必
要がないため、処理速度を高速とすることがで
きる。
(ハ) MH・MR方式による符号化および復号化処
理を共通の回路構成で実現できる上、シーケン
サ回路において同一の記憶回路にプログラムと
符号テーブルが格納されており、しかも各構成
回路が単一半導体基板に一体的に集積形成され
ているため、回路の小形化および信頼性の向上
を図ることができる。
等の優れた効果を得られる。[Table] Next, the encoding and decoding operations of this LSI 1 will be explained. This LSI 1 is activated by setting an operation mode on the control register group 37 in the code data input/output circuit 6 from the external MPU. and,
According to the microinstructions programmed on the ROM 41, the contents of the control register 37 are judged by the ALU 58 through the sequencer bus, and according to the judgment result, the following steps are performed: MH encoding, MH decoding, MR encoding, MR decoding. The program branches to each program, and the processing is executed as follows. (1) MH encoding process First, the counters 24 and 25 of the run length counter circuit 4 are set to “0”, and the PLA
By outputting the picture signal request signal S1 from the instruction decoder 56, the encoded line picture signal and the line enable signal are sent to the change point/mode detection circuit 2 until the output signal S3 of 17 becomes " 1 ". is input. At this time, counters 24, 2
5, there are run length values corresponding to TC and MC, respectively. Next, the value of the counter 25 is determined and is “0”.
Otherwise, the run color is determined by the run color signal S2 input from the fifth bit of the shift register 11 to the instruction decoder 56 through the selectors 13 and 54, and the MC of "white" or "black" on the ROM 41 is determined. The MC corresponding to the value of the counter 25 from the table is set in the register 43 by the offset address A3 . The code data set on the register 43 has a code length of 4 bits and a code of maximum 16 bits, and is transferred to 3 bytes on the RAM 59 through the sequencer bus, shifted by the code length by the ALU 58, and sent to the signal S12. is output as
At this time, the code data shift signal S10 is turned on for every 1-bit shift, and the signal S12 is input to the shift register 32. Further, when the counter 25 is "0" and when the counter 25 is not "0", the data is input to the shift register 32 as described above.
After the output of the MC is completed, the TC corresponding to the value of the counter 24 is output to the shift register 32 in the same manner as in the case of the MC. The code data on the shift register 32 is transferred every 8 bits to a register 34, and further read out from this register 34 to the external MPU bus. Next, if the output signal S8 of the PLA 17 is not "1", the counters 24 and 25 are set to "0" again, and the same process as described above is repeated. Furthermore, at the start of processing for one line, the minimum bit length of code data for one line is set in the counter 29, and if the signal S8 is 1, the carry hold signal S11 of the counter 29 is determined, and the same signal Fill bits ("0") are input to shift register 32 until S11 becomes "1". Thereafter, encoding is performed line by line in the same manner (in order to avoid complicating the explanation, a description of processing such as initial setting for each line is omitted). (2) MH decoding process First, encoded data is sequentially written from the external MPU bus to the register 35, and then transferred from the same register 35 to the shift register 32.
Thereafter, the shift register 32 is shifted by the code data shift signal S10 until the EOL detection signal S15 becomes "1".
is output serially as signal S13 .
When the EOL detection signal S15 becomes "1", the program branches to the beginning of the decoding process for each line according to the fixed address A2 , and the EOL detector 55
Regarding the serial code data S16 outputted from the EOL code, "1" and "0" are sequentially determined for each bit starting from the next bit of the EOL code, and the run length value corresponding to the code is decoded. The microinstructions used at this time are three instructions 11, 12, and 13 shown in FIG. 7, and FIG. 8 shows an example of the program. However, in FIG. 8, the * mark indicates an address with an offset (moves to the encoded line image signal output program of the TC). Further, run length values corresponding to the MH code are set in counters 24 and 25 by instructions 12 and 13. Next, the image signal request signal S1 is turned on until the carry signal S9 of the counter 25 becomes " 1 ", and the FF 22 outputs the decoded line image signal. Here, FF22 is set to “0” (white) through the sequencer bus when detecting the EOL code,
After that, after outputting the decoded line image signal of TC,
“0” and “1” are inverted. From then on, until the EOL detection signal S15 becomes “1”,
In the same manner as described above, the decoding of the MH code and the output of the decoded line image signal are repeated, and one line decoding processing is performed. (3) MR encoding process First, the counters 24 and 25 are set to " 0 ", and the encoded line picture signal, reference A line image signal and a line enable signal are input to a change point/mode detection circuit 2. When the signal S3 becomes "1", the mode information of the MR code encoded on the signals S4 to S7 is output, and this mode information is output to the sequencer bus through the buffer 20, and this Address with offset that offsets the contents of the bus
A 3 branches to the processing program for each mode. In the processing program for each mode, the code and code length corresponding to each mode are set on the RAM 59, and the code data is transferred to the shift register 32 in the same manner as in the MH encoding process. And in case of horizontal mode, further
Similarly to the MH encoding process, the MH code is transferred from the values of the counters 24 and 25 to the shift register 32, and the counters 24 and 25 are set to "0" again, and the next encoded line image signal is transferred. Runs are also subjected to MH encoding processing. Next, if the output signal S8 of the PLA 17 is not "1", the counters 24 and 25 are set to "0" again, and the same process is repeated. The processing after the signal S8 becomes "1" is the same as the MH encoding processing described above. (4) MR decoding process Similar to the MH decoding process described above, external
When an EOL code is detected from the code data from the MPU bus, decoding of one line is started. The serial code data S16 outputted from the EOL detector 55 is sequentially determined to be "1" or "0" bit by bit according to the instruction I1 , and the program branches according to the mode corresponding to the code. In pass mode, change point b 1 is detected and
The output signal S 4 of the PLA 17 becomes "1", and then the change point b 2 is detected, and the image signal request signal continues until the output signal S 3 of the PLA 17 becomes "1".
S1 is turned on, and the FF 22 outputs a decoded line image signal. In horizontal mode, the following code data S 16
is used as the MH code, two runs of MH decoding processing are performed, and the FF 22 outputs a decoded line image signal. In vertical mode, V(0), V L (1), V L (2), V L
In the case of (3), the output signals S 4 , S 5 , S 6 ,
The signal S 1 is turned on until S 7 becomes “1”,
After the decoded line image signal is output from the FF 22, the FF 22 is inverted. In addition, in the case of V R (1), V R (2), and V R (3), PLA1
After the image signal request signal S 1 is turned on until the output signal S 4 of 7 becomes “1”,
The image signal request signal S1 is turned on twice, twice, and three times, and the decoded line image signal is output, and then the FF 22 is inverted. FIG. 9 is a flowchart showing an outline of the processing for each mode described above. Thereafter, the EOL detection signal S15 becomes “1” in the same way.
The decoding of each mode and the output of the decoded line image signal are repeated until the decoding process for one line is performed. Note that in the case of MR decoding processing, the decoding processing starts after the reference line picture signal and line enable signal are each input to shift registers 8 and 9 in 5 bits, so the decoded line picture signal is 5 bits long. Output is delayed. 10th
If the MR encoding process is shown in Figure a, then Figure 10 is shown in b.
A timing diagram of an encoded line picture signal, a reference line picture signal, and a line enable signal in the case of MR decoding processing is shown. Effects of the Invention As described above, the image signal encoding/decoding of the present invention
(a) Since the LSI has an interface function with an external MPU bus, control and code data management can be easily performed using an external MPU. (b) Data processing is performed by a micro-programmed sequencer circuit and hardware circuit, and there is no need for an external MPU to directly process data, so processing speed can be increased. (c) Encoding and decoding processing using the MH/MR method can be realized with a common circuit configuration, and the program and code table are stored in the same memory circuit in the sequencer circuit, and each component circuit is made of a single semiconductor. Since it is integrally formed on the substrate, the circuit can be made smaller and its reliability can be improved. You can obtain excellent effects such as
第1図はMR符号化方式における変化点の説明
図、第2図は本発明の一実施例による画信号符号
化・復号化LSIのブロツク図、第3図は前記LSI
における変化点・モード検出回路および復号化ラ
イン画信号出力回路のブロツク図、第4図は前記
LSIにおけるラン・レングス・カウンタ回路、ビ
ツト・レングス・カウンタ回路および符号データ
入出力回路のブロツク図、第5図は前記LSIにお
けるシーケンサ回路のブロツク図、第6図は第5
図のシーケンサ回路におけるROM41内の符号
テーブルの構成とフオーマツトを示す図、第7図
は前記ROM41内に格納されたMH符号の復号
のためのマイクロ命令を示す図、第8図は前記
ROM41に格納されたMH符号の復号のための
プログラムの一部を示すフローチヤート、第9図
はMR符号の各モード毎の復号プログラムを示す
フローチヤート、第10図はa,bはそれぞれ前
記LSIにおけるライン・イネーブル信号、参照ラ
イン画信号、符号化ライン画信号、復号化ライン
画信号および画信号要求信号S1のタイミング図で
ある。
1……画信号符号化・復号化LSI、2……変化
点・モード検出回路、3……復号化ライン画信号
出力回路、4……ラン・レングス・カウンタ回
路、5……ビツト・レングス・カウンタ回路、6
……符号データ入出力回路、7……シーケンサ回
路、41……ROM。
FIG. 1 is an explanatory diagram of changes in the MR encoding system, FIG. 2 is a block diagram of an image signal encoding/decoding LSI according to an embodiment of the present invention, and FIG. 3 is a diagram of the LSI described above.
FIG. 4 is a block diagram of the change point/mode detection circuit and the decoded line image signal output circuit in
A block diagram of a run length counter circuit, a bit length counter circuit, and a code data input/output circuit in an LSI, FIG. 5 is a block diagram of a sequencer circuit in the LSI, and FIG.
FIG. 7 is a diagram showing the configuration and format of the code table in the ROM 41 in the sequencer circuit shown in FIG.
9 is a flowchart showing a part of the program for decoding the MH code stored in the ROM 41. FIG. 9 is a flowchart showing a decoding program for each mode of the MR code. In FIG. 10, a and b are the LSIs respectively. FIG. 3 is a timing diagram of a line enable signal, a reference line picture signal, an encoded line picture signal, a decoded line picture signal, and a picture signal request signal S1 in FIG. 1... Image signal encoding/decoding LSI, 2... Change point/mode detection circuit, 3... Decoded line image signal output circuit, 4... Run length counter circuit, 5... Bit length counter circuit. Counter circuit, 6
... code data input/output circuit, 7 ... sequencer circuit, 41 ... ROM.
Claims (1)
ド符号化方式のモードを検出する変化点・モード
検出回路と、復合化時に復合化ライン画信号を出
力する複合化ライン画信号出力回路と、画信号の
ラン・レングスを計数するラン・レングス・カウ
ンタ回路と、符号化時に、生成された符号データ
のビツト・レングスを計数するビツト・レング
ス・カウンタ回路と、外部の汎用マイクロ・コン
ピユータのバスに接続され、このバスに対し符号
データを入出力できるようになつている符号デー
タ入出力回路と、一次記憶および演算機能を持
ち、かつ同一記憶回路にプログラムとモデイフア
イド・ホフマン符号テーブルを格納したマイク
ロ・プログラム方式のシーケンサ回路とを単一の
半導体基板に一体的に集積形成するとともに、前
記各回路は共通のシーケンサ・バスに接続されて
いることを特徴とする画信号符号化・復号化大規
模集積回路。 2 符号データ入出力回路に制御レジスタを備
え、汎用のマイクロ・コンピユータから前記制御
レジスタに設定される動作モードに従つて、シー
ケンサ回路のプログラムを実行することにより、
共通のシーケンサ・バスに接続されている他の回
路を制御して、モデイフアイド・ホフマンおよび
モデイフアイド・リード符号化方式の符号化およ
び復号化処理を実行する特許請求の範囲第1項記
載の画信号符号化・復号化大規模集積回路。[Claims] 1. A change point/mode detection circuit that detects a change point of an image signal and a mode of a modified read encoding method, and a composite line image signal output circuit that outputs a decoded line image signal during decoding. , a run length counter circuit that counts the run length of the image signal, a bit length counter circuit that counts the bit length of the code data generated during encoding, and an external general-purpose microcomputer circuit. It has a coded data input/output circuit that is connected to the bus and is capable of inputting and outputting coded data to and from the bus, and has primary storage and calculation functions, and stores a program and a modified Hoffman code table in the same storage circuit. An image signal encoding/decoding system characterized in that a micro-programmed sequencer circuit is integrally formed on a single semiconductor substrate, and each of the circuits is connected to a common sequencer bus. Scale integrated circuit. 2. By providing a control register in the code data input/output circuit, and executing the program of the sequencer circuit from a general-purpose microcomputer according to the operation mode set in the control register,
The image signal code according to claim 1, which controls other circuits connected to a common sequencer bus to execute encoding and decoding processes of Modified Hoffman and Modified Read encoding systems. Large-scale integrated circuit for encoding and decoding.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14578782A JPS5934767A (en) | 1982-08-23 | 1982-08-23 | Large scale integrated circuit for picture signal encoding and decoding |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14578782A JPS5934767A (en) | 1982-08-23 | 1982-08-23 | Large scale integrated circuit for picture signal encoding and decoding |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5934767A JPS5934767A (en) | 1984-02-25 |
| JPS6341273B2 true JPS6341273B2 (en) | 1988-08-16 |
Family
ID=15393145
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14578782A Granted JPS5934767A (en) | 1982-08-23 | 1982-08-23 | Large scale integrated circuit for picture signal encoding and decoding |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5934767A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6196871A (en) * | 1984-10-17 | 1986-05-15 | Ricoh Co Ltd | Data compression/playback equipment |
| JPH06184618A (en) * | 1992-12-21 | 1994-07-05 | Nippon Yakin Kogyo Co Ltd | Refining method of ultra low phosphorus steel |
-
1982
- 1982-08-23 JP JP14578782A patent/JPS5934767A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5934767A (en) | 1984-02-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4597016A (en) | Encoding/decoding system | |
| CA1293815C (en) | Dual mode adder circuitry | |
| EP0318055A2 (en) | Data processor including a/d converter for converting a plurality of analog input channels into digital data | |
| US3668651A (en) | Working device code method of i/o control | |
| US4760461A (en) | Binary data compression and expansion processing apparatus | |
| JPS6341273B2 (en) | ||
| JPH0319974B2 (en) | ||
| EP0108647A2 (en) | Data processing apparatus | |
| JPS6282769A (en) | Coding device | |
| JPS6281881A (en) | encoding device | |
| JPH0569342B2 (en) | ||
| JPS5928763A (en) | Detecting circuit of information on picture information encoding and decoding | |
| US5880746A (en) | Apparatus for forming a sum in a signal processing system | |
| US5894568A (en) | Apparatus and method for computing a difference in a digital processing system | |
| JPS58225779A (en) | Decoding system for picture signal | |
| JP2517051B2 (en) | Data transfer control device | |
| JP2551397B2 (en) | Image signal coding system | |
| JPH03288228A (en) | Information processor | |
| JP2624843B2 (en) | Encoding device | |
| JPS6248938B2 (en) | ||
| JP2667018B2 (en) | Information processing device | |
| JPH088646B2 (en) | Image signal encoding / decoding large-scale integrated circuit | |
| JPH088645B2 (en) | Image signal encoding / decoding large-scale integrated circuit | |
| JPS59156073A (en) | Data decoding device | |
| JPS5957576A (en) | Picture data compressing circuit |