JP2006345046A - Image decoding circuit, image decoding system, and electronic apparatus mounted therewith - Google Patents

Image decoding circuit, image decoding system, and electronic apparatus mounted therewith Download PDF

Info

Publication number
JP2006345046A
JP2006345046A JP2005166735A JP2005166735A JP2006345046A JP 2006345046 A JP2006345046 A JP 2006345046A JP 2005166735 A JP2005166735 A JP 2005166735A JP 2005166735 A JP2005166735 A JP 2005166735A JP 2006345046 A JP2006345046 A JP 2006345046A
Authority
JP
Japan
Prior art keywords
circuit
image decoding
image
error
decoding
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
JP2005166735A
Other languages
Japanese (ja)
Inventor
Akira Sawamura
陽 沢村
Tomoji Marumoto
共治 丸本
Yuji Kurotsuchi
勇二 黒土
Takashi Morita
隆史 森田
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.)
Rohm Co Ltd
Original Assignee
Rohm 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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP2005166735A priority Critical patent/JP2006345046A/en
Publication of JP2006345046A publication Critical patent/JP2006345046A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve a problem of a low restoring force of an image because decoding processing is terminated at a point of time when a code error is detected in the case of using a hardware decoder to decode compressed coded image data. <P>SOLUTION: In an image decoding circuit 100 for decoding coded image data, error detection circuits 14, 18, 22 detect code errors during decoding of the coded image data. A restart marker searching circuit 28 searches an identification code denoting a position of an independent region permitting closed decoding in a region appearing next after a coding error is detected. A supplement circuit 30 supplements prescribed dummy images between a position from which the code error is detected and a position from which the identification code is searched. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、圧縮された符号化画像データを復号する画像復号回路、画像復号システムおよびそれを搭載した電子機器に関する。   The present invention relates to an image decoding circuit for decoding compressed encoded image data, an image decoding system, and an electronic apparatus equipped with the image decoding circuit.

JPEG(Joint Photographic Experts Group)やMPEG(Moving Picture Experts Group)などの形式で圧縮符号化された画像データが広く使用されている。通信中にノイズが重畳されたりなど様々な要因で、このような符号化画像データ内に符号誤りが発生する。符号誤りを含む画像データを復号すると、原画像と異なる部分を含む表示画像となったり、復号処理が途中で停止してしまったりする。これに対し、符号化画像データを修復する技術が使用されている。例えば、特許文献1は、符号誤りを含む符号化画像データを修復するためのプログラムを開示する。   Image data compression-coded in a format such as JPEG (Joint Photographic Experts Group) or MPEG (Moving Picture Experts Group) is widely used. Code errors occur in such encoded image data due to various factors such as noise being superimposed during communication. When image data including a code error is decoded, a display image including a portion different from the original image is displayed, or the decoding process is stopped halfway. On the other hand, a technique for restoring encoded image data is used. For example, Patent Literature 1 discloses a program for restoring encoded image data including a code error.

一方、符号化画像データは、PC、携帯電話機など各種の電子機器で使用される。このような電子機器にて、そのホストプロセッサの処理を軽減するため、符号化画像データを復号するための専用のハードウェアデコーダを搭載する場合がある。
特開2002−27254号公報
On the other hand, encoded image data is used in various electronic devices such as PCs and mobile phones. In such an electronic device, in order to reduce the processing of the host processor, a dedicated hardware decoder for decoding encoded image data may be mounted.
JP 2002-27254 A

符号誤りを含む符号化画像データをハードウェアデコーダで復号すると、符号誤りが検出された時点で復号処理が終了してしまい、その後の処理はすべてホストプロセッサに委ねられていた。したがって、符号誤りが検出された場合、ホストプロセッサの負荷が大きくなり、ハードウェアデコーダを別個に設けた趣旨がそこなわれてしまいがちだった。また、ホストプロセッサが修復処理をしなければ、符号誤りが検出された以降に正常なデータがあっても、その検出のときの復号段階の画像が表示されることになる。例えば、画像が半分しか表示されないということも発生しえる。   When encoded image data including a code error is decoded by a hardware decoder, the decoding process ends when the code error is detected, and all subsequent processes are left to the host processor. Therefore, when a code error is detected, the load on the host processor increases, and the purpose of providing a separate hardware decoder tends to be overlooked. Further, if the host processor does not perform the repair process, even if there is normal data after the code error is detected, the image at the decoding stage at the time of detection is displayed. For example, only half of the image may be displayed.

本発明はこうした状況に鑑みてなされたものであり、その目的は、ハードウェア資源で構成された画像復号回路を使用する場合にて、エラーを含む符号化画像データの復元性を向上させることができる画像復号回路、画像復号システムおよびそれを搭載した電子機器を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to improve the recoverability of encoded image data including errors when using an image decoding circuit configured with hardware resources. An image decoding circuit, an image decoding system, and an electronic device equipped with the image decoding circuit are provided.

上記課題を解決するために、本発明のある態様の画像復号回路は、領域内に閉じた復号が可能な独立領域と、他の領域からの差分情報を利用して復号される従属領域とを含む符号化画像データを復号する画像復号回路であって、符号化画像データの復号中に符号誤りを検出するエラー検出回路と、前記符号誤りが検出された後、次に現れる独立領域の位置を示す識別符号を検索する検索回路と、前記符号誤りが検出された箇所から前記識別符号が検索された箇所の間に、所定のダミー画像を補充する補充回路と、を備える。   In order to solve the above-described problem, an image decoding circuit according to an aspect of the present invention includes an independent region that can be decoded within a region and a dependent region that is decoded using difference information from another region. An image decoding circuit for decoding encoded image data including an error detection circuit for detecting a code error during decoding of the encoded image data, and a position of an independent region that appears next after the code error is detected And a replenishment circuit for replenishing a predetermined dummy image between a location where the identification code is retrieved from a location where the code error is detected.

この態様によると、ハードウェア資源で構成された画像復号回路に検索回路および補充回路を搭載したことにより、エラーを含む符号化画像データの復元性を向上させることができる。   According to this aspect, by mounting the search circuit and the supplement circuit on the image decoding circuit configured with hardware resources, it is possible to improve the recoverability of encoded image data including errors.

エラー検出回路は、符号誤りを検出するとホストプロセッサに通知し、検索回路および補充回路は、そのホストプロセッサの指示を受けて、動作を開始してもよい。エラー検出回路が符号誤りを検出すると、復号処理を中断し、ホストプロセッサからの指示を待ってもよい。   The error detection circuit may notify the host processor when a code error is detected, and the search circuit and the supplement circuit may start operation upon receiving an instruction from the host processor. When the error detection circuit detects a code error, the decoding process may be interrupted and an instruction from the host processor may be waited.

この態様によると、専用の画像復号回路とホストプロセッサとを連携して復号処理する場合において、ホストプロセッサにかける負荷を抑制しながら、画像復号回路の規模も抑制できる。   According to this aspect, when the dedicated image decoding circuit and the host processor perform the decoding process in cooperation, the scale of the image decoding circuit can be suppressed while suppressing the load applied to the host processor.

エラー検出回路は、エントロピー復号に必要な符号テーブルに含まれない符号が符号化画像データ中に含まれているかを検出してもよい。エラー検出回路は、独立領域の所在を示すリスタートマーカの位置または順番に誤りがあるか否かを検出してもよい。エラー検出回路は、各ブロックの要素数が規定された要素数を超えるか否かを検出してもよい。エラー検出回路は、本画像復号回路がサポートしていないマーカが符号化画像データ中に含まれているかを検出してもよい。   The error detection circuit may detect whether a code not included in the code table necessary for entropy decoding is included in the encoded image data. The error detection circuit may detect whether or not there is an error in the position or order of the restart marker indicating the location of the independent area. The error detection circuit may detect whether or not the number of elements of each block exceeds a specified number of elements. The error detection circuit may detect whether the encoded image data includes a marker that is not supported by the image decoding circuit.

本発明のさらに別の態様は、画像復号システムである。この画像復号システムは、上述した態様の画像復号回路と、画像復号回路に符号化画像データの復号を依頼するホストプロセッサと、を備える。この態様によると、画像復号回路内の検索回路および補充回路を利用して画像の修復処理を行うことにより、ホストプロセッサにかける負荷を抑制することができる。   Yet another aspect of the present invention is an image decoding system. This image decoding system includes an image decoding circuit according to the above-described aspect, and a host processor that requests the image decoding circuit to decode encoded image data. According to this aspect, the load applied to the host processor can be suppressed by performing the image restoration process using the search circuit and the supplement circuit in the image decoding circuit.

ホストプロセッサは、画像復号回路からダミー画像の補充終了の通知を受けると、画像復号回路に復号処理の再開を指示してもよい。この態様によると、画像復号回路がダミー画像を補充したのち、正常と判断された部分の画像データの復号を再開することができる。   The host processor may instruct the image decoding circuit to restart the decoding process when receiving a notice of completion of supplementation of the dummy image from the image decoding circuit. According to this aspect, after the image decoding circuit supplements the dummy image, the decoding of the image data of the part determined to be normal can be resumed.

本発明のさらに別の態様は、電子機器である。この電子機器は、上述した態様の画像復号システムを搭載する電子機器であって、画像復号システムにて復号された画像を表示する表示部を備える。この態様によると、画像復号に関してホストプロセッサにかかる負荷が小さいため、他のアプリケーションを安定的に実行することができる。   Yet another embodiment of the present invention is an electronic device. This electronic device is an electronic device equipped with the image decoding system of the above-described aspect, and includes a display unit that displays an image decoded by the image decoding system. According to this aspect, since the load on the host processor regarding image decoding is small, other applications can be stably executed.

なお、以上の構成要素の任意の組合せ、本発明の表現を装置、方法、システム、コンピュータプログラムなどの間で変換したものもまた、本発明の態様として有効である。   It should be noted that any combination of the above-described components and a representation of the present invention converted between an apparatus, a method, a system, a computer program, etc. are also effective as an aspect of the present invention.

本発明によれば、ハードウェア資源で構成された画像復号回路を使用する場合にて、エラーを含む符号化画像データの復元性を向上させることができる。   ADVANTAGE OF THE INVENTION According to this invention, when using the image decoding circuit comprised with the hardware resource, the recoverability of the encoding image data containing an error can be improved.

図1は、本発明の実施形態における画像復号システム500の構成を示すブロック図である。画像復号システム500は、画像復号回路100およびCPU200を含む。画像復号回路100およびCPU200はバスで接続される。画像復号回路100は、一定の規則に基づいて符号化画像データを復号し、原画像に復元するハードウェア資源である。画像復号回路100は、半導体基板上に集積化されて構成されてもよい。画像復号回路100の詳細は後述する。   FIG. 1 is a block diagram showing a configuration of an image decoding system 500 in the embodiment of the present invention. The image decoding system 500 includes an image decoding circuit 100 and a CPU 200. The image decoding circuit 100 and the CPU 200 are connected by a bus. The image decoding circuit 100 is a hardware resource that decodes encoded image data based on a certain rule and restores the original image. The image decoding circuit 100 may be configured to be integrated on a semiconductor substrate. Details of the image decoding circuit 100 will be described later.

CPU200は、搭載される電子機器の全体を制御する。画像復号に関しては、図示しない通信インタフェースや記録媒体から入力された符号化画像データCIの復号処理を画像復号回路100に依頼するため、その符号化画像データCIを画像復号回路100に出力する。また、画像復号回路100で復号された復号画像DIを受け取り、図示しない表示部などに出力する。画像復号回路100およびCPU200は、画像データのやりとりの他に、復号中に符号誤りが検出された場合のリカバリー処理についての制御信号をやりとりする機能を有する。この制御信号のやりとりの詳細も後述する。   The CPU 200 controls the entire electronic device mounted. With respect to image decoding, in order to request the image decoding circuit 100 to decode encoded image data CI input from a communication interface (not shown) or a recording medium, the encoded image data CI is output to the image decoding circuit 100. Also, the decoded image DI decoded by the image decoding circuit 100 is received and output to a display unit (not shown). In addition to the exchange of image data, the image decoding circuit 100 and the CPU 200 have a function of exchanging control signals for recovery processing when a code error is detected during decoding. Details of this exchange of control signals will also be described later.

図2は、実施形態における画像復号回路100の詳細を示すブロック図である。以下、画像復号回路100がJPEG圧縮された符号化画像データを復号する専用のハードウェア資源である例を説明する。画像復号回路100は、マーカ検出回路12、エントロピー復号回路16、組立回路20、逆量子化回路24、逆DCT(Discrete Cosine Transform)回路26、リスタートマーカ検索回路28および補充回路30を含む。   FIG. 2 is a block diagram illustrating details of the image decoding circuit 100 in the embodiment. In the following, an example in which the image decoding circuit 100 is a dedicated hardware resource for decoding JPEG-compressed encoded image data will be described. The image decoding circuit 100 includes a marker detection circuit 12, an entropy decoding circuit 16, an assembly circuit 20, an inverse quantization circuit 24, an inverse DCT (Discrete Cosine Transform) circuit 26, a restart marker search circuit 28, and a supplement circuit 30.

マーカ検出回路12は、入力される符号化画像データCIのビットストリームからマーカを検出する。マーカには、SOI(Start OF Image)、EOI(End OF Image)および後述するリスタートマーカなどがある。JPEGでは16ビットで記述され、"11111111"で始まる。マーカ検出回路12は、検出したマーカにより、ストリーム中の画像の開始位置、終了位置およびECS(Entropy-Coded Segment)の終了位置などを制御信号として、後段のエントロピー復号回路16、組立回路20、逆量子化回路24および逆DCT回路26に通知する。   The marker detection circuit 12 detects a marker from the bit stream of the input encoded image data CI. The markers include SOI (Start Of Image), EOI (End OF Image), and a restart marker described later. In JPEG, it is described in 16 bits and starts with “11111111”. Based on the detected marker, the marker detection circuit 12 uses the start position and end position of the image in the stream, the end position of the ECS (Entropy-Coded Segment), etc. as control signals, and the subsequent entropy decoding circuit 16, assembly circuit 20, and inverse Notify the quantization circuit 24 and the inverse DCT circuit 26.

マーカ検出回路12は、第1エラー検出回路14を含む。第1エラー検出回路14は、本画像復号回路100で使用可能なマーカ以外の処理できないNGマーカを検出すると、CPU200にその旨を通知し、少なくともエントロピー復号回路16および組立回路20に処理を中断するよう指示する。   The marker detection circuit 12 includes a first error detection circuit 14. When the first error detection circuit 14 detects an NG marker that cannot be processed other than the marker that can be used in the image decoding circuit 100, the first error detection circuit 14 notifies the CPU 200 to that effect and interrupts at least the entropy decoding circuit 16 and the assembly circuit 20. Instruct.

また、第1エラー検出回路14は、後述するリスタートマーカのモジュロ値が不正である場合、ならびにリスタートマーカを正常位置より前で検出した場合および正常位置で検出できない場合もCPU200にその旨を通知する。さらに、EOI(End OF Image)マーカを正常位置より前で検出した場合もCPU200にその旨を通知する。いずれの場合も、少なくとも組立回路20およびエントロピー復号回路16に処理を中断するよう指示する。リスタートマーカの間隔もフレームの要素数もヘッダ情報として与えられるため、ブロックの要素数と同様に容易に判断することができる。   The first error detection circuit 14 also informs the CPU 200 when the modulo value of a restart marker described later is invalid, and when the restart marker is detected before the normal position and cannot be detected at the normal position. Notice. Further, when an EOI (End OF Image) marker is detected before the normal position, the CPU 200 is notified of this. In any case, at least the assembly circuit 20 and the entropy decoding circuit 16 are instructed to interrupt the processing. Since the interval between restart markers and the number of frame elements are given as header information, it can be easily determined in the same manner as the number of block elements.

エントロピー復号回路16は、エントロピー符号化されている画像データを、それに先立ちて与えられる符号テーブルを参照して復号する。例えば、ハフマン符号化されている画像データを所定のハフマンテーブルを参照して復号する。エントロピー復号回路16は、第2エラー検出回路18を含む。第2エラー検出回路18は、上記符号テーブルに記述されているエントロピー符号とストリーム中のエントロピー符号とを比較し、当該符号テーブルに存在しない符号を検出する。検出した場合、CPU200にその旨を通知し、少なくともマーカ検出回路12および組立回路20に処理を中断するよう指示する。   The entropy decoding circuit 16 decodes the entropy-encoded image data with reference to a code table given in advance. For example, Huffman encoded image data is decoded with reference to a predetermined Huffman table. The entropy decoding circuit 16 includes a second error detection circuit 18. The second error detection circuit 18 compares the entropy code described in the code table with the entropy code in the stream, and detects a code that does not exist in the code table. If detected, the CPU 200 is notified of this, and at least the marker detection circuit 12 and the assembly circuit 20 are instructed to interrupt the processing.

組立回路20は、エントロピー復号されたビット列をブロック単位に組み立てる。演算量を低減するために、画像はブロックに分割されて符号化される。例えば、縦8×横8=64で単位ブロックを構成する。以下、この例で説明する。ブロックは、左上隅のDCT係数の直流成分を表し、その他のDCT係数が交流成分を表す。右下隅に近づくにしたがって低周波成分のDCT係数から高周波成分のDCT係数が配置される。低周波成分を優先するため、左上隅からジグザグに走査されて符号化される。組立回路20は、この反対にジグザグにDCT係数を組み立てていく。   The assembly circuit 20 assembles the entropy-decoded bit string in units of blocks. In order to reduce the amount of calculation, the image is divided into blocks and encoded. For example, a unit block is composed of vertical 8 × horizontal 8 = 64. Hereinafter, this example will be described. The block represents the direct current component of the DCT coefficient in the upper left corner, and the other DCT coefficients represent the alternating current component. As it approaches the lower right corner, the DCT coefficient of the high frequency component is arranged from the DCT coefficient of the low frequency component. In order to give priority to the low-frequency component, scanning is performed zigzag from the upper left corner and encoded. On the contrary, the assembly circuit 20 assembles the DCT coefficients in a zigzag manner.

組立回路20は、第3エラー検出回路22を含む。第3エラー検出回路22は、構築した各ブロックが規定の要素数を超える場合、上述した例では64を超える場合、CPU200にその旨を通知し、少なくともマーカ検出回路12およびエントロピー復号回路16に処理を中断するよう指示する。   The assembly circuit 20 includes a third error detection circuit 22. The third error detection circuit 22 notifies the CPU 200 of the fact that each constructed block exceeds the prescribed number of elements, or exceeds 64 in the above-described example, and processes at least the marker detection circuit 12 and the entropy decoding circuit 16. Instruct to interrupt.

逆量子化回路24は、ブロック単位に組み立てられたDCT係数を、それに先立ちて与えられる量子化テーブルを参照して逆量子化する。逆DCT回路26は、逆量子化された係数を逆DCTすることにより各ブロックに対応する部分画像を復元する。そして、単位フレームを構成する各ブロックを合成すれば、復号された原画像となる。この一連の復号処理を、Y成分、Cb成分およびCr成分のそれぞれについて実施するとカラー画像を復元することができる。なお、Y成分、Cb成分およびCr成分の代わりにR成分、G成分およびB成分でもよいし、別の表示系でもよい。   The inverse quantization circuit 24 inversely quantizes the DCT coefficients assembled in block units with reference to a quantization table given prior to the DCT coefficients. The inverse DCT circuit 26 restores a partial image corresponding to each block by performing inverse DCT on the inversely quantized coefficient. Then, if the blocks constituting the unit frame are combined, a decoded original image is obtained. When this series of decoding processes is performed for each of the Y component, the Cb component, and the Cr component, a color image can be restored. Instead of the Y component, Cb component and Cr component, the R component, G component and B component may be used, or another display system may be used.

リスタートマーカ検索回路28は、CPU200からリスタートマーカの検索を依頼されると、マーカ検出回路12に現れる次のリスタートマーカを検索し、その検索結果をCPU200に返す。補充回路30は、CPU200から指示された補充開始位置から終了位置までの間にダミー画像を補充する。ダミー画像としては、例えば、青や黒などの無地の画像データを送出することができる。   When the restart marker search circuit 28 is requested to search for the restart marker by the CPU 200, the restart marker search circuit 28 searches for the next restart marker appearing in the marker detection circuit 12 and returns the search result to the CPU 200. The replenishment circuit 30 replenishes the dummy image between the replenishment start position and the end position instructed by the CPU 200. As the dummy image, for example, plain image data such as blue or black can be transmitted.

CPU200は、少なくとも3種類の指示を出す。すなわち、次のリスタートマーカの検索指示、ダミー画像の送出指示、および復号再開指示である。CPU200は、次のリスタートマーカの検索指示をリスタートマーカ検索回路28に出す場合、リスタートマーカ検索回路28が次のリスタートマーカを検索するまでの期間、マーカ検出回路12、エントロピー復号回路16および組立回路20に復号を再開するよう指示する。上記復号再開指示は、少なくともマーカ検出回路12、エントロピー復号回路16および組立回路20に出される。   The CPU 200 issues at least three types of instructions. That is, the next restart marker search instruction, dummy image transmission instruction, and decoding restart instruction. When the CPU 200 issues a search instruction for the next restart marker to the restart marker search circuit 28, the period until the restart marker search circuit 28 searches for the next restart marker, the marker detection circuit 12 and the entropy decoding circuit 16 And instructs the assembly circuit 20 to resume decoding. The decoding restart instruction is issued to at least the marker detection circuit 12, the entropy decoding circuit 16, and the assembly circuit 20.

次に、リスタートマーカの詳細について説明する。JPEGでは、DCT係数を符号化する際、各ブロックの直流成分は、隣接するブロックと値が近い場合が多いため、基準となるブロック以降のブロックについては、前のブロックとの差分情報で表される。DPCM(Differential Pulse Code Modulation)方式などで符号化される。交流成分は、ブロックごとに独立で符号化される。   Next, details of the restart marker will be described. In JPEG, when the DCT coefficient is encoded, the DC component of each block is often close in value to the adjacent block. Therefore, the blocks after the reference block are represented by difference information from the previous block. The It is encoded by a DPCM (Differential Pulse Code Modulation) method or the like. The AC component is encoded independently for each block.

基準となるブロックの直流成分にエラーが発生すると、それ以降のブロックの直流成分がエラーとなってしまう。そこで、差分情報で符号化する場合の基準とすべき基本データを含むブロックを所定の間隔で設ける。リスタートマーカは、この再基準となるブロックの位置を表す。上記所定の間隔は、設計者が自由に設定することができる。リスタートマーカも16ビットで記述され、"111111111101"で始まり、残りの4ビットにモジュロ値が記述される。モジュロ値は、ある整数をある整数で割った余りを示す。   If an error occurs in the DC component of the reference block, the DC component of the subsequent blocks will become an error. Therefore, blocks including basic data to be used as a reference when encoding with difference information are provided at predetermined intervals. The restart marker represents the position of the block serving as the re-reference. The predetermined interval can be freely set by the designer. The restart marker is also described with 16 bits, starts with “111111111101”, and the modulo value is described with the remaining 4 bits. The modulo value indicates the remainder when an integer is divided by an integer.

図3は、リスタートマーカが設定された画像を示す。図3の画像は、ブロックが縦6×横7=42で構成される。左上隅のブロックMB1が基準となるブロックである。この画像では、ブロック5個に1つの割合でリスタートマーカを設定している。したがって、8個のリスタートマーカが設定される。このリスタートマーカの下位4ビットは8のモジュロ値で記述され、0〜7の値が記述される。リスタートマーカは、0から7までインクリメントし、7まできたら0に復帰する。図3では、RST0〜RST7と記述している。   FIG. 3 shows an image in which a restart marker is set. In the image of FIG. 3, the block is composed of 6 × 8 × 42. The block MB1 in the upper left corner is a reference block. In this image, one restart marker is set for every five blocks. Accordingly, eight restart markers are set. The lower 4 bits of the restart marker are described by a modulo value of 8, and a value of 0 to 7 is described. The restart marker increments from 0 to 7, and returns to 0 when it reaches 7. In FIG. 3, it is described as RST0 to RST7.

図3は、符号化画像データのストリーム中でエラーが発生し、偶然リスタートマーカRST5のビット列と同様のビット列が出現した状態を示している。リスタートマーカRST5aがエラーにより偶然出現したものを示し、リスタートマーカRST5bが正規のものを示す。上述したように、第3エラー検出回路22は、正規の順番と異なるリスタートマーカRST5aを検出すると、CPU200にその旨を通知する。その後、リスタートマーカ検索回路28は、CPU200の指示により次のリスタートマーカを検索すると、リスタートマーカRST2を検出することができる。これにより、リスタートマーカRST5aがエラーであることを確認することができる。   FIG. 3 shows a state where an error has occurred in the encoded image data stream and a bit string similar to the bit string of the restart marker RST5 appears by chance. The restart marker RST5a indicates an accidental appearance due to an error, and the restart marker RST5b indicates a normal one. As described above, when the third error detection circuit 22 detects a restart marker RST5a that is different from the normal order, the third error detection circuit 22 notifies the CPU 200 accordingly. Thereafter, the restart marker search circuit 28 can detect the restart marker RST2 when searching for the next restart marker in accordance with an instruction from the CPU 200. Thereby, it can be confirmed that the restart marker RST5a is an error.

図4は、エラーを含む符号化画像データを復号した画像を示す。図4(a)は、本実施形態の修復処理がなされた画像であり、図4(b)は本実施形態の修復するための回路が搭載されていない画像復号回路で復号された画像である。図4(a)の画像は、本実施形態の修復処理により、エラーが検出された位置から次のリスタートマーカまでの間にダミー画像Dが補充されている。これに対し、図4(b)は、エラーが検出された位置で復号処理が終了している。   FIG. 4 shows an image obtained by decoding encoded image data including an error. FIG. 4A is an image that has been subjected to the restoration processing of the present embodiment, and FIG. 4B is an image that has been decoded by an image decoding circuit that is not equipped with a circuit for restoration of the present embodiment. . In the image of FIG. 4A, the dummy image D is replenished between the position where the error is detected and the next restart marker by the repair processing of the present embodiment. On the other hand, in FIG. 4B, the decoding process ends at the position where the error is detected.

図5は、実施形態における画像復号システム500の修復処理を説明するためのフローチャートである。まず、第1エラー検出回路14、第2エラー検出回路18および第3エラー検出回路22のいずれかがエラーを検出すると(S10)、CPU200に通知する(S12)。CPU200は、リスタートマーカ検索回路28に次のリスタートマーカを検索するよう指示する(S14)。リスタートマーカ検索回路28は、次のリスタートマーカを検索し、検出した場合(S16のY)、CPU200に通知する(S18)。   FIG. 5 is a flowchart for explaining the restoration processing of the image decoding system 500 in the embodiment. First, when any of the first error detection circuit 14, the second error detection circuit 18 and the third error detection circuit 22 detects an error (S10), the CPU 200 is notified (S12). The CPU 200 instructs the restart marker search circuit 28 to search for the next restart marker (S14). When the next restart marker is searched and detected (Y in S16), the restart marker search circuit 28 notifies the CPU 200 (S18).

CPU200は、リスタートマーカ検索回路28から検出成功の通知を受けると、補充回路30にエラー検出位置から検出したリスタートマーカまでの間にダミー画像Dを送出するよう指示する(S20)。補充回路30は、ダミー画像の補充が終了すると、CPU200に通知する(S22)。CPU200は、補充回路30から補充完了の通知を受けると、画像復号回路100全体に復号処理を再開するよう指示する(S24)。   When receiving the notification of successful detection from the restart marker search circuit 28, the CPU 200 instructs the replenishment circuit 30 to send the dummy image D between the error detection position and the detected restart marker (S20). When the supplement of the dummy image is completed, the supplement circuit 30 notifies the CPU 200 (S22). When receiving the replenishment completion notification from the replenishment circuit 30, the CPU 200 instructs the entire image decoding circuit 100 to resume the decoding process (S24).

以上説明したように本実施形態によれば、部分的にデータ誤りが発生していたり、規格外の識別符号を含むなどのエラーを含む符号化画像データを復号する際の復元性を向上させることができる。しかも、エラー内容の検出、リスタートマーカの検出およびダミー画像の送出をハードウェアで構成していることから、ホストプロセッサに大きな負荷をかけることなく、柔軟性の高い修復処理を実現することができる。   As described above, according to the present embodiment, it is possible to improve recoverability when decoding encoded image data including errors such as partial data errors or including non-standard identification codes. Can do. Moreover, since error detection, restart marker detection, and dummy image transmission are configured by hardware, highly flexible repair processing can be realized without imposing a heavy load on the host processor. .

ステップS16にて、リスタートマーカを検出できなかった場合も(S16のN)、スタートマーカ検索回路28は、リスタートマーカの検索失敗をCPU200に通知する(S26)。CPU200は、エラー検出以降のデータに正常な部分があることを確認できないため、その符号化画像データの修復処理を終了して、次の符号化画像データの復号に備えるよう画像復号回路100全体に指示する(S28)。   Even if the restart marker cannot be detected in step S16 (N in S16), the start marker search circuit 28 notifies the CPU 200 of the restart marker search failure (S26). Since the CPU 200 cannot confirm that there is a normal part in the data after the error detection, the CPU 200 finishes the restoration process of the encoded image data and prepares the entire image decoding circuit 100 to prepare for the decoding of the next encoded image data. Instruct (S28).

図6は、本実施形態における画像復号システム500を搭載した電子機器700の構成を示す。当該電子機器700は、電池710、通信部720、記録部730、画像復号システム500および表示部740を備える。画像復号に関係のない要素は省略している。電子機器700は、主として、携帯電話機、デジタルカメラおよび携帯型ゲーム機などの携帯機器が該当する。画像復号システム500は、通信部720または記録部730から供給された符号化画像データを復号し、復号画像を表示部740に出力する。   FIG. 6 shows a configuration of an electronic apparatus 700 equipped with the image decoding system 500 in the present embodiment. The electronic device 700 includes a battery 710, a communication unit 720, a recording unit 730, an image decoding system 500, and a display unit 740. Elements not related to image decoding are omitted. The electronic device 700 mainly includes portable devices such as a mobile phone, a digital camera, and a portable game machine. The image decoding system 500 decodes the encoded image data supplied from the communication unit 720 or the recording unit 730 and outputs the decoded image to the display unit 740.

画像復号システム500は、符号化画像データをソフトウェアで復号すると、搭載されるシステム全体の制約要因となるような分野への使用に適している。携帯型の電子機器700は正にその分野といえる。例えば、携帯型の電子機器700に搭載されるホストプロセッサは、電池駆動などの要因で高周波数で動作させることが難しい。符号化画像データを高速に復号するにはハードウェアで行うことが適している。また、ソフトウェアで復号すると、通信など優先度の高い他のアプリケーションの制約要因となり、通信エラーなどを招来しやすくなる。このように、携帯型の電子機器に上記実施形態の画像復号システム500を適用すると、消費電力の節約やシステムの安定化に資する。もちろん、この趣旨は携帯機器に限るものではなく、PCなどにも当てはまる。   The image decoding system 500 is suitable for use in a field in which when the encoded image data is decoded by software, it becomes a limiting factor for the entire mounted system. The portable electronic device 700 can be said to be the field. For example, it is difficult for a host processor mounted on the portable electronic device 700 to operate at a high frequency due to factors such as battery driving. In order to decode the encoded image data at a high speed, it is suitable to perform it with hardware. Decoding with software is a limiting factor for other high-priority applications such as communication, and is likely to cause communication errors. As described above, when the image decoding system 500 of the above-described embodiment is applied to a portable electronic device, it contributes to saving power consumption and stabilizing the system. Of course, this point is not limited to portable devices, but also applies to PCs and the like.

以上、本発明を実施の形態をもとに説明した。この実施の形態は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。   The present invention has been described based on the embodiments. This embodiment is an exemplification, and it will be understood by those skilled in the art that various modifications can be made to combinations of the respective constituent elements and processing processes, and such modifications are also within the scope of the present invention. is there.

上記実施形態では、JPEG形式で圧縮された符号化画像データを復号する例を説明した。この点、JPEG形式に限ることなく、所定の間隔でリスタートマーカが設定されている符号化画像データであれば適用可能である。例えば、MPEG形式でも所定の間隔でリスタートマーカが設定されていれば、フレーム内での修復処理ばかりでなく、フレームを跨ぐ修復処理にも適用可能である。   In the above embodiment, an example in which encoded image data compressed in the JPEG format is decoded has been described. In this regard, the present invention is not limited to the JPEG format, and can be applied to encoded image data in which restart markers are set at predetermined intervals. For example, even in the MPEG format, if restart markers are set at predetermined intervals, the present invention can be applied not only to repair processing within a frame but also to repair processing across frames.

上記実施形態にて、CPU200がソフトウェア的な判断処理に基づく各指示の生成をハードウェア的な制御回路により実現し、それを画像復号回路100に搭載してもよい。画像復号回路100の回路規模の増大につながるが、ホストプロセッサの負荷をさらに軽減することができる。   In the above-described embodiment, the CPU 200 may generate each instruction based on the software determination process by a hardware control circuit, and may be mounted on the image decoding circuit 100. Although this leads to an increase in the circuit scale of the image decoding circuit 100, the load on the host processor can be further reduced.

また、実施形態では、第1エラー検出回路14、第2エラー検出回路18および第3エラー検出回路22の3つのエラー検出回路を搭載する例を説明した。この点、少なくとも1つを搭載していれば本発明の適用範囲となる。とくに、少なくとも第2エラー検出回路18を搭載していることが望ましい。ハフマンテーブルに記述されていないデータが含まれることを検出する処理は、エラー検出処理のなかでとくに重要だからである。もちろん、第1エラー検出回路14および第3エラー検出回路22を搭載することにより、偶然にマーカなどと同じビット列に変化してしまったエラーも検出することができ、エラー検出の精度を高めることができる。   In the embodiment, the example in which the three error detection circuits including the first error detection circuit 14, the second error detection circuit 18, and the third error detection circuit 22 are mounted has been described. In this regard, if at least one is mounted, the application range of the present invention is achieved. In particular, it is desirable to mount at least the second error detection circuit 18. This is because the process of detecting that data not described in the Huffman table is included is particularly important in the error detection process. Of course, by mounting the first error detection circuit 14 and the third error detection circuit 22, it is possible to detect an error that has been accidentally changed to the same bit string as the marker, etc., and to improve the accuracy of error detection. it can.

本発明の実施形態における画像復号システムの構成を示すブロック図である。It is a block diagram which shows the structure of the image decoding system in embodiment of this invention. 実施形態における画像復号回路の詳細を示すブロック図である。It is a block diagram which shows the detail of the image decoding circuit in embodiment. リスタートマーカが設定された画像を示す図である。It is a figure which shows the image in which the restart marker was set. エラーを含む符号化画像データを復号した画像を示す図である。It is a figure which shows the image which decoded the encoding image data containing an error. 実施形態における画像復号システムの修復処理を説明するためのフローチャートである。It is a flowchart for demonstrating the repair process of the image decoding system in embodiment. 実施形態における画像復号システムを搭載した電子機器の構成を示す図である。It is a figure which shows the structure of the electronic device carrying the image decoding system in embodiment.

符号の説明Explanation of symbols

12 マーカ検出回路、 14 第1エラー検出回路、 16 エントロピー復号回路、 18 第2エラー検出回路、 20 組立回路、 22 第3エラー検出回路、 24 逆量子化回路、 26 逆DCT回路、 28 リスタートマーカ検索回路、 30 補充回路、 100 画像復号回路、 200 CPU、 300 表示部、 500 画像復号システム、 700 電子機器、 710 電池、 720 通信部、 730 記録部、 740 表示部。   12 marker detection circuit, 14 first error detection circuit, 16 entropy decoding circuit, 18 second error detection circuit, 20 assembly circuit, 22 third error detection circuit, 24 inverse quantization circuit, 26 inverse DCT circuit, 28 restart marker Search circuit, 30 supplementary circuit, 100 image decoding circuit, 200 CPU, 300 display unit, 500 image decoding system, 700 electronic device, 710 battery, 720 communication unit, 730 recording unit, 740 display unit.

Claims (9)

領域内に閉じた復号が可能な独立領域と、他の領域からの差分情報を利用して復号される従属領域とを含む符号化画像データを復号する画像復号回路であって、
符号化画像データの復号中に符号誤りを検出するエラー検出回路と、
前記符号誤りが検出された後、次に現れる独立領域の位置を示す識別符号を検索する検索回路と、
前記符号誤りが検出された箇所から前記識別符号が検索された箇所の間に、所定のダミー画像を補充する補充回路と、
を備えることを特徴とする画像復号回路。
An image decoding circuit that decodes encoded image data including an independent region that can be decoded within a region and a dependent region that is decoded using difference information from another region,
An error detection circuit for detecting a code error during decoding of the encoded image data;
A search circuit for searching for an identification code indicating a position of an independent region that appears next after the code error is detected;
A replenishment circuit for replenishing a predetermined dummy image between the location where the identification code is searched from the location where the code error is detected;
An image decoding circuit comprising:
前記エラー検出回路は、符号誤りを検出するとホストプロセッサに通知し、
前記検索回路および前記補充回路は、そのホストプロセッサの指示を受けて、動作を開始することを特徴とする請求項1に記載の画像復号回路。
The error detection circuit notifies the host processor when a code error is detected,
2. The image decoding circuit according to claim 1, wherein the search circuit and the supplementary circuit start an operation in response to an instruction from the host processor.
前記エラー検出回路が符号誤りを検出すると、復号処理を中断し、前記ホストプロセッサからの指示を待つことを特徴とする請求項2に記載の画像復号回路。   3. The image decoding circuit according to claim 2, wherein when the error detection circuit detects a code error, the decoding process is interrupted and an instruction from the host processor is waited. 前記エラー検出回路は、エントロピー復号に必要な符号テーブルに含まれない符号が前記符号化画像データ中に含まれているかを検出することを特徴とする請求項1から3のいずれかに記載の画像復号回路。   The image according to any one of claims 1 to 3, wherein the error detection circuit detects whether a code that is not included in a code table necessary for entropy decoding is included in the encoded image data. Decoding circuit. 前記エラー検出回路は、前記独立領域の所在を示すリスタートマーカの位置または順番に誤りがあるか否かを検出することを特徴とする請求項1から4のいずれかに記載の画像復号回路。   5. The image decoding circuit according to claim 1, wherein the error detection circuit detects whether or not there is an error in a position or order of a restart marker indicating the location of the independent area. 6. 同一半導体基板上に集積化されたことを特徴とする請求項1から5のいずれかに記載の画像復号回路。   6. The image decoding circuit according to claim 1, wherein the image decoding circuit is integrated on the same semiconductor substrate. 請求項1から6のいずれかに記載の画像復号回路と、
前記画像復号回路に符号化画像データの復号を依頼するホストプロセッサと、
を備えることを特徴とする画像復号システム。
An image decoding circuit according to any one of claims 1 to 6,
A host processor that requests the image decoding circuit to decode the encoded image data;
An image decoding system comprising:
前記ホストプロセッサは、前記画像復号回路からダミー画像の補充終了の通知を受けると、前記画像復号回路に復号処理の再開を指示することを特徴とする請求項7に記載の画像復号システム。   8. The image decoding system according to claim 7, wherein the host processor instructs the image decoding circuit to resume decoding processing when receiving a notice of completion of supplementation of dummy images from the image decoding circuit. 9. 請求項7または8に記載の画像復号システムを搭載する電子機器であって、
前記画像復号システムにて復号された画像を表示する表示部を備えることを特徴とする電子機器。
An electronic device equipped with the image decoding system according to claim 7 or 8,
An electronic apparatus comprising: a display unit that displays an image decoded by the image decoding system.
JP2005166735A 2005-06-07 2005-06-07 Image decoding circuit, image decoding system, and electronic apparatus mounted therewith Pending JP2006345046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005166735A JP2006345046A (en) 2005-06-07 2005-06-07 Image decoding circuit, image decoding system, and electronic apparatus mounted therewith

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005166735A JP2006345046A (en) 2005-06-07 2005-06-07 Image decoding circuit, image decoding system, and electronic apparatus mounted therewith

Publications (1)

Publication Number Publication Date
JP2006345046A true JP2006345046A (en) 2006-12-21

Family

ID=37641692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005166735A Pending JP2006345046A (en) 2005-06-07 2005-06-07 Image decoding circuit, image decoding system, and electronic apparatus mounted therewith

Country Status (1)

Country Link
JP (1) JP2006345046A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009302948A (en) * 2008-06-13 2009-12-24 Toshiba Corp Information processing apparatus and recovery processing method
WO2010122620A1 (en) * 2009-04-22 2010-10-28 パナソニック株式会社 Image reproduction apparatus and image reproduction method
JP2017216633A (en) * 2016-06-01 2017-12-07 Aosテクノロジーズ株式会社 Image restoration method and image restoration apparatus
CN113709496A (en) * 2021-08-24 2021-11-26 天津津航计算技术研究所 Multi-channel video decoding method based on fault-tolerant mechanism

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009302948A (en) * 2008-06-13 2009-12-24 Toshiba Corp Information processing apparatus and recovery processing method
JP4519929B2 (en) * 2008-06-13 2010-08-04 株式会社東芝 Information processing apparatus and recovery processing method
US8218649B2 (en) 2008-06-13 2012-07-10 Kabushiki Kaisha Toshiba Information processing apparatus and recovery processing method
WO2010122620A1 (en) * 2009-04-22 2010-10-28 パナソニック株式会社 Image reproduction apparatus and image reproduction method
US8666187B2 (en) 2009-04-22 2014-03-04 Panasonic Corporation Image reproduction apparatus and image reproduction method
JP2017216633A (en) * 2016-06-01 2017-12-07 Aosテクノロジーズ株式会社 Image restoration method and image restoration apparatus
CN113709496A (en) * 2021-08-24 2021-11-26 天津津航计算技术研究所 Multi-channel video decoding method based on fault-tolerant mechanism

Similar Documents

Publication Publication Date Title
US9076210B2 (en) Method and apparatus for encoding and decoding image
RU2586639C2 (en) Method and apparatus encoding or decoding
JP2008205627A (en) Information processor and inter-prediction mode determination method
JP6947010B2 (en) Video coding device, video coding method, and computer program for video coding
US20080205505A1 (en) Video coding with motion vectors determined by decoder
JP2006345046A (en) Image decoding circuit, image decoding system, and electronic apparatus mounted therewith
JP2009239779A (en) Image encoding device, image decoding device, and integrated circuit device
US6911920B2 (en) Hierarchical encoding and decoding devices
US8848798B2 (en) Information processing apparatus and inter-prediction mode determination method
JP2005328487A (en) Image data compression device, electronic apparatus, and image data compression method
US9271009B2 (en) Image processing apparatus and image processing method
US8456334B2 (en) Variable-length code decoding apparatus, decoding system, and variable-length code decoding method
US20230156224A1 (en) Joint component secondary transform
JP7403246B2 (en) Image decoding device, image decoding method
WO2023231710A1 (en) Picture processing method and related device
WO2013155795A1 (en) Method and apparatus for predicting residual
US11553200B2 (en) Applications for decoder-side modeling of objects identified in decoded video data
US20240244241A1 (en) Method, apparatus, and medium for video processing
JP5789172B2 (en) Image processing apparatus and program
JP2005354307A (en) Inverse quantizer and image decoder employing same
WO2009133938A1 (en) Time-varying image encoding and decoding device
CN116998156A (en) Transform skipped coefficient symbol prediction
JP2007074559A (en) Coding apparatus and coding method
JP2011019097A (en) Decoder, encoder, image processing device and program
JP2005217733A (en) Image decoder, image signal reception display apparatus, and image signal reception display method