JP6541763B2 - Image decoding apparatus, image decoding method and program - Google Patents
Image decoding apparatus, image decoding method and program Download PDFInfo
- Publication number
- JP6541763B2 JP6541763B2 JP2017248472A JP2017248472A JP6541763B2 JP 6541763 B2 JP6541763 B2 JP 6541763B2 JP 2017248472 A JP2017248472 A JP 2017248472A JP 2017248472 A JP2017248472 A JP 2017248472A JP 6541763 B2 JP6541763 B2 JP 6541763B2
- Authority
- JP
- Japan
- Prior art keywords
- quantization
- coefficient
- quantization matrix
- unit
- inverse
- 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.)
- Active
Links
Images
Description
本発明は、画像復号装置、画像復号方法及びプログラムに関する。 The present invention relates to an image decoding apparatus, an image decoding method, and a program.
動画像の圧縮記録方法として、H.264/MPEG−4 AVC(以下H.264)が知られている。(非特許文献1)
H.264においてはscaling_list情報を符号化することにより、量子化マトリクスの各係数を任意の値に変更することができる。非特許文献1によれば、直前の係数に差分値であるdelta_scaleを加算することで量子化マトリクスの各係数は任意の値をとることができる。
As a method of compressing and recording moving images, H. H.264 / MPEG-4 AVC (hereinafter H.264) is known. (Non-patent document 1)
H. In H.264, each coefficient of the quantization matrix can be changed to an arbitrary value by encoding scaling_list information. According to
近年、H.264の後継としてさらに高効率な符号化方式の国際標準化を行う活動が開始された。JCT−VC(Joint Collaborative Team on Video Coding)がISO/IECとITU−Tの間で設立された。このJCT−VCにおいて、HEVC(High Efficiency Video Coding)符号化方式(以下、HEVC)として標準化が進められている。 Recently, H. As a successor to H.264, activities have been launched to carry out international standardization of more efficient coding schemes. JCT-VC (Joint Collaborative Team on Video Coding) was established between ISO / IEC and ITU-T. In this JCT-VC, standardization is advanced as a High Efficiency Video Coding (HEVC) coding scheme (hereinafter, HEVC).
この方式では、符号化効率向上のため、従来の離散コサインベースの直交変換方法に加えて離散サイン変換といった直交変換方法が検討されている。また、カメラなどで撮影した自然映像だけでなく、PC画面やゲームといった人工映像における符号化効率向上のため、直交変換を行わない変換スキップ技術といった方法も検討されている。(非特許文献2) In this method, in order to improve the coding efficiency, in addition to the conventional discrete cosine-based orthogonal transform method, an orthogonal transform method such as discrete sine transform is being studied. In addition, methods such as a conversion skip technique that does not perform orthogonal transformation are being studied in order to improve the coding efficiency in artificial pictures such as PC screens and games as well as natural pictures shot with a camera or the like. (Non-patent document 2)
一般的に画像の圧縮においては、主観画質の向上のため、直交変換を行った後の変換係数のうち、低周波成分にあたる係数をより小さな値で量子化し、高周波成分にあたる係数をより大きな値で量子化することが多い。この場合、図5(a)に示されるような量子化マトリクスを用いて周波数成分による重み付け量子化を行うことが一般的である。この量子化マトリクス500は、低周波成分にあたる係数がより小さく、高周波成分にあたる係数がより大きい。
Generally, in image compression, to improve the subjective image quality, among the conversion coefficients after orthogonal transformation, the coefficient corresponding to the low frequency component is quantized with a smaller value, and the coefficient corresponding to the high frequency component is larger It is often quantized. In this case, it is general to perform weighted quantization by frequency components using a quantization matrix as shown in FIG. 5 (a). The
一方、HEVCにおいて、特に前述の変換スキップ技術を用いた場合には直交変換が行われないため、量子化対象の係数は全て同一の周波数成分を有している。このため、変換スキップ技術を用いた場合は前述の重み付け量子化を行うことは好ましくなく、図5(b)に示されるような全ての係数が同一の値をもつフラットな量子化マトリクス501を用いて量子化処理を行う必要がある。そのため、フラットな量子化マトリクス501の情報をより少ない符号量で符号化できることが望ましいが、特に上述のHEVCにおいては、効率良く符号化できる仕組みが存在せず、結果として不必要に符号量が多くなってしまっていた。
On the other hand, in the case of HEVC, orthogonal transform is not performed particularly when the above-described transform skip technique is used, and therefore all coefficients to be quantized have the same frequency component. For this reason, it is not preferable to perform the above-mentioned weighted quantization when using the conversion skip technique, and use a
したがって、本発明は上述した課題を解決するためになされたものであり、フラットな量子化マトリクスをより少ない符号量で効率よく符号化する方法を導入することにより、高効率の量子化マトリクス符号化・復号を実現することを目的としている。 Therefore, the present invention has been made to solve the above-mentioned problems, and by introducing a method for efficiently encoding a flat quantization matrix with a smaller code amount, highly efficient quantization matrix coding -The purpose is to realize decryption.
上述の問題点を解決するため、本発明の画像復号装置は以下の構成を有する。すなわち、ビットストリームから、量子化係数、および、前記量子化係数が直交変換された係数であるか否かを示す変換スキップ判定情報を取得する取得手段と、前記ビットストリームから、全ての係数が同一の値である量子化マトリクスを示す参照情報を取得する場合、前記取得された参照情報に従って得られる量子化マトリクスに基づいて前記量子化係数を逆量子化する逆量子化手段と、
前記取得手段によって取得された変換スキップ判定情報が、前記量子化係数が直交変換されていない係数であることを示す場合、前記逆量子化手段によって逆量子化された係数のビット深度を調整する調整手段と、前記調整手段によって得られたデータから画像を復号する復号手段と、
を有し、前記逆量子化手段は、前記取得手段によって取得された変換スキップ判定情報が、前記量子化係数が直交変換されている係数を示す場合においても、前記量子化係数が直交変換されていない係数であることを示す場合においても、前記参照情報を取得する場合には前記参照情報に従って得られる量子化マトリクスに基づいて前記量子化係数を逆量子化することを特徴とする。
In order to solve the above-mentioned problems, the image decoding apparatus of the present invention has the following configuration. That is, acquisition means for acquiring quantization coefficients and conversion skip determination information indicating whether or not the quantization coefficients are orthogonally transformed coefficients from a bit stream, and all coefficients are identical from the bit stream Inverse quantization means for inversely quantizing the quantization coefficient based on the quantization matrix obtained according to the acquired reference information when acquiring reference information indicating a quantization matrix having a value of
An adjustment to adjust a bit depth of the coefficient inversely quantized by the inverse quantization unit, when the conversion skip determination information acquired by the acquisition unit indicates that the quantization coefficient is a coefficient that has not been orthogonally transformed Means, and decoding means for decoding an image from the data obtained by the adjusting means;
And the inverse quantization means may orthogonally transform the quantization coefficient even when the conversion skip determination information acquired by the acquisition means indicates a coefficient to which the quantization coefficient is orthogonally transformed. Even when it is indicated that there is no coefficient, when acquiring the reference information, the quantization coefficient is inversely quantized based on a quantization matrix obtained according to the reference information.
さらに、本発明の画像復号方法は以下の構成を有する。すなわち、ビットストリームから、量子化係数、および、前記量子化係数が直交変換された係数であるか否かを示す変換スキップ判定情報を取得する取得ステップと、前記ビットストリームから、全ての係数が同一の値である量子化マトリクスを示す参照情報を取得する場合、前記取得された参照情報に従って得られる量子化マトリクスに基づいて前記量子化係数を逆量子化する逆量子化ステップと、前記取得ステップにおいて取得された変換スキップ判定情報が、前記量子化係数が直交変換されていない係数であることを示す場合、前記逆量子化ステップにおいて逆量子化された係数のビット深度を調整する調整ステップと、前記調整ステップにおいて得られたデータから画像を復号する復号ステップと、を有し、前記逆量子化ステップにおいて、前記取得ステップにおいて取得された変換スキップ判定情報が、前記量子化係数が直交変換されている係数を示す場合においても、前記量子化係数が直交変換されていない係数であることを示す場合においても、前記参照情報を取得する場合には前記参照情報に従って得られる量子化マトリクスに基づいて前記量子化係数を逆量子化することを特徴とする。 Furthermore, the image decoding method of the present invention has the following configuration. That is, an acquisition step of acquiring quantization coefficients and conversion skip determination information indicating whether or not the quantization coefficients are orthogonally transformed coefficients from the bit stream, and all coefficients are identical from the bit stream In the case of acquiring reference information indicating a quantization matrix having a value of 1, the inverse quantization step of inversely quantizing the quantization coefficient based on the quantization matrix obtained according to the acquired reference information, and the acquisition step Adjusting the bit depth of the coefficient inversely quantized in the inverse quantization step, if the obtained conversion skip determination information indicates that the quantization coefficient is a coefficient that has not been orthogonally transformed; Decoding the image from the data obtained in the adjusting step; There are, converted skip decision information obtained in said obtaining step, in the case shown the coefficients the quantized coefficients are orthogonally transformed even, in the case shown in that the quantization coefficient is a coefficient that has not been orthogonally converted Also, when acquiring the reference information, the quantization coefficient is inversely quantized based on a quantization matrix obtained according to the reference information.
本発明により、量子化マトリクス符号化のための符号量を削減し、高効率の符号化・復号が可能になる。 According to the present invention, the amount of code for quantization matrix coding can be reduced, and highly efficient coding / decoding becomes possible.
以下、添付の図面を参照して、本願発明をその好適な実施形態に基づいて詳細に説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。 Hereinafter, the present invention will be described in detail based on its preferred embodiments with reference to the attached drawings. In addition, the structure shown in the following embodiment is only an example, and this invention is not limited to the illustrated structure.
<実施形態1>
以下、本発明の実施形態を、図面を用いて説明する。図1は本実施形態の画像符号化装置を示すブロック図である。
First Embodiment
Hereinafter, embodiments of the present invention will be described using the drawings. FIG. 1 is a block diagram showing an image coding apparatus according to the present embodiment.
図1において、101は画像データ(以下、画像)を入力する端子である。102は入力された画像を複数のブロックに分割するブロック分割部である。103はブロック分割部102で分割された各ブロックを、ブロック単位で予測を行い、予測方法を決定し、それに従って差分値算出を行い、予測誤差を算出する予測部である。予測部103ではイントラ予測若しくは動き補償予測も行うものとする。イントラ予測は一般的には、周囲の画素データから予測値を算出するために、複数の参照方法の中から最適なものを予測方法として選択することで実現する。
In FIG. 1,
104は各ブロックの予測誤差に対して直交変換を行う変換部であり、入力されたブロックのサイズまたはそれを細分化したサイズを単位に直交変換を行い、直交変換係数を算出する。以下では直交変換を行うブロックを変換ブロックと呼称する。直交変換に関しては特に限定しないが、離散コサイン変換やアダマール変換等を用いてもよい。また、本実施形態では説明のため、8×8画素のブロック単位の予測誤差を縦横2分割し、4×4画素の変換ブロック単位で直交変換を行うものとするが、変換ブロックの大きさ、形状はこれに限定されない。ブロックと同一の大きさの変換ブロックを用いて直交変換を行っても良いし、ブロックを縦横2分割よりもさらに細かい単位で分割した変換ブロックを用いて直交変換を行っても良い。
A
107は量子化マトリクスを生成し、格納する量子化マトリクス保持部である。格納される量子化マトリクスの生成方法については特に限定しないが、ユーザが量子化マトリクスを入力しても良いし、入力画像の特性から算出しても、初期値として予め指定されたものを使用してももちろん良い。本実施形態では、図5(a)や(b)に示されるような4×4画素の変換ブロックに対応した二次元の量子化マトリクスが生成され、格納されるものとする。
A quantization
105は量子化マトリクス保持部107に格納された量子化マトリクスによって、前記直交変換係数を量子化する量子化部である。この量子化によって量子化係数を得ることができる。106はこのようにして得られた量子化係数を符号化して量子化係数符号データを生成する係数符号化部である。符号化の方法は特に限定しないが、ハフマン符号や算術符号などを用いることができる。108は量子化マトリクス保持部107に格納された量子化マトリクスが、所定の量子化マトリクスと一致するか否かを判定する量子化マトリクス判定部である。より具体的には符号化対象の量子化マトリクスが、既に符号化済みの量子化マトリクス、予め定められた量子化マトリクスもしくは係数が全て同一の値を持つフラットな量子化マトリクスであるか否かを判定する。この予め定められた量子化マトリクスは量子化マトリクス保持部107に格納されているとする。但しこれに限定されない。例えば、量子化マトリクス判定部108に格納されていても構わない。
A
109は量子化マトリクス判定部108における判定を示す情報やその他の量子化マトリクスに関する情報をヘッダとして符号化して量子化マトリクスヘッダ符号を生成する量子化マトリクスヘッダ符号化部である。110は符号化対象の量子化マトリクスの各係数を符号化して量子化マトリクス係数符号を生成する量子化マトリクス係数符号化部である。
A quantization matrix
111はヘッダ情報や予測、変換に関する符号を生成するとともに、前述の各符号化部で生成された符号データを統合してビットストリームを形成して出力する統合符号化部である。具体的には、係数符号化部106で生成された量子化係数符号データや量子化マトリクスヘッダ符号化部109で生成された量子化マトリクスヘッダ符号、量子化マトリクス係数符号化部110で生成された量子化マトリクス係数符号を統合する。ここで予測、変換に関する符号とは、例えば選択した予測方法や変換ブロックの分割の様子等の符号である。112は統合符号化部111で生成されたビットストリームを外部に出力する端子である。
An
上記画像符号化装置における画像の符号化動作を以下に説明する。本実施形態では動画像データをピクチャ単位に入力する構成となっているが、1ピクチャ分の静止画像データを入力する構成としても構わない。また、本実施形態では、説明を容易にするため、イントラ予測符号化の処理のみを説明するが、これに限定されずインター予測符号化の処理においても適用可能である。本実施形態では説明のため、ブロック分割部102においては8×8画素のブロックに分割するものとして説明するが、これに限定されない。
The image encoding operation of the image encoding apparatus will be described below. Although moving image data is input in units of pictures in the present embodiment, still image data of one picture may be input. Further, in the present embodiment, only the process of intra prediction encoding is described for ease of explanation, but the present invention is not limited to this and is also applicable to the process of inter prediction encoding. Although the
<量子化マトリクス係数の符号化>
最初に、量子化マトリクス保持部107は量子化マトリクスを生成する。符号化処理に用いられる直交変換のサイズである変換ブロックサイズに応じて、量子化マトリクスが決定される。量子化マトリクスの係数の決定方法は特に限定しない。例えば、所定の初期値を用いても良いし、個別に設定しても良い。また、画像の特性に応じて設定して生成されても構わない。
<Coding of quantization matrix coefficient>
First, the quantization
量子化マトリクス保持部107には、このようにして生成された量子化マトリクスが保持されている。図5(a)、(b)は4×4画素の変換ブロックに対応する量子化マトリクスの一例である。説明を簡易にするため、4×4画素の変換ブロックに対応した16画素分の構成とし、太枠内の各正方形は係数を表しているものとする。本実施形態では、図5(a)、(b)に示された量子化マトリクスが二次元形状で保持されているものとするが、量子化マトリクス内の係数はもちろんこれに限定されない。例えば、本実施形態に加えて8×8画素の変換ブロックサイズも用いる場合には、8×8画素変換ブロックに対応する他の量子化マトリクスを保持することになる。
The quantization
量子化マトリクス判定部108は符号化対象の量子化マトリクスを量子化マトリクス保持部107から順に読み出す。そして所定の量子化マトリクスと一致するか否かを判定し、符号化対象の量子化マトリクスが所定の量子化マトリクスと一致することを示す一致情報を生成する。本実施形態では、符号化済みの量子化マトリクス、図5(a)に示されたデフォルトの量子化マトリクスもしくは図5(b)に示されたフラットな量子化マトリクスのいずれかと一致するか否かを判定する。符号化済みの量子化マトリクスは量子化マトリクス保持部107に格納されており、図5(a)および図5(b)に示された量子化マトリクスも量子化マトリクス保持部107に予め記憶されているものとする。符号化対象の量子化マトリクスがいずれかと一致すると判定された場合は、さらにどの量子化マトリクスと一致するかを示す参照情報を生成する。この参照情報は一致情報とともに量子化マトリクスヘッダ符号化部109に出力する。この場合、量子化マトリクス係数符号化部110には何も出力せず、動作しない。一方、いずれの量子化マトリクスとも一致しない場合は、一致情報のみを量子化マトリクスヘッダ符号化部109に出力しつつ、符号化対象の量子化マトリクスを量子化マトリクス係数符号化部110に出力する。本実施形態では、所定の量子化マトリクスの中に符号化対象の量子化マトリクスと一致するものがある場合には一致情報は1となり、そうでない場合は0となるものとするが、値と状態との組合せはこれに限定されない。
The quantization
図11は本実施形態における符号化対象の量子化マトリクスと参照情報との関係の一例を示す図である。本実施形態では、YCbCr色空間で入力された画像のY成分の量子化に対応する第一、Cb成分の量子化に対応する第二、Cr成分の量子化に対応する第三の3種類の量子化マトリクスが存在するものとするが、これに限定されない。変換ブロックサイズや予測方法、色空間の組み合わせによってより多くの量子化マトリクスを定義しても構わない。また、本実施形態では図5(a)に示された量子化マトリクスをデフォルト4×4、図5(b)に示された量子化マトリクスをフラット4×4の量子化マトリクスであるものとするが、使用される量子化マトリクスはこれらに限定されない。 FIG. 11 is a view showing an example of the relationship between a quantization matrix to be encoded and reference information in the present embodiment. In this embodiment, the first three corresponding to the quantization of the Y component of the image input in the YCbCr color space, the second corresponding to the quantization of the Cb component, and the third three types corresponding to the quantization of the Cr component It is assumed that a quantization matrix is present, but is not limited thereto. More quantization matrices may be defined according to the combination of conversion block size, prediction method, and color space. Further, in this embodiment, the quantization matrix shown in FIG. 5A is assumed to be the default 4 × 4 and the quantization matrix shown in FIG. 5B is assumed to be the flat 4 × 4 quantization matrix. However, the quantization matrix used is not limited to these.
例えば、符号化対象量子化マトリクスが第一(4x4Y)であり、デフォルト4×4と一致する場合、参照情報は0とする。また、フラット4×4と一致する場合、参照情報は1とする。このようなフラット4×4と一致することが、符号化対象の量子化マトリクスの係数が全て同一の値であることを示すフラット情報となる。同様に、符号化対象量子化マトリクスが第二(4x4Cb)の場合、デフォルト4×4と一致すれば参照情報は0とし、符号化済みの第一(4x4Y)と一致すれば参照情報は1となる。また、フラット4×4と一致すれば参照情報は2とする。符号化対象量子化マトリクスが第三(4x4Cr)の場合も同様である。 For example, when the encoding target quantization matrix is the first (4 × 4Y) and matches the default 4 × 4, the reference information is set to 0. Further, when the flat 4 × 4 matches, the reference information is set to 1. Matching with such flat 4 × 4 is flat information indicating that all coefficients of the quantization matrix to be encoded have the same value. Similarly, in the case where the encoding target quantization matrix is the second (4x4Cb), the reference information is 0 if the default 4x4 matches, and the reference information is 1 if the first encoding (4x4Y) matches. Become. If the flat 4 × 4 matches, the reference information is 2. The same applies to the case where the encoding target quantization matrix is the third (4 × 4 Cr).
量子化マトリクスヘッダ符号化部109では、量子化マトリクス判定部108から入力された一致情報および必要に応じて参照情報を符号化して量子化マトリクスヘッダ符号を生成する。本実施形態では、符号化対象の量子化マトリクスが符号化装置に予め記憶されている量子化マトリクスもしくは符号化済みの量子化マトリクスのいずれかと一致する場合には、一致情報および参照情報の両方を符号化する。一方、上記のいずれの量子化マトリクスとも一致しない場合には、一致情報のみを符号化する。符号化の方法は特に限定しないが、ハフマン符号や算術符号などを用いることができる。生成された量子化マトリクスヘッダ符号は統合符号化部111に出力される。
The quantization matrix
量子化マトリクス係数符号化部110では、量子化マトリクス判定部108から入力された符号化対象の量子化マトリクスを符号化して量子化マトリクス係数符号を生成する。本実施形態では、符号化対象の量子化マトリクスが符号化装置に予め記憶されている量子化マトリクスや符号化済みの量子化マトリクスとは一致しない場合に限り、量子化マトリクス係数符号化部110は動作する。符号化方式としては、本実施形態では、各係数をそのまま符号化する、直前の係数との差分を符号化する、DPCM、他の量子化マトリクスとの差分を符号化するといった方式を用いることとするが、方式はこれらに限定されない。また、符号化装置に予め記憶されていないフラットな量子化マトリクスを符号化する場合には代表値のみを符号化するような方式をとってもよい。また、これらと合わせて同じ値が続くときは符号化を打ち切る符号を挿入することにより量子化マトリクスの符号量を抑制することもできる。
The quantization matrix
統合符号化部111では画像の符号化に必要なヘッダ情報を符号化し、入力された量子化マトリクスヘッダ符号および量子化マトリクス係数符号を統合する。
The
なお、量子化マトリクス判定部108と量子化マトリクスヘッダ符号化部109と量子化マトリクス係数符号化部110は、1つの処理部である量子化マトリクス符号化部として機能してもよい。
The quantization
<画像の符号化>
端子101から入力された1ピクチャ分の画像はブロック分割部102に入力され、8×8画素のブロック単位に分割される。分割された画像は予測部103に入力される。予測部103ではブロック単位の予測が行われ、予測誤差が生成される。変換部104では、予測部103で生成された予測誤差を変換ブロックサイズに分割して直交変換を行い、直交変換係数を生成する。そして、直交変換係数を量子化部105に入力する。本実施形態では、8×8画素のブロック単位の予測誤差を4×4画素の変換ブロック単位に分割して直交変換を行うものとする。量子化部105では、変換部104から出力された直交変換係数を量子化マトリクス保持部107に格納されている量子化マトリクスを用いて量子化して量子化係数を生成する。生成された量子化係数は係数符号化部106に入力される。係数符号化部106では、量子化部105で生成された量子化係数を符号化し、量子化係数符号データを生成して統合符号化部111に出力する。統合符号化部111はブロック単位で予測、変換に関する符号を生成し、前記ヘッダの符号化データとともに、ブロック単位の符号、係数符号化部106で生成された量子化係数符号データを統合し、ビットストリームを生成して端子112から出力する。
<Coding of image>
The image for one picture input from the terminal 101 is input to the
図10に実施形態1で出力されるビットストリームの例を示す。シーケンスヘッダに量子化マトリクスの符号データが含まれ、ヘッダ符号や各係数の符号化結果で構成されている。図10(a)は第1から第3までの量子化マトリクスの全てが異なりかつフラットな量子化マトリクスともデフォルトの量子化マトリクスとも異なる場合のビットストリームの例である。すなわち、第1から第3までの各量子化マトリクスヘッダ符号には、一致情報の0が符号化されており、各量子化マトリクス係数符号には各量子化マトリクスの係数が符号化されている。但し、符号化の位置はこれに限定されない。ピクチャヘッダ部やその他のヘッダ部に符号化される構成をとってももちろん構わない。 FIG. 10 shows an example of the bit stream output in the first embodiment. The sequence header includes the code data of the quantization matrix, and is composed of the header code and the encoding result of each coefficient. FIG. 10 (a) is an example of a bit stream in which all of the first to third quantization matrices are different and are different from the flat quantization matrix and the default quantization matrix. That is, 0 of coincidence information is encoded in each of the first to third quantization matrix header codes, and the coefficient of each quantization matrix is encoded in each quantization matrix coefficient code. However, the position of encoding is not limited to this. Of course, the configuration may be such that the picture header portion and other header portions are encoded.
図10(b)は第1から第3までの量子化マトリクスの全てがフラットな量子化マトリクスであった場合のビットストリームの例である。この場合、第1の量子化マトリクスヘッダ符号には、一致情報の1とフラットな量子化マトリクスを示す参照情報の1が符号化されている。また、第2の量子化マトリクスヘッダ符号には、一致情報の1とフラットな量子化マトリクスを示す参照情報の2が符号化されている。この場合においては、参照情報が1であっても、参照対象の第1の量子化マトリクスもフラットな量子化マトリクスであるため、ビットストリームの復号結果は同一となる。同様に、第3の量子化マトリクスヘッダ符号には、一致情報の1とフラットな量子化マトリクスを示す参照情報の2が符号化されている。この場合も、参照情報が1もしくは2であっても、参照対象の第1または第2の量子化マトリクスもフラットな量子化マトリクスであるため、ビットストリームの復号結果は同一となる。 FIG. 10 (b) is an example of a bit stream when all of the first to third quantization matrices are flat quantization matrices. In this case, 1 of coincidence information and 1 of reference information indicating a flat quantization matrix are encoded in the first quantization matrix header code. In the second quantization matrix header code, 1 of matching information and 2 of reference information indicating a flat quantization matrix are encoded. In this case, even if the reference information is 1, since the first quantization matrix to be referenced is also a flat quantization matrix, the decoding results of the bit stream are the same. Similarly, in the third quantization matrix header code, 1 of coincidence information and 2 of reference information indicating a flat quantization matrix are encoded. Also in this case, even if the reference information is 1 or 2, since the first or second quantization matrix to be referred to is also a flat quantization matrix, the decoding results of the bit stream are the same.
図10(c)は第1の量子化マトリクスはフラットな量子化マトリクスともデフォルトの量子化マトリクスとも異なるが、第2、第3の量子化マトリクスは第1の量子化マトリクスと同一である場合のビットストリームの例である。この場合、第1の量子化マトリクスヘッダ符号には、一致情報の0が符号化されており、第1量子化マトリクス係数符号には第1量子化マトリクスの係数が符号化されている。また、第2の量子化マトリクスヘッダ符号には、一致情報の1と第1の量子化マトリクスへの参照を示す参照情報の1が符号化されている。同様に第3の量子化マトリクスヘッダ符号には、一致情報の1と第2の量子化マトリクスへの参照を示す参照情報の1が符号化されている。 In FIG. 10C, the first quantization matrix is different from the flat quantization matrix and the default quantization matrix, but the second and third quantization matrices are identical to the first quantization matrix. It is an example of a bitstream. In this case, 0 of the match information is encoded in the first quantization matrix header code, and the coefficients of the first quantization matrix are encoded in the first quantization matrix coefficient code. In the second quantization matrix header code, 1 of the matching information and 1 of reference information indicating a reference to the first quantization matrix are encoded. Similarly, in the third quantization matrix header code, 1 of the matching information and 1 of reference information indicating a reference to the second quantization matrix are encoded.
図6は実施形態1に係る画像符号化装置における画像符号化処理を示すフローチャートである。まず、ステップS601にて、量子化マトリクス保持部107は量子化マトリクスを生成する。ステップS602にて、量子化マトリクス判定部108は符号化対象の量子化マトリクスが所定の量子化マトリクスが一致するか否かを判定し、一致情報を生成する。本実施形態では、符号化済みの量子化マトリクス、予め符号化装置に記憶されている図5(a)に示されたデフォルトの量子化マトリクスもしくは図5(b)に示されたフラットな量子化マトリクスのいずれかと一致するか否かを判定する。符号化対象の量子化マトリクスが上記のいずれかの量子化マトリクスと一致すると判定された場合は、さらにどの量子化マトリクスと一致するかを示す参照情報を生成する。
FIG. 6 is a flowchart showing an image coding process in the image coding apparatus according to the first embodiment. First, in step S601, the quantization
ステップS603にて、量子化マトリクスヘッダ符号化部109は、ステップS602で生成された一致情報および参照情報を符号化して量子化マトリクスヘッダ符号を生成する。ステップS604にて画像符号化装置は前述の一致情報に基づいて、符号化対象の量子化マトリクスの係数を符号化するか否かを判定する。対象の量子化マトリクスの係数を符号化する場合にはステップS605に進み、そうでない場合はステップS606に進む。
In step S603, the quantization matrix
ステップS605にて、量子化マトリクス係数符号化部110はステップS601で生成された量子化マトリクスを符号化し、量子化マトリクス係数符号を生成する。ステップS606にて、画像符号化装置は量子化マトリクスを全て符号化したか否かの判定を行い、終了していればステップS607に進み、そうでなければ次の量子化マトリクスを対象としてステップS601に戻る。ステップS607にて、統合符号化部111はビットストリームのヘッダ部の符号化を行い、出力する。本実施形態では、図10に示される例のシーケンスヘッダおよびピクチャヘッダの符号化を行い、出力するものとする。
In step S605, the quantization matrix
ステップS608にて、ブロック分割部102は、ピクチャ単位の入力画像をブロック単位に分割する。ステップS609にて、予測部103はブロック単位の予測を行い、予測誤差を生成する。ステップS610にて、変換部104はステップS609で生成された予測誤差に対して変換ブロックサイズに分割して直交変換を行い、直交変換係数を生成する。ステップS611にて、量子化部105はステップS610で生成された直交変換係数を、ステップS601で生成されて量子化マトリクス保持部107に格納された量子化マトリクスを用いて量子化して量子化係数を生成する。ステップS612にて、係数符号化部106はステップS611で生成された量子化係数を符号化し、量子化係数符号データを生成する。ステップS613にて、画像符号化装置は、当該ブロック内の全ての変換ブロックの符号化が終了したか否かの判定を行い、終了していればステップS614に進み、終了していなければ次の変換ブロックを対象としてステップS610に戻る。ステップS614にて、画像符号化装置は、全てのブロックの符号化が終了したか否かの判定を行い、終了していれば全ての動作を停止して処理を終了し、そうでなければ次のブロックを対象としてステップS608に戻る。
In step S608, the
以上の構成と動作により、特にステップS602からステップS604によって、フラットな量子化マトリクスを符号化する際に、他の量子化マトリクスと一致する場合、冗長な符号を送る必要が無いため、符号量を削減したビットストリームを構成することができる。これにより、フラットな量子化マトリクスの係数を一つずつ符号化するよりも少ない符号量でビットストリームを生成することができる。 With the above configuration and operation, especially when encoding a flat quantization matrix in steps S602 to S604, if it matches with another quantization matrix, there is no need to send a redundant code, so the code amount A reduced bitstream can be constructed. This makes it possible to generate a bitstream with a smaller amount of code than encoding the coefficients of the flat quantization matrix one by one.
なお、本実施形態においては、イントラ予測のみを用いるピクチャを例にとって説明したが、インター予測を使用できるピクチャにおいても対応できることは明らかである。さらに、本実施形態では説明のためにブロックを8×8画素、変換ブロックを4×4画素としたが、これに限定されない。例えば16×16画素や32×32画素などのブロックサイズへの変更が可能であり、また、ブロックの形状も正方形に限定されず、16×8画素などの長方形でも良い。また、変換ブロックサイズはブロックサイズの縦横それぞれ半分としたが、同じ大きさでも構わないし、縦横それぞれ半分よりもさらに細かいサイズでももちろん構わない。 In the present embodiment, a picture using only intra prediction has been described as an example, but it is apparent that it is possible to cope with a picture that can use inter prediction. Furthermore, in the present embodiment, the block is 8 × 8 pixels and the conversion block is 4 × 4 pixels for the purpose of explanation, but the present invention is not limited to this. For example, the block size can be changed to 16 × 16 pixels or 32 × 32 pixels, and the shape of the block is not limited to a square, and may be a rectangle such as 16 × 8 pixels. Although the conversion block size is set to half of the block size in the vertical and horizontal directions, the same size may be used, and the size may be smaller than the half in both the vertical and horizontal directions.
<実施形態2>
図2は、本発明の実施形態2に係る画像復号装置の構成を示すブロック図である。本実施形態では、実施形態1で生成されたビットストリームの復号について説明する。
Second Embodiment
FIG. 2 is a block diagram showing a configuration of an image decoding apparatus according to
図2において、201は符号化されたビットストリームを入力する端子である。202は入力されたビットストリームのヘッダ情報を復号し、ビットストリームから必要な符号を分離して後段へ出力する復号・分離部である。復号・分離部202は図1の統合符号化部111と逆の動作を行う。
In FIG. 2,
203はビットストリームのヘッダ情報から分離された量子化マトリクスヘッダ符号を復号し、一致情報および参照情報を復元する量子化マトリクスヘッダ復号部である。204はビットストリームから分離された量子化マトリクス係数符号を復号し、量子化マトリクスの各係数を復元する量子化マトリクス係数復号部である。205は得られた一致情報および参照情報あるいは量子化マトリクスの各係数から復号対象の量子化マトリクスを再構成する量子化マトリクス再構成部である。206は量子化マトリクス再構成部205で得られた量子化マトリクスを格納しておく量子化マトリクス保持部である。実施形態1の量子化マトリクス判定部108が格納している所定の量子化マトリクスはこれに保持されているものとする。但し、これに限定されない。量子化マトリクス再構成部205に格納されていても構わない。また、量子化マトリクスヘッダ復号部203と量子化マトリクス係数復号部204と量子化マトリクス再構成部205はひとつの処理部である量子化マトリクス復号部として機能してもよい。
A quantization matrix
一方、207は復号・分離部202で分離された量子化係数符号データから量子化係数符号を復号し、量子化係数を復元する係数復号部である。208は量子化マトリクス保持部206に格納された量子化マトリクスを用いて量子化係数に逆量子化を行い、直交変換係数を得る逆量子化部である。209は図1の変換部104の逆となる逆直交変換を行い、予測誤差を得る逆変換部である。210は予測誤差と復号済みの画像からブロックの画像を復元する予測再構成部である。
On the other hand,
上記画像復号装置における画像の復号動作を以下に説明する。本実施形態では実施形態1で生成された動画像ビットストリームをピクチャ単位で入力する構成となっているが、1ピクチャ分の静止画像ビットストリームを入力する構成としても構わない。また、本実施形態では説明を容易にするため、イントラ予測復号処理のみを説明するが、これに限定されずインター予測復号処理においても適用可能である。 The image decoding operation in the image decoding apparatus will be described below. In this embodiment, the moving image bitstream generated in the first embodiment is input in units of pictures. However, a still image bitstream of one picture may be input. Further, in the present embodiment, only the intra prediction decoding process is described in order to facilitate the description, but the present invention is not limited to this and is applicable to the inter prediction decoding process.
図2において、端子201から入力された1ピクチャ分のビットストリームは復号・分離部202に入力され、画像を再生するのに必要なヘッダ情報が復号され、さらに後段で使用される符号が分離されて出力される。ヘッダ情報に含まれる量子化マトリクスヘッダ符号は量子化マトリクスヘッダ復号部203に出力される。本実施形態では、図10に示されるビットストリームの例のシーケンスヘッダおよびピクチャヘッダが入力・復号され、符号が出力されるものとする。
In FIG. 2, a bit stream for one picture input from a terminal 201 is input to a decoding /
量子化マトリクスヘッダ復号部203では、まず、入力された量子化マトリクスヘッダ符号を復号し、一致情報を復元する。一致情報が復号対象の量子化マトリクスと一致するマトリクスが存在していることを意味する1であった場合には、さらに量子化マトリクスヘッダ符号から参照情報を再生する。復元された参照情報は量子化マトリクス再構成部205に出力される。一方、一致情報が一致するマトリクスが存在しないことを意味する0であった場合には、復号対象の量子化マトリクスの係数を復号する必要性があることを示す情報を復号・分離部202に出力する。本実施形態では一致情報が上述の情報であるものとするが、同様の意味を持つ情報であればその形態は特に限定されない。
The quantization matrix
復号・分離部202では、量子化マトリクスヘッダ復号部203から復号対象の量子化マトリクスの係数を復号する必要性があることを示す情報が入力された場合、量子化マトリクス係数復号部204に量子化マトリクス係数符号データを出力する。量子化マトリクス係数復号部204では、入力された量子化マトリクス係数符号データが復号され、復号対象の量子化マトリクスの各係数が復元される。再生された量子化マトリクスの各係数は量子化マトリクス再構成部205に出力される。
When the decoding /
量子化マトリクス再構成部205では、量子化マトリクスヘッダ復号部203から入力された参照情報もしくは量子化マトリクス係数復号部204から入力された量子化マトリクスの各係数から復号対象の量子化マトリクスを再構成する。量子化マトリクス係数復号部204から量子化マトリクスの各係数が入力された場合には、入力された各係数を用いて量子化マトリクスを再構成し、量子化マトリクス保持部206に出力する。一方、量子化マトリクスヘッダ復号部203から参照情報が入力された場合には、参照情報に基づいて、参照先の量子化マトリクスを量子化マトリクス保持部206から読み出し、復号対象の量子化マトリクスを再構成する。そして再構成された量子化マトリクスは量子化マトリクス保持部206に出力される。量子化マトリクス保持部206では、入力された量子化マトリクスを格納し、必要に応じて量子化マトリクス再構成部205および逆量子化部208に出力される。
The quantization
復号・分離部202で分離された符号のうち、量子化係数符号データは係数復号部207に入力される。そして、係数復号部207は変換ブロックごとに量子化係数符号データを復号し、量子化係数を復元し、逆量子化部208に出力する。逆量子化部208は、係数復号部207で復元された量子化係数および量子化マトリクス保持部206に格納されている量子化マトリクスを入力する。そして、前記量子化マトリクスを用いて逆量子化を行い、直交変換係数を復元し、逆変換部209に出力する。逆変換部209は、直交変換係数を入力し、図1の変換部104の逆となる逆直交変換を行い、予測誤差を復元し、予測再構成部210に出力する。予測再構成部210は、入力された予測誤差に復号済みの周囲の画素データから予測を行ってブロック単位の画像を復元し、端子211から出力する。
Among the codes separated by the decoding /
図7は、実施形態2に係る画像復号装置における画像復号処理を示すフローチャートである。 FIG. 7 is a flowchart showing an image decoding process in the image decoding apparatus according to the second embodiment.
まず、ステップS701にて、復号・分離部202がヘッダ情報を復号し、符号を後段に出力するために分離する。本実施形態では、図10に示されるビットストリームの例のシーケンスヘッダおよびピクチャヘッダが入力・復号され、続く符号が該当するブロックに出力されるものとする。ステップS702にて、量子化マトリクスヘッダ復号部203は、まず、分離された量子化マトリクスヘッダ符号を復号し、一致情報を復元する。一致情報が復号対象の量子化マトリクスと一致するマトリクスが存在していることを意味する1であった場合には、さらに量子化マトリクスヘッダ符号から参照情報を再生する。逆に復号対象の量子化マトリクスと一致するマトリクスが存在しないことを意味する0であった場合には、本ステップではこれ以上の動作は行わない。
First, in step S701, the decoding /
ステップS703にて、画像復号装置はステップS702で生成された一致情報に基づいて、復号対象の量子化マトリクスの係数を復号するか否かを判定する。対象の量子化マトリクスの係数を復号する場合にはステップS704に進み、そうでない場合はステップS705に進む。ステップS704にて、量子化マトリクス係数復号部204は量子化マトリクス係数符号データを復号し、復号対象の量子化マトリクスの各係数を再生する。ステップS705にて、量子化マトリクス再構成部205はステップS702で復元された参照情報もしくはステップS704で復元された量子化マトリクスの各係数から復号対象の量子化マトリクスを再構成する。
In step S703, the image decoding apparatus determines whether to decode the coefficients of the quantization matrix to be decoded based on the matching information generated in step S702. If the coefficient of the target quantization matrix is to be decoded, the process proceeds to step S704, and if not, the process proceeds to step S705. In step S704, the quantization matrix
ステップS706にて、画像復号装置は全ての量子化マトリクスが復号されたか否かの判定を行い、完了していればステップS707へと進み、そうでなければ次の量子化マトリクスを対象として、ステップS702に戻る。ステップS707にて、係数復号部207は変換ブロック単位でビットストリームから分離された量子化係数符号データを復号し、量子化係数を復元する。ステップS708にて、逆量子化部208はステップS705で再生された量子化マトリクスを用いてステップS707にて再生された量子化係数を逆量子化し、直交変換係数を復元する。ステップS709にて、逆変換部209はステップS708で復元された直交変換係数に対し、逆直交変換を行い、予測誤差を復元する。
In step S706, the image decoding apparatus determines whether or not all quantization matrices have been decoded, and if completed, the process proceeds to step S707, otherwise the next quantization matrix is used as a target. It returns to S702. In
ステップS710にて、画像復号装置は、当該ブロック内の全ての変換ブロックの復号が終了したか否かの判定を行い、終了していればステップS711に進み、終了していなければ次の変換ブロックを対象としてステップS707に戻る。ステップS711にて、予測再構成部210は復号済みの周囲の画素データから予測を行い、ステップS709で復元された予測誤差に加算して、ブロックの復号画像を生成する。ステップS712にて、画像復号装置は、全てのブロックの復号が終了したか否かの判定を行い、終了していれば全ての動作を停止して処理を終了し、そうでなければ次のブロックを対象として、ステップS707に戻る。
In step S710, the image decoding apparatus determines whether decoding of all conversion blocks in the block is completed, and if completed, the process proceeds to step S711, and if not completed, the next conversion block The process returns to step
以上の構成と動作により、実施形態1で生成された一致情報などの少ない符号量で表された符号を含むビットストリームの復号を行い、再生画像を得ることができる。 With the above-described configuration and operation, it is possible to decode a bitstream including a code represented by a small code amount such as the match information generated in the first embodiment, and obtain a reproduced image.
なお、実施形態1と同様にブロックのサイズ、変換ブロックのサイズ、ブロックの形状についてはこれに限定されない。また、1つのシーケンスのビットストリーム中で量子化マトリクス符号データを複数回含めることで、量子化マトリクスの更新をすることも可能である。復号・分離部202で量子化マトリクスヘッダ符号を検出し、量子化マトリクスヘッダ復号部203で一致情報および必要に応じて参照情報を再生する。さらに一致情報に応じて、量子化マトリクス係数復号部204では復号対象の量子化マトリクスの係数を復元する。次に、量子化マトリクス再構成部205では参照情報あるいは量子化マトリクスの各係数から復号対象の量子化マトリクスを復元する。そして、復元された量子化マトリクスのデータを量子化マトリクス保持部206の該当する量子化マトリクスに置き換える。この際、全ての量子化マトリクスを書き換えても良いし、書き換える量子化マトリクスを判別することでその一部を変更することも可能である。
As in the first embodiment, the block size, the conversion block size, and the block shape are not limited thereto. It is also possible to update the quantization matrix by including the quantization matrix code data multiple times in the bitstream of one sequence. The decoding /
また、本実施形態では1ピクチャ分の符号データを蓄積してから処理を行う方式を例にとって説明したが、これに限定されない。例えば、ブロック単位や複数のブロックで構成されるスライス単位といった入力方法でも構わない。さらにはブロック等の構成ではなく、固定長のパケット等に分割されているものでも構わない。 Further, in the present embodiment, the method of performing processing after accumulating code data for one picture has been described as an example, but the present invention is not limited to this. For example, an input method may be used such as a block unit or a slice unit configured of a plurality of blocks. Furthermore, it may be divided into fixed length packets and the like instead of blocks and the like.
<実施形態3>
図3は本実施形態の画像符号化装置を示すブロック図である。図3において、実施形態1の図1と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。
FIG. 3 is a block diagram showing an image coding apparatus according to the present embodiment. In FIG. 3, the same reference numerals are given to parts performing the same functions as in FIG. 1 of the first embodiment, and the description will be omitted.
303は図1の予測部103同様、ブロック分割部102で分割された各ブロックを、ブロック単位で予測を行い、予測方法を決定し、それに従って差分値算出を行い、予測誤差を算出する予測部である。321は予測部303で生成された予測誤差に対して、直交変換を行うか否かを判定し、後段に予測誤差を出力するとともに判定結果を変換スキップ判定情報として後段に出力する変換制御部である。304は図1の変換部104同様、各ブロックの予測誤差に対して直交変換を行う変換部であり、入力されたブロックのサイズまたはそれを細分化したブロックを単位に直交変換を行い、直交変換係数を算出する。
Similar to the
322は後段の量子化部305における量子化処理との整合性を取るために予測誤差のビット深度調整を行うビット深度調整部である。ここでのビット深度調整の度合いは入力映像のビット深度や変換部304における直交変換に伴うビット深度調整、量子化部305における量子化処理に伴うビット深度調整および量子化マトリクスの係数値などによって定まるものとする。例えば、本実施形態においては、所定値である13と入力画像のビット深度との差の分だけ予測誤差を左側にビットシフトすることによりビット深度調整を行うものとする。すなわち、入力画像のビット深度が8ビットであれば、5ビット分予測誤差を左側にビットシフトするものとする。ただし、ビット深度調整に用いられる値はこれに限定されない。
A bit
305は量子化マトリクス保持部107に格納された量子化マトリクスによって、変換部304で生成された直交変換係数もしくはビット深度調整部322でビット深度調整をされた予測誤差を量子化する量子化部である。311はヘッダ情報や予測、変換に関する符号を生成するとともに、前述の各符号化部で生成された符号データを統合してビットストリームを形成して出力する統合符号化部である。図1の統合符号化部111とは変換スキップ判定情報をさらに符号化して符号データを生成し、ビットストリームを形成して出力する点が異なる。
A
上記画像符号化装置における画像の符号化動作を以下に説明する。 The image encoding operation of the image encoding apparatus will be described below.
予測部303では、まず、ブロック単位の予測が行われ、予測誤差が生成される。生成された予測誤差は変換制御部321に出力される。変換制御部321では、入力された予測誤差に対し直交変換を行うか否かを決定する。そして、直交変換を行う場合には予測誤差を変換部304に出力し、直交変換を行わない場合には予測誤差をビット深度調整部322に出力する。直交変換を行うか否かの決定方法は特に限定しないが、画像の特徴や直交変換後の変換係数の大きさなどから決定しても良い。また、決定された判定結果を変換スキップ判定情報として統合符号化部311に出力する。変換部304では、変換制御部321から入力された予測誤差を変換ブロックサイズ単位で直交変換を行い、直交変換係数を生成する。
The
一方、ビット深度調整部322では、変換制御部321から入力された予測誤差を変換ブロック単位でビット深度調整を行い、ビット深度調整された予測誤差を生成する。量子化部305では、変換部304から出力された直交変換係数あるいはビット深度調整部322から出力されたビット深度調整された予測誤差に対し、量子化マトリクス保持部107に格納されている量子化マトリクスを用いて量子化し、量子化係数を生成する。生成された量子化係数は係数符号化部106に入力される。
On the other hand, the bit
統合符号化部311では画像の符号化に必要なヘッダ情報を符号化し、入力された量子化マトリクスヘッダ符号および量子化マトリクス係数符号を統合する。統合符号化部311では図1の統合符号化部111で符号化するヘッダ情報に加えて変換制御部321から入力された変換スキップ判定情報もさらに符号化する。
The
図8は実施形態3に係る画像符号化装置における画像符号化処理を示すフローチャートである。図8において、実施形態1の図6と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。 FIG. 8 is a flowchart showing an image encoding process in the image encoding device according to the third embodiment. In FIG. 8, the same reference numerals are given to parts performing the same functions as in FIG. 6 of the first embodiment, and the description will be omitted.
ステップS820にて、変換制御部321はステップS609で生成された予測誤差に対し直交変換を行うか否かを決定して変換スキップ判定情報を生成する。ステップS821にて、変換スキップ判定情報に基づいて、直交変換を行うのであればステップS610に進み、行わないのであればステップS822に進む。ステップS822にて、ビット深度調整部322はステップS609で生成された予測誤差を変換ブロック単位でビット深度調整を行い、ビット深度調整された予測誤差を生成する。ステップS811にて、量子化部305はステップS610で生成された直交変換係数もしくはステップS822で生成されたビット深度調整された予測誤差を、ステップS601で生成された量子化マトリクスを用いて量子化し、量子化係数を生成する。ステップS823にて、統合符号化部311はステップS821で生成された変換スキップ判定情報を符号化する。
In step S820, the
以上の構成と動作により、特にステップS820からステップS823によって、変換スキップに対応するフラットな量子化マトリクスを符号化する際に、冗長な符号を送る必要が無いため、符号量を削減したビットストリームを構成することができる。 With the above configuration and operation, there is no need to send a redundant code when encoding a flat quantization matrix corresponding to conversion skip, particularly in steps S820 to S823, so a bit stream with a reduced code amount can be used. It can be configured.
本実施形態においては、変換ブロック単位で変換スキップ判定情報が符号化される構成としたが、変換スキップ判定情報が符号化される単位はこれに限定されない。ブロック単位で符号化しても良いし、各色成分で共通した変換スキップ判定情報を用いて符号量を節約する構成をとることも可能である。符号化の方法は特に限定しないが、ハフマン符号や算術符号などを用いることができる。 In this embodiment, although the conversion skip determination information is encoded in units of conversion blocks, the unit in which the conversion skip determination information is encoded is not limited to this. Encoding may be performed in block units, or a configuration may be adopted in which the code amount is saved using conversion skip determination information common to each color component. Although the method of encoding is not particularly limited, Huffman coding, arithmetic coding, etc. can be used.
<実施形態4>
図4は本実施形態の画像復号装置を示すブロック図である。図4において、実施形態2の図2と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。本実施形態では、実施形態3で生成されたビットストリームの復号について説明する。
Fourth Embodiment
FIG. 4 is a block diagram showing an image decoding apparatus according to the present embodiment. In FIG. 4, the same reference numerals are given to parts performing the same functions as in FIG. 2 of the second embodiment, and the description will be omitted. In this embodiment, decoding of the bitstream generated in
402は入力されたビットストリームのヘッダ情報を復号し、ビットストリームから必要な符号を分離して後段へ出力する復号・分離部である。復号・分離部402は図3の統合符号化部311と逆の動作を行う。図2の復号・分離部202とは変換スキップ判定情報をさらに復号・再生して後段に出力するところが異なる。408は量子化マトリクス保持部206に格納された量子化マトリクスを用いて量子化係数に逆量子化を行い、逆量子化係数を再生する逆量子化部である。本実施形態における逆量子化係数は実施形態3における直交変換係数もしくはビット深度調整された予測誤差に相当する。
A decoding /
421は復号・分離部402から入力された変換スキップ判定情報に基づいて、逆直交変換を行うか否かを判定し、後段に逆量子化係数を出力する逆変換制御部である。409は図3の変換部304の逆となる逆直交変換を行い、予測誤差を再生する逆変換部である。422は図3のビット深度調整部322の逆となるビット深度調整を行い、予測誤差を再生するビット深度逆調整部である。ここでのビット深度逆調整の度合いは出力画像のビット深度や、逆変換部409における逆直交変換に伴うビット深度調整、逆量子化部408における量子化処理に伴うビット深度調整および量子化マトリクスの係数値などによって定まるものとする。例えば、本実施形態においては、13と出力画像のビット深度との差の分だけ係数を右側にビットシフトすることによりビット深度逆調整を行うものとする。すなわち、出力画像のビット深度が8ビットであれば、5ビット分予測誤差を右側にビットシフトするものとする。ただし、ビット深度逆調整に用いられる値はこれに限定されない。410は予測誤差と復号済みの画像からブロックの画像を再生する予測再構成部である。
An inverse
上記画像復号装置における画像の復号動作を以下に説明する。 The image decoding operation in the image decoding apparatus will be described below.
図4において、端子201から入力された1ピクチャ分のビットストリームは復号・分離部402に入力され、画像を再生するのに必要なヘッダ情報が復号され、さらに後段で使用される符号が分離され、適宜出力される。ヘッダ情報に含まれる量子化マトリクスヘッダ符号は量子化マトリクスヘッダ復号部203に出力される。また、復号・分離部402では、量子化マトリクスヘッダ復号部203から復号対象の量子化マトリクスの係数を復号する必要性があることを示す情報が入力された場合、量子化マトリクス係数復号部204に量子化マトリクス係数符号データを出力する。さらに復号・分離部402では、ビットストリームから変換ブロック単位で逆直交変換を行うか否かを示す変換スキップ判定情報を復号・再生し、逆変換制御部421に出力する。
In FIG. 4, a bit stream for one picture input from a terminal 201 is input to a decoding /
逆量子化部408では、係数復号部207で再生された量子化係数および量子化マトリクス保持部206に格納されている量子化マトリクスを入力する。そして、前記量子化マトリクスを用いて逆量子化を行い、逆量子化係数を再生し、逆変換制御部421に出力する。逆変換制御部421では、復号・分離部402から入力された変換スキップ判定情報に基づいて、入力された逆量子化係数に対し逆直交変換を行うか否かを決定する。そして、逆直交変換を行う場合には逆量子化係数を逆変換部409に出力し、行わない場合には逆量子化係数をビット深度逆調整部422に出力する。逆変換部209では、入力された逆量子化係数である直交変換係数に対し、図3の変換部304の逆となる逆直交変換を行い、予測誤差を再生し、予測再構成部410に出力する。
The
一方、ビット深度逆調整部422では、逆変換制御部421から入力された逆量子化係数であるビット深度調整された予測誤差を変換ブロック単位でビット深度逆調整を行い、予測誤差を再生し、予測再構成部410に出力する。予測再構成部410では、入力された予測誤差に復号済みの周囲の画素データから予測を行ってブロック単位の画像を再生し、端子211から出力する。
On the other hand, the bit depth
図9は実施形態4に係る画像復号装置における画像復号処理を示すフローチャートである。実施形態2の図7と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。
ステップS921にて、復号・分離部402はビットストリームから変換ブロック単位で逆直交変換を行うか否かを示す変換スキップ判定情報を復号・再生する。ステップS922にて、ステップS921で生成された変換スキップ判定情報に基づいた判定を行う。逆直交変換を行う場合はS709に進み、そうでない場合はS923に進む。ステップS923にて、ビット深度逆調整部422はステップS708で生成された逆量子化係数を変換ブロック単位でビット深度逆調整を行い、予測誤差を再生する。
FIG. 9 is a flowchart showing an image decoding process in the image decoding apparatus according to the fourth embodiment. The same reference numerals are given to parts that perform the same functions as in FIG. 7 of the second embodiment, and the description will be omitted.
In
以上の構成と動作により、変換スキップ処理を有した画像復号装置においても、実施形態3で生成された、量子化マトリクス一致情報等で少ない符号量で表されたフラットな量子化マトリクスの復号を行い、再生画像を得ることができる。 With the above configuration and operation, even in the image decoding apparatus having the conversion skip process, decoding of the flat quantization matrix represented by a small code amount by the quantization matrix matching information or the like generated in the third embodiment is performed. , You can get a reproduced image.
また、本実施形態においては、変換ブロックごとに変換スキップ判定情報が存在する構成としたが、ヘッダ部分にフラグを持ち、それによって復号装置が変換スキップ処理を有するか否かを切り替える構成をとっても良い。その場合、変換スキップ処理を用いる場合のみフラットな量子化マトリクスを記憶しておき参照対象とし、そうでない場合は参照対象から外すような構成をとっても良い。 Further, in the present embodiment, conversion skip determination information is provided for each conversion block, but a flag may be provided in the header portion, and thereby it may be possible to switch whether the decoding apparatus has conversion skip processing or not. . In that case, a flat quantization matrix may be stored and referred to only when the conversion skip processing is used, and otherwise it may be excluded from the reference.
<実施形態5>
図1、図2、図3、図4に示した各処理部はハードウェアでもって構成しているものとして上記実施形態では説明した。しかし、図1、図2、図3、図4に示した各処理部で行なう処理をコンピュータプログラムでもって構成しても良い。
Fifth Embodiment
In the above embodiments, each processing unit shown in FIG. 1, FIG. 2, FIG. 3, and FIG. 4 is described as being configured by hardware. However, the processing performed by each processing unit shown in FIG. 1, FIG. 2, FIG. 3, and FIG. 4 may be configured by a computer program.
図12は、上記各実施形態に係る画像表示装置に適用可能なコンピュータのハードウェアの構成例を示すブロック図である。 FIG. 12 is a block diagram showing a configuration example of hardware of a computer applicable to the image display device according to each of the above embodiments.
CPU1201は、RAM1202やROM1203に格納されているコンピュータプログラムやデータを用いてコンピュータ全体の制御を行うと共に、上記各実施形態に係る画像処理装置が行うものとして上述した各処理を実行する。即ち、CPU1201は、図1、図2、図3、図4に示した各処理部として機能することになる。
The
RAM1202は、外部記憶装置1206からロードされたコンピュータプログラムやデータ、I/F(インターフェース)1207を介して外部から取得したデータなどを一時的に記憶するためのエリアを有する。更に、RAM1202は、CPU1201が各種の処理を実行する際に用いるワークエリアを有する。即ち、RAM1202は、例えば、ピクチャメモリとして割当てたり、その他の各種のエリアを適宜提供することができる。
The
ROM1203には、本コンピュータの設定データや、ブートプログラムなどが格納されている。操作部1204は、キーボードやマウスなどにより構成されており、本コンピュータのユーザが操作することで、各種の指示をCPU1201に対して入力することができる。出力部1205は、CPU1201による処理結果を出力する。また出力部1205は例えば液晶ディスプレイのような表示装置で構成して処理結果を表示することができる。
The
外部記憶装置1206は、ハードディスクドライブ装置に代表される、大容量情報記憶装置である。外部記憶装置1206には、OS(オペレーティングシステム)や、図1、図2、図3、図4に示した各部の機能をCPU1201に実現させるためのコンピュータプログラムが保存されている。更には、外部記憶装置1206には、処理対象としての各画像が保存されていても良い。
The
外部記憶装置1206に保存されているコンピュータプログラムやデータは、CPU1201による制御に従って適宜RAM1202にロードされ、CPU1201による処理対象となる。I/F1207には、LANやインターネット等のネットワーク、投影装置や表示装置などの他の機器を接続することができ、本コンピュータはこのI/F1207を介して様々な情報を取得したり、送出したりすることができる。1208は上述の各部を繋ぐバスである。
Computer programs and data stored in the
上述の構成からなる作動は前述のフローチャートで説明した作動をCPU1201が中心となってその制御を行う。
In the operation having the above-described configuration, the
<その他の実施形態>
本発明の目的は、前述した機能を実現するコンピュータプログラムのコードを記録した記憶媒体を、システムに供給し、そのシステムがコンピュータプログラムのコードを読み出し実行することによっても達成される。この場合、記憶媒体から読み出されたコンピュータプログラムのコード自体が前述した実施形態の機能を実現し、そのコンピュータプログラムのコードを記憶した記憶媒体は本発明を構成する。また、そのプログラムのコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した機能が実現される場合も含まれる。
<Other Embodiments>
The object of the present invention is also achieved by supplying a storage medium storing computer program code for realizing the functions described above to a system, and the system reads out and executes the computer program code. In this case, the code itself of the computer program read from the storage medium implements the functions of the above-described embodiments, and the storage medium storing the code of the computer program constitutes the present invention. In addition, an operating system (OS) or the like operating on a computer performs part or all of the actual processing based on the instruction of the code of the program, and the above-described functions are realized by the processing. .
さらに、以下の形態で実現しても構わない。すなわち、記憶媒体から読み出されたコンピュータプログラムコードを、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込む。そして、そのコンピュータプログラムのコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行って、前述した機能が実現される場合も含まれる。 Furthermore, it may be realized in the following form. That is, the computer program code read out from the storage medium is written in a memory provided in a function expansion card inserted in the computer or a function expansion unit connected to the computer. Then, based on the instruction of the code of the computer program, the CPU included in the function expansion card or the function expansion unit may execute part or all of the actual processing to realize the above-described function.
本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応するコンピュータプログラムのコードが格納されることになる。 When the present invention is applied to the storage medium, the storage medium stores the code of the computer program corresponding to the flowchart described above.
Claims (6)
前記ビットストリームから、全ての係数が同一の値である量子化マトリクスを示す参照情報を取得する場合、前記取得された参照情報に従って得られる量子化マトリクスに基づいて前記量子化係数を逆量子化する逆量子化手段と、
前記取得手段によって取得された変換スキップ判定情報が、前記量子化係数が直交変換されていない係数であることを示す場合、前記逆量子化手段によって逆量子化された係数のビット深度を調整する調整手段と、
前記調整手段によって得られたデータから画像を復号する復号手段と、
を有し、
前記逆量子化手段は、前記取得手段によって取得された変換スキップ判定情報が、前記量子化係数が直交変換されている係数を示す場合においても、前記量子化係数が直交変換されていない係数であることを示す場合においても、前記参照情報を取得する場合には前記参照情報に従って得られる量子化マトリクスに基づいて前記量子化係数を逆量子化することを特徴とする画像復号装置。 Acquisition means for acquiring, from a bit stream, quantization coefficients and conversion skip determination information indicating whether the quantization coefficients are orthogonally transformed coefficients;
When acquiring reference information indicating a quantization matrix in which all coefficients have the same value from the bit stream, the quantization coefficient is inversely quantized based on the quantization matrix obtained according to the acquired reference information. Inverse quantization means,
An adjustment to adjust a bit depth of the coefficient inversely quantized by the inverse quantization unit, when the conversion skip determination information acquired by the acquisition unit indicates that the quantization coefficient is a coefficient that has not been orthogonally transformed Means,
Decoding means for decoding an image from the data obtained by the adjusting means;
Have
The inverse quantization means is a coefficient in which the quantization coefficient is not orthogonally transformed even when the conversion skip determination information acquired by the acquisition means indicates a coefficient to which the quantization coefficient is orthogonally transformed. In the case where the reference information is to be acquired, the image decoding device is characterized in that the quantization coefficient is inversely quantized based on the quantization matrix obtained according to the reference information.
ビットストリームから、量子化係数、および、前記量子化係数が直交変換された係数であるか否かを示す変換スキップ判定情報を取得する取得ステップと、
前記ビットストリームから、全ての係数が同一の値である量子化マトリクスを示す参照情報を取得する場合、前記取得された参照情報に従って得られる量子化マトリクスに基づいて前記量子化係数を逆量子化する逆量子化ステップと、
前記取得ステップにおいて取得された変換スキップ判定情報が、前記量子化係数が直交変換されていない係数であることを示す場合、前記逆量子化ステップにおいて逆量子化された係数のビット深度を調整する調整ステップと、
前記調整ステップにおいて得られたデータから画像を復号する復号ステップと、を有し、
前記逆量子化ステップにおいて、前記取得ステップにおいて取得された変換スキップ判定情報が、前記量子化係数が直交変換されている係数を示す場合においても、前記量子化係数が直交変換されていない係数であることを示す場合においても、前記参照情報を取得する場合には前記参照情報に従って得られる量子化マトリクスに基づいて前記量子化係数を逆量子化することを特徴とする画像復号方法。 An image decoding method,
Acquiring, from a bitstream, a quantization coefficient and conversion skip determination information indicating whether the quantization coefficient is an orthogonally transformed coefficient;
When acquiring reference information indicating a quantization matrix in which all coefficients have the same value from the bit stream, the quantization coefficient is inversely quantized based on the quantization matrix obtained according to the acquired reference information. Inverse quantization step,
When the conversion skip determination information acquired in the acquisition step indicates that the quantization coefficient is a coefficient that has not been orthogonally transformed, an adjustment that adjusts the bit depth of the inverse quantized coefficient in the inverse quantization step Step and
Decoding the image from the data obtained in the adjusting step;
In the inverse quantization step, even when the conversion skip determination information acquired in the acquisition step indicates a coefficient to which the quantization coefficient is orthogonally transformed, the quantization coefficient is a coefficient not to be orthogonally transformed. In the case where the reference information is indicated, the image decoding method further includes the step of inversely quantizing the quantization coefficient based on a quantization matrix obtained according to the reference information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017248472A JP6541763B2 (en) | 2017-12-25 | 2017-12-25 | Image decoding apparatus, image decoding method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017248472A JP6541763B2 (en) | 2017-12-25 | 2017-12-25 | Image decoding apparatus, image decoding method and program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016218209A Division JP6272441B2 (en) | 2016-11-08 | 2016-11-08 | Image decoding apparatus, image decoding method and program |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019053563A Division JP6743225B2 (en) | 2019-03-20 | 2019-03-20 | Image decoding apparatus, image decoding method and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2018067961A JP2018067961A (en) | 2018-04-26 |
JP6541763B2 true JP6541763B2 (en) | 2019-07-10 |
Family
ID=62087323
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017248472A Active JP6541763B2 (en) | 2017-12-25 | 2017-12-25 | Image decoding apparatus, image decoding method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6541763B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7089449B2 (en) * | 2018-09-18 | 2022-06-22 | 東芝ライフスタイル株式会社 | Inverter device for washing machine |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06284412A (en) * | 1993-03-26 | 1994-10-07 | Sony Corp | Picture signal coding method and picture signal coder, picture signal decoding method and picture signal decoder and picture signal recording medium |
JP3234807B2 (en) * | 1997-02-08 | 2001-12-04 | 松下電器産業株式会社 | Decoding method |
JP4146444B2 (en) * | 2005-03-16 | 2008-09-10 | 株式会社東芝 | Video encoding method and apparatus |
US9749633B2 (en) * | 2012-01-19 | 2017-08-29 | Vid Scale, Inc. | System and method of video coding quantization and dynamic range control |
WO2013187060A1 (en) * | 2012-06-12 | 2013-12-19 | パナソニック株式会社 | Video encoding method, video decoding method, video encoding device and video decoding device |
-
2017
- 2017-12-25 JP JP2017248472A patent/JP6541763B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2018067961A (en) | 2018-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10652554B2 (en) | Image coding apparatus, image coding method, image decoding apparatus, image decoding method, and storage medium | |
JP6324590B2 (en) | Image encoding device, image encoding method and program, image decoding device, image decoding method and program | |
US9942550B2 (en) | Image encoding device, image encoding method and program, image decoding device, and image decoding method and program | |
JP6157114B2 (en) | Image encoding device, image encoding method and program, image decoding device, image decoding method and program | |
JP6041554B2 (en) | Image encoding device, image encoding method and program, image decoding device, image decoding method and program | |
JP2024015184A (en) | Image decoding device, method and program | |
JP6541763B2 (en) | Image decoding apparatus, image decoding method and program | |
US20220201288A1 (en) | Image encoding device, image encoding method, image decoding device, image decoding method, and non-transitory computer-readable storage medium | |
JP2013012887A (en) | Image encoding apparatus, image encoding method and program, image decoding apparatus, image decoding method and program | |
JP7279109B2 (en) | Image decoding method and program | |
JP6891325B2 (en) | Image coding method | |
JP6743225B2 (en) | Image decoding apparatus, image decoding method and program | |
US11523113B2 (en) | Image coding apparatus, image coding method, and program, and image decoding apparatus, image decoding method, and program | |
JP6272441B2 (en) | Image decoding apparatus, image decoding method and program | |
JP2013219607A (en) | Image encoder, image encoding method and program, image decoder, image decoding method and program | |
JP2020010320A (en) | Image encoding device, image decoding device, control method of them, and program | |
JP6686095B2 (en) | Decoding device, decoding method, program, and storage medium | |
JP6953576B2 (en) | Coding device, coding method, program and storage medium | |
US20230007311A1 (en) | Image encoding device, image encoding method and storage medium, image decoding device, and image decoding method and storage medium | |
JP2023181542A (en) | Image encoding device, image decoding device, control method thereof, and program | |
JP2018142969A (en) | Image encoding apparatus, image encoding method and program, image decoding apparatus, and image decoding method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180920 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20181002 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20181130 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20181225 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190320 |
|
A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20190409 |
|
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: 20190514 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190611 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6541763 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |