JPH05300486A - Variable length encoding and decoding circuit - Google Patents

Variable length encoding and decoding circuit

Info

Publication number
JPH05300486A
JPH05300486A JP9924492A JP9924492A JPH05300486A JP H05300486 A JPH05300486 A JP H05300486A JP 9924492 A JP9924492 A JP 9924492A JP 9924492 A JP9924492 A JP 9924492A JP H05300486 A JPH05300486 A JP H05300486A
Authority
JP
Japan
Prior art keywords
circuit
data
output
variable
variable length
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
JP9924492A
Other languages
Japanese (ja)
Inventor
Masayuki Okajima
雅之 岡島
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
Original Assignee
NEC Corp
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 filed Critical NEC Corp
Priority to JP9924492A priority Critical patent/JPH05300486A/en
Publication of JPH05300486A publication Critical patent/JPH05300486A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE:To reduce the memory circuit required for a parallel processing by performing a parallel processing by a picture element unit in the variable length encoding and decoding circuit in the encoding of a TV signal. CONSTITUTION:Inputted picture data is distributed to variable length encoders 4 to 7 by a picture element unit in a separation circuit 3 and a variable length encoding processing is performed for the data by a parallel processing. After encoded data is written in memory circuits 8 to 11, each encoded data is multiplexed by a word unit in a multiplex circuit 12. At the time, the number of word of each encoded data to be outputted from the variable length encoders 4 to 7 is also multiplexed with the encoded data so as to normally separate the data at the time of decoding even if the data are multiplexed by a word unit.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はテレビジョン信号の高能
率符号化装置に用いられる可変長符号化回路及び可変長
復号化回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a variable length coding circuit and a variable length decoding circuit used in a high efficiency coding apparatus for television signals.

【0002】[0002]

【従来の技術】テレビジョン信号の高能率符号化装置に
用いる可変長符号化回路において、入力データのデータ
速度が速くて可変長符号化の処理速度が間に合わない場
合には、並列処理を行うことがある。その場合、可変長
符号は復号化時に実際に復号を行ってみないとデータの
切れ目が分からないために、単純に画素ごとに並列処理
を行うことができない。
2. Description of the Related Art In a variable-length coding circuit used in a high-efficiency coding apparatus for television signals, parallel processing is performed when the data speed of input data is high and the processing speed of variable-length coding is too late. There is. In that case, the variable-length code cannot simply perform parallel processing on a pixel-by-pixel basis because the data break cannot be recognized unless decoding is actually performed at the time of decoding.

【0003】符号化時に、例えば第1画素と第2画素の
データを並列処理で可変長符号化して多重化すると、第
2画素の符号化データがどこから始まるかは、第1画素
の符号化データを先に復号化してみないと分からないた
めに、第1画素と第2画素を同時に並列処理で復号する
ことができない。
At the time of encoding, for example, if the data of the first pixel and the second pixel are variable length coded by parallel processing and multiplexed, it is determined from where the encoded data of the second pixel starts. The first pixel and the second pixel cannot be simultaneously decoded by parallel processing, because it is not known without first decoding.

【0004】そこで、従来は復号化時に容易にデータの
区切りがわかる画像フレーム単位に並列処理を行ってい
た。
Therefore, conventionally, parallel processing has been performed for each image frame in which the delimiter of data can be easily recognized at the time of decoding.

【0005】図2は従来の可変長符号化回路の例を示す
ブロック図である。ここでは、8ライン単位の4並列処
理で可変長符号化を行う場合について考える。図2にお
いて、入力端子1から入力された画像データは分離回路
13で8ライン毎に分けられてメモリ回路14〜17に
入力される。例えば、第1ライン〜第8ラインのデータ
がメモリ回路14に、第9ライン〜第16ラインのデー
タがメモリ回路15に入力される。32ライン分のデー
タが8ラインづつメモリ回路14〜17に書き込まれた
あと、書き込み速度の1/4の速度で読み出しが行わ
れ、可変長符号器18〜21で8ラインづつの4並列処
理で可変長符号化が行われる。可変長符号器18〜21
からは、それぞれ8ライン分の符号化データが出力さ
れ、メモリ回路22〜25に書き込まれる。多重化回路
26では、メモリ回路22〜25から8ラインづつ順番
に読み出した符号化データを多重化して出力端子2から
出力する。
FIG. 2 is a block diagram showing an example of a conventional variable length coding circuit. Here, consider a case where variable length coding is performed by four parallel processes in units of 8 lines. In FIG. 2, the image data input from the input terminal 1 is divided into 8 lines by the separation circuit 13 and is input to the memory circuits 14 to 17. For example, the data of the first line to the eighth line is input to the memory circuit 14, and the data of the ninth line to the sixteenth line is input to the memory circuit 15. After 32 lines of data are written in the memory circuits 14 to 17 by 8 lines, reading is performed at a speed of 1/4 of the writing speed, and the variable length encoders 18 to 21 perform 4 parallel processing of 8 lines by 8 lines. Variable length coding is performed. Variable length encoders 18-21
From each of them, the coded data of 8 lines are output and written in the memory circuits 22 to 25. The multiplexing circuit 26 multiplexes the coded data read from the memory circuits 22 to 25 in order of eight lines and outputs the multiplexed data from the output terminal 2.

【0006】他方、テレビジョン信号の高能率符号化装
置に用いる可変長復号化回路において、入力データのデ
ータ速度が速くて可変長復号化の処理速度が間に合わな
い場合には、並列処理を行うことがある。その場合、可
変長符号は復号化時に実際に復号を行ってみないとデー
タの切れ目が分からないために、単純に画素ごとに並列
処理を行うことができない。そこで、従来はデータの区
切りが容易にわかる画像フレーム単位に並列処理をおこ
なっていた。
On the other hand, in the variable length decoding circuit used in the high-efficiency coding apparatus for television signals, if the data speed of the input data is high and the processing speed of the variable length decoding cannot be met, parallel processing is performed. There is. In that case, the variable-length code cannot simply perform parallel processing on a pixel-by-pixel basis because the data break cannot be recognized unless decoding is actually performed at the time of decoding. Therefore, in the past, parallel processing was performed in image frame units in which data delimiters can be easily identified.

【0007】図6は従来における可変長復号化回路の例
を示すブロック図である。ここでは叙上の符号化回路の
場合と同様に8ライン単位で画像フレームが構成されて
いるとして、8ライン単位の4並列処理で可変長復号化
を行う場合を考える。図6において、入力端子41から
入力された可変長符号化データは、分離回路57で画像
フレームを基に8ライン単位に分けられ、メモリ回路5
8〜61に入力される。例えば、第1ライン〜第8ライ
ンのデータがメモリ回路58に、第9ライン〜第16ラ
インのデータがメモリ回路59に入力される。32ライ
ン分のデータが8ラインづつメモリ回路58〜61に書
き込まれたあと、書き込み速度の1/4の速度で読み出
しが行われ、可変長復号器62〜65で8ラインづつ4
並列処理で可変長復号が行われる。可変長復号器62〜
65からは、それぞれ8ライン分の復号化されたデータ
が出力され、メモリ回路66〜69に書き込まれる。多
重化回路70では、メモリ回路66〜69から読み出し
たデータを8ラインづつ順番に多重化して出力端子6か
ら出力する。
FIG. 6 is a block diagram showing an example of a conventional variable length decoding circuit. Here, it is assumed that the image frame is configured in units of 8 lines as in the case of the above encoding circuit, and the case where variable length decoding is performed by 4 parallel processing in units of 8 lines. In FIG. 6, the variable length coded data input from the input terminal 41 is divided into 8 line units by the separation circuit 57 based on the image frame, and the memory circuit 5
8 to 61 are input. For example, the data of the first line to the eighth line is input to the memory circuit 58, and the data of the ninth line to the sixteenth line is input to the memory circuit 59. After 32 lines of data are written in the memory circuits 58 to 61 by 8 lines, reading is performed at a speed of 1/4 of the writing speed, and the variable length decoders 62 to 65 read 8 lines by 8 lines.
Variable length decoding is performed by parallel processing. Variable length decoder 62-
Decoded data for 8 lines is output from each of 65 and written in the memory circuits 66 to 69. In the multiplexing circuit 70, the data read from the memory circuits 66 to 69 are sequentially multiplexed every eight lines and output from the output terminal 6.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、図2に
示した従来の可変長符号化回路では並列処理するデータ
の単位が大きいために、メモリ回路14〜17に大きな
メモリ容量が必要となり、可変長符号化回路の入出力間
の遅延が大きくなることと、回路規模が大きくなるとい
う欠点があった。
However, in the conventional variable-length coding circuit shown in FIG. 2, since the unit of data to be processed in parallel is large, a large memory capacity is required for the memory circuits 14 to 17, and the variable-length coding circuit is required. There are drawbacks that the delay between the input and output of the encoding circuit becomes large and the circuit scale becomes large.

【0009】他方図6に示した従来の可変長復号化回路
においても並列処理するデータの単位が大きいために、
メモリ回路66〜69に大きなメモリ容量が必要とな
り、可変長復号化回路の入出力間の遅延が大きくなるこ
とと、回路規模が大きくなるという欠点があった。
On the other hand, even in the conventional variable length decoding circuit shown in FIG. 6, since the unit of data to be processed in parallel is large,
Since the memory circuits 66 to 69 require a large memory capacity, there is a drawback that the delay between the input and output of the variable length decoding circuit becomes large and the circuit scale becomes large.

【0010】本発明は従来の上記実情に鑑みてなされた
ものであり、従って本発明の目的は、従来の技術に内在
する上記諸欠点を解消することを可能とした新規な可変
長符号化、復号化回路を提供することにある。
The present invention has been made in view of the above-mentioned conventional circumstances. Therefore, the object of the present invention is to provide a novel variable-length coding capable of eliminating the above-mentioned drawbacks inherent in the prior art, It is to provide a decoding circuit.

【0011】[0011]

【課題を解決するための手段】上記目的を達成する為
に、本発明に係る可変長符号化回路は、入力された画像
データを画素単位にn個のデータ列に振り分ける分離回
路と、該分離回路から出力されるn個のデータ列をそれ
ぞれ可変長符号化して符号化データとそのワード数情報
を出力するn個の可変長符号器と、該可変長符号器から
出力される符号化データを記憶するn個のメモリ回路
と、該メモリ回路から出力されるn個のデータ列をワー
ド単位に交互に並べ前記可変長符号器から出力されるワ
ード数情報と多重化すると共に前記n個のメモリ回路に
対して読み出しクロックを出力する多重化回路とを備え
て構成される。
In order to achieve the above object, a variable length coding circuit according to the present invention includes a separation circuit for distributing input image data into n data strings in pixel units, and the separation circuit. N variable length encoders for variable length encoding each of n data strings output from the circuit to output encoded data and word number information thereof, and encoded data output from the variable length encoders. N memory circuits to be stored, and n data strings output from the memory circuits are alternately arranged in word units and multiplexed with the word number information output from the variable length encoder, and the n memory And a multiplexing circuit that outputs a read clock to the circuit.

【0012】また、本発明に係る可変長復号化回路は、
画像信号を画素単位にn個のグループに分けて可変長符
号化し符号化データのワード毎に交互に多重化された符
号化データに対して多重化されているn個の符号化デー
タそれぞれに対するワード数情報を基にn個の符号化デ
ータ列に分離してクロック信号と共に出力する分離回路
と、該分離回路から出力されるn個の符号化データ列を
前記クロック信号を用いて書き込むn個のメモリ回路
と、該n個のメモリ回路から読み出されたn個のデータ
列をそれぞれ可変長復号化するn個の可変長復号器と、
該可変長復号器から出力されるn個の復号データを画素
毎に多重化して通常の画像データの順番に並べる多重化
回路とを備えて構成される。
The variable length decoding circuit according to the present invention is
The image signal is divided into n groups on a pixel-by-pixel basis, variable-length coded, and the word for each of the n coded data is multiplexed with the coded data alternately multiplexed for each word of the coded data. A separation circuit that separates into n coded data strings based on the number information and outputs together with a clock signal, and n coded data strings that are output from the separation circuit are written using the clock signal. A memory circuit and n variable-length decoders for variable-length decoding the n data strings read from the n memory circuits, respectively.
And a multiplexing circuit for multiplexing n pieces of decoded data output from the variable length decoder for each pixel and arranging them in the order of normal image data.

【0013】[0013]

【実施例】次に本発明をその好ましい各実施例について
図面を参照して説明する。
BEST MODE FOR CARRYING OUT THE INVENTION The present invention will now be described with reference to the drawings for each of its preferred embodiments.

【0014】図1は本発明を符号化回路に適用した場合
における可変長符号化回路の一実施例を示すブロック構
成図である。
FIG. 1 is a block diagram showing an embodiment of a variable length coding circuit when the present invention is applied to a coding circuit.

【0015】図1を参照するに、入力端子1は画像デー
タが入力される端子であり、分離回路3に接続されてい
る。分離回路3の4つの出力はそれぞれ可変長符号器4
〜7に接続されている。可変長符号器4〜7にはそれぞ
れ2つの出力があり、一方はメモリ回路8〜11を介し
て多重化回路12に、もう一方は直接多重化回路12に
接続されている。多重化回路12のクロック出力はメモ
リ回路8〜11に、データ出力は出力端子2にそれぞれ
接続されている。
Referring to FIG. 1, the input terminal 1 is a terminal to which image data is input, and is connected to the separation circuit 3. The four outputs of the separation circuit 3 are variable length encoders 4 respectively.
Connected to ~ 7. The variable length encoders 4 to 7 each have two outputs, one of which is connected to the multiplexing circuit 12 through the memory circuits 8 to 11 and the other of which is directly connected to the multiplexing circuit 12. The clock output of the multiplexing circuit 12 is connected to the memory circuits 8 to 11, and the data output is connected to the output terminal 2.

【0016】ここで、画像データを画素単位の4並列処
理で可変長符号化する場合を考える。入力端子1から入
力された画像データは、分離回路3で画素ごとに順番に
可変長符号器4〜7に振り分けられる。例えば、第1画
素のデータが可変長符号器4に、第2画素のデータが可
変長符号器5に、第3画素のデータが可変長符号器6
に、第4画素のデータが可変長符号器7にそれぞれ振り
分けられる。可変長符号器4〜7では入力されたデータ
を語長が1〜16ビットの可変長符号に変換して16ビ
ットパラレルで出力する。
Here, consider a case where the image data is subjected to variable length coding by four parallel processing in pixel units. The image data input from the input terminal 1 is distributed to the variable length encoders 4 to 7 in order by pixel in the separation circuit 3. For example, the data of the first pixel is stored in the variable length encoder 4, the data of the second pixel is stored in the variable length encoder 5, and the data of the third pixel is stored in the variable length encoder 6.
Then, the data of the fourth pixel is distributed to the variable length encoder 7. The variable length encoders 4 to 7 convert the input data into variable length codes having a word length of 1 to 16 bits and output them in 16-bit parallel.

【0017】多重化回路12では可変長符号器4〜7か
ら出力された符号化データを16ビットのワード単位で
交互に多重化するが、可変長符号器では、例えば語長1
ビットの可変長符号の場合には16個のデータが入力さ
れて16ビットの符号化データが1個出力されるし、語
長16ビットの可変長符号の場合には1個の入力データ
に対して16ビットの符号化データが1個出力されると
いうように符号化データは連続して出力されないので、
メモリ回路8〜11に書き込んでから、多重化するタイ
ミングに合わせて読み出す。読み出しクロックは多重化
回路12で生成してメモリ回路8〜11に対して出力す
る。メモリ回路8から読み出すデータをA1、A2……
…Ak、メモリ回路9から読み出すデータをB1、B2
………Bl、メモリ回路10から読み出すデータをC
1、C2………Cm、メモリ回路11から読み出すデー
タをD1、D2………Dnとすると、多重化回路12で
は図4のfに示すように、 A1、B1、C1、D1、A2、B2…… の順番に並べて出力する。k、l、m、nの値は一般に
は等しくならない。例えば、m<k、m<l、m<nと
すると、多重化データは、 ……Am、Bm、Cm、Dm、Am+1、Cm+1、D
m+1…… となる。この場合、受信側でk、l、m、nの値がわか
らないと、このデータを、 ……Am、Bm、Cm、Dm、Am+1、Bm+1、C
m+1、Dm+1…… と解釈してしまうので、各符号化データのワード数であ
るk、l、m、nの値も符号化データと共に多重化して
伝送する。
In the multiplexing circuit 12, the coded data output from the variable length encoders 4 to 7 are alternately multiplexed in units of 16-bit words.
In the case of a variable-length code of 16 bits, 16 pieces of data are input and one piece of encoded data of 16-bit is output. In the case of a variable-length code of word length 16 bits, one input data is Since 16-bit coded data is output as one, the coded data is not output continuously,
After writing to the memory circuits 8 to 11, the data is read at the timing of multiplexing. The read clock is generated by the multiplexing circuit 12 and output to the memory circuits 8-11. The data read from the memory circuit 8 is A1, A2 ...
... Ak, data read from the memory circuit 9 is B1, B2
……… B1, data read from the memory circuit 10 is C
1, C2, ..., Cm, and the data read from the memory circuit 11 is D1, D2, ..., Dn, in the multiplexing circuit 12, as shown in f of FIG. 4, A1, B1, C1, D1, A2, B2. Output in the order of .... The values of k, l, m, n are generally not equal. For example, if m <k, m <l, m <n, the multiplexed data is ... Am, Bm, Cm, Dm, Am + 1, Cm + 1, D
m + 1 ... In this case, if the receiving side does not know the values of k, l, m, and n, this data is written as ... Am, Bm, Cm, Dm, Am + 1, Bm + 1, C
Since it is interpreted as m + 1, Dm + 1 ..., The values of k, 1, m, and n, which are the number of words of each encoded data, are also multiplexed together with the encoded data and transmitted.

【0018】図3は多重化回路12の一構成例を示すブ
ロック図である。図3において、入力端子120〜12
3はメモリ回路8〜11から出力される符号化データが
入力される端子であり、選択回路27のデータ入力に接
続されている。入力端子124〜127は可変長符号器
4〜7から出力される符号化データのワード数が入力さ
れる端子であり、それぞれ計数回路29〜32および選
択回路28の5つのデータ入力のうちの4つの入力に接
続されている。選択回路28の残りの1つの入力は選択
回路27の出力が接続されている。計数回路29〜32
の出力は制御信号発生回路33とクロック生成回路34
に接続されている。制御信号発生回路33の出力は選択
回路27の選択制御入力に、クロック生成回路34の出
力は計数回路29〜32のクロック入力及び出力端子1
28にそれぞれ接続され、選択回路28の出力は出力端
子129に接続されている。
FIG. 3 is a block diagram showing an example of the structure of the multiplexing circuit 12. In FIG. 3, input terminals 120 to 12
Reference numeral 3 is a terminal to which encoded data output from the memory circuits 8 to 11 is input, and is connected to a data input of the selection circuit 27. The input terminals 124 to 127 are terminals to which the number of words of the encoded data output from the variable length encoders 4 to 7 is input, and four of the five data inputs of the counting circuits 29 to 32 and the selection circuit 28 are input. Connected to one input. The other input of the selection circuit 28 is connected to the output of the selection circuit 27. Counting circuits 29 to 32
Output of the control signal generation circuit 33 and the clock generation circuit 34.
It is connected to the. The output of the control signal generation circuit 33 is the selection control input of the selection circuit 27, and the output of the clock generation circuit 34 is the clock input and output terminal 1 of the counting circuits 29 to 32.
28, and the output of the selection circuit 28 is connected to the output terminal 129.

【0019】図3において、計数回路29〜32は通常
“L”レベルが出力されているが、計数値がそれぞれ入
力端子124〜127から入力されたデータワード数を
越えると“H”レベルが出力される。計数回路29〜3
2の出力パターンによって、制御信号発生回路33から
選択回路27の選択制御信号が出力される。メモリ回路
8〜11に対して出力する読み出しクロックは、クロッ
ク生成回路34で作られて出力端子128から出力され
る。可変長符号器4〜7は可変長符号化回路の入出力デ
ータに対するクロックの4分周クロックで処理されてい
るので、符号化データの多重化開始時点ではクロック生
成回路34から4分周クロックが出力される。計数回路
29〜32からの出力信号が1個“H”レベルになると
クロック生成回路34からは3分周クロックが出力さ
れ、2個“H”レベルになると2分周クロック、3個
“H”レベルになると分周無しのクロック、4個“H”
レベルになると符号化データが終了したということでク
ロック停止になる。
In FIG. 3, the counting circuits 29 to 32 normally output the "L" level, but when the counted value exceeds the number of data words input from the input terminals 124 to 127, the "H" level is output. To be done. Counting circuits 29-3
According to the output pattern of 2, the selection control signal of the selection circuit 27 is output from the control signal generation circuit 33. The read clock output to the memory circuits 8 to 11 is generated by the clock generation circuit 34 and output from the output terminal 128. Since the variable-length encoders 4 to 7 are processed with the clock divided by 4 for the input / output data of the variable-length encoder, the clock generator 34 outputs the divided-by-4 clock at the start of multiplexing the encoded data. Is output. When one of the output signals from the counting circuits 29 to 32 becomes "H" level, the clock generation circuit 34 outputs a frequency-divided clock of 3, and when the number of two output signals becomes "H" level, a frequency-divided clock of 2 and three "H" level. When the level is reached, a clock without frequency division, 4 "H"
When the level is reached, the clock is stopped because the encoded data is completed.

【0020】図4は図3の多重化回路の動作を示すタイ
ムチャートである。aは可変長符号化回路の入出力デー
タに対するクロック、b〜eはそれぞれ計数回路29〜
32の出力、fは選択回路28の出力信号、gはクロッ
ク生成回路34から出力されるクロックをそれぞれ示し
ている。fにおいて、最初、選択回路28で入力端子1
24〜127から入力される符号化データのワード数
k、l、m、nが選択され、時刻t1から選択回路27
より出力される符号化データが選択される。
FIG. 4 is a time chart showing the operation of the multiplexing circuit of FIG. a is a clock for input / output data of the variable length coding circuit, and b to e are counting circuits 29 to 29, respectively.
32, the output f of the selection circuit 28, and g the clock output from the clock generation circuit 34. In f, first, the selection circuit 28 inputs the input terminal 1
The numbers k, l, m, and n of the encoded data input from 24 to 127 are selected, and the selection circuit 27 starts from time t1.
The encoded data to be output is selected.

【0021】図4ではk=5、l=3、m=1、n=3
の例を示しており、時刻t1で計数回路29〜32には
k、l、m、nの値がセットされる。この時、b〜eは
“L”レベルとなり、fはA1、B1、C1、D1が出
力される。t2で計数回路29〜32がカウントアップ
され、dのみ“H”レベルになる。b〜eのパターンに
より制御信号発生回路33から選択回路27の選択制御
信号が出力され、選択回路27でA2、B2、D2が選
択されてfに出力される。b〜eのうちdのみ“H”レ
ベルなので、クロック生成回路34からはgに示すよう
に、t2からaのクロックで3クロック後のt3に3分
周クロックが出力される。以下同様にしてA3、B3、
D3、A4、A5が出力される。
In FIG. 4, k = 5, l = 3, m = 1, n = 3
, The values of k, l, m and n are set in the counting circuits 29 to 32 at time t1. At this time, b to e are at “L” level, and f outputs A1, B1, C1, and D1. At t2, the counting circuits 29 to 32 are counted up, and only d becomes "H" level. The selection control signal of the selection circuit 27 is output from the control signal generation circuit 33 according to the patterns b to e, and A2, B2, and D2 are selected by the selection circuit 27 and output to f. Since only d of b to e is at the “H” level, the clock generation circuit 34 outputs the divided-by-3 clock at t3, which is three clocks after the clock from t2 to a as shown in g. Similarly, A3, B3,
D3, A4 and A5 are output.

【0022】次に本発明に係る復号化回路について説明
する。
Next, the decoding circuit according to the present invention will be described.

【0023】図5は本発明を復号化回路に適用した場合
における可変長復号化回路の一実施例を示すブロック構
成図である。
FIG. 5 is a block diagram showing an embodiment of a variable length decoding circuit when the present invention is applied to the decoding circuit.

【0024】図5を参照するに、可変長符号化データが
入力される入力端子41および可変長符号化データに含
まれる4種類のデータの各ワード数が入力される入力端
子42〜45は分離回路47に接続されている。分離回
路47の4つのデータ出力および4つのクロック出力は
それぞれメモリ回路48〜51に接続されている。メモ
リ回路48〜51の出力は可変長復号器52〜55にそ
れぞれ接続され、可変長復号器52〜55の出力は多重
化回路56に接続されている。多重化回路56の出力は
出力端子46に接続されている。
Referring to FIG. 5, the input terminal 41 to which the variable length coded data is input and the input terminals 42 to 45 to which the respective word numbers of the four types of data included in the variable length coded data are input are separated. It is connected to the circuit 47. The four data outputs and the four clock outputs of the separation circuit 47 are connected to the memory circuits 48 to 51, respectively. The outputs of the memory circuits 48 to 51 are connected to the variable length decoders 52 to 55, respectively, and the outputs of the variable length decoders 52 to 55 are connected to the multiplexing circuit 56. The output of the multiplexing circuit 56 is connected to the output terminal 46.

【0025】ここで、画像データを叙上の符号化回路と
同様に、画素単位に4並列処理で可変長復号化する場合
を考える。図5の可変長復号回路で可変長復号を行うた
めには、符号化時にも画素単位の4並列処理を行ってワ
ード単位で多重化しておく必要がある。図7は、入力端
子41に入力される可変長符号化データのフォーマット
を示す。可変長符号化データは並列処理された4つのグ
ループA、B、C、Dに分けられ、各グループのデータ
がワード毎に交互に多重化されている。グループは画素
単位に分けられていて、グルーブAは第1、第5、第9
……画素、グループBは第2、第6、第10……画素、
グルーブCは第3、第7、第11……画素、グルーブD
は第4、第8、第12……画素というように、それぞれ
4画素おきのデータを可変長符号化したものである。
Now, let us consider a case where the image data is subjected to variable length decoding by four parallel processes in pixel units, as in the above encoding circuit. In order to perform variable length decoding with the variable length decoding circuit in FIG. 5, it is necessary to perform four parallel processing in pixel units and multiplex in word units also at the time of encoding. FIG. 7 shows the format of the variable length coded data input to the input terminal 41. The variable length coded data is divided into four groups A, B, C and D which are processed in parallel, and the data of each group are alternately multiplexed for each word. The group is divided into pixel units, and the groove A has the first, fifth, and ninth groups.
...... Pixel, group B is the second, sixth, tenth …… pixel,
The groove C is the third, seventh, eleventh ... Pixel, groove D
Are data obtained by variable-length coding every 4th pixel such as the 4th, 8th, 12th ... Pixel.

【0026】各グループのデータのワード数がそれぞれ
入力端子42〜45から入力される。分離回路47で
は、後で説明するようにこのワード数を使って入力され
た可変長復号化データを各グループに分け、メモリ回路
48〜51に対して書き込みクロックと共に出力する。
可変長復号器52〜55ではメモリ回路48〜51から
読み出された各グループの可変長符号化データを入力端
子41から入力されたデータの速度の1/4の速度で復
号化する。ここで用いる可変長符号の語長を1〜16ビ
ットとすると、1画素分のデータを復号化するのに読み
込むデータ量が1〜16ビットの範囲で変化するので、
メモリ回路48〜51ではそのデータ転送速度の変換を
行っている。
The number of words of data in each group is input from the input terminals 42 to 45, respectively. As will be described later, the separation circuit 47 divides the variable-length decoded data input using this word number into each group, and outputs it to the memory circuits 48 to 51 together with the write clock.
The variable length decoders 52 to 55 decode the variable length coded data of each group read from the memory circuits 48 to 51 at a rate of 1/4 of the rate of the data input from the input terminal 41. If the word length of the variable-length code used here is 1 to 16 bits, the amount of data to be read for decoding the data of one pixel changes in the range of 1 to 16 bits.
The memory circuits 48 to 51 convert the data transfer rate.

【0027】可変長復号器52〜55から出力された復
号化データは、多重化回路56で画素単位に多重化され
て出力端子46から出力される。すなわち、可変長復号
器52で復号化したグループAの第1画素の次に、可変
長復号器53で復号化したグループBの第2画素、可変
長復号器54で復号化したグループCの第3画素、可変
長復号器55で復号化したグループDの第4画素の順で
多重化していく。これは、画素単位の多重化であるの
で、従来のようなメモリ回路は必要なくなる。
The decoded data output from the variable length decoders 52 to 55 is multiplexed on a pixel-by-pixel basis by the multiplexing circuit 56 and output from the output terminal 46. That is, after the first pixel of group A decoded by the variable length decoder 52, the second pixel of group B decoded by the variable length decoder 53, and the second pixel of group C decoded by the variable length decoder 54. Three pixels are multiplexed in order of the fourth pixel of group D decoded by the variable length decoder 55. Since this is multiplexing on a pixel-by-pixel basis, a conventional memory circuit is not required.

【0028】図8は分離回路47の一構成例を示すブロ
ック図である。図8において、入力端子701は可変長
符号化データが入力される端子であり、スイッチ71に
接続されている。入力端子702〜705は可変長符号
化データで多重化されている各グループの符号化データ
のワード数が入力される端子であり、計数回路72〜7
5に接続されている。計数回路72〜75の出力は制御
信号発生回路76とクロック生成回路77に接続されて
いる。制御信号発生回路76の出力はスイッチ71の制
御信号入力に接続されている。クロック生成回路77の
5つの出力のうち、1つは計数回路72〜75のクロッ
ク入力に、残りの4つはそれぞれ出力端子710〜71
3に接続されている。
FIG. 8 is a block diagram showing a configuration example of the separation circuit 47. In FIG. 8, an input terminal 701 is a terminal to which variable length encoded data is input, and is connected to the switch 71. The input terminals 702 to 705 are terminals to which the number of words of the encoded data of each group multiplexed with the variable length encoded data is input, and the counting circuits 72 to 7
Connected to 5. The outputs of the counting circuits 72 to 75 are connected to the control signal generating circuit 76 and the clock generating circuit 77. The output of the control signal generation circuit 76 is connected to the control signal input of the switch 71. Of the five outputs of the clock generation circuit 77, one is used as the clock input of the counting circuits 72 to 75, and the other four are output terminals 710 to 71, respectively.
Connected to 3.

【0029】図8において、計数回路72〜75は通常
“L”レベルが出力されているが、計数値がそれぞれ入
力端子702〜705から入力されたワード数を越える
と“H”レベルになる。計数回路72〜75の出力パタ
ーンによって、制御信号発生回路76からスイッチ71
の制御信号が出力される。メモリ回路48〜51に対し
て出力する書き込みクロックはクロック生成回路77で
作られて出力端子710〜713から出力される。ま
た、計数回路72〜75に対するクロックもクロック生
成回路77で作られる。
In FIG. 8, the counting circuits 72 to 75 normally output the "L" level, but when the counting values exceed the number of words input from the input terminals 702 to 705, respectively, the counting circuits 72 to 75 become the "H" level. Depending on the output patterns of the counting circuits 72 to 75, the control signal generating circuit 76 switches the switch 71 to the switch 71.
Control signal is output. The write clock output to the memory circuits 48 to 51 is generated by the clock generation circuit 77 and output from the output terminals 710 to 713. The clock generation circuit 77 also generates clocks for the counting circuits 72 to 75.

【0030】図9は図8の分離回路の動作を示すタイム
チャートである。aは入力される可変長符号化データ、
bは入力される可変長符号化データに対するクロック、
c〜fはそれぞれ計数回路72〜75の出力信号、gは
制御信号発生回路36の出力信号、h〜kはそれぞれ出
力端子710〜713から出力されるクロック、lはク
ロック生成回路77から計数回路72〜75に対して出
力されるクロックである。ここでは、グループA〜Dの
各データのワード数を前述した符号化回路と同様に5、
3、1、3とする。
FIG. 9 is a time chart showing the operation of the separation circuit of FIG. a is variable length encoded data to be input,
b is a clock for input variable-length coded data,
c to f are output signals of the counting circuits 72 to 75, g is an output signal of the control signal generating circuit 36, h to k are clocks output from the output terminals 710 to 713, and l is a clock generating circuit 77 to a counting circuit. It is a clock output to 72-75. Here, the number of words of each data of the groups A to D is 5, as in the above-described encoding circuit,
Set to 3, 1, and 3.

【0031】時刻t1で計数回路72〜75には各グル
ープのデータのワード数がセットされる。この時、c〜
fは“L”レベルとなり、gはSa、Sb、Sc、Sd
が順番に出力される。ここで、Saはスイッチ71を出
力端子706に接続する制御信号、Sbはスイッチ71
を出力端子707に接続する制御信号、Scはスイッチ
71を出力端子708に接続する制御信号、Sdはスイ
ッチ71を出力端子709に接続する制御信号である。
制御信号発生回路76はbのクロックに対して4分周ク
ロックを生成してlに出力すると共に、出力端子706
〜709から出力されるデータがメモリ回路48〜51
で読み込めるタイミングでh〜kを出力する。t2で計
数回路72〜75がカウントアップされ、eのみ“H”
レベルになる。c〜fのパターンにより制御信号発生回
路76からスイッチ71の制御信号gが出力され、スイ
ッチ71でA2、B2、D2がそれぞれ出力端子70
6、707、709から出力されるように接続される。
c〜fのうちeのみ“H”レベルなので、クロック生成
回路77からはbのクロックに対する3分周クロックが
生成され、h〜lに示すタイミングで出力される。以下
同様にしてA3、B3、D3、A4、A5が分離されて
出力される。
At time t1, the number of words of data in each group is set in the counting circuits 72 to 75. At this time, c ~
f becomes "L" level, and g is Sa, Sb, Sc, Sd.
Are output in order. Here, Sa is a control signal for connecting the switch 71 to the output terminal 706, and Sb is the switch 71.
Is a control signal for connecting the switch 71 to the output terminal 709, Sc is a control signal for connecting the switch 71 to the output terminal 708, and Sd is a control signal for connecting the switch 71 to the output terminal 709.
The control signal generation circuit 76 generates a clock divided by 4 with respect to the clock of b and outputs it to l, and at the same time, an output terminal 706.
Data output from the memory circuits 48 to 51
Output h to k at the timing that can be read by. At t2, the counting circuits 72 to 75 are counted up, and only e is “H”.
Become a level. The control signal g of the switch 71 is output from the control signal generation circuit 76 according to the patterns c to f, and the switches 71 output A2, B2, and D2, respectively.
6, 707 and 709 are connected so as to be output.
Since only e of c to f is at the “H” level, the clock generation circuit 77 generates a clock divided by three with respect to the clock of b and outputs it at the timings h to l. Similarly, A3, B3, D3, A4 and A5 are separated and output.

【0032】[0032]

【発明の効果】以上説明したように、本発明によれば、
処理速度を下げるために可変長符号化を並列処理で行う
場合に、画素単位で並列処理を行うことにより、周辺の
メモリ回路のメモリ容量を減らすことが可能となり、処
理遅延時間および回路規模を削減できるという効果が得
られる。
As described above, according to the present invention,
When variable-length coding is performed in parallel to reduce processing speed, parallel processing in pixel units can reduce the memory capacity of peripheral memory circuits, reducing processing delay time and circuit scale. The effect that can be obtained is obtained.

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

【図1】本発明に係る可変長符号化回路の一実施例を示
すブロック構成図である。
FIG. 1 is a block diagram showing an embodiment of a variable length coding circuit according to the present invention.

【図2】従来における可変長符号化回路の一例を示すブ
ロック図である。
FIG. 2 is a block diagram showing an example of a conventional variable length coding circuit.

【図3】図1に示した多重化回路12の一具体例を示す
ブロック構成図である。
FIG. 3 is a block configuration diagram showing a specific example of a multiplexing circuit 12 shown in FIG.

【図4】図3に示した多重化回路12の動作を説明する
タイミングチャートである。
FIG. 4 is a timing chart explaining the operation of the multiplexing circuit 12 shown in FIG.

【図5】本発明に係る可変長復号化回路の一実施例を示
すブロック構成図である。
FIG. 5 is a block diagram showing an embodiment of a variable length decoding circuit according to the present invention.

【図6】従来における可変長復号化回路の一例を示すブ
ロック図である。
FIG. 6 is a block diagram showing an example of a conventional variable length decoding circuit.

【図7】図5に示した可変長復号化回路に入力される可
変長符号化データのフォーマットを示す図である。
7 is a diagram showing a format of variable-length coded data input to the variable-length decoding circuit shown in FIG.

【図8】図5に示した分離回路47の一具体例を示すブ
ロック構成図である。
8 is a block configuration diagram showing a specific example of the separation circuit 47 shown in FIG.

【図9】図8に示した分離回路47の動作を説明するタ
イミングチャートである。
9 is a timing chart explaining the operation of the separation circuit 47 shown in FIG.

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

1…入力端子 2…出力端子 3、13…分離回路 4〜7、18〜21…可変長符号器 8〜11、14〜17、22〜25…メモリ回路 12、26…多重化回路 27、28…選択回路 29〜32…計数回路 33…制御信号発生回路 34…クロック生成回路 41〜45…入力端子 46…出力端子 47、57…分離回路 48〜51、58〜61、66〜69…メモリ回路 52〜55、62〜65…可変長復号器 56、70…多重化回路 71…スイッチ 72〜75…計数回路 76…制御信号発生回路 77…クロック生成回路 DESCRIPTION OF SYMBOLS 1 ... Input terminal 2 ... Output terminal 3, 13 ... Separation circuit 4-7, 18-21 ... Variable-length encoder 8-11, 14-17, 22-25 ... Memory circuit 12, 26 ... Multiplexing circuit 27, 28 ... selection circuit 29-32 ... counter circuit 33 ... control signal generation circuit 34 ... clock generation circuit 41-45 ... input terminal 46 ... output terminals 47, 57 ... separation circuit 48-51, 58-61, 66-69 ... memory circuit 52-55, 62-65 ... Variable length decoder 56, 70 ... Multiplexing circuit 71 ... Switch 72-75 ... Counting circuit 76 ... Control signal generating circuit 77 ... Clock generating circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力された画像データを画素単位にn個
のデータ列に振り分ける分離回路と、該分離回路から出
力されるn個のデータ列をそれぞれ可変長符号化して符
号化データとそのワード数情報を出力するn個の可変長
符号器と、該可変長符号器から出力される符号化データ
を記憶するn個のメモリ回路と、該メモリ回路から出力
されるn個のデータ列をワード単位に交互に並べ前記可
変長符号器から出力されるワード数情報と多重化すると
共に前記n個のメモリ回路に対して読み出しクロックを
出力する多重化回路とを備えることを特徴とする可変長
符号化回路。
1. A separation circuit that distributes input image data into n data strings on a pixel-by-pixel basis, and n data strings output from the separation circuit are each variable-length coded to coded data and its words. N variable-length encoders that output numerical information, n memory circuits that store encoded data output from the variable-length encoders, and n data strings output from the memory circuits as words A variable length code which is alternately arranged in units and which is multiplexed with the word number information output from the variable length encoder and which outputs a read clock to the n memory circuits. Circuit.
【請求項2】 前記多重化回路は、入力されたn個の符
号化データから1個を選択する第1の選択回路と、符号
化データのワード数と前記第1の選択回路の出力を入力
する第2の選択回路と、前記ワード数を入力して計数す
るn個の計数回路と、該n個の計数回路の出力を入力
し、該出力パターンにより選択制御信号を前記第1の選
択回路に出力する制御信号発生回路と、前記n個の計数
回路の出力を入力し前記n個のメモリ回路の読み出しク
ロックを発生するクロック生成回路とを有することを更
に特徴とする請求項1に記載の可変長符号化回路。
2. The multiplexer circuit inputs a first selection circuit for selecting one from n input coded data, a word number of coded data and an output of the first selection circuit. Second selecting circuit, n counting circuits for inputting and counting the number of words, and outputs of the n counting circuits are input, and a selection control signal is output according to the output pattern. 2. The control signal generating circuit according to claim 1, further comprising: a control signal generating circuit which outputs the control signal generating circuit and a clock generating circuit which inputs the outputs of the n counting circuits and generates a read clock of the n memory circuits. Variable length coding circuit.
【請求項3】 画像信号を画素単位にn個のグループに
分けて可変長符号化し符号化データのワード毎に交互に
多重化された符号化データに対して多重化されているn
個の符号化データそれぞれに対するワード数情報を基に
n個の符号化データ列に分離してクロック信号と共に出
力する分離回路と、該分離回路から出力されるn個の符
号化データ列を前記クロック信号を用いて書き込むn個
のメモリ回路と、該n個のメモリ回路から読み出された
n個のデータ列をそれぞれ可変長復号化するn個の可変
長復号器と、該可変長復号器から出力されるn個の復号
データを画素毎に多重化して通常の画像データの順番に
並べる多重化回路とを備えることを特徴とする可変長復
号化回路。
3. The image signal is divided into n groups on a pixel-by-pixel basis, variable-length coded, and n is multiplexed with coded data that is alternately multiplexed for each word of the coded data.
A separation circuit that separates into n coded data strings based on the word number information for each of the coded data and outputs together with a clock signal, and the n coded data strings output from the separation circuit are the clocks. N variable-length decoders for variable-length decoding n data circuits read from the n-memory circuits, and n variable-length decoders for variable-length decoding, respectively. A variable length decoding circuit, comprising: a multiplexing circuit that multiplexes n pieces of decoded data that are output for each pixel and arranges them in the order of normal image data.
JP9924492A 1992-04-20 1992-04-20 Variable length encoding and decoding circuit Pending JPH05300486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9924492A JPH05300486A (en) 1992-04-20 1992-04-20 Variable length encoding and decoding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9924492A JPH05300486A (en) 1992-04-20 1992-04-20 Variable length encoding and decoding circuit

Publications (1)

Publication Number Publication Date
JPH05300486A true JPH05300486A (en) 1993-11-12

Family

ID=14242287

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9924492A Pending JPH05300486A (en) 1992-04-20 1992-04-20 Variable length encoding and decoding circuit

Country Status (1)

Country Link
JP (1) JPH05300486A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001339197A (en) * 2000-05-29 2001-12-07 Matsushita Electric Ind Co Ltd Apparatus and method for mounting component
US6414993B1 (en) 1998-09-29 2002-07-02 Nec Corporation Decoding system available for compressed data streams for concurrently reproducing stable pictures method for decoding compressed data streams and information storage medium for strong programmed instructions representative of the method
JP2012160985A (en) * 2011-02-02 2012-08-23 Fuji Xerox Co Ltd Information processor and information processing program
JP2013098780A (en) * 2011-11-01 2013-05-20 Fujitsu Ltd Variable length encoding device and variable length decoding device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6414993B1 (en) 1998-09-29 2002-07-02 Nec Corporation Decoding system available for compressed data streams for concurrently reproducing stable pictures method for decoding compressed data streams and information storage medium for strong programmed instructions representative of the method
US6912254B2 (en) 1998-09-29 2005-06-28 Nec Electronics Corporation Decoding system available for compressed data streams for concurrently reproducing stable pictures method for decoding compressed data streams and information storage medium for storing programmed instructions representative of the method
JP2001339197A (en) * 2000-05-29 2001-12-07 Matsushita Electric Ind Co Ltd Apparatus and method for mounting component
JP2012160985A (en) * 2011-02-02 2012-08-23 Fuji Xerox Co Ltd Information processor and information processing program
JP2013098780A (en) * 2011-11-01 2013-05-20 Fujitsu Ltd Variable length encoding device and variable length decoding device

Similar Documents

Publication Publication Date Title
KR100324833B1 (en) Variable length code decoder
CA2165492A1 (en) Temporally-Pipelined Predictive Encoder/Decoder Circuit and Method
MX9603665A (en) Picture information encoding/decoding system.
JPH0821863B2 (en) Data processing method
JPH05300486A (en) Variable length encoding and decoding circuit
US6020835A (en) Code decoding apparatus
JPH11168388A (en) Voice controller, voice control method and navigation system
JP2684815B2 (en) Digital multiplex transmission system
JP2685283B2 (en) Communication method, parallel variable-length coding circuit, and parallel variable-length decoding circuit
JPH03242027A (en) Parallel error correction system with interleaving function added
JP2002271209A (en) Turbo encoder and turbo decoder
JPS58225779A (en) Decoding system for picture signal
JPS6341271B2 (en)
JP3108243B2 (en) Encoding and decoding device
JPS6016772B2 (en) Signal transmission method
SU1529461A1 (en) Device for indication of extreme value of sequence of numerical values
JPH0522156A (en) Variable length/fixed length encoding circuit
JP2556160B2 (en) Compression code decompression device
KR0125126B1 (en) High-speed apparatus for decoding variable length code
JPH03173224A (en) Variable length coding-decoding system
SU1506593A1 (en) Tv signal coding device
JPH0340986B2 (en)
JPH0270128A (en) Transmitter for variable length encoding signal
JP2508864B2 (en) Digital logic operation circuit
JPH03112272A (en) Coding system for video signal