JP2006203804A - Image processing device, image processing method, program, and information storage medium - Google Patents

Image processing device, image processing method, program, and information storage medium Download PDF

Info

Publication number
JP2006203804A
JP2006203804A JP2005015796A JP2005015796A JP2006203804A JP 2006203804 A JP2006203804 A JP 2006203804A JP 2005015796 A JP2005015796 A JP 2005015796A JP 2005015796 A JP2005015796 A JP 2005015796A JP 2006203804 A JP2006203804 A JP 2006203804A
Authority
JP
Japan
Prior art keywords
code
decoding
attribute
image
entropy 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.)
Granted
Application number
JP2005015796A
Other languages
Japanese (ja)
Other versions
JP4859014B2 (en
Inventor
Taku Kodama
卓 児玉
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2005015796A priority Critical patent/JP4859014B2/en
Publication of JP2006203804A publication Critical patent/JP2006203804A/en
Application granted granted Critical
Publication of JP4859014B2 publication Critical patent/JP4859014B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To produce a decoded image having good image quality as much as possible, and to improve process efficiency by neglecting waste entropy decoding process, even when a code which cannot be decoded normally is to be included in coding data. <P>SOLUTION: In the preparation step of a decoding process, an error flag list for managing a state of entropy decoding of the code in every attribute such as an area, resolution, image quality, color components, etc. is to be produced (S3). The entropy decoding of the code having an attribute which is to be determined as "abnormal" in the error flag list is to be inhibited (S5), and only the code having an attribute which is to be determined as not abnormal is entropy decoded (S6). If the entropy decoding is determined as abnormal, correction needed for the error flag list is to be performed (S7, S8). <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像の符号化データの復号処理を行う装置及び方法に係り、特に、符号化データを構成する符号が領域、解像度、色成分、画質などの属性を持つ、JPEG2000の静止画符号化データやMotion−JPEG2000の動画符号化データなどの復号処理を行う装置及び方法に関する。   The present invention relates to an apparatus and method for performing decoding processing of encoded data of an image, and in particular, JPEG2000 still image encoding in which codes constituting encoded data have attributes such as area, resolution, color component, and image quality. The present invention relates to an apparatus and a method for decoding data, Motion-JPEG2000 moving image encoded data, and the like.

ネットワークを経由して取り込まれる静止画又は動画の符号化データには、ネットワークの伝送エラーにより復号不可能な符号が含まれることがある。また、ネットワークを経由して取り込んだ符号化データであっても、ネットワークを経由せずローカルな記憶装置等より取り込んだ符号化データであっても、復号装置の復号能力の関係から復号不可能な符号が含まれていることもある。   The encoded data of still images or moving images captured via the network may include codes that cannot be decoded due to network transmission errors. In addition, even encoded data acquired via a network or encoded data acquired from a local storage device or the like without via a network cannot be decoded due to the decoding capability of the decoding device. A sign may be included.

一般的に、符号化データの復号処理を行う装置では、符号化データ中に異常な符号もしくは復号不可能な符号が含まれていた場合、復号処理を中止して、その時点までに生成された画像を出力するような制御や、画像の形成そのものを放棄する制御する方法がとられていた。   Generally, in an apparatus that performs decoding processing of encoded data, if the encoded data includes an abnormal code or a code that cannot be decoded, the decoding process is stopped and the code is generated up to that point. A control method for outputting an image and a control method for abandoning image formation itself have been used.

このような制御に関する公知文献の例として特許文献1がある。これに記載されているJPEG2000の静止画符号化データ又はMotion−JPEG2000の動画符号化データを扱うサーバ・クライアントシステムにおいては、サーバ側で、符号化処理時に、各パケットについて、それを削除したときの復元画像の歪み量を推定し、推定した歪み量の情報を符号化データのメインヘッダに記録する。クライアント側では、サーバより受信した符号化データを復号処理して復号画像をプログレッシブ表示するが、パケットの解析によってパケットのエラーの検出を行い、エラー・パケットに関する歪み量(メインヘッダに記録されている)を積算することにより、各時点でのエラー・パケットによる復号画像の歪み量を算出し、その歪み量が閾値を超えた時に、復号処理及び復号画像データ出力を中止する制御を行う。   Patent Document 1 is an example of a publicly known document relating to such control. In a server / client system that handles JPEG2000 still image encoded data or Motion-JPEG2000 moving image encoded data described therein, each packet is deleted at the time of encoding processing on the server side. The amount of distortion of the restored image is estimated, and information on the estimated amount of distortion is recorded in the main header of the encoded data. On the client side, the encoded data received from the server is decoded and the decoded image is progressively displayed. The packet error is detected by analyzing the packet, and the distortion amount related to the error packet (recorded in the main header). ) Is calculated, the amount of distortion of the decoded image due to the error packet at each time point is calculated, and when the amount of distortion exceeds a threshold value, the decoding process and the output of the decoded image data are stopped.

特開2004−186858号公報JP 2004-186858 A

異常な符号又は復号不可能な符号が生じた時点で復号処理を中止する方法には改善の余地がある。これを最もわかりやすい例で説明すれば、画像を複数の領域に分割して符号化した符号化データの場合、ある領域の符号が復号不可能であるからといって他の領域の符号までも復号不可能であるとは限らないので、復号処理を中止するのではなく、問題のない領域の符号については復号処理を継続するほうが復元画像の画質を向上できる可能性が高いのである。   There is room for improvement in the method of stopping the decoding process when an abnormal code or a code that cannot be decoded occurs. In the case of encoded data obtained by dividing an image into a plurality of regions and encoding them, the code in a certain region cannot be decoded, and even the code in another region is decoded. Since it is not always impossible, it is more likely that the image quality of the restored image can be improved by continuing the decoding process for a code in a region where there is no problem instead of stopping the decoding process.

エラー・パケットによる復号画像の歪み量が閾値を超えた時に復号処理を中止する方法にも、同様の改善余地があることは明らかである。また、この方法には、符号化段階でパケット毎の歪み量を推定し、それを符号化データのヘッダに記述しておく必要があり、そのような記述のない符号化データに対しては適用できないという制約もある。   It is clear that there is a similar room for improvement in the method of stopping the decoding process when the distortion amount of the decoded image due to the error packet exceeds the threshold value. In addition, this method requires that the amount of distortion for each packet be estimated at the encoding stage and described in the header of the encoded data, and is applicable to encoded data without such description. There is also a restriction that it cannot.

本発明は、上に述べたような従来技術の問題点に鑑みなされたものであり、その主たる目的は、符号化データの復号処理を行う装置又は方法において、符号化データに正常な復号が不可能な符号が含まれている場合の復号画質の向上及び処理効率の向上を図ることにある。   The present invention has been made in view of the problems of the prior art as described above. The main object of the present invention is to prevent normal decoding of encoded data in an apparatus or method for decoding encoded data. The purpose is to improve the decoded image quality and the processing efficiency when possible codes are included.

なお、本発明においては、少なくとも領域、色成分、解像度、画質のうちの1つに関する属性を持つ符号の集まりから構成された符号化データを扱う。このような符号化データの代表例として、JPEG2000の静止画符号化データやMotion−JPEG2000の動画符号化データを挙げることができる。   Note that in the present invention, encoded data composed of a collection of codes having an attribute relating to at least one of area, color component, resolution, and image quality is handled. Typical examples of such encoded data include JPEG 2000 still image encoded data and Motion-JPEG 2000 moving image encoded data.

請求項1記載の発明は、領域の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を領域毎に管理し、ある領域の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある領域の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置である。   The invention according to claim 1 is an image processing apparatus including a decoding processing device that performs decoding processing of encoded data of an image, which includes a code having an area attribute, and the code in the encoded data in the decoding processing device Control that controls the state of entropy decoding for each region, and suppresses entropy decoding of the following code having the attribute of the certain region when an abnormality occurs in the entropy decoding of the code having the attribute of the certain region An image processing apparatus having means.

請求項2記載の発明は、色成分の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を色成分毎に管理し、ある色成分の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある色成分の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置である。   The invention according to claim 2 is an image processing apparatus including a decoding processing device that performs decoding processing of encoded data of an image, which includes a code having an attribute of a color component, in the encoded data in the decoding processing device Manages the state of code entropy decoding for each color component, and suppresses entropy decoding of a subsequent code having a certain color component attribute when an abnormality occurs in the entropy decoding of the code having a certain color component attribute An image processing apparatus having control means for performing control.

請求項3記載の発明は、解像度の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を解像度毎に管理し、ある解像度の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある解像度の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置である。   According to a third aspect of the present invention, there is provided an image processing apparatus including a decoding processing device that performs decoding processing of encoded data of an image, which includes a code having a resolution attribute, and the code in the encoded data in the decoding processing device Control that controls the state of entropy decoding for each resolution, and controls to suppress entropy decoding of subsequent codes having a certain resolution attribute when an abnormality occurs in entropy decoding of a code having a certain resolution attribute An image processing apparatus having means.

請求項4記載の発明は、解像度の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を解像度毎に管理し、ある解像度の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある解像度の属性を持つ後続の符号及び当該ある解像度より高い解像度の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置である。   According to a fourth aspect of the present invention, there is provided an image processing apparatus including a decoding processing device that performs decoding processing of encoded data of an image, which includes a code having a resolution attribute, and the code in the encoded data in the decoding processing device The entropy decoding state is managed for each resolution, and when an error occurs in the entropy decoding of a code having a certain resolution attribute, a subsequent code having the certain resolution attribute and an attribute having a higher resolution than the certain resolution are displayed. An image processing apparatus comprising: a control unit that performs control to suppress entropy decoding of a subsequent code.

請求項5記載の発明は、画質の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を画質毎に管理し、ある画質の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある画質の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置である。   According to a fifth aspect of the present invention, there is provided an image processing apparatus including a decoding processing device that performs decoding processing of encoded data of an image, which includes a code having an attribute of image quality, and the code in the encoded data in the decoding processing device Control that controls the state of entropy decoding for each image quality, and controls to suppress entropy decoding of subsequent codes with certain image quality attributes when an abnormality occurs in entropy decoding of codes with certain image quality attributes An image processing apparatus having means.

請求項6記載の発明は、画質の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を画質毎に管理し、ある画質の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある画質の属性を持つ後続の符号及び当該ある画質より高い画質の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置である。   The invention according to claim 6 is an image processing apparatus including a decoding processing device that performs decoding processing of encoded data of an image, which includes a code having an attribute of image quality, and the code in the encoded data in the decoding processing device The entropy decoding state of each image quality is managed for each image quality, and when an error occurs in the entropy decoding of a code having a certain image quality attribute, a subsequent code having the certain image quality attribute and an attribute having a higher image quality than the certain image quality An image processing apparatus comprising: a control unit that performs control to suppress entropy decoding of a subsequent code.

請求項7記載の発明は、請求項1乃至6のいずれか1項記載の発明に係る画像処理装置であって、前記制御手段は、前記復号処理装置における画像復元処理に、エントロピー復号が抑止された符号と同じ属性を持つ符号の復号データを使用するか否かの制御を行うことを特徴とする画像処理装置である。   A seventh aspect of the present invention is the image processing apparatus according to any one of the first to sixth aspects, wherein the control means suppresses entropy decoding in the image restoration processing in the decoding processing apparatus. An image processing apparatus that controls whether or not to use decoded data having a code having the same attribute as the code.

請求項8記載の発明は、外部装置より画像の符号化データを取り込み、それを前記復号処理装置により復号処理する請求項1乃至6のいずれか1項記載の画像処理装置であって、前記復号処理装置により復号処理された符号化データを保存するための符号蓄積装置を有し、前記制御手段は、前記符号蓄積装置に保存する符号化データに、前記復号処理装置においてエントロピー復号が抑止された符号と同じ属性を持つ符号を含めるか否かの制御を行うことを特徴とする画像処理装置である。   The invention according to claim 8 is the image processing apparatus according to any one of claims 1 to 6, wherein encoded data of an image is fetched from an external apparatus and is decoded by the decoding processing apparatus. A code storage device for storing the encoded data decoded by the processing device, wherein the control means suppresses entropy decoding in the encoded data stored in the code storage device in the decoding processing device; An image processing apparatus that controls whether or not to include a code having the same attribute as the code.

請求項9記載の発明は、請求項1乃至8のいずれか1項記載の発明に係る復号処理装置及び制御手段としてコンピュータを機能させるプログラムである。   The invention described in claim 9 is a program that causes a computer to function as the decoding processing apparatus and control means according to any one of claims 1 to 8.

請求項10記載の発明は、請求項1乃至8のいずれか1項記載の発明に係る復号処理装置及び制御手段としてコンピュータを機能させるプログラムが記録された、コンピュータが読み取り可能な情報記録媒体である。   A tenth aspect of the present invention is a computer-readable information recording medium in which a program that causes a computer to function as the decoding processing device and the control means according to any one of the first to eighth aspects of the invention is recorded. .

請求項11記載の発明は、領域の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、この復号処理工程は、符号化データ中の符号のエントロピー復号の状態を領域毎に管理し、ある領域の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある領域の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法である。   The invention according to claim 11 has a decoding process step for decoding encoded data of an image composed of codes having region attributes, and this decoding process step is for entropy decoding of codes in encoded data. Including a control process for managing the state for each area and performing control to suppress entropy decoding of a subsequent code having the attribute of the certain area when an abnormality occurs in the entropy decoding of the code having the attribute of the certain area An image processing method characterized by the above.

請求項12記載の発明は、色成分の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、この復号処理工程は、符号化データ中の符号のエントロピー復号の状態を色成分毎に管理し、ある色成分の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある色成分の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法である。   The invention described in claim 12 has a decoding process step for decoding encoded data of an image consisting of a code having a color component attribute, and the decoding process step includes entropy decoding of a code in the encoded data. Control for each color component, and when an error occurs in entropy decoding of a code having an attribute of a certain color component, control for suppressing entropy decoding of a subsequent code having the attribute of the certain color component It is an image processing method characterized by including a process.

請求項13記載の発明は、解像度の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、この復号処理工程は、符号化データ中の符号のエントロピー復号の状態を解像度毎に管理し、ある解像度の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある解像度の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法である。   The invention described in claim 13 has a decoding process step for decoding encoded data of an image consisting of a code having a resolution attribute, and this decoding process step is for entropy decoding of the code in the encoded data. Including a control process for managing the state for each resolution and performing control to suppress entropy decoding of a subsequent code having a certain resolution attribute when an abnormality occurs in the entropy decoding of the code having a certain resolution attribute An image processing method characterized by the above.

請求項14記載の発明は、解像度の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、この復号処理工程は、符号化データ中の符号のエントロピー復号の状態を解像度毎に管理し、ある解像度の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある解像度の属性を持つ後続の符号及び当該ある解像度より高い解像度の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法である。   The invention according to claim 14 has a decoding process step for decoding encoded data of an image consisting of a code having a resolution attribute, and the decoding process step is for entropy decoding of the code in the encoded data. The status is managed for each resolution, and when an error occurs in entropy decoding of a code having a certain resolution attribute, a subsequent code having a certain resolution attribute and a subsequent code having a higher resolution attribute than the certain resolution It is an image processing method characterized by including the control process which performs control which suppresses entropy decoding of.

請求項15記載の発明は、画質の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、この復号処理工程は、符号化データ中の符号のエントロピー復号の状態を画質毎に管理し、ある画質の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある画質の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法である。   The invention described in claim 15 has a decoding process step for decoding encoded data of an image consisting of a code having an image quality attribute, and this decoding process step is for entropy decoding of the code in the encoded data. Including a control step of managing the state for each image quality and performing control to suppress entropy decoding of a subsequent code having a certain image quality attribute when an abnormality occurs in the entropy decoding of the code having a certain image quality attribute An image processing method characterized by the above.

請求項16記載の発明は、画質の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、この復号処理工程は、符号化データ中の符号のエントロピー復号の状態を画質毎に管理し、ある画質の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある画質の属性を持つ後続の符号及び当該ある画質より高い画質の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法である。   The invention described in claim 16 has a decoding process step of decoding encoded data of an image consisting of a code having an image quality attribute, and this decoding process step is for entropy decoding of the code in the encoded data. The state is managed for each image quality, and when an error occurs in the entropy decoding of a code having a certain image quality attribute, the subsequent code having the certain image quality attribute and the subsequent code having an image quality attribute higher than the certain image quality It is an image processing method characterized by including the control process which performs control which suppresses entropy decoding of.

請求項17記載の発明は、請求項11乃至16のいずれか1項記載の発明に係る画像処理方法であって、前記制御工程は、前記復号処理工程における画像復元処理に、エントロピー復号が抑止された符号と同じ属性を持つ符号の復号データを使用するか否かの制御を行うことを特徴とする画像処理方法である。   The invention according to claim 17 is the image processing method according to any one of claims 11 to 16, wherein the control step suppresses entropy decoding in the image restoration processing in the decoding processing step. This is an image processing method characterized by controlling whether or not to use decoded data having a code having the same attribute as the code.

請求項18記載の発明は、請求項11乃至16のいずれか1項記載の発明に係る画像処理方法であって、前記復号処理工程により復号処理された符号化データを保存するための符号化データ保存工程を有し、前記制御工程は、前記符号化データ保存工程により保存される符号化データに、前記復号処理工程においてエントロピー復号が抑止された符号と同じ属性を持つ符号を含めるか否かの制御を行うことを特徴とする画像処理方法である。   The invention according to claim 18 is the image processing method according to any one of claims 11 to 16, wherein the encoded data for storing the encoded data decoded by the decoding processing step is provided. Whether or not to include a code having the same attribute as the code whose entropy decoding is suppressed in the decoding process step in the encoded data stored in the encoded data storage step. An image processing method characterized by performing control.

請求項1,11記載の発明によれば、ある領域の属性を持つ符号のエントロピー復号の異常が発生した場合、その領域については復号画質が低下するものの、それ以外の領域については復号画質の低下は生じないため、復号処理を中止する方法に比べ、復号画像の全体的な画質が向上するという効果を得られる。また、エントロピー復号の異常が発生した符号と同じ領域の属性を持つ後続の符号のエントロピー復号を行っても復号画質向上への寄与は殆ど期待できないのが普通であり、それは無益な処理ということができるが、このような無益なエントロピー復号が抑止されることにより処理効率が向上するという効果を得られる。   According to the first and eleventh aspects of the present invention, when an abnormality in entropy decoding of a code having an attribute of a certain region occurs, the decoded image quality deteriorates for that region, but the decoded image quality decreases for other regions. Therefore, the overall image quality of the decoded image is improved as compared with the method of canceling the decoding process. Also, even if entropy decoding is performed on a subsequent code having the same region attribute as that of the code in which the entropy decoding abnormality has occurred, it is normal to expect little contribution to the improvement of the decoded image quality, which is a useless process. However, it is possible to obtain an effect of improving processing efficiency by suppressing such useless entropy decoding.

請求項2,12記載の発明によれば、ある色成分の属性を持つ符号のエントロピー復号の異常が発生した場合、その色成分については復号画質が低下するものの、それ以外の色成分については復号画質の低下は生じないため、復号処理を中止する方法に比べ、復号画像の全体的な画質が向上するという効果を得られる。また、エントロピー復号の異常が発生した符号と同じ色成分の属性を持つ後続の符号のエントロピー復号を行っても復号画質向上への寄与は殆ど期待できないのが普通であり、それは無益な処理ということができるが、このような無益なエントロピー復号が抑止されることにより処理効率が向上するという効果を得られる。   According to the second and twelfth aspects of the present invention, when an entropy decoding abnormality of a code having an attribute of a certain color component occurs, the decoded image quality deteriorates for that color component, but decoding is performed for other color components. Since the image quality does not deteriorate, the overall image quality of the decoded image is improved as compared with the method of canceling the decoding process. In addition, even if entropy decoding is performed on a subsequent code having the same color component attribute as that of the code in which the entropy decoding abnormality has occurred, it is normal to expect little contribution to the improvement of the decoded image quality, which is a useless process. However, it is possible to obtain an effect of improving processing efficiency by suppressing such useless entropy decoding.

請求項3,4,13,14記載の発明によれば、ある解像度の属性を持つ符号のエントロピー復号の異常が発生した場合、エントロピー復号が抑止されるのは、その解像度の属性を持つ後続の符号、あるいは、その解像度の属性を持つ後続の符号及びそれより高い解像度の属性を持つ後続の符号であるため、その異常を発生した符号の段階で復号処理を中止する方法に比べ、高い復号画質を得ることができるという効果がある。また、エントロピー復号が抑止される符号は、そのエントロピー復号を行ったとしても復号画質向上への寄与は殆ど期待できないのが普通であり、それは無益な処理ということができるが、このような無益なエントロピー復号が抑止されることにより処理効率が向上するという効果を得られる。   According to the third, fourth, thirteenth and fourteenth aspects of the present invention, when an entropy decoding error occurs in a code having a certain resolution attribute, the entropy decoding is suppressed in the subsequent processes having the resolution attribute. Since it is a code, or a subsequent code having a resolution attribute and a subsequent code having a higher resolution attribute, the decoded image quality is higher than the method of stopping the decoding process at the stage of the code where the abnormality occurred. There is an effect that can be obtained. In addition, a code for which entropy decoding is suppressed can hardly be expected to contribute to the improvement of the decoded image quality even if the entropy decoding is performed, which can be said to be a useless process. By suppressing the entropy decoding, an effect of improving the processing efficiency can be obtained.

請求項5,6,15,16記載の発明によれば、ある画質の属性を持つエントロピー復号の異常が発生した場合、エントロピー復号が抑止されるのは、その画質の属性を持つ後続の符号、あるいは、その画質の属性を持つ後続の符号及びそれより高い画質の属性を持つ後続の符号であるため、その異常を発生した符号の段階で復号処理を中止する方法に比べ、高い復号画質を得ることができるという効果がある。また、エントロピー復号が抑止される符号は、そのエントロピー復号を行ったとしても復号画質向上への寄与は殆ど期待できないのが普通であり、それは無益な処理ということができるが、このような無益なエントロピー復号が抑止されることにより処理効率が向上する効果を得られる。   According to the fifth, sixth, fifteenth and sixteenth aspects of the present invention, when an entropy decoding abnormality having a certain image quality attribute occurs, the entropy decoding is suppressed by a subsequent code having the image quality attribute, Alternatively, since a subsequent code having the image quality attribute and a subsequent code having a higher image quality attribute are obtained, a higher decoding image quality is obtained as compared with the method in which the decoding process is stopped at the stage of the code where the abnormality has occurred. There is an effect that can be. In addition, a code for which entropy decoding is suppressed can hardly be expected to contribute to the improvement of the decoded image quality even if the entropy decoding is performed, which can be said to be a useless process. By suppressing the entropy decoding, an effect of improving the processing efficiency can be obtained.

請求項7,17記載の発明によれば、エントロピー復号の異常が発生した符号と同じ属性を持つ符号の復号データを全く用いない画像復元と、エントロピー復号の異常が発生した符号と同じ属性を持つ符号であっても、エントロピー復号が抑止される以前に復号済みの符号の復号データをも用いる画像復元とを選択することができるという効果を得られる。例えば、ある領域の符号のエントロピー復号の異常が発生した場合、前者の画像復元を選べば、その領域については画像が復元されないが、後者の画像復元を選べば、その領域についても復号済み符号の多寡に応じた画質で画像を復元することができる。   According to the seventh and seventeenth aspects of the present invention, image restoration that does not use the decoded data of the code having the same attribute as the code in which the entropy decoding abnormality has occurred and the same attribute as the code in which the entropy decoding abnormality has occurred. Even if it is a code | cord | chord, the effect that the image restoration which uses also the decoding data of the code | cord | chord which has been decoded before entropy decoding is suppressed can be acquired. For example, if an abnormality in entropy decoding of a code in a certain region occurs, if the former image restoration is selected, the image is not restored for that region, but if the latter image restoration is selected, the decoded code of that region is also restored. It is possible to restore an image with an image quality according to the degree.

請求項8,18記載の発明によれば、エントロピー復号が抑止された符号と同じ属性を持つ符号も含まれる、外部装置より取り込まれたものと同じ符号化データを保存することも、そのような属性を持つ符号を含めない符号化データを保存することもできるという効果を得られる。   According to the inventions of claims 8 and 18, it is possible to store the same encoded data as that acquired from an external device, including a code having the same attribute as the code for which entropy decoding is suppressed. It is possible to save encoded data that does not include codes having attributes.

[JPEG2000の概要]
ここで説明する本発明の実施の形態においては、JPEG2000の静止画符号化データ又はMotion−JPEG2000の動画符号化データを処理の対象とする。Motion−JPEG2000の動画符号化データの各フレームは、JPEG2000により符号化されている。そこで、本発明の実施の形態の理解に必要な限度で、JPEG2000の概要を説明する。
[Outline of JPEG2000]
In the embodiment of the present invention described here, JPEG 2000 still image encoded data or Motion-JPEG 2000 moving image encoded data is a processing target. Each frame of Motion-JPEG2000 moving image encoded data is encoded by JPEG2000. Therefore, an outline of JPEG2000 will be described to the extent necessary for understanding the embodiment of the present invention.

図1はJPEG2000のアルゴリズムを説明するためのブロック図である。図中、1は色空間変換・逆変換部、2は2次元ウェーブレット変換・逆変換部、3は量子化・逆量子化部、4はエントロピー符号化・復号化部、5はタグ処理部である。   FIG. 1 is a block diagram for explaining the algorithm of JPEG2000. In the figure, 1 is a color space transformation / inverse transformation unit, 2 is a two-dimensional wavelet transformation / inverse transformation unit, 3 is a quantization / inverse quantization unit, 4 is an entropy encoding / decoding unit, and 5 is a tag processing unit. is there.

符号化(圧縮)時には、原画像の各コンポーネント(色成分)は、必要に応じてタイルと呼ばれる重複しない矩形の領域に分割され、各コンポーネントの各タイルのデータが色空間変換・逆変換部1に入力される。   At the time of encoding (compression), each component (color component) of the original image is divided into non-overlapping rectangular areas called tiles as necessary, and the data of each tile of each component is color space conversion / inverse conversion unit 1. Is input.

図2にタイル分割の例を示す。この例では、原画像のR,G,Bの各コンポーネントがそれぞれ16個のタイルに分割されている。このような各コンポーネントの各タイルが圧縮/伸長の処理単位となる。   FIG. 2 shows an example of tile division. In this example, the R, G, and B components of the original image are each divided into 16 tiles. Each tile of each component is a compression / decompression processing unit.

各コンポーネントの各タイルは色空間変換・逆変換部1でYCrCb(もしくはYUV)表色系へ変換された後、YCrCbの各コンポーネント別に、2次元ウェーブレット変換・逆変換部2で2次元ウェーブレット変換(順変換)を適用されることにより、周波数帯(サブバンド)に空間分割される。   Each tile of each component is converted into the YCrCb (or YUV) color system by the color space conversion / inverse conversion unit 1 and then converted into a two-dimensional wavelet transform (in the two-dimensional wavelet conversion / inverse conversion unit 2) for each component of YCrCb. By applying (forward transformation), space division is performed into frequency bands (subbands).

図3に、デコンポジションレベル数=3の場合の、各デコンポジションレベルにおけるサブバンドを示す。すなわち、原画像のタイル分割によって得られたタイル画像(0LL)(デコンポジションレベル0)に対して、2次元ウェーブレット変換を施すことにより、デコンポジションレベル1のサブバンド(1LL,1HL,1LH,1HH)が得られる。この階層における低周波成分である1LLサブバンドの係数に対して2次元ウェーブレット変換を施すことより、デコンポジションレベル2のサブバンド(2LL,2HL,2LH,2HH)が得られる。この階層での低周波成分である2LLサブバンド係数に対し2次元ウェーブレット変換を施すことにより、デコンポジションレベル3のサブバンド(3LL,3HL,3LH,3HH)が得られる。デコンポジションレベル3の各サブバンドに括弧書きされた数字は解像度レベルを示す。   FIG. 3 shows subbands at each decomposition level when the number of decomposition levels = 3. That is, by performing two-dimensional wavelet transform on the tile image (0LL) (decomposition level 0) obtained by tile division of the original image, the subbands (1LL, 1HL, 1LH, 1HH) at the composition level 1 are applied. ) Is obtained. By applying a two-dimensional wavelet transform to the coefficients of the 1LL subband, which is a low frequency component in this hierarchy, subbands (2LL, 2HL, 2LH, 2HH) of composition level 2 are obtained. By applying a two-dimensional wavelet transform to the 2LL subband coefficient which is a low frequency component in this hierarchy, a subband (3LL, 3HL, 3LH, 3HH) at a composition level 3 is obtained. The numbers in parentheses in each subband at decomposition level 3 indicate the resolution level.

各サブバンドの係数は、必要に応じて、量子化・逆量子化部3で線形量子化された後、エントロピー符号化・復号化部4でエントロピー符号化される。JPEG2000では、各サブバンド係数はビットプレーンに分解され、また、各サブバンドは重複しないプリシンクトと呼ばれる矩形領域に分割され、各プリシンクトはコードブロックと呼ばれる重複しない矩形領域に分割される。そして、各サブバンドの係数は上位のビットプレーンから下位のビットプレーンへ向かってコードブロック毎に符号化される(より正確には、各ビットプレーンは3つのサブビットプレーン(符号化パス)に分割されて符号化される)。このエントロピー符号化においては、指定した符号化の順番で符号化対象ビットが定められ、量子化部・逆量子化部3で対象ビットの周辺ビットからコンテキストが生成され、このコンテキストと対象ビットの確率推定による算術符号化が行われる。   The coefficients of each subband are linearly quantized by the quantization / inverse quantization unit 3 as necessary, and then entropy-coded by the entropy coding / decoding unit 4. In JPEG2000, each subband coefficient is divided into bit planes, each subband is divided into non-overlapping rectangular areas called precincts, and each precinct is divided into non-overlapping rectangular areas called code blocks. The coefficients of each subband are encoded for each code block from the upper bitplane to the lower bitplane (more precisely, each bitplane is divided into three subbitplanes (encoding passes). And encoded). In this entropy encoding, the encoding target bits are determined in the designated encoding order, and a context is generated from the peripheral bits of the target bits by the quantization unit / inverse quantization unit 3, and the probability of the context and the target bit is determined. Arithmetic coding by estimation is performed.

タグ処理部5は符号形成プロセスのブロックであり、エントロピー符号をまとめてパケットを生成し、パケットをプログレッションオーダーに従って並べるとともに必要なタグ及びタグ情報を付加することにより、図4に示すようなフォーマットの1本のコードストリーム(符号化データ)を生成する。コードストリームの先頭と各タイル部の先頭にはメインヘッダ(Main header)及びタイルパートヘッダ(Tile-part header)と呼ばれるタグ情報が付加され、その後に、各タイルの符号(ビットストリーム)が続く。そして、コードストリームの終端に終了タグ(End of codestream)が置かれる。   The tag processing unit 5 is a block of a code formation process, generates packets by collecting entropy codes, arranges packets according to a progression order, adds necessary tags and tag information, and has a format as shown in FIG. One code stream (encoded data) is generated. Tag information called a main header (Tile-part header) and a tile part header (Tile-part header) is added to the head of the code stream and the head of each tile part, and then the code (bit stream) of each tile follows. An end tag (End of codestream) is placed at the end of the codestream.

画像、タイル、サブバンド、プリシンクト、コードブロックの間には
画像≧タイル>サブバンド≧プリシンクト≧コードブロック
の大小関係がある。
Among images, tiles, subbands, precincts, and code blocks, there is a size relationship of image ≧ tile> subband ≧ precinct ≧ code block.

プリシンクトとは、サブバンドの矩形領域で、同じデコンポジションレベルのHL,LH,HHサブバンドの空間的に同じ位置にある3つの領域の組が1つのプリシンクトとして扱われる。ただし、LLサブバンドでは、1つの領域が1つのプリシンクトとして扱われる。プリシンクトのサイズをサブバンドと同じサイズにすることも可能である。前述のように、プリシンクトを分割した矩形領域がコードブロックである。図5にデコンポジションレベル2におけるプリシンクトと、そのコードブロックを例示した。図中のプリシンクトと記された空間的に同じ位置にある3つの領域の組が、1つのプリシンクトとして扱われる。なお、プリシンクトはタイル画像上の特定の矩形領域に対応する。つまり、図5に示す例では、タイル画像は3×3の矩形領域に分割され、その矩形領域がプリシンクトであると言うこともできる。   A precinct is a rectangular region of subbands, and a set of three regions at the same spatial position of HL, LH, and HH subbands having the same decomposition level is treated as one precinct. However, in the LL subband, one area is treated as one precinct. It is also possible to make the precinct size the same as the subband. As described above, the rectangular area obtained by dividing the precinct is a code block. FIG. 5 illustrates a precinct and its code block at decomposition level 2. A set of three regions at the same spatial position indicated as precinct in the figure is treated as one precinct. The precinct corresponds to a specific rectangular area on the tile image. That is, in the example shown in FIG. 5, the tile image is divided into 3 × 3 rectangular areas, and the rectangular areas can be said to be precincts.

プリシンクトに含まれる全てのコードブロックの符号の一部(例えば最上位から3ビット目までの3枚のビットプレーンの符号)を取り出して集めたものがパケットである。符号が空(から)のパケットも許される。コードブロックの符号をまとめてパケットを生成し、所望のプログレッション・オーダーに従ってパケットを並べたものが、図4中のビットストリームである。   A packet is a collection of a part of the codes of all code blocks included in the precinct (for example, codes of three bit planes from the most significant bit to the third bit). Packets with an empty code are allowed. The bit stream in FIG. 4 is a packet in which codes of code blocks are combined to generate packets and the packets are arranged according to a desired progression order.

全てのプリシンクト(つまり、全てのコードブロック、全てのサブバンド)のパケットを集めると、画像全域の符号の一部(例えば、画像全域のウェーブレット係数の最上位のビットプレーンから3枚目までのビットプレーンの符号)ができるが、これがレイヤである(ただし、必ずしも全てのプリシンクトのパケットをレイヤに含めなくともよい)。したがって、伸長時に復号されるレイヤ数が多いほど再生画像の画質は向上する。つまり、レイヤは画質の単位である。全てのレイヤを集めると、画像全域の全てのビットプレーンの符号になる。   When packets of all precincts (that is, all code blocks and all subbands) are collected, a part of the code for the entire image area (for example, the bits from the most significant bit plane to the third frame of the wavelet coefficients for the entire image area) This is a layer (however, not all precinct packets need to be included in the layer). Therefore, as the number of layers decoded at the time of expansion increases, the quality of the reproduced image improves. That is, a layer is a unit of image quality. When all layers are collected, it becomes the code of all bit planes of the entire image.

タイル分割を行わず、コンポーネント数=1、デコンポジションレベル数=2(解像度レベル数=3)とした場合のパケットとレイヤの例を図6に示す。図中の縦長の小さな矩形がパケットであり、その内部に示した数字は便宜的に付与したパケット番号である。図6では、レイヤを濃淡を付けた横長矩形領域として示している。すなわち、この例では、パケット番号0〜16のパケットの符号からなるレイヤ0、パケット番号17〜33のパケットの符号からなるレイヤ1、パケット番号34〜50のパケットの符号からなるレイヤ2、パケット番号51〜67のパケットの符号からなるレイヤ3、パケット番号68〜84のパケットの符号からなるレイヤ4、パケット番号85〜101のパケットの符号からなるレイヤ5、パケット番号102〜118のパケットの符号からなるレイヤ6、パケット番号119〜135のパケットの符号からなるレイヤ7、パケット番号136〜148のパケットの符号からなるレイヤ8、及び、残りのパケット番号149〜161のパケットの符号からなるレイヤ9の10レイヤに分割されている。なお、パケットとプリシンクトとの対応関係などは、プログレッション・オーダーの違いやレイヤ分割数等により様々に変化するものであり、上に示したレイヤ構成はあくまで一例である。   FIG. 6 shows an example of packets and layers when tile division is not performed and the number of components = 1 and the number of decomposition levels = 2 (the number of resolution levels = 3). In the figure, a vertically small rectangle is a packet, and the numbers shown therein are packet numbers assigned for convenience. In FIG. 6, the layer is shown as a horizontally long rectangular region with shading. That is, in this example, layer 0 consisting of the code of the packet number 0-16, layer 1 consisting of the code of the packet number 17-33, layer 2, consisting of the code of the packet number 34-50, packet number From layer 3 consisting of codes of packets 51 to 67, layer 4 consisting of codes of packets of packet numbers 68 to 84, layer 5 consisting of codes of packets of packet numbers 85 to 101, and codes of packets of packet numbers 102 to 118 Layer 6 consisting of codes of packets with packet numbers 119 to 135, layer 8 consisting of codes of packets with packet numbers 136 to 148, and layer 9 consisting of codes of packets with the remaining packet numbers 149 to 161 It is divided into 10 layers. Note that the correspondence between packets and precincts changes variously depending on the difference in progression order, the number of layer divisions, etc., and the layer configuration shown above is merely an example.

一方、復号(伸長)時には、符号化時とは逆に、各コンポーネントの各タイルのコードストリームから画像データを生成する。この場合、タグ処理部5は、外部より入力したコードストリームに付加されたタグ情報を解釈し、コードストリームを各コンポーネントの各タイルのコードストリームに分解し、その各コンポーネントの各タイルのコードストリーム毎に復号処理が行われる。コードストリーム内のタグ情報に基づく順番で復号対象となるビットの位置が定められるとともに、量子化・逆量子化部3で、その対象ビット位置の周辺ビット(既に復号化を終えている)の並びからコンテキストが生成される。エントロピー符号化・復号化部4で、このコンテキストとコードストリームから確率推定によって復号を行って対象ビットを生成し、それを対象ビットの位置に書き込む。   On the other hand, at the time of decoding (decompression), image data is generated from the code stream of each tile of each component, contrary to the case of encoding. In this case, the tag processing unit 5 interprets tag information added to the code stream input from the outside, decomposes the code stream into code streams of each tile of each component, and each code stream of each tile of each component. The decryption process is performed. The positions of the bits to be decoded are determined in the order based on the tag information in the codestream, and the quantization / inverse quantization unit 3 arranges the peripheral bits (the decoding has already been completed) at the target bit position. A context is created from The entropy encoding / decoding unit 4 performs decoding based on probability estimation from the context and the code stream to generate a target bit, and writes it in the position of the target bit.

このようにして得られた各サブバンドの係数は、符号化時に量子化が行われているならば量子化・逆量子化部3で逆量子化された後、2次元ウェーブレット変換・逆変換部2で2次元ウェーブレット逆変換を施されることにより、各コンポーネントの各タイルのデータが復元される。復元されたデータは、符号化時に色空間変換が行われたならば色空間変換・逆変換部1で逆色変換を施され、元の表色系のデータに戻される。   The coefficients of the subbands thus obtained are dequantized by the quantization / inverse quantization unit 3 if quantization is performed at the time of encoding, and then the two-dimensional wavelet transform / inverse transform unit. By performing the two-dimensional wavelet inverse transform in 2, the data of each tile of each component is restored. If color space conversion is performed at the time of encoding, the restored data is subjected to reverse color conversion by the color space conversion / inverse conversion unit 1 and returned to the original color system data.

さて、以上に述べたようにJPEG2000の符号単位であるパケットは、
どのコンポ−ネント(記号C)に属するか、
どの解像度レベル(記号R)に属するか、
どのプリシンクト(記号P)に属するか、
どのレイヤ(記号L)に属するか
という4つの属性を有する。パケットの配列とは、パケットをどの属性の順に階層的に並べるかを意味する。この配列順をプログレッションオーダーと呼ぷ。JPEG2000ではLRCP,RLCP,RPCL,PCRL,CPRLの5通りのプログレッションオーダーが規定されている。
Now, as mentioned above, JPEG2000 code unit packet is
Which component (symbol C) belongs to,
Which resolution level (symbol R) belongs to
Which precinct (symbol P) belongs to
It has four attributes, which layer (symbol L) belongs to. The packet arrangement means the order in which packets are arranged hierarchically. This order of arrangement is called a progression order. JPEG2000 defines five progression orders of LRCP, RLCP, RPCL, PCRL, and CPRL.

ここで、符号化時にプログレッションオーダーの順にパケットを並べる様子、及び、復号時にプログレッションオーダーの順にパケットの属性を解釈する様子を説明する。   Here, a state in which packets are arranged in the order of the progression order at the time of encoding and a state in which the attributes of the packets are interpreted in the order of the progression order at the time of decoding will be described.

LRCPプログレッションの場合、ネストされたforループ
for(レイヤ){
for(解像度){
for(コンポ−ネント){
for(プリシンクト){
符号化時:パケットを配置
復号時:パケットの属性を解釈




に従ってパケットの配列(符号化時)および解釈(復号時)がなされる。
For LRCP progression, nested for loops
for (layer) {
for (resolution) {
for (component) {
for (Precinct) {
Encoding: Place packet
Decoding: Interpret packet attributes}
}
}
}
Thus, the packet is arranged (at the time of encoding) and interpreted (at the time of decoding).

同様に、RLCPプログレッションの場合、ネストされたforループ
for(解像度){
for(レイヤ){
for(コンポ−ネント){
for(プリシンクト){
符号化時:パケットを配置
復号時:パケットの属性を解釈




に従ってパケットの配列(符号化時)および解釈(復号時)がなされる。
Similarly, for RLCP progression, a nested for loop
for (resolution) {
for (layer) {
for (component) {
for (Precinct) {
Encoding: Place packet
Decoding: Interpret packet attributes}
}
}
}
Thus, the packet is arranged (at the time of encoding) and interpreted (at the time of decoding).

各パケットはパケットヘッダを有し、パケットヘッダには、
・そのパケットが空かどうか
・そのパケットにどのコードブロックが含まれるか
・そのパケットに含まれる各コードブロックのゼロビットプレーン数
・そのパケットに含まれる各コードブロック符号のコーディングパス数(ビットプレーン数)
・そのパケットに含まれる各コードブロックの符号長
が記載されている。
Each packet has a packet header,
-Whether the packet is empty-Which code block is included in the packet-Number of zero bit planes of each code block included in the packet-Number of coding passes (number of bit planes) of each code block code included in the packet )
-The code length of each code block included in the packet is described.

しかし、パケットヘッダには、レイヤ番号や解像度レベル等は一切記載されていない。復号時に、メインヘッダ中のCODマーカに記述されているプログレッションオーダーから上記のようなforループを形成し、そのパケットに含まれる各コードブロックの符号長の和からパケットの切れ目を判別し、各パケットがforループ内のどの位置でハンドリングされたかによって、各パケットがどのレイヤのどの解像度レベルのものか等が分かる。これは、パケットヘッダ中の符号長さえ読み出せば、エントロピー符号自体を復号しなくても、次のパケットを検出できることを意味する。   However, the packet header does not describe any layer number or resolution level. At the time of decoding, a for loop as described above is formed from the progression order described in the COD marker in the main header, and a packet break is determined from the sum of the code lengths of the code blocks included in the packet. Depending on which position in the for loop is handled, it can be known which resolution level of which layer each packet is. This means that the next packet can be detected without decoding the entropy code itself as long as the code length in the packet header is read.

なお、2以上のタイルにタイリングされている場合には、パケットはどのタイルに属するかという属性も持つ。したがって、タイルの属性を加えると、上記のforループは
for(タイル){
for(レイヤ){
for(解像度){
for(コンポ−ネント){
for(プリシンクト){
符号化時:パケットを配置
復号時:パケットの属性を解釈





の様なループとなる。
When tiled to two or more tiles, the packet also has an attribute of which tile it belongs to. So if you add the tile attribute, the for loop above will
for (tile) {
for (layer) {
for (resolution) {
for (component) {
for (Precinct) {
Encoding: Place packet
Decoding: Interpret packet attributes}
}
}
}
}
It becomes a loop like this.

画像サイズ100×100画素、1タイル、2レイヤ、解像度レベル3(0〜2)、3コンポ−ネント、プリシンクトサイズ32×32とした場合のLRCPプログレッションのパケット配列例を図7に示し、RPCLプログレッションのパケットの配列例を図8に示す。   FIG. 7 shows a packet arrangement example of LRCP progression when the image size is 100 × 100 pixels, 1 tile, 2 layers, resolution level 3 (0 to 2), 3 components, and the precinct size is 32 × 32. An example of the arrangement of packets of RPCL progression is shown in FIG.

[実施形態の説明]
以下、本発明の実施の形態について説明する。図9は、本発明の実施の形態を説明するためのブロック図である。図9において、100は本発明に係る画像処理装置であり、単独で動作することも、通信路101(LANやインターネット等)を介して接続されたサーバ102に対しクライアントとして動作することも可能である。
[Description of Embodiment]
Embodiments of the present invention will be described below. FIG. 9 is a block diagram for explaining an embodiment of the present invention. In FIG. 9, reference numeral 100 denotes an image processing apparatus according to the present invention, which can operate alone or operate as a client with respect to a server 102 connected via a communication path 101 (such as a LAN or the Internet). is there.

画像処理装置100は、JPEG2000の静止画符号化データ又はMotion−JPEG2000の動画符号化データの復号処理を行う復号処理装置110、復号画像等を表示する画像表示装置111、サーバ102との通信を行う通信装置112、符号化データを保存するための符号蓄積装置113、ユーザからの各種指示を入力するための指示入力装置114、装置全体の動作制御等を行うシステム制御装置115からなる。   The image processing apparatus 100 communicates with a decoding processing apparatus 110 that performs decoding processing of JPEG2000 still image encoded data or Motion-JPEG2000 moving image encoded data, an image display apparatus 111 that displays decoded images, and the server 102. The communication device 112 includes a code storage device 113 for storing encoded data, an instruction input device 114 for inputting various instructions from the user, and a system control device 115 for controlling the operation of the entire device.

復号処理装置110は、図1に関連して説明したようなタグ処理部121、エントロピー復号化部122、逆量子化部123、2次元逆ウェーブレット変換部124及び逆色空間変換部125と、これら各部を制御する制御部126、復号処理に関連したデータを一時的に保存するためのデータ記憶部127、画像処理装置100の他の部分とのインターフェース128から構成される。   The decoding processing device 110 includes a tag processing unit 121, an entropy decoding unit 122, an inverse quantization unit 123, a two-dimensional inverse wavelet transform unit 124, and an inverse color space transform unit 125 as described with reference to FIG. A control unit 126 that controls each unit, a data storage unit 127 that temporarily stores data related to the decoding process, and an interface 128 with other parts of the image processing apparatus 100 are configured.

本発明に特有のエントロピー復号状態の管理、復号処理及び符号保存の制御は制御部126によって行われる。すなわち、請求項1乃至8記載の発明の制御手段は制御部126に含まれる。このような制御のために後述のエラーフラグリスト130の生成・修正が行われるが、このエラーリスト130の記憶域としてデータ記憶部127が利用される。   Control of entropy decoding state, decoding processing, and code storage unique to the present invention is performed by the control unit 126. That is, the control means according to the first to eighth aspects of the present invention is included in the control unit 126. For such control, an error flag list 130 (described later) is generated / corrected. The data storage unit 127 is used as a storage area for the error list 130.

<動作説明(1)>
指示入力装置114によってユーザから指定された画像の符号化データを符号蓄積部113より復号処理装置110に読み込んで復号処理を行い、復号画像を画像表示装置111に表示する動作について説明する。図10は、その説明のための簡略化されたフローチャートである。
<Description of operation (1)>
An operation of reading encoded data of an image designated by the user using the instruction input device 114 from the code storage unit 113 to the decoding processing device 110 and performing decoding processing, and displaying the decoded image on the image display device 111 will be described. FIG. 10 is a simplified flowchart for the explanation.

まず、タグ処理部121により、符号化データのメインヘッダ(及び最初のタイルパートヘッダ)が解析される(ステップS1)。この解析により、タイルサイズやタイル数、プリシンクトサイズ、プログレッションオーダ、解像度レベル数、レイヤ数、コンポーネント数等々の情報が得られる。この解析結果に基づいて、制御部126は復号処理に関する各種パラメータの設定を行う(ステップS2)。ここまでは一般的な復号処理装置の動作と同様である。パケットの属性の解釈及びエントロピー復号は、プログレッションオーダーに対応した前述のようなforループに従って行われるが、このforループの設定もこの段階で行われる。図10では簡略化されているが、ステップS4〜S8の処理は、そのようなforループ内の繰り返し処理である。なお、2番目以降のタイルパートヘッダの解析は、ステップS4以降の処理内で随時行われ、解析結果に応じた必要なパラメータの設定変更等が行われる。   First, the tag processing unit 121 analyzes the main header (and the first tile part header) of the encoded data (step S1). By this analysis, information such as the tile size, the number of tiles, the precinct size, the progression order, the number of resolution levels, the number of layers, the number of components, and the like can be obtained. Based on the analysis result, the control unit 126 sets various parameters related to the decoding process (step S2). Up to this point, the operation is the same as that of a general decoding processing apparatus. Interpretation of packet attributes and entropy decoding are performed according to the for loop as described above corresponding to the progression order. This for loop is also set at this stage. Although simplified in FIG. 10, the processes in steps S4 to S8 are such repeated processes in the for loop. The analysis of the second and subsequent tile part headers is performed at any time in the processes after step S4, and necessary parameter setting changes and the like according to the analysis results are performed.

次に、制御部126は、指示入力装置114からの指示に基づいたエラーフラグリストを作成する(ステップS3)。このエラーフラグリストは、領域(タイル、プリシンクトなど)、解像度、画質(レイヤ)、コンポーネント(色成分)等の属性毎にエントロピー復号状態の管理と復号処理制御等を行うための管理情報である。   Next, the control unit 126 creates an error flag list based on an instruction from the instruction input device 114 (step S3). This error flag list is management information for managing entropy decoding status and decoding processing control for each attribute such as area (tile, precinct, etc.), resolution, image quality (layer), component (color component), and the like.

例えば、属性としてタイルが指定された場合には、例えば図11(a)のようなエラーフラグリストが作成される。図中のエラー状態の値「0」は正常状態を、「1」は異常状態を表す。通常、初期段階では図11(a)のように全てのタイルのエラー状態は「0」に設定されるが、意図的に特定のタイルのエラー状態を「1」に設定することにより、そのタイルの復号処理を行わないようにすることも可能である。   For example, when a tile is designated as an attribute, an error flag list as shown in FIG. In the figure, the error state value “0” represents a normal state, and “1” represents an abnormal state. Normally, the error state of all tiles is set to “0” as shown in FIG. 11A in the initial stage, but by intentionally setting the error state of a specific tile to “1”, the tiles It is also possible not to perform the decoding process.

より詳細な領域属性によるエントロピー復号状態の管理及び復号処理制御等が指定された場合には、プリシンクト又はコードブロックを単位とした同様のエラーフラグリストが作成される。2以上のタイルに分割されている場合には、このようなエラーフラグリストはタイル毎に作成される。   When entropy decoding state management and decoding processing control based on more detailed region attributes are designated, a similar error flag list is created in units of precincts or code blocks. When the tile is divided into two or more tiles, such an error flag list is created for each tile.

レイヤ(画質)属性によるエントロピー復号状態の管理及び復号処理制御等が指定された場合には、例えば図12(a)に示すようなエラーフラグリストが作成される。2以上のタイルに分割されている場合には、このようなエラーフラグリストはタイル毎に作成されるか全タイル共通に1つだけ作成される。前者の場合はレイヤ属性によるエントロピー復号状態の管理及び復号処理制御等はタイル毎に別々に行われ、後者の場合には全てのタイルに対して共通のエントロピー復号状態の管理及び復号処理制御等が行われる。通常、初期段階では図12(a)のように全てのレイヤのエラー状態は「0」に設定されるが、意図的に特定のレイヤのエラー状態を「1」に初期設定することにより、そのレイヤの復号処理を行わないようにすることも可能である。   When entropy decoding state management, decoding processing control, and the like are designated by the layer (image quality) attribute, an error flag list as shown in FIG. 12A is created, for example. When divided into two or more tiles, such an error flag list is created for each tile or only one for all tiles. In the former case, management of entropy decoding state and decoding processing control by layer attribute are performed separately for each tile, and in the latter case, common entropy decoding state management and decoding processing control for all tiles are performed. Done. Normally, in the initial stage, the error state of all layers is set to “0” as shown in FIG. 12A, but by intentionally initializing the error state of a specific layer to “1”, It is also possible not to perform layer decoding processing.

解像度属性によるエントロピー復号状態の管理及び復号処理制御等が指定された場合には、例えば図13(a)に示すようなエラーフラグリストが作成される。2以上のタイルに分割されている場合には、このようなエラーフラグリストはタイル毎に作成されるか全タイル共通に1つだけ作成される。前者の場合は解像度属性によるエントロピー復号状態の管理及び復号処理制御等はタイル毎に別々に行われ、後者の場合には全てのタイルに対して共通にエントロピー復号状態の管理及び復号処理制御等が行われる。なお、通常、初期段階では図13(a)のように全ての解像度レベルのエラー状態は「0」に設定されるが、意図的に特定の解像度レベルのエラー状態を「1」に初期設定することにより、その解像度レベルの復号処理を行わないようにすることも可能である。   When management of the entropy decoding state based on the resolution attribute and decoding processing control are designated, an error flag list as shown in FIG. 13A is created, for example. When divided into two or more tiles, such an error flag list is created for each tile or only one for all tiles. In the former case, management of entropy decoding state and resolution processing control by resolution attribute are performed separately for each tile, and in the latter case, management of entropy decoding state and decoding processing control are common to all tiles. Done. Normally, at the initial stage, as shown in FIG. 13A, error states of all resolution levels are set to “0”, but an error state of a specific resolution level is intentionally initialized to “1”. Thus, it is possible not to perform the decoding process at that resolution level.

コンポーネント(色成分)属性によるエントロピー復号状態の管理及び復号処理制御等が指定された場合には、例えば図14(a)に示すようなエラーフラグリストが作成される。2以上のタイルに分割されている場合には、このようなエラーフラグリストはタイル毎に作成されるか全タイル共通に1つだけ作成される。前者の場合はコンポーネント属性による復号処理制御等はタイル毎に別々に行われ、後者の場合には全てのタイルに対して共通の復号処理制御等が行われる。なお、通常、初期段階では図14(a)のように全ての色成分のエラー状態は「0」に設定されるが、意図的に特定のコンポーネントのエラー状態を「1」に初期設定することにより、そのコンポーネントの復号処理を行わないようにすることも可能である。   When entropy decoding state management, decoding processing control, and the like are specified by component (color component) attributes, an error flag list as shown in FIG. 14A is created, for example. When divided into two or more tiles, such an error flag list is created for each tile or only one for all tiles. In the former case, decoding processing control and the like based on component attributes are performed separately for each tile, and in the latter case, common decoding processing control and the like are performed for all tiles. Normally, at the initial stage, as shown in FIG. 14A, the error states of all the color components are set to “0”, but the error state of a specific component is intentionally initialized to “1”. Therefore, it is possible not to perform the decoding process of the component.

なお、コンポーネント別に、領域(タイル、プリシンクト、コードブロック)属性、レイヤ属性、又は解像度属性によるエントロピー復号状態の管理及び復号処理制御等を行うことも可能である。この場合には、それら属性によるエラーフラグリストがコンポーネント毎に作成されることになる。   It is also possible to manage entropy decoding status and control decoding processing by region (tile, precinct, code block) attribute, layer attribute, or resolution attribute for each component. In this case, an error flag list based on these attributes is created for each component.

以上の準備処理の後、符号化データ中の符号をパケット単位で読み込みながらステップS4〜S8の処理を行う。   After the above preparation processing, the processing in steps S4 to S8 is performed while reading the code in the encoded data in units of packets.

まず、制御部126は、エラーフラグリストを参照し、読み込まれたパケットの属性に対応したエラー状態を調べる(ステップS5)。そのエラー状態が「1」ならば、制御部126はエントロピー復号化部122で当該パケットに対するエントロピー復号を行わせず、次のパケットの読み込みを行わせる制御を行う。つまり、エラー状態が「1」の属性のパケットは読み飛ばされることになる。   First, the control unit 126 refers to the error flag list and checks an error state corresponding to the attribute of the read packet (step S5). If the error state is “1”, the control unit 126 controls the entropy decoding unit 122 to read the next packet without performing entropy decoding on the packet. That is, a packet having an attribute whose error state is “1” is skipped.

一方、当該パケットの属性に対応するエラー状態が「0」ならば、制御部122はエントロピー復号化部122で当該パケットのエントロピー復号を実行させる(ステップS6)。その復号データ(ウェーブレット係数)はデータ記憶部127に保存される。制御部126は、当該パケットのエントロピー復号が正常に行われたか調べ(ステップS7)、正常ならば次のパケットの読み込みを行わせる制御を行う。   On the other hand, if the error state corresponding to the attribute of the packet is “0”, the control unit 122 causes the entropy decoding unit 122 to perform entropy decoding of the packet (step S6). The decoded data (wavelet coefficient) is stored in the data storage unit 127. The control unit 126 checks whether the entropy decoding of the packet has been performed normally (step S7), and performs control to read the next packet if it is normal.

当該パケットのエントロピー復号で異常が発生したならば、制御部126は、エラーフラグリストの必要な修正を行い(ステップS8)、この後に次のパケットの読み込みを行わせる制御を行う。このエラーフラグリストの修正について図11乃至図14を例に説明する。   If an abnormality occurs in the entropy decoding of the packet, the control unit 126 performs necessary correction of the error flag list (step S8), and then performs control to read the next packet. The error flag list correction will be described with reference to FIGS.

例えばタイル属性によるエントロピー復号状態の管理及び復号処理制御等が行われる場合において、例えばタイル2に属するパケットのエントロピー復号の異常が発生したときには、図11(b)に示すようにエラーフラグリストのタイル2のエラー状態が「1」に修正される。その結果、タイル2に含まれる後続のパケットは全て読み飛ばされることになる。   For example, when entropy decoding status management and decoding processing control are performed using tile attributes, for example, when an entropy decoding abnormality of a packet belonging to tile 2 occurs, tiles in the error flag list as shown in FIG. The error state of 2 is corrected to “1”. As a result, all subsequent packets included in the tile 2 are skipped.

レイヤ属性によるエントロピー復号状態の管理及び復号処理制御等が行われる場合において、例えばレイヤ6に属するパケットのエントロピー復号の異常が発生したときには、図12(b)に示すようにエラーフラグリストのレイヤ6及びそれより下位のレイヤ7〜9のエラー状態が「1」に修正される。その結果、レイヤ6〜9に属する後続のパケットは全て読み飛ばされることになる。なお、エントロピー復号の異常が生じたレイヤ6のみエラー状態を「1」に修正し、それより下位のレイヤのエラー状態を「0」のままにしておくことも可能であり、かかる態様も本実施形態に包含される。   When entropy decoding state management and decoding processing control are performed by layer attributes, for example, when an entropy decoding abnormality of a packet belonging to layer 6 occurs, layer 6 of the error flag list as shown in FIG. And the error state of the lower layers 7 to 9 is corrected to “1”. As a result, all subsequent packets belonging to layers 6 to 9 are skipped. It is also possible to correct the error state to “1” only for layer 6 where the entropy decoding abnormality has occurred, and to leave the error state of the lower layers as “0”. Included in the form.

解像度属性によるエントロピー復号状態の管理及び復号処理制御等が行われる場合において、例えば解像度レベル4に属するパケットのエントロピー復号の異常が発生したときには、図13(b)に示すようにエラーフラグリストの解像度レベル4及びそれより低い解像度レベル5のエラー状態が「1」に修正される。その結果、解像度レベル4,5に属する後続のパケットは全て読み飛ばされることになる。なお、エントロピー復号の異常が生じた解像度レベル4のみエラー状態を「1」に修正し、それより低い解像度レベル5のエラー状態を「0」のままにしておくことも可能であり、かかる態様も本実施形態に包含される。   In the case where entropy decoding state management and decoding processing control by the resolution attribute are performed, for example, when an entropy decoding abnormality of a packet belonging to resolution level 4 occurs, the resolution of the error flag list as shown in FIG. The error condition of level 4 and lower resolution level 5 is corrected to “1”. As a result, all subsequent packets belonging to the resolution levels 4 and 5 are skipped. Note that it is also possible to correct the error state to “1” only at the resolution level 4 in which the entropy decoding abnormality has occurred, and to leave the error state at the lower resolution level 5 as “0”. It is included in this embodiment.

コンポーネント(色成分)属性によるエントロピー復号状態の管理及び復号処理制御等が行われる場合において、例えばCb成分のパケットのエントロピー復号の異常が発生したときには、図14(b)に示すようにエラーフラグリストのCb成分のエラー状態が「1」に修正される。その結果、後続のCb成分のパケットは読み飛ばされることになるが、エラー状態が「0」のY成分とCr成分のパケットはエントロピー復号される。   When entropy decoding state management and decoding processing control are performed using component (color component) attributes, for example, when an entropy decoding abnormality of a Cb component packet occurs, an error flag list as shown in FIG. The error state of the Cb component is corrected to “1”. As a result, the subsequent Cb component packets are skipped, but the Y component and Cr component packets whose error state is “0” are entropy decoded.

以上の処理が符号化データの最後のパケットまで繰り返される。   The above processing is repeated until the last packet of the encoded data.

ここまでの説明から明らかなように、タイル属性によりエントロピー復号の状態の管理及び復号処理制御を行う場合、あるタイルの属性を持つパケットのエントロピー復号の異常が発生したときには、そのタイルについては復号画質が低下するものの、それ以外のタイルについては復号画質の低下は生じないため、復号処理を中止する方法に比べ、復号画像の全体的な画質が向上する。また、エントロピー復号の異常が発生したパケットと同じタイルの属性を持つ後続のパケットのエントロピー復号を行っても復号画質向上への寄与は殆ど期待できないのが普通であるので、そのようなパケットのエントロピー復号が抑止されることにより処理効率が向上し、かつ、復号画質への格別の不利益は避けられる。   As is apparent from the above description, when entropy decoding status management and decoding processing control is performed using a tile attribute, when an entropy decoding abnormality of a packet having a certain tile attribute occurs, the decoding image quality of that tile is determined. However, since the decoded image quality does not deteriorate for other tiles, the overall image quality of the decoded image is improved as compared with the method of stopping the decoding process. In addition, even if entropy decoding is performed on a subsequent packet having the same tile attribute as that of a packet in which an entropy decoding abnormality has occurred, a contribution to the improvement of the decoded image quality is normally hardly expected. Therefore, the entropy of such a packet is not expected. By suppressing the decoding, the processing efficiency is improved, and a special disadvantage to the decoded image quality is avoided.

色成分属性によりエントロピー復号の状態の管理及び復号処理制御を行う場合、ある色成分の属性を持つ符号のエントロピー復号の異常が発生したときには、その色成分については復号画質が低下するものの、それ以外の色成分については復号画質の低下は生じないため、復号処理を中止する方法に比べ、復号画像の全体的な画質が向上する。また、エントロピー復号の異常が発生したパケットと同じ色成分の属性を持つ後続のパケットのエントロピー復号を行っても復号画質向上への寄与は殆ど期待できないのが普通であるので、そのようなパケットのエントロピー復号が抑止されることにより処理効率が向上し、かつ、復号画質への格別の不利益は避けられる。   When entropy decoding status management and decoding processing control is performed using color component attributes, if an error occurs in entropy decoding of a code having a certain color component attribute, the decoding quality of the color component is degraded, but otherwise As for the color component, the degradation of the decoded image quality does not occur, so that the overall image quality of the decoded image is improved as compared with the method of canceling the decoding process. In addition, even if entropy decoding is performed on a subsequent packet having the same color component attribute as that of the packet in which the entropy decoding abnormality has occurred, it is normal to hardly contribute to the improvement of the decoded image quality. By suppressing the entropy decoding, the processing efficiency is improved and a special disadvantage to the decoded image quality is avoided.

解像度属性によりエントロピー復号の状態の管理及び復号処理制御を行う場合、ある解像度の属性を持つパケットのエントロピー復号の異常が発生したときにエントロピー復号が抑止されるのは、その解像度の属性を持つ後続のパケット、あるいは、その解像度の属性を持つ後続のパケット及びそれより高い解像度の属性を持つ後続のパケットであるため、その異常を発生したパケットの段階で復号処理を中止する方法に比べ、高い復号画質を得ることができる。また、エントロピー復号が抑止されるパケットは、そのエントロピー復号を行ったとしても復号画質向上への寄与は殆ど期待できないのが普通であるので、そのようなパケットのエントロピー復号が抑止されることにより処理効率が向上し、かつ、復号画質への格別の不利益は避けられる。   When entropy decoding status management and decoding processing control are performed using resolution attributes, entropy decoding is suppressed when an entropy decoding error occurs in a packet having a certain resolution attribute. Packet, or a subsequent packet having the resolution attribute and a subsequent packet having a higher resolution attribute. Therefore, the decoding is higher than the method in which the decoding process is stopped at the stage of the packet in which the abnormality occurred. Image quality can be obtained. In addition, since packets whose entropy decoding is suppressed are hardly expected to contribute to the improvement of the decoded image quality even if the entropy decoding is performed, processing is performed by suppressing the entropy decoding of such packets. Efficiency is improved and special disadvantages to decoded image quality are avoided.

画質属性によりエントロピー復号の状態の管理及び復号処理制御を行う場合、ある画質の属性を持つエントロピー復号の異常が発生したときにエントロピー復号が抑止されるのは、その画質の属性を持つ後続のパケット、あるいは、その画質の属性を持つ後続のパケット及びそれより高い画質の属性を持つ後続のパケットであるため、その異常を発生したパケットの段階で復号処理を中止する方法に比べ、高い復号画質を得ることができる。また、エントロピー復号が抑止されるパケットは、そのエントロピー復号を行ったとしても復号画質向上への寄与は殆ど期待できないのが普通であるので、そのようなパケットのエントロピー復号が抑止されることにより処理効率が向上し、かつ、復号画質への格別の不利益は避けられる。   When entropy decoding status management and decoding processing control are performed using image quality attributes, entropy decoding is suppressed when an entropy decoding abnormality having a certain image quality attribute occurs. Or, because it is a subsequent packet with the attribute of the image quality and a subsequent packet with the attribute of the image quality higher than that, the decoding quality is higher than the method of stopping the decoding process at the stage of the packet where the abnormality occurred. Obtainable. In addition, since packets whose entropy decoding is suppressed are hardly expected to contribute to the improvement of the decoded image quality even if the entropy decoding is performed, processing is performed by suppressing the entropy decoding of such packets. Efficiency is improved and special disadvantages to decoded image quality are avoided.

また、2以上のタイルに分割された符号化データについて、タイル別に、色成分、解像度、又は画質の属性によるエントロピー復号の状態の管理及び復号処理制御を行う場合には、異常に関係のないタイルについては最高の復号画質を得ることができるとともに、異常に関係したタイルについても上に述べたような画像画質の向上と処理効率の向上を同時に達成することができる。   In addition, for encoded data divided into two or more tiles, when managing entropy decoding status and decoding processing control by color component, resolution, or image quality attribute for each tile, tiles that are not abnormally related In addition to obtaining the highest decoded image quality, it is possible to simultaneously improve the image quality and the processing efficiency as described above for tiles related to abnormalities.

図10に戻る。符号化データの最後のパケットの処理が終わると(ステップS4,YES)、制御部126は、指示入力装置114から入力された指示に従って画像復元処理のためのステップS10又はS11の一方を選択する(ステップS9)。   Returning to FIG. When the processing of the last packet of the encoded data is finished (step S4, YES), the control unit 126 selects one of step S10 or S11 for the image restoration process according to the instruction input from the instruction input device 114 ( Step S9).

ステップS10を選択した場合、制御部126は、エラーフラグリストを参照し、データ記憶部127に保存されている復号データ中の、復号異常が生じなかった属性(領域、レイヤ、解像度、色成分)のパケットの復号データのみを用いた画像復元処理(逆量子化、2次元逆ウェーブレット変換及び逆色空間変換)を逆量子化部123、2次元逆ウェーブレット変換部124及び逆色空間変換部125により実行させ、生成された画像データを画像表示装置111へ出力させる。したがって、例えば、タイル属性による復号処理制御を行う場合に、あるタイルのパケットの復号異常が生じたときには、そのタイルについては画像データは生成されず、その画像は表示されないことになる。   When step S10 is selected, the control unit 126 refers to the error flag list, and the attributes (area, layer, resolution, color component) in the decoded data stored in the data storage unit 127 in which no decoding abnormality has occurred. The image restoration process (inverse quantization, two-dimensional inverse wavelet transform and inverse color space transformation) using only the decoded data of the packet is performed by the inverse quantization unit 123, the two-dimensional inverse wavelet transform unit 124, and the inverse color space transformation unit 125. The generated image data is output to the image display device 111. Therefore, for example, when decoding processing control is performed using a tile attribute, when a decoding error occurs in a packet of a tile, no image data is generated for that tile, and the image is not displayed.

一方、ステップS11を選択した場合、データ記憶部127に保存されている全ての復号データ(復号異常が生じた属性を持つパケットでエントロピー復号済みのパケットの復号データも含む)を用いた画像復元処理を実行させ、生成された画像データを画像表示装置111へ出力させる。したがって、例えば、タイル属性による復号処理制御を行う場合に、あるタイルのパケットの復号異常が生じたときには、そのタイルについても復号済みパケットの復号データから画像データが生成されて表示されることになる。   On the other hand, when step S11 is selected, the image restoration process using all the decoded data stored in the data storage unit 127 (including the decoded data of the packet having the attribute in which decoding abnormality has occurred and the entropy decoded packet) And the generated image data is output to the image display device 111. Therefore, for example, when decoding processing control is performed based on a tile attribute, when a decoding error occurs in a packet of a tile, image data is also generated from the decoded data of the decoded packet and displayed for that tile. .

このように、エントロピー復号の異常が発生したパケットと同じ属性を持つパケットの復号データを全く用いない画像復元と、エントロピー復号の異常が発生したパケットと同じ属性を持つパケットであっても、エントロピー復号が抑止される以前に復号済みのパケットの復号データをも用いる画像復元とを選択することができる。例えば、あるタイルのパケットのエントロピー復号の異常が発生した場合、前者の画像復元を選べば、そのタイルについては画像が復元されないが、後者の画像復元を選べば、そのタイルについても復号済みパケットの多寡に応じた画質で画像を復元することができる。   In this way, image restoration that does not use the decoded data of the packet having the same attribute as the packet in which the entropy decoding abnormality has occurred, and even if the packet has the same attribute as the packet in which the entropy decoding abnormality has occurred, entropy decoding It is possible to select image restoration using also the decoded data of a packet that has been decoded before the suppression is performed. For example, if an entropy decoding error occurs in a packet of a certain tile, if the former image restoration is selected, the image is not restored for that tile, but if the latter image restoration is selected, the decoded packet of that tile is also restored. It is possible to restore an image with an image quality according to the degree.

なお、Motion−JPEG2000の動画符号化データを処理する場合には、同様の復号処理が動画の各フレームに対し繰り返される。   In addition, when processing Motion-JPEG2000 moving image encoded data, the same decoding process is repeated for each frame of the moving image.

また、以上の説明から理解されるように、図10中のステップS3,S5,S7,S8,S9は、請求項1乃至7記載の発明における制御手段の機能に対応するものである。また、図10は請求項11乃至17記載の発明における復号処理工程の処理手順を示すものでもあり、そのステップS3,S5,S7,S8,S9は制御工程に対応する。   As can be understood from the above description, steps S3, S5, S7, S8, and S9 in FIG. 10 correspond to the function of the control means in the first to seventh aspects of the invention. FIG. 10 also shows the processing procedure of the decoding process in the inventions according to claims 11 to 17, and steps S3, S5, S7, S8, and S9 correspond to the control process.

<動作説明(2)>
指示入力装置114によってユーザから指定された画像の符号化データを通信装置112でサーバ102より受信し、それを復号処理装置110に入力して復号処理を行い、復号画像を画像表示装置111に表示し、また、復号処理した符号化データを符号蓄積装置113に保存する動作について説明する。図15は、その説明のための簡略化されたフローチャートである。
<Description of operation (2)>
The encoded data of the image designated by the user by the instruction input device 114 is received from the server 102 by the communication device 112, input to the decoding processing device 110 to perform decoding processing, and the decoded image is displayed on the image display device 111. The operation of storing the decoded encoded data in the code storage device 113 will be described. FIG. 15 is a simplified flowchart for the explanation.

まず、タグ処理部121により、符号化データのメインヘッダ(及び最初のタイルパートヘッダ)が解析される(ステップS21)。なお、メインヘッダ及びタイルパートヘッダは、データ記憶部127に保存される。制御部126は、ヘッダ解析結果に基づいて復号処理に関する各種パラメータの設定を行う(ステップS22)。パケットの属性の解釈及びエントロピー復号は、プログレッションオーダーに対応した前述のようなforループに従って行われるが、このforループの設定もこの段階で行われる。図15では簡略化されているが、ステップS24〜S29の処理は、そのようなforループ内の繰り返し処理である。なお、2番目以降のタイルパートヘッダの解析は、ステップS24以降の処理内で随時行われ、解析結果に応じた必要なパラメータの設定変更等が行われる。   First, the tag processing unit 121 analyzes the main header (and the first tile part header) of the encoded data (step S21). Note that the main header and tile part header are stored in the data storage unit 127. The control unit 126 sets various parameters related to the decoding process based on the header analysis result (step S22). Interpretation of packet attributes and entropy decoding are performed according to the for loop as described above corresponding to the progression order. This for loop is also set at this stage. Although simplified in FIG. 15, the processing in steps S24 to S29 is such a repetitive processing in the for loop. Note that the analysis of the second and subsequent tile part headers is performed at any time in the processing from step S24 onward, and necessary parameter settings are changed according to the analysis results.

次に、制御部126は、指示入力装置114からの指示に基づいたエラーフラグリストを作成する(ステップS23)。このエラーフラグリストについては図11乃至図14に説明した通りである。   Next, the control unit 126 creates an error flag list based on an instruction from the instruction input device 114 (step S23). The error flag list is as described in FIGS.

以上の準備処理の後、符号化データ中の符号をパケット単位で読み込みながらステップS24〜S29の処理を行う。   After the above preparation processing, the processing in steps S24 to S29 is performed while reading the code in the encoded data in units of packets.

まず、制御部126は、読み込まれたパケットを、その属性別に分類してデータ記憶部127に保存する(ステップS25)。   First, the control unit 126 classifies the read packets according to their attributes and stores them in the data storage unit 127 (step S25).

次に、制御部126は、エラーフラグリストを参照し、読み込まれたパケットの属性に対応したエラー状態を調べる(ステップS26)。そのエラー状態が「1」ならば、制御部126はエントロピー復号化部122で当該パケットに対するエントロピー復号を行わせず、次のパケットの読み込みを行わせる制御を行う。   Next, the control unit 126 refers to the error flag list and checks an error state corresponding to the attribute of the read packet (step S26). If the error state is “1”, the control unit 126 controls the entropy decoding unit 122 to read the next packet without performing entropy decoding on the packet.

一方、当該パケットの属性に対応するエラー状態が「0」ならば、制御部122はエントロピー復号化部122で当該パケットのエントロピー復号を行わせる(ステップS27)。その復号データ(ウェーブレット係数)はデータ記憶部127に保存される。制御部126は、当該パケットのエントロピー復号が正常に行われたか調べ(ステップS28)、正常ならば次のパケットの読み込みを行わせる制御を行う。   On the other hand, if the error state corresponding to the attribute of the packet is “0”, the control unit 122 causes the entropy decoding unit 122 to perform entropy decoding of the packet (step S27). The decoded data (wavelet coefficient) is stored in the data storage unit 127. The control unit 126 checks whether the entropy decoding of the packet has been performed normally (step S28), and performs control to read the next packet if it is normal.

当該パケットのエントロピー復号に異常が発生したときには、制御部126は、エラーフラグリストの必要な修正を行い(ステップS29)、この後に次のパケットの読み込みを行わせる制御を行う。このエラーフラグリストの修正について図11乃至図14を参照して説明した通りである。   When an abnormality occurs in the entropy decoding of the packet, the control unit 126 performs necessary correction of the error flag list (step S29), and thereafter performs control to read the next packet. The correction of the error flag list is as described with reference to FIGS.

以上の処理が符号化データの最後のパケットまで繰り返される。最後のパケットの処理が終わると(ステップS24,YES)、制御部126は、指示入力装置114から入力された指示に従って画像復元処理のためのステップS31又はS32の一方を選択する(ステップS30)。ステップS31を選択した場合、制御部126は、エラーフラグリストを参照し、データ記憶部127に保存されている復号データ中の、復号異常が生じなかった属性(領域、レイヤ、解像度、色成分)のパケットの復号データのみを用いた画像復元処理(逆量子化、2次元逆ウェーブレット変換及び逆色空間変換)を逆量子化部123、2次元逆ウェーブレット変換部124及び逆色空間変換部125により実行させ、生成された画像データを画像表示装置111へ出力させる。ステップS32を選択した場合、データ記憶部127に保存されている全ての復号データ(復号異常が生じた属性のエントロピー復号済みパケットの復号データも含む)を用いた画像データ復元処理を実行させ、生成された画像データを画像表示装置111へ出力させる。   The above processing is repeated until the last packet of the encoded data. When the processing of the last packet is finished (step S24, YES), the control unit 126 selects one of step S31 or S32 for the image restoration process according to the instruction input from the instruction input device 114 (step S30). When step S31 is selected, the control unit 126 refers to the error flag list, and the attribute (area, layer, resolution, color component) in the decoded data stored in the data storage unit 127 in which no decoding abnormality has occurred. The image restoration process (inverse quantization, two-dimensional inverse wavelet transform and inverse color space transformation) using only the decoded data of the packet is performed by the inverse quantization unit 123, the two-dimensional inverse wavelet transform unit 124, and the inverse color space transformation unit 125. The generated image data is output to the image display device 111. When step S32 is selected, the image data restoration process using all the decoded data stored in the data storage unit 127 (including the decoded data of the entropy-decoded packet having the attribute in which the decoding abnormality has occurred) is generated and generated. The processed image data is output to the image display device 111.

次に、制御部126は、指示入力装置114から入力された指示に従って符号保存のためのステップS34又はS35の一方を選択する(ステップS33)。   Next, the control unit 126 selects one of steps S34 and S35 for code storage in accordance with the instruction input from the instruction input device 114 (step S33).

ステップS34を選択した場合、制御部126は、エラーフラグリストを参照し、データ記憶部127に保存されているパケット群のうち、復号異常が生じた属性(領域、レイヤ、解像度、色成分)のパケットを空(から)パケットに置き換え、また、データ記憶部127に保存されているメインヘッダ及びタイルパートヘッダに必要な修正を施すことにより、復号異常が生じた属性の符号を削除した符号化データを編集し、これを符号蓄積装置113へ転送し保存させる。なお、復号異常が生じた属性のパケットを単に削除するのではなく空パケットに置き換えるのは、符号化データをJPEG2000フォーマットに整形するためである。   When step S34 is selected, the control unit 126 refers to the error flag list, and among the packet groups stored in the data storage unit 127, the attribute (area, layer, resolution, color component) in which the decoding abnormality has occurred. Encoded data in which the code of the attribute in which the decoding error has occurred is deleted by replacing the packet with an empty packet and making necessary corrections to the main header and tile part header stored in the data storage unit 127 Is transferred to the code storage device 113 for storage. The reason why the packet with the attribute in which the decoding abnormality has occurred is not simply deleted but replaced with an empty packet is to format the encoded data into the JPEG2000 format.

ステップS35を選択した場合、制御部126は、データ記憶部127に保存されているメインヘッダ、タイルパートヘッダ及び全てのパケットからなる符号化データ、すなわちサーバ102より受信した符号化データをそのまま、符号蓄積装置113へ転送して保存させる。   When step S35 is selected, the control unit 126 encodes the encoded data including the main header, tile part header, and all packets stored in the data storage unit 127, that is, the encoded data received from the server 102, as it is. Transfer to the storage device 113 to save.

このように、エントロピー復号が抑止されたパケットと同じ属性を持つパケットも含まれる、外部装置より取り込まれたものと同じ符号化データを保存することも、そのような属性を持つパケットを含めない符号化データを保存することもできるのである。   In this way, it is possible to store the same encoded data as that captured from an external device, including packets having the same attribute as the packet for which entropy decoding is suppressed, and codes that do not include packets having such an attribute. It is also possible to save data.

なお、Motion−JPEG2000の動画符号化データを処理する場合には、同様の復号処理が動画の各フレームに対し繰り返される。   In addition, when processing Motion-JPEG2000 moving image encoded data, the same decoding process is repeated for each frame of the moving image.

ここまでの説明から明らかなように、図15中のステップS23,S25,S26,S28,S29,S30,S33は、請求項1乃至8記載の発明における制御手段の機能に対応するものである。また、図15は請求項11乃至18記載の発明における復号処理工程の処理手順を示すものでもあり、そのステップS23,S25,S26,S28,S29,S30,S33は制御工程に対応する。   As is apparent from the above description, steps S23, S25, S26, S28, S29, S30, and S33 in FIG. 15 correspond to the function of the control means in the inventions according to claims 1 to 8. FIG. 15 also shows the processing procedure of the decoding process in the inventions according to claims 11 to 18, and steps S23, S25, S26, S28, S29, S30, and S33 correspond to the control process.

以上説明した画像処理装置110は、パソコンなどの汎用コンピュータや、画像表示機能を有する携帯情報端末、携帯電話、その他各種情報処理機器の内蔵マイクロコンピュータにおいてプログラムの形で実現することができる。このような態様について、図16に示すような構成のコンピュータを例にさらに説明する。   The image processing apparatus 110 described above can be realized in the form of a program in a general-purpose computer such as a personal computer, a portable information terminal having an image display function, a mobile phone, or a built-in microcomputer of various information processing devices. Such an embodiment will be further described by taking a computer having a configuration as shown in FIG. 16 as an example.

図16に示すコンピュータは、CPU200、メモリ202、ディスプレイ装置204、ハードディスク等の補助記憶装置206、キーボードやポインティングデバイスなどのユーザ入力装置208、通信インターフェース210、各種記録媒体(磁気ディスク、光ディスク、光磁気ディスク、半導体記憶素子など)の読み取り/書き込みのための媒体ドライブ装置214などを備え、それらがシステムバス216で相互接続された一般的な構成である。   The computer shown in FIG. 16 includes a CPU 200, a memory 202, a display device 204, an auxiliary storage device 206 such as a hard disk, a user input device 208 such as a keyboard and a pointing device, a communication interface 210, and various recording media (magnetic disk, optical disk, magneto-optical). It has a general configuration in which a medium drive device 214 for reading / writing a disk, a semiconductor storage element, or the like is provided and these are interconnected by a system bus 216.

このようなコンピュータを、画像処理装置110の各構成要素として機能させるためのプログラム220(以下、画像処理プログラムと称する)は、それが記録された記録媒体より媒体ドライブ装置214によって読み込まれて補助記憶装置206に格納され、あるいはネットワーク経由で通信インターフェース210より取り込まれて補助記憶装置206に保存される。そして、画像処理プログラム220は、補助記憶装置206よりメモリ202にロードされ、CPU200により実行されることにより、コンピュータ上で本発明に係る画像処理装置110が実現される。符号蓄積装置113としては補助記憶装置206が利用され、復号処理装置110内のデータ記憶部127としてはメモリ127が利用される。なお、携帯情報端末などの機器では、画像処理プログラム220はROMの形で実装されることもあり、係る態様も本実施形態に含まれる。画像処理プログラム220と、これが記録された各種記録媒体(上記ROMなどの半導体記憶素子も含む)も、本実施形態に包含される。   A program 220 (hereinafter referred to as an image processing program) for causing such a computer to function as each component of the image processing apparatus 110 is read by the medium drive device 214 from the recording medium on which the program is recorded, and is auxiliary stored. It is stored in the device 206 or is taken in from the communication interface 210 via the network and stored in the auxiliary storage device 206. The image processing program 220 is loaded into the memory 202 from the auxiliary storage device 206 and executed by the CPU 200, whereby the image processing device 110 according to the present invention is realized on the computer. The auxiliary storage device 206 is used as the code storage device 113, and the memory 127 is used as the data storage unit 127 in the decoding processing device 110. Note that in an apparatus such as a portable information terminal, the image processing program 220 may be implemented in the form of a ROM, and such an aspect is also included in this embodiment. The image processing program 220 and various recording media (including semiconductor memory elements such as the ROM) on which the image processing program 220 is recorded are also included in the present embodiment.

処理対象となる静止画又は動画の符号化データは、例えば、ネットワーク上のサーバ102から通信インターフェース210を通じて取り込まれたり、補助記憶装置206又は媒体ドライブ装置214より取り込まれて処理される。   For example, encoded data of a still image or a moving image to be processed is acquired from the server 102 on the network through the communication interface 210 or is acquired from the auxiliary storage device 206 or the medium drive device 214 and processed.

1つの典型的な態様によれば、画像処理プログラム220は、ビューア、ブラウザなどと呼ばれる静止画又は動画の閲覧のための他のプログラム222(以下、ビューア/ブラウザと称する)と連携して動作する形をとる。ただし、ビューア/ブラウザ222と画像処理プログラム220とを統合することも可能である。そのような統合された形のプログラム、それが記録された記録媒体、同プログラムによりコンピュータ上で実現される画像処理システムも本実施形態に包含される。   According to one typical aspect, the image processing program 220 operates in cooperation with another program 222 (hereinafter referred to as a viewer / browser) for viewing still images or moving images called a viewer, a browser, or the like. Take shape. However, the viewer / browser 222 and the image processing program 220 can be integrated. Such an integrated program, a recording medium on which the program is recorded, and an image processing system realized on a computer by the program are also included in the present embodiment.

画像処理プログラム220は、静止画又は動画の符号化データの復号処理を実行して画像データを再生し、この画像データをビューア/ブラウザ222が画像表示ウィンドウ230に表示させる。このように、符号化データの復号処理は画像処理プログラム220で行われるが、復号画像データのディスプレイ装置204の画面への画像表示のための処理及び制御はビューア/ブラウザ230により行われる。すなわち、ビューア/ブラウザ222とディスプレイ装置204で画像表示装置111が実現される。   The image processing program 220 executes decoding processing of encoded data of a still image or a moving image to reproduce the image data, and the viewer / browser 222 causes the image display window 230 to display this image data. As described above, the decoding processing of the encoded data is performed by the image processing program 220, but the processing and control for displaying the decoded image data on the screen of the display device 204 is performed by the viewer / browser 230. That is, the image display device 111 is realized by the viewer / browser 222 and the display device 204.

ビューア/ブラウザ222は、ディスプレイ装置204の画面上に、例えば図17に模式的に示すように、画像表示ウィンドウ230を開き、そこに動画又は静止画を表示させ、また、コントロール領域232に、ユーザが各種の指定を行うためのボタンやスライドバーなどを表示する。通常、表示させる画像の指定(ファイル名やURLの指定)のほか、ユーザ入力装置208に含まれるマウスなどのポインティングデバイスの操作により、画像表示ウィンドウ230の縦横サイズの変更、画像の表示倍率の変更、画像表示ウィンド230より大きな画像のスクロール、特定領域(位置)の指定などが可能である。また、コントロール領域232に表示されたボタンやスライドバーなどにより、動画又は静止画に関する様々な条件の指定を行うことができ、その指定内容を画像処理プログラム220に通知する。前述したようなどのような属性(領域、画質、解像度、色成分)によりエントロピー復号状態の管理及び復号処理制御等を行うかの指示、ステップS9,S30,S33に関連した指示も、コントロール領域232に表示されたボタン等を用いて行われる。すなわち、ビューア/ブラウザ222とユーザ入力装置208により、指示入力装置114が実現される。   The viewer / browser 222 opens an image display window 230 on the screen of the display device 204, for example, as schematically shown in FIG. 17, and displays a moving image or a still image there. Displays buttons and slide bars for various specifications. Usually, in addition to designation of an image to be displayed (designation of a file name and URL), the vertical and horizontal sizes of the image display window 230 and the image display magnification are changed by operating a pointing device such as a mouse included in the user input device 208. It is possible to scroll an image larger than the image display window 230, specify a specific area (position), and the like. In addition, various conditions relating to a moving image or a still image can be designated by a button or a slide bar displayed in the control area 232, and the designated content is notified to the image processing program 220. An instruction as to what kind of attributes (area, image quality, resolution, color component) to perform entropy decoding state management and decoding processing control as described above, and instructions related to steps S9, S30, and S33 are also included in the control area 232. This is done using the buttons displayed on the screen. That is, the instruction input device 114 is realized by the viewer / browser 222 and the user input device 208.

ここまでは、JPEG2000の静止画符号化データ又はMotion−JPEG2000の動画符号化データを処理する場合について説明したが、それ以外の符号化方式による符号化データを処理する画像処理装置においても本発明を同様に適用し得ることは明らかである。   Up to this point, the case where JPEG2000 still image encoded data or Motion-JPEG2000 moving image encoded data is processed has been described. However, the present invention is also applied to an image processing apparatus that processes encoded data using other encoding methods. It is clear that the same applies.

JPEG2000のアルゴリズムを説明するためのブロック図である。It is a block diagram for demonstrating the algorithm of JPEG2000. タイル分割の説明図である。It is explanatory drawing of tile division | segmentation. 2次元ウェーブレット変換の説明図である。It is explanatory drawing of a two-dimensional wavelet transform. JPEG2000の符号化データのフォーマットを示す図である。It is a figure which shows the format of the encoding data of JPEG2000. タイル、サブバンド、プリシンクト及びコードブロックの関係を示す図である。It is a figure which shows the relationship between a tile, a subband, a precinct, and a code block. レイヤ分割の例を示す図である。It is a figure which shows the example of a layer division | segmentation. LRCPプログレッションのパケット配列例を示す図である。It is a figure which shows the packet array example of LRCP progression. RLCPプログレッションのパケット配列例を示す図である。It is a figure which shows the example of a packet arrangement | sequence of RLCP progression. 本発明の実施の形態を説明するためのブロック図である。It is a block diagram for demonstrating embodiment of this invention. 本発明に係る画像処理装置の動作の説明のためのフローチャートである。6 is a flowchart for explaining the operation of the image processing apparatus according to the present invention. タイル属性によるエントロピー復号状態管理のためのエラーフラグリストの説明図である。It is explanatory drawing of the error flag list | wrist for entropy decoding state management by a tile attribute. レイヤ属性によるエントロピー復号状態管理のためのエラーフラグリストの説明図である。It is explanatory drawing of the error flag list | wrist for entropy decoding state management by a layer attribute. 解像度属性によるエントロピー復号状態管理のためのエラーフラグリストの説明図である。It is explanatory drawing of the error flag list | wrist for entropy decoding state management by a resolution attribute. コンポーネント属性によるエントロピー復号状態管理のためのエラーフラグリストの説明図である。It is explanatory drawing of the error flag list | wrist for entropy decoding state management by a component attribute. 本発明に係る画像処理装置の動作の説明のためのフローチャートである。6 is a flowchart for explaining the operation of the image processing apparatus according to the present invention. コンピュータを利用した実施の形態を説明するためのブロック図である。It is a block diagram for demonstrating embodiment using a computer. ビューア/ブラウザによる画面表示の説明図である。It is explanatory drawing of the screen display by a viewer / browser.

符号の説明Explanation of symbols

100 画像処理装置
101 通信路
102 サーバ
110 復号処理装置
112 通信装置
113 符号蓄積装置
121 タグ処理部
122 エントロピー復号化部
123 逆量子化部
124 2次元逆ウェーブレット変換部
125 逆色空間変換部
126 制御部
127 データ記憶部
DESCRIPTION OF SYMBOLS 100 Image processing apparatus 101 Communication path 102 Server 110 Decoding processing apparatus 112 Communication apparatus 113 Code storage apparatus 121 Tag processing part 122 Entropy decoding part 123 Inverse quantization part 124 Two-dimensional inverse wavelet transformation part 125 Inverse color space transformation part 126 Control part 127 Data storage unit

Claims (18)

領域の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、
前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を領域毎に管理し、ある領域の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある領域の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置。
An image processing device including a decoding processing device that performs decoding processing of encoded data of an image, which includes a code having an area attribute,
The state of entropy decoding of codes in the encoded data in the decoding processing device is managed for each area, and when an abnormality occurs in entropy decoding of a code having an attribute of a certain area, a subsequent attribute having the attribute of the certain area An image processing apparatus comprising control means for performing control for suppressing entropy decoding of a code.
色成分の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、
前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を色成分毎に管理し、ある色成分の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある色成分の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置。
An image processing apparatus including a decoding processing apparatus that performs decoding processing of encoded data of an image, which includes codes having color component attributes,
The state of entropy decoding of the code in the encoded data in the decoding processing device is managed for each color component, and when an abnormality occurs in the entropy decoding of the code having the attribute of a certain color component, the attribute of the certain color component is An image processing apparatus comprising control means for performing control to suppress entropy decoding of a subsequent code.
解像度の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、
前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を解像度毎に管理し、ある解像度の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある解像度の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置。
An image processing apparatus including a decoding processing apparatus that performs decoding processing of encoded data of an image, which includes a code having a resolution attribute,
The state of entropy decoding of the code in the encoded data in the decoding processing device is managed for each resolution, and when an abnormality occurs in the entropy decoding of the code having a certain resolution attribute, An image processing apparatus comprising control means for performing control for suppressing entropy decoding of a code.
解像度の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、
前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を解像度毎に管理し、ある解像度の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある解像度の属性を持つ後続の符号及び当該ある解像度より高い解像度の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置。
An image processing apparatus including a decoding processing apparatus that performs decoding processing of encoded data of an image, which includes a code having a resolution attribute,
The state of entropy decoding of the code in the encoded data in the decoding processing device is managed for each resolution, and when an abnormality occurs in the entropy decoding of the code having a certain resolution attribute, An image processing apparatus comprising: a control unit that performs control to suppress entropy decoding of a code and a subsequent code having a higher resolution attribute than the certain resolution.
画質の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、
前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を画質毎に管理し、ある画質の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある画質の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置。
An image processing device including a decoding processing device that performs decoding processing of encoded data of an image, which includes a code having an image quality attribute,
The state of entropy decoding of codes in the encoded data in the decoding processing device is managed for each image quality, and when an abnormality occurs in entropy decoding of a code having a certain image quality attribute, An image processing apparatus comprising control means for performing control for suppressing entropy decoding of a code.
画質の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理装置を備える画像処理装置であって、
前記復号処理装置における符号化データ中の符号のエントロピー復号の状態を画質毎に管理し、ある画質の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある画質の属性を持つ後続の符号及び当該ある画質より高い画質の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御手段を有することを特徴とする画像処理装置。
An image processing device including a decoding processing device that performs decoding processing of encoded data of an image, which includes a code having an image quality attribute,
The state of entropy decoding of codes in the encoded data in the decoding processing device is managed for each image quality, and when an abnormality occurs in entropy decoding of a code having a certain image quality attribute, An image processing apparatus comprising: a control unit that performs control to suppress entropy decoding of a code and a subsequent code having an image quality attribute higher than the certain image quality.
前記制御手段は、前記復号処理装置における画像復元処理に、エントロピー復号が抑止された符号と同じ属性を持つ符号の復号データを使用するか否かの制御を行うことを特徴とする請求項1乃至6のいずれか1項記載の画像処理装置。   The control means controls whether or not to use decoded data having a code having the same attribute as that of a code for which entropy decoding is suppressed in the image restoration processing in the decoding processing device. The image processing apparatus according to any one of claims 6 to 7. 外部装置より画像の符号化データを取り込み、それを前記復号処理装置により復号処理する請求項1乃至6のいずれか1項記載の画像処理装置であって、
前記復号処理装置により復号処理された符号化データを保存するための符号蓄積装置を有し、
前記制御手段は、前記符号蓄積装置に保存する符号化データに、前記復号処理装置においてエントロピー復号が抑止された符号と同じ属性を持つ符号を含めるか否かの制御を行うことを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 6, wherein encoded data of an image is fetched from an external apparatus, and is decoded by the decoding processing apparatus.
A code storage device for storing the encoded data decoded by the decoding processing device;
The control means controls whether or not to include in the encoded data stored in the code storage device a code having the same attribute as the code whose entropy decoding is suppressed in the decoding processing device. Processing equipment.
請求項1乃至8のいずれか1項記載の復号処理装置及び制御手段としてコンピュータを機能させるプログラム。   A program that causes a computer to function as the decoding processing device and control means according to claim 1. 請求項1乃至8のいずれか1項記載の復号処理装置及び制御手段としてコンピュータを機能させるプログラムが記録された、コンピュータが読み取り可能な情報記録媒体。   9. A computer-readable information recording medium in which a program for causing a computer to function as the decoding processing apparatus and control means according to claim 1 is recorded. 領域の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、
前記復号処理工程は、符号化データ中の符号のエントロピー復号の状態を領域毎に管理し、ある領域の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある領域の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法。
A decoding process step of performing decoding processing of encoded data of an image consisting of codes having region attributes;
The decoding process step manages the entropy decoding state of the code in the encoded data for each area, and when an abnormality occurs in the entropy decoding of the code having the attribute of a certain area, the subsequent process having the attribute of the certain area The image processing method characterized by including the control process which performs control which suppresses entropy decoding of the code | symbol of this.
色成分の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、
前記復号処理工程は、符号化データ中の符号のエントロピー復号の状態を色成分毎に管理し、ある色成分の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある色成分の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法。
A decoding process step of performing decoding processing of encoded data of an image including a code having an attribute of a color component;
The decoding process step manages the entropy decoding state of the code in the encoded data for each color component, and when an abnormality occurs in the entropy decoding of the code having the attribute of a certain color component, the attribute of the certain color component An image processing method comprising a control step of performing control to suppress entropy decoding of a subsequent code having
解像度の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、
前記復号処理工程は、符号化データ中の符号のエントロピー復号の状態を解像度毎に管理し、ある解像度の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある解像度の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法。
A decoding process step for decoding encoded data of an image, which includes a code having a resolution attribute;
The decoding process step manages the entropy decoding state of the code in the encoded data for each resolution, and when an abnormality occurs in the entropy decoding of the code having a certain resolution attribute, the subsequent process having the certain resolution attribute The image processing method characterized by including the control process which performs control which suppresses entropy decoding of the code | symbol of this.
解像度の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、
前記復号処理工程は、符号化データ中の符号のエントロピー復号の状態を解像度毎に管理し、ある解像度の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある解像度の属性を持つ後続の符号及び当該ある解像度より高い解像度の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法。
A decoding process step for decoding encoded data of an image, which includes a code having a resolution attribute;
The decoding process step manages the entropy decoding state of the code in the encoded data for each resolution, and when an abnormality occurs in the entropy decoding of the code having a certain resolution attribute, the subsequent process having the certain resolution attribute And a control step of controlling to suppress entropy decoding of a subsequent code having a higher resolution attribute than the certain resolution.
画質の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、
前記復号処理工程は、符号化データ中の符号のエントロピー復号の状態を画質毎に管理し、ある画質の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある画質の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法。
A decoding process step for decoding encoded data of an image, which includes a code having an image quality attribute;
The decoding process step manages the entropy decoding state of the code in the encoded data for each image quality, and when an abnormality occurs in the entropy decoding of the code having a certain image quality attribute, the subsequent process having the certain image quality attribute The image processing method characterized by including the control process which performs control which suppresses entropy decoding of the code | symbol of this.
画質の属性を持つ符号からなる、画像の符号化データの復号処理を行う復号処理工程を有し、
前記復号処理工程は、符号化データ中の符号のエントロピー復号の状態を画質毎に管理し、ある画質の属性を持つ符号のエントロピー復号で異常が発生したときに、当該ある画質の属性を持つ後続の符号及び当該ある画質より高い画質の属性を持つ後続の符号のエントロピー復号を抑止する制御を行う制御工程を含むことを特徴とする画像処理方法。
A decoding process step for decoding encoded data of an image, which includes a code having an image quality attribute;
The decoding process step manages the entropy decoding state of the code in the encoded data for each image quality, and when an abnormality occurs in the entropy decoding of the code having a certain image quality attribute, the subsequent process having the certain image quality attribute And a control step for controlling to suppress entropy decoding of a subsequent code having an image quality attribute higher than the certain image quality.
前記制御工程は、前記復号処理工程における画像復元処理に、エントロピー復号が抑止された符号と同じ属性を持つ符号の復号データを使用するか否かの制御を行うことを特徴とする請求項11乃至16のいずれか1項記載の画像処理方法。   12. The control process according to claim 11, wherein the control process controls whether or not to use decoded data having a code having the same attribute as that of the code for which entropy decoding is suppressed in the image restoration process in the decoding process. The image processing method according to claim 16. 前記復号処理工程により復号処理された符号化データを保存するための符号化データ保存工程を有し、
前記制御工程は、前記符号化データ保存工程により保存される符号化データに、前記復号処理工程においてエントロピー復号が抑止された符号と同じ属性を持つ符号を含めるか否かの制御を行うことを特徴とする請求項11乃至16のいずれか1項記載の画像処理方法。
An encoded data storage step for storing the encoded data decoded by the decoding processing step;
The control step controls whether or not the encoded data stored in the encoded data storage step includes a code having the same attribute as the code for which entropy decoding is suppressed in the decoding processing step. The image processing method according to claim 11.
JP2005015796A 2005-01-24 2005-01-24 Image processing apparatus, image processing method, program, and information recording medium Active JP4859014B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005015796A JP4859014B2 (en) 2005-01-24 2005-01-24 Image processing apparatus, image processing method, program, and information recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005015796A JP4859014B2 (en) 2005-01-24 2005-01-24 Image processing apparatus, image processing method, program, and information recording medium

Publications (2)

Publication Number Publication Date
JP2006203804A true JP2006203804A (en) 2006-08-03
JP4859014B2 JP4859014B2 (en) 2012-01-18

Family

ID=36961377

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005015796A Active JP4859014B2 (en) 2005-01-24 2005-01-24 Image processing apparatus, image processing method, program, and information recording medium

Country Status (1)

Country Link
JP (1) JP4859014B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009231977A (en) * 2008-03-19 2009-10-08 Olympus Corp Receiving system
JP5549681B2 (en) * 2010-01-14 2014-07-16 住友電気工業株式会社 Display method, apparatus, and communication system of moving image encoded data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09271025A (en) * 1996-03-28 1997-10-14 Sanyo Electric Co Ltd Error processing unit
JPH1023431A (en) * 1996-07-08 1998-01-23 Nec Corp Moving image decoding device
JP2001111839A (en) * 1999-10-12 2001-04-20 Sharp Corp Image decoder
JP2003284064A (en) * 2002-03-20 2003-10-03 Matsushita Electric Ind Co Ltd Image receiving equipment and image display control method
JP2004112472A (en) * 2002-09-19 2004-04-08 Toshiba Corp Motion picture processing system
JP2004186858A (en) * 2002-12-02 2004-07-02 Ricoh Co Ltd Image processing apparatus
JP2004221825A (en) * 2003-01-14 2004-08-05 Matsushita Electric Ind Co Ltd Device and method for decoding image data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09271025A (en) * 1996-03-28 1997-10-14 Sanyo Electric Co Ltd Error processing unit
JPH1023431A (en) * 1996-07-08 1998-01-23 Nec Corp Moving image decoding device
JP2001111839A (en) * 1999-10-12 2001-04-20 Sharp Corp Image decoder
JP2003284064A (en) * 2002-03-20 2003-10-03 Matsushita Electric Ind Co Ltd Image receiving equipment and image display control method
JP2004112472A (en) * 2002-09-19 2004-04-08 Toshiba Corp Motion picture processing system
JP2004186858A (en) * 2002-12-02 2004-07-02 Ricoh Co Ltd Image processing apparatus
JP2004221825A (en) * 2003-01-14 2004-08-05 Matsushita Electric Ind Co Ltd Device and method for decoding image data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009231977A (en) * 2008-03-19 2009-10-08 Olympus Corp Receiving system
JP5549681B2 (en) * 2010-01-14 2014-07-16 住友電気工業株式会社 Display method, apparatus, and communication system of moving image encoded data
US9219925B2 (en) 2010-01-14 2015-12-22 Sumitomo Electric Industries, Ltd. Video image coded data display method, device, and communications system

Also Published As

Publication number Publication date
JP4859014B2 (en) 2012-01-18

Similar Documents

Publication Publication Date Title
JP3988990B2 (en) Code conversion apparatus, code conversion method, program, and recording medium
US20040057628A1 (en) Method and apparatus for selecting layers for quantization based on sideband information
JP2009009334A (en) Image processor, image processing method, and image processing program
JP2004194152A (en) Image processing apparatus, program, storage medium, and image editing method
JP4349816B2 (en) Image processing apparatus, image compression apparatus, image processing method, image compression method, program, and recording medium
JP2007142614A (en) Image processing apparatus and method, program, and information recording medium
JP2004254298A (en) Image processing device, program, and storage medium
JP4151963B2 (en) Image server device, client device, moving image distribution method, program, and information recording medium
US7409095B2 (en) Image processing apparatus and method for scalable encoded image data
US7433523B2 (en) Image browsing device acquiring coded data for saving a displayed image from image data source
JP4450322B2 (en) Image processing apparatus, image processing method, program, and information recording medium
JP2004186871A (en) Image processing apparatus, imaging apparatus, program, and storage medium
JP4859014B2 (en) Image processing apparatus, image processing method, program, and information recording medium
JP4640942B2 (en) Server device
JP2007014002A (en) Image processing apparatus, image processing program and recording medium
JP2005092007A (en) Image processing system, image processing method, program and information recording medium
JP4208122B2 (en) Data processing apparatus and data processing method
JP4812071B2 (en) Image processing apparatus, image processing method, program, and information recording medium
JP4489474B2 (en) Image processing apparatus, program, and recording medium
JP4059399B2 (en) Image processing apparatus, image processing system, image output control method, program, and recording medium
JP4475513B2 (en) Image processing apparatus, program, and recording medium
JP4124436B2 (en) Motion estimation device, program, storage medium, and motion estimation method
JP4688164B2 (en) Image processing apparatus, image processing method, program, and information recording medium
JP4117886B2 (en) Image processing apparatus, image processing method, program, and information recording medium
JP3989801B2 (en) Image processing apparatus, image processing program, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080118

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100901

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101028

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111026

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111027

R151 Written notification of patent or utility model registration

Ref document number: 4859014

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141111

Year of fee payment: 3