JPH04302598A - Entropy encoding circuit - Google Patents

Entropy encoding circuit

Info

Publication number
JPH04302598A
JPH04302598A JP3093554A JP9355491A JPH04302598A JP H04302598 A JPH04302598 A JP H04302598A JP 3093554 A JP3093554 A JP 3093554A JP 9355491 A JP9355491 A JP 9355491A JP H04302598 A JPH04302598 A JP H04302598A
Authority
JP
Japan
Prior art keywords
data
variable length
buffer memory
buffer
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3093554A
Other languages
Japanese (ja)
Inventor
Masayuki Okajima
岡島 雅之
Takuya Nohara
野原 琢也
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.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP3093554A priority Critical patent/JPH04302598A/en
Publication of JPH04302598A publication Critical patent/JPH04302598A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To perform memory writing at parallel processing speed without increasing the number of data bits per one sample by successively reading data stored in a buffer memory corresponding to a variable length encoder with a pause. CONSTITUTION:A predictive encoding data by one line is inputted from input terminals 11 to 14 and encoded by variable length encoders 21 to 24. The encoding data and a writing clock to buffer memories 31 to 34 are inputted and the reading is performed by a reading clock inputted from an input terminal 6, and the reading data is outputted from an output terminal 5. At this time, the data by one line is successively read out from the buffer memories 31 to 34, but output terminals (e) are linked with a data bus, and the multiplexing of reading data of the buffer memories 31 to 34 is performed on it. The occupancy amount to be used to control the buffer memories 31 to 34 is outputted from an output terminal 7 with each buffer memory occupancy amount added by an adder 4.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、テレビ信号等の高能率
符号化装置に用いられるエントロピ符号化回路に関する
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an entropy encoding circuit used in a high-efficiency encoding apparatus for television signals and the like.

【0002】0002

【従来の技術】図3に画像の高能率符号化装置の一構成
例を示す。入力端子201 から入力された画像信号は
、AD変換回路202 でPCM信号に変換され、予測
符号化回路203で予測符号化が行われ、可変長符号化
回路204 で可変長符号化される。可変長符号化され
た信号はバッファメモリ205 に書込まれ、伝送イン
タフェース206 で伝送路のインタフェース条件に合
うように処理されて出力端子207 から伝送路に送出
される。バッファメモリ205 は可変長符号化回路2
04 から出力される情報量を平滑化するために用いら
れ、バッファメモリ205 がオーバフローやアンダフ
ローしないようにバッファメモリ205 のバッファメ
モリ占有量によって予測符号化回路203 の量子化特
性や可変長符号化回路204 の符号パターンを変えて
、可変長符号化回路204 から出力される情報量の平
均値が一定になるように制御される。
2. Description of the Related Art FIG. 3 shows an example of the configuration of a high-efficiency image encoding device. An image signal inputted from an input terminal 201 is converted into a PCM signal by an AD conversion circuit 202 , predictively encoded by a predictive encoding circuit 203 , and variable length encoded by a variable length encoding circuit 204 . The variable length coded signal is written into a buffer memory 205, processed by a transmission interface 206 to meet the interface conditions of the transmission path, and sent out from an output terminal 207 to the transmission path. Buffer memory 205 is variable length encoding circuit 2
04 is used to smooth the amount of information output from the predictive encoding circuit 203 and variable length encoding according to the buffer memory occupancy of the buffer memory 205 to prevent the buffer memory 205 from overflowing or underflowing. By changing the code pattern of the circuit 204, the average value of the amount of information output from the variable length encoding circuit 204 is controlled to be constant.

【0003】図3に示す高能率符号化装置で例えばHD
TV信号を符号化する場合に、AD変換回路202 か
ら出力されるPCM信号のデータ速度が非常に早いので
(AD変換時のサンプリング周波数は約74MHz)、
通常、あとの処理は処理速度を下げるために並列処理を
行う。例えば、可変長符号化を4並列処理で行うとする
と、従来は図4に示す構成をとっていた。すなわち、可
変長符号器21〜24で可変長符号化されたデータは、
多重化回路8で多重化され、バッファメモリ31〜34
に書込まれる。このときに、バッファメモリ31〜34
への書込みを74MHz のクロックで行えれば問題な
いが、バッファメモリ31〜34への書込みも可変長符
号器21〜24の処理クロックである74/4MHz 
で行おうとすると、多重化回路8での多重化処理は時間
方向ではなくてビット方向に多重化するしかない。した
がって、可変長符号の最大語長を16ビットとすると、
バッファメモリ31〜34の書込みは1クロック当たり
16×4=64ビットずつ行うことになる。
[0003] For example, in the high-efficiency encoding device shown in FIG.
When encoding a TV signal, the data rate of the PCM signal output from the AD conversion circuit 202 is very fast (the sampling frequency during AD conversion is approximately 74 MHz).
Normally, subsequent processing is performed in parallel to reduce processing speed. For example, if variable length encoding is performed using four parallel processes, the conventional configuration is shown in FIG. 4. That is, the data variable-length encoded by the variable-length encoders 21 to 24 is
Multiplexed by a multiplexing circuit 8 and buffer memories 31 to 34
written to. At this time, the buffer memories 31 to 34
There is no problem if writing to the buffer memories 31 to 34 can be performed using a 74 MHz clock, but writing to the buffer memories 31 to 34 is also performed using a 74/4 MHz clock, which is the processing clock for the variable length encoders 21 to 24.
If this is attempted, the multiplexing process in the multiplexing circuit 8 would have to be multiplexed not in the time direction but in the bit direction. Therefore, if the maximum word length of a variable length code is 16 bits,
Writing to the buffer memories 31 to 34 is performed in units of 16×4=64 bits per clock.

【0004】0004

【発明が解決しようとする課題】したがって、図4に示
す従来構成では、並列処理を行う場合に可変長符号の最
大語長を大きくしたり、並列処理の数を増やそうとする
と、多重化回路やバッファメモリのデータ転送のビット
数が著しく大きくなってハードウェアを実現する上で問
題となっていた。
[Problems to be Solved by the Invention] Therefore, in the conventional configuration shown in FIG. The number of bits for data transfer in the buffer memory has become significantly large, posing a problem in realizing hardware.

【0005】本発明は、このような欠点を除去するもの
で、並列処理の数が増加しても比較的簡素なハードウェ
アで実現できるエントロピ符号化回路を提供することを
目的とする。
SUMMARY OF THE INVENTION The present invention aims to eliminate these drawbacks, and aims to provide an entropy encoding circuit that can be implemented with relatively simple hardware even when the number of parallel processes increases.

【0006】[0006]

【課題を解決するための手段】本発明は、画像入力デー
タの可変長符号化処理を並列に実行してn個の符号化デ
ータを生成する可変長符号器と、この可変長符号器で生
成された符号化データを格納するバッファメモリと、上
記可変長符号器の出力する情報量をこのバッファメモリ
のメモリ占有量に応じて制御する情報量制御信号を生成
する制御手段とを備えたエントロピ符号化回路において
、上記バッファメモリは、上記可変長符号器のそれぞれ
に対応して設けられた上記n個のバッファメモリで構成
され、現在読み出し中のラインの次のラインの先頭デー
タの書き込みアドレスを記憶するアドレス記憶手段およ
びこのアドレス記憶手段の内容を参照して格納された符
号化データをブロックごとに区切って順番に読出すデー
タ読出手段を含み、上記制御手段は、上記バッファメモ
リのそれぞれのバッファメモリ占有量を加算してバッフ
ァメモリ占有量の総量を演算し、この演算値を情報量制
御信号として生成する手段を含むことを特徴とする。
[Means for Solving the Problems] The present invention provides a variable length encoder that performs variable length encoding processing of image input data in parallel to generate n pieces of encoded data, and a an entropy code comprising: a buffer memory for storing encoded data; and a control means for generating an information amount control signal for controlling the amount of information output from the variable length encoder according to the memory occupancy of the buffer memory. In the conversion circuit, the buffer memory is composed of the n buffer memories provided corresponding to each of the variable length encoders, and stores the write address of the first data of the line next to the line currently being read. and a data reading means for dividing the stored encoded data into blocks and sequentially reading out the stored encoded data by referring to the contents of the address storage means, and the control means controls each of the buffer memories. The present invention is characterized in that it includes means for calculating the total amount of buffer memory occupancy by adding up the occupancy amounts, and generating this calculated value as an information amount control signal.

【0007】ここで、上記データ読出手段は、上記アド
レス記憶手段に格納されている書き込みアドレスと現在
読み出し中のアドレスとの一致を検出する比較器と、こ
の比較器が一致を検出するときに現在読み出し中のライ
ンの内容を一時記憶するバッファメモリからのデータ出
力を禁止し、次のラインの内容を記憶するバッファメモ
リのデータ読出手段を起動しかつデータ出力禁止状態を
解除する回路手段を備えることが望ましい。
Here, the data reading means includes a comparator for detecting a match between the write address stored in the address storage means and the address currently being read; The present invention includes circuit means for inhibiting data output from a buffer memory that temporarily stores the contents of the line being read, activates data reading means of the buffer memory that stores the contents of the next line, and cancels the data output inhibited state. is desirable.

【0008】[0008]

【作用】現在読み出し中のラインの次のラインの先頭デ
ータの書き込みアドレスと現在読み出し中のアドレスと
の一致を検出すると現在読み出し中のラインの内容を一
時記憶するバッファメモリからのデータ出力を禁止し、
次のラインの内容を記憶するバッファメモリのデータ読
出手段を起動しかつデータ出力禁止状態を解除する。こ
れにより可変長符号器のそれぞれに対応して設けられた
バッファメモリに格納された符号化データをブロックご
とに区切って順番に読出す。
[Operation] When a match is detected between the write address of the first data of the line next to the line currently being read and the address currently being read, data output from the buffer memory that temporarily stores the contents of the line currently being read is prohibited. ,
The data reading means of the buffer memory that stores the contents of the next line is activated and the data output inhibited state is released. As a result, the encoded data stored in the buffer memory provided corresponding to each variable length encoder is divided into blocks and sequentially read out.

【0009】[0009]

【実施例】以下、本発明の一実施例について図面を参照
して説明する。図1はこの実施例の構成を示すブロック
図である。図1で、入力端子11〜14は入力データが
入力される端子で4個の可変長符号器21〜24に接続
されている。可変長符号器21〜24の2つの出力はバ
ッファメモリ31〜34のそれぞれの2つの入力端a、
bに接続されている。バッファメモリ31〜34の制御
信号が入出力される2つの端子c、dは相互に接続され
、バッファメモリ31の端子cがバッファメモリ32の
端子dに、バッファメモリ32の端子cがバッファメモ
リ33の端子dに、バッファメモリ33の端子cがバッ
ファメモリ34の端子dに、バッファメモリ34の端子
cがバッファメモリ31の端子dにそれぞれ接続されて
いる。バッファメモリ31〜34の読出しデータが出力
される出力端子eは互いに接続されて出力端子5にも接
続されている。入力端子6は伝送インタフェース側から
送られてくるバッファメモリの読出しクロックが入力さ
れる端子で、バッファメモリ31〜34のすべての入力
端子fに接続されている。バッファメモリ31〜34の
バッファメモリ占有量を出力する出力端子gはそれぞれ
加算器4の4つの入力に接続され、加算器4の出力は出
力端子7に接続されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of this embodiment. In FIG. 1, input terminals 11-14 are terminals into which input data is input, and are connected to four variable length encoders 21-24. The two outputs of the variable length encoders 21-24 are connected to two input terminals a of each of the buffer memories 31-34,
connected to b. The two terminals c and d through which control signals of the buffer memories 31 to 34 are input and output are connected to each other, and the terminal c of the buffer memory 31 is connected to the terminal d of the buffer memory 32, and the terminal c of the buffer memory 32 is connected to the buffer memory 33. The terminal c of the buffer memory 33 is connected to the terminal d of the buffer memory 34, and the terminal c of the buffer memory 34 is connected to the terminal d of the buffer memory 31. Output terminals e to which read data from the buffer memories 31 to 34 are output are connected to each other and also to the output terminal 5. The input terminal 6 is a terminal to which a buffer memory read clock sent from the transmission interface side is input, and is connected to all input terminals f of the buffer memories 31 to 34. Output terminals g for outputting the buffer memory occupancies of the buffer memories 31 to 34 are respectively connected to four inputs of an adder 4, and the output of the adder 4 is connected to an output terminal 7.

【0010】図2はバッファメモリ31〜34の一構成
例で、入出力端子a〜gはバッファメモリ31〜34の
入出力端子a〜gに対応している。図2で、入力端子a
は可変長符号化データが入力される端子で、メモリ10
1 の入力に接続され、メモリ101 の出力はライン
ドライバ102 を介して出力端子eに接続され、ここ
からバッファメモリ31〜34の読出しデータが出力さ
れる。入力端子bはバッファメモリ31〜34の書込み
クロックが入力される端子で、メモリ101 と書込み
アドレスカウンタ103 のクロック入力に接続れてい
る。書込みアドレスカウンタ103 の出力はメモリ1
01 、メモリ105 および減算器106 に接続さ
れている。入力端子fはバッファメモリ31〜34の読
出しクロックが入力される端子で、メモリ101 と読
出しアドレスカウンタ104 のクロック入力に接続さ
れている。 読出しアドレスカウンタ104 の出力はメモリ101
 、減算器106 および比較器107 の一方の入力
に接続され、比較器107のもう一方の入力にはメモリ
105 の出力が接続されている。比較器107 の出
力はラインドライバ102 の制御信号入力、読出しア
ドレスカウンタ104 の制御信号入力および出力端子
cに接続されている。入力端子dはメモリ105 の制
御信号が入力される端子で、メモリ105 の制御信号
入力に接続されている。減算器106 の出力は出力端
子gに接続されている。
FIG. 2 shows an example of the structure of the buffer memories 31-34, and the input/output terminals a-g correspond to the input/output terminals a-g of the buffer memories 31-34. In Figure 2, input terminal a
is a terminal to which variable length encoded data is input, and the memory 10
The output of the memory 101 is connected to the output terminal e via the line driver 102, from which read data from the buffer memories 31 to 34 is output. Input terminal b is a terminal to which the write clocks of the buffer memories 31 to 34 are input, and is connected to the clock inputs of the memory 101 and the write address counter 103. The output of write address counter 103 is memory 1
01 , the memory 105 and the subtracter 106 . The input terminal f is a terminal to which the read clock of the buffer memories 31 to 34 is input, and is connected to the clock input of the memory 101 and the read address counter 104. The output of the read address counter 104 is sent to the memory 101.
, a subtracter 106 and a comparator 107, and the other input of the comparator 107 is connected to the output of the memory 105. The output of the comparator 107 is connected to the control signal input of the line driver 102, the control signal input of the read address counter 104, and the output terminal c. The input terminal d is a terminal to which a control signal for the memory 105 is input, and is connected to the control signal input of the memory 105. The output of subtracter 106 is connected to output terminal g.

【0011】すなわち、この実施例は、図1および図2
に示すように、画像入力データの可変長符号化処理を並
列に実行して4個の符号化データを生成する可変長符号
器21〜24と、この可変長符号器21〜24で生成さ
れた符号化データを格納するバッファメモリ31〜34
と、可変長符号器21〜24の出力する情報量をこのバ
ッファメモリ31〜34のメモリ占有量に応じて制御す
る情報量制御信号を生成する制御手段とを備え、ここで
、バッファメモリ31〜34は、上記可変長符号器21
〜24のそれぞれに対応して設けられた4個のバッファ
メモリ31〜34で構成され、現在読み出し中のライン
の次のラインの先頭データの書き込みアドレスを記憶す
るアドレス記憶手段であるメモリ105 およびこのア
ドレス記憶手段の内容を参照して格納された符号化デー
タをブロックごとに区切って順番に読出すデータ読出手
段を含み、上記制御手段は、バッファメモリ31〜34
のそれぞれのバッファメモリ占有量を加算してバッファ
メモリ占有量の総量を演算し、この演算値を情報量制御
信号として生成する手段である加算器4を含む。ここで
、上記データ読出手段は、上記アドレス記憶手段に格納
されている書き込みアドレスと現在読み出し中のアドレ
スとの一致を検出する比較器107 と、この比較器1
07 が一致を検出するときに現在読み出し中のライン
の内容を一時記憶するバッファメモリ31〜34からの
データ出力を禁止し、次のラインの内容を記憶するバッ
ファメモリ31〜34のデータ読出手段を起動しかつデ
ータ出力禁止状態を解除する回路手段であるラインドラ
イバ102 、入力端子dおよび出力端子cを備える。
That is, in this embodiment, FIGS. 1 and 2
As shown in FIG. Buffer memories 31 to 34 for storing encoded data
and a control means for generating an information amount control signal for controlling the amount of information output from the variable length encoders 21 to 24 according to the memory occupancy of the buffer memories 31 to 34. 34 is the variable length encoder 21
The memory 105 is an address storage means for storing the write address of the first data of the line next to the line currently being read. The control means includes data reading means for dividing the stored encoded data into blocks and sequentially reading out the stored encoded data by referring to the contents of the address storage means;
includes an adder 4 which is a means for calculating the total amount of buffer memory occupancy by adding up the respective buffer memory occupancies, and generating this calculated value as an information amount control signal. Here, the data reading means includes a comparator 107 for detecting a match between the write address stored in the address storage means and the address currently being read;
07, when detecting a match, prohibits data output from the buffer memories 31 to 34 that temporarily store the contents of the line currently being read, and controls the data reading means of the buffer memories 31 to 34 that stores the contents of the next line. The line driver 102 is a circuit means for activating and canceling the data output inhibited state, and includes an input terminal d and an output terminal c.

【0012】次に、この実施例の動作をHDTV信号を
予測符号化した信号を4並列演算で可変長符号化する場
合につき説明する。並列演算の単位は1ラインとする。 図1で、入力端子11〜14からそれぞれ1ライン分ず
つの予測符号化データが入力され、可変長符号器21〜
24で可変長符号化される。符号化データとバッファメ
モリ31〜34への書込みクロックが各可変長符号器か
ら出力され、バッファメモリ31〜34に入力される。 バッファメモリ31〜34からの読出しは、入力端子6
から入力される読出しクロックによって行われ、読出し
データは出力端子5から出力される。このときに、1ラ
イン分ずつのデータがバッファメモリ31〜34から順
番に読出されるが、バッファメモリ31〜34の出力端
子eどうしはデータバスで結ばれ、このデータバス上で
バッファメモリ31〜34の読出しデータの多重化が行
われる。バッファメモリ31〜34の制御に使われるバ
ッファメモリ占有量は、バッファメモリ31〜34の各
バッファメモリの占有量を加算器4で加算して出力端子
7から出力される。この信号を使って前段の予測符号化
部の量子化特性や可変長符号器21〜24の符号パター
ン等を変えることにより、バッファメモリ31〜34が
オーバフローやアンダフローしないように制御すること
ができる。
Next, the operation of this embodiment will be explained in the case where a signal obtained by predictively encoding an HDTV signal is variable-length encoded by four parallel operations. The unit of parallel operation is one line. In FIG. 1, predictive encoded data for one line is input from input terminals 11 to 14, respectively, and variable length encoders 21 to
24, variable length encoding is performed. Encoded data and write clocks to the buffer memories 31-34 are output from each variable length encoder and input to the buffer memories 31-34. Reading from the buffer memories 31 to 34 is performed using the input terminal 6.
The read data is output from the output terminal 5. At this time, data for each line is sequentially read out from the buffer memories 31 to 34, but the output terminals e of the buffer memories 31 to 34 are connected to each other by a data bus, and the buffer memories 31 to 34 are connected on this data bus. 34 read data are multiplexed. The buffer memory occupancy used for controlling the buffer memories 31 to 34 is outputted from the output terminal 7 by adding the occupancy of each of the buffer memories 31 to 34 by an adder 4. By using this signal to change the quantization characteristics of the predictive coding section in the previous stage, the code patterns of the variable length encoders 21 to 24, etc., it is possible to control the buffer memories 31 to 34 so that they do not overflow or underflow. .

【0013】次に、バッファメモリ31〜34の各バッ
ファメモリでの書込みと読出し動作について説明する。 図2で、入力端子aから入力された符号化データは入力
端子bから入力された書込みクロックによってメモリ1
01 に書込まれる。このときに、書込みアドレスは書
込みアドレスカウンタ103 で作られるが、可変長符
号の区切りである1ラインごとにその先頭データの書込
むアドレスをメモリ105 に記憶しておく。バッファ
メモリ31〜34のデータは、入力端子fから入力され
る読出しクロックによって読出される。今、バッファメ
モリ31の中のメモリ101 からあるラインのデータ
が読出されているとする。メモリ105 には、メモリ
101 から現在読出されているラインの次のラインの
先頭データの書込みアドレスが出力されていて比較器1
07 で読出しアドレスカウンタ104 の値がメモリ
105 の出力値と一致しているかどうかをみている。 読出しアドレスカウンタ104 の値がメモリ105 
の出力値と一致すると比較器107 から出力される判
定信号が「H」レベルになり、この信号によってライン
ドライバ102 の出力がハイ・インピーダンス状態に
なり、読出しアドレスカウンタ104 のカウンタアッ
プが停止し、この状態が入力端子dに「H」レベル信号
が入力されるまで保持される。また、比較器107 の
判定信号は出力端子cから出力され、バッファメモリ3
2の入力端子dに入力される。バッファメモリ占有量は
、書込みアドレスカウンタ103 の値から読み出しア
ドレスカウンタ104 の値を減算器106 で減算さ
れて出力端子gから出力される。
Next, write and read operations in each of the buffer memories 31 to 34 will be explained. In FIG. 2, encoded data input from input terminal a is input to memory 1 by a write clock input from input terminal b.
01 is written. At this time, a write address is generated by a write address counter 103, and the address to which the first data is written is stored in the memory 105 for each line that is the delimiter of the variable length code. Data in the buffer memories 31 to 34 is read out by a read clock input from the input terminal f. Suppose now that a certain line of data is being read from the memory 101 in the buffer memory 31. The memory 105 outputs the write address of the first data of the line next to the line currently being read from the memory 101, and the comparator 1
At step 07, it is checked whether the value of the read address counter 104 matches the output value of the memory 105. The value of the read address counter 104 is stored in the memory 105.
When the output value matches the output value of the comparator 107, the determination signal outputted from the comparator 107 becomes "H" level, and this signal causes the output of the line driver 102 to go into a high impedance state, and the counter up of the read address counter 104 is stopped. This state is maintained until an "H" level signal is input to input terminal d. Further, the judgment signal of the comparator 107 is output from the output terminal c, and the judgment signal of the comparator 107 is outputted from the output terminal c.
It is input to input terminal d of No. 2. The buffer memory occupancy is outputted from the output terminal g by subtracting the value of the read address counter 104 from the value of the write address counter 103 by a subtractor 106.

【0014】バッファメモリ32では、バッファメモリ
31からデータが読出されている間はメモリ105 と
読出しアドレスカウンタ104 の値が一致した状態に
なっていて、ラインドライバ102 はハイ・インピー
ダンス状態、読出しアドレスカウンタ104 は停止し
ている。バッファメモリ31が1ライン分のデータを読
出し終えると、前述のようにバッファメモリ31の出力
端子cから「H」レベルの信号がバッファメモリ32の
入力端子dに入力され、メモリ105 の出力データが
1つ更新され、1ライン先の先頭データの書込みアドレ
スのアドレスが出力される。すると読出しアドレスカウ
ンタ104 の値とメモリ105 の出力値とが一致し
なくなるので比較器107 の出力が「L」レベルにな
り、読出しアドレスカウンタ104 が入力端子fから
入力される読出しクロックによってカウンタアップされ
るとともに、ラインドライバ102 がハイ・インピー
ダンス状態から復帰し、出力端子eにメモリ101 の
読出しデータが出力されるようになる。以下同様に、バ
ッファメモリ32から1ライン分の読出しが終わると、
バッファメモリ33から読出しが行われ、バッファメモ
リ34、31と順番に読出されていく。
In the buffer memory 32, while data is being read from the buffer memory 31, the values of the memory 105 and the read address counter 104 are in the same state, and the line driver 102 is in a high impedance state and the read address counter 104 is stopped. When the buffer memory 31 finishes reading one line of data, the "H" level signal is input from the output terminal c of the buffer memory 31 to the input terminal d of the buffer memory 32 as described above, and the output data of the memory 105 is The address is updated by one, and the address of the write address of the first data one line ahead is output. Then, since the value of the read address counter 104 and the output value of the memory 105 do not match, the output of the comparator 107 becomes "L" level, and the read address counter 104 is counted up by the read clock input from the input terminal f. At the same time, the line driver 102 returns from the high impedance state, and the read data from the memory 101 is output to the output terminal e. Similarly, when one line has been read from the buffer memory 32,
Reading is performed from the buffer memory 33, and then sequentially from the buffer memories 34 and 31.

【0015】図5にバッファメモリ31〜34への書込
みタイミングを示す。図5で(1) 〜(4)はそれぞ
れバッファメモリ31〜34の書込みタイミングを示し
、■〜■はHDTV信号のライン番号を示す。ここでは
第1〜4ラインの符号化データをバッファメモリ31〜
34にそれぞれ書込む場合を示している。斜線部分は書
込み停止区間である。TWは書込み周期で、ここでは4
ライン分の時間となる。すなわち、各可変長符号器は4
ライン分の時間を使って1ライン分のデータを可変長符
号化してバッファメモリ31〜34に書込んでいる。図
6はバッファメモリ31〜34から読出されたデータが
データバス上で多重化されて出力端子5から出力される
ときのタイミングを示す。 TRn(n=1、2、…)は4ライン分のデータを読出
す時間である。
FIG. 5 shows the timing of writing to the buffer memories 31-34. In FIG. 5, (1) to (4) indicate the write timings of the buffer memories 31 to 34, respectively, and ■ to ■ indicate the line numbers of the HDTV signal. Here, the encoded data of the first to fourth lines are stored in buffer memories 31 to 31.
34 respectively. The shaded area is the write stop section. TW is the write cycle, here 4
This is the time for the line. That is, each variable length encoder has 4
One line's worth of data is variable-length encoded using the time for one line and written into the buffer memories 31-34. FIG. 6 shows the timing when data read from the buffer memories 31 to 34 are multiplexed on the data bus and output from the output terminal 5. TRn (n=1, 2, . . . ) is the time to read data for four lines.

【0016】可変長符号の最大符号長が16ビットでバ
ッファメモリ31〜34への書込み・読出しデータが1
6ビット/サンプルとすると、バッファメモリ31〜3
4がオーバフローやアンダフローしないためにはTRn
の平均値がTWとならなければならないが、それはあく
まで平均値であって、TRnは最大TW×4(4ライン
分のデータがすべて16ビットの可変長符号に変換され
た場合) となる。したがって、図4に示した従来の構
成では可変長符号器21〜24の出力データを図6のよ
うに多重化してバッファメモリ31〜34に書込もうと
すると、64ビット/サンプルで書込まなければならな
いが、図1に示す構成では16ビット/サンプルでバッ
ファメモリ31〜34への書込み・読出しを行うことが
できる。
The maximum code length of the variable length code is 16 bits, and the data written to and read from the buffer memories 31 to 34 is 1.
Assuming 6 bits/sample, buffer memory 31 to 3
In order to prevent 4 from overflowing or underflowing, TRn
The average value of TW must be the average value, and TRn is the maximum TW×4 (when all 4 lines of data are converted to 16-bit variable length codes). Therefore, in the conventional configuration shown in FIG. 4, if the output data of the variable length encoders 21 to 24 is to be multiplexed and written to the buffer memories 31 to 34 as shown in FIG. 6, it must be written at 64 bits/sample. However, in the configuration shown in FIG. 1, writing to and reading from the buffer memories 31 to 34 can be performed at 16 bits/sample.

【0017】[0017]

【発明の効果】本発明は、以上説明したように、処理速
度を下げるために可変長符号化を並列処理で行った場合
に、バッファメモリの書込み・読出しの1サンプル当た
りのデータビット数を増やさずに、しかも、バッファメ
モリの書込み速度を並列処理の速度で行える効果がある
[Effects of the Invention] As explained above, the present invention increases the number of data bits per sample for writing and reading from a buffer memory when variable length encoding is performed in parallel to reduce processing speed. Moreover, there is an effect that the writing speed of the buffer memory can be performed at the speed of parallel processing.

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

【図1】  本発明実施例の構成を示すブロック構成図
FIG. 1 is a block configuration diagram showing the configuration of an embodiment of the present invention.

【図2】  図1のバッファメモリの構成を示すブロッ
ク構成図。
FIG. 2 is a block configuration diagram showing the configuration of the buffer memory in FIG. 1.

【図3】  画像の高能率符号化装置の構成を示すブロ
ック構成図。
FIG. 3 is a block configuration diagram showing the configuration of a high-efficiency image encoding device.

【図4】  従来例の構成を示すブロック構成図。FIG. 4 is a block configuration diagram showing the configuration of a conventional example.

【図5】  本発明実施例の動作を示すタイムチャート
FIG. 5 is a time chart showing the operation of the embodiment of the present invention.

【図6】  本発明実施例の動作を示すタイムチャート
FIG. 6 is a time chart showing the operation of the embodiment of the present invention.

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

4    加算器 5、7    出力端子 6    入力端子 8    多重化回路 11〜14    入力端子 21〜24    可変長符号器 31〜34    バッファメモリ 101 、105     メモリ 102     ラインドライバ 103     書込みアドレスカウンタ104   
  読出しアドレスカウンタ106     減算器 107     比較器 201     入力端子 202     AD変換回路 203     予測符号化回路 204     可変長符号化回路 205     バッファメモリ 206     伝送インタフェース 207     出力端子 a、b、d、f    入力端子 c、e、g    出力端子
4 Adders 5, 7 Output terminal 6 Input terminal 8 Multiplexing circuits 11-14 Input terminals 21-24 Variable length encoders 31-34 Buffer memories 101, 105 Memory 102 Line driver 103 Write address counter 104
Read address counter 106 Subtractor 107 Comparator 201 Input terminal 202 AD conversion circuit 203 Predictive encoding circuit 204 Variable length encoding circuit 205 Buffer memory 206 Transmission interface 207 Output terminals a, b, d, f Input terminals c, e, g Output terminal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  画像入力データの可変長符号化処理を
並列に実行してn個の符号化データを生成する可変長符
号器と、この可変長符号器で生成された符号化データを
格納するバッファメモリと、上記可変長符号器の出力す
る情報量をこのバッファメモリのメモリ占有量に応じて
制御する情報量制御信号を生成する制御手段とを備えた
エントロピ符号化回路において、上記バッファメモリは
、上記可変長符号器のそれぞれに対応して設けられた上
記n個のバッファメモリで構成され、現在読み出し中の
ラインの次のラインの先頭データの書き込みアドレスを
記憶するアドレス記憶手段およびこのアドレス記憶手段
の内容を参照して格納された符号化データをブロックご
とに区切って順番に読出すデータ読出手段を含み、上記
制御手段は、上記バッファメモリのそれぞれのバッファ
メモリ占有量を加算してバッファメモリ占有量の総量を
演算し、この演算値を情報量制御信号として生成する手
段を含むことを特徴とするエントロピ符号化回路。
Claim 1: A variable length encoder that performs variable length encoding processing of image input data in parallel to generate n pieces of encoded data, and stores the encoded data generated by the variable length encoder. In an entropy encoding circuit comprising a buffer memory and a control means for generating an information amount control signal for controlling the amount of information output by the variable length encoder according to the memory occupancy of the buffer memory, the buffer memory comprises: , an address storage means comprising the n buffer memories provided corresponding to each of the variable length encoders, and storing a write address of the first data of the line next to the line currently being read; and this address storage. The control means includes data reading means for dividing the stored encoded data into blocks and sequentially reading out the stored encoded data by referring to the contents of the means, and the control means adds the occupied amounts of the buffer memories of each of the buffer memories to An entropy encoding circuit comprising means for calculating the total amount of occupancy and generating this calculated value as an information amount control signal.
【請求項2】  上記データ読出手段は、上記アドレス
記憶手段に格納されている書き込みアドレスと現在読み
出し中のアドレスとの一致を検出する比較器と、この比
較器が一致を検出するときに現在読み出し中のラインの
内容を一時記憶するバッファメモリからのデータ出力を
禁止し、次のラインの内容を記憶するバッファメモリの
データ読出手段を起動しかつデータ出力禁止状態を解除
する回路手段を備えた請求項1記載のエントロピ符号化
回路。
2. The data reading means includes a comparator for detecting a match between the write address stored in the address storage means and the address currently being read; A claim comprising circuit means for inhibiting data output from a buffer memory that temporarily stores the contents of the next line, activating data reading means of the buffer memory that stores the contents of the next line, and canceling the data output inhibited state. The entropy encoding circuit according to item 1.
JP3093554A 1991-03-29 1991-03-29 Entropy encoding circuit Pending JPH04302598A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3093554A JPH04302598A (en) 1991-03-29 1991-03-29 Entropy encoding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3093554A JPH04302598A (en) 1991-03-29 1991-03-29 Entropy encoding circuit

Publications (1)

Publication Number Publication Date
JPH04302598A true JPH04302598A (en) 1992-10-26

Family

ID=14085475

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3093554A Pending JPH04302598A (en) 1991-03-29 1991-03-29 Entropy encoding circuit

Country Status (1)

Country Link
JP (1) JPH04302598A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998032252A1 (en) * 1997-01-21 1998-07-23 Sony Corporation Coded signal transmission method and device
JP2006157678A (en) * 2004-11-30 2006-06-15 Canon Inc Variable length coding apparatus and variable length coding method
JP2011029817A (en) * 2009-07-23 2011-02-10 Toshiba Corp Compression/decompression apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998032252A1 (en) * 1997-01-21 1998-07-23 Sony Corporation Coded signal transmission method and device
US6504850B1 (en) 1997-01-21 2003-01-07 Sony Corporation Encoded signal transmission method and encoded signal transmission apparatus
JP2006157678A (en) * 2004-11-30 2006-06-15 Canon Inc Variable length coding apparatus and variable length coding method
JP2011029817A (en) * 2009-07-23 2011-02-10 Toshiba Corp Compression/decompression apparatus

Similar Documents

Publication Publication Date Title
EP0453113B1 (en) Coding and decoding apparatus of variable length date
JP2925157B2 (en) Data storage device
US6553448B1 (en) Method for unit distance encoding of asynchronous pointers for non-power-of-two sized buffers
JP3136796B2 (en) Variable length code decoder
EP0710029B1 (en) Signal processor for encoding and decoding
AU642547B2 (en) First-in first-out buffer
US4744085A (en) Data processing device
US5594743A (en) Fifo buffer system having an error detection and correction device
JPH04302598A (en) Entropy encoding circuit
US6008850A (en) Moving picture decoding device
US4982286A (en) Video signal processing device performing freezing and frame synchronization functions
JP2963269B2 (en) Motion compensation prediction device
US5481737A (en) Image data quantizing circuit with a memory for storing unquantized and quantized image data
JPH09247466A (en) Encoding device
JPS6016772B2 (en) Signal transmission method
US4719451A (en) Predictive encoding
JPH05219491A (en) Encoder
US5371546A (en) LSI encoding device with pixel data blocking and vertical decimating circuits
US5361066A (en) Data processing device using data correlation
US5479165A (en) Two-dimensional coding apparatus
JP3270665B2 (en) Encoding / decoding apparatus and method
JPH01222524A (en) Coding device
JP3336537B2 (en) Encoding device, decoding device, encoding / decoding device, and arithmetic encoding device
JPH0152955B2 (en)
JP3246096B2 (en) Self-diagnosis device for digital equipment