JP2017060177A - Image encoding apparatus, image encoding method, and program - Google Patents

Image encoding apparatus, image encoding method, and program Download PDF

Info

Publication number
JP2017060177A
JP2017060177A JP2016218209A JP2016218209A JP2017060177A JP 2017060177 A JP2017060177 A JP 2017060177A JP 2016218209 A JP2016218209 A JP 2016218209A JP 2016218209 A JP2016218209 A JP 2016218209A JP 2017060177 A JP2017060177 A JP 2017060177A
Authority
JP
Japan
Prior art keywords
coefficient
quantization
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.)
Granted
Application number
JP2016218209A
Other languages
Japanese (ja)
Other versions
JP6272441B2 (en
Inventor
真悟 志摩
Shingo Shima
真悟 志摩
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2016218209A priority Critical patent/JP6272441B2/en
Publication of JP2017060177A publication Critical patent/JP2017060177A/en
Application granted granted Critical
Publication of JP6272441B2 publication Critical patent/JP6272441B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a decoding method of an efficiently decoded quantization matrix.SOLUTION: A decoding method includes: inverse quantization means of acquiring a quantization matrix from a bit stream, and inversely quantizes a quantization coefficient on the basis of the quantization matrix regardless of determination information showing whether or not the quantization coefficient is an orthogonal transformation coefficient; inverse orthogonal transformation means of inversely orthogonal transforming the inverse quantization coefficient by the inverse quantization when the determination information shows that the quantization coefficient is the orthogonal transformation coefficient; adjusting means of adjusting a bit depth of the inverse quantization coefficient by the inverse quantization means when the determination information shows that the quantization coefficient is the orthogonal transformation coefficient; and decoding means of decoding an image from data acquired by the inverse orthogonal transformation means or data decoding the image form the data acquired by the adjusting means.SELECTED DRAWING: Figure 1

Description

本発明は、画像復号装置、画像復号方法及びプログラムに関し、特に量子化マトリクスの符号化方法・復号方法に関する。   The present invention relates to an image decoding apparatus, an image decoding method, and a program, and more particularly, to a quantization matrix encoding method and decoding method.

動画像の圧縮記録方法として、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.264 H.264 / MPEG-4 AVC (hereinafter referred to as 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 Non-Patent Document 1, each coefficient of the quantization matrix can take an arbitrary value by adding delta_scale which is a difference value to the immediately preceding coefficient.

近年、H.264の後継としてさらに高効率な符号化方式の国際標準化を行う活動が開始された。JCT−VC(Joint Collaborative Team on Video Coding)がISO/IECとITU−Tの間で設立された。このJCT−VCにおいて、HEVC(High Efficiency Video Coding)符号化方式(以下、HEVC)として標準化が進められている。   In recent years, H.C. As a successor to H.264, activities to start international standardization of a more efficient coding method have started. JCT-VC (Joint Collaborative Team on Video Coding) was established between ISO / IEC and ITU-T. In this JCT-VC, standardization is being advanced as a High Efficiency Video Coding (HEVC) encoding method (hereinafter referred to as HEVC).

この方式では、符号化効率向上のため、従来の離散コサインベースの直交変換方法に加えて離散サイン変換といった直交変換方法が検討されている。また、カメラなどで撮影した自然映像だけでなく、PC画面やゲームといった人工映像における符号化効率向上のため、直交変換を行わない変換スキップ技術といった方法も検討されている。(非特許文献2)   In this method, in order to improve coding efficiency, an orthogonal transform method such as a discrete sine transform is being studied in addition to a conventional discrete cosine-based orthogonal transform method. Also, in order to improve the coding efficiency of not only natural images taken with a camera, but also artificial images such as PC screens and games, a method such as a conversion skip technique that does not perform orthogonal transform is also being studied. (Non-Patent Document 2)

ITU−T H.264 (03/2010) Advancedvideo coding for generic audiovisual servicesITU-TH. H.264 (03/2010) Advanced video coding for generic audiovisual services JCT−VC 寄書 JCTVC−I1003.doc インターネット< http://phenix.int−evry.fr/jct/doc_end_user/documents/9_Geneva/wg11/ >JCT-VC contribution JCTVC-I1003. doc Internet <http: // phenix. int-evry. fr / jct / doc_end_user / documents / 9_Geneva / wg11 />

一般的に画像の圧縮においては、主観画質の向上のため、直交変換を行った後の変換係数のうち、低周波成分にあたる係数をより小さな値で量子化し、高周波成分にあたる係数をより大きな値で量子化することが多い。この場合、図5(a)に示されるような量子化マトリクスを用いて周波数成分による重み付け量子化を行うことが一般的である。この量子化マトリクス500は、低周波成分にあたる係数がより小さく、高周波成分にあたる係数がより大きい。   In general, in image compression, in order to improve subjective image quality, among the transform coefficients after orthogonal transform, the coefficient corresponding to the low frequency component is quantized with a smaller value, and the coefficient corresponding to the high frequency component is increased with a larger value. It is often quantized. In this case, it is common to perform weighted quantization with frequency components using a quantization matrix as shown in FIG. The quantization matrix 500 has a smaller coefficient corresponding to a low frequency component and a larger coefficient corresponding to a high frequency component.

一方、HEVCにおいて、特に前述の変換スキップ技術を用いた場合には直交変換が行われないため、量子化対象の係数は全て同一の周波数成分を有している。このため、変換スキップ技術を用いた場合は前述の重み付け量子化を行うことは好ましくなく、図5(b)に示されるような全ての係数が同一の値をもつフラットな量子化マトリクス501を用いて量子化処理を行う必要がある。そのため、フラットな量子化マトリクス501の情報をより少ない符号量で符号化できることが望ましいが、特に上述のHEVCにおいては、効率良く符号化できる仕組みが存在せず、結果として不必要に符号量が多くなってしまっていた。   On the other hand, in HEVC, especially when the above-described transform skip technique is used, orthogonal transform is not performed, so that all the coefficients to be quantized have the same frequency component. For this reason, when the conversion skip technique is used, it is not preferable to perform the above-described weighted quantization, and a flat quantization matrix 501 in which all the coefficients have the same value as shown in FIG. 5B is used. It is necessary to perform quantization processing. For this reason, it is desirable that the information of the flat quantization matrix 501 can be encoded with a smaller code amount. However, particularly in the above-described HEVC, there is no mechanism for efficient encoding, and as a result, the code amount is unnecessarily large. It had become.

したがって、本発明は上述した課題を解決するためになされたものであり、フラットな量子化マトリクスをより少ない符号量で効率よく符号化する方法を導入することにより、高効率の量子化マトリクス符号化・復号を実現することを目的としている。   Therefore, the present invention has been made to solve the above-described problem, and by introducing a method for efficiently encoding a flat quantization matrix with a smaller code amount, high-efficiency quantization matrix coding is achieved. -The purpose is to realize decryption.

上述の問題点を解決するため、本発明の画像復号装置は以下の構成を有する。すなわち、ビットストリームから、量子化係数、および、前記量子化係数が直交変換された係数であるか否かを示す判定情報を取得する取得手段と、前記ビットストリームから量子化マトリクスを取得し、前記判定情報に関わらず、前記取得された量子化マトリクスに基づいて前記量子化係数を逆量子化する逆量子化手段と、前記取得手段によって取得された判定情報が、前記量子化係数が直交変換された係数であることを示す場合、前記逆量子化手段によって逆量子化された係数を逆直交変換する逆直交変換手段と、前記取得手段によって取得された判定情報が、前記量子化係数が直交変換されていない係数であることを示す場合、前記逆量子化手段によって逆量子化された係数のビット深度を調整する調整手段と、前記逆直交変換手段によって得られたデータ、あるいは前記調整手段によって得られたデータから画像を復号する復号手段と、を有する。 In order to solve the above-described problems, the image decoding apparatus of the present invention has the following configuration. That is, acquisition means for acquiring a quantization coefficient and determination information indicating whether or not the quantization coefficient is an orthogonally-transformed coefficient from the bit stream, acquiring a quantization matrix from the bit stream, Regardless of the determination information, the quantization coefficient is inversely quantized based on the acquired quantization matrix, and the determination information acquired by the acquisition means is obtained by orthogonally transforming the quantization coefficient. The inverse quantization transform means for inverse orthogonal transformation of the coefficient inversely quantized by the inverse quantization means, and the determination information obtained by the obtaining means are such that the quantization coefficient is orthogonal transformed. In the case of indicating that the coefficient has not been processed, the adjustment means for adjusting the bit depth of the coefficient inversely quantized by the inverse quantization means, and the inverse orthogonal transform means Having a decoding means for decoding an image from data obtained by the data obtained or the adjustment means, I.

さらに、本発明の画像復号方法は以下の構成を有する。すなわち、ビットストリームから、量子化係数、および、前記量子化係数が直交変換された係数であるか否かを示す判定情報を取得する取得ステップと、前記ビットストリームから量子化マトリクスを取得し、前記判定情報に関わらず、前記取得された量子化マトリクスに基づいて前記量子化係数を逆量子化する逆量子化ステップと、前記取得ステップにおいて取得された判定情報が、前記量子化係数が直交変換された係数であることを示す場合、前記逆量子化ステップにおいて逆量子化された係数を逆直交変換する逆直交変換ステップと、前記取得ステップにおいて取得された判定情報が、前記量子化係数が直交変換されていない係数であることを示す場合、前記逆量子化ステップにおいて逆量子化された係数のビット深度を調整する調整ステップと、前記逆直交変換ステップにおいて得られたデータ、あるいは前記調整ステップにおいて得られたデータから画像を復号する復号ステップと、を有する   Furthermore, the image decoding method of the present invention has the following configuration. That is, an acquisition step of acquiring a quantization coefficient and determination information indicating whether or not the quantization coefficient is an orthogonally transformed coefficient from the bit stream, acquiring a quantization matrix from the bit stream, Regardless of the determination information, the quantization coefficient is inversely quantized based on the acquired quantization matrix, and the determination information acquired in the acquisition step is obtained by orthogonally transforming the quantization coefficient. The inversely orthogonal transform step for inversely orthogonally transforming the coefficient inversely quantized in the inverse quantization step, and the determination information acquired in the acquisition step, the quantized coefficient is orthogonally transformed. An adjustment that adjusts the bit depth of the dequantized coefficient in the dequantization step when indicating that the coefficient is not It has a step, and a decoding step of decoding the image from the obtained data in the obtained data or the adjustment step, in the inverse orthogonal transform step

本発明により、量子化マトリクス符号化のための符号量を削減し、高効率の符号化・復号が可能になる。   According to the present invention, the amount of codes for quantization matrix coding can be reduced, and highly efficient coding / decoding becomes possible.

実施形態1における画像符号化装置の構成を示すブロック図1 is a block diagram illustrating a configuration of an image encoding device according to a first embodiment. 実施形態2における画像復号装置の構成を示すブロック図FIG. 3 is a block diagram illustrating a configuration of an image decoding device according to Embodiment 2. 実施形態3における画像符号化装置の構成を示すブロック図FIG. 9 is a block diagram illustrating a configuration of an image encoding device according to Embodiment 3. 実施形態4における画像復号装置の構成を示すブロック図FIG. 7 is a block diagram illustrating a configuration of an image decoding device according to Embodiment 4. (a)、(b)量子化マトリクスの一例を示す図(A), (b) The figure which shows an example of a quantization matrix 実施形態1に係る画像符号化装置における画像符号化処理を示すフローチャート7 is a flowchart showing image encoding processing in the image encoding apparatus according to the first embodiment. 実施形態2に係る画像復号装置における画像復号処理を示すフローチャート7 is a flowchart showing image decoding processing in the image decoding apparatus according to the second embodiment. 実施形態3に係る画像符号化装置における画像符号化処理を示すフローチャート10 is a flowchart showing image encoding processing in the image encoding apparatus according to the third embodiment. 実施形態4に係る画像復号装置における画像復号処理を示すフローチャート10 is a flowchart showing image decoding processing in the image decoding apparatus according to the fourth embodiment. (a)、(b)、(c)ビットストリーム構造の一例を示す図(A), (b), (c) The figure which shows an example of a bit stream structure 符号化対象の量子化マトリクスと量子化マトリクス参照情報との関係の一例を示す図The figure which shows an example of the relationship between the quantization matrix of encoding object, and quantization matrix reference information 本発明の画像符号化装置、復号装置に適用可能なコンピュータのハードウェアの構成例を示すブロック図The block diagram which shows the structural example of the hardware of the computer applicable to the image coding apparatus of this invention, and a decoding apparatus.

以下、添付の図面を参照して、本願発明をその好適な実施形態に基づいて詳細に説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。   Hereinafter, the present invention will be described in detail based on the preferred embodiments with reference to the accompanying drawings. The configurations shown in the following embodiments are merely examples, and the present invention is not limited to the illustrated configurations.

<実施形態1>
以下、本発明の実施形態を、図面を用いて説明する。図1は本実施形態の画像符号化装置を示すブロック図である。
<Embodiment 1>
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an image encoding apparatus according to this embodiment.

図1において、101は画像データ(以下、画像)を入力する端子である。102は入力された画像を複数のブロックに分割するブロック分割部である。103はブロック分割部102で分割された各ブロックを、ブロック単位で予測を行い、予測方法を決定し、それに従って差分値算出を行い、予測誤差を算出する予測部である。予測部103ではイントラ予測若しくは動き補償予測も行うものとする。イントラ予測は一般的には、周囲の画素データから予測値を算出するために、複数の参照方法の中から最適なものを予測方法として選択することで実現する。   In FIG. 1, reference numeral 101 denotes a terminal for inputting image data (hereinafter referred to as an image). A block dividing unit 102 divides the input image into a plurality of blocks. A prediction unit 103 predicts each block divided by the block dividing unit 102 in units of blocks, determines a prediction method, calculates a difference value according to the prediction method, and calculates a prediction error. The prediction unit 103 also performs intra prediction or motion compensation prediction. Intra prediction is generally realized by selecting an optimum prediction method from a plurality of reference methods in order to calculate a prediction value from surrounding pixel data.

104は各ブロックの予測誤差に対して直交変換を行う変換部であり、入力されたブロックのサイズまたはそれを細分化したサイズを単位に直交変換を行い、直交変換係数を算出する。以下では直交変換を行うブロックを変換ブロックと呼称する。直交変換に関しては特に限定しないが、離散コサイン変換やアダマール変換等を用いてもよい。また、本実施形態では説明のため、8×8画素のブロック単位の予測誤差を縦横2分割し、4×4画素の変換ブロック単位で直交変換を行うものとするが、変換ブロックの大きさ、形状はこれに限定されない。ブロックと同一の大きさの変換ブロックを用いて直交変換を行っても良いし、ブロックを縦横2分割よりもさらに細かい単位で分割した変換ブロックを用いて直交変換を行っても良い。   Reference numeral 104 denotes a transform unit that performs orthogonal transform on the prediction error of each block, and performs orthogonal transform in units of the size of the input block or a size obtained by subdividing it to calculate orthogonal transform coefficients. Below, the block which performs orthogonal transformation is called a transformation block. Although it does not specifically limit regarding orthogonal transformation, you may use discrete cosine transformation, Hadamard transformation, etc. Further, in the present embodiment, for the sake of explanation, the prediction error in units of 8 × 8 pixels is divided into two in the vertical and horizontal directions, and orthogonal transform is performed in units of 4 × 4 pixels, but the size of the transform block, The shape is not limited to this. Orthogonal transformation may be performed using a transform block having the same size as the block, or orthogonal transform may be performed using a transform block obtained by dividing the block in units smaller than vertical and horizontal divisions.

107は量子化マトリクスを生成し、格納する量子化マトリクス保持部である。格納される量子化マトリクスの生成方法については特に限定しないが、ユーザが量子化マトリクスを入力しても良いし、入力画像の特性から算出しても、初期値として予め指定されたものを使用してももちろん良い。本実施形態では、図5(a)や(b)に示されるような4×4画素の変換ブロックに対応した二次元の量子化マトリクスが生成され、格納されるものとする。   Reference numeral 107 denotes a quantization matrix holding unit that generates and stores a quantization matrix. The method for generating the stored quantization matrix is not particularly limited, but the user may input the quantization matrix or use the one specified in advance as the initial value even if it is calculated from the characteristics of the input image. Of course it is good. In the present embodiment, it is assumed that a two-dimensional quantization matrix corresponding to a 4 × 4 pixel conversion block as shown in FIGS. 5A and 5B is generated and stored.

105は量子化マトリクス保持部107に格納された量子化マトリクスによって、前記直交変換係数を量子化する量子化部である。この量子化によって量子化係数を得ることができる。106はこのようにして得られた量子化係数を符号化して量子化係数符号データを生成する係数符号化部である。符号化の方法は特に限定しないが、ハフマン符号や算術符号などを用いることができる。108は量子化マトリクス保持部107に格納された量子化マトリクスが、所定の量子化マトリクスと一致するか否かを判定する量子化マトリクス判定部である。より具体的には符号化対象の量子化マトリクスが、既に符号化済みの量子化マトリクス、予め定められた量子化マトリクスもしくは係数が全て同一の値を持つフラットな量子化マトリクスであるか否かを判定する。この予め定められた量子化マトリクスは量子化マトリクス保持部107に格納されているとする。但しこれに限定されない。例えば、量子化マトリクス判定部108に格納されていても構わない。   Reference numeral 105 denotes a quantization unit that quantizes the orthogonal transform coefficient using a quantization matrix stored in the quantization matrix holding unit 107. A quantization coefficient can be obtained by this quantization. Reference numeral 106 denotes a coefficient encoding unit that encodes the quantized coefficient thus obtained to generate quantized coefficient code data. The encoding method is not particularly limited, but a Huffman code or an arithmetic code can be used. Reference numeral 108 denotes a quantization matrix determination unit that determines whether or not the quantization matrix stored in the quantization matrix holding unit 107 matches a predetermined quantization matrix. More specifically, whether the quantization matrix to be encoded is an already encoded quantization matrix, a predetermined quantization matrix, or a flat quantization matrix having all the same values. judge. It is assumed that this predetermined quantization matrix is stored in the quantization matrix holding unit 107. However, it is not limited to this. For example, it may be stored in the quantization matrix determination unit 108.

109は量子化マトリクス判定部108における判定を示す情報やその他の量子化マトリクスに関する情報をヘッダとして符号化して量子化マトリクスヘッダ符号を生成する量子化マトリクスヘッダ符号化部である。110は符号化対象の量子化マトリクスの各係数を符号化して量子化マトリクス係数符号を生成する量子化マトリクス係数符号化部である。   Reference numeral 109 denotes a quantization matrix header encoding unit that encodes information indicating the determination in the quantization matrix determination unit 108 and other information related to the quantization matrix as a header to generate a quantization matrix header code. Reference numeral 110 denotes a quantization matrix coefficient encoding unit that encodes each coefficient of a quantization matrix to be encoded to generate a quantization matrix coefficient code.

111はヘッダ情報や予測、変換に関する符号を生成するとともに、前述の各符号化部で生成された符号データを統合してビットストリームを形成して出力する統合符号化部である。具体的には、係数符号化部106で生成された量子化係数符号データや量子化マトリクスヘッダ符号化部109で生成された量子化マトリクスヘッダ符号、量子化マトリクス係数符号化部110で生成された量子化マトリクス係数符号を統合する。ここで予測、変換に関する符号とは、例えば選択した予測方法や変換ブロックの分割の様子等の符号である。112は統合符号化部111で生成されたビットストリームを外部に出力する端子である。   Reference numeral 111 denotes an integrated coding unit that generates codes related to header information, prediction, and conversion, and forms and outputs a bitstream by integrating the code data generated by each of the above-described encoding units. Specifically, the quantization coefficient code data generated by the coefficient encoding unit 106, the quantization matrix header code generated by the quantization matrix header encoding unit 109, and the quantization matrix coefficient encoding unit 110 Integrate quantization matrix coefficient codes. Here, the codes relating to prediction and conversion are, for example, codes such as a selected prediction method and a state of conversion block division. Reference numeral 112 denotes a terminal for outputting the bit stream generated by the integrated encoding unit 111 to the outside.

上記画像符号化装置における画像の符号化動作を以下に説明する。本実施形態では動画像データをピクチャ単位に入力する構成となっているが、1ピクチャ分の静止画像データを入力する構成としても構わない。また、本実施形態では、説明を容易にするため、イントラ予測符号化の処理のみを説明するが、これに限定されずインター予測符号化の処理においても適用可能である。本実施形態では説明のため、ブロック分割部102においては8×8画素のブロックに分割するものとして説明するが、これに限定されない。   An image encoding operation in the image encoding apparatus will be described below. In this embodiment, moving image data is input in units of pictures, but still image data for one picture may be input. Further, in the present embodiment, only the intra prediction encoding process will be described for ease of explanation, but the present invention is not limited to this and can be applied to the inter prediction encoding process. In the present embodiment, for the sake of explanation, the block dividing unit 102 will be described as dividing into 8 × 8 pixel blocks, but the present invention is not limited to this.

<量子化マトリクス係数の符号化>
最初に、量子化マトリクス保持部107は量子化マトリクスを生成する。符号化処理に用いられる直交変換のサイズである変換ブロックサイズに応じて、量子化マトリクスが決定される。量子化マトリクスの係数の決定方法は特に限定しない。例えば、所定の初期値を用いても良いし、個別に設定しても良い。また、画像の特性に応じて設定して生成されても構わない。
<Encoding of quantization matrix coefficient>
First, the quantization matrix holding unit 107 generates a quantization matrix. The quantization matrix is determined according to the transform block size that is the size of the orthogonal transform used for the encoding process. The method for determining the quantization matrix coefficient is not particularly limited. For example, a predetermined initial value may be used, or may be set individually. Further, it may be set and generated according to the characteristics of the image.

量子化マトリクス保持部107には、このようにして生成された量子化マトリクスが保持されている。図5(a)、(b)は4×4画素の変換ブロックに対応する量子化マトリクスの一例である。説明を簡易にするため、4×4画素の変換ブロックに対応した16画素分の構成とし、太枠内の各正方形は係数を表しているものとする。本実施形態では、図5(a)、(b)に示された量子化マトリクスが二次元形状で保持されているものとするが、量子化マトリクス内の係数はもちろんこれに限定されない。例えば、本実施形態に加えて8×8画素の変換ブロックサイズも用いる場合には、8×8画素変換ブロックに対応する他の量子化マトリクスを保持することになる。   The quantization matrix holding unit 107 holds the quantization matrix generated in this way. FIGS. 5A and 5B are examples of quantization matrices corresponding to 4 × 4 pixel conversion blocks. In order to simplify the description, it is assumed that the configuration is for 16 pixels corresponding to a 4 × 4 pixel conversion block, and each square in the thick frame represents a coefficient. In this embodiment, it is assumed that the quantization matrix shown in FIGS. 5A and 5B is held in a two-dimensional shape, but the coefficients in the quantization matrix are of course not limited to this. For example, when a transform block size of 8 × 8 pixels is used in addition to the present embodiment, another quantization matrix corresponding to the 8 × 8 pixel transform block is held.

量子化マトリクス判定部108は符号化対象の量子化マトリクスを量子化マトリクス保持部107から順に読み出す。そして所定の量子化マトリクスと一致するか否かを判定し、符号化対象の量子化マトリクスが所定の量子化マトリクスと一致することを示す一致情報を生成する。本実施形態では、符号化済みの量子化マトリクス、図5(a)に示されたデフォルトの量子化マトリクスもしくは図5(b)に示されたフラットな量子化マトリクスのいずれかと一致するか否かを判定する。符号化済みの量子化マトリクスは量子化マトリクス保持部107に格納されており、図5(a)および図5(b)に示された量子化マトリクスも量子化マトリクス保持部107に予め記憶されているものとする。符号化対象の量子化マトリクスがいずれかと一致すると判定された場合は、さらにどの量子化マトリクスと一致するかを示す参照情報を生成する。この参照情報は一致情報とともに量子化マトリクスヘッダ符号化部109に出力する。この場合、量子化マトリクス係数符号化部110には何も出力せず、動作しない。一方、いずれの量子化マトリクスとも一致しない場合は、一致情報のみを量子化マトリクスヘッダ符号化部109に出力しつつ、符号化対象の量子化マトリクスを量子化マトリクス係数符号化部110に出力する。本実施形態では、所定の量子化マトリクスの中に符号化対象の量子化マトリクスと一致するものがある場合には一致情報は1となり、そうでない場合は0となるものとするが、値と状態との組合せはこれに限定されない。   The quantization matrix determination unit 108 sequentially reads out the quantization matrix to be encoded from the quantization matrix holding unit 107. Then, it is determined whether or not it matches a predetermined quantization matrix, and matching information indicating that the quantization matrix to be encoded matches the predetermined quantization matrix is generated. In the present embodiment, whether or not the encoded quantization matrix matches any of the default quantization matrix shown in FIG. 5A or the flat quantization matrix shown in FIG. Determine. The encoded quantization matrix is stored in the quantization matrix holding unit 107, and the quantization matrix shown in FIGS. 5A and 5B is also stored in the quantization matrix holding unit 107 in advance. It shall be. When it is determined that the quantization matrix to be encoded matches any one, reference information indicating which quantization matrix further matches is generated. This reference information is output to the quantization matrix header encoding unit 109 together with the coincidence information. In this case, nothing is output to the quantization matrix coefficient encoding unit 110 and the operation is not performed. On the other hand, if none of the quantization matrices match, only the matching information is output to the quantization matrix header encoding unit 109 and the quantization matrix to be encoded is output to the quantization matrix coefficient encoding unit 110. In the present embodiment, the matching information is 1 if there is a predetermined quantization matrix that matches the quantization matrix to be encoded, and 0 otherwise. The combination with is not limited to this.

図11は本実施形態における符号化対象の量子化マトリクスと参照情報との関係の一例を示す図である。本実施形態では、YCbCr色空間で入力された画像のY成分の量子化に対応する第一、Cb成分の量子化に対応する第二、Cr成分の量子化に対応する第三の3種類の量子化マトリクスが存在するものとするが、これに限定されない。変換ブロックサイズや予測方法、色空間の組み合わせによってより多くの量子化マトリクスを定義しても構わない。また、本実施形態では図5(a)に示された量子化マトリクスをデフォルト4×4、図5(b)に示された量子化マトリクスをフラット4×4の量子化マトリクスであるものとするが、使用される量子化マトリクスはこれらに限定されない。   FIG. 11 is a diagram illustrating an example of a relationship between a quantization matrix to be encoded and reference information in the present embodiment. In the present embodiment, the first three types 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. Although a quantization matrix is assumed to exist, the present invention is not limited to this. More quantization matrices may be defined depending on combinations of transform block size, prediction method, and color space. In this embodiment, the quantization matrix shown in FIG. 5A is a default 4 × 4 quantization matrix, and the quantization matrix shown in FIG. 5B is a 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. In addition, when it matches flat 4 × 4, the reference information is 1. Matching with such a flat 4 × 4 is flat information indicating that all the coefficients of the quantization matrix to be encoded have the same value. Similarly, when the encoding target quantization matrix is the second (4 × 4Cb), the reference information is 0 if it matches the default 4 × 4, and the reference information is 1 if it matches the encoded first (4 × 4Y). Become. The reference information is 2 if it matches the flat 4 × 4. The same applies when the encoding target quantization matrix is the third (4 × 4Cr).

量子化マトリクスヘッダ符号化部109では、量子化マトリクス判定部108から入力された一致情報および必要に応じて参照情報を符号化して量子化マトリクスヘッダ符号を生成する。本実施形態では、符号化対象の量子化マトリクスが符号化装置に予め記憶されている量子化マトリクスもしくは符号化済みの量子化マトリクスのいずれかと一致する場合には、一致情報および参照情報の両方を符号化する。一方、上記のいずれの量子化マトリクスとも一致しない場合には、一致情報のみを符号化する。符号化の方法は特に限定しないが、ハフマン符号や算術符号などを用いることができる。生成された量子化マトリクスヘッダ符号は統合符号化部111に出力される。   The quantization matrix header encoding unit 109 encodes the matching information input from the quantization matrix determination unit 108 and the reference information as necessary to generate a quantization matrix header code. In this embodiment, when the quantization matrix to be encoded matches either the quantization matrix stored in advance in the encoding device or the encoded quantization matrix, both the match information and the reference information are displayed. Encode. On the other hand, if it does not match any of the above quantization matrices, only the matching information is encoded. The encoding method is not particularly limited, but a Huffman code or an arithmetic code can be used. The generated quantization matrix header code is output to the integrated encoding unit 111.

量子化マトリクス係数符号化部110では、量子化マトリクス判定部108から入力された符号化対象の量子化マトリクスを符号化して量子化マトリクス係数符号を生成する。本実施形態では、符号化対象の量子化マトリクスが符号化装置に予め記憶されている量子化マトリクスや符号化済みの量子化マトリクスとは一致しない場合に限り、量子化マトリクス係数符号化部110は動作する。符号化方式としては、本実施形態では、各係数をそのまま符号化する、直前の係数との差分を符号化する、DPCM、他の量子化マトリクスとの差分を符号化するといった方式を用いることとするが、方式はこれらに限定されない。また、符号化装置に予め記憶されていないフラットな量子化マトリクスを符号化する場合には代表値のみを符号化するような方式をとってもよい。また、これらと合わせて同じ値が続くときは符号化を打ち切る符号を挿入することにより量子化マトリクスの符号量を抑制することもできる。   The quantization matrix coefficient encoding unit 110 encodes the quantization matrix to be encoded input from the quantization matrix determination unit 108 to generate a quantization matrix coefficient code. In the present embodiment, the quantization matrix coefficient encoding unit 110 is used only when the quantization matrix to be encoded does not match the quantization matrix stored in advance in the encoding device or the encoded quantization matrix. Operate. As an encoding method, in this embodiment, a method is used in which each coefficient is encoded as it is, a difference from the immediately preceding coefficient is encoded, and a difference from DPCM or another quantization matrix is encoded. However, the method is not limited to these. Further, when a flat quantization matrix that is not stored in advance in the encoding device is encoded, a method may be adopted in which only the representative value is encoded. In addition, when the same value continues with these, the code amount of the quantization matrix can also be suppressed by inserting a code that terminates the encoding.

統合符号化部111では画像の符号化に必要なヘッダ情報を符号化し、入力された量子化マトリクスヘッダ符号および量子化マトリクス係数符号を統合する。   The integrated encoding unit 111 encodes header information necessary for image encoding, and integrates the input quantization matrix header code and quantization matrix coefficient code.

なお、量子化マトリクス判定部108と量子化マトリクスヘッダ符号化部109と量子化マトリクス係数符号化部110は、1つの処理部である量子化マトリクス符号化部として機能してもよい。   Note that the quantization matrix determination unit 108, the quantization matrix header encoding unit 109, and the quantization matrix coefficient encoding unit 110 may function as a quantization matrix encoding unit that is one processing unit.

<画像の符号化>
端子101から入力された1ピクチャ分の画像はブロック分割部102に入力され、8×8画素のブロック単位に分割される。分割された画像は予測部103に入力される。予測部103ではブロック単位の予測が行われ、予測誤差が生成される。変換部104では、予測部103で生成された予測誤差を変換ブロックサイズに分割して直交変換を行い、直交変換係数を生成する。そして、直交変換係数を量子化部105に入力する。本実施形態では、8×8画素のブロック単位の予測誤差を4×4画素の変換ブロック単位に分割して直交変換を行うものとする。量子化部105では、変換部104から出力された直交変換係数を量子化マトリクス保持部107に格納されている量子化マトリクスを用いて量子化して量子化係数を生成する。生成された量子化係数は係数符号化部106に入力される。係数符号化部106では、量子化部105で生成された量子化係数を符号化し、量子化係数符号データを生成して統合符号化部111に出力する。統合符号化部111はブロック単位で予測、変換に関する符号を生成し、前記ヘッダの符号化データとともに、ブロック単位の符号、係数符号化部106で生成された量子化係数符号データを統合し、ビットストリームを生成して端子112から出力する。
<Image coding>
An image for one picture input from the terminal 101 is input to the block dividing unit 102 and divided into blocks of 8 × 8 pixels. The divided image is input to the prediction unit 103. The prediction unit 103 performs prediction in units of blocks and generates a prediction error. The transform unit 104 divides the prediction error generated by the prediction unit 103 into transform block sizes and performs orthogonal transform to generate orthogonal transform coefficients. Then, the orthogonal transform coefficient is input to the quantization unit 105. In the present embodiment, it is assumed that orthogonal transformation is performed by dividing a prediction error of a block unit of 8 × 8 pixels into a conversion block unit of 4 × 4 pixels. The quantization unit 105 quantizes the orthogonal transform coefficient output from the transform unit 104 using the quantization matrix stored in the quantization matrix holding unit 107 to generate a quantized coefficient. The generated quantized coefficient is input to the coefficient encoding unit 106. The coefficient encoding unit 106 encodes the quantization coefficient generated by the quantization unit 105, generates quantized coefficient code data, and outputs it to the integrated encoding unit 111. The integrated encoding unit 111 generates a code related to prediction and conversion in units of blocks, integrates the encoded data of the header and the quantized coefficient code data generated by the coefficient encoding unit 106 together with the encoded data of the header, A stream is generated and output from the terminal 112.

図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 code data of a quantization matrix, and includes a header code and a result of encoding each coefficient. FIG. 10A shows an example of a bitstream in which all of the first to third quantization matrices are different and are different from a flat quantization matrix and a default quantization matrix. That is, the first to third quantization matrix header codes are encoded with the matching information 0, and each quantization matrix coefficient code is encoded with the coefficient of each quantization matrix. However, the encoding position is not limited to this. Of course, it does not matter even if it takes the structure encoded in the picture header part and other header parts.

図10(b)は第1から第3までの量子化マトリクスの全てがフラットな量子化マトリクスであった場合のビットストリームの例である。この場合、第1の量子化マトリクスヘッダ符号には、一致情報の1とフラットな量子化マトリクスを示す参照情報の1が符号化されている。また、第2の量子化マトリクスヘッダ符号には、一致情報の1とフラットな量子化マトリクスを示す参照情報の2が符号化されている。この場合においては、参照情報が1であっても、参照対象の第1の量子化マトリクスもフラットな量子化マトリクスであるため、ビットストリームの復号結果は同一となる。同様に、第3の量子化マトリクスヘッダ符号には、一致情報の1とフラットな量子化マトリクスを示す参照情報の2が符号化されている。この場合も、参照情報が1もしくは2であっても、参照対象の第1または第2の量子化マトリクスもフラットな量子化マトリクスであるため、ビットストリームの復号結果は同一となる。   FIG. 10B shows an example of a bit stream in the case where all of the first to third quantization matrices are flat quantization matrices. In this case, in the first quantization matrix header code, 1 of matching information and 1 of reference information indicating a flat quantization matrix are encoded. The second quantization matrix header code is encoded with the match information 1 and the reference information 2 indicating a flat quantization matrix. 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 bitstream decoding results are the same. Similarly, in the third quantization matrix header code, 1 of matching 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 result of the bit stream is the same.

図10(c)は第1の量子化マトリクスはフラットな量子化マトリクスともデフォルトの量子化マトリクスとも異なるが、第2、第3の量子化マトリクスは第1の量子化マトリクスと同一である場合のビットストリームの例である。この場合、第1の量子化マトリクスヘッダ符号には、一致情報の0が符号化されており、第1量子化マトリクス係数符号には第1量子化マトリクスの係数が符号化されている。また、第2の量子化マトリクスヘッダ符号には、一致情報の1と第1の量子化マトリクスへの参照を示す参照情報の1が符号化されている。同様に第3の量子化マトリクスヘッダ符号には、一致情報の1と第2の量子化マトリクスへの参照を示す参照情報の1が符号化されている。   FIG. 10C shows a case where the first quantization matrix is different from the flat quantization matrix and the default quantization matrix, but the second and third quantization matrices are the same as the first quantization matrix. It is an example of a bit stream. In this case, the first quantization matrix header code is encoded with the matching information 0, and the first quantization matrix coefficient code is encoded with the coefficient of the first quantization matrix. In addition, in the second quantization matrix header code, 1 of 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 coincidence 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 encoding process in the image encoding apparatus according to the first embodiment. First, in step S601, the quantization matrix holding unit 107 generates a quantization matrix. In step S602, the quantization matrix determination unit 108 determines whether the quantization matrix to be encoded matches a predetermined quantization matrix, and generates matching information. In the present embodiment, the encoded quantization matrix, the default quantization matrix shown in FIG. 5 (a) stored in advance in the encoding device, or the flat quantization shown in FIG. 5 (b). It is determined whether or not it matches any of the matrices. When it is determined that the quantization matrix to be encoded matches any of the above-described quantization matrices, reference information indicating which quantization matrix is further matched is generated.

ステップS603にて、量子化マトリクスヘッダ符号化部109は、ステップS602で生成された一致情報および参照情報を符号化して量子化マトリクスヘッダ符号を生成する。ステップS604にて画像符号化装置は前述の一致情報に基づいて、符号化対象の量子化マトリクスの係数を符号化するか否かを判定する。対象の量子化マトリクスの係数を符号化する場合にはステップS605に進み、そうでない場合はステップS606に進む。   In step S603, the quantization matrix header encoding unit 109 encodes the match information and the reference information generated in step S602 to generate a quantization matrix header code. In step S604, the image encoding apparatus determines whether to encode the coefficient of the quantization matrix to be encoded based on the above-described coincidence information. If the coefficient of the target quantization matrix is encoded, the process proceeds to step S605. Otherwise, the process proceeds to step S606.

ステップS605にて、量子化マトリクス係数符号化部110はステップS601で生成された量子化マトリクスを符号化し、量子化マトリクス係数符号を生成する。ステップS606にて、画像符号化装置は量子化マトリクスを全て符号化したか否かの判定を行い、終了していればステップS607に進み、そうでなければ次の量子化マトリクスを対象としてステップS601に戻る。ステップS607にて、統合符号化部111はビットストリームのヘッダ部の符号化を行い、出力する。本実施形態では、図10に示される例のシーケンスヘッダおよびピクチャヘッダの符号化を行い、出力するものとする。   In step S605, the quantization matrix coefficient encoding unit 110 encodes the quantization matrix generated in step S601 to generate a quantization matrix coefficient code. In step S606, the image coding apparatus determines whether or not all the quantization matrices have been coded. If completed, the process proceeds to step S607. Otherwise, the next quantization matrix is processed in step S601. Return to. In step S607, the integrated encoding unit 111 encodes and outputs the header portion of the bitstream. In the present embodiment, it is assumed that the sequence header and picture header of the example shown in FIG. 10 are encoded and output.

ステップS608にて、ブロック分割部102は、ピクチャ単位の入力画像をブロック単位に分割する。ステップS609にて、予測部103はブロック単位の予測を行い、予測誤差を生成する。ステップS610にて、変換部104はステップS609で生成された予測誤差に対して変換ブロックサイズに分割して直交変換を行い、直交変換係数を生成する。ステップS611にて、量子化部105はステップS610で生成された直交変換係数を、ステップS601で生成されて量子化マトリクス保持部107に格納された量子化マトリクスを用いて量子化して量子化係数を生成する。ステップS612にて、係数符号化部106はステップS611で生成された量子化係数を符号化し、量子化係数符号データを生成する。ステップS613にて、画像符号化装置は、当該ブロック内の全ての変換ブロックの符号化が終了したか否かの判定を行い、終了していればステップS614に進み、終了していなければ次の変換ブロックを対象としてステップS610に戻る。ステップS614にて、画像符号化装置は、全てのブロックの符号化が終了したか否かの判定を行い、終了していれば全ての動作を停止して処理を終了し、そうでなければ次のブロックを対象としてステップS608に戻る。   In step S608, the block dividing unit 102 divides the input image in units of pictures into units of blocks. In step S609, the prediction unit 103 performs block unit prediction and generates a prediction error. In step S610, the transform unit 104 divides the prediction error generated in step S609 into transform block sizes, performs orthogonal transform, and generates orthogonal transform coefficients. In step S611, the quantization unit 105 quantizes the orthogonal transform coefficient generated in step S610 using the quantization matrix generated in step S601 and stored in the quantization matrix holding unit 107, and obtains the quantization coefficient. Generate. In step S612, the coefficient encoding unit 106 encodes the quantized coefficient generated in step S611 to generate quantized coefficient code data. In step S613, the image coding apparatus determines whether or not the coding of all the transform blocks in the block has been finished. If finished, the process proceeds to step S614. The process returns to step S610 for the conversion block. In step S614, the image encoding apparatus determines whether or not encoding of all blocks has been completed, and if completed, stops all operations and ends the process. Returning to the block S608, the process returns to step S608.

以上の構成と動作により、特にステップS602からステップS604によって、フラットな量子化マトリクスを符号化する際に、他の量子化マトリクスと一致する場合、冗長な符号を送る必要が無いため、符号量を削減したビットストリームを構成することができる。これにより、フラットな量子化マトリクスの係数を一つずつ符号化するよりも少ない符号量でビットストリームを生成することができる。   With the above configuration and operation, particularly when encoding a flat quantization matrix by steps S602 to S604, if it matches with other quantization matrices, it is not necessary to send a redundant code. A reduced bitstream can be constructed. As a result, a bit stream can be generated with a smaller code amount than when the coefficients of the flat quantization matrix are encoded 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. However, it is obvious that a picture that can use inter prediction can also be used. Further, in this embodiment, for the sake of explanation, the block is 8 × 8 pixels and the conversion block is 4 × 4 pixels, 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, but may be a rectangle such as 16 × 8 pixels. Further, although the conversion block size is half of the block size in the vertical and horizontal directions, it may be the same size, or of course a size finer than half of the vertical and horizontal directions.

<実施形態2>
図2は、本発明の実施形態2に係る画像復号装置の構成を示すブロック図である。本実施形態では、実施形態1で生成されたビットストリームの復号について説明する。
<Embodiment 2>
FIG. 2 is a block diagram showing the configuration of the image decoding apparatus according to Embodiment 2 of the present invention. In the present embodiment, decoding of the bitstream generated in the first embodiment will be described.

図2において、201は符号化されたビットストリームを入力する端子である。202は入力されたビットストリームのヘッダ情報を復号し、ビットストリームから必要な符号を分離して後段へ出力する復号・分離部である。復号・分離部202は図1の統合符号化部111と逆の動作を行う。   In FIG. 2, 201 is a terminal for inputting an encoded bit stream. A decoding / separating unit 202 decodes header information of the input bitstream, separates necessary codes from the bitstream, and outputs them to the subsequent stage. The decoding / separating unit 202 performs the reverse operation of the integrated encoding unit 111 in FIG.

203はビットストリームのヘッダ情報から分離された量子化マトリクスヘッダ符号を復号し、一致情報および参照情報を復元する量子化マトリクスヘッダ復号部である。204はビットストリームから分離された量子化マトリクス係数符号を復号し、量子化マトリクスの各係数を復元する量子化マトリクス係数復号部である。205は得られた一致情報および参照情報あるいは量子化マトリクスの各係数から復号対象の量子化マトリクスを再構成する量子化マトリクス再構成部である。206は量子化マトリクス再構成部205で得られた量子化マトリクスを格納しておく量子化マトリクス保持部である。実施形態1の量子化マトリクス判定部108が格納している所定の量子化マトリクスはこれに保持されているものとする。但し、これに限定されない。量子化マトリクス再構成部205に格納されていても構わない。また、量子化マトリクスヘッダ復号部203と量子化マトリクス係数復号部204と量子化マトリクス再構成部205はひとつの処理部である量子化マトリクス復号部として機能してもよい。   Reference numeral 203 denotes a quantization matrix header decoding unit that decodes the quantization matrix header code separated from the header information of the bit stream and restores the matching information and the reference information. A quantization matrix coefficient decoding unit 204 decodes the quantization matrix coefficient code separated from the bit stream and restores each coefficient of the quantization matrix. Reference numeral 205 denotes a quantization matrix reconstruction unit that reconstructs a quantization matrix to be decoded from the obtained matching information and reference information or each coefficient of the quantization matrix. A quantization matrix holding unit 206 stores the quantization matrix obtained by the quantization matrix reconstruction unit 205. It is assumed that the predetermined quantization matrix stored in the quantization matrix determination unit 108 of the first embodiment is held in this. However, it is not limited to this. It may be stored in the quantization matrix reconstruction unit 205. Further, the quantization matrix header decoding unit 203, the quantization matrix coefficient decoding unit 204, and the quantization matrix reconstruction unit 205 may function as a quantization matrix decoding unit that is one processing unit.

一方、207は復号・分離部202で分離された量子化係数符号データから量子化係数符号を復号し、量子化係数を復元する係数復号部である。208は量子化マトリクス保持部206に格納された量子化マトリクスを用いて量子化係数に逆量子化を行い、直交変換係数を得る逆量子化部である。209は図1の変換部104の逆となる逆直交変換を行い、予測誤差を得る逆変換部である。210は予測誤差と復号済みの画像からブロックの画像を復元する予測再構成部である。   On the other hand, reference numeral 207 denotes a coefficient decoding unit that decodes the quantized coefficient code from the quantized coefficient code data separated by the decoding / separating unit 202 and restores the quantized coefficient. Reference numeral 208 denotes an inverse quantization unit that performs inverse quantization on the quantization coefficient using the quantization matrix stored in the quantization matrix holding unit 206 to obtain an orthogonal transform coefficient. Reference numeral 209 denotes an inverse transform unit that performs an inverse orthogonal transform that is the inverse of the transform unit 104 in FIG. 1 to obtain a prediction error. A prediction reconstruction unit 210 restores a block image from a prediction error and a decoded image.

上記画像復号装置における画像の復号動作を以下に説明する。本実施形態では実施形態1で生成された動画像ビットストリームをピクチャ単位で入力する構成となっているが、1ピクチャ分の静止画像ビットストリームを入力する構成としても構わない。また、本実施形態では説明を容易にするため、イントラ予測復号処理のみを説明するが、これに限定されずインター予測復号処理においても適用可能である。   An image decoding operation in the image decoding apparatus will be described below. In the present embodiment, the moving image bitstream generated in the first embodiment is input in units of pictures, but a still image bitstream for one picture may be input. Further, in the present embodiment, only the intra prediction decoding process will be described for ease of explanation, but the present invention is not limited to this and can be applied to the inter prediction decoding process.

図2において、端子201から入力された1ピクチャ分のビットストリームは復号・分離部202に入力され、画像を再生するのに必要なヘッダ情報が復号され、さらに後段で使用される符号が分離されて出力される。ヘッダ情報に含まれる量子化マトリクスヘッダ符号は量子化マトリクスヘッダ復号部203に出力される。本実施形態では、図10に示されるビットストリームの例のシーケンスヘッダおよびピクチャヘッダが入力・復号され、符号が出力されるものとする。   In FIG. 2, the bit stream for one picture input from the terminal 201 is input to the decoding / separating unit 202, the header information necessary for reproducing the image is decoded, and the code used in the subsequent stage is further separated. Is output. The quantization matrix header code included in the header information is output to the quantization matrix header decoding unit 203. In the present embodiment, it is assumed that the sequence header and the picture header in the example of the bit stream shown in FIG. 10 are input / decoded and a code is output.

量子化マトリクスヘッダ復号部203では、まず、入力された量子化マトリクスヘッダ符号を復号し、一致情報を復元する。一致情報が復号対象の量子化マトリクスと一致するマトリクスが存在していることを意味する1であった場合には、さらに量子化マトリクスヘッダ符号から参照情報を再生する。復元された参照情報は量子化マトリクス再構成部205に出力される。一方、一致情報が一致するマトリクスが存在しないことを意味する0であった場合には、復号対象の量子化マトリクスの係数を復号する必要性があることを示す情報を復号・分離部202に出力する。本実施形態では一致情報が上述の情報であるものとするが、同様の意味を持つ情報であればその形態は特に限定されない。   First, the quantization matrix header decoding unit 203 decodes the input quantization matrix header code to restore the match information. If the match information is 1, which means that there is a matrix that matches the quantization matrix to be decoded, the reference information is further reproduced from the quantization matrix header code. The restored reference information is output to the quantization matrix reconstruction unit 205. On the other hand, if the matching information is 0, which means that there is no matching matrix, information indicating that it is necessary to decode the coefficient of the quantization matrix to be decoded is output to the decoding / separating unit 202. To do. In the present embodiment, the coincidence information is the above-described information, but the form is not particularly limited as long as the information has the same meaning.

復号・分離部202では、量子化マトリクスヘッダ復号部203から復号対象の量子化マトリクスの係数を復号する必要性があることを示す情報が入力された場合、量子化マトリクス係数復号部204に量子化マトリクス係数符号データを出力する。量子化マトリクス係数復号部204では、入力された量子化マトリクス係数符号データが復号され、復号対象の量子化マトリクスの各係数が復元される。再生された量子化マトリクスの各係数は量子化マトリクス再構成部205に出力される。   In the decoding / separation unit 202, when information indicating that it is necessary to decode the coefficient of the quantization matrix to be decoded is input from the quantization matrix header decoding unit 203, the quantization matrix coefficient decoding unit 204 performs quantization. Outputs matrix coefficient code data. The quantization matrix coefficient decoding unit 204 decodes the input quantization matrix coefficient code data and restores each coefficient of the quantization matrix to be decoded. Each coefficient of the reproduced quantization matrix is output to the quantization matrix reconstruction unit 205.

量子化マトリクス再構成部205では、量子化マトリクスヘッダ復号部203から入力された参照情報もしくは量子化マトリクス係数復号部204から入力された量子化マトリクスの各係数から復号対象の量子化マトリクスを再構成する。量子化マトリクス係数復号部204から量子化マトリクスの各係数が入力された場合には、入力された各係数を用いて量子化マトリクスを再構成し、量子化マトリクス保持部206に出力する。一方、量子化マトリクスヘッダ復号部203から参照情報が入力された場合には、参照情報に基づいて、参照先の量子化マトリクスを量子化マトリクス保持部206から読み出し、復号対象の量子化マトリクスを再構成する。そして再構成された量子化マトリクスは量子化マトリクス保持部206に出力される。量子化マトリクス保持部206では、入力された量子化マトリクスを格納し、必要に応じて量子化マトリクス再構成部205および逆量子化部208に出力される。   The quantization matrix reconstruction unit 205 reconstructs the quantization matrix to be decoded from the reference information input from the quantization matrix header decoding unit 203 or each coefficient of the quantization matrix input from the quantization matrix coefficient decoding unit 204. To do. When each coefficient of the quantization matrix is input from the quantization matrix coefficient decoding unit 204, the quantization matrix is reconfigured using each input coefficient, and is output to the quantization matrix holding unit 206. On the other hand, when reference information is input from the quantization matrix header decoding unit 203, based on the reference information, the reference destination quantization matrix is read from the quantization matrix holding unit 206, and the quantization matrix to be decoded is re-read. Configure. The reconstructed quantization matrix is output to the quantization matrix holding unit 206. The quantization matrix holding unit 206 stores the input quantization matrix and outputs it to the quantization matrix reconstruction unit 205 and the inverse quantization unit 208 as necessary.

復号・分離部202で分離された符号のうち、量子化係数符号データは係数復号部207に入力される。そして、係数復号部207は変換ブロックごとに量子化係数符号データを復号し、量子化係数を復元し、逆量子化部208に出力する。逆量子化部208は、係数復号部207で復元された量子化係数および量子化マトリクス保持部206に格納されている量子化マトリクスを入力する。そして、前記量子化マトリクスを用いて逆量子化を行い、直交変換係数を復元し、逆変換部209に出力する。逆変換部209は、直交変換係数を入力し、図1の変換部104の逆となる逆直交変換を行い、予測誤差を復元し、予測再構成部210に出力する。予測再構成部210は、入力された予測誤差に復号済みの周囲の画素データから予測を行ってブロック単位の画像を復元し、端子211から出力する。   Among the codes separated by the decoding / separating unit 202, the quantized coefficient code data is input to the coefficient decoding unit 207. Then, the coefficient decoding unit 207 decodes the quantized coefficient code data for each transform block, restores the quantized coefficient, and outputs it to the inverse quantization unit 208. The inverse quantization unit 208 receives the quantization coefficient restored by the coefficient decoding unit 207 and the quantization matrix stored in the quantization matrix holding unit 206. Then, inverse quantization is performed using the quantization matrix, the orthogonal transform coefficient is restored, and output to the inverse transform unit 209. The inverse transform unit 209 receives the orthogonal transform coefficient, performs inverse orthogonal transform that is the reverse of the transform unit 104 in FIG. 1, restores the prediction error, and outputs the prediction error to the prediction reconstruction unit 210. The prediction reconstruction unit 210 performs prediction from the surrounding pixel data that has been decoded on the input prediction error, restores an image in block units, and outputs the image from the terminal 211.

図7は、実施形態2に係る画像復号装置における画像復号処理を示すフローチャートである。   FIG. 7 is a flowchart illustrating image decoding processing in the image decoding apparatus according to the second embodiment.

まず、ステップS701にて、復号・分離部202がヘッダ情報を復号し、符号を後段に出力するために分離する。本実施形態では、図10に示されるビットストリームの例のシーケンスヘッダおよびピクチャヘッダが入力・復号され、続く符号が該当するブロックに出力されるものとする。ステップS702にて、量子化マトリクスヘッダ復号部203は、まず、分離された量子化マトリクスヘッダ符号を復号し、一致情報を復元する。一致情報が復号対象の量子化マトリクスと一致するマトリクスが存在していることを意味する1であった場合には、さらに量子化マトリクスヘッダ符号から参照情報を再生する。逆に復号対象の量子化マトリクスと一致するマトリクスが存在しないことを意味する0であった場合には、本ステップではこれ以上の動作は行わない。   First, in step S701, the decoding / separating unit 202 decodes the header information and separates the code for output to the subsequent stage. In the present embodiment, it is assumed that the sequence header and picture header in the example of the bit stream shown in FIG. 10 are input and decoded, and the subsequent code is output to the corresponding block. In step S702, the quantization matrix header decoding unit 203 first decodes the separated quantization matrix header code to restore the match information. If the match information is 1, which means that there is a matrix that matches the quantization matrix to be decoded, the reference information is further reproduced from the quantization matrix header code. On the other hand, if it is 0, which means that there is no matrix that matches the quantization matrix to be decoded, no further operation is performed in this step.

ステップS703にて、画像復号装置はステップS702で生成された一致情報に基づいて、復号対象の量子化マトリクスの係数を復号するか否かを判定する。対象の量子化マトリクスの係数を復号する場合にはステップS704に進み、そうでない場合はステップS705に進む。ステップS704にて、量子化マトリクス係数復号部204は量子化マトリクス係数符号データを復号し、復号対象の量子化マトリクスの各係数を再生する。ステップS705にて、量子化マトリクス再構成部205はステップS702で復元された参照情報もしくはステップS704で復元された量子化マトリクスの各係数から復号対象の量子化マトリクスを再構成する。   In step S703, the image decoding apparatus determines whether to decode the coefficient of the quantization matrix to be decoded based on the coincidence information generated in step S702. If the coefficient of the target quantization matrix is decoded, the process proceeds to step S704. Otherwise, the process proceeds to step S705. In step S704, the quantization matrix coefficient decoding unit 204 decodes the quantization matrix coefficient code data, and reproduces each coefficient of the quantization matrix to be decoded. In step S705, the quantization matrix reconstruction unit 205 reconstructs a quantization matrix to be decoded from the reference information restored in step S702 or each coefficient of the quantization matrix restored in step S704.

ステップS706にて、画像復号装置は全ての量子化マトリクスが復号されたか否かの判定を行い、完了していればステップS707へと進み、そうでなければ次の量子化マトリクスを対象として、ステップS702に戻る。ステップS707にて、係数復号部207は変換ブロック単位でビットストリームから分離された量子化係数符号データを復号し、量子化係数を復元する。ステップS708にて、逆量子化部208はステップS705で再生された量子化マトリクスを用いてステップS707にて再生された量子化係数を逆量子化し、直交変換係数を復元する。ステップS709にて、逆変換部209はステップS708で復元された直交変換係数に対し、逆直交変換を行い、予測誤差を復元する。   In step S706, the image decoding apparatus determines whether all the quantization matrices have been decoded. If completed, the process proceeds to step S707. Otherwise, the next decoding matrix is processed as a target. The process returns to S702. In step S707, the coefficient decoding unit 207 decodes the quantized coefficient code data separated from the bit stream in units of transform blocks, and restores the quantized coefficients. In step S708, the inverse quantization unit 208 performs inverse quantization on the quantization coefficient reproduced in step S707 using the quantization matrix reproduced in step S705, and restores the orthogonal transform coefficient. In step S709, the inverse transform unit 209 performs inverse orthogonal transform on the orthogonal transform coefficient restored in step S708 to restore the prediction error.

ステップS710にて、画像復号装置は、当該ブロック内の全ての変換ブロックの復号が終了したか否かの判定を行い、終了していればステップS711に進み、終了していなければ次の変換ブロックを対象としてステップS707に戻る。ステップS711にて、予測再構成部210は復号済みの周囲の画素データから予測を行い、ステップS709で復元された予測誤差に加算して、ブロックの復号画像を生成する。ステップS712にて、画像復号装置は、全てのブロックの復号が終了したか否かの判定を行い、終了していれば全ての動作を停止して処理を終了し、そうでなければ次のブロックを対象として、ステップS707に戻る。   In step S710, the image decoding apparatus determines whether or not decoding of all the transform blocks in the block has been completed. If it has been completed, the process proceeds to step S711. The process returns to step S707. In step S711, the prediction reconstruction unit 210 performs prediction from the decoded surrounding pixel data, and adds the prediction error restored in step S709 to generate a decoded image of the block. In step S712, the image decoding apparatus determines whether or not the decoding of all the blocks has been completed. If the decoding has been completed, the image decoding apparatus stops all the operations and ends the process. The process returns to step S707.

以上の構成と動作により、実施形態1で生成された一致情報などの少ない符号量で表された符号を含むビットストリームの復号を行い、再生画像を得ることができる。   With the above configuration and operation, it is possible to decode a bitstream including a code represented by a small code amount such as the matching information generated in Embodiment 1 and obtain a reproduced image.

なお、実施形態1と同様にブロックのサイズ、変換ブロックのサイズ、ブロックの形状についてはこれに限定されない。また、1つのシーケンスのビットストリーム中で量子化マトリクス符号データを複数回含めることで、量子化マトリクスの更新をすることも可能である。復号・分離部202で量子化マトリクスヘッダ符号を検出し、量子化マトリクスヘッダ復号部203で一致情報および必要に応じて参照情報を再生する。さらに一致情報に応じて、量子化マトリクス係数復号部204では復号対象の量子化マトリクスの係数を復元する。次に、量子化マトリクス再構成部205では参照情報あるいは量子化マトリクスの各係数から復号対象の量子化マトリクスを復元する。そして、復元された量子化マトリクスのデータを量子化マトリクス保持部206の該当する量子化マトリクスに置き換える。この際、全ての量子化マトリクスを書き換えても良いし、書き換える量子化マトリクスを判別することでその一部を変更することも可能である。   As in the first embodiment, the block size, the transform 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 a plurality of times in one sequence of bit stream. The decoding / separating unit 202 detects the quantization matrix header code, and the quantization matrix header decoding unit 203 reproduces the matching information and, if necessary, the reference information. Further, according to the coincidence information, the quantization matrix coefficient decoding unit 204 restores the coefficients of the quantization matrix to be decoded. Next, the quantization matrix reconstruction unit 205 restores the decoding target quantization matrix from the reference information or each coefficient of the quantization matrix. Then, the restored quantization matrix data is replaced with a corresponding quantization matrix in the quantization matrix holding unit 206. At this time, all the quantization matrices may be rewritten, or a part of them can be changed by determining the quantization matrix to be rewritten.

また、本実施形態では1ピクチャ分の符号データを蓄積してから処理を行う方式を例にとって説明したが、これに限定されない。例えば、ブロック単位や複数のブロックで構成されるスライス単位といった入力方法でも構わない。さらにはブロック等の構成ではなく、固定長のパケット等に分割されているものでも構わない。   In the present embodiment, the method of performing processing after accumulating code data for one picture has been described as an example. However, the present invention is not limited to this. For example, an input method such as a block unit or a slice unit composed of a plurality of blocks may be used. Furthermore, instead of a block or the like, it may be divided into fixed-length packets or the like.

<実施形態3>
図3は本実施形態の画像符号化装置を示すブロック図である。図3において、実施形態1の図1と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。
<Embodiment 3>
FIG. 3 is a block diagram showing an image encoding apparatus according to this embodiment. In FIG. 3, the same numbers are assigned to portions that perform the same functions as those in FIG.

303は図1の予測部103同様、ブロック分割部102で分割された各ブロックを、ブロック単位で予測を行い、予測方法を決定し、それに従って差分値算出を行い、予測誤差を算出する予測部である。321は予測部303で生成された予測誤差に対して、直交変換を行うか否かを判定し、後段に予測誤差を出力するとともに判定結果を変換スキップ判定情報として後段に出力する変換制御部である。304は図1の変換部104同様、各ブロックの予測誤差に対して直交変換を行う変換部であり、入力されたブロックのサイズまたはそれを細分化したブロックを単位に直交変換を行い、直交変換係数を算出する。   Similar to the prediction unit 103 in FIG. 1, a prediction unit 303 predicts each block divided by the block division unit 102 in units of blocks, determines a prediction method, calculates a difference value accordingly, and calculates a prediction error. It is. A conversion control unit 321 determines whether or not to perform orthogonal transformation on the prediction error generated by the prediction unit 303, outputs the prediction error to the subsequent stage, and outputs the determination result to the subsequent stage as conversion skip determination information. is there. Similar to the conversion unit 104 in FIG. 1, 304 is a conversion unit that performs orthogonal conversion on the prediction error of each block, and performs orthogonal conversion on the basis of the input block size or a block obtained by subdividing the block, and performs orthogonal conversion Calculate the coefficient.

322は後段の量子化部305における量子化処理との整合性を取るために予測誤差のビット深度調整を行うビット深度調整部である。ここでのビット深度調整の度合いは入力映像のビット深度や変換部304における直交変換に伴うビット深度調整、量子化部305における量子化処理に伴うビット深度調整および量子化マトリクスの係数値などによって定まるものとする。例えば、本実施形態においては、所定値である13と入力画像のビット深度との差の分だけ予測誤差を左側にビットシフトすることによりビット深度調整を行うものとする。すなわち、入力画像のビット深度が8ビットであれば、5ビット分予測誤差を左側にビットシフトするものとする。ただし、ビット深度調整に用いられる値はこれに限定されない。   Reference numeral 322 denotes a bit depth adjustment unit that adjusts the bit depth of the prediction error in order to maintain consistency with the quantization processing in the quantization unit 305 in the subsequent stage. The degree of bit depth adjustment here is determined by the bit depth of the input video, the bit depth adjustment accompanying orthogonal transformation in the transform unit 304, the bit depth adjustment accompanying quantization processing in the quantization unit 305, the coefficient value of the quantization matrix, and the like. Shall. For example, in the present embodiment, the bit depth adjustment is performed by bit-shifting the prediction error to the left by the difference between the predetermined value 13 and the bit depth of the input image. That is, if the bit depth of the input image is 8 bits, the prediction error is bit-shifted to the left by 5 bits. However, the value used for bit depth adjustment is not limited to this.

305は量子化マトリクス保持部107に格納された量子化マトリクスによって、変換部304で生成された直交変換係数もしくはビット深度調整部322でビット深度調整をされた予測誤差を量子化する量子化部である。311はヘッダ情報や予測、変換に関する符号を生成するとともに、前述の各符号化部で生成された符号データを統合してビットストリームを形成して出力する統合符号化部である。図1の統合符号化部111とは変換スキップ判定情報をさらに符号化して符号データを生成し、ビットストリームを形成して出力する点が異なる。   A quantization unit 305 quantizes the orthogonal transformation coefficient generated by the conversion unit 304 or the prediction error adjusted by the bit depth adjustment unit 322 by the quantization matrix stored in the quantization matrix holding unit 107. is there. Reference numeral 311 denotes an integrated encoding unit that generates codes related to header information, prediction, and conversion, and also integrates the code data generated by each of the above-described encoding units to form and output a bitstream. 1 is different from the integrated encoding unit 111 of FIG. 1 in that conversion skip determination information is further encoded to generate code data, and a bit stream is formed and output.

上記画像符号化装置における画像の符号化動作を以下に説明する。   An image encoding operation in the image encoding apparatus will be described below.

予測部303では、まず、ブロック単位の予測が行われ、予測誤差が生成される。生成された予測誤差は変換制御部321に出力される。変換制御部321では、入力された予測誤差に対し直交変換を行うか否かを決定する。そして、直交変換を行う場合には予測誤差を変換部304に出力し、直交変換を行わない場合には予測誤差をビット深度調整部322に出力する。直交変換を行うか否かの決定方法は特に限定しないが、画像の特徴や直交変換後の変換係数の大きさなどから決定しても良い。また、決定された判定結果を変換スキップ判定情報として統合符号化部311に出力する。変換部304では、変換制御部321から入力された予測誤差を変換ブロックサイズ単位で直交変換を行い、直交変換係数を生成する。   In the prediction unit 303, first, prediction in block units is performed, and a prediction error is generated. The generated prediction error is output to the conversion control unit 321. The transformation control unit 321 determines whether or not to perform orthogonal transformation on the input prediction error. If orthogonal transformation is performed, the prediction error is output to the conversion unit 304, and if orthogonal transformation is not performed, the prediction error is output to the bit depth adjustment unit 322. The method for determining whether or not to perform orthogonal transform is not particularly limited, but may be determined based on the characteristics of the image, the size of the transform coefficient after orthogonal transform, and the like. Further, the determined determination result is output to the integrated encoding unit 311 as conversion skip determination information. The transform unit 304 performs orthogonal transform on the prediction error input from the transform control unit 321 in transform block size units to generate orthogonal transform coefficients.

一方、ビット深度調整部322では、変換制御部321から入力された予測誤差を変換ブロック単位でビット深度調整を行い、ビット深度調整された予測誤差を生成する。量子化部305では、変換部304から出力された直交変換係数あるいはビット深度調整部322から出力されたビット深度調整された予測誤差に対し、量子化マトリクス保持部107に格納されている量子化マトリクスを用いて量子化し、量子化係数を生成する。生成された量子化係数は係数符号化部106に入力される。   On the other hand, the bit depth adjustment unit 322 performs bit depth adjustment on the prediction error input from the conversion control unit 321 in units of conversion blocks, and generates a prediction error that has been adjusted in bit depth. In the quantization unit 305, the quantization matrix stored in the quantization matrix holding unit 107 for the orthogonal transformation coefficient output from the conversion unit 304 or the prediction error adjusted in bit depth output from the bit depth adjustment unit 322. Is used to generate a quantized coefficient. The generated quantized coefficient is input to the coefficient encoding unit 106.

統合符号化部311では画像の符号化に必要なヘッダ情報を符号化し、入力された量子化マトリクスヘッダ符号および量子化マトリクス係数符号を統合する。統合符号化部311では図1の統合符号化部111で符号化するヘッダ情報に加えて変換制御部321から入力された変換スキップ判定情報もさらに符号化する。   The integrated encoding unit 311 encodes header information necessary for image encoding, and integrates the input quantization matrix header code and quantization matrix coefficient code. The integrated encoding unit 311 further encodes the conversion skip determination information input from the conversion control unit 321 in addition to the header information encoded by the integrated encoding unit 111 of FIG.

図8は実施形態3に係る画像符号化装置における画像符号化処理を示すフローチャートである。図8において、実施形態1の図6と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。   FIG. 8 is a flowchart showing image coding processing in the image coding apparatus according to the third embodiment. In FIG. 8, the same numbers are assigned to portions that perform the same functions as those in FIG. 6 of the first embodiment, and description thereof is omitted.

ステップS820にて、変換制御部321はステップS609で生成された予測誤差に対し直交変換を行うか否かを決定して変換スキップ判定情報を生成する。ステップS821にて、変換スキップ判定情報に基づいて、直交変換を行うのであればステップS610に進み、行わないのであればステップS822に進む。ステップS822にて、ビット深度調整部322はステップS609で生成された予測誤差を変換ブロック単位でビット深度調整を行い、ビット深度調整された予測誤差を生成する。ステップS811にて、量子化部305はステップS610で生成された直交変換係数もしくはステップS822で生成されたビット深度調整された予測誤差を、ステップS601で生成された量子化マトリクスを用いて量子化し、量子化係数を生成する。ステップS823にて、統合符号化部311はステップS821で生成された変換スキップ判定情報を符号化する。   In step S820, the conversion control unit 321 determines whether or not to perform orthogonal transform on the prediction error generated in step S609, and generates conversion skip determination information. In step S821, based on the conversion skip determination information, if orthogonal transform is to be performed, the process proceeds to step S610, and if not, the process proceeds to step S822. In step S822, the bit depth adjustment unit 322 adjusts the bit depth of the prediction error generated in step S609 in units of transform blocks, and generates a prediction error that has been adjusted in bit depth. In step S811, the quantization unit 305 quantizes the orthogonal transformation coefficient generated in step S610 or the prediction error adjusted in bit depth generated in step S822 using the quantization matrix generated in step S601. Generate quantization coefficients. In step S823, the integrated encoding unit 311 encodes the conversion skip determination information generated in step S821.

以上の構成と動作により、特にステップS820からステップS823によって、変換スキップに対応するフラットな量子化マトリクスを符号化する際に、冗長な符号を送る必要が無いため、符号量を削減したビットストリームを構成することができる。   With the above-described configuration and operation, it is not necessary to send a redundant code when encoding a flat quantization matrix corresponding to conversion skip, particularly in steps S820 to S823. Can be configured.

本実施形態においては、変換ブロック単位で変換スキップ判定情報が符号化される構成としたが、変換スキップ判定情報が符号化される単位はこれに限定されない。ブロック単位で符号化しても良いし、各色成分で共通した変換スキップ判定情報を用いて符号量を節約する構成をとることも可能である。符号化の方法は特に限定しないが、ハフマン符号や算術符号などを用いることができる。   In this embodiment, the conversion skip determination information is encoded in units of conversion blocks. However, the unit in which the conversion skip determination information is encoded is not limited to this. The encoding may be performed in units of blocks, and a configuration that saves the code amount by using the conversion skip determination information common to each color component may be employed. The encoding method is not particularly limited, but a Huffman code or an arithmetic code can be used.

<実施形態4>
図4は本実施形態の画像復号装置を示すブロック図である。図4において、実施形態2の図2と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。本実施形態では、実施形態3で生成されたビットストリームの復号について説明する。
<Embodiment 4>
FIG. 4 is a block diagram showing an image decoding apparatus according to this embodiment. In FIG. 4, the same numbers are assigned to portions that perform the same functions as those in FIG. 2 of the second embodiment, and descriptions thereof are omitted. In the present embodiment, decoding of the bitstream generated in the third embodiment will be described.

402は入力されたビットストリームのヘッダ情報を復号し、ビットストリームから必要な符号を分離して後段へ出力する復号・分離部である。復号・分離部402は図3の統合符号化部311と逆の動作を行う。図2の復号・分離部202とは変換スキップ判定情報をさらに復号・再生して後段に出力するところが異なる。408は量子化マトリクス保持部206に格納された量子化マトリクスを用いて量子化係数に逆量子化を行い、逆量子化係数を再生する逆量子化部である。本実施形態における逆量子化係数は実施形態3における直交変換係数もしくはビット深度調整された予測誤差に相当する。   A decoding / separating unit 402 decodes header information of the input bitstream, separates necessary codes from the bitstream, and outputs them to the subsequent stage. The decoding / separating unit 402 performs the reverse operation of the integrated encoding unit 311 in FIG. 2 differs from the decoding / separating unit 202 in that the conversion skip determination information is further decoded / reproduced and output to the subsequent stage. Reference numeral 408 denotes an inverse quantization unit that performs inverse quantization on the quantization coefficient using the quantization matrix stored in the quantization matrix holding unit 206 and reproduces the inverse quantization coefficient. The inverse quantization coefficient in the present embodiment corresponds to the orthogonal transform coefficient in the third embodiment or the prediction error with the bit depth adjusted.

421は復号・分離部402から入力された変換スキップ判定情報に基づいて、逆直交変換を行うか否かを判定し、後段に逆量子化係数を出力する逆変換制御部である。409は図3の変換部304の逆となる逆直交変換を行い、予測誤差を再生する逆変換部である。422は図3のビット深度調整部322の逆となるビット深度調整を行い、予測誤差を再生するビット深度逆調整部である。ここでのビット深度逆調整の度合いは出力画像のビット深度や、逆変換部409における逆直交変換に伴うビット深度調整、逆量子化部408における量子化処理に伴うビット深度調整および量子化マトリクスの係数値などによって定まるものとする。例えば、本実施形態においては、13と出力画像のビット深度との差の分だけ係数を右側にビットシフトすることによりビット深度逆調整を行うものとする。すなわち、出力画像のビット深度が8ビットであれば、5ビット分予測誤差を右側にビットシフトするものとする。ただし、ビット深度逆調整に用いられる値はこれに限定されない。410は予測誤差と復号済みの画像からブロックの画像を再生する予測再構成部である。   Reference numeral 421 denotes an inverse transform control unit that determines whether to perform inverse orthogonal transform based on the transform skip determination information input from the decoding / separating unit 402 and outputs an inverse quantization coefficient to the subsequent stage. Reference numeral 409 denotes an inverse transform unit that performs inverse orthogonal transform that is the inverse of the transform unit 304 in FIG. 3 and reproduces a prediction error. Reference numeral 422 denotes a bit depth reverse adjustment unit that performs bit depth adjustment that is the reverse of the bit depth adjustment unit 322 of FIG. 3 and reproduces a prediction error. Here, the degree of bit depth reverse adjustment is the bit depth of the output image, bit depth adjustment accompanying inverse orthogonal transformation in the inverse transform unit 409, bit depth adjustment accompanying quantization processing in the inverse quantization unit 408, and quantization matrix It is determined by the coefficient value. For example, in this embodiment, bit depth reverse adjustment is performed by bit-shifting the coefficient to the right by the difference between 13 and the bit depth of the output image. That is, if the bit depth of the output image is 8 bits, the prediction error is bit-shifted to the right by 5 bits. However, the value used for bit depth reverse adjustment is not limited to this. A prediction reconstruction unit 410 reproduces a block image from the prediction error and the decoded image.

上記画像復号装置における画像の復号動作を以下に説明する。   An 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, the bit stream for one picture input from the terminal 201 is input to the decoding / separating unit 402, the header information necessary for reproducing the image is decoded, and the code used in the subsequent stage is further separated. Are output as appropriate. The quantization matrix header code included in the header information is output to the quantization matrix header decoding unit 203. Also, in the decoding / separating unit 402, when information indicating that it is necessary to decode the coefficient of the quantization matrix to be decoded is input from the quantization matrix header decoding unit 203, the quantization matrix coefficient decoding unit 204 Quantization matrix coefficient code data is output. Further, the decoding / separating unit 402 decodes / reproduces conversion skip determination information indicating whether or not to perform inverse orthogonal transform in units of transform blocks from the bit stream, and outputs the decoding skip determination information to the inverse transform control unit 421.

逆量子化部408では、係数復号部207で再生された量子化係数および量子化マトリクス保持部206に格納されている量子化マトリクスを入力する。そして、前記量子化マトリクスを用いて逆量子化を行い、逆量子化係数を再生し、逆変換制御部421に出力する。逆変換制御部421では、復号・分離部402から入力された変換スキップ判定情報に基づいて、入力された逆量子化係数に対し逆直交変換を行うか否かを決定する。そして、逆直交変換を行う場合には逆量子化係数を逆変換部409に出力し、行わない場合には逆量子化係数をビット深度逆調整部422に出力する。逆変換部209では、入力された逆量子化係数である直交変換係数に対し、図3の変換部304の逆となる逆直交変換を行い、予測誤差を再生し、予測再構成部410に出力する。   In the inverse quantization unit 408, the quantization coefficient reproduced by the coefficient decoding unit 207 and the quantization matrix stored in the quantization matrix holding unit 206 are input. Then, inverse quantization is performed using the quantization matrix, the inverse quantization coefficient is reproduced, and output to the inverse transform control unit 421. Based on the transform skip determination information input from the decoding / separating unit 402, the inverse transform control unit 421 determines whether to perform inverse orthogonal transform on the input inverse quantization coefficient. Then, when performing inverse orthogonal transform, the inverse quantization coefficient is output to the inverse transform unit 409, and when not performed, the inverse quantization coefficient is output to the bit depth inverse adjustment unit 422. The inverse transform unit 209 performs inverse orthogonal transform that is the reverse of the transform unit 304 in FIG. 3 on the orthogonal transform coefficient that is the input inverse quantization coefficient, reproduces the prediction error, and outputs the prediction error to the prediction reconstruction unit 410. To do.

一方、ビット深度逆調整部422では、逆変換制御部421から入力された逆量子化係数であるビット深度調整された予測誤差を変換ブロック単位でビット深度逆調整を行い、予測誤差を再生し、予測再構成部410に出力する。予測再構成部410では、入力された予測誤差に復号済みの周囲の画素データから予測を行ってブロック単位の画像を再生し、端子211から出力する。   On the other hand, the bit depth reverse adjustment unit 422 performs bit depth reverse adjustment on a transform block basis for the bit depth adjusted prediction error, which is the inverse quantization coefficient input from the inverse conversion control unit 421, and reproduces the prediction error. The result is output to the prediction reconstruction unit 410. The prediction reconstruction unit 410 performs prediction from the surrounding pixel data decoded on the input prediction error, reproduces an image in block units, and outputs it from the terminal 211.

図9は実施形態4に係る画像復号装置における画像復号処理を示すフローチャートである。実施形態2の図7と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。
ステップS921にて、復号・分離部402はビットストリームから変換ブロック単位で逆直交変換を行うか否かを示す変換スキップ判定情報を復号・再生する。ステップS922にて、ステップS921で生成された変換スキップ判定情報に基づいた判定を行う。逆直交変換を行う場合はS709に進み、そうでない場合はS923に進む。ステップS923にて、ビット深度逆調整部422はステップS708で生成された逆量子化係数を変換ブロック単位でビット深度逆調整を行い、予測誤差を再生する。
FIG. 9 is a flowchart showing image decoding processing in the image decoding apparatus according to the fourth embodiment. The same numbers are assigned to portions that perform the same functions as those in FIG. 7 of the second embodiment, and descriptions thereof are omitted.
In step S921, the decoding / separating unit 402 decodes / reproduces conversion skip determination information indicating whether or not to perform inverse orthogonal transform in units of transform blocks from the bitstream. In step S922, determination based on the conversion skip determination information generated in step S921 is performed. If the inverse orthogonal transform is to be performed, the process proceeds to S709; otherwise, the process proceeds to S923. In step S923, the bit depth inverse adjustment unit 422 performs bit depth inverse adjustment of the inverse quantization coefficient generated in step S708 on a transform block basis to reproduce a prediction error.

以上の構成と動作により、変換スキップ処理を有した画像復号装置においても、実施形態3で生成された、量子化マトリクス一致情報等で少ない符号量で表されたフラットな量子化マトリクスの復号を行い、再生画像を得ることができる。   With the above configuration and operation, the image decoding apparatus having the conversion skip processing also decodes the flat quantization matrix expressed in the quantization matrix matching information generated in the third embodiment and represented by a small code amount. A reproduced image can be obtained.

また、本実施形態においては、変換ブロックごとに変換スキップ判定情報が存在する構成としたが、ヘッダ部分にフラグを持ち、それによって復号装置が変換スキップ処理を有するか否かを切り替える構成をとっても良い。その場合、変換スキップ処理を用いる場合のみフラットな量子化マトリクスを記憶しておき参照対象とし、そうでない場合は参照対象から外すような構成をとっても良い。   Further, in this embodiment, the conversion skip determination information exists for each conversion block. However, a configuration may be adopted in which a flag is included in the header portion and thereby the decoding apparatus switches whether to have conversion skip processing. . In that case, a configuration may be adopted in which a flat quantization matrix is stored and used as a reference object only when conversion skip processing is used, and is excluded from the reference object otherwise.

<実施形態5>
図1、図2、図3、図4に示した各処理部はハードウェアでもって構成しているものとして上記実施形態では説明した。しかし、図1、図2、図3、図4に示した各処理部で行なう処理をコンピュータプログラムでもって構成しても良い。
<Embodiment 5>
The above embodiments have been described on the assumption that the processing units shown in FIGS. 1, 2, 3, and 4 are configured by hardware. However, the processing performed by each processing unit shown in FIGS. 1, 2, 3, and 4 may be configured by a computer program.

図12は、上記各実施形態に係る画像表示装置に適用可能なコンピュータのハードウェアの構成例を示すブロック図である。   FIG. 12 is a block diagram illustrating a configuration example of computer hardware applicable to the image display device according to each of the embodiments.

CPU1201は、RAM1202やROM1203に格納されているコンピュータプログラムやデータを用いてコンピュータ全体の制御を行うと共に、上記各実施形態に係る画像処理装置が行うものとして上述した各処理を実行する。即ち、CPU1201は、図1、図2、図3、図4に示した各処理部として機能することになる。   The CPU 1201 controls the entire computer using computer programs and data stored in the RAM 1202 and the ROM 1203, and executes each process described above as performed by the image processing apparatus according to each of the above embodiments. That is, the CPU 1201 functions as each processing unit shown in FIG. 1, FIG. 2, FIG. 3, and FIG.

RAM1202は、外部記憶装置1206からロードされたコンピュータプログラムやデータ、I/F(インターフェース)1207を介して外部から取得したデータなどを一時的に記憶するためのエリアを有する。更に、RAM1202は、CPU1201が各種の処理を実行する際に用いるワークエリアを有する。即ち、RAM1202は、例えば、ピクチャメモリとして割当てたり、その他の各種のエリアを適宜提供することができる。   The RAM 1202 has an area for temporarily storing computer programs and data loaded from the external storage device 1206, data acquired from the outside via an I / F (interface) 1207, and the like. Further, the RAM 1202 has a work area used when the CPU 1201 executes various processes. That is, the RAM 1202 can be allocated as, for example, a picture memory or can provide various other areas as appropriate.

ROM1203には、本コンピュータの設定データや、ブートプログラムなどが格納されている。操作部1204は、キーボードやマウスなどにより構成されており、本コンピュータのユーザが操作することで、各種の指示をCPU1201に対して入力することができる。出力部1205は、CPU1201による処理結果を出力する。また出力部1205は例えば液晶ディスプレイのような表示装置で構成して処理結果を表示することができる。   The ROM 1203 stores setting data for the computer, a boot program, and the like. The operation unit 1204 is configured by a keyboard, a mouse, and the like, and can input various instructions to the CPU 1201 when operated by a user of the computer. The output unit 1205 outputs the processing result by the CPU 1201. The output unit 1205 can be configured by a display device such as a liquid crystal display to display the processing result.

外部記憶装置1206は、ハードディスクドライブ装置に代表される、大容量情報記憶装置である。外部記憶装置1206には、OS(オペレーティングシステム)や、図1、図2、図3、図4に示した各部の機能をCPU1201に実現させるためのコンピュータプログラムが保存されている。更には、外部記憶装置1206には、処理対象としての各画像が保存されていても良い。   The external storage device 1206 is a large-capacity information storage device represented by a hard disk drive device. The external storage device 1206 stores an OS (Operating System) and computer programs for causing the CPU 1201 to realize the functions of the units illustrated in FIGS. 1, 2, 3, and 4. Furthermore, each image as a processing target may be stored in the external storage device 1206.

外部記憶装置1206に保存されているコンピュータプログラムやデータは、CPU1201による制御に従って適宜RAM1202にロードされ、CPU1201による処理対象となる。I/F1207には、LANやインターネット等のネットワーク、投影装置や表示装置などの他の機器を接続することができ、本コンピュータはこのI/F1207を介して様々な情報を取得したり、送出したりすることができる。1208は上述の各部を繋ぐバスである。   Computer programs and data stored in the external storage device 1206 are appropriately loaded into the RAM 1202 under the control of the CPU 1201 and are processed by the CPU 1201. The I / F 1207 can be connected to a network such as a LAN or the Internet, and other devices such as a projection device and a display device. The computer can acquire and transmit various information via the I / F 1207. Can be. Reference numeral 1208 denotes a bus connecting the above-described units.

上述の構成からなる作動は前述のフローチャートで説明した作動をCPU1201が中心となってその制御を行う。   The operation having the above-described configuration is controlled by the CPU 1201 as the operation described in the above flowchart.

<その他の実施形態>
本発明の目的は、前述した機能を実現するコンピュータプログラムのコードを記録した記憶媒体を、システムに供給し、そのシステムがコンピュータプログラムのコードを読み出し実行することによっても達成される。この場合、記憶媒体から読み出されたコンピュータプログラムのコード自体が前述した実施形態の機能を実現し、そのコンピュータプログラムのコードを記憶した記憶媒体は本発明を構成する。また、そのプログラムのコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した機能が実現される場合も含まれる。
<Other embodiments>
The object of the present invention can also be achieved by supplying a storage medium storing a computer program code for realizing the above-described functions to the system, and the system reading and executing the computer program code. In this case, the computer program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the computer program code constitutes the present invention. In addition, the operating system (OS) running on the computer performs part or all of the actual processing based on the code instruction of the program, and the above-described functions are realized by the processing. .

さらに、以下の形態で実現しても構わない。すなわち、記憶媒体から読み出されたコンピュータプログラムコードを、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込む。そして、そのコンピュータプログラムのコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行って、前述した機能が実現される場合も含まれる。   Furthermore, you may implement | achieve with the following forms. That is, the computer program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer. Then, based on the instruction of the code of the computer program, the above-described functions are realized by the CPU or the like provided in the function expansion card or function expansion unit performing part or all of the actual processing.

本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応するコンピュータプログラムのコードが格納されることになる。   When the present invention is applied to the above storage medium, the computer program code corresponding to the flowchart described above is stored in the storage medium.

Claims (7)

ビットストリームから、量子化係数、および、前記量子化係数が直交変換された係数であるか否かを示す判定情報を取得する取得手段と、
前記ビットストリームから量子化マトリクスを取得し、前記判定情報に関わらず、前記取得された量子化マトリクスに基づいて前記量子化係数を逆量子化する逆量子化手段と、
前記取得手段によって取得された判定情報が、前記量子化係数が直交変換された係数であることを示す場合、前記逆量子化手段によって逆量子化された係数を逆直交変換する逆直交変換手段と、
前記取得手段によって取得された判定情報が、前記量子化係数が直交変換されていない係数であることを示す場合、前記逆量子化手段によって逆量子化された係数のビット深度を調整する調整手段と、
前記逆直交変換手段によって得られたデータ、あるいは前記調整手段によって得られたデータから画像を復号する復号手段と、
を有することを特徴とする画像復号装置。
Acquisition means for acquiring, from a bitstream, determination information indicating whether or not the quantization coefficient and the quantization coefficient are orthogonally transformed coefficients;
An inverse quantization means for obtaining a quantization matrix from the bitstream and dequantizing the quantization coefficient based on the obtained quantization matrix regardless of the determination information;
When the determination information acquired by the acquisition unit indicates that the quantized coefficient is a coefficient obtained by orthogonal transform, an inverse orthogonal transform unit that performs inverse orthogonal transform on the coefficient inversely quantized by the inverse quantization unit; ,
An adjustment unit that adjusts the bit depth of the coefficient inversely quantized by the inverse quantization unit when the determination information acquired by the acquisition unit indicates that the quantization coefficient is a coefficient that has not been orthogonally transformed; ,
Decoding means for decoding an image from the data obtained by the inverse orthogonal transform means or the data obtained by the adjustment means;
An image decoding apparatus comprising:
前記取得手段は、さらに、直交変換された量子化係数と、直交変換されていない量子化係数とが同一の量子化マトリクスで量子化されたか否かを示す一致情報を取得し、
前記逆量子化手段は、前記一致情報が直交変換された量子化係数と、直交変換されていない量子化係数とが同一の量子化マトリクスで量子化されたことを示す場合、前記判定情報に関わらず、前記取得された量子化マトリクスに基づいて前記量子化係数を逆量子化することを特徴とする請求項1に記載の画像復号装置。
The obtaining means further obtains coincidence information indicating whether or not the orthogonally transformed quantization coefficient and the quantization coefficient not orthogonally transformed are quantized with the same quantization matrix,
The dequantization means relates to the determination information when the coincidence information indicates that the quantized coefficient obtained by orthogonal transform and the quantized coefficient not orthogonally transformed are quantized by the same quantization matrix. The image decoding apparatus according to claim 1, wherein the quantization coefficient is inversely quantized based on the acquired quantization matrix.
前記逆直交変換手段によって得られたデータ、あるいは前記調整手段によって得られたデータは、参照するブロックの画素と復号対象のブロックの画素の差分値である予測誤差であることを特徴とする請求項1または2に記載の画像復号装置。   The data obtained by the inverse orthogonal transform unit or the data obtained by the adjustment unit is a prediction error which is a difference value between a pixel of a block to be referenced and a pixel of a block to be decoded. The image decoding device according to 1 or 2. 画像復号方法であって、
ビットストリームから、量子化係数、および、前記量子化係数が直交変換された係数であるか否かを示す判定情報を取得する取得ステップと、
前記ビットストリームから量子化マトリクスを取得し、前記判定情報に関わらず、前記取得された量子化マトリクスに基づいて前記量子化係数を逆量子化する逆量子化ステップと、
前記取得ステップにおいて取得された判定情報が、前記量子化係数が直交変換された係数であることを示す場合、前記逆量子化ステップにおいて逆量子化された係数を逆直交変換する逆直交変換ステップと、
前記取得ステップにおいて取得された判定情報が、前記量子化係数が直交変換されていない係数であることを示す場合、前記逆量子化ステップにおいて逆量子化された係数のビット深度を調整する調整ステップと、
前記逆直交変換ステップにおいて得られたデータ、あるいは前記調整ステップにおいて得られたデータから画像を復号する復号ステップと、
を有することを特徴とする画像復号方法。
An image decoding method,
An acquisition step of acquiring, from the bitstream, determination information indicating a quantization coefficient and whether the quantization coefficient is an orthogonally transformed coefficient;
An inverse quantization step of obtaining a quantization matrix from the bitstream and dequantizing the quantization coefficient based on the obtained quantization matrix regardless of the determination information;
When the determination information acquired in the acquisition step indicates that the quantized coefficient is a coefficient obtained by orthogonal transform, an inverse orthogonal transform step that performs inverse orthogonal transform on the coefficient dequantized in the inverse quantization step; ,
When the determination information acquired in the acquisition step indicates that the quantized coefficient is a coefficient that has not been orthogonally transformed, an adjustment step of adjusting the bit depth of the coefficient inversely quantized in the inverse quantization step; ,
A decoding step of decoding an image from the data obtained in the inverse orthogonal transform step or the data obtained in the adjustment step;
An image decoding method characterized by comprising:
前記取得ステップにおいて、さらに、直交変換された量子化係数と、直交変換されていない量子化係数とが同一の量子化マトリクスで量子化されたか否かを示す一致情報を取得し、
前記逆量子化ステップにおいて、前記一致情報が直交変換された量子化係数と、直交変換されていない量子化係数とが同一の量子化マトリクスで量子化されたことを示す場合、前記判定情報に関わらず、前記取得された量子化マトリクスに基づいて前記量子化係数を逆量子化することを特徴とする画像復号方法。
In the acquisition step, further, acquisition of coincidence information indicating whether or not the quantized coefficient that has been orthogonally transformed and the quantized coefficient that has not been orthogonally transformed have been quantized with the same quantization matrix,
In the inverse quantization step, when the coincidence information indicates that the quantized coefficient obtained by orthogonal transformation and the quantized coefficient not orthogonally transformed are quantized by the same quantization matrix, An image decoding method characterized by dequantizing the quantization coefficient based on the acquired quantization matrix.
前記逆直交変換ステップにおいて得られたデータ、あるいは前記調整ステップにおいて得られたデータは、参照するブロックの画素と復号対象のブロックの画素の差分値である予測誤差であることを特徴とする画像復号方法。   The data obtained in the inverse orthogonal transform step or the data obtained in the adjustment step is a prediction error which is a difference value between a pixel of a block to be referenced and a pixel of a block to be decoded. Method. コンピュータが読み出して実行することにより、前記コンピュータを、請求項1乃至3のいずれか一項に記載の画像復号装置として機能させることを特徴とするプログラム。   A program that causes the computer to function as the image decoding device according to any one of claims 1 to 3 by being read and executed by the computer.
JP2016218209A 2016-11-08 2016-11-08 Image decoding apparatus, image decoding method and program Active JP6272441B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016218209A JP6272441B2 (en) 2016-11-08 2016-11-08 Image decoding apparatus, image decoding method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016218209A JP6272441B2 (en) 2016-11-08 2016-11-08 Image decoding apparatus, image decoding method and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2012144322A Division JP6041554B2 (en) 2012-06-27 2012-06-27 Image encoding device, image encoding method and program, image decoding device, image decoding method and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017248472A Division JP6541763B2 (en) 2017-12-25 2017-12-25 Image decoding apparatus, image decoding method and program

Publications (2)

Publication Number Publication Date
JP2017060177A true JP2017060177A (en) 2017-03-23
JP6272441B2 JP6272441B2 (en) 2018-01-31

Family

ID=58390796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016218209A Active JP6272441B2 (en) 2016-11-08 2016-11-08 Image decoding apparatus, image decoding method and program

Country Status (1)

Country Link
JP (1) JP6272441B2 (en)

Citations (9)

* Cited by examiner, † Cited by third party
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
JPH1188880A (en) * 1997-02-08 1999-03-30 Matsushita Electric Ind Co Ltd Quantization matrix for still picture and moving image
JP2000102004A (en) * 1998-09-18 2000-04-07 Sony Corp Image processing unit, its method and serving medium
JP2006262004A (en) * 2005-03-16 2006-09-28 Toshiba Corp Dynamic image encoding/decoding method and device
JP2007520165A (en) * 2004-01-30 2007-07-19 松下電器産業株式会社 Video encoding method and video decoding method
JP2007520948A (en) * 2004-01-20 2007-07-26 松下電器産業株式会社 Image encoding method, image decoding method, image encoding device, image decoding device, and program
WO2011052215A1 (en) * 2009-10-30 2011-05-05 パナソニック株式会社 Decoding method, decoder apparatus, encoding method, and encoder apparatus
WO2012077408A1 (en) * 2010-12-09 2012-06-14 ソニー株式会社 Image processing device and image processing method
WO2012108237A1 (en) * 2011-02-10 2012-08-16 ソニー株式会社 Image processing device and image processing method

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
JPH1188880A (en) * 1997-02-08 1999-03-30 Matsushita Electric Ind Co Ltd Quantization matrix for still picture and moving image
JP2000102004A (en) * 1998-09-18 2000-04-07 Sony Corp Image processing unit, its method and serving medium
JP2007520948A (en) * 2004-01-20 2007-07-26 松下電器産業株式会社 Image encoding method, image decoding method, image encoding device, image decoding device, and program
JP2007520165A (en) * 2004-01-30 2007-07-19 松下電器産業株式会社 Video encoding method and video decoding method
JP2006262004A (en) * 2005-03-16 2006-09-28 Toshiba Corp Dynamic image encoding/decoding method and device
WO2011052215A1 (en) * 2009-10-30 2011-05-05 パナソニック株式会社 Decoding method, decoder apparatus, encoding method, and encoder apparatus
WO2012077408A1 (en) * 2010-12-09 2012-06-14 ソニー株式会社 Image processing device and image processing method
WO2012108237A1 (en) * 2011-02-10 2012-08-16 ソニー株式会社 Image processing device and image processing method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CUILING LAN ET AL.: "CE5.f: Residual Scalar Quantization for HEVC", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-H0361_r1, JPN6016024740, January 2012 (2012-01-01), pages 1 - 7, ISSN: 0003638178 *
CUILING LAN ET AL.: "Intra and inter coding tools for screen contents", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-E145, JPN6016024738, March 2011 (2011-03-01), pages 1 - 11, ISSN: 0003638176 *
JUNICHI TANAKA ET AL.: "Quantization Matrix for HEVC", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-E073, JPN6014053953, March 2011 (2011-03-01), pages 1 - 24, ISSN: 0003638175 *
MATTEO NACCARI ET AL.: "CE5.a: Quantization for transform skipping", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-H0208_r1, JPN6016038774, February 2012 (2012-02-01), pages 1 - 9, ISSN: 0003638177 *

Also Published As

Publication number Publication date
JP6272441B2 (en) 2018-01-31

Similar Documents

Publication Publication Date Title
US10652554B2 (en) Image coding apparatus, image coding method, image decoding apparatus, image decoding method, and storage medium
US11122283B2 (en) Image coding apparatus, image coding method, and program, and image decoding apparatus, image decoding method and program
JP6324590B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
JP6157114B2 (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
JP2013038758A (en) Image encoder, image encoding method, program, image decoder, image decoding method and program
JP6041554B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
JP2013012887A (en) Image encoding apparatus, image encoding method and program, image decoding apparatus, image decoding 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
JP6272441B2 (en) Image decoding apparatus, image decoding method and program
JP6891325B2 (en) Image coding method
JP7279109B2 (en) Image decoding method and program
JP6743225B2 (en) Image decoding apparatus, image decoding method and program
JP6618578B2 (en) Image encoding apparatus and image decoding apparatus
WO2014002422A1 (en) Image encoding apparatus, image encoding method and program, image decoding apparatus, and image decoding method 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
JP2018142969A (en) Image encoding apparatus, image encoding method and program, image decoding apparatus, and image decoding method and program
JP2020098986A (en) Image encoding device, image decoding device, control method thereof, and program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170912

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171110

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: 20171205

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171228

R151 Written notification of patent or utility model registration

Ref document number: 6272441

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151