[go: up one dir, main page]

JP2013038758A - Image encoder, image encoding method, program, image decoder, image decoding method and program - Google Patents

Image encoder, image encoding method, program, image decoder, image decoding method and program Download PDF

Info

Publication number
JP2013038758A
JP2013038758A JP2011243937A JP2011243937A JP2013038758A JP 2013038758 A JP2013038758 A JP 2013038758A JP 2011243937 A JP2011243937 A JP 2011243937A JP 2011243937 A JP2011243937 A JP 2011243937A JP 2013038758 A JP2013038758 A JP 2013038758A
Authority
JP
Japan
Prior art keywords
quantization matrix
unit
quantization
decoding
encoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2011243937A
Other languages
Japanese (ja)
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 JP2011243937A priority Critical patent/JP2013038758A/en
Priority to PCT/JP2012/004471 priority patent/WO2013008459A1/en
Publication of JP2013038758A publication Critical patent/JP2013038758A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

【課題】 従来の符号化方式や現在標準化活動中のHEVC符号化方式においては、直交変換の形状が従来の正方形以外に存在する場合でも対応する量子化マトリクスが定義できず、直交変換の形状に最適な量子化マトリクスを適用することができなかった。
【解決手段】 入力画像を複数のブロックに分割し、分割されたブロックに対して符号化済みのブロックから予測を行い、予測誤差を生成し、正方形ないし長方形の複数の直交変換の処理ブロック形状から、使用する処理ブロック形状を決定し、生成された予測誤差に前記決定された直交変換を行い、変換係数を生成し、決定された直交変換の処理ブロック形状に基づいて量子化マトリクスを選択し、選択された量子化マトリクスを用いて変換係数を量子化して量子化係数を生成し、生成された量子化係数を符号化する。
【選択図】 図1
PROBLEM TO BE SOLVED: In a conventional coding method or a HEVC coding method currently being standardized, a corresponding quantization matrix cannot be defined even when the shape of orthogonal transformation exists other than the conventional square, and the shape of the orthogonal transformation is obtained. The optimal quantization matrix could not be applied.
An input image is divided into a plurality of blocks, the divided blocks are predicted from coded blocks, a prediction error is generated, and a plurality of square or rectangular orthogonal transform processing block shapes are used. Determining a processing block shape to be used, performing the determined orthogonal transform on the generated prediction error, generating a transform coefficient, selecting a quantization matrix based on the determined processing block shape of the orthogonal transform, The transform coefficient is quantized using the selected quantization matrix to generate a quantized coefficient, and the generated quantized coefficient is encoded.
[Selection] Figure 1

Description

本発明は画像符号化装置、画像符号化方法及びプログラム、画像復号装置、画像復号方法及びプログラムに関し、特に量子化方法及び量子化マトリクスの符号化方法・復号方法に関する。   The present invention relates to an image encoding device, an image encoding method and program, an image decoding device, an image decoding method and a program, and more particularly to a quantization method and 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 for compressing and recording a moving image, H.264 is used. H.264 / MPEG-4 AVC (hereinafter referred to as H.264) is known. (Non-Patent Document 1)
H. In H.264, each element of the quantization matrix can be changed to an arbitrary value by encoding scaling_list information. According to Non-Patent Document 1, each element of the quantization matrix can take an arbitrary value by adding delta_scale which is a difference value to the immediately preceding element.

近年、H.264の後継としてさらに高効率な符号化方式の国際標準化を行う活動が開始された。JCT−VC(Joint Collaborative Team on Video Coding)がISO/IECとITU−Tの間で設立され、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, and standardized as HEVC (High Efficiency Video Coding) (hereinafter, HEVC).

JCT−VCでは対象となる画面サイズの増大に伴い、従来のマクロブロック(16×16画素)より大きなブロックサイズでの分割が検討されている。この大きなサイズの基本ブロックはLCU(Largest Coding Unit)と呼ばれ、そのサイズは最大64×64画素として検討が進められている。(非特許文献2)LCUはさらに予測や変換を行う単位となるサブブロックに分割される。   In JCT-VC, division with a larger block size than a conventional macroblock (16 × 16 pixels) is being studied as the target screen size increases. This large-sized basic block is called an LCU (Large Coding Unit), and studies are underway with a maximum size of 64 × 64 pixels. (Non-patent document 2) The LCU is further divided into sub-blocks which are units for performing prediction and conversion.

符号化効率向上のため、正方形サブブロックをベースとした従来のイントラ予測・直交変換方法に加えて短距離イントラ予測といった長方形サブブロックをベースとしたイントラ予測・直交変換方法が検討されている。(非特許文献3)図2に短距離イントラ予測に用いられるサブブロック分割の一例を表す。図2の200は、基本ブロックを表しており、説明を簡易にするため、16×16画素の構成とし、太枠内の各四角形はサブブロックを表すものとする。図2の200は従来の正方形サブブロック分割の一例を表しており、16×16画素の基本ブロックは8×8画素または4×4画素の正方形のサブブロックに分割されている。一方、図2の201、202は短距離イントラ予測を用いた長方形サブブロック分割の一例を表しており、16×16画素の基本ブロックは4×16または16×4画素の長方形のサブブロックに分割されている。このように正方形だけでなく長方形のサブブロックも用いて符号化処理を行っている。   In order to improve coding efficiency, an intra prediction / orthogonal transform method based on a rectangular sub-block such as a short-range intra prediction is being studied in addition to a conventional intra prediction / orthogonal transform method based on a square sub-block. (Non-Patent Document 3) FIG. 2 shows an example of sub-block division used for short-range intra prediction. 200 in FIG. 2 represents a basic block, and in order to simplify the description, it is assumed that the configuration is 16 × 16 pixels, and each square in the thick frame represents a sub-block. 2 represents an example of a conventional square sub-block division. A basic block of 16 × 16 pixels is divided into square sub-blocks of 8 × 8 pixels or 4 × 4 pixels. On the other hand, 201 and 202 in FIG. 2 represent an example of rectangular sub-block division using short-range intra prediction, and a basic block of 16 × 16 pixels is divided into rectangular sub-blocks of 4 × 16 or 16 × 4 pixels. Has been. In this way, encoding processing is performed using not only a square but also a rectangular sub-block.

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−E603.doc インターネット< http://phenix.int−evry.fr/jct/doc_end_user/documents/5_Geneva/wg11/ >JCT-VC contribution JCTVC-E603. doc Internet <http: // phenix. int-evry. fr / jct / doc_end_user / documents / 5_Geneva / wg11 /> JCT−VC 寄書 JCTVC−E278.doc インターネット< http://phenix.int−evry.fr/jct/doc_end_user/documents/5_Geneva/wg11/ >JCT-VC contribution JCTVC-E278. doc Internet <http: // phenix. int-evry. fr / jct / doc_end_user / documents / 5_Geneva / wg11 />

HEVCにおいても、H.264と同様に量子化マトリクスの各要素を任意の値に設定できるような仕組みを導入することが考えられている。さらにHEVCでは、正方形だけでなく長方形のサブブロック分割およびそれに対応した直交変換の形状が検討されているが、それぞれの直交変換の結果の係数の分布は直交変換の形状によって異なる。そのため、直交変換の形状と量子化マトリクスが適合していない場合、適切に量子化が行われず、画質に大きな劣化を生じることになる。したがって、本発明は上述した課題を解決するためになされたものであり、直交変換の形状に応じて適応的に量子化マトリクスを使用することを目的としている。さらに、直交変換の形状ごとに量子化マトリクスを設定する際にその符号量を抑制することを目的としている。   Also in HEVC, H.C. As in the case of H.264, it is considered to introduce a mechanism capable of setting each element of the quantization matrix to an arbitrary value. Further, in HEVC, not only squares but also rectangular sub-block divisions and orthogonal transform shapes corresponding thereto are studied, but the distribution of coefficients resulting from the respective orthogonal transforms differs depending on the orthogonal transform shapes. For this reason, when the shape of the orthogonal transform and the quantization matrix do not match, the quantization is not appropriately performed, and the image quality is greatly deteriorated. Accordingly, the present invention has been made to solve the above-described problems, and an object thereof is to adaptively use a quantization matrix in accordance with the shape of orthogonal transform. Furthermore, it aims at suppressing the code amount when setting a quantization matrix for every shape of orthogonal transformation.

上述の問題点を解決するため、本発明の画像符号化装置は以下の構成を有する。すなわち、入力画像を複数のブロックに分割するブロック分割手段と、ブロック分割手段によって分割されたブロックに対して符号化済みのブロックから予測を行い、予測誤差を生成する予測手段と、正方形ないし長方形の複数の直交変換の処理ブロック形状から、使用する処理ブロック形状を決定し、前記予測手段によって生成された予測誤差に前記決定された直交変換を行い、変換係数を生成する変換手段と、前記変換手段によって決定された直交変換の処理ブロック形状に基づいて量子化マトリクスを選択する量子化マトリクス選択手段と、前記量子化マトリクス選択手段によって選択された量子化マトリクスを用いて変換係数を量子化して量子化係数を生成する量子化手段と、前記量子化手段によって生成された量子化係数を符号化する係数符号化手段とを有する。   In order to solve the above-described problems, the image coding apparatus of the present invention has the following configuration. That is, a block dividing unit that divides an input image into a plurality of blocks, a prediction unit that performs prediction from a block that has been encoded with respect to the blocks divided by the block dividing unit, and generates a prediction error; A transform unit that determines a processing block shape to be used from a plurality of processing block shapes of orthogonal transform, performs the determined orthogonal transform on the prediction error generated by the prediction unit, and generates a transform coefficient; and the transform unit Quantization matrix selection means for selecting a quantization matrix based on the processing block shape of the orthogonal transformation determined by the step, and quantizing by quantizing the transform coefficient using the quantization matrix selected by the quantization matrix selection means Quantization means for generating coefficients, and encoding the quantized coefficients generated by the quantization means And a coefficient encoding means that.

さらに、本発明の画像復号装置は以下の構成を有する。すなわち、入力されたビットストリームから必要な符号を分離する復号手段と、前記復号手段によって復号された情報から、逆直交変換の処理ブロック形状を決定する決定手段と、復号手段によって復号された情報から、量子化係数を復号する係数復号手段と、前記係数復号手段によって復号された量子化係数を逆量子化する際に用いられる量子化マトリクスを復号する量子化マトリクス復号手段と、前記決定手段によって決定された逆直交変換の処理ブロック形状に基づいて量子化マトリクスを選択する量子化マトリクス選択手段と、前記量子化マトリクス選択手段によって選択された量子化マトリクスを用いて、前記係数復号手段によって復号された量子化係数を逆量子化して変換係数を生成する逆量子化手段と、前記決定手段によって決定された逆直交変換の形状に基づいて、前記逆量子化手段によって生成された変換係数を逆直交変換して予測誤差を生成する逆直交変換手段とを有する。   Furthermore, the image decoding apparatus of the present invention has the following configuration. That is, a decoding unit that separates a necessary code from an input bitstream, a determination unit that determines a processing block shape of inverse orthogonal transform from information decoded by the decoding unit, and information decoded by the decoding unit A coefficient decoding means for decoding the quantized coefficients; a quantization matrix decoding means for decoding a quantization matrix used for inverse quantization of the quantized coefficients decoded by the coefficient decoding means; A quantization matrix selecting unit that selects a quantization matrix based on the processed block shape of the inverse orthogonal transform, and a coefficient decoded by the coefficient decoding unit using the quantization matrix selected by the quantization matrix selecting unit An inverse quantization means for inversely quantizing the quantization coefficient to generate a transform coefficient; and Based on the shape of the constant inverse orthogonal transform, and a inverse orthogonal transform means for generating a prediction error of the transform coefficients generated by the inverse quantization unit inverse orthogonal transform to.

本発明により、正方形ないし長方形の直交変換の処理ブロック形状ごとに量子化マトリクスを設定することができるようになり、それぞれの処理ブロック形状で最適な量子化処理が行えるようになる。   According to the present invention, a quantization matrix can be set for each processing block shape of square or rectangular orthogonal transform, and an optimal quantization process can be performed in each processing block shape.

実施形態1における画像符号化装置の構成を示すブロック図1 is a block diagram illustrating a configuration of an image encoding device according to a first embodiment. サブブロック分割の一例を示す図Diagram showing an example of sub-block division 実施形態2における画像復号装置の構成を示すブロック図FIG. 3 is a block diagram illustrating a configuration of an image decoding device according to a second embodiment. 量子化マトリクスの一例を示す図Diagram showing 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. (a)、(b)ビットストリームの構造の一例を示す図(A), (b) The figure which shows an example of the structure of a bit stream 実施形態3における画像符号化装置の構成を示すブロック図FIG. 9 is a block diagram illustrating a configuration of an image encoding device according to a third embodiment. 実施形態4における画像復号装置の構成を示すブロック図FIG. 9 is a block diagram illustrating a configuration of an image decoding device according to a fourth 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. 本発明の画像符号化装置、復号装置に適用可能なコンピュータのハードウェアの構成例を示すブロック図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. 実施形態6における画像符号化装置の構成を示すブロック図FIG. 9 is a block diagram illustrating a configuration of an image encoding device according to a sixth embodiment. 実施形態7における画像復号装置の構成を示すブロック図FIG. 9 is a block diagram illustrating a configuration of an image decoding device according to a seventh embodiment. 実施形態6に係る画像符号化装置における画像符号化処理を示すフローチャート10 is a flowchart showing image coding processing in the image coding apparatus according to the sixth embodiment. 実施形態7に係る画像復号装置における画像復号処理を示すフローチャート10 is a flowchart showing image decoding processing in the image decoding apparatus according to the seventh embodiment. (a)〜(c)正方形の量子化マトリクスから長方形の量子化マトリクスを算出する例(A) to (c) Example of calculating a rectangular quantization matrix from a square quantization matrix

以下、添付の図面を参照して、本願発明をその好適な実施形態に基づいて詳細に説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。   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は入力画像を複数の基本ブロックに分割するブロック分割部である。本実施形態では説明のため、ブロック分割部101においては16×16画素の基本ブロックに分割するものとして説明するが、これに限定されない。   In FIG. 1, reference numeral 101 denotes a block dividing unit that divides an input image into a plurality of basic blocks. In the present embodiment, for description, the block dividing unit 101 is described as being divided into basic blocks of 16 × 16 pixels, but is not limited thereto.

102はブロック分割部101で分割された各基本ブロックを、該基本ブロックと同一サイズもしくは基本ブロックよりも小さいサイズのサブブロックに分割してサブブロックサイズを生成し、サブブロック単位で符号化済みのブロックから予測を行う予測部である。予測部102ではさらに予測方法を決定し、それに従って予測並びに差分値算出を行い、予測誤差を算出する。静止画または動画の場合のイントラフレームではイントラ予測を行い、動画の場合は動き補償予測も行うものとする。イントラ予測は一般的には、複数の参照方法に対して、周囲の画素のデータからその予測値を算出する参照画素を参照する方法(予測方法)を選択することで実現する。本実施形態では説明のため、予測部102においては基本ブロックを16×16画素、8×8画素、4×4画素の正方形、または16×4画素、4×16画素の長方形のサブブロックに分割して予測を行うものとして説明するが、これに限定されない。   102 divides each basic block divided by the block dividing unit 101 into sub-blocks having the same size as the basic block or smaller than the basic block to generate a sub-block size, and has been encoded in units of sub-blocks A prediction unit that performs prediction from a block. The prediction unit 102 further determines a prediction method, performs prediction and difference value calculation accordingly, and calculates a prediction error. It is assumed that intra prediction is performed for an intra frame in the case of a still image or a moving image, and motion compensation prediction is also performed for a moving image. Intra prediction is generally realized by selecting a method (prediction method) for referring to a reference pixel for calculating a prediction value from data of surrounding pixels for a plurality of reference methods. In the present embodiment, for the sake of explanation, the prediction unit 102 divides the basic block into 16 × 16 pixel, 8 × 8 pixel, 4 × 4 pixel square, or 16 × 4 pixel, 4 × 16 pixel rectangular sub-blocks. However, the present invention is not limited to this.

108は量子化マトリクスを生成し、一旦格納する量子化マトリクス保持部である。格納される量子化マトリクスの生成方法については特に限定しないが、ユーザが量子化マトリクスを入力しても良いし、入力画像の特性から算出しても、初期値としてあらかじめ指定されたものを使用してももちろん良い。   Reference numeral 108 denotes a quantization matrix holding unit that generates and temporarily stores a quantization matrix. The method of 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.

103は各サブブロックの予測誤差に対して直交変換を行う変換部である。本実施形態では、予測部102で決定したサブブロックのサイズを単位に直交変換を行い、直交変換係数を算出するものとする。本実施形態では16×16画素、8×8画素、4×4画素、または16×4画素、4×16画素の処理ブロック形状で直交変換を行うものとする。直交変換に関しては離散コサイン変換の他に離散サイン変換、カルーネン・レーベ変換、アダマール変換等の変換を用いてもよい。   Reference numeral 103 denotes a conversion unit that performs orthogonal transform on the prediction error of each subblock. In this embodiment, it is assumed that orthogonal transform is performed by performing orthogonal transform in units of sub-block sizes determined by the prediction unit 102. In this embodiment, it is assumed that orthogonal transformation is performed in a processing block shape of 16 × 16 pixels, 8 × 8 pixels, 4 × 4 pixels, or 16 × 4 pixels and 4 × 16 pixels. As for the orthogonal transform, in addition to the discrete cosine transform, a transform such as a discrete sine transform, a Karhunen-Loeve transform, and a Hadamard transform may be used.

107は予測部102で決定したサブブロックサイズを入力して量子化マトリクス保持部108に格納された量子化マトリクスの中から適用する量子化マトリクスを選択する量子化マトリクス選択部である。   Reference numeral 107 denotes a quantization matrix selection unit that inputs the sub-block size determined by the prediction unit 102 and selects a quantization matrix to be applied from the quantization matrices stored in the quantization matrix holding unit 108.

104は量子化マトリクス選択部107で選択された量子化マトリクスによって前記直交変換係数を量子化する量子化部である。この量子化によって量子化係数を得ることができる。   Reference numeral 104 denotes a quantization unit that quantizes the orthogonal transform coefficient using the quantization matrix selected by the quantization matrix selection unit 107. A quantization coefficient can be obtained by this quantization.

105はこのようにして得られた量子化係数を、符号化して量子化係数符号データを生成する係数符号化部である。符号化の方法は特に限定しないが、ハフマン符号や算術符号などを用いることができる。   Reference numeral 105 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.

109は量子化マトリクス保持部108に格納された量子化マトリクスを符号化して、量子化マトリクス符号データを生成する量子化マトリクス符号化部である。量子化マトリクスの符号化方法については後述するが、特に限定されるものではない。量子化マトリクスの各要素の値そのもの、もしくは直前の要素の値との差分や他の量子化マトリクスとの差分に対して、ハフマン符号や算術符号などを用いることができる。   Reference numeral 109 denotes a quantization matrix encoding unit that encodes the quantization matrix stored in the quantization matrix holding unit 108 and generates quantization matrix code data. The encoding method of the quantization matrix will be described later, but is not particularly limited. A Huffman code, an arithmetic code, or the like can be used for the value of each element of the quantization matrix itself, the difference from the value of the immediately preceding element, or the difference from another quantization matrix.

106はヘッダ情報や予測、変換に関する符号を生成するとともに、係数符号化部105で生成された量子化係数符号データおよび量子化マトリクス符号化部109で生成された量子化マトリクス符号データを統合する統合符号化部である。予測、変換に関する符号とは、例えば予測部102で生成されたサブブロックサイズや予測方法等の符号であるとする。   106 generates a code related to header information, prediction, and conversion, and integrates the quantization coefficient code data generated by the coefficient encoding unit 105 and the quantization matrix code data generated by the quantization matrix encoding unit 109 It is an encoding part. The code related to prediction and conversion is, for example, a code such as a sub-block size generated by the prediction unit 102 and a prediction method.

上記画像符号化装置における画像の符号化動作を以下に説明する。本実施形態では動画像データをフレーム単位に入力する構成となっているが、1フレーム分の静止画像データを入力する構成としても構わない。また、本実施形態では、説明を容易にするため、イントラ予測符号化の処理のみを説明するが、これに限定されずインター予測符号化の処理においても適用可能である。   An image encoding operation in the image encoding apparatus will be described below. In the present embodiment, moving image data is input in units of frames, but still image data for one frame 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.

1フレーム分の画像データはブロック分割部101に入力され、16×16画素の基本ブロック単位に分割される。分割された基本ブロックは予測部102に入力される。   Image data for one frame is input to the block dividing unit 101 and divided into basic block units of 16 × 16 pixels. The divided basic block is input to the prediction unit 102.

予測部102では予測の単位となるサブブロックのサイズおよび予測方法を決定し、サブブロック単位の予測が行われ、予測誤差が生成される。   The prediction unit 102 determines the size and prediction method of sub-blocks that are units of prediction, performs prediction on a sub-block basis, and generates a prediction error.

変換部103では、予測部102で生成されたサブブロック単位の予測誤差に対して直交変換を行い、直交変換係数を生成する。本実施形態では、サブブロックのサイズ・形状と直交変換のサイズ・形状は同一である。生成された直交変換係数を量子化部104に入力する。   The transform unit 103 performs orthogonal transform on the prediction error in units of sub-blocks generated by the prediction unit 102 to generate orthogonal transform coefficients. In the present embodiment, the size and shape of the sub-block and the size and shape of the orthogonal transform are the same. The generated orthogonal transform coefficient is input to the quantization unit 104.

量子化マトリクス保持部108には、該フレームの量子化に用いられる量子化マトリクス、すなわち各サブブロックの形状に対応した量子化マトリクスが保持されている。本実施形態では、サブブロックサイズが4×4画素、8×8画素、16×16画素、16×4画素、4×16画素の5種類である。4×4画素の直交変換に対応する第1量子化マトリクス、8×8画素の直交変換に対応する第2量子化マトリクス、16×16画素の直交変換に対応する第3量子化マトリクスを保持する。さらに、16×4画素の直交変換に対応する第4量子化マトリクス、4×16画素の直交変換に対応する第5量子化マトリクスを保持する。本実施形態では上記の5種類の量子化マトリクスを保持するが、サブブロックの形状の増減に合わせて、保持する量子化マトリクスも増減する。   The quantization matrix holding unit 108 holds a quantization matrix used for quantization of the frame, that is, a quantization matrix corresponding to the shape of each sub-block. In this embodiment, there are five types of sub-block sizes: 4 × 4 pixels, 8 × 8 pixels, 16 × 16 pixels, 16 × 4 pixels, and 4 × 16 pixels. Holds a first quantization matrix corresponding to orthogonal transformation of 4 × 4 pixels, a second quantization matrix corresponding to orthogonal transformation of 8 × 8 pixels, and a third quantization matrix corresponding to orthogonal transformation of 16 × 16 pixels. . Furthermore, a fourth quantization matrix corresponding to 16 × 4 pixel orthogonal transformation and a fifth quantization matrix corresponding to 4 × 16 pixel orthogonal transformation are held. In the present embodiment, the above five types of quantization matrices are held, but the held quantization matrices also increase / decrease in accordance with the increase / decrease of the sub-block shape.

量子化マトリクス符号化部109は量子化マトリクスを量子化マトリクス保持部108からサブブロックサイズによって順に読み出し、符号化して量子化マトリクス符号データを生成する。符号化方式としては、本実施形態では、各要素をそのまま符号化する、直前の要素との差分を符号化する、DPCM、他の量子化マトリクスとの差分を符号化するといった方式を用いることとするが、方式はこれらに限定されない。また、これらと合わせて同じ値が続く時は符号化を打ち切る符号を挿入することにより量子化マトリクスの符号量を抑制することもできる。   The quantization matrix encoding unit 109 sequentially reads out the quantization matrix from the quantization matrix holding unit 108 according to the sub-block size and encodes it to generate quantization matrix code data. As an encoding method, in this embodiment, each element is encoded as it is, a difference from the immediately preceding element is encoded, and a difference from DPCM or another quantization matrix is used. However, the method is not limited to these. In addition, when the same value continues along with these, the code amount of the quantization matrix can be suppressed by inserting a code for stopping the encoding.

具体的な量子化マトリクスの符号化方法の例について図4を用いて説明する。400は、量子化マトリクスを表している。説明を簡易にするため、4×4画素のサブブロックに対応した16画素分の構成とし、太枠内の各正方形は要素を表しているものとする。ここでは図4の400〜404に示された5種類の量子化マトリクスを例にとって符号化方法について説明する。   An example of a specific quantization matrix encoding method will be described with reference to FIG. Reference numeral 400 denotes a quantization matrix. In order to simplify the description, it is assumed that the configuration is for 16 pixels corresponding to a 4 × 4 pixel sub-block, and each square in the thick frame represents an element. Here, the encoding method will be described using the five types of quantization matrices 400 to 404 shown in FIG. 4 as an example.

図4の400は量子化マトリクスの各要素が1から始まり、1ずつ増加していく場合の例である。例えば、この量子化マトリクスを符号化する場合、1から16までの値を一つずつ符号化する。また、最初の要素である1を符号化した後は直前の要素との差分、すなわちこの例では差分値である1を15回符号化しても良い。さらにDPCMのように、最初の要素である1と二番目の要素と最初の要素の差分である1を符号化した後は、予測差分である0を符号化しても良い。   400 in FIG. 4 is an example in which each element of the quantization matrix starts from 1 and increases by 1. For example, when the quantization matrix is encoded, the values 1 to 16 are encoded one by one. Further, after encoding the first element 1, the difference from the immediately preceding element, that is, the difference value 1 in this example, may be encoded 15 times. Further, like the DPCM, after encoding the first element 1 and the second element and 1 being the difference between the first elements, the prediction difference 0 may be encoded.

図4の401は量子化マトリクスの各要素が3から始まり、1ずつ増加していく場合の例である。例えば、この量子化マトリクスを符号化する場合、3から18までの値を一つずつ符号化する。また、最初の要素である3を符号化した後は直前の要素との差分、すなわちこの例では差分値である1を15回符号化しても良い。さらに、400に示される量子化マトリクスの各要素の値との差分、すなわちこの例では差分値である2を16回符号化しても良い。   401 in FIG. 4 is an example in which each element of the quantization matrix starts from 3 and increases by 1. For example, when this quantization matrix is encoded, the values from 3 to 18 are encoded one by one. In addition, after encoding the first element 3, the difference from the immediately preceding element, that is, the difference value 1 in this example, may be encoded 15 times. Furthermore, a difference from each element value of the quantization matrix indicated by 400, that is, a difference value 2 in this example, may be encoded 16 times.

402は量子化マトリクスの各要素が3から始まり、1ずつ10まで増加し、10が3回続いた後、また1ずつ16まで増加していく場合の例である。例えば、この量子化マトリクスを符号化する場合、400や401同様、各要素の値を一つずつ符号化する。また、直前の要素との差分、あるいは他の量子化マトリクスの要素との差分を符号化しても良い。402の各要素の値を400の各要素の値との差分を符号化する場合、初めの3から一つ目の10までは差分値である2を符号化し、二つ目の10は差分値である1を符号化する。その先、三つ目の10以降は最後まで差分値が0となるため、差分値である0を7回符号化する。また、符号化の打ち切りを示す符号を符号化することにより、差分値の符号量を低減させる方法を用いても良い。   402 is an example in which each element of the quantization matrix starts from 3 and increases by 1 to 10, and after 10 continues 3 times, it increases to 1 by 16 again. For example, when this quantization matrix is encoded, each element value is encoded one by one as in 400 and 401. Also, a difference from the immediately preceding element or a difference from another quantization matrix element may be encoded. When encoding the difference between the value of each element of 402 and the value of each element of 400, the first 3 to the first 10 are encoded as the difference value 2 and the second 10 is the difference value 1 is encoded. After that, since the difference value is 0 to the end after the third 10, the difference value 0 is encoded seven times. Alternatively, a method of reducing the code amount of the difference value by encoding a code indicating the termination of encoding may be used.

403は量子化マトリクスの各要素が3から始まり、1ずつ10まで増加し、その後は最後まで10であり続ける場合の例である。例えば、この量子化マトリクスを符号化する場合、400や401同様、各要素の値を一つずつ符号化する。また、直前の要素との差分、あるいは他の量子化マトリクスの要素との差分を符号化しても良い。403の各要素の値を直前の各要素との差分を符号化する場合、初めの3から一つ目の10までは差分値である1を符号化する。その先は、最後まで差分値が0となるため、差分値である0を7回符号化する。また、符号化の打ち切りを示す符号を符号化することにより、差分値の符号量を低減させる方法を用いても良い。   403 is an example in which each element of the quantization matrix starts from 3 and increases by 1 to 10, and then continues to 10 until the end. For example, when this quantization matrix is encoded, each element value is encoded one by one as in 400 and 401. Also, a difference from the immediately preceding element or a difference from another quantization matrix element may be encoded. When the difference between each element value of 403 and the immediately preceding element is encoded, the difference value 1 is encoded from the first 3 to the first 10. Since the difference value is zero until the end, the difference value 0 is encoded seven times. Alternatively, a method of reducing the code amount of the difference value by encoding a code indicating the termination of encoding may be used.

404は量子化マトリクスの各要素が6から始まり、徐々に増加していく場合の例である。例えば、この量子化マトリクスを符号化する場合、400や401同様、各要素の値を一つずつ符号化する。また、直前の要素との差分、あるいは他の量子化マトリクスの要素との差分を符号化しても良い。また、404の各要素の値を直前の各要素との差分を符号化する場合、まず一つ目の要素である6を符号化する。その後は直前の要素との差分値を符号化する。すなわち、7、0、7、0、0、8、0、0、0、4、0、0、5、0、5の順に符号化する。上記に提示した量子化マトリクスの符号化方法は説明のために記述されたものであり、符号化方法はこれらに限定されない。   404 is an example in which each element of the quantization matrix starts from 6 and gradually increases. For example, when this quantization matrix is encoded, each element value is encoded one by one as in 400 and 401. Also, a difference from the immediately preceding element or a difference from another quantization matrix element may be encoded. Further, when the difference between each element value 404 and the immediately preceding element is encoded, the first element 6 is encoded first. Thereafter, the difference value from the immediately preceding element is encoded. That is, encoding is performed in the order of 7, 0, 7, 0, 0, 8, 0, 0, 0, 4, 0, 0, 5, 0, 5. The quantization matrix encoding method presented above is described for the sake of explanation, and the encoding method is not limited to these.

量子化マトリクス選択部107は、予測部102で決定したサブブロックサイズを用いて、当該サブブロックの量子化に用いられる量子化マトリクスを選択する。具体的には、量子化マトリクス保持部108に格納された量子化マトリクスの中から当該サブブロックの量子化に用いる量子化マトリクスを選択するものとする。例えば、本実施形態では、サブブロックサイズが16×4画素である場合には、第4量子化マトリクスを量子化マトリクス保持部108から入力し、量子化部104に出力する。   The quantization matrix selection unit 107 uses the subblock size determined by the prediction unit 102 to select a quantization matrix used for quantization of the subblock. Specifically, a quantization matrix used for quantization of the sub-block is selected from the quantization matrices stored in the quantization matrix holding unit 108. For example, in the present embodiment, when the sub-block size is 16 × 4 pixels, the fourth quantization matrix is input from the quantization matrix holding unit 108 and output to the quantization unit 104.

量子化部104では、変換部103から出力された直交変換係数を量子化マトリクス選択部107で選択した量子化マトリクスを用いて量子化して量子化係数を生成する。生成された量子化係数は係数符号化部105に入力される。   The quantization unit 104 quantizes the orthogonal transform coefficient output from the conversion unit 103 using the quantization matrix selected by the quantization matrix selection unit 107 to generate a quantization coefficient. The generated quantized coefficient is input to the coefficient encoding unit 105.

係数符号化部105では、量子化部104で生成された量子化係数を符号化し、量子化係数符号データを生成して統合符号化部106に出力する。   The coefficient encoding unit 105 encodes the quantization coefficient generated by the quantization unit 104, generates quantized coefficient code data, and outputs it to the integrated encoding unit 106.

一方、量子化マトリクス符号化部109では、量子化マトリクス保持部108に格納された各量子化マトリクスを符号化し、量子化マトリクス符号データを生成して統合符号化部106に出力する。   On the other hand, the quantization matrix encoding unit 109 encodes each quantization matrix stored in the quantization matrix holding unit 108, generates quantization matrix code data, and outputs the data to the integrated encoding unit 106.

統合符号化部106は画像のシーケンス、フレーム、ピクチャおよびスライスのヘッダといった符号を生成する。また、これらのヘッダのいずれかに量子化マトリクス符号化部109で生成された量子化マトリクス符号データを挿入する。こうしたヘッダ部分の符号や係数符号化部105で生成された量子化係数符号データを統合し、さらに予測部102で生成されたサブブロックサイズや予測の情報を符号化し、ビットストリームを生成し出力する。   The integrated encoding unit 106 generates codes such as image sequences, frames, pictures, and slice headers. Further, the quantization matrix code data generated by the quantization matrix encoding unit 109 is inserted into any of these headers. The header part code and the quantized coefficient code data generated by the coefficient encoding unit 105 are integrated, the sub block size and prediction information generated by the prediction unit 102 are encoded, and a bit stream is generated and output. .

図7(a)は実施形態1で出力されるビットストリームの一例である。本実施形態では、ビットストリーム中のシーケンスヘッダ部に量子化マトリクスが符号化されている構成となっているが、符号化の位置はこれに限定されない。ピクチャヘッダ部やその他のヘッダ部に符号化される構成をとってももちろん構わない。また、1つのシーケンスの中で量子化マトリクスの変更を行う場合、量子化マトリクスを新たに符号化することで更新することも可能である。この際、全ての量子化マトリクスを書き換えても良いし、書き換える量子化マトリクスのサブブロックサイズを指定することでその一部を変更するようにすることも可能である。さらには書き換える量子化マトリクスのサブブロックサイズおよびその変更する要素の位置を指定して部分的に変更することももちろん可能である。   FIG. 7A shows an example of the bit stream output in the first embodiment. In this embodiment, the quantization matrix is encoded in the sequence header portion in the bit stream, but 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. When the quantization matrix is changed in one sequence, it can be updated by newly encoding the quantization matrix. At this time, all of the quantization matrices may be rewritten, or a part of the quantization matrix can be changed by designating the sub-block size of the quantization matrix to be rewritten. Furthermore, it is of course possible to partially change by specifying the sub-block size of the quantization matrix to be rewritten and the position of the element to be changed.

図5は実施形態1に係る画像符号化装置における画像符号化処理を示すフローチャートである。まず、ステップS501にて、量子化マトリクス保持部108は量子化マトリクスを一つ以上生成する。本実施形態では、サブブロックサイズが5種類あることから、前述の通り、第1から第5までの5種類の量子化マトリクスを生成する。   FIG. 5 is a flowchart showing an image encoding process in the image encoding apparatus according to the first embodiment. First, in step S501, the quantization matrix holding unit 108 generates one or more quantization matrices. In this embodiment, since there are five types of sub-block sizes, as described above, five types of first to fifth quantization matrices are generated.

ステップS502にて、量子化マトリクス符号化部109は量子化マトリクス保持部108で生成されたそれぞれの量子化マトリクスを符号化する。   In step S502, the quantization matrix encoding unit 109 encodes each quantization matrix generated by the quantization matrix holding unit 108.

ステップS503にて、統合符号化部106はビットストリームのヘッダ部の符号化を行い出力する。ここで、ステップS502で符号化した量子化マトリクス符号データをヘッダとともに出力する。   In step S503, the integrated encoding unit 106 encodes and outputs the header portion of the bitstream. Here, the quantization matrix code data encoded in step S502 is output together with the header.

ステップS504にて、ブロック分割部101は、フレーム単位の入力画像を基本ブロック単位(16×16画素)に分割する。   In step S504, the block dividing unit 101 divides the input image in frame units into basic block units (16 × 16 pixels).

ステップS505にて、予測部102は、サブブロックのサイズを決定する。ステップS506にて、予測部102は、ステップS505で生成されたサブブロックサイズ単位の予測を行う。   In step S505, the prediction unit 102 determines the size of the sub-block. In step S506, the prediction unit 102 performs prediction in units of sub-block sizes generated in step S505.

ステップS507にて、画像符号装置は、ステップS506で決定したサブブロックサイズに基づく判定を行う。サブブロックサイズが4×4画素であればS508に進み、8×8画素であればS528に進み、16×16画素であればS548に進み、16×4画素であればS568に進み、4×16画素であればS588に進む。   In step S507, the image coding apparatus performs determination based on the sub-block size determined in step S506. If the sub-block size is 4 × 4 pixels, the process proceeds to S508; if the sub-block size is 8 × 8 pixels, the process proceeds to S528; if the sub-block size is 16 × 16 pixels, the process proceeds to S548; If it is 16 pixels, the process proceeds to S588.

ステップS508にて、変換部103はステップS505で生成された予測誤差に対して、4×4画素のサブブロック単位で直交変換を行い、直交変換係数を生成する。   In step S508, the transform unit 103 performs orthogonal transform on the prediction error generated in step S505 in units of 4 × 4 pixel sub-blocks to generate orthogonal transform coefficients.

ステップS509にて、量子化マトリクス選択部107は、ステップS501で生成された量子化マトリクスから第1量子化マトリクスを選択する。   In step S509, the quantization matrix selection unit 107 selects a first quantization matrix from the quantization matrix generated in step S501.

また、ステップS528にて、変換部103はステップS505で生成された予測誤差に対して、8×8画素のサブブロック単位で直交変換を行い、直交変換係数を生成する。ステップS529にて、ステップS509同様、量子化マトリクス選択部107は、ステップS501で生成された量子化マトリクスから第2量子化マトリクスを選択する。さらにステップS548にて、変換部103はステップS505で生成された予測誤差に対して、16×16画素のサブブロック単位で直交変換を行い、直交変換係数を生成する。ステップS549にて、ステップS509同様、量子化マトリクス選択部107は、ステップS501で生成された量子化マトリクスから第3量子化マトリクスを選択する。また、ステップS568にて、変換部103はステップS505で生成された予測誤差に対して、16×4画素のサブブロック単位で直交変換を行い、直交変換係数を生成する。ステップS569にて、ステップS509同様、量子化マトリクス選択部107は、ステップS501で生成された量子化マトリクスから第4量子化マトリクスを選択する。さらにステップS588にて、変換部103はステップS505で生成された予測誤差に対して、4×16画素のサブブロック単位で直交変換を行い、直交変換係数を生成する。ステップS589にて、ステップS509同様、量子化マトリクス選択部107は、ステップS501で生成された量子化マトリクスから第5量子化マトリクスを選択する。   In step S528, the transform unit 103 performs orthogonal transform on the prediction error generated in step S505 in units of 8 × 8 pixel sub-blocks to generate orthogonal transform coefficients. In step S529, as in step S509, the quantization matrix selection unit 107 selects the second quantization matrix from the quantization matrix generated in step S501. In step S548, the transform unit 103 performs orthogonal transform on the prediction error generated in step S505 in units of 16 × 16 pixel sub-blocks, and generates orthogonal transform coefficients. In step S549, as in step S509, the quantization matrix selection unit 107 selects a third quantization matrix from the quantization matrix generated in step S501. In step S568, the transform unit 103 performs orthogonal transform on the prediction error generated in step S505 in units of 16 × 4 pixel sub-blocks to generate orthogonal transform coefficients. In step S569, as in step S509, the quantization matrix selection unit 107 selects a fourth quantization matrix from the quantization matrix generated in step S501. Further, in step S588, the transform unit 103 performs orthogonal transform on the prediction error generated in step S505 in units of 4 × 16 pixels, and generates orthogonal transform coefficients. In step S589, as in step S509, the quantization matrix selection unit 107 selects the fifth quantization matrix from the quantization matrix generated in step S501.

ステップS510にて、量子化部104はステップS508、S528、S548、S568およびS588で生成された直交変換係数を入力する。そして、ステップS509、S529、S549、S569およびS589で選択された量子化マトリクスを用いて量子化して量子化係数を生成する。   In step S510, the quantization unit 104 inputs the orthogonal transform coefficients generated in steps S508, S528, S548, S568, and S588. Then, quantization is performed using the quantization matrix selected in steps S509, S529, S549, S569, and S589 to generate a quantized coefficient.

ステップS511にて、係数符号化部105はステップS510で生成された量子化係数を符号化し、量子化係数符号データを生成する。   In step S511, the coefficient encoding unit 105 encodes the quantized coefficient generated in step S510 to generate quantized coefficient code data.

ステップS512にて、画像符号化装置は、当該基本ブロック内の全てのサブブロックの符号化が終了したか否かの判定を行い、終了していればステップS513に進み、終了していなければ次のサブブロックを対象としてステップS505に戻る。   In step S512, the image coding apparatus determines whether or not coding of all the sub-blocks in the basic block has been completed. If finished, the process proceeds to step S513. The process returns to step S505 for the sub-block.

ステップS513にて、画像符号化装置は、全ての基本ブロックの符号化が終了したか否かの判定を行い、終了していれば全ての動作を停止して処理を終了し、そうでなければ次の基本ブロックを対象としてステップS504に戻る。   In step S513, the image encoding apparatus determines whether or not encoding of all the basic blocks has been completed. If it has been completed, the image encoding apparatus stops all operations and ends the processing. The process returns to step S504 for the next basic block.

以上の構成と動作により、特にステップS501、ステップS509、S529、S549、S569、S589の処理により、サブブロックの直交変換の形状によって最適な量子化マトリクスを用いて量子化処理を行ったビットストリームを生成することができる。   With the above configuration and operation, a bitstream that has been quantized using an optimal quantization matrix depending on the shape of the orthogonal transform of the sub-block, particularly by the processing of steps S501, S509, S529, S549, S569, and S589. Can be generated.

なお、本実施形態においては、イントラ予測のみを用いるフレームを例にとって説明したが、インター予測を使用できるフレームにおいても対応できることは明らかである。   In the present embodiment, a frame using only intra prediction has been described as an example, but it is obvious that a frame that can use inter prediction can also be used.

また、本実施形態では、各サブブロックサイズに対して1種類ずつ量子化マトリクスを用いたが、複数の量子化マトリクスを用い、予測方法や変換方法に応じて切り替えて使用しても構わない。   In this embodiment, one type of quantization matrix is used for each sub-block size. However, a plurality of quantization matrices may be used and switched depending on the prediction method or the conversion method.

また、サブブロックサイズが異なっていてもブロック内の画素数が同一のサブブロックサイズが存在していた場合、一方の量子化マトリクスを共用しても構わない。例えば、本実施形態においては、サブブロック画素数が64画素のサブブロックサイズが8×8画素、16×4画素、4×16画素の3種類存在する。この場合、8×8画素の量子化マトリクスを16×4画素サブブロックおよび4×16画素サブブロックに用いても構わない。同様に、16×4画素の量子化マトリクスを4×16画素のサブブロックに用いても良い。共用しない場合においても、他のサブブロックに対応した量子化マトリクスとの差分を符号化しても良い。例えば、16×4画素の量子化マトリクスの符号化において、8×8画素の量子化マトリクスの各要素との差分を符号化しても構わない。   In addition, even if the sub-block sizes are different, if there is a sub-block size with the same number of pixels in the block, one quantization matrix may be shared. For example, in the present embodiment, there are three types of subblock sizes of 8 × 8 pixels, 16 × 4 pixels, and 4 × 16 pixels with 64 subblock pixels. In this case, an 8 × 8 pixel quantization matrix may be used for the 16 × 4 pixel sub-block and the 4 × 16 pixel sub-block. Similarly, a 16 × 4 pixel quantization matrix may be used for a 4 × 16 pixel sub-block. Even when not shared, a difference from a quantization matrix corresponding to another sub-block may be encoded. For example, in encoding a 16 × 4 pixel quantization matrix, a difference from each element of an 8 × 8 pixel quantization matrix may be encoded.

さらに、画素数が異なるサブブロックサイズに対応する量子化マトリクスの符号化に関しては、他のサブブロックサイズに対応する量子化を用いて符号化しても良い。例えば、8×8画素の量子化マトリクスはその要素単位で符号化し、4×4画素の量子化マトリクスは8×8画素の量子化マトリクス内の2×2要素で平均値をとったものや間引いたものを予測値として、その差分を符号化しても構わない。また、本実施形態における例では、16×16画素の量子化マトリクスの各要素を符号化する。そして、16×4画素および4×16画素の量子化マトリクスは16×16画素の量子化マトリクス内の1×4および4×1要素単位で間引いたものもしくは平均値をとる。さらにそれをそのまま量子化マトリクス内の要素として用いても、予測値としてその差分を符号化しても構わない。反対に、4×4画素の量子化マトリクスの各要素を符号化する。そして、16×4画素および4×16画素の量子化マトリクスは4×4画素量子化マトリクス内の各要素を補間したものをそのまま量子化マトリクス内の要素として用いても、予測値としてその差分を符号化しても構わない。なお、量子化マトリクスの符号化において、各要素を符号化する方法を用いて説明したが、これに限定されない。   Furthermore, regarding the encoding of the quantization matrix corresponding to the sub-block sizes having different numbers of pixels, the encoding may be performed using the quantization corresponding to other sub-block sizes. For example, an 8 × 8 pixel quantization matrix is encoded in units of elements, and a 4 × 4 pixel quantization matrix is an average of 2 × 2 elements in an 8 × 8 pixel quantization matrix or thinned out. The difference may be encoded with the predicted value as the predicted value. In the example of the present embodiment, each element of the 16 × 16 pixel quantization matrix is encoded. Then, the 16 × 4 pixel and 4 × 16 pixel quantization matrices are thinned out in units of 1 × 4 and 4 × 1 elements in the 16 × 16 pixel quantization matrix or average values are taken. Furthermore, it may be used as it is as an element in the quantization matrix, or the difference may be encoded as a predicted value. Conversely, each element of the 4 × 4 pixel quantization matrix is encoded. The 16 × 4 pixel and 4 × 16 pixel quantization matrices are obtained by interpolating each element in the 4 × 4 pixel quantization matrix as an element in the quantization matrix as it is, and using the difference as a predicted value. You may encode. In the encoding of the quantization matrix, the method of encoding each element has been described, but the present invention is not limited to this.

また、本実施形態ではサブブロックサイズに応じて量子化部104に入力する量子化マトリクスを切り替える方法で説明した。しかし、これに限定されず、例えば、其々の量子化マトリクスに対応する量子化部をそれぞれ用意し、それを量子化マトリクス選択部107の出力に基づいて切り替える方法でももちろん構わない。   In the present embodiment, the method of switching the quantization matrix input to the quantization unit 104 according to the sub-block size has been described. However, the present invention is not limited to this. For example, a method may be used in which a quantization unit corresponding to each quantization matrix is prepared and switched based on the output of the quantization matrix selection unit 107.

また、本実施形態では予測誤差の直交変換を行ったのちに量子化マトリクスの選択を行ったが、これに限定されず、先に量子化マトリクスの選択を行ったのちに直交変換を行ったり、量子化マトリクスの選択と直交変換を並列に行ったりしても構わない。   Further, in this embodiment, the quantization matrix is selected after performing the orthogonal transformation of the prediction error.However, the present invention is not limited to this, and the orthogonal transformation is performed after the selection of the quantization matrix first. The selection of the quantization matrix and the orthogonal transformation may be performed in parallel.

<実施形態2>
図3は、本発明の実施形態2に係る画像復号装置の構成を示すブロック図である。本実施形態では、図1に示す実施形態1で生成されたビットストリームの復号について説明する。
<Embodiment 2>
FIG. 3 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 shown in FIG. 1 will be described.

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

308はビットストリームのヘッダ情報から量子化マトリクス符号データを抽出して復号する量子化マトリクス復号部である。   A quantization matrix decoding unit 308 extracts and decodes quantization matrix code data from the header information of the bitstream.

309は量子化マトリクス復号部308で復号された量子化マトリクスを一旦格納しておく量子化マトリクス保持部である。   Reference numeral 309 denotes a quantization matrix holding unit that temporarily stores the quantization matrix decoded by the quantization matrix decoding unit 308.

306は復号・分離部301で分離された符号から基本ブロック単位で予測・変換の情報を復号し、その情報に基づいて予測の方法、予測・変換の単位であるサブブロックサイズを決定する予測・変換方法抽出部である。   306 decodes prediction / conversion information in units of basic blocks from the code separated by the decoding / separation unit 301, and determines a prediction method and a sub-block size that is a unit of prediction / conversion based on the information. It is a conversion method extraction part.

307は予測・変換方法抽出部306で決定されたサブブロックサイズに基づいて、量子化マトリクス保持部309で格納された量子化マトリクスのうちの一つを選択する量子化マトリクス選択部である。   Reference numeral 307 denotes a quantization matrix selection unit that selects one of the quantization matrices stored in the quantization matrix holding unit 309 based on the sub-block size determined by the prediction / conversion method extraction unit 306.

一方、302は復号・分離部301で分離された符号から量子化係数符号を復号し、量子化係数を再生する係数復号部である。   On the other hand, 302 is a coefficient decoding unit that decodes the quantized coefficient code from the code separated by the decoding / separating unit 301 and reproduces the quantized coefficient.

303は量子化マトリクス選択部307で選択された量子化マトリクスを用いて量子化係数に逆量子化を行い、直交変換係数を再生する逆量子化部である。   Reference numeral 303 denotes an inverse quantization unit that performs inverse quantization on the quantization coefficient using the quantization matrix selected by the quantization matrix selection unit 307 and reproduces an orthogonal transform coefficient.

304は図1の変換部103の逆となる逆直交変換を行い、予測誤差を再生する逆変換部である。   Reference numeral 304 denotes an inverse transform unit that performs inverse orthogonal transform that is the inverse of the transform unit 103 in FIG. 1 and reproduces a prediction error.

305は予測の単位となるサブブロックサイズをはじめとする予測の情報、予測誤差と復号済みの画像データから基本ブロックの画像データを再生する予測再構成部である。   Reference numeral 305 denotes a prediction reconstruction unit that reproduces image data of a basic block from prediction information including a sub-block size serving as a prediction unit, a prediction error, and decoded image data.

上記画像復号装置における画像の復号動作を以下に説明する。本実施形態では実施形態1で生成された動画像ビットストリームをフレーム単位で入力する構成となっているが、1フレーム分の静止画像ビットストリームを入力する構成としても構わない。また、本実施形態では説明を容易にするため、イントラ予測復号処理のみを説明するが、これに限定されずインター予測復号処理においても適用可能である。   An image decoding operation in the image decoding apparatus will be described below. In the present embodiment, the moving image bit stream generated in the first embodiment is input in units of frames. However, a configuration may be adopted in which a still image bit stream for one frame is 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.

図3において、入力された1フレーム分のストリームデータは復号・分離部301に入力され、画像を再生するのに必要なヘッダ情報が復号され、さらに後段で使用される符号が分離され出力される。ヘッダ情報に含まれる量子化マトリクス符号データは量子化マトリクス復号部308に入力され、後段の逆量子化処理で用いられる量子化マトリクスとしてサブブロックサイズに対応する量子化マトリクスが再生される。本実施形態では、4×4画素サブブロックに対応する第1量子化マトリクス、8×8画素サブブロックに対応する第2量子化マトリクス、16×16画素サブブロックに対応する第3量子化マトリクスを再生する。さらに、16×4画素サブブロックに対応する第4量子化マトリクス、4×16画素サブブロックに対応する第5量子化マトリクスの5種類を再生する。本実施形態ではサブブロックサイズが4×4画素、8×8画素、16×16画素、16×4画素、4×16画素の5種類である。そのため、再生する量子化マトリクスは5種類となっているが、直交変換の形状の増減に合わせて、再生する量子化マトリクスも増減する。再生された量子化マトリクスは量子化マトリクス保持部309に入力され、一旦格納される。   In FIG. 3, the input stream data for one frame is input to the decoding / separating unit 301, the header information necessary for reproducing the image is decoded, and the code used in the subsequent stage is further separated and output. . The quantization matrix code data included in the header information is input to the quantization matrix decoding unit 308, and a quantization matrix corresponding to the sub-block size is reproduced as a quantization matrix used in the subsequent inverse quantization process. In the present embodiment, a first quantization matrix corresponding to a 4 × 4 pixel sub-block, a second quantization matrix corresponding to an 8 × 8 pixel sub-block, and a third quantization matrix corresponding to a 16 × 16 pixel sub-block are provided. Reproduce. Furthermore, five types of fourth quantization matrices corresponding to 16 × 4 pixel sub-blocks and fifth quantization matrices corresponding to 4 × 16 pixel sub-blocks are reproduced. In this embodiment, there are five types of sub-block sizes: 4 × 4 pixels, 8 × 8 pixels, 16 × 16 pixels, 16 × 4 pixels, and 4 × 16 pixels. Therefore, there are five types of quantization matrices to be reproduced, but the quantization matrix to be reproduced is also increased or decreased in accordance with the increase or decrease of the shape of the orthogonal transformation. The reproduced quantization matrix is input to the quantization matrix holding unit 309 and temporarily stored.

また、復号・分離部301で分離された符号のうち、予測および変換に関する符号は予測・変換方法抽出部306に入力され、復号されて、予測方法とサブブロックサイズを示す情報が生成される。サブブロックサイズは量子化マトリクス選択部307および係数復号部302に出力される。また、復号された予測方法は予測再構成部305に出力される。   Of the codes separated by the decoding / separation unit 301, the codes related to prediction and conversion are input to the prediction / conversion method extraction unit 306 and decoded to generate information indicating the prediction method and the sub-block size. The sub-block size is output to the quantization matrix selection unit 307 and the coefficient decoding unit 302. The decoded prediction method is output to the prediction reconstruction unit 305.

量子化マトリクス選択部307では、入力されたサブブロックサイズの情報によって、量子化マトリクス保持部309に格納された量子化マトリクスの中から一つを選択し、逆量子化部303に出力する。例えば、本実施形態では、サブブロックサイズが4×16画素である場合には、第5量子化マトリクスを量子化マトリクス保持部309から選択し、逆量子化部303に出力する。   The quantization matrix selection unit 307 selects one of the quantization matrices stored in the quantization matrix holding unit 309 according to the input sub-block size information and outputs the selected one to the inverse quantization unit 303. For example, in this embodiment, when the sub-block size is 4 × 16 pixels, the fifth quantization matrix is selected from the quantization matrix holding unit 309 and output to the inverse quantization unit 303.

さらに、復号・分離部301で分離された符号のうち、量子化係数符号データは係数復号部302に入力される。そして予測・変換方法抽出部306から入力されたサブブロックサイズ単位で量子化係数符号データを復号し、量子化係数を再生し、逆量子化部303に出力する。   Further, among the codes separated by the decoding / separating unit 301, the quantized coefficient code data is input to the coefficient decoding unit 302. Then, the quantization coefficient code data input from the prediction / conversion method extraction unit 306 is decoded in units of sub-block sizes, the quantization coefficient is reproduced, and is output to the inverse quantization unit 303.

逆量子化部303は、量子化マトリクス選択部307で選択された量子化マトリクス、および係数復号部302で再生された量子化係数を入力する。そして、前記量子化マトリクスを用いて逆量子化を行い、直交変換係数を再生し、逆変換部304に出力する。   The inverse quantization unit 303 receives the quantization matrix selected by the quantization matrix selection unit 307 and the quantization coefficient reproduced by the coefficient decoding unit 302. Then, inverse quantization is performed using the quantization matrix, and orthogonal transform coefficients are reproduced and output to the inverse transform unit 304.

逆変換部304は、再生された直交変換係数を入力し、図1の変換部103の逆となる逆直交変換を行い、予測誤差を再生し、予測再構成部305に出力する。   The inverse transform unit 304 inputs the reproduced orthogonal transform coefficient, performs inverse orthogonal transform that is the inverse of the transform unit 103 in FIG. 1, reproduces a prediction error, and outputs the prediction error to the prediction reconstruction unit 305.

予測再構成部305は、入力された予測誤差に復号済みの周囲の画素データから予測・変換方法抽出部306で復号された予測方法に従ってサブブロック単位の予測を行って基本ブロック単位の画像データを再生し、出力する。   The prediction reconstruction unit 305 performs sub-block unit prediction based on the prediction method decoded by the prediction / conversion method extraction unit 306 from the surrounding pixel data that has been decoded into the input prediction error, and generates image data in basic block units. Play and output.

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

まず、ステップS601にて、復号・分離部301がヘッダ情報を復号する。   First, in step S601, the decoding / separating unit 301 decodes header information.

ステップS602にて、量子化マトリクス復号部308はヘッダ情報に含まれる量子化マトリクス符号データを復号し、後段の逆量子化処理で用いる量子化マトリクスが再生される。復号された量子化マトリクスは量子化マトリクス保持部309に格納される。本実施形態では、各サブブロックサイズに対応した、4×4画素の第1量子化マトリクス、8×8画素の第2量子化マトリクス、16×16画素の第3量子化マトリクスを復号・再生する。そして、16×4画素の第4量子化マトリクス、4×16画素の第5量子化マトリクスの5種類の量子化マトリクスを復号・再生する。ただし、復号順序はこれに限定されない。   In step S602, the quantization matrix decoding unit 308 decodes the quantization matrix code data included in the header information, and reproduces the quantization matrix used in the subsequent inverse quantization process. The decoded quantization matrix is stored in the quantization matrix holding unit 309. In this embodiment, a 4 × 4 pixel first quantization matrix, an 8 × 8 pixel second quantization matrix, and a 16 × 16 pixel third quantization matrix corresponding to each sub-block size are decoded and reproduced. . Then, five types of quantization matrices of a fourth quantization matrix of 16 × 4 pixels and a fifth quantization matrix of 4 × 16 pixels are decoded and reproduced. However, the decoding order is not limited to this.

ステップS603にて、基本ブロック単位で予測・変換方法抽出部306は予測や変換に関する情報を復号し、その内容から予測方法や予測・直交変換の単位となるサブブロックサイズを生成する。   In step S603, the prediction / conversion method extraction unit 306 decodes information related to prediction and conversion in units of basic blocks, and generates a sub-block size that is a unit of the prediction method and prediction / orthogonal transformation from the content.

ステップS604にて、ステップS603で生成されたサブブロックサイズに基づく判定を行う。サブブロックサイズが4×4画素であればS605に進み、8×8画素であればS625に進み、16×16画素であればS645に進み、16×4画素であればS665に進み、4×16画素であればS685に進む。   In step S604, a determination is made based on the sub-block size generated in step S603. If the sub-block size is 4 × 4 pixels, the process proceeds to S605, if it is 8 × 8 pixels, the process proceeds to S625, if it is 16 × 16 pixels, the process proceeds to S645, and if it is 16 × 4 pixels, the process proceeds to S665. If it is 16 pixels, the process proceeds to S685.

ステップS605にて、量子化マトリクス選択部307はステップS603で抽出された前記サブブロックサイズに基づいて当該サブブロックに適用する量子化マトリクスを選択する。具体的には、抽出された前記サブブロックサイズが4×4画素なので、第1量子化マトリクスを選択する。   In step S605, the quantization matrix selection unit 307 selects a quantization matrix to be applied to the subblock based on the subblock size extracted in step S603. Specifically, since the extracted sub-block size is 4 × 4 pixels, the first quantization matrix is selected.

また、ステップS625にて、量子化マトリクス選択部307は前記サブブロックサイズに基づいて当該サブブロックに適用する量子化マトリクスを選択する。具体的には、抽出された前記サブブロックサイズが8×8画素なので、第2量子化マトリクスを選択する。さらにステップS645にて、量子化マトリクス選択部307は前記サブブロックサイズに基づいて当該サブブロックに適用する量子化マトリクスを選択する。具体的には、抽出された前記サブブロックサイズが16×16画素なので、第3量子化マトリクスを選択する。また、ステップS665にて、量子化マトリクス選択部307は前記サブブロックサイズに基づいて当該サブブロックに適用する量子化マトリクスを選択する。具体的には、抽出された前記サブブロックサイズが16×4画素なので、第4量子化マトリクスを選択する。さらにステップS685にて、量子化マトリクス選択部307は前記サブブロックサイズに基づいて当該サブブロックに適用する量子化マトリクスを選択する。具体的には、抽出された前記サブブロックサイズが4×16画素なので、第5量子化マトリクスを選択する。   In step S625, the quantization matrix selection unit 307 selects a quantization matrix to be applied to the subblock based on the subblock size. Specifically, since the extracted sub-block size is 8 × 8 pixels, the second quantization matrix is selected. In step S645, the quantization matrix selection unit 307 selects a quantization matrix to be applied to the subblock based on the subblock size. Specifically, since the extracted sub-block size is 16 × 16 pixels, the third quantization matrix is selected. In step S665, the quantization matrix selection unit 307 selects a quantization matrix to be applied to the subblock based on the subblock size. Specifically, since the extracted sub-block size is 16 × 4 pixels, the fourth quantization matrix is selected. In step S685, the quantization matrix selection unit 307 selects a quantization matrix to be applied to the subblock based on the subblock size. Specifically, since the extracted sub-block size is 4 × 16 pixels, the fifth quantization matrix is selected.

ステップS606にて、係数復号部302はサブブロック単位で量子化係数符号データを復号し、量子化係数を再生する。   In step S606, the coefficient decoding unit 302 decodes the quantized coefficient code data in units of subblocks and reproduces the quantized coefficients.

ステップS607にて、逆量子化部303はステップS605、S625、S645、S665およびS685で選択された量子化マトリクスを用いてステップS606にて再生された量子化係数を逆量子化し、直交変換係数を再生する。   In step S607, the inverse quantization unit 303 inversely quantizes the quantization coefficient reproduced in step S606 using the quantization matrix selected in steps S605, S625, S645, S665, and S685, and converts the orthogonal transform coefficient. Reproduce.

ステップS608にて、再びステップS603で生成されたサブブロックサイズに基づく判定を行う。サブブロックサイズが4×4画素であればステップS609に進み、8×8画素であればS629に進み、16×16画素であればステップS649に進み、16×4画素であればステップS669に進み、4×16画素であればステップS689に進む。   In step S608, the determination based on the sub-block size generated in step S603 is performed again. If the sub-block size is 4 × 4 pixels, the process proceeds to step S609, if it is 8 × 8 pixels, the process proceeds to step S629, if it is 16 × 16 pixels, the process proceeds to step S649, and if it is 16 × 4 pixels, the process proceeds to step S669. If it is 4 × 16 pixels, the process proceeds to step S689.

ステップS609にて、逆変換部304はステップS607で再生された直交変換係数に対し、4×4画素のサブブロック単位で逆直交変換を行い、予測誤差を再生する。ステップS629にて、逆変換部304はステップS607で再生された直交変換係数に対し、8×8画素のサブブロック単位で逆直交変換を行い、予測誤差を再生する。ステップS649にて、逆変換部304はステップS607で再生された直交変換係数に対し、16×16画素のサブブロック単位で逆直交変換を行い、予測誤差を再生する。ステップS669にて、逆変換部304はステップS607で再生された直交変換係数に対し、16×4画素のサブブロック単位で逆直交変換を行い、予測誤差を再生する。ステップS689にて、逆変換部304はステップS607で再生された直交変換係数に対し、4×16画素のサブブロック単位で逆直交変換を行い、予測誤差を再生する。   In step S609, the inverse transformation unit 304 performs inverse orthogonal transformation on the orthogonal transformation coefficient reproduced in step S607 in units of 4 × 4 pixel sub-blocks to reproduce the prediction error. In step S629, the inverse transformation unit 304 performs inverse orthogonal transformation on the orthogonal transformation coefficient reproduced in step S607 in units of 8 × 8 pixel sub-blocks to reproduce the prediction error. In step S649, the inverse transformation unit 304 performs inverse orthogonal transformation on the orthogonal transformation coefficient reproduced in step S607 in units of 16 × 16 pixels, and reproduces a prediction error. In step S669, the inverse transformation unit 304 performs inverse orthogonal transformation on the orthogonal transformation coefficient reproduced in step S607 in units of 16 × 4 pixels, and reproduces a prediction error. In step S689, the inverse transformation unit 304 performs inverse orthogonal transformation on the orthogonal transformation coefficient reproduced in step S607 in units of 4 × 16 pixel sub-blocks to reproduce the prediction error.

ステップS610にて、予測再構成部305は復号済みの周囲の画素データからステップS603で再生された予測方法に従って予測を行う。それを、ステップS609、S629、S649、S669およびS689で再生された予測誤差に加算して、サブブロックの復号画像を再生する。   In step S610, the prediction reconstruction unit 305 performs prediction from the decoded surrounding pixel data according to the prediction method reproduced in step S603. It is added to the prediction error reproduced in steps S609, S629, S649, S669, and S689 to reproduce the decoded image of the sub-block.

ステップS611にて、画像復号装置は、当該基本ブロック内の全てのサブブロックの復号が終了したか否かの判定を行い、終了していればステップS612に進み、終了していなければ次のサブブロックを対象としてステップS604に戻る。   In step S611, the image decoding apparatus determines whether or not decoding of all the subblocks in the basic block has been completed. If completed, the process proceeds to step S612. The process returns to step S604 for the block.

ステップS612にて、画像復号装置は、全ての基本ブロックの復号が終了したか否かの判定を行い、終了していれば全ての動作を停止して処理を終了し、そうでなければ次の基本ブロックを対象として、ステップS603に戻る。   In step S612, the image decoding apparatus determines whether or not the decoding of all the basic blocks has been completed. If the decoding has been completed, the image decoding apparatus stops all the operations and ends the process. Returning to step S603 for the basic block.

以上の構成と動作により、実施形態1で生成された、サブブロックのサイズで表される直交変換の形状に対応して最適な量子化マトリクスを用いて量子化処理を行って生成したビットストリームの復号を行い、再生画像を得ることができる。   With the above configuration and operation, the bit stream generated by performing the quantization process using the optimal quantization matrix corresponding to the shape of the orthogonal transform represented by the size of the sub-block generated in the first embodiment. Decoding can be performed to obtain a reproduced image.

また、実施形態1と同様に基本ブロックのサイズ・形状、サブブロックのサイズ・形状についてはこれに限定されない。   Further, as in the first embodiment, the size and shape of the basic block and the size and shape of the sub-block are not limited to this.

また、一つのシーケンスのビットストリーム中で量子化マトリクス符号データが複数回含まれている場合、量子化マトリクスの更新をすることも可能である。復号・分離部301で量子化マトリクス符号データを検出し、量子化マトリクス復号部308で復号する。復号された量子化マトリクスのデータを量子化マトリクス保持部309の該当する量子化マトリクスに置き換える。この際、全ての量子化マトリクスを書き換えても良いし、書き換える量子化マトリクスのサブブロックサイズを判別することでその一部を変更することも可能である。さらには書き換える量子化マトリクスのサブブロックサイズおよびその変更する要素の位置を判別することでマトリクス内の要素を部分的に変更することももちろん可能である。   Further, when the quantization matrix code data is included a plurality of times in one sequence of bitstream, the quantization matrix can be updated. The decoding / separation unit 301 detects the quantization matrix code data, and the quantization matrix decoding unit 308 decodes it. The decoded quantization matrix data is replaced with the corresponding quantization matrix in the quantization matrix holding unit 309. At this time, all the quantization matrices may be rewritten, or a part of them can be changed by determining the sub-block size of the rewritten quantization matrix. Furthermore, it is of course possible to partially change the elements in the matrix by determining the sub-block size of the quantization matrix to be rewritten and the position of the element to be changed.

また、本実施形態ではサブブロックサイズに応じて逆量子化部303に入力する量子化マトリクスを切り替える方法で説明したが、これに限定されない。例えば、それぞれの量子化マトリクスに対応する逆量子化部をそれぞれ用意し、それを量子化マトリクス選択部307の出力に基づいて切り替える方法でももちろん構わない。同様に図6においてステップS606、ステップS607を複数用意し、ステップS604で判定してそれぞれのサブブロックサイズで量子化マトリクスの選択、係数復号、逆量子化、逆変換を並行して行ってもよい。   Moreover, although this embodiment demonstrated the method of switching the quantization matrix input into the inverse quantization part 303 according to subblock size, it is not limited to this. For example, a method of preparing an inverse quantization unit corresponding to each quantization matrix and switching it based on the output of the quantization matrix selection unit 307 may be used. Similarly, a plurality of steps S606 and S607 in FIG. 6 may be prepared, and the selection of the quantization matrix, the coefficient decoding, the inverse quantization, and the inverse transform may be performed in parallel with each sub-block size determined in step S604. .

また、本実施形態では量子化マトリクスの選択を行ったのちに量子化係数の復号を行ったが、これに限定されず、先に量子化係数の復号を行ったのちに量子化マトリクスの選択を行ったり、量子化マトリクスの選択と量子化係数の復号を並列に行ったりしても構わない。   In this embodiment, the quantization coefficient is decoded after selecting the quantization matrix. However, the present invention is not limited to this, and the quantization matrix is selected after decoding the quantization coefficient first. Alternatively, the quantization matrix selection and the quantization coefficient decoding may be performed in parallel.

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

851は各量子化マトリクスをどのように符号化するかを示す符号化情報を生成する、符号化方法生成部である。   Reference numeral 851 denotes an encoding method generation unit that generates encoding information indicating how to encode each quantization matrix.

809は符号化方法生成部851で生成された符号化情報に基づいて、量子化マトリクス保持部108に格納された量子化マトリクスを符号化して、量子化マトリクス符号データを生成する量子化マトリクス符号化部である。   Reference numeral 809 denotes a quantization matrix encoding that encodes the quantization matrix stored in the quantization matrix holding unit 108 based on the encoding information generated by the encoding method generation unit 851 to generate quantization matrix code data. Part.

806は図1の統合符号化部106と同様に、ヘッダ情報や予測、変換に関する符号を生成する統合符号化部であり、前記統合符号化部106とは符号化方法生成部851から符号化情報を入力し、これを符号化することが異なる。   As in the integrated encoding unit 106 in FIG. 1, an integrated encoding unit 806 generates a code related to header information, prediction, and conversion. The integrated encoding unit 106 is encoded information from the encoding method generation unit 851. Is different from the above and is encoded.

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

符号化方法生成部851では、まず、各量子化マトリクスをどのように符号化するかを示す符号化情報を生成する。本実施形態では、前記符号化方法情報が0であれば量子化マトリクスの各要素をそのまま符号化する方法を用いるものとする。また、1であれば直前の要素との差分を符号化する方法を、2であれば直前に符号化した要素数が同一の量子化マトリクスの要素との差分を符号化する方法を用いるものとする。さらに、3であれば直前に符号化した要素数がより多い量子化マトリクスの要素を間引いて予測量子化マトリクスを生成し、それとの差分を符号化するものとする。また、4であれば直前に符号化した要素数がより少ない量子化マトリクスの要素を補間して予測量子化マトリクスを生成し、それとの差分を符号化するものとする。量子化マトリクスの各要素の符号化方法はこれらに限定されず、DPCMのように最初の要素と二番目の要素と最初の要素の差分を符号化した後は、予測差分を符号化しても良い。さらには直前または別な符号で指定される復号済みの量子化マトリクスを参照して符号化を行う方法を用いてももちろん構わない。また、要素数がより多い量子化マトリクスから要素数がより少ない量子化マトリクスの予測方法には間引きを用いたが、平均値や中央値などを用いても良い。さらには、差分を全く符号化せずに他の量子化マトリクスと共用することを示す識別子を符号化しても構わない。また、前記量子化マトリクス符号化方法情報と量子化マトリクスの符号化方法との組合せはこれに限定されない。量子化マトリクス符号化方法情報の生成方法については特に限定しないが、ユーザが入力しても良いし、固定値としてあらかじめ指定されたものを使用して良いし、量子化マトリクス保持部108に格納されている量子化マトリクスの特性から算出してももちろん良い。生成された量子化マトリクス符号化方法情報は量子化マトリクス符号化部809と統合符号化部806に入力される。   The encoding method generation unit 851 first generates encoding information indicating how to encode each quantization matrix. In this embodiment, if the encoding method information is 0, a method of encoding each element of the quantization matrix as it is is used. Also, if 1 is used, a method of encoding a difference from the immediately preceding element is used, and if 2, a method of encoding a difference from an element of a quantization matrix having the same number of elements encoded immediately before is used. To do. Further, if the number is 3, the prediction quantization matrix is generated by thinning out the elements of the quantization matrix having the more number of elements encoded immediately before, and the difference from the prediction matrix is encoded. Also, if it is 4, the prediction quantization matrix is generated by interpolating the elements of the quantization matrix with the smaller number of elements encoded immediately before, and the difference between them is encoded. The encoding method of each element of the quantization matrix is not limited to these, and after encoding the difference between the first element, the second element, and the first element as in DPCM, the prediction difference may be encoded. . Further, it is of course possible to use a method of performing encoding with reference to a decoded quantization matrix designated by the immediately preceding or another code. Further, thinning is used as a prediction method for a quantization matrix having a smaller number of elements from a quantization matrix having a larger number of elements, but an average value, a median value, or the like may be used. Furthermore, an identifier indicating that the difference is not encoded at all and shared with other quantization matrices may be encoded. The combination of the quantization matrix encoding method information and the quantization matrix encoding method is not limited to this. The generation method of the quantization matrix encoding method information is not particularly limited, but may be input by the user, may be used as a fixed value, or may be stored in the quantization matrix holding unit 108. Of course, it may be calculated from the characteristics of the quantization matrix. The generated quantization matrix encoding method information is input to the quantization matrix encoding unit 809 and the integrated encoding unit 806.

量子化マトリクス符号化部809では、入力された符号化情報に基づいて、量子化マトリクス保持部108に格納された各量子化マトリクスを符号化し、量子化マトリクス符号データを生成して統合符号化部806に出力する。   The quantization matrix encoding unit 809 encodes each quantization matrix stored in the quantization matrix holding unit 108 based on the input encoding information, generates quantization matrix code data, and generates an integrated encoding unit. Output to 806.

統合符号化部806では、符号化方法生成部851で生成された符号化情報を符号化し、符号化情報符号を生成し、ヘッダ情報等に組み込んで出力する。さらに予測部102で生成されたサブブロックサイズの情報も符号化して出力する。符号化の方法は特に限定しないが、ハフマン符号や算術符号などを用いることができる。図7(b)に符号化情報符号を含むビットストリームの例を示す。符号化情報符号はシーケンス、ピクチャ等のヘッダのいずれに入れても構わないが、各量子化マトリクス符号データより前に存在する。   The integrated encoding unit 806 encodes the encoded information generated by the encoding method generating unit 851, generates an encoded information code, and outputs the encoded information code after being included in the header information. Furthermore, the sub block size information generated by the prediction unit 102 is also encoded and output. The encoding method is not particularly limited, but a Huffman code or an arithmetic code can be used. FIG. 7B shows an example of a bit stream including an encoded information code. The encoding information code may be included in any of the headers of sequences, pictures, etc., but exists before each quantization matrix code data.

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

ステップS1051にて、符号化方法生成部851は、後段のステップS1002で使用する符号化情報を決定する。   In step S1051, the encoding method generation unit 851 determines the encoding information used in the subsequent step S1002.

ステップS1002にて、量子化マトリクス符号化部809は、ステップS1051で決定した符号化情報に基づいて、ステップS501で生成された量子化マトリクスを符号化する。   In step S1002, the quantization matrix encoding unit 809 encodes the quantization matrix generated in step S501 based on the encoding information determined in step S1051.

ステップS1003にて、統合符号化部806は符号化情報を符号化し、符号化情報符号を生成し、他の符号と同様にヘッダ部に組み込み出力する。   In step S1003, the integrated encoding unit 806 encodes the encoded information, generates an encoded information code, and outputs the encoded information code in the header portion in the same manner as other codes.

以上の構成と動作により、各量子化マトリクスが最適な符号化方法で符号化され、サブブロックサイズが表す直交変換に対応した最適な量子化マトリクスを用いて量子化処理を行ったビットストリームを生成することができる。これにより、量子化マトリクスの符号化によって発生する符号量を抑えることが可能になる。   With the above configuration and operation, each quantization matrix is encoded with the optimal encoding method, and a bitstream is generated that has been quantized using the optimal quantization matrix corresponding to the orthogonal transform represented by the sub-block size. can do. Thereby, it is possible to suppress the amount of code generated by encoding the quantization matrix.

なお、本実施形態では符号化する量子化マトリクスの全てに対して一つの符号化方式を選択する場合を例にとって説明したが、これに限定されない。量子化マトリクス単位で符号化方法を選択したり、サブブロックサイズごとに符号化方法を選択したりしてももちろん構わない。   In this embodiment, the case where one encoding method is selected for all the quantization matrices to be encoded has been described as an example, but the present invention is not limited to this. Of course, the encoding method may be selected for each quantization matrix, or the encoding method may be selected for each sub-block size.

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

901は入力されたビットストリームのヘッダ情報を復号し、ビットストリームから必要な符号を分離して後段へ出力する復号・分離部である。図3の復号・分離部301とはビットストリームのヘッダ情報から符号化情報符号を分離して後段に出力することが異なる。   Reference numeral 901 denotes a decoding / separating unit that decodes header information of the input bit stream, separates necessary codes from the bit stream, and outputs them to the subsequent stage. 3 is different from the decoding / separating unit 301 in that the encoded information code is separated from the header information of the bitstream and output to the subsequent stage.

951は復号・分離部901で分離された符号化情報符号を復号し、量子化マトリクス符号化方法の情報を再生する復号方法復号部である。   A decoding method decoding unit 951 decodes the encoded information code separated by the decoding / separating unit 901 and reproduces information on the quantization matrix coding method.

908はビットストリームのヘッダ情報から復号・分離部901で分離された量子化マトリクス符号データを前記符号化方法の情報に基づいて復号する量子化マトリクス復号部である。   Reference numeral 908 denotes a quantization matrix decoding unit that decodes the quantization matrix code data separated by the decoding / separation unit 901 from the header information of the bitstream based on the information on the encoding method.

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

図9において、入力された1フレーム分のストリームデータは復号・分離部901に入力され、画像を再生するのに必要なヘッダ情報が復号され、さらに後段で使用される符号が分離され出力される。ヘッダ情報に含まれる符号化情報符号は復号方法復号部951に入力され、量子化マトリクスの符号化方法の情報を再生する。そして、再生された量子化マトリクスの符号化方法の情報は量子化マトリクス復号部908に入力される。   In FIG. 9, the input stream data for one frame is input to the decoding / separating unit 901, the header information necessary for reproducing the image is decoded, and the code used in the subsequent stage is further separated and output. . The encoding information code included in the header information is input to the decoding method decoding unit 951, and information on the encoding method of the quantization matrix is reproduced. Then, the reproduced information on the encoding method of the quantization matrix is input to the quantization matrix decoding unit 908.

一方、ヘッダ情報に含まれる量子化マトリクス符号データは量子化マトリクス復号部908に入力される。そして、量子化マトリクス復号部908は入力された量子化マトリクスの符号化方法の情報に基づいて量子化マトリクス復号方法を選択して量子化マトリクス符号データを復号し、後段の逆量子化処理で用いられる量子化マトリクスが再生される。再生された量子化マトリクスは量子化マトリクス保持部に一旦格納される。   On the other hand, the quantization matrix code data included in the header information is input to the quantization matrix decoding unit 908. Then, the quantization matrix decoding unit 908 selects the quantization matrix decoding method based on the input quantization matrix encoding method information, decodes the quantization matrix code data, and uses it in the subsequent dequantization processing. The resulting quantization matrix is reproduced. The reproduced quantization matrix is temporarily stored in the quantization matrix holding unit.

図11は実施形態4に係る画像復号装置における画像復号処理を示すフローチャートである。実施形態2の図6と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。   FIG. 11 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. 6 of the second embodiment, and descriptions thereof are omitted.

ステップS1101にて、復号・分離部901はヘッダ情報を復号する。   In step S1101, the decoding / separating unit 901 decodes the header information.

ステップS1151にて、復号方法復号部951はヘッダ情報に含まれる量子化マトリクス符号化情報符号を復号し、量子化マトリクスの符号化方法の情報を再生する。   In step S1151, the decoding method decoding unit 951 decodes the quantization matrix coding information code included in the header information, and reproduces the quantization matrix coding method information.

ステップS1102にて、量子化マトリクス復号部908はステップS1151にて再生された量子化マトリクスの符号化方法の情報に基づいて、量子化マトリクス復号方法を選択する。そして、ヘッダ情報に含まれる量子化マトリクス符号データを復号し、量子化マトリクスを再生する。   In step S1102, the quantization matrix decoding unit 908 selects a quantization matrix decoding method based on the quantization matrix encoding method information reproduced in step S1151. Then, the quantization matrix code data included in the header information is decoded to reproduce the quantization matrix.

以上の構成と動作により、実施形態3で生成された、各量子化マトリクスが最適な符号化方法で符号化され、サブブロックサイズによって最適な量子化マトリクスを用いて量子化処理を行ったビットストリームの復号を行い、再生画像を得ることができる。これにより、量子化マトリクスに適応した符号化によって発生する符号量を抑えたビットストリームの復号が可能になる。   With the above-described configuration and operation, each quantization matrix generated in the third embodiment is encoded by an optimal encoding method, and is a bitstream that is quantized using an optimal quantization matrix depending on the sub-block size. Can be decoded to obtain a reproduced image. As a result, it is possible to decode a bitstream with a reduced code amount generated by encoding adapted to the quantization matrix.

なお、本実施形態では復号する量子化マトリクス符号データの全てに対して一つの復号方式を選択する場合を例にとって説明したが、これに限定されない。量子化マトリクス単位で復号方法を選択したり、サブブロックサイズごとに符号化方法を選択したりしてももちろん構わない。   In the present embodiment, the case where one decoding method is selected for all the quantization matrix code data to be decoded has been described as an example, but the present invention is not limited to this. Of course, the decoding method may be selected in units of quantization matrix, or the encoding method may be selected for each sub-block size.

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

1308は量子化マトリクスを生成し、一旦格納する量子化マトリクス保持部である。格納される量子化マトリクスの生成方法については特に限定しないが、ユーザが量子化マトリクスを入力しても良いし、入力画像の特性から算出しても、初期値としてあらかじめ指定されたものを使用しても良い。本実施形態では、4×4画素、8×8画素、16×16画素などの正方形の形状の直交変換に対応した量子化マトリクスが生成され、格納されるものとする。さらに、後述の量子化マトリクス縮小部1351にて生成された16×4画素、4×16画素などの長方形の形状の直交変換に対応した量子化マトリクスをさらに入力し、格納するものとする。生成、格納される量子化マトリクスはこれらに限定されず、例えば、32×32画素の正方形の量子化マトリクスをさらに生成し、縮小された32×8画素および8画素×32画素の長方形の量子化マトリクスをさらに格納しても良い。   Reference numeral 1308 denotes a quantization matrix holding unit that generates and temporarily stores a quantization matrix. The method of 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. May be. In the present embodiment, it is assumed that a quantization matrix corresponding to orthogonal transformation of square shapes such as 4 × 4 pixels, 8 × 8 pixels, and 16 × 16 pixels is generated and stored. Furthermore, it is assumed that a quantization matrix corresponding to orthogonal transformation of a rectangular shape such as 16 × 4 pixels and 4 × 16 pixels generated by a quantization matrix reduction unit 1351 described later is further input and stored. The generated and stored quantization matrices are not limited to these. For example, a 32 × 32 pixel square quantization matrix is further generated, and reduced 32 × 8 pixel and 8 × 32 pixel rectangular quantization is performed. A matrix may be further stored.

1351は、正方形の量子化マトリクスの一辺を縮小して長方形の量子化マトリクスを生成する量子化マトリクス縮小部である。本実施形態では、量子化マトリクス保持部1308で生成された16×16画素の正方形の量子化マトリクスを入力し、縮小処理を行い、4×16画素および16×4画素の量子化マトリクスを生成するものとする。前記縮小処理について、図17を用いて説明する。   Reference numeral 1351 denotes a quantization matrix reduction unit that generates a rectangular quantization matrix by reducing one side of a square quantization matrix. In the present embodiment, a 16 × 16 pixel square quantization matrix generated by the quantization matrix holding unit 1308 is input, reduction processing is performed, and a 4 × 16 pixel and 16 × 4 pixel quantization matrix is generated. Shall. The reduction process will be described with reference to FIG.

図17(a)は16×16画素の量子化マトリクスを、記号を用いてモデル化したものである。◎、○、△、×の各記号は量子化マトリクスの各要素を示しているものとする。本実施形態では、量子化マトリクス縮小部1351は、図17(a)の16×16画素の量子化マトリクスから、◎、○の位置に存在する要素を垂直方向に間引き、図17(b)に示される16×4画素の量子化マトリクスを生成するものとする。また、図17(a)の16×16画素の量子化マトリクスから、◎、△の位置に存在する要素を水平方向に間引き、図17(c)に示される4×16画素の量子化マトリクスを生成するものとする。   FIG. 17A shows a 16 × 16 pixel quantization matrix modeled using symbols. The symbols ◎, ○, Δ, and × indicate each element of the quantization matrix. In this embodiment, the quantization matrix reduction unit 1351 thins out the elements existing at the positions of ◎ and ○ in the vertical direction from the 16 × 16 pixel quantization matrix of FIG. Assume that the 16 × 4 pixel quantization matrix shown is generated. Further, from the 16 × 16 pixel quantization matrix of FIG. 17A, the elements existing at the positions of ◎ and Δ are thinned out in the horizontal direction, and the 4 × 16 pixel quantization matrix shown in FIG. Shall be generated.

1309は量子化マトリクス保持部1308に格納された量子化マトリクスのうち正方形の量子化マトリクスを符号化して量子化マトリクス符号データを生成する量子化マトリクス符号化部である。図1の量子化マトリクス符号化部109同様、量子化マトリクスの符号化方法は特に限定されない。量子化マトリクスの各要素の値そのもの、もしくは直前の要素との差分や他の量子化マトリクスとの差分に対して、ハフマン符号や算術符号などを用いることができる。   Reference numeral 1309 denotes a quantization matrix encoding unit that encodes a square quantization matrix in the quantization matrix stored in the quantization matrix holding unit 1308 to generate quantization matrix code data. Like the quantization matrix encoding unit 109 in FIG. 1, the quantization matrix encoding method is not particularly limited. A Huffman code, an arithmetic code, or the like can be used for the value of each element of the quantization matrix itself, or a difference from the immediately preceding element or a difference from another quantization matrix.

1306はヘッダ情報や予測、変換に関する符号を生成するとともに、係数符号化部105で生成された量子化係数符号データおよび量子化マトリクス符号化部1309で生成された量子化マトリクス符号データを統合する統合符号化部である。   An integration 1306 generates codes related to header information, prediction, and conversion, and integrates the quantization coefficient code data generated by the coefficient encoding unit 105 and the quantization matrix code data generated by the quantization matrix encoding unit 1309. It is an encoding part.

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

量子化マトリクス保持部1308には、該フレームの量子化に用いられる量子化マトリクスのうち、正方形のサブブロックの形状に対応した量子化マトリクスが保持されている。本実施形態では、サブブロックサイズが4×4画素、8×8画素、16×16画素、16×4画素、4×16画素の5種類である。そのため、その中で正方形の形状を持つ、4×4画素の直交変換に対応する第1量子化マトリクス、8×8画素の直交変換に対応する第2量子化マトリクス、16×16画素の直交変換に対応する第3量子化マトリクスが保持されている。本実施形態では上記3種類の量子化マトリクスを保持するが、サブブロックの形状の増減に合わせて、保持する量子化マトリクスも増減する。そして、16×4画素および4×16画素の直交変換に対応する量子化マトリクスを生成する必要があるため、16×16画素の量子化マトリクスを量子化マトリクス縮小部1351に出力する。   The quantization matrix holding unit 1308 holds a quantization matrix corresponding to the shape of the square sub-block among the quantization matrices used for quantization of the frame. In this embodiment, there are five types of sub-block sizes: 4 × 4 pixels, 8 × 8 pixels, 16 × 16 pixels, 16 × 4 pixels, and 4 × 16 pixels. Therefore, a first quantization matrix corresponding to an orthogonal transformation of 4 × 4 pixels having a square shape therein, a second quantization matrix corresponding to an orthogonal transformation of 8 × 8 pixels, and an orthogonal transformation of 16 × 16 pixels A third quantization matrix corresponding to is held. In the present embodiment, the above three types of quantization matrices are held, but the held quantization matrices are also increased or decreased in accordance with the increase or decrease in the shape of the sub-block. Since it is necessary to generate a quantization matrix corresponding to the orthogonal transformation of 16 × 4 pixels and 4 × 16 pixels, a 16 × 16 pixel quantization matrix is output to the quantization matrix reduction unit 1351.

量子化マトリクス縮小部1351は、入力された16×16画素の量子化マトリクスを前述した方法で縮小し、16×4画素および4×16画素の量子化マトリクスを生成し、量子化マトリクス保持部1308に出力する。   The quantization matrix reduction unit 1351 reduces the input 16 × 16 pixel quantization matrix by the method described above, generates a 16 × 4 pixel and 4 × 16 pixel quantization matrix, and a quantization matrix holding unit 1308. Output to.

量子化マトリクス保持部1308は、量子化マトリクス縮小部1351から入力された16×4画素および4×16画素の量子化マトリクスをさらに格納する。すなわち、16×4画素の直交変換に対応する第4量子化マトリクス、4×16画素の直交変換に対応する第5量子化マトリクスが保持されている。   The quantization matrix holding unit 1308 further stores the 16 × 4 pixel and 4 × 16 pixel quantization matrices input from the quantization matrix reduction unit 1351. That is, the fourth quantization matrix corresponding to the 16 × 4 pixel orthogonal transformation and the fifth quantization matrix corresponding to the 4 × 16 pixel orthogonal transformation are held.

量子化マトリクス符号化部1309は正方形の直交変換に対応した量子化マトリクスを量子化マトリクス保持部1308からサブブロックサイズによって順に読み出し、符号化して量子化マトリクス符号データを生成する。本実施形態では、4×4画素の直交変換に対応する第1量子化マトリクス、8×8画素の直交変換に対応する第2量子化マトリクス、16×16画素の直交変換に対応する第3量子化マトリクスの3種類が符号化される。符号化方式は図1の量子化マトリクス符号化部109と同様に限定されない。   The quantization matrix encoding unit 1309 sequentially reads the quantization matrix corresponding to the square orthogonal transform from the quantization matrix holding unit 1308 according to the sub-block size and encodes it to generate quantization matrix code data. In the present embodiment, a first quantization matrix corresponding to orthogonal transformation of 4 × 4 pixels, a second quantization matrix corresponding to orthogonal transformation of 8 × 8 pixels, and a third quantum corresponding to orthogonal transformation of 16 × 16 pixels. Three types of quantization matrices are encoded. The encoding method is not limited as in the quantization matrix encoding unit 109 in FIG.

統合符号化部1306では、図1の統合符号化部106同様、画像のシーケンス、フレーム、ピクチャおよびスライスのヘッダといった符号を生成する。また、これらのヘッダのいずれかに量子化マトリクス符号化部1309で生成された量子化マトリクス符号データを挿入する。図7(c)は本実施形態で出力されるビットストリームの一例である。本実施形態ではビットストリーム中のシーケンスヘッダ部に量子化マトリクスが符号化されている構成となっているが、符号化の位置はこれに限定されない。   The integrated encoding unit 1306 generates codes such as an image sequence, a frame, a picture, and a slice header as in the integrated encoding unit 106 of FIG. Further, the quantization matrix code data generated by the quantization matrix encoding unit 1309 is inserted into any of these headers. FIG. 7C is an example of a bit stream output in this embodiment. In this embodiment, the quantization matrix is encoded in the sequence header portion in the bit stream, but the encoding position is not limited to this.

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

まず、ステップS1501にて、量子化マトリクス保持部1308は量子化マトリクスを一つ以上生成する。本実施形態では、サブブロックサイズが5種類あり、その中で正方形の形状のものが3種類あることから、前述の通り、第1から第3までの3種類の量子化マトリクスを生成する。   First, in step S1501, the quantization matrix holding unit 1308 generates one or more quantization matrices. In the present embodiment, there are five types of sub-block sizes, and among them, there are three types of square shapes. As described above, three types of quantization matrices from the first to the third are generated.

ステップS1502にて、量子化マトリクス符号化部1309は量子化マトリクス保持部1308で生成されたそれぞれの正方形の量子化マトリクスを符号化する。   In step S1502, the quantization matrix encoding unit 1309 encodes each square quantization matrix generated by the quantization matrix holding unit 1308.

ステップS1551にて、量子化マトリクス縮小部1351は第3量子化マトリクスを前述の方法で縮小し、16×4画素の直交変換に対応する第4量子化マトリクスおよび4×16画素の直交変換に対応する第5量子化マトリクスを生成する。   In step S1551, the quantization matrix reduction unit 1351 reduces the third quantization matrix by the above-described method, and supports the fourth quantization matrix corresponding to the orthogonal transformation of 16 × 4 pixels and the orthogonal transformation of 4 × 16 pixels. A fifth quantization matrix is generated.

ステップS1503にて、統合符号化部1306はビットストリームのヘッダ部の符号化を行い出力する。ここで、ステップS1502で符号化した量子化マトリクス符号データをヘッダとともに出力する。   In step S1503, the integrated encoding unit 1306 encodes and outputs the header portion of the bitstream. Here, the quantization matrix code data encoded in step S1502 is output together with the header.

本実施形態では、ステップS1551をステップS1502とステップS1503の間で実行したが、ステップS1551の実行順序はこれに限定されない。ステップS1501よりも後で、ステップS504よりも前であれば良い。   In this embodiment, step S1551 is executed between step S1502 and step S1503, but the execution order of step S1551 is not limited to this. It suffices if it is after step S1501 and before step S504.

以上の構成と動作により、各サブブロックサイズが表す直交変換に対応した最適な量子化マトリクスを用いて量子化しつつ、正方形の形状の量子化マトリクスのみを符号化したビットストリームを生成することができる。これにより、量子化マトリクスの符号化によって発生する符号量を抑えることが可能になる。   With the above configuration and operation, it is possible to generate a bit stream in which only a square-shaped quantization matrix is encoded while performing quantization using an optimal quantization matrix corresponding to the orthogonal transform represented by each sub-block size. . Thereby, it is possible to suppress the amount of code generated by encoding the quantization matrix.

なお、本実施形態では、量子化マトリクス縮小部1351によって生成された長方形の直交変換に対応した量子化マトリクスを量子化マトリクス保持部1308に格納する形態を示したが、実施の形態はこれに限定されない。量子化マトリクス保持部1308は正方形の量子化マトリクスのみを格納し、長方形の量子化マトリクスが使用される度に正方形の量子化マトリクスを縮小し、長方形の量子化マトリクスを生成する形態をとっても良い。このようにして、量子化マトリクス保持部1308において量子化マトリクスの保持に必要なメモリ量を軽減することも可能である。   In the present embodiment, the quantization matrix corresponding to the rectangular orthogonal transform generated by the quantization matrix reduction unit 1351 is stored in the quantization matrix holding unit 1308. However, the embodiment is not limited thereto. Not. The quantization matrix holding unit 1308 may store only a square quantization matrix and reduce the square quantization matrix each time a rectangular quantization matrix is used, thereby generating a rectangular quantization matrix. In this way, it is also possible to reduce the amount of memory necessary for holding the quantization matrix in the quantization matrix holding unit 1308.

また、本実施形態では、16画素から4画素への縮小処理を行う際に、4n(ただしnは整数)番目の要素を抽出し、他の要素を間引くことで縮小処理を実現したが、縮小処理の方法はこれに限定されない。4n+1、4n+2、または4n+3番目の要素を抽出し、他の要素を間引くことで縮小処理を実現しても良い。さらには、4n、4n+1、4n+2、4n+3番目の4要素の平均をとることで縮小処理を実現してももちろん構わない。   In this embodiment, when the reduction process from 16 pixels to 4 pixels is performed, the 4n (where n is an integer) element is extracted and the reduction process is realized by thinning out other elements. The processing method is not limited to this. The reduction process may be realized by extracting the 4n + 1, 4n + 2, or 4n + 3th element and thinning out other elements. Furthermore, the reduction process may be realized by taking the average of the 4n, 4n + 1, 4n + 2, 4n + 3th four elements.

また、本実施形態では16×16画素から16×4画素および4×16画素を生成する1/4倍の縮小処理について示したが、倍率はこれに限定されない。16×16画素から16×2画素および2×16画素の1/8倍、または16×16画素から16×8画素および8×16画素の1/2倍としても発明の本質は変わらない。さらには16×16画素から16×4画素を生成した後に生成された16×4画素を16×2画素に変換する方法でも構わない。   Further, in the present embodiment, the reduction processing of 1/4 times that generates 16 × 4 pixels and 4 × 16 pixels from 16 × 16 pixels is shown, but the magnification is not limited thereto. The essence of the invention does not change from 16 × 16 pixels to 1/8 times 16 × 2 pixels and 2 × 16 pixels, or from 16 × 16 pixels to 1/2 times 16 × 8 pixels and 8 × 16 pixels. Furthermore, a method of converting 16 × 4 pixels generated after generating 16 × 4 pixels from 16 × 16 pixels into 16 × 2 pixels may be used.

さらには、本実施形態では16×16画素の量子化マトリクスを縮小する形態を示したが、これに限定されず、32×32画素および8×8画素やさらに大きなサイズの量子化マトリクスを縮小して長方形の量子化マトリクスを生成しても良い。   Furthermore, in the present embodiment, the 16 × 16 pixel quantization matrix is reduced. However, the present invention is not limited to this, and the 32 × 32 pixel, 8 × 8 pixel, or larger quantization matrix is reduced. Thus, a rectangular quantization matrix may be generated.

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

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

14008はビットストリームのヘッダ情報から量子化マトリクス符号データを抽出して復号する量子化マトリクス復号部である。実施形態6で生成されたビットストリームには4×4画素、8×8画素、16×16画素の3種の正方形の直交変換に対応した量子化マトリクスが符号化されているため、本実施形態ではこれら3種の量子化マトリクスを再生する。   Reference numeral 14008 denotes a quantization matrix decoding unit that extracts and decodes quantization matrix code data from the header information of the bit stream. The bit stream generated in the sixth embodiment is encoded with a quantization matrix corresponding to orthogonal transformation of three types of squares of 4 × 4 pixels, 8 × 8 pixels, and 16 × 16 pixels. Then, these three kinds of quantization matrices are reproduced.

14051は、正方形の量子化マトリクスの一辺を縮小して長方形の量子化マトリクスを生成する量子化マトリクス縮小部である。実施形態6の図13の量子化マトリクス縮小部1351と同じ動作を行う。本実施形態では、量子化マトリクス復号部14008で再生された16×16画素の正方形の量子化マトリクスを入力し、縮小処理を行い、4×16画素および16×4画素の量子化マトリクスを生成するものとする。縮小処理についても図13の量子化マトリクス縮小部1351と同様である。   Reference numeral 14051 denotes a quantization matrix reduction unit that generates a rectangular quantization matrix by reducing one side of a square quantization matrix. The same operation as that of the quantization matrix reduction unit 1351 of FIG. In the present embodiment, a 16 × 16 pixel square quantization matrix reproduced by the quantization matrix decoding unit 14008 is input, reduction processing is performed, and 4 × 16 pixel and 16 × 4 pixel quantization matrices are generated. Shall. The reduction process is the same as that of the quantization matrix reduction unit 1351 in FIG.

14009は量子化マトリクス復号部14008で再生された正方形の量子化マトリクスおよび量子化マトリクス縮小部14051で生成された長方形の量子化マトリクスを一旦格納しておく量子化マトリクス保持部である。   Reference numeral 14009 denotes a quantization matrix holding unit that temporarily stores the square quantization matrix reproduced by the quantization matrix decoding unit 14008 and the rectangular quantization matrix generated by the quantization matrix reduction unit 14051.

上記画像復号装置における画像の復号動作を以下に説明する。本実施形態では実施形態5で生成された動画像ビットストリームをフレーム単位で入力する構成となっているが、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 fifth embodiment is input in units of frames. However, a configuration may be adopted in which a still image bitstream for one frame is input. Alternatively, a divided bit stream such as a slice unit or a packet unit may be sequentially input.

図14において、入力された1フレーム分のストリームデータは復号・分離部14001に入力され、画像を再生するのに必要なヘッダ情報が復号され、さらに後段で使用される符号が分離され出力される。   In FIG. 14, the input stream data for one frame is input to the decoding / separating unit 14001, the header information necessary for reproducing the image is decoded, and the code used in the subsequent stage is further separated and output. .

ヘッダ情報に含まれる量子化マトリクス符号データは量子化マトリクス復号部14008に入力され、後段の逆量子化処理で用いられる量子化マトリクスとしてサブブロックサイズに対応する量子化マトリクスが再生される。本実施形態では、4×4画素サブブロックに対応する第1量子化マトリクス、8×8画素サブブロックに対応する第2量子化マトリクス、16×16画素サブブロックに対応する第3量子化マトリクスの正方形の量子化マトリクス3種類を再生する。本実施形態では、サブブロックサイズが4×4画素、8×8画素、16×16画素、16×4画素、4×16画素の5種類であるが、その中で正方形の形状のものは3種類である。そのため、再生する量子化マトリクスは3種類となっているが、直交変換の形状の増減に合わせて、再生する量子化マトリクスも増減する。   The quantization matrix code data included in the header information is input to the quantization matrix decoding unit 14008, and a quantization matrix corresponding to the sub-block size is reproduced as a quantization matrix used in the subsequent inverse quantization process. In the present embodiment, the first quantization matrix corresponding to the 4 × 4 pixel sub-block, the second quantization matrix corresponding to the 8 × 8 pixel sub-block, and the third quantization matrix corresponding to the 16 × 16 pixel sub-block Three types of square quantization matrix are reproduced. In the present embodiment, there are five types of sub-block sizes of 4 × 4 pixels, 8 × 8 pixels, 16 × 16 pixels, 16 × 4 pixels, and 4 × 16 pixels. It is a kind. For this reason, there are three types of quantization matrices to be reproduced, but the quantization matrices to be reproduced also increase / decrease as the shape of orthogonal transformation increases / decreases.

再生された正方形の量子化マトリクスは量子化マトリクス縮小部14051に入力され、長方形の直交変換に対応する量子化マトリクスを入力された正方形の量子化マトリクスから生成する。本実施形態では、16×4画素および4×16画素の2種の直交変換サイズが存在しているため、16×4画素および4×16画素の量子化マトリクスを16×16画素の量子化マトリクスを縮小して生成する。生成された長方形の量子化マトリクスは量子化マトリクス復号部14008で再生された正方形の量子化マトリクスとともに量子化マトリクス保持部14009に入力され、一旦格納される。   The reproduced square quantization matrix is input to the quantization matrix reduction unit 14051, and a quantization matrix corresponding to rectangular orthogonal transformation is generated from the input square quantization matrix. In this embodiment, since there are two types of orthogonal transform sizes of 16 × 4 pixels and 4 × 16 pixels, a 16 × 4 pixel quantization matrix is replaced with a 16 × 4 pixel quantization matrix. Reduce to generate. The generated rectangular quantization matrix is input to the quantization matrix holding unit 14009 together with the square quantization matrix reproduced by the quantization matrix decoding unit 14008, and is temporarily stored.

また、復号・分離部14001で分離された符号のうち、予測および変換に関する符号は予測・変換方法抽出部306に入力され、復号されて、予測方法とサブブロックサイズを示す情報が生成される。さらに、復号・分離部14001で分離された符号のうち、量子化係数符号データは係数復号部302に入力される。   Of the codes separated by the decoding / separation unit 14001, the codes related to prediction and conversion are input to the prediction / conversion method extraction unit 306 and decoded to generate information indicating the prediction method and the sub-block size. Further, among the codes separated by the decoding / separating unit 14001, the quantized coefficient code data is input to the coefficient decoding unit 302.

図16は、実施形態6に係る画像復号装置における画像復号処理を示すフローチャートである。実施形態2の図6と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。   FIG. 16 is a flowchart illustrating an image decoding process in the image decoding apparatus according to the sixth embodiment. The same numbers are assigned to portions that perform the same functions as those in FIG. 6 of the second embodiment, and descriptions thereof are omitted.

まず、ステップS1601にて、復号・分離部14001はヘッダ情報を復号する。   First, in step S1601, the decoding / separating unit 14001 decodes the header information.

ステップS1602にて、量子化マトリクス復号部14008はヘッダ情報に含まれる量子化マトリクス符号データを復号し、後段の逆量子化処理で用いる量子化マトリクスが再生される。本実施形態では正方形の各サブブロックサイズに対応した、4×4画素の第1量子化マトリクス、8×8画素の第2量子化マトリクス、16×16画素の第3量子化マトリクスを復号・再生する。ただし、復号順序はこれに限定されない。   In step S1602, the quantization matrix decoding unit 14008 decodes the quantization matrix code data included in the header information, and the quantization matrix used in the subsequent inverse quantization process is reproduced. In this embodiment, the first quantization matrix of 4 × 4 pixels, the second quantization matrix of 8 × 8 pixels, and the third quantization matrix of 16 × 16 pixels corresponding to each square sub-block size are decoded and reproduced. To do. However, the decoding order is not limited to this.

ステップS1651にて、量子化マトリクス縮小部14051は第3量子化マトリクスを前述の方法で縮小し、16×4画素の直交変換に対応する第4量子化マトリクスおよび4×16画素の直交変換に対応する第5量子化マトリクスを生成する。本ステップの処理は図15のステップS1551と同様である。   In step S1651, the quantization matrix reduction unit 14051 reduces the third quantization matrix by the above-described method, and supports the fourth quantization matrix corresponding to the orthogonal transformation of 16 × 4 pixels and the orthogonal transformation of 4 × 16 pixels. A fifth quantization matrix is generated. The processing in this step is the same as that in step S1551 in FIG.

以上の構成と動作により、実施形態5で生成された、各サブブロックサイズが表す直交変換に対応した最適な量子化マトリクスを用いて量子化しつつ、正方形の量子化マトリクスのみを符号化したビットストリームの復号を行い、再生映像を得ることができる。これにより、量子化マトリクスの符号化によって発生する符号量を抑えたビットストリームの復号が可能になる。   With the above configuration and operation, a bit stream generated by encoding the square quantization matrix only while quantizing using the optimum quantization matrix corresponding to the orthogonal transform represented by each sub-block size, generated in the fifth embodiment. Can be decoded to obtain a reproduced video. As a result, it is possible to decode a bitstream with a reduced code amount generated by encoding the quantization matrix.

なお、本実施形態では、量子化マトリクス縮小部14051によって生成された長方形の直交変換に対応した量子化マトリクスを量子化マトリクス保持部14009に格納する形態を示したが、実施の形態はこれに限定されない。量子化マトリクス保持部14009は正方形の量子化マトリクスのみを格納し、長方形の量子化マトリクスが使用される度に正方形の量子化マトリクスを縮小し、長方形の量子化マトリクスを生成する形態をとっても良い。このようにして、量子化マトリクス保持部14009において量子化マトリクスの保持に必要なメモリ量を軽減することも可能である。   In the present embodiment, the quantization matrix corresponding to the rectangular orthogonal transform generated by the quantization matrix reduction unit 14051 is stored in the quantization matrix holding unit 14009. However, the embodiment is not limited thereto. Not. The quantization matrix holding unit 14009 may store only a square quantization matrix and reduce the square quantization matrix every time a rectangular quantization matrix is used, thereby generating a rectangular quantization matrix. In this way, it is possible to reduce the amount of memory required for holding the quantization matrix in the quantization matrix holding unit 14009.

また、本実施形態では、16画素から4画素への縮小処理を行う際に、4n(ただしnは整数)番目の要素を抽出し、他の要素を間引くことで縮小処理を実現したが、縮小処理の方法はこれに限定されない。4n+1、4n+2、または4n+3番目の要素を抽出し、他の要素を間引くことで縮小処理を実現しても良い。さらには、4n、4n+1、4n+2、4n+3番目の4要素の平均をとることで縮小処理を実現してももちろん構わない。   In this embodiment, when the reduction process from 16 pixels to 4 pixels is performed, the 4n (where n is an integer) element is extracted and the reduction process is realized by thinning out other elements. The processing method is not limited to this. The reduction process may be realized by extracting the 4n + 1, 4n + 2, or 4n + 3th element and thinning out other elements. Furthermore, the reduction process may be realized by taking the average of the 4n, 4n + 1, 4n + 2, 4n + 3th four elements.

また、本実施形態では16×16画素から16×4画素および4×16画素を生成する1/4倍の縮小処理について示したが、倍率はこれに限定されない。16×16画素から16×2画素および2×16画素の1/8倍、または16×16画素から16×8画素および8×16画素の1/2倍としても発明の本質は変わらない。   Further, in the present embodiment, the reduction processing of 1/4 times that generates 16 × 4 pixels and 4 × 16 pixels from 16 × 16 pixels is shown, but the magnification is not limited thereto. The essence of the invention does not change from 16 × 16 pixels to 1/8 times 16 × 2 pixels and 2 × 16 pixels, or from 16 × 16 pixels to 1/2 times 16 × 8 pixels and 8 × 16 pixels.

さらには、本実施形態では16×16画素の量子化マトリクスを縮小する形態を示したが、32×32画素および8×8画素の量子化マトリクスを縮小して長方形の量子化マトリクスを生成しても良い。   Furthermore, in the present embodiment, the 16 × 16 pixel quantization matrix is reduced, but the 32 × 32 pixel and 8 × 8 pixel quantization matrix is reduced to generate a rectangular quantization matrix. Also good.

<実施形態7>
図1、図3、図8、図9、図13、図14に示した各処理部はハードウェアでもって構成しているものとして上記実施形態では説明した。しかし、図1、図3、図8、図9、図13、図14に示した各処理部で行なう処理をコンピュータプログラムでもって構成しても良い。
<Embodiment 7>
In the above embodiment, each processing unit shown in FIGS. 1, 3, 8, 9, 13, and 14 is configured by hardware. However, the processing performed in each processing unit shown in FIG. 1, FIG. 3, FIG. 8, FIG. 9, FIG.

図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.

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

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

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

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

外部記憶装置1406に保存されているコンピュータプログラムやデータは、CPU1401による制御に従って適宜RAM1402にロードされ、CPU1401による処理対象となる。I/F1407には、LANやインターネット等のネットワーク、投影装置や表示装置などの他の機器を接続することができ、本コンピュータはこのI/F1407を介して様々な情報を取得したり、送出したりすることができる。1408は上述の各部を繋ぐバスである。   Computer programs and data stored in the external storage device 1406 are appropriately loaded into the RAM 1402 under the control of the CPU 1401 and are processed by the CPU 1401. The I / F 1407 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 send various information via the I / F 1407. Can be. A bus 1408 connects the above-described units.

上述の構成からなる作動は前述のフローチャートで説明した作動をCPU1401が中心となってその制御を行う。   The operation having the above-described configuration is controlled by the CPU 1401 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)

入力画像を複数のブロックに分割するブロック分割手段と、
ブロック分割手段によって分割されたブロックに対して符号化済みのブロックから予測を行い、予測誤差を生成する予測手段と、
正方形ないし長方形の複数の直交変換の処理ブロック形状から、使用する処理ブロック形状を決定し、前記予測手段によって生成された予測誤差に前記決定された直交変換を行い、変換係数を生成する変換手段と、
前記変換手段によって決定された直交変換の処理ブロック形状に基づいて量子化マトリクスを選択する量子化マトリクス選択手段と、
前記量子化マトリクス選択手段によって選択された量子化マトリクスを用いて変換係数を量子化して量子化係数を生成する量子化手段と、
前記量子化手段によって生成された量子化係数を符号化する係数符号化手段
を有することを特徴とする画像符号化装置。
Block dividing means for dividing the input image into a plurality of blocks;
A prediction unit that performs prediction from a block that has been encoded with respect to the block divided by the block division unit, and generates a prediction error;
Transform means for determining a processing block shape to be used from a plurality of square or rectangular orthogonal processing block shapes, performing the determined orthogonal transform on the prediction error generated by the prediction means, and generating transform coefficients; ,
Quantization matrix selection means for selecting a quantization matrix based on the processing block shape of the orthogonal transformation determined by the transformation means;
Quantization means for quantizing a transform coefficient using the quantization matrix selected by the quantization matrix selection means to generate a quantization coefficient;
An image encoding apparatus comprising coefficient encoding means for encoding the quantized coefficient generated by the quantization means.
前記変換係数を量子化する際に用いられる正方形ないし長方形の複数の直交変換の処理ブロック形状に対応した量子化マトリクスを生成する量子化マトリクス生成手段と、
前記量子化マトリクス生成手段によって生成された量子化マトリクスを符号化する量子化マトリクス符号化手段と、
前記量子化マトリクス符号化手段によって符号化された量子化マトリクスと、前記係数符号化手段によって符号化された量子化係数を統合する統合符号化手段とを更に有することを特徴とする請求項1に記載の画像符号化装置。
A quantization matrix generating means for generating a quantization matrix corresponding to a plurality of square or rectangular orthogonal transform processing block shapes used when quantizing the transform coefficient;
Quantization matrix encoding means for encoding the quantization matrix generated by the quantization matrix generation means;
2. The apparatus according to claim 1, further comprising: a quantization matrix encoded by the quantization matrix encoding unit; and an integrated encoding unit that integrates the quantized coefficients encoded by the coefficient encoding unit. The image encoding device described.
入力されたビットストリームから必要な符号を分離する復号手段と、
前記復号手段によって復号された情報から、逆直交変換の処理ブロック形状を決定する決定手段と、
復号手段によって復号された情報から、量子化係数を復号する係数復号手段と、
前記係数復号手段によって復号された量子化係数を逆量子化する際に用いられる量子化マトリクスを復号する量子化マトリクス復号手段と、
前記決定手段によって決定された逆直交変換の処理ブロック形状に基づいて量子化マトリクスを選択する量子化マトリクス選択手段と、
前記量子化マトリクス選択手段によって選択された量子化マトリクスを用いて、前記係数復号手段によって復号された量子化係数を逆量子化して変換係数を生成する逆量子化手段と、
前記決定手段によって決定された逆直交変換の形状に基づいて、前記逆量子化手段によって生成された変換係数を逆直交変換して予測誤差を生成する逆直交変換手段とを有することを特徴とする画像復号装置。
Decoding means for separating necessary codes from the input bitstream;
Determining means for determining a processing block shape of inverse orthogonal transform from the information decoded by the decoding means;
Coefficient decoding means for decoding quantized coefficients from the information decoded by the decoding means;
Quantization matrix decoding means for decoding a quantization matrix used when inversely quantizing the quantized coefficients decoded by the coefficient decoding means;
A quantization matrix selection unit that selects a quantization matrix based on the processing block shape of the inverse orthogonal transform determined by the determination unit;
Using the quantization matrix selected by the quantization matrix selection means, inverse quantization means for dequantizing the quantized coefficients decoded by the coefficient decoding means to generate transform coefficients;
And an inverse orthogonal transform unit that generates a prediction error by performing an inverse orthogonal transform on the transform coefficient generated by the inverse quantization unit based on the shape of the inverse orthogonal transform determined by the determination unit. Image decoding device.
画像符号化装置における画像符号化方法であって、
入力画像を複数のブロックに分割するブロック分割工程と、
分割されたブロックに対して符号化済みのブロックから予測を行い、予測誤差を生成する予測工程と、
正方形ないし長方形の複数の直交変換の処理ブロック形状から、使用する処理ブロック形状を決定し、生成された予測誤差に前記決定された直交変換を行い、変換係数を生成する変換工程と、
決定された直交変換の処理ブロック形状に基づいて量子化マトリクスを選択する量子化マトリクス選択工程と、
選択された量子化マトリクスを用いて変換係数を量子化して量子化係数を生成する量子化工程と、
生成された量子化係数を符号化する係数符号化工程とを有することを特徴とする画像符号化方法。
An image encoding method in an image encoding device, comprising:
A block dividing step of dividing the input image into a plurality of blocks;
A prediction step of performing prediction from the encoded block on the divided block and generating a prediction error;
A transformation step of determining a processing block shape to be used from a plurality of square or rectangular orthogonal transformation block shapes, performing the determined orthogonal transformation on the generated prediction error, and generating a transformation coefficient;
A quantization matrix selection step of selecting a quantization matrix based on the determined processing block shape of the orthogonal transform;
A quantization step of quantizing the transform coefficient using the selected quantization matrix to generate a quantization coefficient;
An image encoding method comprising: a coefficient encoding step for encoding the generated quantized coefficient.
画像復号装置における画像復号方法であって、
入力されたビットストリームから必要な符号を分離する復号工程と、
復号された情報から、逆直交変換の処理ブロック形状を決定する決定工程と、
復号された情報から、量子化係数を復号する係数復号工程と、
復号された量子化係数を逆量子化する際に用いられる量子化マトリクスを復号する量子化マトリクス復号工程と、
決定された逆直交変換の処理ブロック形状に基づいて量子化マトリクスを選択する量子化マトリクス選択工程と、
選択された量子化マトリクスを用いて、復号された量子化係数を逆量子化して変換係数を生成する逆量子化工程と、
決定された逆直交変換の形状に基づいて、生成された変換係数を逆直交変換して予測誤差を生成する逆直交変換工程とを有することを特徴とする画像復号方法。
An image decoding method in an image decoding device, comprising:
A decoding step of separating necessary codes from the input bitstream;
A determination step of determining a processing block shape of inverse orthogonal transform from the decoded information;
A coefficient decoding step of decoding quantized coefficients from the decoded information;
A quantization matrix decoding step for decoding a quantization matrix used when dequantizing the decoded quantization coefficient;
A quantization matrix selection step of selecting a quantization matrix based on the determined inverse orthogonal transform processing block shape;
Using the selected quantization matrix, dequantizing the decoded quantized coefficients to generate transform coefficients; and
An image decoding method comprising: an inverse orthogonal transform step of generating a prediction error by performing an inverse orthogonal transform on a generated transform coefficient based on the determined shape of the inverse orthogonal transform.
コンピュータが読み出して実行することにより、前記コンピュータを、請求項1に記載の符号化装置として機能させることを特徴とするプログラム。   A program that causes the computer to function as the encoding device according to claim 1 by being read and executed by the computer. コンピュータが読み出して実行することにより、前記コンピュータを、請求項3に記載の復号装置として機能させることを特徴とするプログラム。   A program that causes the computer to function as the decoding device according to claim 3 by being read and executed by the computer.
JP2011243937A 2011-07-13 2011-11-07 Image encoder, image encoding method, program, image decoder, image decoding method and program Pending JP2013038758A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2011243937A JP2013038758A (en) 2011-07-13 2011-11-07 Image encoder, image encoding method, program, image decoder, image decoding method and program
PCT/JP2012/004471 WO2013008459A1 (en) 2011-07-13 2012-07-11 Image encoding apparatus, image encoding method, image decoding apparatus, image decoding method, and program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2011155012 2011-07-13
JP2011155012 2011-07-13
JP2011243937A JP2013038758A (en) 2011-07-13 2011-11-07 Image encoder, image encoding method, program, image decoder, image decoding method and program

Publications (1)

Publication Number Publication Date
JP2013038758A true JP2013038758A (en) 2013-02-21

Family

ID=47505762

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011243937A Pending JP2013038758A (en) 2011-07-13 2011-11-07 Image encoder, image encoding method, program, image decoder, image decoding method and program

Country Status (2)

Country Link
JP (1) JP2013038758A (en)
WO (1) WO2013008459A1 (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014519766A (en) * 2011-08-23 2014-08-14 メディア テック シンガポール ピーティーイー.リミテッド Method and system for transform block processing according to quantization matrix in video coding
EP2819415A1 (en) 2013-06-28 2014-12-31 Renesas Electronics Corporation Image decoding apparatus
WO2015146646A1 (en) * 2014-03-28 2015-10-01 ソニー株式会社 Image decoding device and method
CN109479138A (en) * 2016-07-13 2019-03-15 韩国电子通信研究院 Image encoding/decoding method and apparatus
WO2019189344A1 (en) * 2018-03-30 2019-10-03 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Encoding device, decoding device, encoding method and decoding method
WO2019189346A1 (en) * 2018-03-30 2019-10-03 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Encoding device, decoding device, encoding method and decoding method
WO2020003740A1 (en) * 2018-06-29 2020-01-02 キヤノン株式会社 Image coding device, image decoding device, control methods therefor, and program
WO2020129498A1 (en) 2018-12-17 2020-06-25 キヤノン株式会社 Image encoding device, image encoding method, image decoding device, and image decoding method
WO2020129407A1 (en) 2018-12-17 2020-06-25 キヤノン株式会社 Image encoding device, image decoding device, control method for these, and program
WO2020129489A1 (en) 2018-12-17 2020-06-25 キヤノン株式会社 Image encoding device, image decoding device, and method and program for controlling same
WO2020184227A1 (en) 2019-03-11 2020-09-17 キヤノン株式会社 Image decoder, image decoding method, and program
WO2020184223A1 (en) 2019-03-11 2020-09-17 キヤノン株式会社 Image decoder, image decoding method, and program
WO2020184229A1 (en) 2019-03-11 2020-09-17 キヤノン株式会社 Image encoding device, image encoding method, and program
WO2020246125A1 (en) 2019-06-07 2020-12-10 キヤノン株式会社 Image coding device, image decoding device, method, and program
WO2021054012A1 (en) 2019-09-19 2021-03-25 キヤノン株式会社 Image encoding device, image decoding device, control method therefor, and program
JP2022544950A (en) * 2019-08-14 2022-10-24 インターデジタル ヴイシー ホールディングス フランス,エスエーエス Quantization matrix prediction for video encoding and decoding
WO2023181607A1 (en) 2022-03-22 2023-09-28 キヤノン株式会社 Image encoder, image decoder, image encoding method and image decoding method
WO2023181546A1 (en) 2022-03-22 2023-09-28 キヤノン株式会社 Image encoding device, image decoding device, image encoding method, and image decoding method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683801B (en) 2013-11-29 2018-06-05 华为技术有限公司 Method for compressing image and device
KR102315926B1 (en) * 2016-10-10 2021-10-21 삼성전자주식회사 Video encoding/decoding method and apparatus therefor
CN111405279B (en) * 2019-01-03 2021-06-29 华为技术有限公司 Quantization and inverse quantization method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10022331A1 (en) * 2000-05-10 2001-11-15 Bosch Gmbh Robert Method for transformation coding of moving image sequences e.g. for audio-visual objects, involves block-wise assessing movement vectors between reference- and actual- image signals of image sequence
US7760950B2 (en) * 2002-09-26 2010-07-20 Ntt Docomo, Inc. Low complexity and unified transforms for video coding

Cited By (62)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014519766A (en) * 2011-08-23 2014-08-14 メディア テック シンガポール ピーティーイー.リミテッド Method and system for transform block processing according to quantization matrix in video coding
US9560347B2 (en) 2011-08-23 2017-01-31 Hfi Innovation Inc. Method and system of transform block processing according to quantization matrix in video coding
US10218977B2 (en) 2011-08-23 2019-02-26 Hfi Innovation Inc. Method and system of transform block processing according to quantization matrix in video coding
EP2819415A1 (en) 2013-06-28 2014-12-31 Renesas Electronics Corporation Image decoding apparatus
US9800874B2 (en) 2013-06-28 2017-10-24 Renesas Electronics Corporation Image decoding apparatus executing successive tile decoding and filtering around tile boundary
WO2015146646A1 (en) * 2014-03-28 2015-10-01 ソニー株式会社 Image decoding device and method
JPWO2015146646A1 (en) * 2014-03-28 2017-04-13 ソニー株式会社 Image decoding apparatus and method
US10298927B2 (en) 2014-03-28 2019-05-21 Sony Corporation Image decoding device and method
CN109479138A (en) * 2016-07-13 2019-03-15 韩国电子通信研究院 Image encoding/decoding method and apparatus
CN109479138B (en) * 2016-07-13 2023-11-03 韩国电子通信研究院 Image encoding/decoding method and device
US12413732B2 (en) 2018-03-30 2025-09-09 Panasonic Intellectual Property Corporation Of America Encoder, decoder, and related non-transitory computer readable medium
US11722670B2 (en) 2018-03-30 2023-08-08 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
US11166025B2 (en) 2018-03-30 2021-11-02 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
US12177441B2 (en) 2018-03-30 2024-12-24 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
WO2019189346A1 (en) * 2018-03-30 2019-10-03 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Encoding device, decoding device, encoding method and decoding method
JP2023175033A (en) * 2018-03-30 2023-12-08 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Encoding device, decoding device and bitstream generation device
WO2019189344A1 (en) * 2018-03-30 2019-10-03 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Encoding device, decoding device, encoding method and decoding method
JP2022111209A (en) * 2018-03-30 2022-07-29 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Encoding device and decoding device
US11716473B2 (en) 2018-03-30 2023-08-01 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
JPWO2019189344A1 (en) * 2018-03-30 2021-03-11 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Coding device, decoding device, coding method and decoding method
US11683492B2 (en) 2018-03-30 2023-06-20 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
US11677949B2 (en) 2018-03-30 2023-06-13 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
CN116233457A (en) * 2018-03-30 2023-06-06 松下电器(美国)知识产权公司 Encoding device, decoding device and storage medium
US11595654B2 (en) 2018-03-30 2023-02-28 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
US11457215B2 (en) 2018-03-30 2022-09-27 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
WO2020003740A1 (en) * 2018-06-29 2020-01-02 キヤノン株式会社 Image coding device, image decoding device, control methods therefor, and program
US11930178B2 (en) 2018-12-17 2024-03-12 Canon Kabushiki Kaisha Image encoding apparatus, image encoding method, image decoding apparatus, image decoding method, and non-transitory computer-readable storage medium
JP2023139325A (en) * 2018-12-17 2023-10-03 キヤノン株式会社 Image encoding device, image encoding method, image decoding device, and image decoding method
WO2020129498A1 (en) 2018-12-17 2020-06-25 キヤノン株式会社 Image encoding device, image encoding method, image decoding device, and image decoding method
JP7727815B2 (en) 2018-12-17 2025-08-21 キヤノン株式会社 Image encoding device, image encoding method, image decoding device, image decoding method
JP2025013665A (en) * 2018-12-17 2025-01-24 キヤノン株式会社 Image encoding device, image encoding method, image decoding device, image decoding method
WO2020129407A1 (en) 2018-12-17 2020-06-25 キヤノン株式会社 Image encoding device, image decoding device, control method for these, and program
JP7594638B2 (en) 2018-12-17 2024-12-04 キヤノン株式会社 Image encoding device, image encoding method, image decoding device, image decoding method
KR20210100172A (en) 2018-12-17 2021-08-13 캐논 가부시끼가이샤 image encoding apparatus, image encoding method, image decoding apparatus, image decoding method
KR20210096279A (en) 2018-12-17 2021-08-04 캐논 가부시끼가이샤 Image encoding apparatus and image decoding apparatus, and their control method and program
KR20210095947A (en) 2018-12-17 2021-08-03 캐논 가부시끼가이샤 Image encoding apparatus and image decoding apparatus, and their control method and program
US11997276B2 (en) 2018-12-17 2024-05-28 Canon Kabushiki Kaisha Image encoding apparatus, image decoding apparatus, control methods and non-transitory computer-readable storage medium
WO2020129489A1 (en) 2018-12-17 2020-06-25 キヤノン株式会社 Image encoding device, image decoding device, and method and program for controlling same
US11849114B2 (en) 2018-12-17 2023-12-19 Canon Kabushiki Kaisha Image encoding apparatus, image decoding apparatus, control methods thereof, and non-transitory computer-readable storage medium
WO2020184227A1 (en) 2019-03-11 2020-09-17 キヤノン株式会社 Image decoder, image decoding method, and program
US11985352B2 (en) 2019-03-11 2024-05-14 Canon Kabushiki Kaisha Image coding apparatus, image coding method, and storage media
KR20210125089A (en) 2019-03-11 2021-10-15 캐논 가부시끼가이샤 Image decoding apparatus, image decoding method and program
WO2020184223A1 (en) 2019-03-11 2020-09-17 キヤノン株式会社 Image decoder, image decoding method, and program
KR20210126121A (en) 2019-03-11 2021-10-19 캐논 가부시끼가이샤 Image decoding apparatus, image decoding method and program
WO2020184229A1 (en) 2019-03-11 2020-09-17 キヤノン株式会社 Image encoding device, image encoding method, and program
KR20210125095A (en) 2019-03-11 2021-10-15 캐논 가부시끼가이샤 Image encoding apparatus, image encoding method and storage medium
US12075049B2 (en) 2019-03-11 2024-08-27 Canon Kabushiki Kaisha Image decoding apparatus, image decoding method, and storage medium
US11962806B2 (en) 2019-03-11 2024-04-16 Canon Kabushiki Kaisha Image decoding apparatus, image decoding method, and storage medium
US11856198B2 (en) 2019-06-07 2023-12-26 Canon Kabushiki Kaisha Image decoding device, method, and non-transitory computer-readable storage medium
KR20220011175A (en) 2019-06-07 2022-01-27 캐논 가부시끼가이샤 Image decoding apparatus, decoding method, and computer program
WO2020246125A1 (en) 2019-06-07 2020-12-10 キヤノン株式会社 Image coding device, image decoding device, method, and program
JP7640525B2 (en) 2019-08-14 2025-03-05 インターディジタル・シーイー・パテント・ホールディングス・ソシエテ・パ・アクシオンス・シンプリフィエ Quantization matrix prediction for video encoding and decoding.
US12160577B2 (en) 2019-08-14 2024-12-03 Interdigital Ce Patent Holdings, Sas Quantization matrix prediction for video encoding and decoding
JP2022544950A (en) * 2019-08-14 2022-10-24 インターデジタル ヴイシー ホールディングス フランス,エスエーエス Quantization matrix prediction for video encoding and decoding
JP2025072672A (en) * 2019-08-14 2025-05-09 インターディジタル・シーイー・パテント・ホールディングス・ソシエテ・パ・アクシオンス・シンプリフィエ Quantization matrix prediction for video encoding and decoding.
WO2021054012A1 (en) 2019-09-19 2021-03-25 キヤノン株式会社 Image encoding device, image decoding device, control method therefor, and program
KR20220058959A (en) 2019-09-19 2022-05-10 캐논 가부시끼가이샤 Image encoding apparatus, image decoding apparatus, and their control method and program
US12137224B2 (en) 2019-09-19 2024-11-05 Canon Kabushiki Kaisha Image encoding apparatus, image decoding apparatus, methods for the same, and non-transitory computer-readable storage medium for suppressing the code amount of quantization matrices
KR20240162116A (en) 2022-03-22 2024-11-14 캐논 가부시끼가이샤 Image encoding device, image decoding device, image encoding method and image decoding method
KR20240166515A (en) 2022-03-22 2024-11-26 캐논 가부시끼가이샤 Image encoding device, image decoding device, image encoding method, and image decoding method
WO2023181546A1 (en) 2022-03-22 2023-09-28 キヤノン株式会社 Image encoding device, image decoding device, image encoding method, and image decoding method
WO2023181607A1 (en) 2022-03-22 2023-09-28 キヤノン株式会社 Image encoder, image decoder, image encoding method and image decoding method

Also Published As

Publication number Publication date
WO2013008459A1 (en) 2013-01-17

Similar Documents

Publication Publication Date Title
JP2013038758A (en) Image encoder, image encoding method, program, image decoder, image decoding method and program
CN108810536B (en) Image encoding apparatus
JP6315911B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
JP5875236B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
JP5871628B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
JP2013038768A (en) Image encoder, image encoding method, program, image decoder, image decoding method and program
JP2014011634A (en) Image encoder, image encoding method and program, image decoder, and image decoding method and program
JP2013110518A (en) Image coding apparatus, image coding method, and program, and image decoding apparatus, image decoding method, and program
JP6041554B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
JP2013146038A (en) Image quantization apparatus, image quantization method, and program, and image inverse quantization apparatus, image inverse quantization method, and program
JP2013012887A (en) Image encoding apparatus, image encoding method and program, image decoding apparatus, image decoding method and program
JP2011082629A (en) Image coding method, image decoding method, image coding apparatus, image decoding apparatus, and program
JP6469277B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
JP6618578B2 (en) Image encoding apparatus and image decoding apparatus
JP6679778B2 (en) Image coding device, image coding method and program, image decoding device, image decoding method and program
JP2016103854A (en) Image encoder, image encoding method and program, and image decoder, image decoding method and program