JP2003116129A - Image compression data decoder - Google Patents

Image compression data decoder

Info

Publication number
JP2003116129A
JP2003116129A JP2001311824A JP2001311824A JP2003116129A JP 2003116129 A JP2003116129 A JP 2003116129A JP 2001311824 A JP2001311824 A JP 2001311824A JP 2001311824 A JP2001311824 A JP 2001311824A JP 2003116129 A JP2003116129 A JP 2003116129A
Authority
JP
Japan
Prior art keywords
data
image
decoding
display memory
image data
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
JP2001311824A
Other languages
Japanese (ja)
Inventor
Kenji Makiyama
健志 牧山
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2001311824A priority Critical patent/JP2003116129A/en
Publication of JP2003116129A publication Critical patent/JP2003116129A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image compression data decoder capable of easily writing image data subjected to decoding and resolution conversion to a display memory and decreasing disturbance in a decoded image caused on the occurrence of a decoding error of a variable length code. SOLUTION: In order to reduce the memory capacity, image data are stored in a display memory 16 after reducing the image data by using resolution conversion resulting in reducing the memory capacity. The decoder is provided with a macro block number output section 14 and a display memory write control section 15 to write the image data on the way of a line buffer in the unit of macro blocks and is configured not to overwrite ineffective data to data of the display memory equivalent to a block earlier than an erroneous packet in the display memory thereby making disturbance of a decoded image unremarkable with the memory capacity as small as possible on the occurrence of a decoding error of the variable length code.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像圧縮データを
復号し、復号した画像データの解像度を変換して表示す
る画像圧縮データ復号装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a compressed image data decoding apparatus for decoding compressed image data, converting the resolution of the decoded image data, and displaying the converted image data.

【0002】[0002]

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

【0003】このようにして圧縮された画像データを復
号するための復号装置をLSIで構成した場合、デコー
ドLSIは、圧縮画像データを可変長符号を復号する可
変長符号復号処理部、復号されたデータを逆量子化する
逆量子化部、そして逆量子化DCT係数を逆離散コサイ
ン変換して画像データを得る逆離散コサイン変換部を、
また、MPEG1、MPEG2、MPEG4の場合に
は、動画像圧縮を行っているために、さらに逆離散コサ
イン変換により得られた画像データに対して動き補償を
行うための動き補償部を備えた画像データ復号部を搭載
している。
When the decoding device for decoding the image data compressed in this way is constituted by an LSI, the decoding LSI is a variable-length code decoding processing section for decoding a variable-length code on the compressed image data, and is decoded. An inverse quantization unit that inversely quantizes data, and an inverse discrete cosine transformation unit that obtains image data by performing an inverse discrete cosine transform on the inverse quantized DCT coefficient,
Further, in the case of MPEG1, MPEG2, and MPEG4, since moving image compression is performed, image data further including a motion compensating unit for performing motion compensation on image data obtained by inverse discrete cosine transform. It has a decryption unit.

【0004】ここで、上記デコードLSIの可変長符号
復号部では、ハフマン符号などの可変長符号テーブルを
有し、このテーブルを参照して可変長符号のビット列か
ら可変長符号を切り出し、対応するラン・レベル出力、
つまり復号データを得ている。なお、上記ラン・レベル
出力のうち、レベル(level)は、量子化されたD
CT係数をジグザグスキャンして得られた符号ビット列
における“0”でないDCT係数であり、ラン(ru
n)は、上記レベルに先行して連続する“0”の数を表
している。
Here, the variable-length code decoding unit of the decoding LSI has a variable-length code table such as Huffman code, and the variable-length code is cut out from the bit string of the variable-length code by referring to this table and the corresponding run code is extracted.・ Level output,
That is, the decrypted data is obtained. In the run-level output, the level is the quantized D
It is a DCT coefficient which is not “0” in the code bit string obtained by zigzag scanning the CT coefficient, and the run (ru)
n) represents the number of consecutive "0" s preceding the above level.

【0005】上記可変長符号復号部が、可変長符号テー
ブルを参照した際に、符号ビット列に対応する可変長符
号がエントリされていない場合には、可変長符号復号エ
ラーが発生することとなる。すなわち、可変長符号を復
号する際に、あり得ないパターンの符号を受信したこと
を検出して復号エラーと見なす。そして、このような復
号エラーが発生した場合、その後に続いて復号されたラ
ン・レベル出力は、可変長符号の切り出し位置などが不
正確になっていることからその信頼性に欠ける。
When the variable length code decoding unit refers to the variable length code table and the variable length code corresponding to the code bit string is not entered, a variable length code decoding error occurs. That is, when decoding a variable-length code, it is detected that a code with an impossible pattern is received and it is regarded as a decoding error. When such a decoding error occurs, the run level output subsequently decoded is not reliable because the cutout position of the variable length code is incorrect.

【0006】そこで、一般的に、画像データ復号装置に
おいては、次のヘッダ(MPEGの場合にはスライスヘ
ッダやMPEG4におけるresync marke
r)を検索する処理を行う。そして、検索して得られた
次のヘッダを基準として、このヘッダ以降の可変長符号
ビット列に対しての正確な復号処理を復帰させている。
しかしながら、圧縮画像データの符号ビット列において
ビット誤りなどが発生している場合や、可変長符号復号
部における可変長符号の切り出しが正しくない場合であ
っても、実際には、これらのビット列に対して可変長符
号テーブルにおけるいずれかの可変長符号が適合するこ
とが多い。
Therefore, generally, in an image data decoding device, the following header (in the case of MPEG, a slice header or a sync mark in MPEG4) is used.
r) is searched. Then, based on the next header obtained by the search, the correct decoding process for the variable length code bit string after this header is restored.
However, even if a bit error or the like occurs in the code bit string of the compressed image data, or if the variable length code is not cut out correctly in the variable length code decoding unit, Often any variable length code in the variable length code table is suitable.

【0007】このように可変長符号テーブルの符号が適
合する場合には、可変長符号復号エラーが検出されない
ため、正しくないラン・レベル出力を続ける。そして、
このような不正な可変長符号のヒットが続き、やがて、
適合しなくなると、これよって初めて復号エラーが検出
される。したがって、復号エラー検出以前の現実にエラ
ーが発生した時点から、復号エラーが検出されて正常な
ラン・レベル出力が得られるまでの期間に復号されて得
られた再生画像データが不正なものとなる。
When the codes of the variable length code table match in this way, a variable length code decoding error is not detected, and therefore an incorrect run level output is continued. And
Such illegal variable-length code hits continued, and eventually,
Only then will a decoding error be detected. Therefore, the reproduced image data obtained by decoding during the period from the time when the error actually occurred before the detection of the decoding error until the time when the decoding error is detected and the normal run level output is obtained becomes invalid. .

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

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

【0010】または、利用可能な情報から再復号して得
た復号画像の書き込みを行い、復号再生画像を形成す
る。これは、エラーがあっても何らかの手段で補正可能
なものは補正して、正しく復号できなかった部分の画質
劣化を目立たせなくさせようというものである。MPE
G4などにおいては、正しく復号できた情報を用いて、
正しく復号できなかった部分を目立たないように隠蔽す
るコンシールメントと呼ばれる技術が用いられ、その一
つにデータパーティショニングと呼ばれるツールがあ
る。ビデオパケット内の情報の伝送順序を変更させるな
どの処理を行いエラー耐性を向上させ、エラーが発生し
た際でも各マクロブロックの特に重要な符号化モードや
動きベクトルなどの情報を用いてパケットデータの再復
号を行い、復号再生画像を形成することもできる。ビデ
オパケットの前半部分が正しく復号される確率は、後半
の情報に比べて高くなる。よって、データパーティショ
ニングではビデオパケットに含まれるマクロブロック情
報のうち、特に重要な情報を前半に、それ以外の情報を
後半になるようにする。
Alternatively, a decoded image obtained by re-decoding from the available information is written to form a decoded reproduced image. This is to correct something that can be corrected by some means even if there is an error so that the deterioration of the image quality of the portion that could not be decoded correctly becomes inconspicuous. MPE
In G4 etc., using the information that could be correctly decoded,
A technique called concealment is used to conceal the part that could not be decoded correctly so that it is not conspicuous. One of them is a tool called data partitioning. The error resilience is improved by performing processing such as changing the transmission order of the information in the video packet, and even when an error occurs, the information such as the particularly important coding mode and motion vector of each macroblock is used to transfer the packet data. It is also possible to perform re-decoding to form a decoded reproduced image. The probability that the first half of the video packet will be correctly decoded is higher than the latter half of the information. Therefore, in data partitioning, of macroblock information included in a video packet, particularly important information is in the first half, and other information is in the second half.

【0011】例えばINTRA−VOPの場合を例にと
ると、INTRA−DC成分を前半に、AC成分を復号
するために必要な符号化モード、量子化差分値、INT
RADC成分を前半に、AC成分を復号するために必要
な符号化パターン、AC予測フラグ、AC成分等がエラ
ーにより復号不可能であっても、前半のINTRADC
成分等のみを使用して復号することにより、マクロブロ
ックの全データを破棄して前フレームの同じマクロブロ
ック番号の復号画像データを用いて表示させるよりも、
画質劣化を目立たなくさせることができる。
Taking the case of INTRA-VOP as an example, for example, the coding mode, the quantized difference value, and INT required for decoding the AC component in the first half with the INTRA-DC component.
Even if the RADC component is in the first half and the coding pattern, AC prediction flag, AC component, etc. necessary for decoding the AC component cannot be decoded due to an error, the first half of INTRADC
By decoding using only the components, etc., rather than discarding all data of the macroblock and displaying using the decoded image data of the same macroblock number of the previous frame,
The image quality deterioration can be made inconspicuous.

【0012】復号された画像データは、表示メモリに書
き込まれ、表示部の解像度に合わせて解像度変換された
後、表示部へと送られて画像として表示される。一般
に、携帯電話などの携帯情報端末の表示手段は、標準方
式のテレビなどに比べて画面が小さく、解像度も低いた
め、標準方式のテレビなどに合わせた画像をそのまま表
示することができず、表示部にあった解像度に画像を変
換する必要がある。
The decoded image data is written in the display memory, the resolution is converted according to the resolution of the display unit, and then the decoded image data is sent to the display unit and displayed as an image. In general, the display means of a mobile information terminal such as a mobile phone has a smaller screen and a lower resolution than a standard TV and the like, so an image suitable for the standard TV cannot be displayed as it is. It is necessary to convert the image to the resolution that matches the copy.

【0013】図3及び図4は、従来の画像圧縮データ復
号装置の構成を示すブロック図である。図3に示すよう
に、参照メモリ2を用いて画像データ復号部1で、圧縮
された画像データを全て復号し、復号された画像データ
を表示メモリ6に全て読み込み、表示メモリ6の画像デ
ータを解像度変換部3に入力し、表示部7にあった解像
度に変換し、解像度変換部3で解像度変換された画像デ
ータを表示部7に出力する、という処理を行って、解像
度変換された画像の表示を行っている。
3 and 4 are block diagrams showing the structure of a conventional image compression data decoding apparatus. As shown in FIG. 3, the image data decoding unit 1 uses the reference memory 2 to decode all the compressed image data, read all the decoded image data into the display memory 6, and load the image data in the display memory 6 The resolution-converted image is input to the resolution conversion unit 3, converted into a resolution suitable for the display unit 7, and the image data whose resolution has been converted by the resolution conversion unit 3 is output to the display unit 7. It is displaying.

【0014】しかしながら、この方式は、復号された画
像データの全ての情報を使用しないのに、画像データを
全て読み込む表示メモリを備えるので、効率が悪いとい
う問題点がある。このため、図4に示すように、参照メ
モリ2を用いて画像データ復号部1で、圧縮された画像
データをブロック毎に復号し、ブロック毎に復号された
の画像データを順次解像度変換部3に入力し、解像度変
換部3で解像度変換されたブロック毎の画像データを表
示メモリ6に入力し、表示メモリ6から、解像度変換さ
れた画像データを表示部7に出力する、というメモリ削
減方式が考えられている。
However, this system has a problem that it is inefficient because it has a display memory for reading all the image data, although it does not use all the information of the decoded image data. Therefore, as shown in FIG. 4, the image data decoding unit 1 uses the reference memory 2 to decode the compressed image data for each block, and the image data decoded for each block is sequentially converted into the resolution conversion unit 3. Is input to the display memory 6 and the resolution-converted image data is output from the display memory 6 to the display unit 7. It is considered.

【0015】一度全体が復元された画像を解像度変換す
る図3に示す方式の場合は、復元された画像の左端から
ライン単位で順次データを転送し、解像度変換の対象と
なる画素の上下、左右のデータを補間する処理を行って
縮小することで、解像度変換が容易である。これに対し
て、解像度変換を行ってから表示メモリ6にデータを書
き込む図4に示す方式では、ブロック毎に処理を行うの
で、データパケットの先頭データが必ずしも画像の左端
のブロックとは限らないため、復号及び解像度変換され
たデータを順番に表示メモリに格納することができな
い。また、復号エラーが発生した場合には、エラーの発
生した位置に該当する表示メモリのデータだけを訂正す
ることができず画像品質が劣化する。
In the case of the method shown in FIG. 3 in which the resolution of an image that has been entirely restored is converted, data is sequentially transferred line by line from the left end of the restored image, and the pixels to be subjected to resolution conversion are vertically and horizontally. The resolution conversion is easy by performing the process of interpolating the data of 1 to reduce the data. On the other hand, in the method shown in FIG. 4 in which the resolution conversion is performed and then the data is written in the display memory 6, since the processing is performed for each block, the head data of the data packet is not always the leftmost block of the image. , The decoded and resolution-converted data cannot be sequentially stored in the display memory. Further, when a decoding error occurs, only the data in the display memory corresponding to the position where the error occurs cannot be corrected and the image quality deteriorates.

【0016】すなわち、復号エラーが発生した場合に
は、エラー発生ブロックの属するパケットを検出し、対
応する直前フレームのパケットのデータを置換する、あ
るいは、得られたパケットのデータから利用できる情報
を用いてパケットのデータを再復号して表示メモリ6に
データを書き込み、表示部7に表示させる。
That is, when a decoding error occurs, the packet to which the error block belongs is detected and the data of the packet of the corresponding immediately preceding frame is replaced, or the information available from the data of the obtained packet is used. Then, the packet data is re-decoded, the data is written in the display memory 6, and is displayed on the display unit 7.

【0017】その際、パケットの先頭は必ずしも画像エ
リアの左端から開始するとは限らないため、ライン単位
で処理する解像度変換部3では、正常な復号データが得
られているブロックのデータもエラーのあるパケットの
データを再度復号して書き換える際に上書きされる。
At this time, since the head of the packet does not always start from the left end of the image area, the resolution conversion unit 3 which processes in units of lines also has an error in the data of the block from which the normal decoded data is obtained. It is overwritten when the packet data is decrypted again and rewritten.

【0018】[0018]

【発明が解決しようとする課題】本発明はかかる点に鑑
みてなされたものであり、解像度変換を用いて画像を縮
小してから表示メモリデータを蓄積するようにして、メ
モリ容量を削減すると共に、復号エラーが発生した場合
には、エラーの発生した位置に該当する表示メモリのデ
ータだけを訂正することができず画像品質が劣化すると
いう問題を解決し、復号及び解像度変換された画像デー
タの表示メモリヘの書き込みを容易とすると共に、可変
長符号の復号エラー時に発生する復号画像の乱れを小さ
くできる画像圧縮データ復号装置を提供することを目的
とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and reduces the memory capacity by reducing the image by using resolution conversion and then storing the display memory data. When a decoding error occurs, the problem that the image quality is deteriorated because the data in the display memory corresponding to the position where the error occurs cannot be corrected is solved. It is an object of the present invention to provide an image compression data decoding device which facilitates writing to a display memory and can reduce a disorder of a decoded image which occurs when a variable length code decoding error occurs.

【0019】[0019]

【課題を解決するための手段】本発明の画像圧縮データ
復号装置は、画像圧縮されたデータを復号する画像デー
タ復号手段と、復号された画像データを表示する表示手
段と、前記表示手段に応じて画像データの解像度を変換
する解像度変換手段と、解像度変換されたデータを格納
する表示メモリと、画像圧縮されたデータのマクロブロ
ックの位置を示すマクロブロック番号を出力するマクロ
ブロック番号出力手段と、出力された前記マクロブロッ
ク番号を基に、復号及び解像度変換された画像データを
書き込む前記表示メモリのアドレスを制御する書き込み
制御手段と、を具備し、復号エラーが発生した場合に、
エラーのあるマクロブロックに対応する表示メモリの領
域に対してマクロブロック単位に、過去の復号再生画像
又は利用可能な情報から再復号して得た復号画像の書き
込みを行うことを特徴とする。
An image compressed data decoding apparatus according to the present invention includes an image data decoding unit for decoding image compressed data, a display unit for displaying the decoded image data, and a display unit for displaying the decoded image data. Resolution conversion means for converting the resolution of the image data, a display memory for storing the resolution-converted data, a macroblock number output means for outputting a macroblock number indicating the position of the macroblock of the image-compressed data, A write control means for controlling the address of the display memory for writing the decoded and resolution-converted image data based on the output macroblock number, and when a decoding error occurs,
The present invention is characterized in that a decoded image obtained by past decoding from a past decoded reproduced image or available information is written in macroblock units in an area of the display memory corresponding to a macroblock having an error.

【0020】解像度変換を用いて画像を縮小してから表
示メモリデータを蓄積するようにして、メモリ容量を削
減すると共に、復号エラーが発生した場合には、マクロ
ブロック単位に、書き込み制御を行うことにより、解像
度変換手段におけるラインバッファの途中から画像デー
タの書き込みを可能にし、エラーの発生した位置に該当
する表示メモリのデータだけを訂正することが可能とな
り、復号画像の乱れを小さくできる。
By reducing the image using resolution conversion and then storing the display memory data, the memory capacity is reduced, and when a decoding error occurs, write control is performed in macroblock units. As a result, the image data can be written from the middle of the line buffer in the resolution conversion means, and only the data in the display memory corresponding to the position where the error occurs can be corrected, and the disorder of the decoded image can be reduced.

【0021】本発明の画像圧縮データ復号装置において
は、前記書き込み制御手段は、復号エラーが発生した場
合に、エラーのあるマクロブロックの直前以前のマクロ
ブロックに対応する表示メモリの領域に対して書き込み
をマスクする制御を行うことを特徴とする。マスクする
制御を行うことにより、表示メモリに対する無効な書き
換えを防ぐことができる。本発明の画像圧縮データ復号
装置においては、解像度変換して表示メモリに書き込む
動作を、画像が更新された場合のみ行うことを特徴とす
る。書き込み動作を少なくすることにより、消費電力の
削減を図ることができる。
In the image compressed data decoding apparatus of the present invention, when a decoding error occurs, the writing control means writes to the area of the display memory corresponding to the macroblock immediately before the macroblock immediately before the errored macroblock. It is characterized by performing control for masking. By performing the masking control, it is possible to prevent invalid rewriting of the display memory. The image compressed data decoding device of the present invention is characterized in that the operation of converting the resolution and writing it in the display memory is performed only when the image is updated. By reducing the write operation, power consumption can be reduced.

【0022】[0022]

【発明の実施の形態】以下、本発明の実施の形態につい
て添付図面を用いて詳細に説明する。図1は、本発明の
一実施形態に係る画像圧縮データ復号装置の構成を示す
ブロック図である。図1(a)に画像圧縮データ復号装
置全体の構成を、図1(b)に画像データ復号部11の
構成を示す。画像圧縮データ復号装置は、画像圧縮デー
タを復号する画像データ復号部11と、画像圧縮データ
を復号する際に参照する参照メモリ12と、表示部にあ
った解像度に変換する解像度変換部13と、画像データ
に応じたマクロブロックの番号を出力するマクロブロッ
ク番号出力部14と、復号された画像データをマクロブ
ロック番号に基づいて表示メモリに対して書き込み制御
を行う表示メモリ書き込み制御部15と、復号された画
像データを書き込む表示メモリ16と、画像データを表
示する表示部17とから主に構成されている。また、画
像データ復号部11は、供給された可変長符号ビット列
から、可変長符号テーブルを参照して、可変長符号を切
り出し、量子化されたDCT係数符号列を出力する可変
長符号復号処理部18と、可変長符号復号処理部18か
らの量子化DCT係数の符号列を逆量子化する逆量子化
部19と、この逆量子化されたDCT係数をDCT変換
前の画素毎のデータに逆変換する逆離散コサイン変換部
20と、逆離散コサイン変換によって得られた画像デー
タについて動きを予測し動き補償を行う動き補償部21
とから主に構成される。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. FIG. 1 is a block diagram showing the configuration of an image compression data decoding device according to an embodiment of the present invention. FIG. 1A shows the configuration of the entire image compression data decoding device, and FIG. 1B shows the configuration of the image data decoding unit 11. The image compression data decoding device includes an image data decoding unit 11 that decodes image compression data, a reference memory 12 that is referred to when decoding the image compression data, and a resolution conversion unit 13 that converts the resolution to match the display unit. A macroblock number output unit 14 that outputs a macroblock number corresponding to image data, a display memory write control unit 15 that controls writing of the decoded image data to a display memory based on the macroblock number, and a decoding unit It mainly comprises a display memory 16 for writing the generated image data and a display unit 17 for displaying the image data. Further, the image data decoding unit 11 refers to the variable length code table from the supplied variable length code bit string, cuts out the variable length code, and outputs the quantized DCT coefficient code string, the variable length code decoding processing unit. 18, an inverse quantization unit 19 that inversely quantizes the code string of the quantized DCT coefficient from the variable length code decoding processing unit 18, and the inversely quantized DCT coefficient that is inversely converted into data for each pixel before DCT conversion. An inverse discrete cosine transform unit 20 for transforming, and a motion compensating unit 21 for predicting motion and performing motion compensation for image data obtained by inverse discrete cosine transform.
Mainly consists of and.

【0023】上記構成を有する画像圧縮データ復号装置
の動作について説明する。蓄積メディアなどや通信など
によって得られた動画像圧縮データの符号ビット列は、
画像データ復号部11に供給され、まず、階層構造を有
する符号ビット列から、各層のヘッダが検出される。こ
こで、画像圧縮データの階層構成は、例えばMPEG4
を例にとると図2に示すような構造となっている。各ピ
クチャ層は、開始コードを有する単位としては最小の1
6画素幅で任意の長さのパケット(単位データ傾城)に
分割されており、このパケットはさらに任意の個数のマ
クロブロック(MB)を備え、さらにマクロブロック層
は、6つの8×8画素単位のブロックにより構成されて
いる。すなわち、各ブロック空間に対応するY信号4ブ
ロックと動き補償に用いられるCr信号,Cb信号各1
ブロックで構成されている。
The operation of the image compression data decoding apparatus having the above configuration will be described. The code bit string of compressed video data obtained by storage media, communication, etc.
It is supplied to the image data decoding unit 11, and first, the header of each layer is detected from the coded bit string having a hierarchical structure. Here, the hierarchical structure of the image compression data is, for example, MPEG4.
For example, the structure is as shown in FIG. Each picture layer has a minimum unit of 1 with a start code.
It is divided into packets of 6 pixels width and arbitrary length (unit data tilt), and this packet further comprises an arbitrary number of macroblocks (MB), and the macroblock layer further comprises 6 8 × 8 pixel units. It is composed of blocks. That is, four Y signal blocks corresponding to each block space and one Cr signal and one Cb signal used for motion compensation.
It is composed of blocks.

【0024】検出された各層のヘッダに基づいて、符号
ビット列をパラメータ毎に分離し、8×8画素単位のブ
ロックを最小復号処理単位としてブロック毎に並べられ
た符号ビット列が可変長符号復号処理部18に供給され
る。可変長符号復号処理部18は供給された可変長符号
ビット列から、可変長符号テーブルを参照して、可変長
符号を切り出し、対応するラン・レベル出力、すなわち
量子化されたDCT係数符号列を出力する。また、可変
長符号復号処理部18は、可変長符号テーブルを参照し
て対応する可変長符号がエントリされていなければ、可
変長符号の復号エラー検出信号を発生し、これを動き補
償部21に出力する。
Based on the detected headers of the respective layers, the code bit string is separated for each parameter, and the code bit string arranged in each block with a block of 8 × 8 pixel unit as the minimum decoding processing unit is a variable length code decoding processing unit. 18 are supplied. The variable-length code decoding processing unit 18 cuts out the variable-length code from the supplied variable-length code bit string by referring to the variable-length code table and outputs the corresponding run level output, that is, the quantized DCT coefficient code string. To do. Further, the variable length code decoding processing unit 18 refers to the variable length code table and, if the corresponding variable length code is not entered, generates a decoding error detection signal of the variable length code and sends this to the motion compensation unit 21. Output.

【0025】可変長符号復号処理部18からの量子化D
CT係数の符号列は逆量子化部19に供給されて逆量子
化され、逆離散コサイン変換部20にてこの逆量子化さ
れたDCT係数がDCT変換前の画素毎のデータに逆変
換される。動き補償部21は逆離散コサイン変換によっ
て得られた画像データについて動き補償を行い、参照メ
モリ12に蓄積する。
Quantization D from the variable length code decoding processing unit 18
The CT coefficient code string is supplied to the inverse quantization unit 19 and inversely quantized, and the inverse quantized DCT coefficient is inversely transformed by the inverse discrete cosine transform unit 20 into data for each pixel before DCT transformation. . The motion compensation unit 21 performs motion compensation on the image data obtained by the inverse discrete cosine transform, and stores it in the reference memory 12.

【0026】本発明では、画像データ復号部11より、
現在復号しているマクロブロックの位置を示す、マクロ
ブロック番号出力部14からのマクロブロック番号に基
づいて、表示メモリ書き込み制御部15にて表示メモリ
16への復号画像データの書き込みが制御される。この
場合、マクロブロックを単位として、復号エラーの発生
したパケットの先頭に対応する表示メモリのエリアから
データを書き込めるようアドレスを発生させる。
In the present invention, the image data decoding unit 11
The display memory write control unit 15 controls writing of the decoded image data to the display memory 16 based on the macro block number from the macro block number output unit 14 which indicates the position of the macro block currently being decoded. In this case, an address is generated so that data can be written from the area of the display memory corresponding to the beginning of the packet in which the decoding error has occurred, in units of macroblocks.

【0027】画像データ復号部11で、圧縮された画像
データをマクロブロック毎に復号し、マクロブロック毎
に複号されたの画像データを順次解像度変換部13に入
力し、解像度変換部13で解像度変換されたマクロブロ
ック毎の画像データを表示メモリ16に入力し、表示メ
モリ16から、解像度変換された画像データを表示部1
7に出力する。その際、表示メモリ16は、表示部17
の解像度にあわせて容量が削減されているため、画像デ
ータ復号部11から出力される出力画像データは、解像
度変換部13により、縮小されて表示メモリ16に書き
込まれる。
The image data decoding unit 11 decodes the compressed image data for each macroblock, and the decoded image data for each macroblock is sequentially input to the resolution conversion unit 13, and the resolution conversion unit 13 sets the resolution. The converted image data for each macro block is input to the display memory 16, and the resolution-converted image data is displayed from the display memory 16.
Output to 7. At that time, the display memory 16 includes the display unit 17
Since the capacity is reduced according to the resolution of, the output image data output from the image data decoding unit 11 is reduced by the resolution conversion unit 13 and written in the display memory 16.

【0028】したがって、復号エラーが発生した場合に
は、エラー発生ブロックの属するパケットを検出し、対
応する直前フレームのパケットのデータを置換する、あ
るいは、得られたパケットのデータから利用できる情報
を用いてパケットのデータを再復号して表示メモリ16
にデータを書き込み、表示部17に表示させる。
Therefore, when a decoding error occurs, the packet to which the error-occurring block belongs is detected and the data of the corresponding packet of the immediately preceding frame is replaced, or the information available from the data of the obtained packet is used. And re-decode the packet data to display memory 16
The data is written in and displayed on the display unit 17.

【0029】パケットの先頭は必ずしも画像エリアの左
端から開始するとは限らないが、表示メモリ書込み制御
部15ではマクロブロックを単位として処理するので、
エラーが発生したパケット全体を書き換えるのではな
く、エラーが検出されたマクロブロックのみのデータを
再度復号して書き換えるように制御可能である。
The head of the packet does not always start from the left end of the image area, but since the display memory writing control unit 15 processes macro blocks as a unit,
It is possible to control so that the data of only the macroblock in which the error is detected is re-decoded and rewritten instead of rewriting the entire packet in which the error has occurred.

【0030】すなわち、マクロブロックを単位として、
エラー発生ブロックの属するマクロブロックを検出し、
復号エラーの発生したマクロブロックの先頭に対応する
表示メモリのエリアからデータを書き込めるようアドレ
スを発生させることとし、対応する直前フレームのマク
ロブロックのデータを置換する、あるいは、得られたマ
クロブロックのデータから利用できる情報を用いてマク
ロブロックのデータを再復号して表示メモリ16にデー
タを書き込み、表示部17に表示させるようにすれば良
い。
That is, in units of macroblocks,
Detect the macro block to which the error block belongs,
An address is generated so that data can be written from the area of the display memory corresponding to the beginning of the macroblock in which the decoding error has occurred, and the macroblock data of the corresponding immediately preceding frame is replaced, or the obtained macroblock data It is only necessary to re-decode the macroblock data using the information available from, to write the data to the display memory 16 and display it on the display unit 17.

【0031】また、解像度変換部13の処理はライン単
位で行うが、エラーが検出されたマクロブロックの直前
のマクロブロック番号に対応する表示メモリ16の位置
までは書き込みをマスクすることで、あるいは、直前の
パケットに対応する表示メモリ16の位置まで書き込み
をマスクすることで、表示メモリ16の無効な書き換え
を防ぐこともできる。また、解像度変換部13の処理
を、従来の図3の方式での、復元された画像の左端から
ライン単位で順次データを転送する方式に比較すると、
復号エラーの発生の際に、ラインバッファの途中から画
像データを書き込める(過去の復号再生画像又は利用可
能な情報から再復号して得た復号画像の書き込む)よう
にもできる。
The processing of the resolution conversion unit 13 is performed on a line-by-line basis, but writing is masked up to the position of the display memory 16 corresponding to the macroblock number immediately before the macroblock in which the error is detected, or By masking the writing up to the position of the display memory 16 corresponding to the immediately preceding packet, invalid rewriting of the display memory 16 can be prevented. Further, comparing the processing of the resolution conversion unit 13 with the conventional method of FIG. 3 in which data is sequentially transferred line by line from the left end of the restored image,
When a decoding error occurs, image data can be written from the middle of the line buffer (a decoded image reproduced in the past or a decoded image obtained by re-decoding from available information).

【0032】このように本実施の形態では、可変長符号
の復号エラーが検出された場合には、その発生領域を含
むマクロブロックを単位データ領域として、復号エラー
が検出されたマクロブロックを含む1以上の単位データ
領域や、過去の正常なピクチャの対応する1以上の単位
データ領域のデータで置換したり、あるいは、得られた
情報の中から利用できる情報を用いて1以上の単位デー
タ領域のデータを再復号することにより得られた復号デ
ータを表示させることが可能であり、このようにマクロ
ブロックを単位領域として制御することにより、復号エ
ラーの発生により復号表示画像が長期間にわたって影響
を受けたり、大きな画像の乱れを起こしたりという問題
を回避することができる。
As described above, in the present embodiment, when a decoding error of a variable length code is detected, the macroblock including the generation area is used as a unit data area and the macroblock including the decoding error is detected. The above unit data area or the data of one or more corresponding unit data areas of the past normal picture is replaced, or one or more of the unit data areas is used by using the available information from the obtained information. It is possible to display the decoded data obtained by re-decoding the data.By controlling the macroblock as a unit area in this way, the decoded display image is affected for a long period of time by the occurrence of decoding error. It is possible to avoid the problem that a large image is disturbed.

【0033】また、可変長符号復号処理部18の出力デ
ータや画像データ復号部11の出力データを前フレーム
での出力データと比較して、フレーム毎に画像データ更
新の有無を検出し、フレームが更新されるときのみ解像
度変換することにより、すなわち、参照メモリから解像
度変換して表示メモリに書き込む動作を、画像が更新さ
れた場合のみ行うことにより、消費電力の削減を図るこ
とができる。さらに、マクロブロック単位で画像データ
更新の有無を検出し、解像度変換して表示メモリに書き
込む動作を、マクロブロック単位で画像が更新された場
合のみ行うこととすれば、フレーム内では画像が変化し
ても画像が不変のマクロブロックがありうるので、より
一層、消費電力の削減を図ることができる。
Further, the output data of the variable length code decoding unit 18 and the output data of the image data decoding unit 11 are compared with the output data in the previous frame to detect the presence or absence of the image data update for each frame, The power consumption can be reduced by converting the resolution only when the image is updated, that is, by performing the operation of converting the resolution from the reference memory and writing to the display memory only when the image is updated. Further, if the operation of detecting the presence or absence of image data update in macroblock units and converting the resolution and writing to the display memory is performed only when the image is updated in macroblock units, the image changes within the frame. However, since there may be a macroblock in which the image does not change, it is possible to further reduce power consumption.

【0034】[0034]

【発明の効果】以上説明したように、本発明の画像圧縮
データ復号装置によれば、解像度変換を用いて画像を縮
小してから表示メモリデータを蓄積するようにして、メ
モリ容量を削減すると共に、復号エラーが発生した場合
には、エラーの発生した位置に該当する表示メモリのデ
ータだけを訂正することができず画像品質が劣化すると
いう問題を解決し、復号及び解像度変換された画像デー
タの表示メモリヘの書き込みを容易とすると共に、可変
長符号の復号エラー時に発生する復号画像の乱れを小さ
くできる。
As described above, according to the image compression data decoding apparatus of the present invention, the image capacity is reduced by using the resolution conversion, and then the display memory data is accumulated to reduce the memory capacity. When a decoding error occurs, the problem that the image quality is deteriorated because the data in the display memory corresponding to the position where the error occurs cannot be corrected is solved. The writing to the display memory can be facilitated, and the disorder of the decoded image generated at the time of the decoding error of the variable length code can be reduced.

【0035】本発明の画像圧縮データ復号装置によれ
ば、復号データを解像度変換部により縮小して表示メモ
リに表示データを書き込む構成であっても、可変長符号
の復号エラーが検出された場合には、その発生領域を含
むマクロブロックのデータや、過去の正常なピクチャの
対応するマクロブロックのデータで置換したり、あるい
は、得られた情報の中から利用できる情報を用いて再復
号することにより得られた復号データを表示させること
が可能であり、復号エラーの発生により復号表示画像が
長期間にわたって影響を受けたり、大きな画像の乱れを
起こしたりという問題を回避することができる。また、
解像度変換をしてから表示メモリに表示データを書き込
むため、表示データを表示部に転送する度に解像度変換
することなく、表示メモリのメモリ容量を削減すること
ができる。
According to the image compression data decoding apparatus of the present invention, even when the decoded data is reduced by the resolution conversion unit and the display data is written in the display memory, when the decoding error of the variable length code is detected. By replacing it with the data of the macroblock containing the generation area or the data of the corresponding macroblock of a normal picture in the past, or by re-decoding using the available information from the obtained information. It is possible to display the obtained decoded data, and it is possible to avoid a problem that a decoded display image is affected for a long period of time due to the occurrence of a decoding error, or a large image is disturbed. Also,
Since the display data is written to the display memory after the resolution conversion, the memory capacity of the display memory can be reduced without converting the resolution each time the display data is transferred to the display unit.

【0036】また、復号エラーの発生の際に、マクロブ
ロックを単位としてラインバッファの途中から画像デー
タを書き込めるようにし、また表示メモリの誤りのある
パケットよリ前のブロックに相当する表示メモリには無
効なデータを上書きすることがないようにする構成とし
たので、可変長符号の復号エラー時に復号画像の乱れを
できるだけ小さなメモリ容量で、かつ目立たなくするこ
とが可能となる。また、フレームが更新されるときのみ
解像度変換することにより、消費電力の削減を図ること
ができる。
Further, when a decoding error occurs, image data can be written from the middle of the line buffer in units of macroblocks, and the display memory corresponding to the block before the erroneous packet in the display memory can be written. Since the invalid data is not overwritten, it is possible to make the disorder of the decoded image inconspicuous in the decoding error of the variable length code with the memory capacity as small as possible. Moreover, the power consumption can be reduced by converting the resolution only when the frame is updated.

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

【図1】本発明の一実施形態に係る画像圧縮データ復号
装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an image compressed 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 block diagram showing a configuration of a conventional image compressed data decoding device.

【図4】従来の画像圧縮データ復号装置の構成を示すブ
ロック図である。
FIG. 4 is a block diagram showing a configuration of a conventional image compression data decoding device.

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

1 画像データ復号部 2 参照メモリ 3 解像度変換部 6 表示メモリ 7 表示部 11 画像データ復号部 12 参照メモリ 13 解像度変換部 14 マクロブロック番号出力部 15 表示メモリ書き込み制御部 16 表示メモリ 17 表示部 18 可変長符号復号処理部 19 逆量子化部 20 逆離散コサイン変換部 21 動き補償部 1 Image data decoding unit 2 Reference memory 3 Resolution converter 6 Display memory 7 Display 11 Image data decoding unit 12 Reference memory 13 Resolution converter 14 Macroblock number output section 15 Display memory write controller 16 display memory 17 Display 18 Variable Length Code Decoding Processor 19 Dequantizer 20 Inverse Discrete Cosine Transform Unit 21 Motion Compensation Unit

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK01 KK08 KK38 KK49 LA06 LB05 MA05 MA23 MC11 ME01 NN01 RB02 RC22 RF01 RF09 UA05 UA37 UA38 5C076 AA22 BA03 BA06 CB04 5J064 AA01 BA09 BB08 BC01 BC16 BD03    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 5C059 KK01 KK08 KK38 KK49 LA06                       LB05 MA05 MA23 MC11 ME01                       NN01 RB02 RC22 RF01 RF09                       UA05 UA37 UA38                 5C076 AA22 BA03 BA06 CB04                 5J064 AA01 BA09 BB08 BC01 BC16                       BD03

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 画像圧縮されたデータを復号する画像デ
ータ復号手段と、復号された画像データを表示する表示
手段と、前記表示手段に応じて画像データの解像度を変
換する解像度変換手段と、解像度変換されたデータを格
納する表示メモリと、画像圧縮されたデータのマクロブ
ロックの位置を示すマクロブロック番号を出力するマク
ロブロック番号出力手段と、出力された前記マクロブロ
ック番号を基に、復号及び解像度変換された画像データ
を書き込む前記表示メモリのアドレスを制御する書き込
み制御手段と、を具備し、復号エラーが発生した場合
に、エラーのあるマクロブロックに対応する表示メモリ
の領域に対してマクロブロック単位に、過去の復号再生
画像又は利用可能な情報から再復号して得た復号画像の
書き込みを行うことを特徴とする画像圧縮データ復号装
置。
1. An image data decoding means for decoding image-compressed data, a display means for displaying the decoded image data, a resolution conversion means for converting the resolution of the image data according to the display means, and a resolution. A display memory for storing the converted data, a macroblock number output means for outputting a macroblock number indicating the position of the macroblock of the image-compressed data, and a decoding and resolution based on the output macroblock number. Write control means for controlling the address of the display memory for writing the converted image data, and in the case where a decoding error occurs, a macroblock unit for the area of the display memory corresponding to the macroblock in error In addition, it is possible to write the decoded image obtained by re-decoding from the past decoded playback image or available information. A characteristic image compression data decoding device.
【請求項2】 前記書き込み制御手段は、復号エラーが
発生した場合に、エラーのあるマクロブロックの直前以
前のマクロブロックに対応する表示メモリの領域に対し
て書き込みをマスクする制御を行うことを特徴とする請
求項1記載の動画像圧縮データ復号装置。
2. The write control means, when a decoding error occurs, controls the write masking to the area of the display memory corresponding to the macroblock immediately before the macroblock having the error. The moving image compressed data decoding device according to claim 1.
【請求項3】 解像度変換して表示メモリに書き込む動
作を、画像が更新された場合のみ行うことを特徴とする
請求項1又は2記載の動画像圧縮データ復号装置。
3. The moving image compressed data decoding apparatus according to claim 1, wherein the operation of converting the resolution and writing the same in the display memory is performed only when the image is updated.
JP2001311824A 2001-10-09 2001-10-09 Image compression data decoder Pending JP2003116129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001311824A JP2003116129A (en) 2001-10-09 2001-10-09 Image compression data decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001311824A JP2003116129A (en) 2001-10-09 2001-10-09 Image compression data decoder

Publications (1)

Publication Number Publication Date
JP2003116129A true JP2003116129A (en) 2003-04-18

Family

ID=19130580

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001311824A Pending JP2003116129A (en) 2001-10-09 2001-10-09 Image compression data decoder

Country Status (1)

Country Link
JP (1) JP2003116129A (en)

Similar Documents

Publication Publication Date Title
USRE42500E1 (en) Moving-picture signal coding and/or decoding system resistant to transmission error
US7489823B2 (en) Method for using a reentry data set to decode compressed data
JP3302939B2 (en) Video signal decompressor for independently compressed even and odd field data
JP2009260977A (en) Video data compression using combination of irreversible compression and reversible compression
JP2003504988A (en) Image decoding method, image encoding method, image encoder, image decoder, wireless communication device, and image codec
JP2003304542A (en) Video signal decompression apparatus
US7925120B2 (en) Methods of image processing with reduced memory requirements for video encoder and decoder
JPH10215457A (en) Moving image decoding method and device
JP3078991B2 (en) Low delay mode image decoding method and apparatus
JP2003348594A (en) Device and method for decoding image
JPH1023424A (en) Device for decoding compression data of moving image
JP2003116129A (en) Image compression data decoder
JP2003032686A (en) Decoder, decoding method and program for allowing computer to execute this method
JP2824024B2 (en) Image decoding method and apparatus
US20100328332A1 (en) System and method for reducing memory access bandwidth in video decoding
JPH08163570A (en) Method and device for decoding low delay mode picture
JPH10136369A (en) Decoder for digital moving image
JPH08126011A (en) Image decoding method and image decoder
JP2000057711A (en) Error correction decoding device
JP2003274413A (en) Error handling apparatus and method
JPH11122615A (en) Image decoder
JPH11355720A (en) Image signal reproducing device and its method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040618

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060828

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060912

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070130