JPH07106980A - Encoding device and serialization device - Google Patents

Encoding device and serialization device

Info

Publication number
JPH07106980A
JPH07106980A JP24946693A JP24946693A JPH07106980A JP H07106980 A JPH07106980 A JP H07106980A JP 24946693 A JP24946693 A JP 24946693A JP 24946693 A JP24946693 A JP 24946693A JP H07106980 A JPH07106980 A JP H07106980A
Authority
JP
Japan
Prior art keywords
code
processing
circuit
phase
fifo memory
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.)
Withdrawn
Application number
JP24946693A
Other languages
Japanese (ja)
Inventor
Toshinori Yamamoto
俊則 山本
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP24946693A priority Critical patent/JPH07106980A/en
Publication of JPH07106980A publication Critical patent/JPH07106980A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

(57)【要約】 【目的】 並列処理で生成される可変長符号を効率良く
直列化する。 【構成】 入力端子10A〜10Hには8相に分割され
た画像データが入力する。各処理回路14A〜14Hの
B2コード化回路22がその画像データをB2コード化
する。生成されたB2コードはFIFOメモリ30に一
時記憶される。カウンタ20は入力した画像データ数を
計数し、デコーダ32は処理すべき画像データの終端を
検出し、B2コード化処理完了信号をFIFOメモリ3
4に印加する。スイッチ50,52は当初、処理回路1
4AのFIFOメモリ30,34の出力に接続し、メモ
リ30の記憶データはFIFOメモリ54に転送され
る。メモリ34にB2コード化完了信号が検出される
と、カウンタ58がカウント・アップし、それにより、
スイッチ制御回路60がスイッチ50,52を次の処理
回路14Bに切り換える。
(57) [Summary] [Purpose] Efficiently serialize variable-length codes generated by parallel processing. [Structure] Image data divided into eight phases is input to the input terminals 10A to 10H. The B2 coding circuit 22 of each processing circuit 14A to 14H B2 codes the image data. The generated B2 code is temporarily stored in the FIFO memory 30. The counter 20 counts the number of input image data, the decoder 32 detects the end of the image data to be processed, and outputs a B2 encoding processing completion signal to the FIFO memory 3
4 is applied. Initially, the switches 50 and 52 are the processing circuit 1
The data stored in the memory 30 is transferred to the FIFO memory 54 by connecting to the outputs of the 4A FIFO memories 30 and 34. When the B2 coding completion signal is detected in the memory 34, the counter 58 counts up, whereby
The switch control circuit 60 switches the switches 50 and 52 to the next processing circuit 14B.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、多相分割された情報、
例えば画像信号を可変長符号化し、単相の伝送路上に出
力する符号化装置に関する。本発明は、又、データ量の
異なることのある並列処理装置で、処理済みデータを直
列化する直列化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention
For example, the present invention relates to a coding device for variable-length coding an image signal and outputting it on a single-phase transmission path. The present invention also relates to a serialization device that serializes processed data in a parallel processing device that may have different data amounts.

【0002】[0002]

【従来の技術】従来、映像信号をリアルタイムで処理す
る場合、処理速度との兼ね合いから並列処理系を採用す
る構成が知られている。
2. Description of the Related Art Conventionally, when processing a video signal in real time, a configuration is known in which a parallel processing system is adopted in consideration of processing speed.

【0003】図1は、従来例の概略構成ブロック図を示
す。この従来例では、画像情報を8相に分割し、同じ構
成の処理回路により並列で可変長符号化した後、1相に
まとめている。
FIG. 1 shows a schematic block diagram of a conventional example. In this conventional example, the image information is divided into eight phases, which are subjected to variable length coding in parallel by a processing circuit having the same configuration, and then combined into one phase.

【0004】即ち、A〜Hの8相に分割された各画像信
号が8つの入力端子110(110A〜110H)に入
力し、入力端子112には入力端子110に入力する画
像データに同期したクロック信号が入力する。8個の並
列な処理回路114(114A〜114H)は全く同じ
回路構成であり、内部回路の詳細を処理回路114Aに
ついてのみ図示した。
That is, each image signal divided into eight phases A to H is input to the eight input terminals 110 (110A to 110H), and the input terminal 112 is a clock synchronized with the image data input to the input terminal 110. Signal is input. The eight parallel processing circuits 114 (114A to 114H) have exactly the same circuit configuration, and the details of the internal circuit are shown only for the processing circuit 114A.

【0005】処理回路114Aにおいて、120は入力
画像データの数を数えるカウンタ、122はB2コード
化回路、124は3ビットの加算器、126は前クロッ
クの加算値を記憶するラッチ、128はビット・シフ
タ、130はB2コードを一時的に記憶するFIF0メ
モリ、132はカウンタ120の出力値から入力画像デ
ータの終端を検出するデコーダ、134はFIF0メモ
リ130へのデータ書き込み回数を計数するカウンタ、
136はカウンタ134を制御する論理回路、138は
FIF0メモリ130へのデータ総書き込み数をダウン
・カウントするダウン・カウンタ、140はカウンタ1
38を制御する論理回路、142はカウンタ138の出
力値からFIF0読み出し完了信号を作り出すデコーダ
である。
In the processing circuit 114A, 120 is a counter for counting the number of input image data, 122 is a B2 coding circuit, 124 is a 3-bit adder, 126 is a latch for storing the addition value of the previous clock, and 128 is a bit. A shifter, 130 is a FIFO memory for temporarily storing the B2 code, 132 is a decoder for detecting the end of the input image data from the output value of the counter 120, 134 is a counter for counting the number of times of writing data to the FIFO memory 130,
Reference numeral 136 is a logic circuit for controlling the counter 134, 138 is a down counter for counting down the total number of data writes to the FIFO memory 130, and 140 is counter 1.
38 is a logic circuit for controlling 38, and 142 is a decoder for producing a FIFO0 read completion signal from the output value of the counter 138.

【0006】各処理回路114A〜114H及びその内
部回路を相互に又は特に区別したときには、各符号に相
を特定する符号A〜Hを付加して表記する。それ以外で
は、A〜Hを付加せずに各回路を表記する。
When the processing circuits 114A to 114H and their internal circuits are distinguished from each other or particularly, the codes A to H for identifying the phase are added to the respective codes. Other than that, each circuit is described without adding AH.

【0007】150は各処理回路114A〜114Hの
FIFOメモリ130の出力を選択するスイッチ、15
2は各処理回路114A〜114Hのデコーダ142の
出力を選択するスイッチ、154はスイッチ150から
のデータを出力用に一時記憶するFIFOメモリ、15
6は符号化画像データを外部に出力する出力端子、15
8は、スイッチ152により選択されたデコーダ142
A〜142Hの出力に従いスイッチ150,152を切
り換えるスイッチ制御回路である。
A switch 150 selects an output of the FIFO memory 130 of each processing circuit 114A to 114H, and a switch 15
2 is a switch for selecting the output of the decoder 142 of each processing circuit 114A to 114H, 154 is a FIFO memory for temporarily storing the data from the switch 150 for output, 15
6 is an output terminal for outputting encoded image data to the outside, 15
8 is a decoder 142 selected by the switch 152
A switch control circuit that switches the switches 150 and 152 according to the outputs of A to 142H.

【0008】なお、スイッチ150,152は互いに連
動している。即ち、スイッチ150が処理回路114A
(のFIFOメモリ130A)を選択しているときに
は、スイッチ152は、同じ処理回路114A(のデコ
ーダ142Aの出力)を選択し、スイッチ150が処理
回路114C(のFIFOメモリ130C)を選択して
いるときには、スイッチ152は、同じ処理回路114
C(のデコーダ142Cの出力)を選択している。
The switches 150 and 152 are interlocked with each other. That is, the switch 150 is the processing circuit 114A.
When (the FIFO memory 130A of) is selected, the switch 152 selects the same processing circuit 114A (the output of the decoder 142A of the same), and when the switch 150 selects (the FIFO memory 130C of) the processing circuit 114C. , The switch 152 has the same processing circuit 114
C (the output of the decoder 142C) is selected.

【0009】スイッチ制御回路158は、スイッチ15
0,152に、信号処理回路114A,114B,11
4C,・・・,114Hを順番に選択させる。即ち、ス
イッチ制御回路158は、信号処理回路114Aのデコ
ーダ142Aから読み出し完了信号を検出すると、スイ
ッチ150,152に信号処理回路114Bに切り換
え、信号処理回路114Bのデコーダ142Bから読み
出し完了信号を検出すると、スイッチ150,152に
信号処理回路114Cに切り換えさせる。
The switch control circuit 158 controls the switch 15
0 and 152, the signal processing circuits 114A, 114B, 11
4C, ..., 114H are sequentially selected. That is, when the switch control circuit 158 detects the read completion signal from the decoder 142A of the signal processing circuit 114A, it switches the signal processing circuit 114B to the switches 150 and 152, and upon detecting the read completion signal from the decoder 142B of the signal processing circuit 114B, The switches 150 and 152 are switched to the signal processing circuit 114C.

【0010】次に、従来例におけるデータの流れを説明
する。符号化すべき画像信号は、図2に示すように、モ
ニタ画面上で見て8つの相に分離されて、それぞれ入力
端子110A〜110Hに入力する。各信号処理回路1
14(114A〜114H)では、B2コード化回路1
22が、入力端子110(110A〜110H)からの
画像データをB2コードに変換する。B2コード化回路
122は、16ビットのB2コード自身と、3ビットの
符号長データを出力する。B2コード自身は、B2コー
ドのビット長の累積値によって16ビット巾のバス上に
整列されながらビット・シフタ128に入力される。従
って、16ビットより短いビット長のB2コードは、ビ
ット・シフタ128の内部で16ビットになるまで後に
出力されるB2コードを積み上げられて出力される。こ
のビット・シフタ128のシフト量を調整するためのビ
ット長の累積値は、加算器124及びラッチ126によ
って計算される。
Next, the data flow in the conventional example will be described. As shown in FIG. 2, the image signal to be encoded is separated into eight phases as viewed on the monitor screen and input to the input terminals 110A to 110H, respectively. Each signal processing circuit 1
14 (114A to 114H), the B2 encoding circuit 1
22 converts the image data from the input terminal 110 (110A to 110H) into B2 code. The B2 coding circuit 122 outputs the 16-bit B2 code itself and the 3-bit code length data. The B2 code itself is input to the bit shifter 128 while being aligned on a 16-bit wide bus according to the accumulated value of the bit length of the B2 code. Therefore, the B2 code having a bit length shorter than 16 bits is output by stacking the B2 codes output later until it becomes 16 bits inside the bit shifter 128. The cumulative value of the bit length for adjusting the shift amount of the bit shifter 128 is calculated by the adder 124 and the latch 126.

【0011】ビット・シフタ128から出力されるデー
タは、16ビット巾にビット詰めされた形でFIF01
30に書き込まれる。FIF0130に書き込むタイミ
ングは、ビット・シフタ128内で16ビットに詰まっ
た時点であるから、ラッチ126からビット長の累積値
のキャリーが出力される時点であり、このキャリーをF
IF0130のライト信号として使用する。
The data output from the bit shifter 128 is packed into a 16-bit width in the form of FIFO01.
Written in 30. The timing of writing to the FIFO0130 is the time when the bit shifter 128 is packed into 16 bits, and therefore the time when the carry of the accumulated value of the bit length is output from the latch 126.
It is used as a write signal for IF0130.

【0012】以上の動作と平行してカウンタ120によ
り、入力されてくる画像データを数えておき、デコーダ
132がカウンタ120の計数値から入力画像データの
終端を検出し、検出結果を論理回路136に出力する。
論理回路136はFIF0130へのデータ書き込み回
数を計数するためのカウンタ134のカウントアップを
制御するための論理回路であり、入力画像データの終端
が検出されるまでFIF0130のライト信号が出力さ
れる毎にカウントアップするように構成される。従っ
て、カウンタ134は、入力画像データの終端に達する
までに、FIF0130へ書き込みを行なった回数、即
ち書き込み回数を計数する。この書き込み回数はダウン
・カウンタ138ヘロードされ、論理回路140が、F
IF0130への書き込みが終了した時点から書き込み
回数分のダウンカウントを起動する。ダウンカウントの
結果が0となった時点でデコーダ142が、FIF0読
み出し完了信号を出力する。
In parallel with the above operation, the counter 120 counts the input image data, the decoder 132 detects the end of the input image data from the count value of the counter 120, and outputs the detection result to the logic circuit 136. Output.
The logic circuit 136 is a logic circuit for controlling the count-up of the counter 134 for counting the number of times of writing data to the FIFO 0130, and every time the write signal of the FIFO 0130 is output until the end of the input image data is detected. It is configured to count up. Therefore, the counter 134 counts the number of writings to the FIFO 0130, that is, the number of writings until the end of the input image data is reached. This write count is loaded into the down counter 138, and the logic circuit 140 is set to F
When the writing to the IF0130 is completed, the down count for the number of writings is started. When the result of the down count becomes 0, the decoder 142 outputs the FIFO0 read completion signal.

【0013】次に、スイッチ150,152以降での動
作を説明する。FIF0130A〜130Hから出力さ
れたデータは、スイッチ150を介してFIF0154
に、デコーダ142A〜142Hから出力されるFIF
0読み出し完了信号は、スイッチ152を介してスイッ
チ制御回路158に、それぞれ各相ごとに入力される。
スイッチ制御回路158は、デコーダ142A〜142
HからのFIFOメモリ読み出し完了信号に応じて、1
つの相の読み出し完了信号の検出する都度、スイッチ1
50,152を次の相に切り換える。
Next, the operation of the switches 150 and 152 and thereafter will be described. The data output from the FIFO0130A to 130H is transmitted through the switch 150 to the FIFO0154.
To the FIF output from the decoders 142A to 142H.
The 0 read completion signal is input to the switch control circuit 158 via the switch 152 for each phase.
The switch control circuit 158 includes decoders 142A to 142A.
1 in response to the FIFO memory read completion signal from H
Switch 1 each time a read completion signal of one phase is detected
50 and 152 are switched to the next phase.

【0014】[0014]

【発明が解決しようとする課題】従来例では、相別され
た可変長符号保存用FIFOメモリ130A〜130H
への書き込み回数を力ウントし、そのカウント結果によ
り、当該可変長符号保存用FIFOメモリ130A〜1
30Hの読み出しを制御しているので、次のような間題
がある。即ち、第1に、単相の伝送路上に連なるFIF
Oメモリ154への書き込みに要する時間時間が長くな
り、単相の伝送路側のデータ・レートが早い場合にそれ
に追従できなくなる。第2に、書き込み回数カウント用
のカウンタを含めた論理回路部分の回路構成が非常に大
きくなってしまう。
In the conventional example, the variable-length code storage FIFO memories 130A to 130H are classified into phases.
The number of writes to the variable length code storage FIFO memory 130A-1
Since the reading of 30H is controlled, there are the following problems. That is, first, the FIFs connected on the single-phase transmission path
The time required for writing to the O memory 154 becomes long, and it becomes impossible to follow it when the data rate on the single-phase transmission path side is high. Secondly, the circuit configuration of the logic circuit part including the counter for counting the number of times of writing becomes very large.

【0015】本発明は、このような問題点を解決する符
号化装置及び直列化装置を提示することを目的とする。
An object of the present invention is to provide an encoding device and a serialization device that solve such a problem.

【0016】[0016]

【課題を解決するための手段】本発明に係る符号化装置
は、多相分割された情報を可変長符号化し、単一路に出
力する符号化装置である。各相について、可変長符号化
手段、当該可変長符号化手段の符号出力を一時記憶する
コード・バッファ手段、及び当該可変長符号化手段の符
号化完了を示す制御情報を記憶する制御情報記憶手段を
有する処理手段を設ける。更に、各相の処理手段の制御
情報記憶手段に記憶される制御情報を参照して、当該各
相の処理手段のコード・バッファ手段の記憶コードを時
系列化する選択手段を設ける。
An encoding device according to the present invention is an encoding device for performing variable length encoding of information which has been polyphase-divided and outputting it on a single path. For each phase, variable length coding means, code buffer means for temporarily storing the code output of the variable length coding means, and control information storage means for storing control information indicating the coding completion of the variable length coding means. A processing means having Further, there is provided selection means for referencing the control information stored in the control information storage means of the processing means of each phase to time-series the storage code of the code buffer means of the processing means of the respective phase.

【0017】本発明に係る直列化装置は、N(Nは2以
上)の並列処理手段と、当該N個の並列処理手段の処理
済みデータを選択する選択手段と、当該選択手段を制御
する制御手段とからなる直列化装置であって、当該N個
の並列処理手段の各々が、処理済みデータを一時記憶す
るバッファ手段と、並列処理の終了を示す処理完了信号
を記憶する処理完了記憶手段とを具備する。更に、当該
制御手段が、当該N個の並列処理手段の各々における当
該処理完了記憶手段を順に参照し、処理完了信号の検出
に応じて当該選択手段に次の並列処理手段の処理済みデ
ータを選択させる。
The serializing apparatus according to the present invention comprises N (N is 2 or more) parallel processing means, selecting means for selecting processed data of the N parallel processing means, and control for controlling the selecting means. And a processing completion storing means for storing a processing completion signal indicating the end of the parallel processing, wherein each of the N parallel processing means includes a buffer means for temporarily storing processed data. It is equipped with. Further, the control means sequentially refers to the processing completion storage means in each of the N parallel processing means, and selects the processed data of the next parallel processing means to the selection means in response to the detection of the processing completion signal. Let

【0018】[0018]

【作用】上記手段により、並列処理された各相の可変長
符号を時間的な隙間なく単相の伝送路上にまとめること
ができる。
By the above means, the parallel-processed variable length codes of the respective phases can be put together on the single-phase transmission line without a time gap.

【0019】[0019]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0020】図3は本発明の一実施例の概略構成ブロッ
ク図を示す。本実施例でも、従来例(図1)と同様に、
画像情報を8相に分割し、同じ構成の処理回路により並
列で可変長符号化した後、1相にまとめている。
FIG. 3 shows a schematic block diagram of an embodiment of the present invention. Also in this embodiment, similarly to the conventional example (FIG. 1),
The image information is divided into eight phases, which are subjected to variable length coding in parallel by a processing circuit having the same configuration, and then combined into one phase.

【0021】即ち、A〜Hの8相に分割された各画像信
号が8つの入力端子10(10A〜10H)に入力し、
入力端子12には入力端子10に入力する画像データに
同期したクロック信号が入力する。8個の並列な処理回
路14(14A〜14H)は全く同じ回路構成であり、
内部回路の詳細を処理回路14Aについてのみ図示し
た。
That is, each image signal divided into eight phases A to H is input to eight input terminals 10 (10A to 10H),
A clock signal synchronized with the image data input to the input terminal 10 is input to the input terminal 12. The eight parallel processing circuits 14 (14A to 14H) have exactly the same circuit configuration,
The details of the internal circuit are shown only for the processing circuit 14A.

【0022】処理回路14Aにおいて、20は入力画像
データの数を数えるカウンタ、22はB2コード化回
路、24は3ビットの加算器、26は前クロックの加算
値を記憶するラッチ、28はビット・シフタ、30はB
2コードを一時的に記憶するFIF0メモリ、32はカ
ウンタ20の出力値から入力画像データの終端を検出す
るデコーダ、34はデコーダ32の検出出力(1ビッ
ト)を一時記憶するFIFOメモリである。
In the processing circuit 14A, 20 is a counter for counting the number of input image data, 22 is a B2 coding circuit, 24 is a 3-bit adder, 26 is a latch for storing the addition value of the previous clock, and 28 is a bit. Shifter, 30 is B
2 is a FIFO memory for temporarily storing two codes, 32 is a decoder for detecting the end of the input image data from the output value of the counter 20, and 34 is a FIFO memory for temporarily storing the detection output (1 bit) of the decoder 32.

【0023】従来例と同様に、各処理回路14A〜14
H及びその内部回路を相互に又は特に区別したときに
は、各符号に相を特定する符号A〜Hを付加して表記す
る。それ以外では、A〜Hを付加せずに各回路を表記す
る。
Similar to the conventional example, each processing circuit 14A to 14A
When H and its internal circuit are distinguished from each other or in particular, the symbols A to H for identifying the phase are added to each symbol. Other than that, each circuit is described without adding AH.

【0024】50は各処理回路14A〜114HのFI
FOメモリ30の出力を選択するスイッチ、52は各処
理回路14A〜14HのFIFOメモリ34の出力を選
択するスイッチ、54はスイッチ50からのデータを出
力用に一時記憶するFIFOメモリ、56は符号化画像
データを外部に出力する出力端子、58は、スイッチ5
2の出力により起動される3ビット・カウンタ、60は
カウンタ58の計数値に従いスイッチ50,52を切り
換えるスイッチ制御回路である。
50 is the FI of each processing circuit 14A-114H.
A switch that selects the output of the FO memory 30, a switch 52 that selects the output of the FIFO memory 34 of each processing circuit 14A to 14H, a 54 FIFO memory that temporarily stores the data from the switch 50 for output, and a 56 An output terminal for outputting image data to the outside, 58 is a switch 5
A 3-bit counter activated by the output of 2 and 60 is a switch control circuit for switching the switches 50 and 52 according to the count value of the counter 58.

【0025】スイッチ50,52は互いに連動してい
る。即ち、スイッチ50が処理回路14A(のFIFO
メモリ30A)を選択しているときには、スイッチ52
は、同じ処理回路14A(のFIFOメモリ34Aの出
力)を選択し、スイッチ50が処理回路14C(のFI
FOメモリ30C)を選択しているときには、スイッチ
52は、同じ処理回路14C(のFIFOメモリ42C
の出力)を選択している。
The switches 50 and 52 are interlocked with each other. That is, the switch 50 is the processing circuit 14A (FIFO of the processing circuit 14A).
When memory 30A) is selected, switch 52
Selects the same processing circuit 14A (the output of the FIFO memory 34A), and the switch 50 (the FI of the processing circuit 14C).
When the FO memory 30C) is selected, the switch 52 controls the same processing circuit 14C (the FIFO memory 42C of the same processing circuit 14C).
Output) is selected.

【0026】図4は、図3に示す本実施例を組み込んだ
画像符号化装置の全体概略構成ブロック図を示す。入力
端子210にはアナログ輝度信号(又はRGB形式のア
ナログG信号)が入力し、入力端子212にはアナログ
Pb信号(又はアナログB信号)が入力し、入力端子2
14にはアナログPr信号(又はアナログR信号)が入
力する。A/D変換器216,218,220は、入力
端子210,212,214からのアナログ信号をそれ
ぞれディジタル信号に変換する。符号化回路222はA
/D変換器216,218,220の出力を8相で並列
に符号化する8つの同様の回路からなり、各相に、離散
コサイン変換(DCT)回路224、B2コード化回路
226及びFIFOメモリ228を具備する。符号化回
路222の8相の出力はバッファ230により直列化さ
れ、出力端子232から出力される。
FIG. 4 is a block diagram showing the overall schematic configuration of an image coding apparatus incorporating this embodiment shown in FIG. An analog luminance signal (or an analog G signal in RGB format) is input to the input terminal 210, an analog Pb signal (or an analog B signal) is input to the input terminal 212, and the input terminal 2
An analog Pr signal (or analog R signal) is input to 14. The A / D converters 216, 218, 220 convert the analog signals from the input terminals 210, 212, 214 into digital signals, respectively. The encoding circuit 222 is A
It consists of eight similar circuits that encode the outputs of the / D converters 216, 218, 220 in parallel in eight phases, with a discrete cosine transform (DCT) circuit 224, a B2 coding circuit 226 and a FIFO memory 228 for each phase. It is equipped with. The 8-phase outputs of the encoding circuit 222 are serialized by the buffer 230 and output from the output terminal 232.

【0027】B2コード化回路226は図3のB2コー
ド化回路22に対応し、FIFOメモリ228は図3の
FIFOメモリ30に対応し、バッファ230は図3の
FIFOメモリ54に対応する。
The B2 encoding circuit 226 corresponds to the B2 encoding circuit 22 of FIG. 3, the FIFO memory 228 corresponds to the FIFO memory 30 of FIG. 3, and the buffer 230 corresponds to the FIFO memory 54 of FIG.

【0028】本実施例の動作を説明する。The operation of this embodiment will be described.

【0029】図4では、次に、本実施例でのデータの流
れを説明する。A/D変換器216,218,220
が、入力端子210,212,214からのアナログ信
号をそれぞれディジタル信号に変換し、そのディジタル
・データは、図2に示すように8相に分割されて、各相
の符号化回路222に印加される。
Next, the flow of data in this embodiment will be described with reference to FIG. A / D converters 216, 218, 220
Converts the analog signals from the input terminals 210, 212 and 214 into digital signals, and the digital data is divided into eight phases as shown in FIG. 2 and applied to the encoding circuit 222 of each phase. It

【0030】各符号化回路222では、先ず、DCT回
路224が画像データを離散コサイン変換する。8相の
DCT回路224の出力は、それぞれ、図3の入力端子
10A〜10Hに入力する。図3の各信号処理回路14
(14A〜14H)では、B2コード化回路22が、入
力端子10(10A〜10H)からの画像データをB2
コードに変換する。B2コード化回路22は、16ビッ
トのB2コード自身と3ビットの符号長データを出力す
る。B2コード自身は、B2コードのビット長の累積値
によって16ビット巾のバス上に整列されながらビット
・シフタ28に入力される。従って、16ビットより短
いビット長のB2コードは、ビット・シフタ28の内部
で16ビットになるまで後に出力されるB2コードを積
み上げられて出力される。このビット・シフタ28のシ
フト量を調整するためのビット長の累積値は、加算器2
4及びラッチ26によって計算される。
In each coding circuit 222, the DCT circuit 224 first performs a discrete cosine transform on the image data. The outputs of the 8-phase DCT circuit 224 are input to the input terminals 10A to 10H of FIG. 3, respectively. Each signal processing circuit 14 of FIG.
In (14A to 14H), the B2 encoding circuit 22 outputs the image data from the input terminal 10 (10A to 10H) to B2.
Convert to code. The B2 coding circuit 22 outputs a 16-bit B2 code itself and 3-bit code length data. The B2 code itself is input to the bit shifter 28 while being aligned on the 16-bit wide bus by the accumulated value of the bit length of the B2 code. Therefore, the B2 code having a bit length shorter than 16 bits is output by stacking the B2 codes output later until it becomes 16 bits inside the bit shifter 28. The cumulative value of the bit length for adjusting the shift amount of the bit shifter 28 is the adder 2
4 and latch 26.

【0031】ビット・シフタ28から出力されるデータ
は、16ビット巾にビット詰めされた形でFIF030
に書き込まれる。FIF030に書き込むタイミング
は、ビット・シフタ28内で16ビットに詰まった時点
であるから、ラッチ26からビット長の累積値のキャリ
ーが出力される時点であり、このキャリーをFIF03
0のライト信号として使用する。
The data output from the bit shifter 28 is packed in a 16-bit width in the form of the FIFO030.
Written in. The timing of writing to the FIFO 030 is the time when the bit shifter 28 is filled with 16 bits, and therefore the time when the carry of the accumulated value of the bit length is output from the latch 26.
Used as a 0 write signal.

【0032】以上の動作と平行してカウンタ20によ
り、入力されてくる画像データを数えておき、デコーダ
32がカウンタ20の計数値から入力画像データの終端
を検出し、検出結果をFIFOメモリ34に出力する。
デコーダ32の検出結果は、B2コード化処理完了を示
す。
In parallel with the above operation, the counter 20 counts the input image data, the decoder 32 detects the end of the input image data from the count value of the counter 20, and the detection result is stored in the FIFO memory 34. Output.
The detection result of the decoder 32 indicates the completion of the B2 encoding process.

【0033】入力端子10に入力した段階では、各デー
タは固定長であるが、B2コード変換により、可変長に
なり、所々のクロックにデータの空きが発生する。従っ
て、FIFOメモリ30A〜30HからFIFOメモリ
54にデータを転送する際に、単純にスイッチ50を切
り換えたのでは、データの空きによる不要なデータ部分
も伝送することになり、全体のデータ伝送量が増大して
しまう。
At the stage of input to the input terminal 10, each data has a fixed length, but becomes a variable length by the B2 code conversion, and a data vacancy occurs at some clocks. Therefore, if the switch 50 is simply switched when data is transferred from the FIFO memories 30A to 30H to the FIFO memory 54, an unnecessary data portion due to a vacancy of data is also transmitted, and the entire data transmission amount is increased. It will increase.

【0034】この現象を防止するため、本実施例では、
FIFOメモリ34にB2コード化処理完了信号を記憶
するようにし、これにより、スイッチ50の切り換えを
制御するようにした。
In order to prevent this phenomenon, in this embodiment,
The B2 encoding process completion signal is stored in the FIFO memory 34, and thereby the switching of the switch 50 is controlled.

【0035】図5は、各相#0〜#7(上述の相A〜H
に対応する。)毎の、コードとB2コード化処理完了信
号の一例を示す。コードはCODEとして図示され、B
2コード化処理完了信号はEORとして図示されてい
る。
FIG. 5 shows each of the phases # 0 to # 7 (the above-mentioned phases A to H).
Corresponding to. 2) shows an example of a code and a B2 encoding processing completion signal for each of the above). The code is shown as CODE, B
The 2-coding process complete signal is shown as EOR.

【0036】本実施例ではB2コード化されたデジタル
画像データデータを16ビット幅で表現し、このデータ
と平行に、1ビットのB2コード化処理完了信号を生成
している。図5に示すように、B2コード化処理完了信
号は、有効な最後のB2コードがデータバスに出力され
た時点より1クロック遅延した正信号となっている。つ
まり、斜線表示されたデータは無効なデータであり、こ
の無効データの開始タイミングで出力される。
In this embodiment, B2-encoded digital image data data is expressed in a 16-bit width, and a 1-bit B2-encoding processing completion signal is generated in parallel with this data. As shown in FIG. 5, the B2 encoding process completion signal is a positive signal delayed by one clock from the time when the last valid B2 code is output to the data bus. That is, the shaded data is invalid data and is output at the start timing of this invalid data.

【0037】ビット・シフタ28は、図5に示すような
タイミングでB2コードを出力するが、スイッチ50,
52以降の処理で、同じ相のB2コード化信号とB2コ
ード化処理完了信号を同一タイミングで処理できるよう
に、基本データ長が16ビットと1ビットという違いを
除いて、同じ量のデータを記憶できるFIFOメモリ3
0,34を使用し、且つ、書き込みと読み出しのタイミ
ングを揃えている。
The bit shifter 28 outputs the B2 code at the timing shown in FIG.
Stores the same amount of data, except that the basic data length is 16 bits and 1 bit, so that the B2 coded signal of the same phase and the B2 coded processing completion signal can be processed at the same timing in the processing after 52. Available FIFO memory 3
0 and 34 are used, and the write and read timings are aligned.

【0038】FIFOメモリ30から出力されるB2コ
ードは、スイッチ50によりFIFOメモリ54に、F
IFOメモリ34から出力されるB2コード化完了信号
は、スイッチ52を介してカウンタ58に、各相順に入
力される。
The B2 code output from the FIFO memory 30 is transferred to the FIFO memory 54 by a switch 50
The B2 coding completion signal output from the IFO memory 34 is input to the counter 58 via the switch 52 in order of each phase.

【0039】スイッチ50,52の切り換えについて詳
細に説明する。図5では、FIFOメモリ30に格納さ
れるB2コードを時系列的にCODEとして図示してあ
る。図5の#0〜#7は、分割された8つの相を示す。
例えば、相#0のCODEとして図示したB2コード
は、FIFOメモリ30Aに格納される。同様に、相#
1のCODEとして図示したB2コードは、FIFOメ
モリ30Bに格納される。
The switching of the switches 50 and 52 will be described in detail. In FIG. 5, the B2 code stored in the FIFO memory 30 is illustrated as CODE in time series. # 0 to # 7 in FIG. 5 indicate eight divided phases.
For example, the B2 code illustrated as the CODE of the phase # 0 is stored in the FIFO memory 30A. Similarly, phase #
The B2 code shown as a CODE of 1 is stored in the FIFO memory 30B.

【0040】図5で、EORは、B2コード化処理完了
信号であり、図3のFIFOメモリ34A〜34Hに格
納される。例えば、例えば、相#0のEORとして図示
したB2コード化完了信号は、FIFOメモリ34Aに
格納される。同様に、相#1のEORとして図示したB
2コード化完了信号は、FIFOメモリ34Bに格納さ
れる。
In FIG. 5, EOR is a B2 coding processing completion signal and is stored in the FIFO memories 34A to 34H of FIG. For example, a B2 coding completion signal, shown as EOR for phase # 0, is stored in the FIFO memory 34A. Similarly, B illustrated as EOR for Phase # 1
The 2-coding completion signal is stored in the FIFO memory 34B.

【0041】図6は、図5に示す各相のB2コードを本
実施例により直列化した後を示す。このような順序でB
2コードがFIFOメモリ54に格納される。各データ
に付けられている符号は図5に付けられている符号に対
応している。例えば、各データには、相を特定する番号
と、相内でのデータの通番を付記してある。
FIG. 6 shows the B2 code of each phase shown in FIG. 5 after being serialized according to this embodiment. B in this order
Two codes are stored in the FIFO memory 54. The reference numeral attached to each data corresponds to the reference numeral attached in FIG. For example, a number identifying a phase and a serial number of the data within the phase are added to each data.

【0042】スイッチ50,52は先ず、信号処理回路
14Aに接続し、それぞれFIFOメモリ30A,34
Aを選択している。相#0のB2コードはスイッチ50
を介してFIFOメモリ54に次々と書き込まれ、これ
と並行して、相#0のB2コード化処理完了信号はスイ
ッチ52を介してカウンタ58のイネーブル端子に印加
される。図5にEORで示すように、B2コード化完了
信号が正になるまではB2コードは有効であるので、ス
イッチ50,52は同じ相に接続し続ける。B2コード
化処理完了信号が正の信号になると、これにより力ウン
タ58が1だけカウントアップする。
The switches 50 and 52 are first connected to the signal processing circuit 14A, and the FIFO memories 30A and 34, respectively.
A is selected. B2 code for phase # 0 is switch 50
Are sequentially written in the FIFO memory 54 via the switch, and in parallel with this, the B2 encoding process completion signal of the phase # 0 is applied to the enable terminal of the counter 58 via the switch 52. As indicated by EOR in FIG. 5, since the B2 code is valid until the B2 coding completion signal becomes positive, the switches 50 and 52 continue to be connected to the same phase. When the B2 encoding processing completion signal becomes a positive signal, the force counter 58 counts up by 1.

【0043】スイッチ制御回路60はカウンタ58の保
持値に応じた相の信号処理回路14A,・・・,又は1
4Hを選択するようにスイッチ50,52を切り換え
る。本実施例では、スイッチ50,52は次の相に切り
換えられる。カウンタ58が3ビットであるのは相分割
数が8だからである。カウンタ58は、ループ・カウン
タとなって順番に、相#0から相#1へ、相#1から相
#2へ、相#2から相#3へ、・・・、相#7から相#
0へと循環する。
The switch control circuit 60 includes the signal processing circuits 14A, ... Or 1 for the phase corresponding to the value held by the counter 58.
The switches 50 and 52 are switched so as to select 4H. In this embodiment, the switches 50 and 52 are switched to the next phase. The counter 58 has 3 bits because the number of phase divisions is 8. The counter 58 becomes a loop counter in order from phase # 0 to phase # 1, phase # 1 to phase # 2, phase # 2 to phase # 3, ..., Phase # 7 to phase #.
Cycles to zero.

【0044】従って、相#0のB2コードがFIFOメ
モリ54に書き込まれた後に相#1のB2コードがFI
FOメモリ54に書き込まれ、相#1の正のB2コード
化処理完了信号により相#2のB2コードがをFIFO
メモリ54に書き込まれる。以後同様にして、相#7の
B2コードがFIFOメモリ54に書き込まれ、相#7
の正のB2コード化処理完了信号により次の相#0のB
2コードがFIFOメモリ54に書き込まれる。
Therefore, after the B2 code of phase # 0 is written in the FIFO memory 54, the B2 code of phase # 1 is FI.
The B2 code of the phase # 2 is written into the FO memory 54 by the positive B2 encoding processing completion signal of the phase # 1 and is transferred to the FIFO.
It is written in the memory 54. Thereafter, in the same manner, the B2 code of the phase # 7 is written in the FIFO memory 54 and the phase # 7 is written.
B of the next phase # 0 by the positive B2 encoding completion signal of
The two codes are written in the FIFO memory 54.

【0045】以上のような論理で図3のスイッチ50,
52を動作させることにより、図5の斜線部分の無用な
データ部分がFIFOメモリ54に印加されないように
する。これにより、FIFOメモリ54からは有効なB
2コード列のみが出力される。
With the above logic, the switch 50 of FIG.
By operating 52, the unnecessary data portion indicated by the hatched portion in FIG. 5 is prevented from being applied to the FIFO memory 54. As a result, the valid B from the FIFO memory 54 is
Only two code strings are output.

【0046】本実施例では、画像信号の分割相数を2の
べき乗としているので、カウンタ58及びスイッチ制御
回路60をループ・カウンタとして構成すればよいの
で、制御が非常に簡単になる。従って、周辺の回路構成
は、非常に簡単なもので実現できる。また、B2コード
化処理完了信号を有効な最後のB2コードがデータバス
に出力された時点より1クロック遅延させているので、
出力される直列データ列を、1クロックの余分もなく隙
間なくすべて有効なB2コードで埋めらることができ
る。
In this embodiment, since the number of divided phases of the image signal is a power of 2, the counter 58 and the switch control circuit 60 may be configured as a loop counter, so that the control becomes very simple. Therefore, the peripheral circuit configuration can be realized with a very simple structure. Further, since the B2 encoding processing completion signal is delayed by one clock from the time when the last valid B2 code is output to the data bus,
The output serial data string can be completely filled with a valid B2 code without a gap of one clock.

【0047】上記実施例では可変長符号としてB2コー
ドを例としたが、可変長符号の最大符号長に関わらず可
変長符号の符号長から可変長符号化完了を検出可能なす
べての可変長符号について、本発明を適用することがで
きる。
Although the B2 code is used as an example of the variable length code in the above embodiment, all variable length codes capable of detecting completion of variable length coding from the code length of the variable length code regardless of the maximum code length of the variable length code. With respect to, the present invention can be applied.

【0048】また、上記実施例では画像信号を8相に分
割する例を説明したが、本発明がこの分割相数に限定さ
れないことは明らかである。
In the above embodiment, an example in which the image signal is divided into eight phases has been described, but it is clear that the present invention is not limited to this number of divided phases.

【0049】[0049]

【発明の効果】以上の説明から容易に理解できるよう
に、本発明によれば、並列に分割された各相の可変長符
号を、隙間なく効率的に1列に直列化することができ
る。そのための制御に要する時間も短時間で済む。ま
た、非常に簡単な回路で実現できるので、コスト及び回
路規模の面で非常に効果が大きい。
As can be easily understood from the above description, according to the present invention, the variable length codes of the phases divided in parallel can be efficiently serialized in one line without a gap. The time required for the control can be short. Further, since it can be realized by a very simple circuit, it is very effective in terms of cost and circuit scale.

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

【図1】 従来例の概略構成ブロック図である。FIG. 1 is a schematic block diagram of a conventional example.

【図2】 モニタ画面上で見て画像信号を8相分割する
分割例を示す図である。
FIG. 2 is a diagram showing a division example in which an image signal is divided into eight phases when viewed on a monitor screen.

【図3】 本発明の一実施例の概略構成ブロック図であ
る。
FIG. 3 is a schematic block diagram of an embodiment of the present invention.

【図4】 本実施例を組み込んだ画像符号化装置の概略
構成ブロック図である。
FIG. 4 is a schematic configuration block diagram of an image encoding device incorporating this embodiment.

【図5】 本実施例におけるB2コード列及びB2コー
ド化処理完了信号のタイミング図である。
FIG. 5 is a timing chart of a B2 code string and a B2 coding processing completion signal in the present embodiment.

【図6】 本実施例の直列化後のB2コード列である。FIG. 6 is a B2 code string after serialization in this embodiment.

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

10A〜10H:画像入力端子 12:クロック入力端
子 14A〜14H:処理回路 20:カウンタ 2
2:B2コード化回路 24:3ビット加算器 26:
ラッチ 28:ビット・シフタ 30:FIF0メモリ
32:デコーダ 34:FIFOメモリ 50:スイッチ 52:スイッ
チ 54:FIFOメモリ 56:出力端子 58:3
ビット・カウンタ 60:スイッチ制御回路 110A〜110H:画像入力端子 112:クロック
入力端子 114A〜114H:処理回路 120:カ
ウンタ 122:B2コード化回路 124:3ビット
加算器 126:ラッチ 128:ビット・シフタ 1
30:FIF0メモリ 132:デコーダ 134:カ
ウンタ 136:論理回路 138:ダウン・カウンタ
140:論理回路 142:デコーダ 150,15
2:スイッチ 154:FIFOメモリ 156:出力
端子 158:スイッチ制御回路 210,212,214:入力端子 216,218,
220:A/D変換器 222:符号化回路 224:離散コサイン変換回路
226:B2コード化回路 228:FIFOメモリ
230:バッファ 232:出力端子
10A to 10H: image input terminal 12: clock input terminal 14A to 14H: processing circuit 20: counter 2
2: B2 coding circuit 24: 3-bit adder 26:
Latch 28: Bit shifter 30: FIFO memory 32: Decoder 34: FIFO memory 50: Switch 52: Switch 54: FIFO memory 56: Output terminal 58: 3
Bit counter 60: Switch control circuit 110A to 110H: Image input terminal 112: Clock input terminal 114A to 114H: Processing circuit 120: Counter 122: B2 coding circuit 124: 3-bit adder 126: Latch 128: Bit shifter 1
30: FIFO memory 132: Decoder 134: Counter 136: Logic circuit 138: Down counter 140: Logic circuit 142: Decoder 150, 15
2: Switch 154: FIFO memory 156: Output terminal 158: Switch control circuit 210, 212, 214: Input terminal 216, 218,
220: A / D converter 222: Encoding circuit 224: Discrete cosine conversion circuit
226: B2 encoding circuit 228: FIFO memory
230: buffer 232: output terminal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 多相分割された情報を可変長符号化し、
単一路に出力する符号化装置であって、 可変長符号化手段、当該可変長符号化手段の符号出力を
一時記憶するコード・バッファ手段、及び当該可変長符
号化手段の符号化完了を示す制御情報を記憶する制御情
報記憶手段を有する各相の処理手段と、 当該各相の処理手段の当該制御情報記憶手段に記憶され
る制御情報を参照して、当該各相の処理手段のコード・
バッファ手段の記憶コードを時系列化する選択手段とか
らなることを特徴とする符号化装置。
1. A variable-length code for polyphase-divided information,
A coding device for outputting to a single path, comprising: variable length coding means, code buffer means for temporarily storing the code output of the variable length coding means, and control for indicating the coding completion of the variable length coding means. By referring to the processing means of each phase having control information storage means for storing information and the control information stored in the control information storage means of the processing means of each phase, the code of the processing means of each phase
An encoding device comprising: a selection unit for time-sequencing the storage code of the buffer unit.
【請求項2】 N(Nは2以上)の並列処理手段と、当
該N個の並列処理手段の処理済みデータを選択する選択
手段と、当該選択手段を制御する制御手段とからなる直
列化装置であって、 当該N個の並列処理手段の各々が、処理済みデータを一
時記憶するバッファ手段と、並列処理の終了を示す処理
完了信号を記憶する処理完了記憶手段とを具備し、 当該制御手段が、当該N個の並列処理手段の各々におけ
る当該処理完了記憶手段を順に参照し、処理完了信号の
検出に応じて当該選択手段に次の並列処理手段の処理済
みデータを選択させることを特徴とする直列化装置。
2. A serialization device comprising N (N is 2 or more) parallel processing means, selection means for selecting processed data of the N parallel processing means, and control means for controlling the selection means. Wherein each of the N parallel processing means comprises a buffer means for temporarily storing processed data and a processing completion storage means for storing a processing completion signal indicating the end of the parallel processing. Is to sequentially refer to the processing completion storing means in each of the N parallel processing means, and to cause the selecting means to select the processed data of the next parallel processing means in response to the detection of the processing completion signal. Serializer.
JP24946693A 1993-10-05 1993-10-05 Encoding device and serialization device Withdrawn JPH07106980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24946693A JPH07106980A (en) 1993-10-05 1993-10-05 Encoding device and serialization device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24946693A JPH07106980A (en) 1993-10-05 1993-10-05 Encoding device and serialization device

Publications (1)

Publication Number Publication Date
JPH07106980A true JPH07106980A (en) 1995-04-21

Family

ID=17193382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24946693A Withdrawn JPH07106980A (en) 1993-10-05 1993-10-05 Encoding device and serialization device

Country Status (1)

Country Link
JP (1) JPH07106980A (en)

Similar Documents

Publication Publication Date Title
US5812701A (en) Variable length coding system having a zig-zag memory
JP3294026B2 (en) High-speed variable-length decoding device
US5706001A (en) Run-length decoding apparatus for use in a video signal decoding system
KR0152032B1 (en) Variable long decoder for video signal
EP1158807B1 (en) Data stream conversion apparatus and method, variable length coded data stream generation apparatus and method, and camera system
US4955061A (en) Method and apparatus for processing an image signal
US4499498A (en) Run length decoding apparatus
JPH07106980A (en) Encoding device and serialization device
EP0831661B1 (en) Apparatus for decoding variable length coded data
JPS6338152B2 (en)
JP3063180B2 (en) Variable length code decoding circuit
US7460718B2 (en) Conversion device for performing a raster scan conversion between a JPEG decoder and an image memory
JPS6342471B2 (en)
JP3014999B2 (en) Huffman decoding device
JPS6226101B2 (en)
JPS6016772B2 (en) Signal transmission method
JP3136573B2 (en) Decoding device and processing device for variable length code
JPS6342472B2 (en)
JPS6148305B2 (en)
JP3142911B2 (en) Processing method of encoding / decoding device
JPS6228113Y2 (en)
KR910009792B1 (en) Facsimile Signal Processing Circuit
JPS60194672A (en) run length encoder
JP2536489B2 (en) Compressed data decoding device
JPH04354474A (en) Run length detection circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20001226