JP3301264B2 - Decoding circuit of compressed video playback device - Google Patents
Decoding circuit of compressed video playback deviceInfo
- Publication number
- JP3301264B2 JP3301264B2 JP7278295A JP7278295A JP3301264B2 JP 3301264 B2 JP3301264 B2 JP 3301264B2 JP 7278295 A JP7278295 A JP 7278295A JP 7278295 A JP7278295 A JP 7278295A JP 3301264 B2 JP3301264 B2 JP 3301264B2
- Authority
- JP
- Japan
- Prior art keywords
- code
- area
- data
- circuit
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Television Signal Processing For Recording (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、圧縮動画像再生装置の
復号回路において、コード化され、パッキングされたデ
ータを効率よくデコードするためにデパックするデパッ
キング処理に係わり、少ないメモリでデパッキング処理
を実現可能とするための回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a depacking process for decoding coded and packed data efficiently in a decoding circuit of a compressed moving picture reproducing apparatus. And a circuit for realizing the above.
【0002】[0002]
【従来の技術】圧縮動画像再生装置の復号回路における
デパッキング回路は、動画像圧縮符号化装置等により、
磁気テープ等の記録媒体に記録するためにパッキング処
理を施された画像データをデコードするために取り出す
回路である。2. Description of the Related Art A depacking circuit in a decoding circuit of a compressed moving picture reproducing apparatus is constituted by a moving picture compression encoding apparatus or the like.
This is a circuit for extracting image data that has been subjected to packing processing for recording on a recording medium such as a magnetic tape, for decoding.
【0003】パッキング,デパッキングに関しては、特
開平4−79681号公報や特開平3−262332号
公報等に述べられている。[0003] Packing and depacking are described in JP-A-4-79681 and JP-A-3-262332.
【0004】本発明における圧縮動画像再生装置におけ
る復号回路に入力される圧縮動画像データは、例えば、
松下,ソニー,フィリップス,トムソンの4社を幹事会
社とするHDディジタルVTR協議会で規格化されたフ
ォーマット、即ちDVC(Digital VCR f
or Consumer use)と呼ばれる画像圧縮
方式に従った圧縮動画像データである。[0004] The compressed moving image data input to the decoding circuit in the compressed moving image reproducing apparatus of the present invention is, for example,
A format standardized by the HD Digital VTR Council, which is led by Matsushita, Sony, Philips, and Thomson, ie, DVC (Digital VCR f
or Consumer use) is compressed moving image data according to an image compression method called "consumer use".
【0005】圧縮動画像再生装置における復号回路に入
力される圧縮動画像データを生成する動画像圧縮装置
で、入力される画像データは次のような仕様である。現
行TV対応の家庭用ディジタルVTR規格案であるSD
フォーマットの場合、[4:1:1]フォーマットで
は、入力画像データは輝度(Y)720画素×480ラ
イン、色差(CR,CB)180画素×480ラインで
構成されるフレームであり、輝度のサンプリング周波数
は13.5MHzである。[0005] In a moving picture compression apparatus for generating compressed moving picture data to be input to a decoding circuit in a compressed moving picture reproducing apparatus, the input image data has the following specifications. SD, which is a standard digital VTR standard for home use compatible with current TV
In the case of the format, in the [4: 1: 1] format, the input image data is a frame composed of 720 pixels × 480 lines of luminance (Y) and 180 pixels × 480 lines of color difference (CR, CB). The frequency is 13.5 MHz.
【0006】フレーム上8×8画素でDCTブロックが
構成され、更に6個のDCTブロックによってマクロブ
ロックが構成される。マクロブロックを構成するDCT
ブロックは、四つの輝度(Y)ブロックと二つの色差ブ
ロック(CR,CB)から成る。更に五つのマクロブロ
ックにより圧縮データ量一定化の単位であるビデオセグ
メントが構成される。A DCT block is composed of 8 × 8 pixels on a frame, and a macroblock is composed of six DCT blocks. DCT constituting a macroblock
The block includes four luminance (Y) blocks and two color difference blocks (CR, CB). Further, a video segment as a unit for fixing the amount of compressed data is constituted by five macro blocks.
【0007】また、HDTV対応の家庭用ディジタルV
TR規格案であるHDフォーマットでは、[12:4:
0]フォーマットの場合、入力画像データは輝度100
8画素×1024ライン、色差336画素×512ライ
ンのフレームであり、輝度のサンプリング周波数は4
0.5MHzである。このとき1フレームは42×64
マクロブロックであるが、まず45×60マクロブロッ
クのフレームに変換し、動画像圧縮符号化装置では変換
されたフレームに対して処理を行う。[0007] Also, HDTV-compatible home digital V
In the HD format, which is a draft of the TR standard, [12: 4:
0] format, the input image data has a luminance of 100
It is a frame of 8 pixels × 1024 lines and 336 pixels × 512 lines of color difference, and the sampling frequency of the luminance is 4
0.5 MHz. At this time, one frame is 42 × 64
The macroblock is first converted into a frame of 45 × 60 macroblock, and the moving image compression encoding apparatus performs processing on the converted frame.
【0008】動画像圧縮符号化装置で圧縮される画像デ
ータは、磁気テープ等の記録媒体に記録されるためにパ
ッキング処理が施される。図4に示すように、パッキン
グでは、1ビデオセグメント(5マクロブロック)分の
データを五つのシンクブロックに配置する。各シンクブ
ロックに配置されるデータの集まりをユニットと呼ぶ。
1ビデオセグメント分のデータ量は、レートコントロー
ルにより、5ユニット分のデータ量以下に抑えられてい
る。[0008] The image data compressed by the moving image compression encoding apparatus is subjected to a packing process in order to be recorded on a recording medium such as a magnetic tape. As shown in FIG. 4, in packing, data for one video segment (5 macroblocks) is arranged in five sync blocks. A collection of data arranged in each sync block is called a unit.
The data amount for one video segment is suppressed to less than the data amount for 5 units by rate control.
【0009】一つのユニットは一つのマクロブロックに
対応している。ユニットの中には、各DCTブロックに
対応した六つのDCTエリア(Yは14バイト、CR,
CBは10バイト)が用意されている。パッキングで
は、このDCTエリアにAC係数のハフマンコードに変
換されたデータを配置する。One unit corresponds to one macro block. In the unit, there are six DCT areas corresponding to each DCT block (Y is 14 bytes, CR,
(CB is 10 bytes). In the packing, data converted into Huffman codes of AC coefficients is arranged in this DCT area.
【0010】ハフマンコードへの変換は、量子化された
各DCTブロックのAC係数データ(二次元)をジグザ
グスキャンにより一次元のデータに並び替えた後、0の
続く数(0ラン)とその直後の係数値の組み合わせをエ
ントリーとすることにより行われる。また、各DCTブ
ロックの終わりには、4ビットのEOBコードを追加す
る。[0010] The conversion into the Huffman code is performed by rearranging the quantized AC coefficient data (two-dimensional) of each DCT block into one-dimensional data by zigzag scanning. This is performed by using the combination of the coefficient values as the entry. At the end of each DCT block, a 4-bit EOB code is added.
【0011】パッキング処理では、3段階の処理(パス
1,パス2,パス3)でDCTエリアへのハフマンコー
ドデータの配置を行う。一旦、バッファメモリに蓄えら
れた1ビデオセグメント分のデータは、パス1で、各D
CTブロックの符号がそれぞれの固定エリアがいっぱい
になるまで詰め込められ、溢れたデータは先頭のDCT
ブロックから順につなげてユニット毎に超過データ用メ
モリ1に蓄えられる。パス2では、パス1で溢れたデー
タは同一ユニット内の空き領域に先頭から順に詰め込め
られる。それでも溢れたデータは、先頭のユニットから
順につなげて5ユニット分超過データ用メモリ2に蓄え
られる。パス3では、パス2で溢れたデータは、5ユニ
ット全体の空き領域に先頭から順に詰め込められる。In the packing process, Huffman code data is arranged in the DCT area in three stages (pass 1, pass 2, pass 3). The data for one video segment once stored in the buffer memory
The code of the CT block is packed until each fixed area becomes full, and the overflow data is the first DCT.
The excess data is stored in the excess data memory 1 for each unit by sequentially connecting the blocks. In pass 2, data overflowing in pass 1 is sequentially packed from the beginning into a free area in the same unit. The overflowing data is stored in the excess data memory 2 for 5 units by sequentially connecting the data from the head unit. In pass 3, the data overflowing in pass 2 is packed in the empty area of all five units from the beginning.
【0012】圧縮動画像再生装置の復号回路におけるデ
パッキング回路は、1ビデオセグメント(5ユニット)
をデータ量一定の単位としてパッキングされたハフマン
コードデータをデパックする回路である。The depacking circuit in the decoding circuit of the compressed moving picture reproducing apparatus has one video segment (5 units).
Is a circuit for depacking the packed Huffman code data with a constant data amount unit.
【0013】ここで、1ビデオセグメント分のデパッキ
ング処理は、つぎの手順で行われる。まず、前記パッキ
ング処理のパス1でパッキングされたコード(ACL)
を1マクロブロック分デコードする。つぎにパス2でパ
ッキングされたコード(ACM)を1マクロブロック分
デコードする。以上の操作を5マクロブロック分繰り返
した後に、パス3でパッキングされたコード(ACH)
をデコードする。The depacking process for one video segment is performed in the following procedure. First, the code (ACL) packed in pass 1 of the packing process
Is decoded for one macroblock. Next, the code (ACM) packed in pass 2 is decoded for one macroblock. After repeating the above operation for 5 macroblocks, the code (ACH) packed in pass 3
To decode.
【0014】[0014]
【発明が解決しようとする課題】パッキング処理では、
前記の通り1ビデオセグメント分のデータを一旦蓄える
一つのバッファメモリと、超過分のデータを蓄える二つ
のメモリの計三つのメモリを必要とする。デパッキング
処理でも、単純にパッキングと逆の処理を行えば、三つ
のメモリが必要となる。In the packing process,
As described above, a total of three memories are required, one buffer memory for temporarily storing data for one video segment and two memories for storing excess data. In the depacking process, three processes are required if the process is simply performed in the reverse of the packing.
【0015】本発明の目的は、圧縮動画像再生装置の復
号回路におけるデパッキング回路で、圧縮された入力動
画像データに対し、従来よりも少ないメモリ容量でデパ
ッキング処理を実現可能とすることにある。An object of the present invention is to enable a depacking circuit in a decoding circuit of a compressed moving picture reproducing apparatus to realize depacking processing on compressed input moving picture data with a smaller memory capacity than before. is there.
【0016】[0016]
【課題を解決するための手段】上記の目的を達成するた
め、圧縮動画像再生装置の復号回路におけるデパッキン
グ回路で、1ビデオセグメント分のハフマンコードデー
タを蓄えるバッファメモリ手段と、前記バッファメモリ
手段より出力されたコードデータを符号長情報によりビ
ットシフトをしてラッチ出力するバレルシフタ手段と、
前記バレルシフタ手段により出力されたコードデータを
デコードし、符号長を返すデコード手段と、前記バッフ
ァメモリ手段から第1、第2、第3ステップに分けてデ
ータを読み出すメモリ制御手段と、デコード中のブロッ
クを識別するブロックアドレスを発生するブロックアド
レス生成手段とを備え、前記ブロックアドレス生成手段
の発生したブロックアドレスにより、前記メモリ制御手
段は前記第1、第2および第3ステップの切り換えを行
う構成とした。さらに、どのマクロブロックのどこのD
CTブロックをデコードしているかを示すブロックカウ
ント手段と、どのユニットのどこのエリアをデコードし
ているかを示すエリアカウント手段と、EOBが発見さ
れたことを示すフラグをブロック毎に蓄えるフラグメモ
リ手段と、エリアのデコードがEOBで終わっているか
どうかを示すフラグをエリア毎に蓄えるフラグメモリ手
段と、エリア内にデコードすべきコードがないことを示
すノーコードフラグ(NC)を発生するエリア終了検出
手段と、エリア内のコードのデコードが何バイト目の何
ビットまで終了したかを記憶しておくコードアドレス記
憶手段を設けた。In order to achieve the above object, a buffer memory means for storing Huffman code data for one video segment in a depacking circuit in a decoding circuit of a compressed moving picture reproducing apparatus, and said buffer memory means Barrel shifter means for performing a bit shift on the output code data according to the code length information and latching the output,
Decoding the output code data by said barrel shifter means, a decoding means for returning a code length, the buffer
Data from the memory means into first, second and third steps.
Memory control means for reading data and the block being decoded.
Block address that generates the block address that identifies the block
Address generation means, and the block address generation means
The memory control procedure is performed according to the block address where
The stage switches between the first, second and third steps.
Configuration. Furthermore, which D in which macroblock
Block count means for indicating whether a CT block is being decoded, area count means for indicating which area of which unit is being decoded, and flag memory means for storing a flag indicating that an EOB is found for each block. Flag memory means for storing, for each area, a flag indicating whether or not decoding of the area ends with EOB, and area end detecting means for generating a no code flag (NC) indicating that there is no code to be decoded in the area. Further, a code address storage means is provided for storing the number of bytes and the number of bits for which decoding of the code in the area is completed.
【0017】[0017]
【作用】入力されたコードデータに対しデパッキング処
理を行う場合に、バッファメモリ手段は1ビデオセグメ
ント分のハフマンコードデータを蓄え、バレルシフタ手
段は符号長情報によりデコードされずに残されたコード
データに対しビットシフトを行い、そのビットシフトし
たコードデータにバッファメモリ手段により出力された
コードデータを加えて次にデコードすべきコードデータ
とする。デコード手段は、バレルシフタ手段より受け取
ったコードデータをデコードし、ゼロラン、エントリー
のデコードデータ、EOB信号、及び符号長データを出
力する。When performing depacking processing on input code data, the buffer memory stores Huffman code data for one video segment, and the barrel shifter stores the Huffman code data that has not been decoded by the code length information. On the other hand, a bit shift is performed, and the code data output by the buffer memory means is added to the bit-shifted code data to obtain code data to be decoded next. The decoding means decodes the code data received from the barrel shifter means and outputs zero-run, entry decode data, an EOB signal, and code length data.
【0018】ブロックカウント手段は、どのマクロブロ
ックのどこのDCTブロックをデコードしているかを示
すアドレスを出力する。エリアカウント手段は、どのユ
ニットのどのエリアをデコードしているかを示すアドレ
スを出力する。さらに、フラグメモリ手段はデコードが
終了したことを示すブロック毎のEOBのフラグ、或い
はエリアのデコードがEOBで終わっているかどうかを
示すエリア毎のフラグを蓄える。The block counting means outputs an address indicating which DCT block of which macro block is being decoded. The area counting means outputs an address indicating which area of which unit is being decoded. Further, the flag memory means stores an EOB flag for each block indicating that decoding has been completed, or a flag for each area indicating whether or not decoding of the area ends with EOB.
【0019】エリア終了検出手段は、DCTエリアに蓄
えられていたコードデータを全てデコードし、もうデコ
ードすべきコードデータがエリア内にないことを示すノ
ーコード信号を発生する。コードアドレス記憶手段はエ
リアカウント手段より受け取ったエリアアドレスにデコ
ード回路より受け取った符号長を加算し、デコードがエ
リアのどこまで進んだかを覚えておき、バイト及びビッ
ト情報を出力する。The area end detecting means decodes all the code data stored in the DCT area, and generates a no code signal indicating that there is no more code data to be decoded in the area. The code address storage means adds the code length received from the decode circuit to the area address received from the area count means, remembers how far the decoding has progressed in the area, and outputs byte and bit information.
【0020】以上の手段を用いることにより、本発明に
よるデパッキング回路では、パッキングされたコードを
そのまま蓄えるコードメモリ以外に特にバッファメモリ
を持たず、コードメモリへのアドレスを制御することの
みで必要なコードにアクセスする方式でデパッキング処
理を行うことができる。By using the above means, the depacking circuit according to the present invention does not have a buffer memory other than the code memory for storing the packed code as it is, and only needs to control the address to the code memory. The depacking process can be performed by accessing the code.
【0021】[0021]
【実施例】図1に本発明における圧縮動画像再生装置の
復号回路におけるデパッキング回路のACLデータを処
理する場合の第一の実施例のブロック図を示す。FIG. 1 is a block diagram showing a first embodiment in which ACL data of a depacking circuit in a decoding circuit of a compressed moving picture reproducing apparatus according to the present invention is processed.
【0022】コード入力端子1はバッファメモリ2にハ
フマンコードデータを供給し、バッファメモリ2は、バ
レルシフタ3にデータを供給している。さらにバレルシ
フタ3は、デコード回路4にデコードすべきコードデー
タを供給している。デコード回路4でデコードされたデ
ータはデコードデータ出力端子5に出力され、EOB信
号が検出された場合は、EOB信号出力端子6、ブロッ
クカウント回路7、フラグメモリ8、エリアカウント回
路9、及びフラグメモリ10に出力信号を供給する。さ
らにデコード回路4は、符号長データをバレルシフタ
3、エリア終了検出回路13、及びコードアドレス記憶
回路12に出力する。The code input terminal 1 supplies Huffman code data to a buffer memory 2, and the buffer memory 2 supplies data to a barrel shifter 3. Further, the barrel shifter 3 supplies code data to be decoded to the decoding circuit 4. The data decoded by the decoding circuit 4 is output to a decoded data output terminal 5, and when an EOB signal is detected, an EOB signal output terminal 6, a block count circuit 7, a flag memory 8, an area count circuit 9, and a flag memory 10 to provide an output signal. Further, the decoding circuit 4 outputs the code length data to the barrel shifter 3, the area end detection circuit 13, and the code address storage circuit 12.
【0023】ブロックカウント回路7は、フラグメモリ
8と接続され、ブロックカウント回路7から出力される
ブロックアドレスは、ブロックアドレス出力端子11及
びフラグメモリ8に出力される。The block count circuit 7 is connected to the flag memory 8, and the block address output from the block count circuit 7 is output to the block address output terminal 11 and the flag memory 8.
【0024】エリアカウント回路9は、フラグメモリ1
0と接続され、エリアカウント回路9から出力されるエ
リアアドレスは、コードアドレス記憶回路12とフラグ
メモリ10に出力される。The area count circuit 9 includes a flag memory 1
The area address which is connected to 0 and output from the area count circuit 9 is output to the code address storage circuit 12 and the flag memory 10.
【0025】コードアドレス記憶回路は、バイト情報と
ビット情報をエリア終了検出回路13に出力し、さらに
バイト情報をバッファメモリ2に、ビット情報をバレル
シフタ3に供給する。The code address storage circuit outputs the byte information and the bit information to the area end detection circuit 13, and supplies the byte information to the buffer memory 2 and the bit information to the barrel shifter 3.
【0026】本発明におけるデパッキング回路の基本的
動作は、つぎの通りである。まず、バッファメモリ2
は、コード入力端子1から供給される1ビデオセグメン
ト分のハフマンコードデータを蓄える。デコード回路4
は、バレルシフタ3から供給されるコードデータをデコ
ードし、デコードデータやEOB信号を出力するととも
に、符号長をバレルシフタ3に供給する。バレルシフタ
3では、供給された符号長分だけ、先にデコードしたビ
ット数から差し引き、残ったビットをシフトしてつぎの
デコードデータ用に用意する。空きができたバレルシフ
タ3では、新たにバッファメモリ2から1バイトのコー
ドデータを供給し、先にバレルシフタ3に残っているビ
ットに足してデコード回路4に供給する。The basic operation of the depacking circuit according to the present invention is as follows. First, buffer memory 2
Stores Huffman code data for one video segment supplied from the code input terminal 1. Decoding circuit 4
Decodes the code data supplied from the barrel shifter 3, outputs the decoded data and the EOB signal, and supplies the code length to the barrel shifter 3. The barrel shifter 3 subtracts from the previously decoded bit number by the supplied code length, shifts the remaining bits, and prepares them for the next decoded data. The empty barrel shifter 3 newly supplies 1-byte code data from the buffer memory 2, and adds it to the bits remaining in the barrel shifter 3 before supplying it to the decoding circuit 4.
【0027】ブロックカウント回路7には、各DCTブ
ロックの終わりを示すEOBが見つかったときにデコー
ド回路4から出力される信号と各DCTエリアのデータ
を使いきったときにエリア終了検出回路13から出力さ
れるノーコード信号が入力されるようにされ、このどち
らかの信号が入力されたときにブロックカウント回路7
は、カウントアップする。フラグメモリ8では、ブロッ
クカウント回路7からアドレスを受け取り、ブロックカ
ウント回路7がカウントを進める毎にアドレスを進め
る。そのときに、フラグメモリ8では、EOBが検出さ
れてブロックカウント回路7がカウントアップしたとき
には、図5に示すようにフラグ(1)をたててアドレス
を進め、ノーコード信号によってブロックカウント回路
7がカウントアップしたときには、フラグをたてずに
(0)アドレスを進める。ここで、フラグメモリ8のア
ドレスが進むということは、ブロックカウント回路7が
カウントアップすることを意味する。The block count circuit 7 outputs a signal output from the decode circuit 4 when an EOB indicating the end of each DCT block is found and an output from the area end detection circuit 13 when the data of each DCT area is used up. The no-code signal to be input is input. When either of these signals is input, the block count circuit 7
Counts up. The flag memory 8 receives an address from the block count circuit 7 and advances the address each time the block count circuit 7 advances the count. At this time, in the flag memory 8, when EOB is detected and the block count circuit 7 counts up, the address is advanced by setting the flag (1) as shown in FIG. Is counted up, the (0) address is advanced without setting a flag. Here, the advance of the address of the flag memory 8 means that the block count circuit 7 counts up.
【0028】また、ブロックカウント回路7から出力さ
れるブロックアドレスは、ブロックアドレス出力端子1
1にも出力される。The block address output from the block count circuit 7 is supplied to a block address output terminal 1
1 is also output.
【0029】一方、エリアカウント回路9にも、各DC
Tブロックの終わりを示すEOBが見つかったときにデ
コード回路4から出力される信号と各DCTエリアのデ
ータを使いきったときにエリア終了検出回路13から出
力されるノーコード信号が入力されるようにされ、この
どちらかの信号が入力されたときにエリアカウント回路
9は、カウントアップする。フラグメモリ10では、エ
リアカウント回路9からアドレスを受け取り、エリアカ
ウント回路9がカウントを進める毎にアドレスを進め
る。そのときに、フラグメモリ10では、EOBが検出
されてエリアカウント回路9がカウントアップしたとき
には、図5に示すようにフラグ(1)をたててアドレス
を進め、ノーコード信号によってエリアカウント回路9
がカウントアップしたときには、フラグをたてずに
(0)アドレスを進める。ここで、フラグメモリ10の
アドレスが進むということは、エリアカウント回路9が
カウントアップすることを意味する。On the other hand, each DC is also applied to the area count circuit 9.
The signal output from the decoding circuit 4 when the EOB indicating the end of the T block is found and the no-code signal output from the area end detection circuit 13 when the data of each DCT area is used up are input. When one of these signals is input, the area count circuit 9 counts up. The flag memory 10 receives an address from the area count circuit 9 and advances the address each time the area count circuit 9 advances the count. At that time, when the EOB is detected and the area count circuit 9 counts up in the flag memory 10, the address is advanced by setting the flag (1) as shown in FIG.
Is counted up, the (0) address is advanced without setting a flag. Here, the advance of the address of the flag memory 10 means that the area count circuit 9 counts up.
【0030】一方、エリアカウント回路9は、コードア
ドレス記憶回路12にもエリアアドレスを供給し、コー
ドアドレス記憶回路12では、デコード回路4から供給
される符号長をもとに各エリアについてデコードしたビ
ットを加算していき、エリアのどの位置までデコードが
終了したかを記憶する。On the other hand, the area count circuit 9 also supplies the area address to the code address storage circuit 12, and the code address storage circuit 12 decodes the bits decoded for each area based on the code length supplied from the decode circuit 4. Are added, and the position in the area to which decoding has been completed is stored.
【0031】エリア終了検出回路13では、コードアド
レス記憶回路12からエリアのどの位置までデコードが
終了したかを示すバイト情報とビット情報を受け取り、
その情報から判るエリア内の空きビットとデコード回路
4から供給される符号長との比較を行う。ここで、も
し、エリア内の空きビットよりも供給された符号長のほ
うが大きければ、そのエリアには、デコードできるコー
ドが残っていないことを示し、エリア終了検出回路13
は、ノーコード信号をブロックカウント回路7及びエリ
アカウント回路9に供給する。The area end detection circuit 13 receives, from the code address storage circuit 12, byte information and bit information indicating to which position in the area decoding has been completed.
The vacant bits in the area determined from the information are compared with the code length supplied from the decoding circuit 4. Here, if the supplied code length is larger than the vacant bits in the area, it indicates that no code that can be decoded remains in the area, and the area end detection circuit 13
Supplies a no-code signal to the block count circuit 7 and the area count circuit 9.
【0032】また、コードアドレス記憶回路12から出
力されるバイト情報は、バッファメモリ2にも供給さ
れ、バッファメモリ2では、その情報によってコードデ
ータのバレルシフタ3への供給を制御する。さらにコー
ドアドレス記憶回路12から出力されるビット情報は、
バレルシフタ3に供給され、バレルシフタ3では、その
ビット情報をもとにビットシフトを行う。The byte information output from the code address storage circuit 12 is also supplied to the buffer memory 2, and the buffer memory 2 controls supply of the code data to the barrel shifter 3 based on the information. Further, the bit information output from the code address storage circuit 12 is
The data is supplied to the barrel shifter 3, and the barrel shifter 3 performs a bit shift based on the bit information.
【0033】以上の各動作により1マクロブロック分の
デコードを行うことにより、1ユニットのACLのデコ
ードが終了する。The decoding of one unit of the ACL is completed by performing the decoding of one macroblock by the above operations.
【0034】本実施例によれば、パッキングされたコー
ドをそのまま蓄えるコードメモリ以外にバッファメモリ
を持たずに、コードメモリへのアドレスを制御すること
のみで必要なコードにアクセスでき、1ビデオセグメン
ト分のコードデータを蓄える一つのバッファメモリのみ
でACLのデパッキング、デコード処理を実現できる。According to the present embodiment, the necessary code can be accessed only by controlling the address to the code memory without having a buffer memory other than the code memory for storing the packed code as it is, and one video segment can be accessed. The ACL depacking and decoding processing can be realized with only one buffer memory that stores the code data.
【0035】図2に、本発明における圧縮動画像再生装
置の復号回路におけるデパッキング回路のACLデータ
の処理に続くACMデータの処理を行う場合の第二の実
施例のブロック図を示す。FIG. 2 is a block diagram of a second embodiment in which the processing of ACM data is performed after the processing of ACL data of the depacking circuit in the decoding circuit of the compressed moving picture reproducing apparatus according to the present invention.
【0036】コード入力端子1はバッファメモリ2にハ
フマンコードデータを供給し、バッファメモリ2は、バ
レルシフタ3にデータを供給している。さらにバレルシ
フタ3は、デコード回路4にデコードすべきコードデー
タを供給している。デコード回路4でデコードされたデ
ータはデコードデータ出力端子5に出力され、EOB信
号が検出された場合は、EOB信号出力端子6、ブロッ
クカウント回路7、フラグメモリ8、エリアカウント回
路9、及びフラグメモリ10に出力信号を供給する。さ
らにデコード回路4は、符号長データをバレルシフタ
3、エリア終了検出回路13、及びコードアドレス記憶
回路12に出力する。The code input terminal 1 supplies Huffman code data to a buffer memory 2, and the buffer memory 2 supplies data to a barrel shifter 3. Further, the barrel shifter 3 supplies code data to be decoded to the decoding circuit 4. The data decoded by the decoding circuit 4 is output to a decoded data output terminal 5, and when an EOB signal is detected, an EOB signal output terminal 6, a block count circuit 7, a flag memory 8, an area count circuit 9, and a flag memory 10 to provide an output signal. Further, the decoding circuit 4 outputs the code length data to the barrel shifter 3, the area end detection circuit 13, and the code address storage circuit 12.
【0037】ブロックカウント回路7は、フラグメモリ
8と接続され、ブロックカウント回路7から出力される
ブロックアドレスは、ブロックアドレス出力端子11、
フラグメモリ8及びエリア記憶回路14に出力される。
さらにブロックカウント回路7は、スイッチ15にセレ
クト信号を供給している。The block count circuit 7 is connected to the flag memory 8, and outputs a block address output from the block count circuit 7 to a block address output terminal 11,
It is output to the flag memory 8 and the area storage circuit 14.
Further, the block count circuit 7 supplies a select signal to the switch 15.
【0038】エリアカウント回路9は、フラグメモリ1
0と接続され、エリアカウント回路9から出力されるエ
リアアドレスは、スイッチ15、フラグメモリ10及び
エリア記憶回路14に出力される。The area count circuit 9 includes a flag memory 1
The area address that is connected to 0 and output from the area count circuit 9 is output to the switch 15, the flag memory 10, and the area storage circuit 14.
【0039】コードアドレス記憶回路は、バイト情報と
ビット情報をエリア終了検出回路13に出力し、さらに
バイト情報をバッファメモリ2に、ビット情報をバレル
シフタ3に供給する。The code address storage circuit outputs the byte information and the bit information to the area end detection circuit 13, and supplies the byte information to the buffer memory 2 and the bit information to the barrel shifter 3.
【0040】エリア記憶回路14には、ブロックカウン
ト回路7からブロックアドレスが、エリアカウント回路
からエリアアドレスがデータとして供給されるが、その
出力は、スイッチ15に供給される。The area storage circuit 14 is supplied with the block address from the block count circuit 7 and the area address from the area count circuit as data. The output is supplied to the switch 15.
【0041】スイッチ15にはエリアカウント回路9の
出力のエリアアドレスとエリア記憶回路14の出力が入
力され、ブロックカウント回路7からのセレクト信号に
よってコードアドレス記憶回路12に出力するアドレス
を選択する。The area address of the output of the area count circuit 9 and the output of the area storage circuit 14 are input to the switch 15, and an address to be output to the code address storage circuit 12 is selected by a select signal from the block count circuit 7.
【0042】本発明におけるデパッキング回路の基本的
動作は、つぎの通りである。まず、バッファメモリ2
は、コード入力端子1から供給される1ビデオセグメン
ト分のハフマンコードデータを蓄える。デコード回路4
は、バレルシフタ3から供給されるコードデータをデコ
ードし、デコードデータやEOB信号を出力するととも
に、符号長をバレルシフタ3に供給する。バレルシフタ
3では、供給された符号長分だけ、先にデコードしたビ
ット数から差し引き、残ったビットをシフトしてつぎの
デコードデータ用に用意する。空きができたバレルシフ
タ3では、新たにバッファメモリ2から1バイトのコー
ドデータを供給し、先にバレルシフタ3に残っているビ
ットに足してデコード回路4に供給する。The basic operation of the depacking circuit according to the present invention is as follows. First, buffer memory 2
Stores Huffman code data for one video segment supplied from the code input terminal 1. Decoding circuit 4
Decodes the code data supplied from the barrel shifter 3, outputs the decoded data and the EOB signal, and supplies the code length to the barrel shifter 3. The barrel shifter 3 subtracts from the previously decoded bit number by the supplied code length, shifts the remaining bits, and prepares them for the next decoded data. The empty barrel shifter 3 newly supplies 1-byte code data from the buffer memory 2, and adds it to the bits remaining in the barrel shifter 3 before supplying it to the decoding circuit 4.
【0043】ブロックカウント回路7には、各DCTブ
ロックの終わりを示すEOBが見つかったときにデコー
ド回路4から出力される信号と各DCTエリアのデータ
を使いきったときにエリア終了検出回路13から出力さ
れるノーコード信号が入力されるようにされ、このどち
らかの信号が入力されたときにブロックカウント回路7
は、カウントアップする。フラグメモリ8では、ブロッ
クカウント回路7からアドレスを受け取り、ブロックカ
ウント回路7がカウントを進める毎にアドレスを進め
る。そのときに、フラグメモリ8では、EOBが検出さ
れてブロックカウント回路7がカウントアップしたとき
には、図5に示すようにフラグ(1)をたててアドレス
を進め、ノーコード信号によってブロックカウント回路
7がカウントアップしたときには、フラグをたてずに
(0)アドレスを進める。The block count circuit 7 outputs a signal output from the decode circuit 4 when an EOB indicating the end of each DCT block is found and an output from the area end detection circuit 13 when the data of each DCT area is used up. The no-code signal to be input is input. When either of these signals is input, the block count circuit 7
Counts up. The flag memory 8 receives an address from the block count circuit 7 and advances the address each time the block count circuit 7 advances the count. At this time, in the flag memory 8, when EOB is detected and the block count circuit 7 counts up, the address is advanced by setting the flag (1) as shown in FIG. Is counted up, the (0) address is advanced without setting a flag.
【0044】ここで、注意が必要なのは、本発明による
実施例1によって、ACLデータのデコードを終了して
いる場合、フラグメモリ8のアドレス領域には、フラグ
が立っている(1)アドレスと立っていない(0)アド
レスが存在する。本発明による実施例2のように、AC
Lデータのデコードに続いてACMデータのデコードを
行う場合は、ブロックカウント回路7がカウントアップ
し、フラグメモリ8がアドレスを進めたときに、そこの
アドレスにフラグが立っていたならば、フラグメモリ8
はフラグが立っていないところまでアドレスを進める。
ここで、フラグメモリ8のアドレスが進むということ
は、ブロックカウント回路7がカウントアップすること
を意味する。Here, it should be noted that according to the first embodiment of the present invention, when the decoding of the ACL data is completed, the address (1) where the flag is set is set in the address area of the flag memory 8. There is a non-existent (0) address. As in Embodiment 2 according to the present invention, AC
When decoding the ACM data following the decoding of the L data, if the block count circuit 7 counts up and the flag memory 8 advances the address and the flag is set at that address, the flag memory 8 8
Advances the address to where no flag is set.
Here, the advance of the address of the flag memory 8 means that the block count circuit 7 counts up.
【0045】また、ブロックカウント回路7から出力さ
れるブロックアドレスは、ブロックアドレス出力端子1
1及びエリア記憶回路14にも出力される。The block address output from the block count circuit 7 is applied to the block address output terminal 1
1 and the area storage circuit 14.
【0046】一方、エリアカウント回路9にも、各DC
Tブロックの終わりを示すEOBが見つかったときにデ
コード回路4から出力される信号と各DCTエリアのデ
ータを使いきったときにエリア終了検出回路13から出
力されるノーコード信号が入力されるようにされ、この
どちらかの信号が入力されたときにエリアカウント回路
9は、カウントアップする。フラグメモリ10では、エ
リアカウント回路9からアドレスを受け取り、エリアカ
ウント回路9がカウントを進める毎にアドレスを進め
る。そのときに、フラグメモリ10では、EOBが検出
されてエリアカウント回路9がカウントアップしたとき
には、図5に示すようにフラグ(1)をたててアドレス
を進め、ノーコード信号によってエリアカウント回路9
がカウントアップしたときには、フラグをたてずに
(0)アドレスを進める。On the other hand, the area count circuit 9 also has
The signal output from the decoding circuit 4 when the EOB indicating the end of the T block is found and the no-code signal output from the area end detection circuit 13 when the data of each DCT area is used up are input. When one of these signals is input, the area count circuit 9 counts up. The flag memory 10 receives an address from the area count circuit 9 and advances the address each time the area count circuit 9 advances the count. At that time, when the EOB is detected and the area count circuit 9 counts up in the flag memory 10, the address is advanced by setting the flag (1) as shown in FIG.
Is counted up, the (0) address is advanced without setting a flag.
【0047】ここで、エリアカウント回路9がカウント
アップし、フラグメモリ10がアドレスを進めたとき
に、そこのアドレスにフラグが立っていない場合、フラ
グメモリ10はフラグが立っているところまでアドレス
を進める。ここでの、フラグメモリ10のアドレスが進
むということは、エリアカウント回路9がカウントアッ
プすることを意味する。When the area count circuit 9 counts up and the flag memory 10 advances the address, if the flag is not set at that address, the flag memory 10 stores the address up to the point where the flag is set. Proceed. Here, the advance of the address of the flag memory 10 means that the area count circuit 9 counts up.
【0048】また、エリアカウント回路9は、エリア記
憶回路14及びスイッチ15にもエリアアドレスを供給
し、エリア記憶回路14にはデータとしてエリアアドレ
スを供給する。The area count circuit 9 also supplies an area address to the area storage circuit 14 and the switch 15, and supplies an area address as data to the area storage circuit 14.
【0049】ACLデータのデコード終了時には、フラ
グメモリ8内のフラグとフラグメモリ10内のフラグは
一致し、それぞれのフラグは、ブロックカウント回路7
にとっては、概念的にそのブロックのデコードが終了し
ていることを示し、エリアカウント回路9にとっては、
空きエリアが存在することを示している。When the decoding of the ACL data is completed, the flag in the flag memory 8 and the flag in the flag memory 10 match, and each flag is set in the block count circuit 7.
Indicates that decoding of the block has been completed, and for the area count circuit 9,
This indicates that an empty area exists.
【0050】ACMデータのデコードは、このフラグを
見ながらブロックカウント回路7がデコード未終了のブ
ロックを探し、エリアカウント回路9が空きエリアを探
してデコードを行う。When decoding the ACM data, the block count circuit 7 searches for an undecoded block while looking at this flag, and the area count circuit 9 searches for an empty area to perform decoding.
【0051】各エリアのデータを使いきってデコードが
中断された場合には、そのエリアの末尾にはデコードさ
れていない何ビットかの未完結コードが残されている。
ACMデータのデコードを続行するには、この未完結コ
ードを読みだしてから、空きエリアのコードデータを続
けなければならない。When the decoding is interrupted by using up the data in each area, an uncompleted code of several bits that has not been decoded remains at the end of the area.
In order to continue decoding the ACM data, the incomplete code must be read, and then the code data in the empty area must be continued.
【0052】ACLデータのデコードを終了した時点で
は、未完結コードの存在するエリアはブロックカウント
回路7の指し示すアドレスに一致しているが、ACMデ
ータのデコードを進めると移動してしまう。そこで、未
完結コードの移動したエリアを記憶しておくために、本
発明による実施例2では実施例1の回路構成にエリア記
憶回路14が加えられた。When the decoding of the ACL data is completed, the area in which the incomplete code exists matches the address indicated by the block count circuit 7, but moves when the decoding of the ACM data is advanced. Therefore, in order to store the moved area of the uncompleted code, in the second embodiment of the present invention, an area storage circuit 14 is added to the circuit configuration of the first embodiment.
【0053】エリア記憶回路14では、ブロックカウン
ト回路7から出力されるブロックアドレス、即ち概念的
にどこのマクロブロックのどのDCTブロックをデコー
ドしているのかを示すアドレスにエリアカウント回路9
から出力されるエリアアドレス、即ちどのユニットのど
のエリアをデコードしているかを示すアドレスを書き込
む。The area storage circuit 14 stores an area count circuit 9 in a block address output from the block count circuit 7, that is, an address conceptually indicating which macro block and which DCT block is being decoded.
, Ie, an address indicating which area of which unit is being decoded.
【0054】スイッチ15では、エリア記憶回路14か
ら出力されるアドレスを示すデータ、即ち未完結コード
が実際に存在する位置を示すアドレスと、エリアカウン
ト回路9の出力であるエリアアドレスとをブロックカウ
ント回路7から出力される制御信号によって切り替え、
コードアドレス記憶回路12に出力する。即ち、スイッ
チ15では、まず未完結コードが存在するアドレスを出
力し、その後に続けて次にデコードすべきエリアを示す
アドレスを出力する。In the switch 15, the data indicating the address output from the area storage circuit 14, that is, the address indicating the position where the incomplete code actually exists, and the area address output from the area count circuit 9 are stored in the block count circuit. Switching by the control signal output from 7,
Output to the code address storage circuit 12. That is, the switch 15 first outputs the address where the incomplete code exists, and subsequently outputs the address indicating the next area to be decoded.
【0055】コードアドレス記憶回路12では、デコー
ド回路4から供給される符号長をもとに各エリアについ
てデコードしたビットを加算していき、エリアのどの位
置までデコードが終了したかを記憶する。The code address storage circuit 12 adds the bits decoded for each area based on the code length supplied from the decode circuit 4, and stores the position of the area to which the decoding has been completed.
【0056】エリア終了検出回路13では、コードアド
レス記憶回路12からエリアのどの位置までデコードが
終了したかを示すバイト情報とビット情報を受け取り、
その情報から判るエリア内の空きビットとデコード回路
4から供給される符号長との比較を行う。ここで、も
し、エリア内の空きビットよりも供給された符号長のほ
うが大きければ、そのエリアには、デコードできるコー
ドが残っていないことを示し、エリア終了検出回路13
は、ノーコード信号をブロックカウント回路7及びエリ
アカウント回路9に供給する。The area end detection circuit 13 receives, from the code address storage circuit 12, byte information and bit information indicating up to which position in the area decoding has been completed.
The vacant bits in the area determined from the information are compared with the code length supplied from the decoding circuit 4. Here, if the supplied code length is larger than the vacant bits in the area, it indicates that no code that can be decoded remains in the area, and the area end detection circuit 13
Supplies a no-code signal to the block count circuit 7 and the area count circuit 9.
【0057】また、コードアドレス記憶回路12から出
力されるバイト情報は、バッファメモリ2にも供給さ
れ、バッファメモリ2では、その情報によってコードデ
ータのバレルシフタ3への供給を制御する。さらにコー
ドアドレス記憶回路12から出力されるビット情報は、
バレルシフタ3に供給され、バレルシフタ3では、その
ビット情報をもとにビットシフトを行う。The byte information output from the code address storage circuit 12 is also supplied to the buffer memory 2, and the buffer memory 2 controls supply of the code data to the barrel shifter 3 based on the information. Further, the bit information output from the code address storage circuit 12 is
The data is supplied to the barrel shifter 3, and the barrel shifter 3 performs a bit shift based on the bit information.
【0058】以上の各動作により1マクロブロック分の
デコードを行うことにより、1ユニットのACLのデコ
ードに続くACMのデコードが終了する。By performing decoding for one macroblock by the above operations, decoding of ACM subsequent to decoding of one unit of ACL is completed.
【0059】本実施例によれば、パッキングされたコー
ドをそのまま蓄えるコードメモリ以外にバッファメモリ
を持たずに、コードメモリへのアドレスを制御すること
のみで必要なコードにアクセスでき、1ビデオセグメン
ト分のコードデータを蓄える一つのバッファメモリのみ
でACLとACMのデパッキング、デコード処理を実現
できる。According to the present embodiment, the necessary code can be accessed only by controlling the address to the code memory without having a buffer memory other than the code memory for storing the packed code as it is, so that one video segment can be accessed. The depacking and decoding of ACL and ACM can be realized with only one buffer memory storing the code data of.
【0060】図3に、本発明における圧縮動画像再生装
置の復号回路におけるデパッキング回路のACL,AC
Mデータの処理に続くACHデータの処理を行う場合の
第三の実施例のブロック図を示す。FIG. 3 shows ACL and AC of the depacking circuit in the decoding circuit of the compressed moving picture reproducing apparatus according to the present invention.
FIG. 13 is a block diagram of a third embodiment in the case of performing ACH data processing subsequent to M data processing.
【0061】コード入力端子1はバッファメモリ2にハ
フマンコードデータを供給し、バッファメモリ2は、バ
レルシフタ3にデータを供給している。さらにバレルシ
フタ3は、デコード回路4にデコードすべきコードデー
タを供給している。デコード回路4でデコードされたデ
ータはデコードデータ出力端子5に出力され、EOB信
号が検出された場合は、EOB信号出力端子6、ブロッ
クカウント回路7、フラグメモリ8、エリアカウント回
路9、フラグメモリ10、連結エリアカウント回路1
7、及びフラグメモリ18に出力信号を供給する。さら
にデコード回路4は、符号長データをバレルシフタ3、
エリア終了検出回路13、及びコードアドレス記憶回路
12に出力する。The code input terminal 1 supplies Huffman code data to a buffer memory 2, and the buffer memory 2 supplies data to a barrel shifter 3. Further, the barrel shifter 3 supplies code data to be decoded to the decoding circuit 4. The data decoded by the decode circuit 4 is output to a decode data output terminal 5, and when an EOB signal is detected, the EOB signal output terminal 6, block count circuit 7, flag memory 8, area count circuit 9, flag memory 10 , Connected area counting circuit 1
7 and an output signal to the flag memory 18. Further, the decoding circuit 4 converts the code length data into the barrel shifter 3,
It outputs to the area end detection circuit 13 and the code address storage circuit 12.
【0062】ブロックカウント回路7は、フラグメモリ
8と接続され、ブロックカウント回路7から出力される
ブロックアドレスは、ブロックアドレス出力端子11、
フラグメモリ8及びエリア記憶回路14に出力される。
さらにブロックカウント回路7は、スイッチ16にセレ
クト信号を供給している。The block count circuit 7 is connected to the flag memory 8 and outputs a block address output from the block count circuit 7 to a block address output terminal 11.
It is output to the flag memory 8 and the area storage circuit 14.
Further, the block count circuit 7 supplies a select signal to the switch 16.
【0063】エリアカウント回路9は、フラグメモリ1
0と接続され、エリアカウント回路9から出力されるエ
リアアドレスは、スイッチ16、フラグメモリ10及び
エリア記憶回路14に出力される。The area count circuit 9 stores the flag memory 1
The area address which is connected to 0 and output from the area count circuit 9 is output to the switch 16, the flag memory 10, and the area storage circuit 14.
【0064】連結エリアカウント回路17は、フラグメ
モリ18と接続され、連結エリアカウント回路17から
出力される連結エリアアドレスは、スイッチ16、及び
フラグメモリ18に出力される。The connection area count circuit 17 is connected to the flag memory 18, and the connection area address output from the connection area count circuit 17 is output to the switch 16 and the flag memory 18.
【0065】コードアドレス記憶回路は、バイト情報と
ビット情報をエリア終了検出回路13に出力し、さらに
バイト情報をバッファメモリ2に、ビット情報をバレル
シフタ3に供給する。The code address storage circuit outputs the byte information and the bit information to the area end detection circuit 13, and supplies the byte information to the buffer memory 2 and the bit information to the barrel shifter 3.
【0066】エリア記憶回路14には、ブロックカウン
ト回路7からブロックアドレスが、エリアカウント回路
からエリアアドレスがデータとして供給されるが、その
出力は、スイッチ16に供給される。The area storage circuit 14 is supplied with the block address from the block count circuit 7 and the area address from the area count circuit as data. The output is supplied to the switch 16.
【0067】スイッチ16にはエリアカウント回路9の
出力のエリアアドレス、連結エリアカウント回路17及
びエリア記憶回路14の出力が入力され、ブロックカウ
ント回路7及び連結エリアカウント回路17からのセレ
クト信号によってコードアドレス記憶回路12に出力す
るアドレスを選択する。The switch 16 receives the area address of the output of the area count circuit 9, the output of the connected area count circuit 17 and the output of the area storage circuit 14, and outputs the code address according to the select signal from the block count circuit 7 and the connected area count circuit 17. An address to be output to the storage circuit 12 is selected.
【0068】本発明におけるデパッキング回路の基本的
動作は、つぎの通りである。まず、バッファメモリ2
は、コード入力端子1から供給される1ビデオセグメン
ト分のハフマンコードデータを蓄える。デコード回路4
は、バレルシフタ3から供給されるコードデータをデコ
ードし、デコードデータやEOB信号を出力するととも
に、符号長をバレルシフタ3に供給する。バレルシフタ
3では、供給された符号長分だけ、先にデコードしたビ
ット数から差し引き、残ったビットをシフトしてつぎの
デコードデータ用に用意する。空きができたバレルシフ
タ3では、新たにバッファメモリ2から1バイトのコー
ドデータを供給し、先にバレルシフタ3に残っているビ
ットに足してデコード回路4に供給する。The basic operation of the depacking circuit according to the present invention is as follows. First, buffer memory 2
Stores Huffman code data for one video segment supplied from the code input terminal 1. Decoding circuit 4
Decodes the code data supplied from the barrel shifter 3, outputs the decoded data and the EOB signal, and supplies the code length to the barrel shifter 3. The barrel shifter 3 subtracts from the previously decoded bit number by the supplied code length, shifts the remaining bits, and prepares them for the next decoded data. The empty barrel shifter 3 newly supplies 1-byte code data from the buffer memory 2, and adds it to the bits remaining in the barrel shifter 3 before supplying it to the decoding circuit 4.
【0069】ブロックカウント回路7には、各DCTブ
ロックの終わりを示すEOBが見つかったときにデコー
ド回路4から出力される信号と各DCTエリアのデータ
を使いきったときにエリア終了検出回路13から出力さ
れるノーコード信号が入力されるようにされ、このどち
らかの信号が入力されたときにブロックカウント回路7
は、カウントアップする。フラグメモリ8では、ブロッ
クカウント回路7からアドレスを受け取り、ブロックカ
ウント回路7がカウントを進める毎にアドレスを進め
る。そのときに、フラグメモリ8では、EOBが検出さ
れてブロックカウント回路7がカウントアップしたとき
には、図5に示すようにフラグ(1)をたててアドレス
を進め、ノーコード信号によってブロックカウント回路
7がカウントアップしたときには、フラグをたてずに
(0)アドレスを進める。The block count circuit 7 outputs a signal output from the decode circuit 4 when an EOB indicating the end of each DCT block is found and an output from the area end detection circuit 13 when the data of each DCT area is used up. The no-code signal to be input is input. When either of these signals is input, the block count circuit 7
Counts up. The flag memory 8 receives an address from the block count circuit 7 and advances the address each time the block count circuit 7 advances the count. At this time, in the flag memory 8, when EOB is detected and the block count circuit 7 counts up, the address is advanced by setting the flag (1) as shown in FIG. Is counted up, the (0) address is advanced without setting a flag.
【0070】ここで、注意が必要なのは、本発明による
実施例1によって、ACLデータのデコードを終了して
いる場合、フラグメモリ8のアドレス領域には、フラグ
が立っている(1)アドレスと立っていない(0)アド
レスが存在する。本発明による実施例2のように、AC
Lデータのデコードに続いてACMデータのデコードを
行う場合は、ブロックカウント回路7がカウントアップ
し、フラグメモリ8がアドレスを進めたときに、そこの
アドレスにフラグが立っていたならば、フラグメモリ8
はフラグが立っていないところまでアドレスを進める。
ここで、フラグメモリ8のアドレスが進むということ
は、ブロックカウント回路7がカウントアップすること
を意味する。It should be noted that, in the first embodiment of the present invention, when the decoding of the ACL data has been completed, the flag area is set to the address (1) where the flag is set in the address area of the flag memory 8. There is a non-existent (0) address. As in Embodiment 2 according to the present invention, AC
When decoding the ACM data following the decoding of the L data, if the block count circuit 7 counts up and the flag memory 8 advances the address and the flag is set at that address, the flag memory 8 8
Advances the address to where no flag is set.
Here, the advance of the address of the flag memory 8 means that the block count circuit 7 counts up.
【0071】また、ブロックカウント回路7から出力さ
れるブロックアドレスは、ブロックアドレス出力端子1
1及びエリア記憶回路14にも出力される。The block address output from the block count circuit 7 is applied to the block address output terminal 1
1 and the area storage circuit 14.
【0072】一方、エリアカウント回路9にも、各DC
Tブロックの終わりを示すEOBが見つかったときにデ
コード回路4から出力される信号と各DCTエリアのデ
ータを使いきったときにエリア終了検出回路13から出
力されるノーコード信号が入力されるようにされ、この
どちらかの信号が入力されたときにエリアカウント回路
9は、カウントアップする。フラグメモリ10では、エ
リアカウント回路9からアドレスを受け取り、エリアカ
ウント回路9がカウントを進める毎にアドレスを進め
る。そのときに、フラグメモリ10では、EOBが検出
されてエリアカウント回路9がカウントアップしたとき
には、図5に示すようにフラグ(1)をたててアドレス
を進め、ノーコード信号によってエリアカウント回路9
がカウントアップしたときには、フラグをたてずに
(0)アドレスを進める。On the other hand, the area count circuit 9 also has
The signal output from the decoding circuit 4 when the EOB indicating the end of the T block is found and the no-code signal output from the area end detection circuit 13 when the data of each DCT area is used up are input. When one of these signals is input, the area count circuit 9 counts up. The flag memory 10 receives an address from the area count circuit 9 and advances the address each time the area count circuit 9 advances the count. At that time, when the EOB is detected and the area count circuit 9 counts up in the flag memory 10, the address is advanced by setting the flag (1) as shown in FIG.
Is counted up, the (0) address is advanced without setting a flag.
【0073】ここで、エリアカウント回路9がカウント
アップし、フラグメモリ10がアドレスを進めたとき
に、そこのアドレスにフラグが立っていない場合、フラ
グメモリ10はフラグが立っているところまでアドレス
を進める。ここで、フラグメモリ10のアドレスが進む
ということは、エリアカウント回路9がカウントアップ
することを意味する。Here, when the area count circuit 9 counts up and the flag memory 10 advances the address, if the flag is not set at that address, the flag memory 10 stores the address up to the point where the flag is set. Proceed. Here, the advance of the address of the flag memory 10 means that the area count circuit 9 counts up.
【0074】また、エリアカウント回路9は、エリア記
憶回路14及びスイッチ16にもエリアアドレスを供給
し、エリア記憶回路14にはデータとしてエリアアドレ
スを供給する。The area count circuit 9 also supplies an area address to the area storage circuit 14 and the switch 16, and supplies an area address as data to the area storage circuit 14.
【0075】空きエリアが小さい場合、ACMデータの
デコード時に、未完結コードにこの空きエリアのコード
を接続しても未完結のまま処理が終了してしまうことが
ある。ACHデータのデコードでは、このようなエリア
は未完結コードに続いて読み出す必要がある。そこで、
このようなエリアを探すためのカウンタ、即ち連結エリ
アカウント回路17を設け、未完結コードの次に、この
カウント回路が指し示すエリアのコードを読み出してか
ら、空きエリアの読み出しに移るようにした。When the free area is small, even when the code of the free area is connected to the uncompleted code at the time of decoding the ACM data, the processing may end without being completed. In decoding ACH data, such an area needs to be read following an incomplete code. Therefore,
A counter for searching for such an area, that is, a connected area counting circuit 17 is provided, and after reading an uncompleted code, a code of an area indicated by the counting circuit is read, and then reading of an empty area is started.
【0076】連結エリアカウント回路17にも、各DC
Tブロックの終わりを示すEOBが見つかったときにデ
コード回路4から出力される信号と各DCTエリアのデ
ータを使いきったときにエリア終了検出回路13から出
力されるノーコード信号が入力されるようにされ、この
どちらかの信号が入力されたときに連結エリアカウント
回路17は、カウントアップする。フラグメモリ18で
は、連結エリアカウント回路17からアドレスを受け取
り、連結エリアカウント回路17がカウントを進める毎
にアドレスを進める。そのときに、フラグメモリ18で
は、EOBが検出されて連結エリアカウント回路17が
カウントアップしたときには、図5に示すようにフラグ
(1)をたててアドレスを進め、ノーコード信号によっ
て連結エリアカウント回路17がカウントアップしたと
きには、フラグをたてずに(0)アドレスを進める。The connection area count circuit 17 also has a DC
The signal output from the decoding circuit 4 when the EOB indicating the end of the T block is found and the no-code signal output from the area end detection circuit 13 when the data of each DCT area is used up are input. When one of these signals is input, the connected area counting circuit 17 counts up. The flag memory 18 receives an address from the linked area count circuit 17 and advances the address each time the linked area count circuit 17 counts. At this time, when EOB is detected in the flag memory 18 and the connected area count circuit 17 counts up, the address is advanced by setting a flag (1) as shown in FIG. When the circuit 17 counts up, the (0) address is advanced without setting a flag.
【0077】ここで、連結エリアカウント回路17がカ
ウントアップし、フラグメモリ18がアドレスを進めた
ときに、そこのアドレスにフラグが立っていない場合、
フラグメモリ18はフラグが立っているところまでアド
レスを進める。ここで、フラグメモリ18のアドレスが
進むということは、連結エリアカウント回路17がカウ
ントアップすることを意味する。なお、連結エリアカウ
ント回路17が指し示すアドレスは、ブロックカウント
回路7が指し示すマクロブロックと同じブロックの中の
空きエリアである。Here, when the connected area counting circuit 17 counts up and the flag memory 18 advances the address, if the flag is not set at that address,
The flag memory 18 advances the address to the point where the flag is set. Here, the advance of the address of the flag memory 18 means that the connected area count circuit 17 counts up. The address indicated by the connection area count circuit 17 is a free area in the same block as the macroblock indicated by the block count circuit 7.
【0078】連結エリアカウント回路17は、スイッチ
16にもエリアアドレスを供給し、また、スイッチ16
にセレクト信号を供給する。The connection area count circuit 17 supplies the area address to the switch 16 and
Is supplied with a select signal.
【0079】エリア記憶回路14では、ブロックカウン
ト回路7から出力されるブロックアドレス、即ち概念的
にどこのマクロブロックのどのDCTブロックをデコー
ドしているのかを示すアドレスにエリアカウント回路9
から出力されるエリアアドレス、即ちどのユニットのど
のエリアをデコードしているかを示すアドレスを書き込
む。The area storage circuit 14 stores the block address output from the block count circuit 7, that is, the address indicating which DCT block of which macro block is conceptually being decoded, in the area count circuit 9.
, Ie, an address indicating which area of which unit is being decoded.
【0080】スイッチ16では、エリア記憶回路14か
ら出力されるアドレスを示すデータ、即ち未完結コード
が実際に存在する位置を示すアドレスと、連結エリアカ
ウント回路17の出力、即ちACMのデコード時に未完
結コードと接続してもデコードができなかったエリアを
示すアドレスと、エリアカウント回路9の出力であるエ
リアアドレスとをブロックカウント回路7から出力され
るセレクト信号、及び連結エリアカウント回路17から
出力されるセレクト信号によって切り替え、コードアド
レス記憶回路12に出力する。In the switch 16, the data indicating the address output from the area storage circuit 14, that is, the address indicating the position where the uncompleted code actually exists, and the output of the connected area count circuit 17, that is, the uncompleted code when decoding the ACM, The address indicating the area that could not be decoded even when connected to the code, and the area address output from the area count circuit 9 are output from the select signal output from the block count circuit 7 and output from the connected area count circuit 17. It is switched by the select signal and output to the code address storage circuit 12.
【0081】即ち、スイッチ16では、コードアドレス
記憶回路12に対して、まず未完結コードが存在するア
ドレスを出力し、次にACMのデコード時に未完結コー
ドと接続してもデコードができなかったエリアを出力し
て、その後に続けて次にデコードすべきエリアを示すア
ドレスを出力する。That is, the switch 16 first outputs to the code address storage circuit 12 the address where the uncompleted code exists, and then decodes the area where decoding was not possible even when the ACM was connected to the uncompleted code. , Followed by an address indicating the next area to be decoded.
【0082】コードアドレス記憶回路12では、デコー
ド回路4から供給される符号長をもとに各エリアについ
てデコードしたビットを加算していき、エリアのどの位
置までデコードが終了したかを記憶する。The code address storage circuit 12 adds the bits decoded for each area based on the code length supplied from the decode circuit 4 and stores the position of the area to which decoding has been completed.
【0083】エリア終了検出回路13では、コードアド
レス記憶回路12からエリアのどの位置までデコードが
終了したかを示すバイト情報とビット情報を受け取り、
その情報から判るエリア内の空きビットとデコード回路
4から供給される符号長との比較を行う。ここで、も
し、エリア内の空きビットよりも供給された符号長のほ
うが大きければ、そのエリアには、デコードできるコー
ドが残っていないことを示し、エリア終了検出回路13
は、ノーコード信号をブロックカウント回路7及びエリ
アカウント回路9に供給する。The area end detection circuit 13 receives byte information and bit information from the code address storage circuit 12 indicating the position in the area to which decoding has been completed.
The vacant bits in the area determined from the information are compared with the code length supplied from the decoding circuit 4. Here, if the supplied code length is larger than the vacant bits in the area, it indicates that no code that can be decoded remains in the area, and the area end detection circuit 13
Supplies a no-code signal to the block count circuit 7 and the area count circuit 9.
【0084】また、コードアドレス記憶回路12から出
力されるバイト情報は、バッファメモリ2にも供給さ
れ、バッファメモリ2では、その情報によってコードデ
ータのバレルシフタ3への供給を制御する。さらにコー
ドアドレス記憶回路12から出力されるビット情報は、
バレルシフタ3に供給され、バレルシフタ3では、その
ビット情報をもとにビットシフトを行う。The byte information output from the code address storage circuit 12 is also supplied to the buffer memory 2, and the buffer memory 2 controls supply of the code data to the barrel shifter 3 based on the information. Further, the bit information output from the code address storage circuit 12 is
The data is supplied to the barrel shifter 3, and the barrel shifter 3 performs a bit shift based on the bit information.
【0085】以上の各動作により1マクロブロック分の
デコードを行うことにより、1ユニットのACL及びA
CMのデコードに続くACHのデコードが終了する。By performing decoding for one macroblock by the above operations, one unit of ACL and A
The decoding of the ACH following the decoding of the CM ends.
【0086】本実施例によれば、パッキングされたコー
ドをそのまま蓄えるコードメモリ以外にバッファメモリ
を持たずに、コードメモリへのアドレスを制御すること
のみで必要なコードにアクセスでき、1ビデオセグメン
ト分のコードデータを蓄える一つのバッファメモリのみ
でACL,ACM及びACHのデパッキング、デコード
処理を実現できる。According to the present embodiment, the necessary code can be accessed only by controlling the address to the code memory without having a buffer memory other than the code memory for storing the packed code as it is, and one video segment can be accessed. The ACL, ACM, and ACH depacking and decoding processes can be realized with only one buffer memory that stores the code data.
【0087】[0087]
【発明の効果】本発明は、圧縮動画像再生装置の復号回
路におけるデパッキング回路で、パッキングされたコー
ドをそのまま蓄えるコードメモリ以外にバッファメモリ
を持たずに、コードメモリへのアドレスを制御すること
のみで必要なコードにアクセスでき、1ビデオセグメン
ト分のコードデータを蓄える一つのバッファメモリのみ
でACL,ACM及びACHデータのデパッキング処理
を実現できる。According to the present invention, there is provided a depacking circuit in a decoding circuit of a compressed moving picture reproducing apparatus, wherein an address to a code memory is controlled without having a buffer memory other than a code memory for storing packed codes as they are. The required code can be accessed only by using only one buffer memory for storing the code data for one video segment, and the ACL, ACM and ACH data depacking processing can be realized.
【図1】本発明のデパッキング回路におけるACLデー
タをデパッキングするときの第一の実施例のブロック
図。FIG. 1 is a block diagram of a first embodiment when ACL data is depacked in a depacking circuit of the present invention.
【図2】本発明のデパッキング回路におけるACL,A
CMデータをデパッキングするときの第二の実施例のブ
ロック図。FIG. 2 shows ACL, A in the depacking circuit of the present invention.
FIG. 7 is a block diagram of a second embodiment when depacking CM data.
【図3】本発明のデパッキング回路におけるACL,A
CM及びACHデータをデパッキングするときの第三の
実施例のブロック図。FIG. 3 shows ACL, A in the depacking circuit of the present invention.
FIG. 10 is a block diagram of a third embodiment when depacking CM and ACH data.
【図4】本発明のデパッキング回路で、デパッキング処
理の対象となり、データ量一定の単位となるビデオセグ
メントの説明図。FIG. 4 is an explanatory diagram of a video segment which is a target of depacking processing and is a unit having a fixed data amount in the depacking circuit of the present invention.
【図5】本発明のデパッキング回路でのフラグメモリに
おけるアドレスにたてられるフラグの説明図。FIG. 5 is an explanatory diagram of a flag set to an address in a flag memory in the depacking circuit of the present invention.
2…バッファメモリ、3…バレルシフタ、4…デコード
回路、7…ブロックカウント回路、8…フラグメモリ、
9…エリアカウント回路、10…フラグメモリ、12…
コードアドレス記憶回路、13…エリア終了検出回路。2 buffer memory, 3 barrel shifter, 4 decode circuit, 7 block count circuit, 8 flag memory,
9 area count circuit, 10 flag memory, 12
Code address storage circuit, 13 ... Area end detection circuit.
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 7/24 - 7/68 H04N 5/91 - 5/95 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 7/ 24-7/68 H04N 5/91-5/95
Claims (4)
に分け、コード化された所定数のブロック分のデータ
が、所定数のコードエリア内にパッキングされている圧
縮動画像データをデコードする復号回路において、 所定数のブロック分のコードデータを蓄えるバッファメ
モリ手段と、 前記バッファメモリ手段より出力されたコードデータを
符号長情報によりビットシフトをしてラッチ出力するバ
レルシフタ手段と、 前記バレルシフタ手段により出力されたコードデータを
デコードし、符号長を返すデコード手段と、 第1ステップとして、前記所定数のコードエリア毎に、
先頭から前記画像データのブロック終了を表すコードが
現れるまでのデータを前記バッファメモリ手段から読み
出し、第2ステップとして、前記所定数のコードエリア
の所定の複数コードエリア毎に、前記第1ステップのブ
ロック終了コードの続きから前記画像データのブロック
終了を表すコードが現れるまでのデータを前記バッファ
メモリ手段から読み出し、第3ステップとして、前記第
2ステップのブロック終了コードの続きのデータを前記
バッファメモリ手段から読み出すメモリ制御手段と、前記第1〜第3ステップにおいてデコード中のブロック
を識別するブロックアドレスを発生するブロックアドレ
ス生成手段とを備え、 前記ブロックアドレス生成手段の発生したブロックアド
レスにより、前記メモリ制御手段は前記第1、第2およ
び第3ステップの切り換えを行うこと を特徴とする復号
回路。1. A compressed image data divided into a predetermined number of blocks, encoded a predetermined number of blocks of data have been found pressure <br/> reduced moving image being packed in a predetermined number of codes in the area A decoding circuit for decoding data, a buffer memory means for storing code data of a predetermined number of blocks, a barrel shifter means for bit-shifting the code data output from the buffer memory means according to code length information and latching the result, Decoding means for decoding code data output by the barrel shifter means and returning a code length; as a first step, for each of the predetermined number of code areas,
The data from the head until the code indicating the end of the block of the image data appears is read from the buffer memory means. The data from the continuation of the end code to the appearance of the code indicating the end of the block of the image data is read out from the buffer memory means. Memory control means for reading , and a block being decoded in the first to third steps
Block address that generates a block address that identifies
And a block address generated by the block address generating means.
And the memory control means can control the first, second, and
And a third step .
ドしたコードの末尾がどのエリア内にあるかの途中経過
をブロック毎に記憶しておくエリア記憶手段を備えるこ
とを特徴とする復号回路。2. The decoding circuit according to claim 1, further comprising area storage means for storing, for each block, the progress of an area in which the end of the decoded code of the block is located.
アのコードに連結すべきコードが存在することを示すフ
ラグメモリ手段と、連結すべきコードのエリアの位置を
示す連結エリアカウント手段を備えることを特徴とする
復号回路。3. A flag memory means for indicating that a code to be linked to a code of another area exists in an area, and a linked area count means for indicating a position of an area of a code to be linked. A decoding circuit, comprising:
の復号回路を用いて、記録媒体から再生した圧縮動画像
データのデコードを行うことを特徴とする復号回路。4. A decoding circuit for decoding compressed moving image data reproduced from a recording medium using the decoding circuit according to claim 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7278295A JP3301264B2 (en) | 1995-03-30 | 1995-03-30 | Decoding circuit of compressed video playback device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7278295A JP3301264B2 (en) | 1995-03-30 | 1995-03-30 | Decoding circuit of compressed video playback device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08275162A JPH08275162A (en) | 1996-10-18 |
| JP3301264B2 true JP3301264B2 (en) | 2002-07-15 |
Family
ID=13499312
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7278295A Expired - Fee Related JP3301264B2 (en) | 1995-03-30 | 1995-03-30 | Decoding circuit of compressed video playback device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3301264B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3930280B2 (en) | 2001-09-27 | 2007-06-13 | 株式会社東芝 | Encoded image data decoding apparatus, method and program |
| JP4455242B2 (en) | 2004-09-15 | 2010-04-21 | 株式会社東芝 | Decryption circuit |
-
1995
- 1995-03-30 JP JP7278295A patent/JP3301264B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08275162A (en) | 1996-10-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5335016A (en) | Image data compressing/coding apparatus | |
| JP2883449B2 (en) | Recording device | |
| JPH06217274A (en) | Image signal compressing device | |
| JP2802694B2 (en) | Image reproducing apparatus and method | |
| JP3147792B2 (en) | Video data decoding method and apparatus for high-speed playback | |
| US5970207A (en) | Television system for transmitting pictures in a digital form | |
| US5291283A (en) | Decoding apparatus of a compressed digital video signal | |
| US6853378B2 (en) | Moving image editing apparatus and moving image editing method using intraframe encoding | |
| KR100272120B1 (en) | Quantization control circuit | |
| US5652823A (en) | Video data encoder and decoder | |
| US5581360A (en) | Methods and systems for dubbing a variable-length encoded digital video signal on a record medium | |
| US6741789B1 (en) | Recording apparatus having a pause mode in which video signals are written to memory by cyclically designating write addresses | |
| EP0632653A2 (en) | Digital high definition video recorder having high definition display in trick-play modes | |
| JP3301264B2 (en) | Decoding circuit of compressed video playback device | |
| US5790556A (en) | Method and apparatus for video signal processing | |
| EP0685967A2 (en) | Compressed television signal recording and reproducing apparatus | |
| US5905840A (en) | Method and apparatus for recording and playing back digital video signal | |
| US6788877B1 (en) | Recording and reproducing apparatus | |
| US5774590A (en) | Image data reproducing apparatus | |
| JP3235917B2 (en) | Image recording and playback device | |
| US20010005451A1 (en) | Image intermittent recording device and its method | |
| US6993072B1 (en) | Digital signal coding apparatus | |
| JPH0614314A (en) | High efficiency encoder | |
| JP3034923B2 (en) | Image data recording and playback device | |
| JPH06189283A (en) | Transmitting device for digital picture signal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080426 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090426 Year of fee payment: 7 |
|
| LAPS | Cancellation because of no payment of annual fees |