JPH1023424A - Device for decoding compression data of moving image - Google Patents

Device for decoding compression data of moving image

Info

Publication number
JPH1023424A
JPH1023424A JP17002796A JP17002796A JPH1023424A JP H1023424 A JPH1023424 A JP H1023424A JP 17002796 A JP17002796 A JP 17002796A JP 17002796 A JP17002796 A JP 17002796A JP H1023424 A JPH1023424 A JP H1023424A
Authority
JP
Japan
Prior art keywords
data
picture
decoding
image
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP17002796A
Other languages
Japanese (ja)
Inventor
Natsuki Mori
夏樹 森
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP17002796A priority Critical patent/JPH1023424A/en
Publication of JPH1023424A publication Critical patent/JPH1023424A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To reduce the disturbance of a decoded display picture as small as possible when a decoding error is generated in a variable length code. SOLUTION: At the time of decoding a variable length code from the code bit string of moving image compression data, a variable code decoding part refers to a variable length code table, and when a corresponding variable length code is not entered, generates a decoding error detection signal. When an Nth picture in decoding is an intra-frame encoded picture data (I picture) or inter- frame forward direction predictive encoded picture data (P picture), a movement compensating part substitutes unit data corresponding to the (N-1) th I or P picture stored in a memory area for a unit data area (slice line data) including an error occurance block to obtain a decoded display picture. When the picture in decoding is a bidirectional predictive encoded picture data (B picture), unit data corresponding to the (N-1) th picture movement-compensated and stored in a display memory are substituted for the unit data including the error occurance block, so that the display of the slice line data including the error occurance block and having the possibility of incorrect data can be suppressed.

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 for compressed image data, and more particularly to a decoding device for decoding a compressed moving image data.

【0002】[0002]

【従来の技術】画像圧縮符号化方式として知られている
JPEG、MPEG1およびMPEG2規格などにおい
ては、離散コサイン変換(DCT)した静止画像データ
または動画像データを量子化し、得られた量子化DCT
係数に対して、さらにハフマン符号などを用いた可変長
符号化を行って圧縮データを得ている。
2. Description of the Related Art In the JPEG, MPEG1, and MPEG2 standards known as image compression coding systems, still image data or moving image data subjected to discrete cosine transform (DCT) is quantized, and the obtained quantized DCT is obtained.
The coefficients are further subjected to variable length coding using Huffman coding or the like to obtain compressed data.

【0003】このようにして圧縮された画像データを復
号するための復号装置をLSIで構成した場合、デコー
ドLSIは、圧縮画像データを可変長符号を復号する可
変長符号復号部、復号されたデータを逆量子化する逆量
子化部、そして逆量子化DCT係数を逆離散コサイン変
換して画像データを得る逆離散コサイン変換部を備え、
また、MPEG1やMPEG2の場合には、動画像圧縮
を行っているために、さらに逆離散コサイン変換により
得られた画像データに対して動き補償を行うための動き
補償部を備えている。
When a decoding device for decoding the image data compressed in this way is constituted by an LSI, the decoding LSI comprises a variable-length code decoding unit for decoding the variable-length code of the compressed image data, And an inverse discrete cosine transform unit for performing inverse discrete cosine transform on the inversely quantized DCT coefficients to obtain image data.
In the case of MPEG1 and MPEG2, since a moving image is compressed, a motion compensation unit for performing motion compensation on image data obtained by inverse discrete cosine transform is further provided.

【0004】ここで、上記デコードLSIの可変長符号
復号部では、図4に示すようなハフマン符号などの可変
長符号テーブルを有し、このテーブルを参照して可変長
符号のビット列から可変長符号を切り出し、対応するラ
ン・レベル出力、つまり復号データを得ている。なお、
上記ラン・レベル出力のうち、レベル(level)
は、量子化されたDCT係数をジグザクスキャンして得
られた符号ビット列における”0”でないDCT係数で
あり、ラン(run)は、上記レベルに先行して連続す
る”0”の数を表している。
The variable-length code decoding section of the decoding LSI has a variable-length code table such as a Huffman code as shown in FIG. 4, and refers to this table to convert a variable-length code bit string into a variable-length code. And the corresponding run level output, that is, decoded data is obtained. In addition,
Of the run level outputs, the level
Is a DCT coefficient that is not “0” in the code bit string obtained by zigzag scanning the quantized DCT coefficient, and “run” represents the number of “0” s preceding the level. I have.

【0005】上記可変長符号復号部が、図4の可変長符
号テーブルを参照した際に、符号ビット列に対応する可
変長符号がエントリされていない場合には、可変長符号
復号エラーが発生することとなる。そして、このような
復号エラーが発生した場合、その後に続いて復号された
ラン・レベル出力は、可変長符号の切り出し位置などが
不正確になっていることからその信頼性に欠ける。
When the variable length code decoding section refers to the variable length code table shown in FIG. 4 and a variable length code corresponding to a code bit string is not entered, a variable length code decoding error occurs. Becomes Then, when such a decoding error occurs, the subsequently decoded run level output lacks reliability because the cutout position of the variable length code and the like are incorrect.

【0006】そこで、一般的に、復号装置においては、
例えば{信学技報 ICD94−86(1994−0
8)「110MHz MPEG2 対応可変長符号の復
号LSIの開発」}などに示されているように、次のヘ
ッダ(MPEGの場合にはスライスヘッダ)を検索する
処理を行う。そして、検索して得られた次のヘッダを基
準として、このヘッダ以降の可変長符号ビット列に対し
ての正確な復号処理を復帰させている。
Therefore, generally, in a decoding device,
For example, IEICE Technical Report ICD94-86 (1994-0)
8) As shown in “Development of LSI for decoding variable-length code compatible with 110 MHz MPEG2”, processing for searching for the next header (slice header in the case of MPEG) is performed. Then, based on the next header obtained by the search, a correct decoding process for the variable-length code bit string after this header is restored.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、圧縮画
像データの符号ビット列においてビット誤りなどが発生
している場合や、可変長符号復号部における可変長符号
の切り出しが正しくない場合であっても、実際には、こ
れらのビット列に対して可変長符号テーブルにおける可
変長符号がヒットすることが多い。このように可変長符
号テーブルの符号がヒットする場合には、可変長符号復
号エラーが検出されないため、正しくないランレベル出
力を続ける。そして、このような不正な可変長符号のヒ
ットが続き、やがて、ヒットしなくなると、これよって
初めて復号エラーが検出される。
However, even when a bit error or the like occurs in the code bit string of the compressed image data or when the variable length code is not correctly cut out by the variable length code decoding unit, the actual In many cases, a variable length code in the variable length code table hits these bit strings. When the code in the variable-length code table hits in this way, an incorrect run-level output is continued because a variable-length code decoding error is not detected. Then, when such an illegal variable-length code hit continues and eventually no longer hits, a decoding error is detected for the first time.

【0008】したがって、復号エラー検出以前の現実に
エラーが発生した時点から、復号エラーが検出されて正
常なランレベル出力が得られるまでの期間に復号されて
得られた再生画像データが不正なものとなる。
Therefore, the reproduced image data obtained by decoding during the period from when an error actually occurs before the detection of a decoding error to when a decoding error is detected and a normal run level output is obtained is incorrect. Becomes

【0009】また、画像圧縮データの復号装置では、受
信や蓄積メディアから得られた画像圧縮データを復号化
して、復号表示画像を順次表示部に供給して表示させな
ければならないため、各復号処理をより迅速に行うこと
が求められている。そこで、従来より画像圧縮データの
復号装置では、各回路ブロックをパイプライン化して、
各回路ブロックにて復号処理が終了したデータが順次後
段の回路ブロックに渡されて最終的に復号再生画像を得
ている。
Further, in the image compression data decoding apparatus, it is necessary to decode the image compression data obtained from the reception or the storage medium and supply the decoded display images to the display unit sequentially for display. Is required to be performed more quickly. Therefore, conventionally, in a device for decoding image compressed data, each circuit block is pipelined,
The data after the decoding process in each circuit block is sequentially passed to the subsequent circuit block to finally obtain a decoded reproduced image.

【0010】したがって、可変長符号復号部においてあ
るブロックの復号時に復号エラーを検出した場合、例え
ば動き補償部では、数ブロック前の正しくない確率の高
いデータを用いてこれらを参照画像として動き補償を行
っている可能性がある。このように、正しくないデータ
に対して復号処理してしまうことにより、無駄な処理が
増えるだけでなく、復号エラーによる復号画像の乱れが
より大きく、また乱れがより長期間継続することとな
り、表示品質を低下させてしまう可能性もある。
Therefore, when a decoding error is detected at the time of decoding a certain block in the variable-length code decoding unit, for example, the motion compensation unit uses the data with a high probability of being incorrect several blocks before and performs motion compensation using these data as a reference image. May have done so. In this way, by performing decoding processing on incorrect data, not only wasteful processing is increased, but also the disorder of the decoded image due to a decoding error is larger, and the disorder continues for a longer period of time. There is also the possibility that the quality will be reduced.

【0011】本発明は、上記課題を解消するためになさ
れ、可変長符号の復号エラー時に復号画像の乱れをでき
るだけ目立たなくすることが可能な圧縮画像復号装置を
提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a compressed image decoding apparatus capable of solving the above-mentioned problem and making the disturbance of a decoded image as inconspicuous as possible at the time of a decoding error of a variable length code.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
に、本発明に係る動画像圧縮データの復号装置は以下の
ような特徴を有する。
Means for Solving the Problems In order to achieve the above object, a moving picture compression data decoding apparatus according to the present invention has the following features.

【0013】即ち、可変長符号よりなる動画像圧縮デー
タの符号ビット列に対する可変長符号復号化処理に際し
て、可変長符号の復号エラーが検出されると、これに応
じて、復号エラー発生データの属する所定の単位データ
領域に対し、これを過去の復号再生画像についての対応
する単位データ領域のデータと置換し、前記置換されて
作成されたデータに基づいて復号再生画像を形成する。
That is, when a decoding error of a variable-length code is detected in a variable-length code decoding process on a code bit string of compressed video data of a variable-length code, a predetermined error to which decoding error-occurring data belongs is detected. Is replaced with the data of the corresponding unit data area of the past decoded and reproduced image, and a decoded and reproduced image is formed based on the data created by the replacement.

【0014】具体的な構成においては、フレーム内符号
化画像を復号して得られた参照Iピクチャを記憶するI
ピクチャ用メモリと、フレーム間順方向符号化画像を復
号して得られた参照Pピクチャを記憶するPピクチャ用
メモリと、表示すべき復号表示画像データを記憶する表
示メモリと、を有する。
In a specific configuration, an I-frame for storing a reference I-picture obtained by decoding an intra-frame coded image is stored.
It has a picture memory, a P picture memory for storing a reference P picture obtained by decoding an inter-frame forward coded image, and a display memory for storing decoded display image data to be displayed.

【0015】上記構成において、復号エラー発生時に復
号中の画像がフレーム内符号化画像またはフレーム間順
方向符号化画像の場合には、復号エラー発生データ(例
えばエラー発生ブロック)の属する単位データ領域(例
えば、MPEG規格の1スライスラインに相当)を、I
ピクチャ用またはPピクチャ用メモリに記憶された過去
の参照Iピクチャまたは参照Pピクチャのいずれかの対
応する単位データ領域のデータで置換する。
In the above configuration, if the image being decoded at the time of occurrence of a decoding error is an intra-frame coded image or an inter-frame forward coded image, a unit data area (for example, an error-occurring block) to which decoding error-occurring data belongs. For example, one slice line of the MPEG standard)
Replace with the data of the corresponding unit data area of either the past reference I picture or reference P picture stored in the picture or P picture memory.

【0016】一方、復号中の画像が、参照Iピクチャお
よび参照Pピクチャに基づいて動き補償が行われる双方
向予測符号化画像の場合には、復号エラー発生ブロック
の属する単位データ領域を、前記表示メモリに記憶され
た過去の復号表示画像データの対応する単位データ領域
のデータで置換する。
On the other hand, if the image being decoded is a bidirectionally predictive coded image in which motion compensation is performed based on a reference I picture and a reference P picture, the unit data area to which the block in which a decoding error has occurred belongs is displayed in the display area. Replace with the data of the unit data area corresponding to the past decoded display image data stored in the memory.

【0017】また、上記構成において、さらにIピクチ
ャ用メモリ、Pピクチャ用メモリおよび表示メモリに
は、それぞれ単位データ領域分のデータを保持するデー
タ保持部を設ける。そして、単位データ領域の復号中に
復号エラーが検出されなければ、それぞれ保持した単位
データ領域分のデータを対応する各メモリにオーバライ
トし、単位データ領域の復号中に復号エラーが発生した
場合には、保持していた単位データ領域分のデータを破
棄し、各メモリに記憶されていた過去の対応単位データ
領域のデータを維持する。
In the above configuration, the I-picture memory, the P-picture memory, and the display memory are each provided with a data holding unit for holding data for a unit data area. If no decoding error is detected during the decoding of the unit data area, the data of the held unit data area is overwritten to the corresponding memory, and if a decoding error occurs during the decoding of the unit data area, Discards the held data of the unit data area and maintains the data of the past corresponding unit data area stored in each memory.

【0018】[0018]

【発明の実施の形態】以下、本発明の実施の形態(以
下、実施形態という)について図面を用いて説明する。
なお、既に説明した図面と対応する部分には同一符号を
付して説明を省略する。
Embodiments of the present invention (hereinafter, referred to as embodiments) will be described below with reference to the drawings.
Note that the same reference numerals are given to portions corresponding to the drawings described above, and description thereof will be omitted.

【0019】[動画像圧縮データの復号装置の構成]図
1は、本実施形態に係る動画像圧縮データの復号装置の
概略構成を示している。なお、本実施形態においても、
復号装置は、パイプライン化されている。
[Structure of Decoding Apparatus for Compressed Video Data] FIG. 1 shows a schematic configuration of a decoding apparatus for compressed video data according to the present embodiment. In this embodiment,
The decoding device is pipelined.

【0020】蓄積メディアなどや通信などによって得ら
れた動画像圧縮データの符号ビット列は、ヘッダ検出・
パラメータ分離部10に供給され、まず、階層構造を有
する符号ビット列から、各層のヘッダが検出される。こ
こで、画像圧縮データの階層構成は、例えばMPEG1
を例にとると図2に示すような6層構造となっている。
最上層のシーケンス層は、SH(Sequence Header )お
よびGOP(Group ofPictures )を有し、GOP層
は、画面グループの最小単位であるIピクチャ(フレー
ム内符号化画像データ),Bピクチャ(双方向予測符号
化画像データ),Pピクチャ(フレーム間順方向予測符
号化画像データ)などの各ピクチャよりなる。そして、
各ピクチャ層は、開始コードを有する単位としては最小
の16画素幅で任意の長さのスライスライン(単位デー
タ領域)に分割されており、このスライス層はさらに任
意の個数のマクロブロック(MB)を供え、さらにマク
ロブロック層は、6つの8×8画素単位のブロックによ
り構成されている。
The code bit string of the compressed moving image data obtained by storage media or communication is used for header detection /
The header of each layer is supplied to the parameter separation unit 10, and first, a header of each layer is detected from a code bit string having a hierarchical structure. Here, the hierarchical structure of the compressed image data is, for example, MPEG1
Takes a six-layer structure as shown in FIG.
The uppermost sequence layer has an SH (Sequence Header) and a GOP (Group of Pictures). The GOP layer has an I picture (intra-coded image data) and a B picture (bidirectional prediction) which are the minimum units of a screen group. Encoded picture data) and P pictures (inter-frame forward-predicted encoded picture data). And
Each picture layer is divided into slice lines (unit data areas) having a minimum length of 16 pixels and having an arbitrary length as a unit having a start code, and this slice layer further includes an arbitrary number of macro blocks (MB). And the macroblock layer is composed of six blocks of 8 × 8 pixels.

【0021】上記図1のヘッダ検出・パラメータ分離部
10は、検出された各層のヘッダに基づいて、符号ビッ
ト列をパラメータ毎に分離し、8×8画素単位のブロッ
クを最小復号処理単位としてブロック毎に並べられた符
号ビット列を可変長符号復号処理部12に出力する。
The header detecting / parameter separating unit 10 shown in FIG. 1 separates a code bit string into parameters based on the detected header of each layer, and sets a block of 8 × 8 pixels as a minimum decoding processing unit for each block. Are output to the variable-length code decoding processing unit 12.

【0022】可変長符号復号処理部12は、供給された
可変長符号ビット列から、図4に示す可変長符号テーブ
ルを参照して、可変長符号を切り出し、対応するラン・
レベル出力、すなわち量子化されたDCT係数符号列を
出力する。また、可変長符号復号処理部12は、可変長
符号テーブルを参照して対応する可変長符号がエントリ
されていなければ、可変長符号の復号エラー検出信号
(例えば図1に示されるようなハフマンエラー検出信
号)を発生し、これを後段の動き補償部18に出力す
る。
The variable-length code decoding processing unit 12 cuts out the variable-length code from the supplied variable-length code bit string with reference to the variable-length code table shown in FIG.
A level output, that is, a quantized DCT coefficient code string is output. If the corresponding variable length code is not entered with reference to the variable length code table, the variable length code decoding processing unit 12 outputs a variable length code decoding error detection signal (for example, a Huffman error signal as shown in FIG. 1). A detection signal is generated and output to the motion compensation unit 18 at the subsequent stage.

【0023】可変長符号復号処理部12からの量子化D
CT係数の符号列は、逆量子化部14に供給されて逆量
子化され、逆離散コサイン変換部16にてこの逆量子化
されたDCT係数がDCT変換前の画素毎のデータに逆
変換される。
The quantization D from the variable length code decoding processor 12
The code sequence of the CT coefficients is supplied to the inverse quantization unit 14 where it is inversely quantized, and the inversely quantized DCT coefficient is inversely transformed by the inverse discrete cosine transform unit 16 into data for each pixel before DCT transformation. You.

【0024】動き補償部18は、逆離散コサイン変換に
よって得られた画像データがIピクチャ(フレーム内符
号化画像)の場合、これを画像メモリ20の表示メモリ
26にそのまま出力し、また、Iピクチャ用のメモリ領
域22にも出力する。そして、このIピクチャ用のメモ
リ領域22には、Iピクチャのデータが参照画像1とし
て、次のIピクチャが得られるまで記憶される。
If the image data obtained by the inverse discrete cosine transform is an I-picture (intra-frame coded image), the motion compensator 18 outputs this to the display memory 26 of the image memory 20 as it is. Is also output to the memory area 22 for use. The I picture memory area 22 stores the data of the I picture as the reference image 1 until the next I picture is obtained.

【0025】Pピクチャ(フレーム間順方向予測符号化
画像)の場合、動き補償部18は、Pピクチャデータを
Pピクチャ用のメモリ領域24に出力すると共に、Iピ
クチャデータをメモリ領域22から読み出してPピクチ
ャデータに加算して動き補償を行い、得られた復号表示
画像を表示メモリ26に一旦記憶する。また、上記Pピ
クチャ用のメモリ領域24に出力されたPピクチャデー
タは、Iピクチャと同様に、次のPピクチャが得られる
まで参照画像2として記憶される。
In the case of a P picture (inter-frame forward prediction coded image), the motion compensator 18 outputs P picture data to the P picture memory area 24 and reads I picture data from the memory area 22. Motion compensation is performed by adding to the P picture data, and the obtained decoded display image is temporarily stored in the display memory 26. The P picture data output to the P picture memory area 24 is stored as the reference picture 2 until the next P picture is obtained, like the I picture.

【0026】逆離散コサイン変換によって得られた画像
データが、Bピクチャ(双方向予測符号化画像)の場合
には、メモリ領域22、24にそれぞれ記憶されたIお
よびPピクチャデータがBピクチャデータに加算されて
双方向に動き補償が行われ、得られた復号表示画像が表
示メモリ26に一旦記憶される。
When the image data obtained by the inverse discrete cosine transform is a B picture (bidirectional predictive coded image), the I and P picture data stored in the memory areas 22 and 24 are converted to B picture data. The added and bidirectional motion compensation is performed, and the obtained decoded display image is temporarily stored in the display memory 26.

【0027】以上のようにIピクチャ、Pピクチャ、B
ピクチャに基づいて順次得られた動き補償後の復号表示
画像は、図示しないディスプレイに例えば[Iピクチ
ャ、Bピクチャ、Bピクチャ、Pピクチャ、Bピクチ
ャ、Bピクチャ、Pピクチャ・・・Iピクチャ]に対応
した順に表示される。
As described above, I picture, P picture, B picture
The decoded display image after motion compensation sequentially obtained based on the picture is displayed on a display (not shown), for example, as [I picture, B picture, B picture, P picture, B picture, B picture, P picture... I picture]. They are displayed in the order they correspond.

【0028】[可変長符号の復号エラー発生の補償]次
に、本実施形態の特徴である可変長符号の復号エラー発
生時の補償方法について説明する。図3は、このエラー
補償方法を示している。図示されているように本実施形
態の特徴は、可変長符号復号時に復号エラーが検出され
た場合に、復号エラーが属する単位データ領域であるス
ライスライン全部のデータを画像メモリ20内に記憶さ
れている過去のピクチャの対応するスライスラインのデ
ータと置換することである。
[Compensation for Occurrence of Decoding Error of Variable Length Code] Next, a method of compensating for the occurrence of a decoding error of a variable length code, which is a feature of the present embodiment, will be described. FIG. 3 shows this error compensation method. As shown in the figure, the feature of the present embodiment is that when a decoding error is detected at the time of decoding a variable length code, the data of the entire slice line, which is a unit data area to which the decoding error belongs, is stored in the image memory 20. Is to replace the data of the corresponding slice line of the past picture.

【0029】より具体的には、図1に示す可変長符号復
号処理部12が、可変長符号テーブルを参照して可変長
符号ビット列に対応したエントリが存在しないと、可変
長符号の復号エラー検出信号を発生し、このエラー検出
信号は、動き補償部18に出力される。なお、図4の可
変長符号テーブルに、エラーフラグがエントリされてい
る場合には、可変長符号の復号エラーが検出された際に
は、このエラーフラグを付し、これを逆量子化部14お
よび逆離散コサイン変換部16を介して動き補償部18
に供給してもよい。
More specifically, the variable length code decoding processing section 12 shown in FIG. 1 refers to the variable length code table and detects no variable length code decoding error if there is no entry corresponding to the variable length code bit string. A signal is generated, and this error detection signal is output to the motion compensator 18. When an error flag is entered in the variable-length code table of FIG. 4, when a decoding error of the variable-length code is detected, this error flag is added, and this And a motion compensation unit 18 via an inverse discrete cosine transform unit 16
May be supplied.

【0030】動き補償部18は、可変長符号復号処理部
12から直接エラー検出信号が供給され、またはエラー
フラグを有するデータが逆離散コサイン変換部16より
供給された場合、エラー発生ブロックの存在するピクチ
ャの種類に応じて、エラー発生ブロックの属するスライ
スラインを画像メモリ20に記憶されている直前のピク
チャのスライスラインで置換する。
When the error detection signal is directly supplied from the variable length code decoding processing unit 12 or the data having the error flag is supplied from the inverse discrete cosine transform unit 16, the motion compensation unit 18 has an error occurrence block. The slice line to which the error-occurring block belongs is replaced with the slice line of the immediately preceding picture stored in the image memory 20 according to the type of the picture.

【0031】(IまたはPピクチャの場合)まず、可変
長符号復号中のピクチャがIピクチャまたはPピクチャ
であって、可変長符号復号処理部12にて復号エラー検
出信号が発生した場合、動き補償部18では、エラー発
生ブロックより前のブロックを処理している。また、I
ピクチャ用またはPピクチャ用のメモリ領域22、24
には、復号中のピクチャをN番目とすると、その直前に
あたるN−1番目のIまたはPピクチャデータが記憶さ
れている。
(In the case of an I or P picture) First, if the picture being decoded by the variable length code is an I picture or a P picture, and a decoding error detection signal is The unit 18 processes the block before the error occurrence block. Also, I
Memory areas 22, 24 for pictures or P pictures
Stores the (N-1) -th I or P picture data immediately before the N-th picture being decoded.

【0032】そこで、動き補償部18は、可変長符号復
号処理部12からの復号エラー検出信号に基づいて、エ
ラー発生ブロックの属するスライスライン(i番目)を
検出し、Iピクチャ用またはPピクチャ用のメモリ領域
22、24から対応する(i番目)スライスラインのデ
ータを読み出してこれをエラー発生ブロックのi番目の
スライスラインのデータと置換する。なお、エラー発生
ブロックの属するスライスラインおよび対応する過去の
ピクチャのスライスラインは、その先頭に付されている
ヘッダを検出することにより容易に判別することができ
る。
Therefore, the motion compensator 18 detects the slice line (i-th) to which the error-occurring block belongs based on the decoding error detection signal from the variable-length code decoder 12, and determines whether the slice line belongs to an I picture or a P picture. The data of the corresponding (i-th) slice line is read out from the memory areas 22 and 24 of the memory block and replaced with the data of the i-th slice line of the error-occurring block. The slice line to which the error-occurring block belongs and the slice line of the corresponding past picture can be easily determined by detecting the header added to the head thereof.

【0033】Iピクチャについては、エラー発生ブロッ
クの属するスライスラインを過去の直前のIピクチャの
スライスラインデータで置換して得られた画像データを
復号表示画像として表示メモリ26に記憶すると共に、
N番目のIピクチャとしてメモリ領域22に記憶する。
As for the I picture, image data obtained by replacing the slice line to which the error-occurring block belongs with the slice line data of the immediately preceding I picture is stored in the display memory 26 as a decoded display image.
It is stored in the memory area 22 as the N-th I picture.

【0034】Pピクチャの場合には、動き補償部18
は、置換して得られた新規のPピクチャをメモリ領域2
4に記憶すと共に、Pピクチャデータをメモリ領域22
から読み出したIピクチャデータと加算して動き補償を
行い、復号表示画像として表示メモリ26に記憶する。
In the case of a P picture, the motion compensator 18
Stores the new P picture obtained by the replacement in the memory area 2
4 and store P picture data in the memory area 22.
The motion compensation is performed by adding the I-picture data read out from the memory and stored in the display memory 26 as a decoded display image.

【0035】次に、復号しながら順次メモリ領域22、
24に復号画像データを記憶していく構成においては、
復号エラー検出信号が発生した場合、エラー発生ブロッ
クの属するスライスラインのデータ先頭がすでに各メモ
リ領域22、24にオーバライトされ、直前(N−1番
目)のデータが失われている可能性がある。そこで、こ
のような構成の場合には、1スライスライン分のデータ
をメモリ領域22、24に記憶する前に、一旦ストアす
るデータ保持部として、バッファなどのセーブ領域を設
けることが好ましい。そして、このセーブ領域に順次ス
トアされる1スライスライン分のデータの復号中に、可
変長符号の復号エラーが検出されなければ、そのスライ
スラインデータを各メモリ領域22、24に移動し、対
応する過去のピクチャのスライスラインデータを更新す
る。反対に、この1スライスライン分のデータの復号中
に、復号エラーが検出された場合には、セーブ領域にス
トアしたデータを破棄し、各メモリ領域22、24に記
憶されている過去のピクチャの対応するスライスライン
データを書き換えることなく維持する。
Next, the memory area 22,
In a configuration in which the decoded image data is stored in 24,
When a decoding error detection signal is generated, the beginning of the data of the slice line to which the block in which the error occurred belongs has already been overwritten in each of the memory areas 22 and 24, and the immediately preceding (N-1) th data may have been lost. . Therefore, in the case of such a configuration, it is preferable to provide a save area such as a buffer as a data holding unit that temporarily stores data before storing data for one slice line in the memory areas 22 and 24. If the decoding error of the variable length code is not detected during the decoding of the data of one slice line sequentially stored in the save area, the slice line data is moved to each of the memory areas 22 and 24 and the corresponding slice line data is moved. Update the slice line data of the past picture. Conversely, if a decoding error is detected during decoding of the data for one slice line, the data stored in the save area is discarded, and the past picture stored in the memory areas 22 and 24 is deleted. The corresponding slice line data is maintained without being rewritten.

【0036】また、IピクチャとPピクチャとの相関が
強い場合には、例えば、N番目のIピクチャの復号中に
可変長符号復号エラーが発生した際に、時間軸方向にお
いてN番目のIピクチャにより近く、より画像データが
近似しているN−1番目のPピクチャの対応するスライ
スラインデータで置換してもよい。また、エラー発生ピ
クチャがN番目のPピクチャの場合、同様に、Iピクチ
ャの方がN−1番目のPピクチャよりも近似している場
合にはIピクチャの対応スライスラインデータで置換し
てもよい。
When the correlation between the I picture and the P picture is strong, for example, when a variable length code decoding error occurs during the decoding of the Nth I picture, the Nth I picture May be replaced with the corresponding slice line data of the (N-1) -th P picture which is closer to and closer to the image data. Similarly, when the error-occurring picture is the N-th P picture, if the I-picture is more similar to the (N-1) -th P picture, the picture is replaced with the corresponding slice line data of the I-picture. Good.

【0037】(Bピクチャの場合)次に、復号データが
Bピクチャの場合には、上述のようにBピクチャは参照
画像とはされず、メモリ領域22、24のいずれにも記
憶されない。そこで、動き補償部18は、復号中のピク
チャがBピクチャの場合には、所定のブロックで可変長
符号の復号エラー検出信号が発生すると、表示メモリ2
6に記憶されている直前の動き補償済みの復号表示画像
データから対応するスライスラインデータを読み出し、
エラー発生ブロックの属するスライスラインデータを置
換し、これを復号表示画像として表示メモリ26に記憶
する。
(In the case of a B picture) Next, when the decoded data is a B picture, the B picture is not a reference picture and is not stored in any of the memory areas 22 and 24 as described above. Therefore, when the picture being decoded is a B picture, the motion compensation unit 18 generates a decoding error detection signal of a variable length code in a predetermined block, and the display memory 2
6, the corresponding slice line data is read from the immediately preceding motion-compensated decoded display image data stored in
The slice line data to which the error-occurring block belongs is replaced, and this is stored in the display memory 26 as a decoded display image.

【0038】さらに、復号しながら表示メモリ26に記
憶していく構成の場合には、表示メモリ26に対し、1
スライスライン分のデータを一旦ストアしておくセーブ
領域を設ける。そして、このセーブ領域に一旦ストアさ
れた1スライスライン分のデータについて、可変長符号
の復号エラーが検出されなかった場合には、そのスライ
スラインデータを表示メモリ26に移動する。復号エラ
ーが検出された場合には、セーブ領域のデータを破棄し
て表示メモリ26に記憶された過去の対応するスライス
ラインデータをそのまま維持する。
Further, in the case of a configuration in which the data is decoded and stored in the display memory 26,
A save area for temporarily storing data for a slice line is provided. If no decoding error of the variable length code is detected for the data of one slice line once stored in the save area, the slice line data is moved to the display memory 26. If a decoding error is detected, the data in the save area is discarded, and the corresponding past slice line data stored in the display memory 26 is maintained as it is.

【0039】[0039]

【発明の効果】本発明の構成によれば、可変長符号の復
号エラーが検出された場合には、その発生領域を含む単
位データ領域のデータ、例えばスライスラインデータの
全てを過去の正常なピクチャの対応する単位データ領域
のデータで置換することにより、復号エラーの発生によ
り復号表示画像が長期間にわたって影響を受けたり、大
きな画像の乱れを起こしたりという問題を回避すること
ができる。
According to the structure of the present invention, when a decoding error of a variable length code is detected, the data of the unit data area including the occurrence area, for example, all of the slice line data are transferred to the past normal picture. By replacing the data with the data in the corresponding unit data area, it is possible to avoid the problem that the decoded display image is affected for a long period of time due to the occurrence of a decoding error, or large image disturbance is caused.

【0040】また、エラー検出時に、同一ピクチャ内の
他の領域のデータを用いることなく、比較的頻繁に更新
される過去のピクチャの対応する単位データと置換する
こととしたので、復号エラーが発生した場合にも、エラ
ー領域が自然な画像になるように補償される。
In addition, when an error is detected, the data is replaced with the corresponding unit data of a past picture that is updated relatively frequently without using data of another area in the same picture. Also in this case, compensation is performed so that the error area becomes a natural image.

【0041】したがって、本発明では、可変長符号復号
エラーによる復号表示画像の乱れをできる限り目立たな
いようにすることができ、表示品質の維持を図ることが
容易となる。
Therefore, in the present invention, the disturbance of the decoded display image due to the variable-length code decoding error can be made as inconspicuous as possible, and the display quality can be easily maintained.

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

【図1】 本発明の実施形態に係る動画像圧縮データの
復号装置の概略構成を示す図である。
FIG. 1 is a diagram showing a schematic configuration of a moving image compression data decoding device according to an embodiment of the present invention.

【図2】 MPEG方式における画像データの階層構造
を説明するための概略図である。
FIG. 2 is a schematic diagram for explaining a hierarchical structure of image data in the MPEG system.

【図3】 本発明の実施形態に係る復号エラー発生時の
エラー補償方法を説明するための図である。
FIG. 3 is a diagram for explaining an error compensation method when a decoding error occurs according to the embodiment of the present invention.

【図4】 可変長符号テーブルの構成を示す図である。FIG. 4 is a diagram showing a configuration of a variable length code table.

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

10 ヘッダ検出・パラメータ分離部、12 可変長符
号復号処理部、14逆量子化部、16 逆離散コサイン
変換部、18 動き補償部、20 画像メモリ、22
Iピクチャ用のメモリ領域、24 Pピクチャ用のメモ
リ領域、26表示メモリ。
Reference Signs List 10 header detection / parameter separation unit, 12 variable length code decoding processing unit, 14 inverse quantization unit, 16 inverse discrete cosine transform unit, 18 motion compensation unit, 20 image memory, 22
Memory area for I picture, memory area for 24P picture, 26 display memory.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 動画像圧縮データを復号して復号再生画
像を得る復号装置において、 可変長符号よりなる動画像圧縮データの符号ビット列に
対する可変長符号復号化処理に際して、可変長符号の復
号エラーが検出されると、これに応じて、復号エラー発
生データの属する所定の単位データ領域のデータに対
し、これを過去の復号再生画像についての対応する単位
データ領域のデータと置換し、前記置換データに基づい
て復号再生画像を形成することを特徴とする動画像圧縮
データ復号装置。
1. A decoding apparatus for decoding a compressed moving image data to obtain a decoded reproduced image, wherein a decoding error of a variable length code is detected in a variable length code decoding process on a code bit string of the compressed moving image data composed of a variable length code. When detected, the data of the predetermined unit data area to which the decoding error occurrence data belongs is replaced with the data of the corresponding unit data area of the past decoded and reproduced image, and A compressed moving picture data decoding apparatus for forming a decoded and reproduced image based on the data.
【請求項2】 請求項1に記載の動画像圧縮データ復号
装置において、 フレーム内符号化画像を復号して得られた参照Iピクチ
ャを記憶するIピクチャ用メモリと、 フレーム間順方向符号化画像を復号して得られた参照P
ピクチャを記憶するPピクチャ用メモリと、 表示すべき復号表示画像データを記憶する表示メモリ
と、 を有し、 前記復号エラー検出時に復号中の画像がフレーム内符号
化画像またはフレーム間順方向符号化画像の場合には、 前記復号エラー発生データの属する前記単位データ領域
のデータを、前記Iピクチャ用またはPピクチャ用メモ
リに記憶された過去の参照Iピクチャまたは参照Pピク
チャのいずれかの対応する単位データ領域のデータで置
換することを特徴とする動画像圧縮データ復号装置。
2. The compressed video data decoding apparatus according to claim 1, wherein an I picture memory for storing a reference I picture obtained by decoding the intra-frame encoded image, and an inter-frame forward encoded image. Reference P obtained by decoding
A P-picture memory for storing pictures, and a display memory for storing decoded display image data to be displayed, wherein the image being decoded when the decoding error is detected is an intra-coded image or an inter-frame forward coding. In the case of an image, the data of the unit data area to which the decoding error occurrence data belongs is stored in a corresponding unit of either a past reference I picture or a reference P picture stored in the I picture or P picture memory. A moving image compression data decoding apparatus, wherein the data is replaced with data in a data area.
【請求項3】 請求項1または2のいずれかに記載の動
画像圧縮データ復号装置において、 フレーム内符号化画像を復号して得られた参照Iピクチ
ャを記憶するIピクチャ用メモリと、 フレーム間順方向符号化画像を復号して得られた参照P
ピクチャを記憶するPピクチャ用メモリと、 表示すべき復号表示画像データを記憶する表示メモリ
と、 を有し、 前記復号エラー検出時に復号中の画像が前記参照Iピク
チャおよび参照Pピクチャに基づいて動き補償が行われ
る双方向予測符合化画像の場合には、 前記復号エラー発生ブロックの属する単位データ領域の
データを、前記表示メモリに記憶された過去の復号表示
画像データの対応する単位データ領域のデータで置換す
ることを特徴とする動画像圧縮データ復号装置。
3. The moving picture compression data decoding device according to claim 1, wherein an I picture memory for storing a reference I picture obtained by decoding an intra-frame coded image, Reference P obtained by decoding forward encoded image
A P-picture memory for storing a picture, and a display memory for storing decoded display image data to be displayed, wherein an image being decoded when the decoding error is detected moves based on the reference I picture and the reference P picture. In the case of a bidirectionally predicted coded image for which compensation is performed, the data of the unit data area to which the decoding error-occurring block belongs is replaced with the data of the unit data area corresponding to the past decoded display image data stored in the display memory. A compressed moving picture data decoding apparatus characterized in that:
【請求項4】 請求項2または3のいずれかに記載の動
画像圧縮データ復号装置において、 前記Iピクチャ用メモリ、Pピクチャ用メモリおよび表
示メモリには、それぞれ単位データ領域分のデータを保
持するデータ保持部を有し、 単位データ領域の復号中に前記復号エラーが検出されな
ければ、前記データ保持部にそれぞれ保持した単位デー
タ領域分のデータを対応する各メモリにオーバライト
し、 前記単位データ領域の復号中に前記復号エラーが発生し
た場合には、前記データ保持部に保持していた単位デー
タ領域分のデータを破棄し、各メモリに記憶されていた
過去の対応単位データ領域のデータを維持することを特
徴とする動画像圧縮データ復号装置。
4. The moving picture compression data decoding device according to claim 2, wherein the I picture memory, the P picture memory, and the display memory hold data of a unit data area, respectively. If the decoding error is not detected during the decoding of the unit data area, the data of the unit data area held in the data holding unit is overwritten to the corresponding memory, and the unit data is written. When the decoding error occurs during the decoding of the area, the data of the unit data area held in the data holding unit is discarded, and the data of the past corresponding unit data area stored in each memory is deleted. A moving image compressed data decoding apparatus characterized by maintaining.
【請求項5】 請求項1〜4のいずれか1つに記載の動
画像圧縮データ復号装置において、 前記単位データ領域は、MPEG規格の1スライスライ
ンであることを特徴とする動画像圧縮データ復号装置。
5. The moving picture compression data decoding apparatus according to claim 1, wherein said unit data area is one slice line of the MPEG standard. apparatus.
JP17002796A 1996-06-28 1996-06-28 Device for decoding compression data of moving image Pending JPH1023424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17002796A JPH1023424A (en) 1996-06-28 1996-06-28 Device for decoding compression data of moving image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17002796A JPH1023424A (en) 1996-06-28 1996-06-28 Device for decoding compression data of moving image

Publications (1)

Publication Number Publication Date
JPH1023424A true JPH1023424A (en) 1998-01-23

Family

ID=15897251

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17002796A Pending JPH1023424A (en) 1996-06-28 1996-06-28 Device for decoding compression data of moving image

Country Status (1)

Country Link
JP (1) JPH1023424A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007311948A (en) * 2006-05-17 2007-11-29 Sony Corp COMMUNICATION DEVICE, COMMUNICATION METHOD, COMMUNICATION TRANSMISSION / RECEIVER DEVICE, COMMUNICATION TRANSMISSION / RECEIVER METHOD, AND PROGRAM
JP2009105986A (en) * 2009-02-16 2009-05-14 Toshiba Corp Decoder
JP2011239464A (en) * 2011-07-27 2011-11-24 Toshiba Corp Decoder
US8144771B2 (en) 2005-05-21 2012-03-27 Samsung Electronics Co., Ltd. Method and apparatus for image coding and decoding with cross-reference mode
US8189688B2 (en) 2006-02-06 2012-05-29 Panasonic Corporation Image decoding device and image decoding method
JP2012105178A (en) * 2010-11-12 2012-05-31 Mitsubishi Electric Corp Error concealment device and decoder
WO2022091213A1 (en) * 2020-10-27 2022-05-05 株式会社Njs Video image communication system, reception device, transmission device, method, program, and recording medium with program recorded therein

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8144771B2 (en) 2005-05-21 2012-03-27 Samsung Electronics Co., Ltd. Method and apparatus for image coding and decoding with cross-reference mode
KR101170799B1 (en) 2005-05-21 2012-08-02 삼성전자주식회사 Image compression method and apparatus therefor and image restoring method and apparatus therefor
US8189688B2 (en) 2006-02-06 2012-05-29 Panasonic Corporation Image decoding device and image decoding method
JP2007311948A (en) * 2006-05-17 2007-11-29 Sony Corp COMMUNICATION DEVICE, COMMUNICATION METHOD, COMMUNICATION TRANSMISSION / RECEIVER DEVICE, COMMUNICATION TRANSMISSION / RECEIVER METHOD, AND PROGRAM
US8325817B2 (en) 2006-05-17 2012-12-04 Sony Corporation Communication apparatus and method for data interpolation
JP2009105986A (en) * 2009-02-16 2009-05-14 Toshiba Corp Decoder
JP2012105178A (en) * 2010-11-12 2012-05-31 Mitsubishi Electric Corp Error concealment device and decoder
JP2011239464A (en) * 2011-07-27 2011-11-24 Toshiba Corp Decoder
WO2022091213A1 (en) * 2020-10-27 2022-05-05 株式会社Njs Video image communication system, reception device, transmission device, method, program, and recording medium with program recorded therein
JPWO2022091213A1 (en) * 2020-10-27 2022-05-05

Similar Documents

Publication Publication Date Title
JP3923898B2 (en) Image coding method and apparatus
JP3302939B2 (en) Video signal decompressor for independently compressed even and odd field data
JP2003304542A (en) Video signal decompression apparatus
JPH06181569A (en) Image encoding / decoding method or device, and image recording medium
TW201206202A (en) Moving image prediction encoding device, moving image prediction encoding method, moving image prediction encoding program, moving image prediction decoding device, moving image prediction decoding method, and moving image prediction decoding program
KR0185932B1 (en) Video data decoding method and apparatus
CN101005627B (en) Image decoding method, image decoding device
JPH1023424A (en) Device for decoding compression data of moving image
JP2776212B2 (en) Code recording device
JP4010617B2 (en) Image decoding apparatus and image decoding method
JP2002027483A (en) Image encoding device, image decoding device, and storage medium
KR20010034304A (en) Variable-length encoder
CN116980606A (en) Video encoding method, video decoding method, encoder, decoder, and medium
CN1980392A (en) Decoding method using video code flow to judge picture poundary and reading in advance picture data, and apparatus therefor
JP2930089B2 (en) Compressed video information recording method and compressed video information recording device
JP2820631B2 (en) Image decoding method and apparatus
JP3657855B2 (en) Image decoding apparatus and image decoding method
JP3810830B2 (en) Decoding processing method of encoded video signal and decoding apparatus using the same
JP3661879B2 (en) Image signal decoding method and image signal decoding apparatus
JP2824024B2 (en) Image decoding method and apparatus
JPH05153573A (en) Moving picture data decoder
JP3976975B2 (en) Image processing apparatus and method, and storage medium
KR101161604B1 (en) Method for controlling lip synchronization of video streams and apparatus therefor
JP2887177B2 (en) Method and apparatus for decoding moving image compression code
JPH0636521A (en) Disk and moving image decoding method and device