JPH11203447A - Decoding device and its method - Google Patents

Decoding device and its method

Info

Publication number
JPH11203447A
JPH11203447A JP603998A JP603998A JPH11203447A JP H11203447 A JPH11203447 A JP H11203447A JP 603998 A JP603998 A JP 603998A JP 603998 A JP603998 A JP 603998A JP H11203447 A JPH11203447 A JP H11203447A
Authority
JP
Japan
Prior art keywords
signal
coded signal
circuit
converted
decoder
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
JP603998A
Other languages
Japanese (ja)
Inventor
Hiroshi Masuyama
大志 益山
Koichi Kurihara
弘一 栗原
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.)
Toshiba Corp
Toshiba AVE Co Ltd
Original Assignee
Toshiba Corp
Toshiba AVE Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp, Toshiba AVE Co Ltd filed Critical Toshiba Corp
Priority to JP603998A priority Critical patent/JPH11203447A/en
Publication of JPH11203447A publication Critical patent/JPH11203447A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To decode all encoded signals inputted by simple circuit constitution without increasing the scale of a circuit and complicating control. SOLUTION: An inputted 8-bit encoded signal 100 is converted into a 32-bit signal by a register circuit 1 and stored in a buffer memory 3 through an FIFO 2. When an output request is outputted from a decoder 7, the encoded signal read out from the memory 3 in each 32-bit unit is outputted to the decoder 7 through an FIFO 4 and a selector circuit 5 and decoded by the decoder 7. When the signal 100 is not converted into a 32-bit signal and the residual of the encoded signal stored in the FIFOs 2, 4 and the memory 3 is zero, a residual detection circuit 6 switches the circuit 5 to the side of a terminal B so as to output the encoded signal 100 outputted from the circuit 1 directly to the decoder 7 and decode the signal 100.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、入力される符号化
信号をバッファメモリに一旦書き込んだ後、読み出して
復号器により復号する復号装置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decoding device and method for writing an input coded signal into a buffer memory, reading the coded signal once, and decoding the coded signal with a decoder.

【0002】[0002]

【従来の技術】従来、映像や音声などのデジタル信号は
データ量を削減するために例えばMPEGなどの方式に
よって符号化されている。このような符号化信号を再生
するには復号装置によって復号化しなければならず、例
えば、特開平8−186822で示されるような「画像
復号装置」がある。この画像復号装置では、ビットスト
リームを順次にバッファメモリに蓄積し、蓄積されたビ
ットストリームを順次に読み出して復号化する動作が行
われている。
2. Description of the Related Art Conventionally, digital signals such as video and audio have been encoded by a method such as MPEG in order to reduce the amount of data. In order to reproduce such an encoded signal, decoding must be performed by a decoding device. For example, there is an "image decoding device" as disclosed in JP-A-8-186822. In this image decoding apparatus, an operation is performed in which bit streams are sequentially stored in a buffer memory, and the stored bit streams are sequentially read and decoded.

【0003】一般的には、あるビット数で入力される符
号化信号をバッファメモリのビット幅に変換してからバ
ッファメモリに蓄え、その後、このバッファメモリから
読み出して復号する。
Generally, a coded signal input with a certain number of bits is converted into a bit width of a buffer memory, stored in the buffer memory, and then read out from the buffer memory and decoded.

【0004】[0004]

【発明が解決しようとする課題】上記のように従来の復
号化装置では、符号化信号をバッファメモリに一旦蓄積
してから復号する場合、現実的には8ビットで入力され
る符号化信号を、バッファメモリのビット幅である16
ビット又は32ビット単位に変換してからバッファメモ
リに書き込んだ後、前記単位で読み出して復号化する。
しかし、符号化信号のビット数がバッファメモリのビッ
ト幅に対して余りを生じる場合、前記した所定単位に符
号化信号を変換できなくなるため、全ての符号化信号を
バッファメモリに蓄積できず、復号できないという問題
があった。
As described above, in the conventional decoding apparatus, when the encoded signal is temporarily stored in the buffer memory and then decoded, the encoded signal input with 8 bits is actually used. 16 which is the bit width of the buffer memory.
After conversion into bits or 32 bits, the data is written to the buffer memory, and then read and decoded in the aforementioned units.
However, if the number of bits of the coded signal has a remainder with respect to the bit width of the buffer memory, the coded signal cannot be converted into the above-described predetermined unit. There was a problem that it was not possible.

【0005】そこで、符号化信号のビット数がバッファ
メモリのビット幅に対して余りを生じる場合、その符号
化信号に無効なダミー信号を付加し、バッファメモリの
ビット幅に対して余りが生じないようにしてからバッフ
ァメモリに記憶することもできる。しかし、この場合、
バッファメモリに記憶された符号化信号が有効か無効か
を示すフラグが必要になり、装置の回路規模の増大や制
御の複雑さを招くという問題があった。
Therefore, when the number of bits of the coded signal has a remainder with respect to the bit width of the buffer memory, an invalid dummy signal is added to the coded signal so that there is no remainder with respect to the bit width of the buffer memory. After that, the data can be stored in the buffer memory. But in this case,
A flag indicating whether the coded signal stored in the buffer memory is valid or invalid is required, which causes a problem that the circuit scale of the device is increased and control is complicated.

【0006】本発明は、上述の如き従来の課題を解決す
るためになされたもので、その目的は、回路規模の増大
や制御の複雑さを招くことなく、簡単な回路構成にて入
力される全ての符号化信号を復号することができる復号
装置及び方法を提供することである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned conventional problems, and an object of the present invention is to provide a simple circuit configuration without increasing the circuit scale or complicating the control. An object of the present invention is to provide a decoding device and method capable of decoding all encoded signals.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、第1の発明の特徴は、入力される符号化信号を所定
ビット単位に変換して、メモリに一旦蓄積した後、前記
メモリから符号化信号を読み出して、これを復号器によ
り復号する復号装置において、入力される符号化信号が
所定ビット単位に変換できたか否かを検出する検出手段
と、この検出手段により前記符号化信号が所定ビット単
位に変換できていないことが検出されると、所定ビット
単位に変換できていない符号化信号を前記メモリに蓄積
することなく、直接前記復号器に出力して復号する制御
手段とを備えたことにある。
Means for Solving the Problems In order to achieve the above object, a feature of the first invention is that an input coded signal is converted into a predetermined bit unit, and is temporarily stored in a memory. In a decoding device that reads an encoded signal and decodes the encoded signal by a decoder, detecting means for detecting whether or not the input encoded signal has been converted into a predetermined bit unit, Control means for directly outputting to the decoder and decoding the coded signal which has not been converted to the predetermined bit unit without detecting the coded signal which has not been converted to the predetermined bit unit, That is.

【0008】この第1の発明によれば、入力される符号
化信号が例えば8ビットで、しかも24ビット分しか入
力されない場合、これでは、所定の例えば32ビット単
位に変換できないことになる。このような場合で、前記
メモリなどに32ビット単位の符号化信号が残っていな
い場合、前記24ビットの符号化信号を前記メモリに蓄
積することなく、直接復号器に送って復号する。これに
より、入力される符号化信号は全て復号される。
According to the first aspect of the invention, when the input coded signal is, for example, 8 bits and only 24 bits are input, it cannot be converted into a predetermined unit of, for example, 32 bits. In such a case, if the 32-bit encoded signal does not remain in the memory or the like, the 24-bit encoded signal is directly sent to the decoder without being stored in the memory to be decoded. As a result, the input coded signals are all decoded.

【0009】第2の発明の特徴は、前記制御手段は所定
ビット単位に変換できていない符号化信号にダミー信号
を付加して所定ビット単位にして、これを前記復号器に
直接出力することにある。
A feature of the second invention is that the control means adds a dummy signal to a coded signal which has not been converted into a predetermined bit unit, converts the coded signal into a predetermined bit unit, and directly outputs this to the decoder. is there.

【0010】第3の発明の特徴は、所定ビット単位に変
換した符号化信号を一旦保持するFIFO回路と、前記
メモリから読み出した符号化信号を一旦保持するFIF
O回路を設け、これらFIFO回路と前記メモリ内の符
号化信号の残量が全てゼロであって、且つ前記検出手段
により前記符号化信号が所定ビット単位に変換できてい
ないことが検出された場合、前記制御手段は所定ビット
単位に変換できていない符号化信号を直接前記復号器に
出力することにある。
A third aspect of the present invention is characterized in that a FIFO circuit for temporarily holding an encoded signal converted into a predetermined bit unit and a FIFO circuit for temporarily holding an encoded signal read from the memory.
O circuit is provided, and when the remaining amount of the coded signal in the FIFO circuit and the memory is all zero and the detecting means detects that the coded signal cannot be converted into a predetermined bit unit The control means is to directly output the coded signal that has not been converted into a predetermined bit unit to the decoder.

【0011】第4の発明の特徴は、入力される符号化信
号を所定ビット単位に変換して、メモリに一旦蓄積した
後、前記メモリから符号化信号を読み出して、これを復
号する復号方法において、入力される符号化信号が所定
ビット単位に変換できたか否かを検出する過程と、前記
入力される符号化信号が所定ビット単位に変換できてい
ないことが検出されると、この所定ビット単位に変換で
きていない符号化信号を前記メモリに蓄積することな
く、直接前記復号器に出力して復号する過程とを備えた
ことにある。
According to a fourth aspect of the present invention, there is provided a decoding method for converting an input coded signal into a predetermined bit unit, temporarily storing the coded signal in a memory, reading the coded signal from the memory, and decoding the coded signal. Detecting whether or not the input coded signal has been converted into a predetermined bit unit; and detecting that the input coded signal has not been converted into the predetermined bit unit. And directly outputting to the decoder and decoding the coded signal which has not been converted to the data without storing it in the memory.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。図1は、本発明の復号装置の第1
の実施の形態を示したブロック図である。8ビットの符
号化信号100のビット幅を32ビットに揃えるレジス
タ回路1は、32ビット化された符号化信号101を一
旦保持するFIFO(先入れ先出し)2を接続し、この
FIFO2に保持された符号化信号101が32ビット
単位でバッファメモリ3に記憶される。バッファメモリ
3から読み出された符号化信号101はFIFO4に一
旦保持された後、選択回路5を介して復号器7に出力さ
れる。選択回路5はFIFO4の出力信号か、レジスタ
回路1の出力信号かのいずれかを選択して復号器7に出
力し、その切換は、FIFO2、バッファメモリ3、F
IFO4内の信号残量を検出する残量検出回路6の検出
結果により行われる。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a first example of the decoding device of the present invention.
FIG. 2 is a block diagram showing an embodiment of the present invention. A register circuit 1 for adjusting the bit width of an 8-bit coded signal 100 to 32 bits is connected to a FIFO (first-in first-out) 2 for temporarily storing a 32-bit coded signal 101, and the coding stored in the FIFO 2 The signal 101 is stored in the buffer memory 3 in units of 32 bits. The encoded signal 101 read from the buffer memory 3 is temporarily stored in the FIFO 4 and then output to the decoder 7 via the selection circuit 5. The selection circuit 5 selects either the output signal of the FIFO 4 or the output signal of the register circuit 1 and outputs the selected signal to the decoder 7. The switching is performed by the FIFO 2, the buffer memory 3, the F
This is performed based on the detection result of the remaining amount detection circuit 6 for detecting the remaining amount of the signal in the IFO 4.

【0013】図2は図1に示したレジスタ回路1の構成
例を示したブロック図である。符号化信号100と共に
入力される有効フラグ200の入力毎にカウントアップ
するカウンタ回路11の値により入力信号を選択する選
択回路12、13、14、15を有し、これら選択回路
により選択された8ビットの符号化信号を保持するレジ
スタ16、17、18、19の各符号化信号を多重化す
ることにより、32ビットの符号化信号101が生成さ
れる。
FIG. 2 is a block diagram showing a configuration example of the register circuit 1 shown in FIG. Selection circuits 12, 13, 14, and 15 are provided for selecting an input signal based on the value of a counter circuit 11 that counts up each time a valid flag 200 is input together with the coded signal 100. By multiplexing the encoded signals of the registers 16, 17, 18, and 19 that hold the encoded signals of bits, an encoded signal 101 of 32 bits is generated.

【0014】次に本実施の形態の動作について図3のフ
ローチャートを参照して説明する。例えばインターネッ
ト回線より受信された符号化信号100はレジスタ回路
1に入力される。レジスタ回路1はステップ301に
て、入力された符号化信号100を保持し、そのビット
幅を32ビット単位に揃え、ステップ302にて32ビ
ットに変換されたと判定されるとFIFO2に出力し
て、ここで保持する。FIFO2は、バッファメモリ3
への書き込みを要求した後、バッファメモリ3への書き
込み許可が発行されるまで符号化信号101を保存す
る。
Next, the operation of this embodiment will be described with reference to the flowchart of FIG. For example, an encoded signal 100 received from an Internet line is input to the register circuit 1. In step 301, the register circuit 1 holds the input coded signal 100, adjusts its bit width in units of 32 bits, and outputs it to the FIFO 2 when it is determined in step 302 that it has been converted to 32 bits. Hold here. FIFO 2 is buffer memory 3
After the request for writing to the buffer memory 3, the encoded signal 101 is stored until a write permission to the buffer memory 3 is issued.

【0015】バッファメモリ3への書き込み許可が発行
されたら、ステップ303にて、FIFO2に保存され
た符号化信号101をバッファメモリ3へ書き込む。バ
ッファメモリ3に符号化信号101が蓄積されたら、バ
ッファメモリ3からの読み出しを要求し、バッファメモ
リ3からの読み出し許可が発行されたら、バッファメモ
リ3から符号化信号101を読み出し、FIFO4に保
存する。
When a write permission to the buffer memory 3 is issued, the coded signal 101 stored in the FIFO 2 is written to the buffer memory 3 at step 303. When the coded signal 101 is accumulated in the buffer memory 3, reading from the buffer memory 3 is requested, and when permission to read from the buffer memory 3 is issued, the coded signal 101 is read from the buffer memory 3 and stored in the FIFO 4. .

【0016】FIFO4は、バッファメモリ3への読み
出しを要求してから読み出し許可が発行されるまでの待
ち時間を考慮し、復号器7からの出力要求を受け取った
らすぐ出力できるように、符号化信号101をバッファ
メモリ3から早めに読み出しておき、読み出した符号化
信号101を保存しておく回路である。
The FIFO 4 takes into account the waiting time from when a read request to the buffer memory 3 is issued to when a read permission is issued, so that the coded signal can be output as soon as an output request from the decoder 7 is received. This is a circuit for reading out the encoded signal 101 from the buffer memory 3 earlier and storing the read-out coded signal 101.

【0017】その後、ステップ304にて、復号器7か
ら符号化信号の出力要求がなされるのを待ち、出力要求
がなされると、ステップ305に進んで、バッファメモ
リ3に蓄積されている符号化信号の残量がゼロかどうか
を残量検出回路6により判定し、ゼロでない場合に、ス
テップ306にて、FIFO4から符号化信号101を
読み出し、選択回路5の入力端子Aへ出力する。
After that, in step 304, the process waits for a request for output of a coded signal from the decoder 7. When the output request is made, the process proceeds to step 305, where the coding stored in the buffer memory 3 is performed. The remaining amount of the signal is determined by the remaining amount detection circuit 6 to determine whether it is zero. If not, the coded signal 101 is read from the FIFO 4 and output to the input terminal A of the selection circuit 5 at step 306.

【0018】通常、選択回路5は入力端子Aを選択して
おり、入力端子Aから入力された32ビット化された符
号化信号101を復号器7に出力する。この間、残量検
出回路6は、FIFO2、バッファメモリ3、FIFO
4それぞれの書き込み及び読み出し信号を常に監視して
残量を検出する。この残量検出回路6は、FIFO2、
バッファメモリ3、FIFO4の全ての残量が0である
と判断し、且つレジスタ回路1が符号化信号100を3
2ビット単位の符号化信号101に変換できていない時
に出力する末変換信号を受けると、選択回路5を入力端
子B側に切り換える。
Normally, the selection circuit 5 selects the input terminal A, and outputs the 32-bit encoded signal 101 input from the input terminal A to the decoder 7. During this time, the remaining amount detection circuit 6 includes the FIFO 2, the buffer memory 3, the FIFO
4 The respective remaining write and read signals are constantly monitored to detect the remaining amount. The remaining amount detection circuit 6 includes a FIFO2,
It is determined that all the remaining amounts of the buffer memory 3 and the FIFO 4 are 0, and the register circuit 1
When receiving the final converted signal that is output when the conversion into the 2-bit coded signal 101 has not been completed, the selection circuit 5 is switched to the input terminal B side.

【0019】ところで、8ビット単位の符号化信号10
0が例えば3個しかなく、ステップ302にて、レジス
タ回路1にて符号化信号を32ビット単位に変換できて
いないと判断された場合、ステップ307に進んで、復
号器7から出力要求されたかどうかを判定し、要求され
ない場合はステップ301に戻り、要求されると、ステ
ップ308に進む。
By the way, the encoded signal 10 in units of 8 bits
If there are only three 0's, for example, and it is determined in step 302 that the coded signal has not been converted in 32-bit units by the register circuit 1, the process proceeds to step 307, in which the output request from the decoder 7 has been made. If not, the process returns to step 301, and if so, the process proceeds to step 308.

【0020】ステップ308では、残量検出回路6がF
IFO2、FIFO4及びバッファメモリ3内の全ての
符号化信号101の残量がゼロかどうかを判定し、そう
でない場合はステップ301に戻り、ゼロであると、ス
テップ309にて、選択回路5を端子B側に切り換え
て、レジスタ回路1から、32ビットに変換されていな
い符号化信号100を直接復号器7に出力して、復号す
る。
In step 308, the remaining amount detecting circuit 6
It is determined whether the remaining amounts of all the coded signals 101 in the FIFO 2, the FIFO 4, and the buffer memory 3 are zero. If not, the process returns to step 301. Switching to the B side, the coded signal 100 not converted to 32 bits is directly output from the register circuit 1 to the decoder 7 for decoding.

【0021】この際、レジスタ回路1は32ビットに変
換されていない符号化信号100にダミー信号を付加し
て32ビットとし、これを復号器7に直接出力するた
め、どの信号が有効か無効かを区別するためのフラグを
復号器7に出力する。
At this time, the register circuit 1 adds a dummy signal to the coded signal 100 that has not been converted to 32 bits to make it 32 bits, and directly outputs this to the decoder 7, so that which signal is valid or invalid Is output to the decoder 7.

【0022】尚、上記では、入力される符号化信号10
0を8ビット、バッファメモリ3のビット幅を32ビッ
トとしているが、バッファメモリ3のビット幅が前記符
号化信号100のビット幅より大きくなっていれば、こ
れ以外の値でもよい。
In the above description, the input coded signal 10
Although 0 is 8 bits and the bit width of the buffer memory 3 is 32 bits, other values may be used as long as the bit width of the buffer memory 3 is larger than the bit width of the coded signal 100.

【0023】又、選択回路5は、FIFO2の残量が0
でない時で、且つ復号器7からの出力要求を受け取った
時に、選択信号300によって入力端子Aを選択してい
ればよい。又、選択回路5はFIFO2とバッファメモ
リ3とFIFO4の全ての残量が0であり、且つレジス
夕回路1に32ビット化されていない符号化信号100
がある時で復号器7からの出力要求を受け取った時に、
選択信号300によって入力端子Bを選択していればよ
い。又、符号化信号100の受信元はインターネット回
路線など放送・通信メディアに限るものではない。
The selection circuit 5 determines that the remaining amount of the FIFO 2 is zero.
Otherwise, it is sufficient that the input terminal A is selected by the selection signal 300 when the output request from the decoder 7 is received. Further, the selection circuit 5 outputs a coded signal 100 not having 32 bits to the register circuit 1 in which the remaining amounts of the FIFO 2, the buffer memory 3, and the FIFO 4 are all 0.
When there is an output request from the decoder 7 at a certain time,
What is necessary is that the input terminal B is selected by the selection signal 300. Further, the receiving source of the encoded signal 100 is not limited to broadcasting / communication media such as an Internet circuit line.

【0024】次に図2に示したレジスタ回路1の動作に
ついて説明する。符号化信号100は、入力信号が有効
かどうかを示す有効フラグ200と共に入力され、符号
化信号100は選択回路12、13、14、15に入力
され、有効フラグ200はカウンタ回路11に入力され
る。カウンタ回路11は、有効フラグ200が入力され
る毎にカウントアップし、選択信号51、52、53、
54を順番に発生して、選択回路12、13、14、1
5に出力する。
Next, the operation of the register circuit 1 shown in FIG. 2 will be described. The coded signal 100 is input together with a valid flag 200 indicating whether the input signal is valid. The coded signal 100 is input to the selection circuits 12, 13, 14, and 15, and the valid flag 200 is input to the counter circuit 11. . The counter circuit 11 counts up each time the valid flag 200 is input, and selects the selection signals 51, 52, 53,
54 are sequentially generated, and the selection circuits 12, 13, 14, 1
5 is output.

【0025】選択回路12とレジスタ16は、選択信号
51が有効であると符号化信号100を選択し、選択信
号51が無効な場合はレジスタ16に保持されている以
前の値を、レジスタ16に保持する。
The selection circuit 12 and the register 16 select the coded signal 100 when the selection signal 51 is valid. When the selection signal 51 is invalid, the previous value held in the register 16 is stored in the register 16. Hold.

【0026】同様に、選択回路13とレジスタ17、選
択回路14とレジスタ18、選択回路15とレジスタ1
9は、それぞれ選択信号52、選択信号53、選択信号
54が有効であると、符号化信号100を選択し、各選
択信号52、53、54が無効な場合は以前の値をレジ
スタに保持する回路を構成する。
Similarly, the selection circuit 13 and the register 17, the selection circuit 14 and the register 18, the selection circuit 15 and the register 1
9 selects the encoded signal 100 when the selection signal 52, the selection signal 53, and the selection signal 54 are valid, and holds the previous value in the register when the selection signals 52, 53, and 54 are invalid. Configure the circuit.

【0027】例えば、符号化信号100の入力する順序
をl、2、3、...とすると、4n−3番目(n=
1、2、3…)に入力する符号化信号100を選択回路
12とレジスタ16とで保持し、4n−2番目に入力す
る符号化信号100を選択回路13とレジスタ17とで
保持し、4n−1番目に入力する符号化信号100を選
択回路14とレジスタ18とで保持し、4n番目に入力
する符号化信号100を選択回路15とレジスタ19と
で保持する。
For example, the input order of the coded signal 100 is 1, 2, 3,. . . Then, the 4n-3rd (n =
1, 2, 3...) Are held by the selection circuit 12 and the register 16, and the 4n−2nd input coded signal 100 is held by the selection circuit 13 and the register 17, and 4n The first input coded signal 100 is held by the selection circuit 14 and the register 18, and the 4nth input coded signal 100 is held by the selection circuit 15 and the register 19.

【0028】その後、レジスタ16とレジスタ17とレ
ジスタ18とレジスタ19で保持された信号を多重化す
ると、32ビット単位に変換された符号化信号101が
生成される。尚、上記の4n−3、4n−2、4n−
1、4nは、符号化信号100を8ビット、バッファメ
モリ3のビット幅を32ビットとする場合に符号化信号
100の入力順序を示す数式であり、これに限るもので
はない。例えば符号化信号100を6ビット、バッファ
メモリ3のビット幅を18ビットとすると、3n−2、
3n−1、3nで表現できる。
Thereafter, when the signals held in the registers 16, 17, 17, and 19 are multiplexed, an encoded signal 101 converted in units of 32 bits is generated. The above 4n-3, 4n-2, 4n-
1, 4n are mathematical expressions indicating the input order of the coded signal 100 when the coded signal 100 is 8 bits and the bit width of the buffer memory 3 is 32 bits, and is not limited thereto. For example, if the encoded signal 100 is 6 bits and the bit width of the buffer memory 3 is 18 bits, 3n-2,
3n-1, 3n.

【0029】尚、21はカウンタ回路11のカウント値
から符号化信号100を32ビットにできていないこと
を知らせる末変換信号を作成する信号生成部で、この信
号が図1の残量検出回路6に出力される。又、22はカ
ウンタ回路1のカウント値より出力される符号化信号1
00のダミー信号を区別するための信号の有効、無効を
示すフラグを作成して、復号器7に出力するフラグ生成
器である。
Reference numeral 21 denotes a signal generator for generating a converted signal for notifying that the encoded signal 100 cannot be converted into 32 bits from the count value of the counter circuit 11, and this signal is used as the signal generator 6 in FIG. Is output to Reference numeral 22 denotes an encoded signal 1 output from the count value of the counter circuit 1.
It is a flag generator that creates a flag indicating whether the dummy signal of 00 is valid or invalid and outputs it to the decoder 7.

【0030】図4は上記したレジスタ回路1の具体的な
信号処理例を示した図である。入力される符号化信号1
00が8ビットで、バッファメモリ3のビット幅が32
ビットの場合を例に、入力される符号化信号100のビ
ット数がバッファメモリ3のビット幅に対して余りが生
じるパターンについて説明する。符号化信号100が7
データ分入力するものとする。図中a、b、c、d、
e、f、g、は、入力する符号化信号の値であり、xは
無効のダミー信号である。
FIG. 4 is a diagram showing a specific signal processing example of the register circuit 1 described above. Input coded signal 1
00 is 8 bits and the bit width of the buffer memory 3 is 32
A pattern in which the number of bits of the input coded signal 100 has a remainder with respect to the bit width of the buffer memory 3 will be described using the case of bits as an example. If the encoded signal 100 is 7
It is assumed that data is input. In the figure, a, b, c, d,
e, f, and g are the values of the input coded signal, and x is an invalid dummy signal.

【0031】図4(A)に示すように、有効フラグ20
0が“1”の期間、図4(B)に示すように符号化信号
の値a、b、c、dが入力されると、これら値はそれぞ
れレジスタ16、レジスタ17、レジスタ18、レジス
タ19に図4(C)、(D)、(E)、(F)に示すよ
うに保存され、符号化信号の値dがレジスタ4に保存さ
れた時点で、図4(G)に示すように符号化信号a、
b、c、dはabcdという値に揃えられ、32ビット
化される。
As shown in FIG. 4A, the valid flag 20
When the values a, b, c, and d of the coded signal are input as shown in FIG. 4B while 0 is “1”, these values are respectively stored in the register 16, the register 17, the register 18, and the register 19. 4 (C), (D), (E), and (F), and when the value d of the encoded signal is stored in the register 4, as shown in FIG. Encoded signal a,
b, c, and d are aligned to the value abcd, and are made into 32 bits.

【0032】次に図4(B)に示すように符号化信号1
00の値e、f、gが入力されると、これら値は同様に
レジスタ16、レジスタ17、レジスタ18に図4
(C)、(D)、(E)に示すように保存されるが、符
号化信号が24ビット分しか入力しないため、図4
(G)に示すように符号化信号e、f、gは、efgと
いう値となり32ビット化されない。
Next, as shown in FIG.
When the values e, f, and g of 00 are input, these values are similarly stored in the registers 16, 17, and 18 as shown in FIG.
(C), (D), and (E) are stored as shown in FIG.
As shown in (G), the encoded signals e, f, and g have a value of efg and are not converted into 32 bits.

【0033】このように、入力される符号化信号100
のビット数が32の倍数でない時、バッファメモリ3の
ビット幅に対して余りを生じることになる。但し、バッ
ファメモリ3のビット幅が前記符号化信号100のビッ
ト幅より大きくなっていれば、これ以外の値でもよい。
例えば、符号化信号100を4ビット、バッファメモリ
3のビット幅を16ビットとしてもよい。即ち、符号化
信号100の入力されるビット数がバッファメモリ3の
ビット幅の倍数でない時、バッファメモリ3のビット幅
に対して余りを生じることになる。
As described above, the input coded signal 100
Is not a multiple of 32, the bit width of the buffer memory 3 has a remainder. However, other values may be used as long as the bit width of the buffer memory 3 is larger than the bit width of the coded signal 100.
For example, the encoded signal 100 may be 4 bits, and the bit width of the buffer memory 3 may be 16 bits. That is, when the number of input bits of the coded signal 100 is not a multiple of the bit width of the buffer memory 3, a remainder is generated with respect to the bit width of the buffer memory 3.

【0034】本実施の形態によれば、バッファメモリ
3、FIFO2、4等に保持された符号化信号の残量が
ゼロで、レジスタ回路1が符号化信号100を32ビッ
ト化できていない場合でも、この32ビット化できない
符号化信号にダミー信号を付加した信号を直接復号器7
に出力することにより、復号することができる。これに
より、符号化信号100の入力ビット数がバッファメモ
リ3のビット幅に対して余りが生じる場合でも、回路規
模を増大させたり、或いは制御を複雑にすることなく、
簡単な構成にて、入力される全ての符号化信号を復号器
7にて復号することができる。
According to the present embodiment, even when the remaining amount of the coded signal held in the buffer memories 3, FIFO2, 4 and the like is zero and the register circuit 1 cannot convert the coded signal 100 into 32 bits, A signal obtained by adding a dummy signal to the coded signal that cannot be converted to 32 bits is directly decoded by the decoder 7.
, And can be decoded. Thereby, even when the number of input bits of the coded signal 100 has a surplus with respect to the bit width of the buffer memory 3, without increasing the circuit scale or complicating the control,
With a simple configuration, all the input coded signals can be decoded by the decoder 7.

【0035】図5は本発明の復号装置の第2の実施の形
態を示したブロック図である。但し、第1の実施の形態
に対応する部分は同一符号を付し、適宜その説明は省略
する。本例は復号器7が復号対象の符号化信号の出力要
求をしない場合の構成例で、しかも、入力される8ビッ
トの符号化信号100のビット数がバッファメモリ3の
ビット幅の倍数でない時、32ビットに変換できていな
い符号化信号100にダミー信号を付加せず、そのま
ま、復号器7に直接出力する構成を有している。
FIG. 5 is a block diagram showing a second embodiment of the decoding device of the present invention. However, portions corresponding to the first embodiment are denoted by the same reference numerals, and description thereof will be omitted as appropriate. This example is a configuration example in which the decoder 7 does not request output of an encoded signal to be decoded, and when the number of bits of the input 8-bit encoded signal 100 is not a multiple of the bit width of the buffer memory 3. , 32 bits are not directly added to the coded signal 100 that has not been converted to 32 bits, and are directly output to the decoder 7 as they are.

【0036】レジスタ回路1は入力符号化信号100を
32ビット化すると、これをFIFO2を介してバッフ
ァメモリ3に書き込む。本例も、通常は、選択回路5は
端子A側に切り替わっており、バッファメモリ3から3
2ビット単位で読み出された符号化信号101はFIF
O4、選択回路5を介して復号器7に出力され、ここで
復号する。
When the input coded signal 100 is converted into 32 bits, the register circuit 1 writes it into the buffer memory 3 via the FIFO 2. Also in this example, normally, the selection circuit 5 is switched to the terminal A side, and the buffer memories 3 to 3
The encoded signal 101 read in units of 2 bits is
O4, output to the decoder 7 via the selection circuit 5, where it is decoded.

【0037】一方、レジスタ回路1にて入力符号化信号
100が32ビット化されず、且つ残量検出回路6がF
IFO2、バッファメモリ3、FIFO4の全ての信号
の残量をゼロであると検出すると、選択回路5は端子B
側に切り替わり、レジスタ回路1から32ビット化され
ていない符号化信号100が選択回路5を介して、直接
復号器7に出力され、ここで復号される。
On the other hand, the input coded signal 100 is not converted into 32 bits by the register circuit 1, and the remaining amount detection circuit 6
When it is detected that the remaining amounts of all the signals in the FIFO 2, the buffer memory 3, and the FIFO 4 are zero, the selection circuit 5 outputs the signal to the terminal B
The coded signal 100 that has not been converted into 32 bits from the register circuit 1 is output directly to the decoder 7 via the selection circuit 5 and decoded there.

【0038】レジスタ回路1から直接復号器7に出力さ
れる32ビット化されていない符号化信号100はダミ
ー信号が付加されていないものとし、復号器7は32ビ
ット化されていない符号化信号100を単に復号する。
It is assumed that the 32-bit coded signal 100 directly output from the register circuit 1 to the decoder 7 does not have a dummy signal added thereto, and the decoder 7 outputs the 32-bit coded signal 100 Simply decrypts

【0039】本実施の形態も図1に示した第1の実施の
形態と同様の効果があるが、復号器7が符号化信号の出
力要求を行わないことや、或いはレジスタ回路1から出
力される32ビット化されていない符号化信号100に
ダミー信号が付加されていないため、第1の実施の形態
よりも構成を簡単化することができる。
This embodiment has the same effect as that of the first embodiment shown in FIG. 1, except that the decoder 7 does not request the output of the coded signal, or the output from the register circuit 1 Since the dummy signal is not added to the coded signal 100 that has not been converted into 32 bits, the configuration can be simplified as compared with the first embodiment.

【0040】[0040]

【発明の効果】以上詳細に説明したように、本発明の復
号装置及び方法によれば、回路規模の増大や制御の複雑
さを招くことなく、簡単な回路構成にて入力される全て
の符号化信号を復号することができる。
As described above in detail, according to the decoding apparatus and method of the present invention, all codes inputted with a simple circuit configuration can be obtained without increasing the circuit scale or complicating the control. The decoded signal can be decoded.

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

【図1】本発明の復号装置の第1の実施の形態を示した
ブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a decoding device of the present invention.

【図2】図1に示したレジスタ回路の構成例を示したブ
ロック図である。
FIG. 2 is a block diagram illustrating a configuration example of a register circuit illustrated in FIG. 1;

【図3】図1に示した装置の動作手順を示したフローチ
ャート。
FIG. 3 is a flowchart showing an operation procedure of the apparatus shown in FIG. 1;

【図4】図1、図2に示したレジスタ回路の具体的な動
作例を説明する図である。
FIG. 4 is a diagram illustrating a specific operation example of the register circuit shown in FIGS. 1 and 2;

【図5】本発明の復号装置の第2の実施の形態を示した
ブロック図である。
FIG. 5 is a block diagram showing a second embodiment of the decoding device of the present invention.

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

1 レジスタ回路 2、4 FIFO 3 バッファメモリ 5、12〜15 選択回路 6 残量検出回路 7 復号器 11 カウンタ回路 16〜19 レジスタ 21 信号生成部 22 フラグ生成器 REFERENCE SIGNS LIST 1 register circuit 2, 4 FIFO 3 buffer memory 5, 12 to 15 selection circuit 6 remaining amount detection circuit 7 decoder 11 counter circuit 16 to 19 register 21 signal generation unit 22 flag generator

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 入力される符号化信号を所定ビット単位
に変換して、メモリに一旦蓄積した後、前記メモリから
符号化信号を読み出して、これを復号器により復号する
復号装置において、 入力される符号化信号が所定ビット単位に変換できたか
否かを検出する検出手段と、 この検出手段により前記符号化信号が所定ビット単位に
変換できていないことが検出されると、所定ビット単位
に変換できていない符号化信号を前記メモリに蓄積する
ことなく、直接前記復号器に出力して復号する制御手段
とを備えたことを特徴とする復号装置。
1. A decoding device for converting an input coded signal into a predetermined bit unit, temporarily storing the coded signal in a memory, reading the coded signal from the memory, and decoding the coded signal by a decoder. Detecting means for detecting whether or not the coded signal has been converted into a predetermined bit unit; and converting the coded signal into a predetermined bit unit when the detecting means detects that the coded signal has not been converted into the predetermined bit unit. Control means for directly outputting the unencoded coded signal to the decoder without storing the coded signal in the memory, and decoding the decoded signal.
【請求項2】 前記制御手段は所定ビット単位に変換で
きていない符号化信号にダミー信号を付加して所定ビッ
ト単位にして、これを前記復号器に直接出力することを
特徴とする請求項1記載の復号装置。
2. The apparatus according to claim 1, wherein said control means adds a dummy signal to the coded signal which has not been converted into a predetermined bit unit, converts the coded signal into a predetermined bit unit, and directly outputs this to the decoder. The decoding device according to any one of the preceding claims.
【請求項3】 所定ビット単位に変換した符号化信号を
一旦保持するFIFO回路と、 前記メモリから読み出した符号化信号を一旦保持するF
IFO回路を設け、 これらFIFO回路と前記メモリ内の符号化信号の残量
が全てゼロであって、且つ前記検出手段により前記符号
化信号が所定ビット単位に変換できていないことが検出
された場合、前記制御手段は所定ビット単位に変換でき
ていない符号化信号を直接前記復号器に出力することを
特徴とする請求項1又は2記載の復号装置。
3. An FIFO circuit for temporarily holding an encoded signal converted in a predetermined bit unit, and an F for temporarily holding an encoded signal read from the memory.
An IFO circuit is provided, and when the remaining amount of the coded signal in the FIFO circuit and the memory is all zero and the detecting means detects that the coded signal cannot be converted into a predetermined bit unit 3. The decoding apparatus according to claim 1, wherein said control means directly outputs an encoded signal which has not been converted into a predetermined bit unit to said decoder.
【請求項4】 入力される符号化信号を所定ビット単位
に変換して、メモリに一旦蓄積した後、前記メモリから
符号化信号を読み出して、これを復号する復号方法にお
いて、 入力される符号化信号が所定ビット単位に変換できてい
ないことを検出する過程と、前記入力される符号化信号
が所定ビット単位に変換できていないことが検出される
と、この所定ビット単位に変換できていない符号化信号
を前記メモリに蓄積することなく、直接前記復号器に出
力して復号する過程とを備えたことを特徴とする復号方
法。
4. A decoding method for converting an input coded signal into a predetermined bit unit, temporarily storing the coded signal in a memory, reading the coded signal from the memory, and decoding the coded signal. A step of detecting that the signal has not been converted to the predetermined bit unit, and a step of detecting that the input coded signal has not been converted to the predetermined bit unit. And directly decoding the decoded signal without storing it in the memory.
JP603998A 1998-01-14 1998-01-14 Decoding device and its method Pending JPH11203447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP603998A JPH11203447A (en) 1998-01-14 1998-01-14 Decoding device and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP603998A JPH11203447A (en) 1998-01-14 1998-01-14 Decoding device and its method

Publications (1)

Publication Number Publication Date
JPH11203447A true JPH11203447A (en) 1999-07-30

Family

ID=11627510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP603998A Pending JPH11203447A (en) 1998-01-14 1998-01-14 Decoding device and its method

Country Status (1)

Country Link
JP (1) JPH11203447A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011217138A (en) * 2010-03-31 2011-10-27 Sony Corp Encoder and encoding method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011217138A (en) * 2010-03-31 2011-10-27 Sony Corp Encoder and encoding method

Similar Documents

Publication Publication Date Title
EP0751684B1 (en) Decoding information pages having header information and page data
US4497055A (en) Data error concealing method and apparatus
KR970019656A (en) Subtitle Encoding and Decoding Apparatus and Method
EP0825784A2 (en) Apparatus and method for transmitting data
JPH11163817A (en) Digital encoding multiplexer
US5923815A (en) Apparatus and method for decoding MPEG video data
US4955061A (en) Method and apparatus for processing an image signal
JPH0664862B2 (en) Digital image recording / reproducing device
JPH11203447A (en) Decoding device and its method
US20060133474A1 (en) Encoder and its method
US4701914A (en) Apparatus for correcting cyclic code data stored in memory and method therefor
EP0831661B1 (en) Apparatus for decoding variable length coded data
US6038692A (en) Error correcting memory system
US20060015795A1 (en) Audio data processor
US20050018577A1 (en) Playback apparatus
US6788634B1 (en) Playback apparatus
US20020057742A1 (en) Sorting device of variable-length code
JP2007300160A (en) Digital signal switching apparatus and switching method thereof
KR100223050B1 (en) Variable length encoder of header information for mpeg-2 image compression
US6895596B1 (en) Circuit and method for interleaving a data stream
JP2668473B2 (en) Buffer memory output method
JP3108243B2 (en) Encoding and decoding device
KR100273257B1 (en) Data decoder and method of audio decoder
KR100243186B1 (en) Video cd decoder of a variable transmission method
JPH0642661B2 (en) Communication device