Movatterモバイル変換


[0]ホーム

URL:


WO2015045736A1 - Image coding device, image decoding device, and programs therefor - Google Patents

Image coding device, image decoding device, and programs therefor
Download PDF

Info

Publication number
WO2015045736A1
WO2015045736A1PCT/JP2014/072791JP2014072791WWO2015045736A1WO 2015045736 A1WO2015045736 A1WO 2015045736A1JP 2014072791 WJP2014072791 WJP 2014072791WWO 2015045736 A1WO2015045736 A1WO 2015045736A1
Authority
WO
WIPO (PCT)
Prior art keywords
quantization
quantization matrix
block
unit
transform
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.)
Ceased
Application number
PCT/JP2014/072791
Other languages
French (fr)
Japanese (ja)
Inventor
市ヶ谷 敦郎
俊輔 岩村
泰子 森田
境田 慎一
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.)
Japan Broadcasting Corp
Original Assignee
Nippon Hoso Kyokai NHK
Japan Broadcasting Corp
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 Nippon Hoso Kyokai NHK, Japan Broadcasting CorpfiledCriticalNippon Hoso Kyokai NHK
Priority to JP2015525679ApriorityCriticalpatent/JP6143866B2/en
Priority to CN201480053809.9Aprioritypatent/CN105580368B/en
Priority to BR112016006686-3Aprioritypatent/BR112016006686B1/en
Priority to MYPI2016701121Aprioritypatent/MY183347A/en
Priority to EP14846805.1Aprioritypatent/EP3054683A4/en
Publication of WO2015045736A1publicationCriticalpatent/WO2015045736A1/en
Priority to US15/084,073prioritypatent/US11223827B2/en
Anticipated expirationlegal-statusCritical
Priority to US17/646,832prioritypatent/US11647195B2/en
Priority to US18/193,436prioritypatent/US12177440B2/en
Ceasedlegal-statusCriticalCurrent

Links

Images

Classifications

Definitions

Landscapes

Abstract

An image coding device is provided with a determination unit which determines whether to apply an orthogonal transform to a transform block obtained by dividing a prediction difference signal indicating a difference between an input image and a predicted image or perform a transform skip by which the orthogonal transform is not applied, and an orthogonal transform unit which performs processing selected on the basis of the determination, the image coding device comprising a quantization unit which, when the transform skip is selected on the basis of the determination, quantizes the transform block using a first quantization matrix in which the quantization roughnesses of all elements previously shared with a decoding side are equal, and when the orthogonal transform is applied to the transform block on the basis of the determination, quantizes the transform block using the first quantization matrix or a second quantization matrix that is transmitted to the decoding side.

Description

Translated fromJapanese
画像符号化装置、画像復号装置及びそれらのプログラムImage encoding apparatus, image decoding apparatus, and programs thereof

 本発明は、画像符号化装置、画像復号装置及びそれらのプログラムに関する。The present invention relates to an image encoding device, an image decoding device, and their programs.

 マルチメディア技術の普及により、日常生活でもしばしば動画像が扱われている。画像データは、一般に情報量が多いうえ、動画像は複数の静止画で形成される。そのため、動画像データを伝送・蓄積する際、画像符号化技術を用いて情報量を圧縮するのが通例である。高い能率で情報量を圧縮する符号化方式として、予測符号化方式がある。予測符号化方式は、現時点での予測画像を過去に符号化した画像から予測する処理と、入力された入力画像と予測画像との差分である差分画像を符号化する処理からなる。差分画像の符号化では、差分画像について変換処理や、変換領域(例えば、空間周波数領域)で示される変換係数を量子化したうえでエントロピー符号化等の可逆符号化が行われる。人間の視覚特性は、空間周波数が低い周波数帯域(低域)のほうが高域よりも敏感であるため、量子化において低域ほど小さく、高域ほど大きい量子化幅が用いられることがある。このようなブロック内の座標もしくは周波数毎の量子化幅で形成されるデータは、量子化マトリクスと呼ばれる。これにより差分信号の低域成分が重視されるので、情報量を圧縮しても主観的な品質の低下が抑制される。Due to the spread of multimedia technology, moving images are often handled in daily life. Image data generally has a large amount of information, and a moving image is formed of a plurality of still images. For this reason, when transmitting and storing moving image data, it is common to compress the amount of information using an image encoding technique. As a coding method that compresses the amount of information with high efficiency, there is a predictive coding method. The predictive encoding method includes a process of predicting a current predicted image from an image encoded in the past, and a process of encoding a difference image that is a difference between the input image input and the predicted image. In the encoding of the difference image, loss processing such as entropy encoding is performed after transforming the difference image and quantizing the transform coefficient indicated in the transform region (for example, the spatial frequency region). Since human visual characteristics are more sensitive in the frequency band (low frequency) where the spatial frequency is low than in the high frequency, quantization may be performed with a lower quantization frequency and a higher quantization frequency. Data formed with such a coordinate in a block or a quantization width for each frequency is called a quantization matrix. Thereby, since the low frequency component of the difference signal is emphasized, even if the amount of information is compressed, the deterioration of subjective quality is suppressed.

 予測符号化方式の代表的な方式として、非特許文献1に記載のHEVC(High Eficiency Video Coding、高能率画像符号化)方式(ISO/IEC 23008-2 HEVC、ITU-T Recommendation H.265とも呼ばれる)がある。HEVC方式では、差分画像の一部であるブロック毎に変換処理の一種である直交変換を省略(スキップ)するか否かを判定し、省略すると判定されたとき差分画像を量子化して可逆符号化が行われる。ここで、直交変換を行うか否かの各々について差分の大きさを比較して、直交変換を省略するか否かが定められる。直交変換を省略して量子化及び符号化を行う処理モードは、変換スキップ(TS:Transform Skip)モードと呼ばれる。TSモードが選択された場合、差分画像の低域成分が主ではない場合でも、情報量を圧縮することができる。As a typical predictive coding method, HEVC (High Efficiency Video Coding) method (ISO / IEC 23008-2 HEVC, ITU-T Recommendation H.265) described in Non-Patent Document 1 is also used. ) In the HEVC method, it is determined whether or not orthogonal transformation, which is a type of transformation processing, is omitted (skip) for each block that is a part of a difference image. When it is determined to be omitted, the difference image is quantized and lossless encoded. Is done. Here, for each of whether or not to perform orthogonal transformation, the magnitude of the difference is compared, and whether or not the orthogonal transformation is omitted is determined. A processing mode in which the orthogonal transformation is omitted and quantization and coding are performed is referred to as a transform skip (TS) mode. When the TS mode is selected, the information amount can be compressed even when the low frequency component of the difference image is not main.

Recommendation ITU-T H.265,(04/2013)“,High efficiency video coding”,International Telecommunication Union,April 2013Recommendation ITU-T H.264 265, (04/2013) “, High efficiency video coding”, International Telecommunication Union, April 2013.

 しかしながら、非特許文献1に記載の符号化方式においては、直交変換を行ったブロックと、直交変換を行わないブロックとが混在しているときに、主観的な画質が劣化することがあるという問題がある。例えば、直交変換を行ったブロックに合わせて、高帯域であるほど粗くなるように量子化の粗さを設定すると、直交変換を行っていないブロックでは、画素間で、量子化の粗さが異なるために、画素間にばらつきが発生し、主観的な画質が劣化してしまう。However, in the encoding method described in Non-Patent Document 1, there is a problem that subjective image quality may be deteriorated when a block subjected to orthogonal transformation and a block not subjected to orthogonal transformation are mixed. There is. For example, if the quantization roughness is set so that the higher the bandwidth is, the coarser the quantization coarseness differs between the pixels in the block where the orthogonal transformation is not performed. Therefore, variation occurs between pixels, and subjective image quality deteriorates.

 本発明は、このような事情に鑑みてなされたもので、直交変換を行ったブロックと、直交変換を行わないブロックとが混在していても、量子化によって発生する主観的な画質の劣化を抑えることができる画像符号化装置、画像復号装置およびそれらのプログラムを提供する。The present invention has been made in view of such circumstances. Even when a block subjected to orthogonal transformation and a block not subjected to orthogonal transformation are mixed, the subjective image quality degradation caused by quantization is reduced. An image encoding device, an image decoding device, and a program thereof that can be suppressed are provided.

(1)そこで上記課題を解決するため、本発明は、入力画像と予測画像との差分を表す予測差分信号を分割した変換ブロックに対して直交変換を適用するか又は非適用とする変換スキップを行うかを判定する判定部と、前記判定に基づき選択された処理を行う直交変換部とを備える画像符号化装置であって、前記判定に基づき前記変換スキップが選択された場合、前記変換ブロックを復号側と予め共有している全ての要素の量子化の粗さが等しい第1の量子化行列を用いて量子化し、前記判定に基づき変換ブロックに対して直交変換が適用された場合、前記変換ブロックを前記第1の量子化行列又は復号側に伝送する第2の量子化行列を用いて量子化する量子化部を有することを特徴とする。(1) Therefore, in order to solve the above-described problem, the present invention performs a transform skip that applies or does not apply orthogonal transform to a transform block obtained by dividing a prediction difference signal that represents a difference between an input image and a prediction image. An image encoding device including a determination unit that determines whether to perform and an orthogonal transform unit that performs a process selected based on the determination, and when the conversion skip is selected based on the determination, the conversion block is When quantization is performed using a first quantization matrix having the same quantization roughness of all elements shared in advance with the decoding side, and orthogonal transform is applied to the transform block based on the determination, the transform It has a quantization part which quantizes using the 2nd quantization matrix which transmits a block to the 1st quantization matrix or the decoding side.

(2)また、本発明の他の態様は、入力画像と予測画像との差分を表す予測差分信号を分割した変換ブロックに対して直交変換を適用するか又は非適用とする変換スキップを行うかを判定する判定部と、前記判定に基づき選択された処理を行う直交変換部とを備える画像符号化装置であって、前記判定に基づき前記変換スキップが選択された場合、前記変換ブロックを復号側と予め共有している全ての要素の量子化の粗さが等しい第1の量子化行列又は復号側に伝送する第2の量子化行列を構成する要素の代表値で、全ての要素の量子化の粗さが表される量子化行列を用いて量子化し、前記判定に基づき変換ブロックに対して前記直交変換が適用された場合、前記第1の量子化行列又は前記第2の量子化行列を用いて量子化する量子化部を有することを特徴とする。(2) Further, according to another aspect of the present invention, is orthogonal transform applied to a transform block obtained by dividing a prediction difference signal that represents a difference between an input image and a prediction image, or conversion skip that does not apply is performed. And an orthogonal transform unit that performs processing selected based on the determination, and when the transform skip is selected based on the determination, the transform block is decoded on the decoding side. The first quantization matrix having the same quantization roughness for all the elements shared in advance or the representative value of the elements constituting the second quantization matrix transmitted to the decoding side, and the quantization of all the elements When the orthogonal transform is applied to the transform block based on the determination, the first quantization matrix or the second quantization matrix is expressed as follows: Uses a quantization unit to quantize using And wherein the Rukoto.

(3)また、本発明の他の態様は、入力画像と予測画像との差分を表す予測差分信号を分割した変換ブロックに対して直交変換を適用するか又は非適用とする変換スキップを行うかを判定する判定部と、前記判定に基づき選択された処理を行う直交変換部とを備える画像符号化装置であって、前記判定に基づき前記変換スキップが選択された場合、前記変換ブロックを復号側と予め共有している全ての要素の量子化の粗さが等しい第1の量子化行列又は復号側に伝送する単一の値であって、全ての要素の量子化の粗さが表される量子化行列を用いて量子化し、前記判定に基づき変換ブロックに対して前記直交変換が適用された場合、前記第1の量子化行列又は復号側に伝送する第2の量子化行列を用いて量子化する量子化部を有することを特徴とする。(3) Further, according to another aspect of the present invention, is orthogonal transformation applied to a transformation block obtained by dividing a prediction difference signal representing a difference between an input image and a prediction image, or whether or not transformation skip is applied. And an orthogonal transform unit that performs processing selected based on the determination, and when the transform skip is selected based on the determination, the transform block is decoded on the decoding side. The first quantization matrix having the same quantization roughness of all elements shared in advance or a single value transmitted to the decoding side, and representing the quantization roughness of all elements When quantization is performed using a quantization matrix and the orthogonal transform is applied to the transform block based on the determination, the quantization is performed using the first quantization matrix or the second quantization matrix transmitted to the decoding side. It has a quantization part that To.

(4)また、本発明の他の態様は、(1)乃至(3)のいずれかに記載の画像符号化装置であって、前記量子化部は、前記判定に基づき前記変換ブロックに対して直交変換が適用された場合であって、前記第2の量子化行列を伝送するとき該第2の量子化行列を用いて量子化し、前記直交変換が適用された場合であって、前記第2の量子化行列を伝送しないとき前記第1の量子化行列を用いて量子化することを特徴とする。(4) Moreover, the other aspect of this invention is an image coding apparatus in any one of (1) thru | or (3), Comprising: The said quantization part is with respect to the said conversion block based on the said determination. When orthogonal transform is applied, the second quantization matrix is quantized using the second quantization matrix when the second quantization matrix is transmitted, and the orthogonal transform is applied. When the first quantization matrix is not transmitted, quantization is performed using the first quantization matrix.

(5)また、本発明の他の態様は、(1)に記載の画像復号装置であって、 前記量子化部は、前記判定に基づき前記変換ブロックに対して前記変換スキップが選択された場合であって、前記第2の量子化行列を伝送するとき、前記第1の量子化行列を用いて量子化することを特徴とする。(5) Moreover, another aspect of the present invention is the image decoding device according to (1), in which the quantization unit selects the transform skip for the transform block based on the determination And when transmitting the said 2nd quantization matrix, it quantizes using the said 1st quantization matrix, It is characterized by the above-mentioned.

(6)また、本発明の他の態様における画像復号装置は、符号化データに含まれる量子化済みブロックが、直交変換が非適用とされた変換スキップされたブロックである場合、前記量子化済みブロックを符号化側と予め共有している全ての要素の量子化の粗さが等しい第1の量子化行列を用いて逆量子化し、符号化データに含まれる量子化済みブロックが、直交変換が適用されたブロックである場合、前記第1の量子化行列又は符号化側から伝送される第2の量子化行列を用いて逆量子化する逆量子化部を有することを特徴とする。(6) In addition, in the image decoding device according to another aspect of the present invention, the quantized block is included in a case where the quantized block included in the encoded data is a block whose transform is skipped in which orthogonal transform is not applied. The block is inversely quantized using the first quantization matrix having the same quantization roughness for all elements shared in advance with the encoding side, and the quantized block included in the encoded data is subjected to orthogonal transformation. When the block is an applied block, the block includes an inverse quantization unit that performs inverse quantization using the first quantization matrix or the second quantization matrix transmitted from the encoding side.

(7)また、本発明の他の態様における画像復号装置は、符号化データに含まれる量子化済みブロックが、直交変換が非適用とされた変換スキップされたブロックである場合、前記量子化済みブロックを符号化側と予め共有している第1の量子化行列又は符号化側から伝送される第2の量子化行列を構成する要素の代表値で、全ての要素の量子化の粗さが表される量子化行列を用いて逆量子化し、符号化データに含まれる量子化済みブロックが、直交変換が適用されたブロックである場合、前記第1の量子化行列又は前記第2の量子化行列を用いて逆量子化する逆量子化部を有することを特徴とする。(7) In addition, in the image decoding device according to another aspect of the present invention, the quantized block is included when the quantized block included in the encoded data is a block whose transform is skipped in which orthogonal transform is not applied. A representative value of the elements constituting the first quantization matrix that shares the block with the encoding side in advance or the second quantization matrix transmitted from the encoding side, and the quantization coarseness of all the elements is In the case where the quantized block included in the encoded data and the quantized block included in the encoded data is a block to which orthogonal transform is applied, the first quantization matrix or the second quantization An inverse quantization unit that performs inverse quantization using a matrix is provided.

(8)また、本発明の他の態様における画像復号装置は、符号化データに含まれる量子化済みブロックが、直交変換が非適用とされた変換スキップされたブロックである場合、前記量子化済みブロックを符号化側と予め共有している第1の量子化行列又は符号化側から伝送される単一の値で全ての要素の量子化の粗さが表される量子化行列を用いて逆量子化し、符号化データに含まれる量子化済みブロックが、直交変換が適用されたブロックである場合、前記第1の量子化行列又は符号化側から伝送される第2の量子化行列を用いて逆量子化する逆量子化部を有することを特徴とする。(8) In addition, in the image decoding device according to another aspect of the present invention, the quantized block is included in a case where the quantized block included in the encoded data is a block whose transform is skipped in which orthogonal transform is not applied. Reverse using a first quantization matrix that shares the block with the encoding side in advance or a quantization matrix that represents the quantization roughness of all elements with a single value transmitted from the encoding side When the quantized block included in the encoded data is a block to which orthogonal transform is applied, the first quantization matrix or the second quantization matrix transmitted from the encoding side is used. An inverse quantization unit that performs inverse quantization is provided.

(9)また、本発明の他の態様は、(6)乃至(8)のいずれかに記載の画像復号装置であって、前記逆量子化部は、前記符号化データに含まれる量子化済みブロックが、直交変換が適用されたブロックである場合であって、前記符号化側から前記第2の量子化行列が伝送されているとき、該第2の量子化行列を用いて逆量子化し、前記符号化データに含まれる量子化済みブロックが、直交変換が適用されたブロックである場合であって、前記符号化側から前記第2の量子化行列が伝送されていないとき、前記第1の量子化行列を用いて逆量子化することを特徴とする。(9) According to another aspect of the present invention, there is provided the image decoding device according to any one of (6) to (8), wherein the inverse quantization unit includes a quantized signal included in the encoded data When the block is a block to which orthogonal transform is applied, and the second quantization matrix is transmitted from the encoding side, inverse quantization is performed using the second quantization matrix, When the quantized block included in the encoded data is a block to which orthogonal transform is applied, and the second quantization matrix is not transmitted from the encoding side, the first block Inverse quantization is performed using a quantization matrix.

(10)また、本発明の他の態様は、(6)に記載の画像復号装置であって、前記逆量子化部は、前記符号化データに含まれる量子化済みブロックが、直交変換が非適用とされた変換スキップされたブロックである場合であって、前記符号化側から前記第2の量子化行列が伝送されているとき、前記第1の量子化行列を用いて逆量子化することを特徴とする。(10) According to another aspect of the present invention, there is provided the image decoding device according to (6), wherein the inverse quantization unit is configured such that a quantized block included in the encoded data is not orthogonally transformed. When the second quantization matrix is transmitted from the encoding side, the inverse quantization is performed using the first quantization matrix when the block is a transform skipped block that has been applied. It is characterized by.

(11)また、本発明の他の態様は、コンピュータを、(1)から(5)のいずれかに記載の画像符号化装置として機能させるためのプログラムである。(11) Moreover, the other aspect of this invention is a program for functioning a computer as an image coding apparatus in any one of (1) to (5).

(12)また、本発明の他の態様は、コンピュータを、(6)から(10)のいずれかに記載の画像復号装置として機能させるためのプログラムである。(12) Moreover, the other aspect of this invention is a program for functioning a computer as an image decoding apparatus in any one of (6) to (10).

この発明の第1の実施形態における画像符号化装置10の概略構成の一例を示すブロック図である。It is a block diagram which shows an example of schematic structure of theimage coding apparatus 10 in 1st Embodiment of this invention.同実施形態における符号化ブロックと、変換ブロックとを説明する模式図である。It is a schematic diagram explaining the encoding block and conversion block in the embodiment.同実施形態における量子化行列tb11を示すテーブルである。It is a table which shows quantization matrix tb11 in the embodiment.同実施形態における量子化行列tb21を示すテーブルである。It is a table which shows quantization matrix tb21 in the embodiment.同実施形態における量子化行列tb22を示すテーブルである。It is a table which shows quantization matrix tb22 in the embodiment.同実施形態における量子化行列決定部105と量子化部104の処理を説明するフローチャートである。It is a flowchart explaining the process of the quantizationmatrix determination part 105 and thequantization part 104 in the embodiment.同実施形態における画像復号装置30の構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of theimage decoding apparatus 30 in the embodiment.同実施形態における量子化行列決定部304と、逆量子化部303の動作を説明するフローチャートである。4 is a flowchart illustrating operations of a quantizationmatrix determination unit 304 and aninverse quantization unit 303 in the same embodiment.この発明の第2の実施形態における量子化部104、量子化行列決定部105の動作を説明するフローチャートである。It is a flowchart explaining the operation | movement of thequantization part 104 and the quantizationmatrix determination part 105 in 2nd Embodiment of this invention.同実施形態における逆量子化部303、量子化行列決定部304の動作を説明するフローチャートである。4 is a flowchart for explaining operations of aninverse quantization unit 303 and a quantizationmatrix determination unit 304 in the same embodiment.この発明の第3の実施形態における量子化部104、量子化行列決定部105の動作を説明するフローチャートである。It is a flowchart explaining the operation | movement of thequantization part 104 and the quantizationmatrix determination part 105 in 3rd Embodiment of this invention.同実施形態における逆量子化部303、量子化行列決定部304の動作を説明するフローチャートである。4 is a flowchart for explaining operations of aninverse quantization unit 303 and a quantizationmatrix determination unit 304 in the same embodiment.この発明の第4の実施形態における画像符号化装置10aの構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of theimage coding apparatus 10a in 4th Embodiment of this invention.同実施形態における量子化部104、量子化行列決定部105aの動作を説明するフローチャートである。It is a flowchart explaining operation | movement of thequantization part 104 in the same embodiment, and the quantizationmatrix determination part 105a.同本実施形態における画像復号装置30aの構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of theimage decoding apparatus 30a in the same embodiment.同実施形態における逆量子化部303、量子化行列決定部304aの動作を説明するフローチャートである。It is a flowchart explaining operation | movement of theinverse quantization part 303 and the quantization matrix determination part 304a in the embodiment.この発明の第5の実施形態における量子化部104、量子化行列決定部105aの動作を説明するフローチャートである。It is a flowchart explaining the operation | movement of thequantization part 104 in the 5th Embodiment of this invention, and the quantizationmatrix determination part 105a.同実施形態における逆量子化部303、量子化行列決定部304aの動作を説明するフローチャートである。It is a flowchart explaining operation | movement of theinverse quantization part 303 and the quantization matrix determination part 304a in the embodiment.

[第1の実施形態]
 以下、図面を参照して、本発明の第1の実施形態について説明する。図1は、本実施形態における画像符号化装置10の概略構成の一例を示すブロック図である。画像符号化装置10は、入力動画像rを符号化して、符号化データを生成する。図1に示す例では、画像符号化装置10は、前処理部100、予測差分信号生成部101、直交変換部102、変換スキップ判定部103、量子化部104、量子化行列決定部105、エントロピー符号化部106、逆量子化部107、逆直交変換部108、復号画像生成部109、ループフィルタ部110、復号画像記憶部111、イントラ予測部112、インター予測部113、動きベクトル計算部114、予測画像選択部115を含んで構成される。各部についての概略を以下に説明する。
[First Embodiment]
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating an example of a schematic configuration of animage encoding device 10 according to the present embodiment. Theimage encoding device 10 encodes the input moving image r to generate encoded data. In the example illustrated in FIG. 1, theimage encoding device 10 includes apreprocessing unit 100, a prediction differencesignal generation unit 101, anorthogonal transformation unit 102, a transformationskip determination unit 103, aquantization unit 104, a quantizationmatrix determination unit 105, an entropy.Encoding unit 106,inverse quantization unit 107, inverseorthogonal transform unit 108, decodedimage generation unit 109,loop filter unit 110, decodedimage storage unit 111,intra prediction unit 112,inter prediction unit 113, motionvector calculation unit 114, The predictionimage selection unit 115 is included. An outline of each part will be described below.

 前処理部100は、入力された入力動画像rに対して、ピクチャタイプに合わせたピクチャの並べ替えを行い、ピクチャタイプ及びフレームごとのフレーム画像等を順次出力する。また、前処理部100は、各フレーム画像について、符号化ブロックへのブロック分割を行う。なお、符号化ブロックのサイズには、8×8、16×16、32×32の3種類がある。各符号化ブロックのサイズを、これらのうちのいずれにするかは、例えば、その領域の空間周波数分布を参照し、高周波成分が小さいほど、符号化ブロックのサイズを大きくするなど、どのような方法で決めてもよい。Thepre-processing unit 100 rearranges the pictures according to the picture type for the input moving image r, and sequentially outputs the picture type and the frame image for each frame. Further, thepreprocessing unit 100 divides each frame image into block blocks. There are three types of coding block sizes: 8 × 8, 16 × 16, and 32 × 32. For example, refer to the spatial frequency distribution of the area, and increase the size of the coding block as the high-frequency component is smaller. You may decide by.

 予測差分信号生成部101は、前処理部100が分割した符号化ブロックを取得する。予測差分信号生成部101は、その符号化ブロックと、予測画像選択部115から入力される予測画像のブロックデータとにより、予測差分信号を生成する。具体的には、予測画像選択部115の符号化ブロックの画素値各々から、予測画像選択部115から入力されるブロックデータの対応する画素値を差し引くことで、予測差分信号を生成する。予測差分信号生成部101は、生成された予測差分信号を直交変換部102と変換スキップ判定部103とに入力する。The prediction differencesignal generation unit 101 acquires the encoded block divided by thepreprocessing unit 100. The prediction differencesignal generation unit 101 generates a prediction difference signal based on the encoded block and the block data of the prediction image input from the predictionimage selection unit 115. Specifically, the prediction difference signal is generated by subtracting the corresponding pixel value of the block data input from the predictionimage selection unit 115 from each pixel value of the encoded block of the predictionimage selection unit 115. The prediction differencesignal generation unit 101 inputs the generated prediction difference signal to theorthogonal transformation unit 102 and the conversionskip determination unit 103.

 直交変換部102は、入力された予測差分信号を、変換ブロックに分割する。なお、変換ブロックのサイズには、4×4、8×8、16×16、32×32の4種類がある。各変換ブロックのサイズを、これらのうちのいずれにするかは、どのようにして決定してもよい。例えば、直交変換部102は、該符号化データを復号した復号結果と入力動画像との差分の大きさを表す値と、各サイズのときの符号化データのビット数とに基づく評価値を算出し、該評価値が最も大きいときのサイズとする。なお、評価値は、符号化データのビット数が少ないほど大きく、復号結果と入力動画像との差分の大きさが少ないほど大きい値である。Theorthogonal transform unit 102 divides the input prediction difference signal into transform blocks. There are four types of transform block sizes: 4 × 4, 8 × 8, 16 × 16, and 32 × 32. Any of these may be determined as the size of each transform block. For example, theorthogonal transform unit 102 calculates an evaluation value based on a value indicating the difference between the decoding result obtained by decoding the encoded data and the input moving image, and the number of bits of the encoded data at each size. And the size when the evaluation value is the largest. The evaluation value is larger as the number of bits of the encoded data is smaller, and is larger as the difference between the decoding result and the input moving image is smaller.

 直交変換部102は、分割した変換ブロックに対して、離散コサイン変換などの直交変換処理をして、量子化ブロックを生成する。ただし、変換スキップ判定部103によって、直交変換を適用しないと判定された変換ブロックについは、変換ブロックをそのまま量子化ブロックにする。なお、直交変換ではブロックのサイズが変化しないので、変換ブロックのサイズと、それを直交変換した量子化ブロックのサイズは同じである。Theorthogonal transform unit 102 performs orthogonal transform processing such as discrete cosine transform on the divided transform block to generate a quantized block. However, for the transform block determined by the transformskip determining unit 103 not to apply the orthogonal transform, the transform block is directly used as a quantization block. In addition, since the block size does not change in the orthogonal transform, the size of the transform block and the size of the quantization block obtained by orthogonal transform of the transform block are the same.

 変換スキップ判定部103は、変換ブロック各々について直交変換を行うか否かを判定する。変換スキップ判定部103は、例えば、変換ブロックの空間周波数分布を算出し、周波数成分の最大値と最小値との差が、所定の閾値以下であるときは、変換スキップとする。なお、その他の方法で、直交変換を行うか否かを判定してもよい。また、本実施形態では、HEVCと同様に、変換ブロックのサイズが4×4のときのみ直交変換を適用しない(変換スキップ)ようにすることができる。The transformskip determining unit 103 determines whether or not to perform orthogonal transform for each transform block. For example, the conversionskip determination unit 103 calculates the spatial frequency distribution of the conversion block, and determines that the conversion is skipped when the difference between the maximum value and the minimum value of the frequency components is equal to or less than a predetermined threshold value. In addition, you may determine whether orthogonal transformation is performed by another method. Further, in the present embodiment, similarly to HEVC, orthogonal transform can be not applied (transform skip) only when the transform block size is 4 × 4.

 変換スキップ判定部103は、当該変換ブロックが直交変換を適用しないようにすることができるものであるときには、当該変換ブロックに直交変換を適用するか否かを示す変換スキップフラグ(transform_skip_flag)をエントロピー符号化部106と、量子化行列決定部105とに入力する。なお、変換ブロックが直交変換を適用しないようにすることができるものであるときとは、本実施形態であれば、当該変換ブロックのサイズが4×4のときである。また、変換スキップフラグは、「1」であるときは、直交変換を適用しないことを表し、「0」であるときは、直交変換を適用することを表す。When the transform block can prevent the orthogonal transformation from being applied to the transform block, the transformskip determining unit 103 uses a transform skip flag (transform_skip_flag) indicating whether or not to apply the orthogonal transform to the transform block as an entropy code. To thequantization unit 106 and the quantizationmatrix determination unit 105. Note that the time when the transform block can prevent the orthogonal transform from being applied is when the size of the transform block is 4 × 4 in the present embodiment. Further, when the conversion skip flag is “1”, it indicates that orthogonal transformation is not applied, and when it is “0”, it indicates that orthogonal transformation is applied.

 量子化部104は、直交変換部102からの出力信号である量子化ブロックを量子化する。量子化部104は、量子化することによって出力信号の符号量を低減し、この出力信号(量子化済みブロック)をエントロピー符号化部106及び逆量子化部107に入力する。量子化部104は、量子化ブロックを量子化する際に、量子化行列決定部105が量子化ブロック毎に決定した量子化行列を用いる。この量子化行列は、その各要素(以降、量子化値という)が、量子化ブロックの対応する要素を量子化する際の量子化の粗さを表す行列である。量子化値が大きいほど、量子化ステップが大きくなる。Thequantization unit 104 quantizes the quantization block that is an output signal from theorthogonal transform unit 102. Thequantization unit 104 reduces the code amount of the output signal by quantization, and inputs the output signal (quantized block) to theentropy encoding unit 106 and theinverse quantization unit 107. When thequantization unit 104 quantizes the quantization block, the quantizationmatrix determination unit 105 uses the quantization matrix determined for each quantization block. This quantization matrix is a matrix in which each element (hereinafter referred to as a quantization value) represents the roughness of quantization when the corresponding element of the quantization block is quantized. The larger the quantization value, the larger the quantization step.

 量子化行列決定部105は、量子化ブロック毎に、量子化行列を決定する。量子化行列決定部105は、量子化ブロックのうち、変換スキップにより得られた量子化ブロックの量子化行列を、全ての要素の量子化の粗さが等しい量子化行列となるように、すなわち、全ての量子化値が同じ値となるように量子化行列を決定する。量子化行列の決定方法の詳細は後述する。The quantizationmatrix determination unit 105 determines a quantization matrix for each quantization block. The quantizationmatrix determining unit 105 sets the quantization matrix of the quantization block obtained by the conversion skip among the quantization blocks so that the quantization coarseness of all the elements becomes equal, that is, The quantization matrix is determined so that all quantization values are the same. Details of the quantization matrix determination method will be described later.

 量子化行列決定部105は、量子化行列として、復号側に伝送する伝送量子化行列を用いるか否かを表す伝送量子化行列適用フラグ(scaling_list_enable_flag)を、エントロピー符号化部106に入力する。さらに、量子化行列決定部105は、伝送量子化行列適用フラグが「1」であり、伝送量子化行列を用いることを示しているときは、該伝送量子化行列(ScalingFactor)の各要素を所定の順に並べたスケーリングリスト(ScalingList
)を、エントロピー符号化部106に入力する。
The quantizationmatrix determination unit 105 inputs, to theentropy encoding unit 106, a transmission quantization matrix application flag (scaling_list_enable_flag) indicating whether or not to use a transmission quantization matrix transmitted to the decoding side as a quantization matrix. Further, when the transmission quantization matrix application flag is “1” indicating that the transmission quantization matrix is used, the quantizationmatrix determination unit 105 sets each element of the transmission quantization matrix (ScalingFactor) to a predetermined value. Scaling list (ScalingList
) Is input to theentropy encoding unit 106.

 エントロピー符号化部106は、量子化部104からの出力信号や動きベクトル計算部114から出力された動きベクトル情報やループフィルタ部110からのフィルタ係数など、各部から入力された情報を、エントロピー符号化して、符号化データeとして出力する。なお、各部から入力された情報には、変換スキップ判定部103から入力された変換スキップフラグ、量子化行列決定部105から入力されたスケーリングリスト、伝送量子化行列適用フラグを含む。また、エントロピー符号化とは、シンボルの出現頻度に応じて可変長の符号を割り当てる方式をいう。Theentropy encoding unit 106 entropy-encodes information input from each unit such as an output signal from thequantization unit 104, motion vector information output from the motionvector calculation unit 114, and filter coefficients from theloop filter unit 110. And output as encoded data e. The information input from each unit includes a conversion skip flag input from the conversionskip determination unit 103, a scaling list input from the quantizationmatrix determination unit 105, and a transmission quantization matrix application flag. Entropy coding refers to a method of assigning variable-length codes according to the appearance frequency of symbols.

 逆量子化部107は、量子化部104から入力された量子化済みブロックを逆量子化して、変換済みブロックを生成する。逆量子化部107は、生成した変換済みブロックを逆直交変換部108に入力する。逆量子化部107は、逆量子化の際に、量子化行列決定部105が決定した量子化行列を用いる。これにより、量子化の際の量子化の粗さに応じた逆量子化を行う。Theinverse quantization unit 107 inversely quantizes the quantized block input from thequantization unit 104 to generate a transformed block. Theinverse quantization unit 107 inputs the generated transformed block to the inverseorthogonal transform unit 108. Theinverse quantization unit 107 uses the quantization matrix determined by the quantizationmatrix determination unit 105 at the time of inverse quantization. Thereby, inverse quantization according to the roughness of quantization at the time of quantization is performed.

 逆直交変換部108は、逆量子化部107から入力された変換済みブロックを逆直交変換処理してから復号画像生成部109に出力する。これら逆量子化部107及び逆直交変換部108によって復号処理が行われることにより、符号化前の予測差分信号と同程度の信号が得られる。The inverseorthogonal transform unit 108 performs an inverse orthogonal transform process on the transformed block input from theinverse quantization unit 107 and then outputs the processed block to the decodedimage generation unit 109. By performing decoding processing by theinverse quantization unit 107 and the inverseorthogonal transform unit 108, a signal having the same level as the prediction difference signal before encoding is obtained.

 復号画像生成部109は、予測画像選択部115により選択された予測画像のブロックデータと、逆量子化部107及び逆直交変換部108により復号処理された予測差分信号とを加算する。復号画像生成部109は、加算して生成した復号画像のブロックデータを、ループフィルタ部110に出力する。The decodedimage generation unit 109 adds the block data of the prediction image selected by the predictionimage selection unit 115 and the prediction difference signal decoded by theinverse quantization unit 107 and the inverseorthogonal transform unit 108. The decodedimage generation unit 109 outputs the decoded image block data generated by the addition to theloop filter unit 110.

 ループフィルタ部110は、例えばSAO(Sample Adaptive filter)、ALF(Adaptive Loop Filter)やデブロッキングフィルタであり、いずれか又は複数を備えてもよい。Theloop filter unit 110 is, for example, a SAO (Sample Adaptive Filter), ALF (Adaptive Loop Filter), or a deblocking filter, and may include any one or more.

 例えば、ループフィルタ部110は、入力画像を所定サイズ毎のグループに分け、グループ毎に適切なフィルタ係数を生成する。ループフィルタ部110は、フィルタ処理された復号画像を、所定サイズ毎にグループ分けし、生成したフィルタ係数を用いてグループ毎にフィルタ処理を行う。ループフィルタ部110は、フィルタ処理結果を復号画像記憶部111に出力し、参照画像として蓄積させる。所定サイズは、例えば、直交変換サイズである。For example, theloop filter unit 110 divides the input image into groups each having a predetermined size, and generates an appropriate filter coefficient for each group. Theloop filter unit 110 divides the decoded decoded image into groups for each predetermined size, and performs filter processing for each group using the generated filter coefficients. Theloop filter unit 110 outputs the filter processing result to the decodedimage storage unit 111 and accumulates it as a reference image. The predetermined size is, for example, an orthogonal transformation size.

 復号画像記憶部111は、入力した復号画像のブロックデータを新たな参照画像のデータとして記憶し、イントラ予測部112、インター予測部113及び動きベクトル計算部114に出力する。The decodedimage storage unit 111 stores the input block data of the decoded image as new reference image data, and outputs the data to theintra prediction unit 112, theinter prediction unit 113, and the motionvector calculation unit 114.

 イントラ予測部112は、符号化対象画像の処理対象ブロックに対して、すでに符号化された参照画素から予測画像のブロックデータを生成する。イントラ予測部112は、複数の予測方向を用いて予測を行い、最適な予測方向を決定する。Theintra prediction unit 112 generates block data of the predicted image from the already-encoded reference pixels for the processing target block of the encoding target image. Theintra prediction unit 112 performs prediction using a plurality of prediction directions and determines an optimal prediction direction.

 インター予測部113は、復号画像記憶部111から取得した参照画像のデータを動きベクトル計算部114から提供される動きベクトルで動き補償する。これにより、動き補償された参照画像としてのブロックデータが生成される。Theinter prediction unit 113 performs motion compensation on the reference image data acquired from the decodedimage storage unit 111 with the motion vector provided from the motionvector calculation unit 114. Thereby, block data as a motion-compensated reference image is generated.

 動きベクトル計算部114は、符号化対象画像におけるブロックデータと、復号画像記憶部111から取得する参照画像とを用いて、動きベクトルを求める。動きベクトルとは、ブロック単位で参照画像内から処理対象ブロックに最も類似している位置を探索するブロックマッチング技術などを用いて求められるブロック単位の空間的なずれを示す値である。The motionvector calculation unit 114 obtains a motion vector using the block data in the encoding target image and the reference image acquired from the decodedimage storage unit 111. The motion vector is a value indicating a spatial deviation in units of blocks obtained using a block matching technique or the like that searches for a position most similar to the processing target block from the reference image in units of blocks.

 動きベクトル計算部114は、求めた動きベクトルをインター予測部113に出力し、動きベクトルや参照画像を示す情報を含む動きベクトル情報をエントロピー符号化部106に出力する。The motionvector calculation unit 114 outputs the obtained motion vector to theinter prediction unit 113, and outputs motion vector information including information indicating the motion vector and the reference image to theentropy encoding unit 106.

 イントラ予測部112とインター予測部113から出力されたブロックデータは、予測画像選択部115に入力される。The block data output from theintra prediction unit 112 and theinter prediction unit 113 are input to the predictedimage selection unit 115.

 予測画像選択部115は、イントラ予測部112とインター予測部113から取得したブロックデータのうち、どちらか一方のブロックデータを予測画像として選択する。選択された予測画像は、予測差分信号生成部101および復号画像生成部109に出力される。The predictedimage selection unit 115 selects one of the block data acquired from theintra prediction unit 112 and theinter prediction unit 113 as a predicted image. The selected prediction image is output to the prediction differencesignal generation unit 101 and the decodedimage generation unit 109.

 図2は、本実施形態における符号化ブロックと、変換ブロックとを説明する模式図である。前処理部100によって、各フレームは、符号化ブロックに分割される。符号化ブロックのサイズは、8×8、16×16、32×32のいずれかである。図2では、あるフレーム中の64×64のブロックが、32×32の符号化ブロックCB1、CB2、CB3と、16×16の符号化ブロックCB4、CB5、CB6、CB7に分割されている。FIG. 2 is a schematic diagram illustrating an encoding block and a conversion block in the present embodiment. Each frame is divided into encoded blocks by thepreprocessing unit 100. The size of the encoded block is 8 × 8, 16 × 16, or 32 × 32. In FIG. 2, a 64 × 64 block in a certain frame is divided into 32 × 32 encoded blocks CB1, CB2, and CB3 and 16 × 16 encoded blocks CB4, CB5, CB6, and CB7.

 さらに、符号化ブロック各々に対応する予測差分信号は、直交変換部102によって、変換ブロックに分割される。図2では、32×32の符号化ブロックCB2が、16×16の変換ブロックTB1、TB2、TB3、8×8の変換ブロックTB4、TB5、TB6、4×4の変換ブロックTB7、TB8、TB9、TB10に分割されている。Furthermore, the prediction difference signal corresponding to each coding block is divided into transform blocks by theorthogonal transform unit 102. In FIG. 2, the 32 × 32 coding block CB2 is converted into 16 × 16 transform blocks TB1, TB2, TB3, 8 × 8 transform blocks TB4, TB5, TB6, 4 × 4 transform blocks TB7, TB8, TB9, It is divided into TB10.

 図3、図4、図5は、それぞれ水平方向に4個(4列)、垂直方向に4個(4行)、計16個の量子化値を有する量子化行列tb11、tb21、tb22を示すテーブルである。量子化行列tb11、tb21、tb22は、要素数が4×4であるので、4×4の量子化ブロックの量子化に用いられる。量子化行列tb11、tb21、tb22にそれぞれ含まれる四角形は要素を示す。四角形のそれぞれに記載された数字は量子化値を示す。3, 4, and 5 illustrate quantization matrices tb11, tb21, and tb22 each having four quantization values in the horizontal direction (four columns) and four in the vertical direction (four rows), for a total of 16 quantization values. It is a table. The quantization matrices tb11, tb21, and tb22 have 4 × 4 elements and are therefore used for quantization of a 4 × 4 quantization block. Squares included in the quantization matrices tb11, tb21, and tb22 indicate elements. The number written in each square indicates the quantized value.

 量子化行列tb11は、平坦(フラット)な初期値によるデフォルト量子化行列の一例であり、各要素の量子化値はいずれも16である。ここで、平坦とは、量子化行列の全ての要素が、同一の値であることをいう。このような平坦な量子化行列が用いられると、量子化ブロックの要素によらず同一な精度で量子化される。そのため、直交変換が行われない場合に、量子化行列tb21等のように量子化値に偏りを有する量子化行列を用いることによる、画質の劣化を回避することができる。The quantization matrix tb11 is an example of a default quantization matrix with a flat initial value, and the quantization value of each element is 16. Here, “flat” means that all elements of the quantization matrix have the same value. When such a flat quantization matrix is used, quantization is performed with the same accuracy regardless of the elements of the quantization block. Therefore, when orthogonal transformation is not performed, it is possible to avoid deterioration in image quality due to the use of a quantization matrix having a biased quantization value such as the quantization matrix tb21.

 量子化行列tb21は、傾斜を持つ伝送量子化行列の一例である。量子化行列tb21は、水平方向、垂直方向の次数がそれぞれ大きくなるほど、大きな量子化値を有する。量子化行列tb21の左上端(第1行第1列)、中間(第3行第2列)、右下端(第4行第4列)の量子化値は、それぞれ6、28、42である。このような量子化行列では、より右下に配列された要素に係る変換係数、つまり高域の変換係数ほど低い精度で量子化される。そのため、直交変換が行われる場合には、低域ほど濃淡や色相の空間的変化に鋭敏であるという人間の視覚特性を活用し、主観的な画質を劣化させずに量子化によって高域での情報量を低減することが許容される。The quantization matrix tb21 is an example of a transmission quantization matrix having a gradient. The quantization matrix tb21 has a larger quantization value as the orders in the horizontal direction and the vertical direction increase. The quantization values at the upper left end (first row and first column), middle (third row and second column), and lower right end (fourth row and fourth column) of the quantization matrix tb21 are 6, 28, and 42, respectively. . In such a quantization matrix, the transform coefficients related to the elements arranged at the lower right, that is, the transform coefficients in the higher range are quantized with lower accuracy. For this reason, when orthogonal transformation is performed, the human visual characteristic that the lower the frequency is, the more sensitive to the spatial change in lightness and hue, is utilized. It is permissible to reduce the amount of information.

 量子化行列tb22は、傾斜を持つ伝送量子化行列の他の例である。量子化行列tb22も、水平方向、垂直方向の次数がそれぞれ大きくなるほど、大きな量子化値を有する。そのため、直交変換が行われる場合には、画質を劣化させずに量子化によって高域での情報量を低減することが許容される。但し、量子化行列tb22の量子化値の傾斜は、量子化行列tb21の量子化値の傾斜よりも緩やかである。The quantization matrix tb22 is another example of a transmission quantization matrix having a gradient. The quantization matrix tb22 also has a larger quantization value as the degree in the horizontal direction and the vertical direction increases. For this reason, when orthogonal transformation is performed, it is allowed to reduce the amount of information in the high frequency band by quantization without degrading the image quality. However, the gradient of the quantization value of the quantization matrix tb22 is gentler than the gradient of the quantization value of the quantization matrix tb21.

 なお、図3、図4、図5では、4×4の量子化行列の例を示したが、量子化ブロックのサイズは、4×4、8×8、16×16、32×32の4種類である。このため、量子化行列のサイズも、4×4、8×8、16×16、32×32の4種類である。3, 4, and 5 show examples of the 4 × 4 quantization matrix, the size of the quantization block is 4 × 4, 8 × 8, 16 × 16, and 32 × 32. It is a kind. For this reason, there are four types of quantization matrix sizes of 4 × 4, 8 × 8, 16 × 16, and 32 × 32.

 図6は、量子化行列決定部105と量子化部104の処理を説明するフローチャートである。量子化行列決定部105と量子化部104とは、全ての符号化ブロックを順に一つずつ選択して、以下のステップSa2~ステップSa17の処理を行う(Sa1)。ステップSa2では、量子化行列決定部105は、当該符号化ブロック(選択した符号化ブロック)に属する変換ブロックの量子化に、伝送量子化行列を使用するか否かを決定する。伝送量子化行列を使用するか否かの決定方法はどのようなものでもよいが、例えば、当該符号化ブロック内の量子化ブロックに、要素の値の最大値と最小値の差が所定の範囲外のものがあるか否かを判定、所定の範囲外のときは、伝送量子化行列を使用すると判定する。FIG. 6 is a flowchart for explaining processing of the quantizationmatrix determination unit 105 and thequantization unit 104. The quantizationmatrix determination unit 105 and thequantization unit 104 select all the encoded blocks one by one in order, and perform the following steps Sa2 to Sa17 (Sa1). In step Sa2, the quantizationmatrix determination unit 105 determines whether or not to use a transmission quantization matrix for quantization of transform blocks belonging to the coding block (selected coding block). Any method can be used to determine whether or not to use the transmission quantization matrix. For example, the difference between the maximum value and the minimum value of the element values in the quantization block in the coding block is within a predetermined range. It is determined whether there is an external object. If it is out of the predetermined range, it is determined that the transmission quantization matrix is used.

 ステップSa2にて、伝送量子化行列を使用しないと決定したときは(Sa2-No)、量子化行列決定部105は、当該符号化ブロックに関する伝送量子化行列適用フラグを「0」として、エントロピー符号化部106に入力する(Sa13)。伝送量子化行列適用フラグは、その値が「0」である場合、当該符号化ブロック内の量子化ブロックを量子化する際に伝送量子化行列を用いず、デフォルト量子化行列を用いることを示す。When it is determined in step Sa2 that the transmission quantization matrix is not used (Sa2-No), the quantizationmatrix determination unit 105 sets the transmission quantization matrix application flag relating to the coding block to “0” and uses an entropy code. The data is input to the conversion unit 106 (Sa13). If the value of the transmission quantization matrix application flag is “0”, it indicates that the default quantization matrix is used instead of the transmission quantization matrix when quantizing the quantization block in the coding block. .

 次に、当該符号化ブロック内の全ての量子化ブロックを順に一つずつ選択して、ステップSa15、Sa16の処理を行う(Sa14)。ステップSa15では、量子化行列決定部105は、当該量子化ブロックのサイズに応じたデフォルト量子化行列を、量子化部104と逆量子化部107に設定する。デフォルト量子化行列とは、復号側と予め共有し、記憶している初期値を要素とする量子化行列である。なお、本実施形態では、HEVCと同様に、4×4のデフォルト量子化行列は、図3の量子化行列tb11のように平坦であり、それ以外のサイズのデフォルト量子化行列は、傾斜を持つ。Next, all the quantization blocks in the coding block are selected one by one in order, and the processes of steps Sa15 and Sa16 are performed (Sa14). In step Sa15, the quantizationmatrix determination unit 105 sets a default quantization matrix corresponding to the size of the quantization block in thequantization unit 104 and theinverse quantization unit 107. The default quantization matrix is a quantization matrix whose elements are initial values that are shared and stored in advance with the decoding side. In the present embodiment, as in HEVC, the 4 × 4 default quantization matrix is flat like the quantization matrix tb11 in FIG. 3, and the default quantization matrix of other sizes has a slope. .

 すなわち、伝送量子化行列を用いない符号化ブロックについては、4×4の量子化ブロックを量子化する際には、変換スキップされているか否かに関わらず、常に平坦なデフォルト量子化行列が用いられる。That is, for a coding block that does not use a transmission quantization matrix, when a 4 × 4 quantization block is quantized, a flat default quantization matrix is always used regardless of whether or not conversion skipping is performed. It is done.

 次に、量子化部104は、当該量子化ブロックの各要素を、ステップSa15にて設定されたデフォルト量子化行列を用いて量子化して、量子化済みブロックを生成する。量子化部104は、生成した量子化済みブロックを、エントロピー符号化部106と、逆量子化部107とに入力する(Sa16)。量子化部104は、量子化を行う際、例えば、逆量子化部107が式(1)で算出する逆量子化された変換済みブロックd[x][y]が、直交変換部102から入力された量子化ブロックを最も近似するような変換係数レベル値TransCoeffLevel[xTbY][yTbY][cIdx][x][y]を選択して、量子化済みブロックとする。なお、式(1)において、m[x][y]が、量子化行列である。Next, thequantization unit 104 quantizes each element of the quantization block using the default quantization matrix set in step Sa15 to generate a quantized block. Thequantization unit 104 inputs the generated quantized block to theentropy coding unit 106 and the inverse quantization unit 107 (Sa16). When thequantization unit 104 performs quantization, for example, the inverse-quantized transformed block d [x] [y] calculated by theinverse quantization unit 107 according to Expression (1) is input from theorthogonal transform unit 102. A transform coefficient level value TransCoeffLevel [xTbY] [yTbY] [cIdx] [x] [y] that most closely approximates the quantized block is selected as a quantized block. In Equation (1), m [x] [y] is a quantization matrix.

 d[x][y]=Clip3(-32768,32767,((TransCoeffLevel[xTbY][yTbY][cIdx][x][y]*m[x][y]*levelScale[qP%6]<<(qP/6))+(1<<(bdShift-1)))>>bdShift) … (1)d [x] [y] = Clip3 (−32768, 32767, ((TransCoeffLevel [xTbY] [yTbY] [cIdx] [x] [y] * m [x] [y] * levelScale [qP% 6] << (QP / 6)) + (1 << (bdShift-1))) >> bdShift) (1)

 ここで、Clip3(a,b,xx)は、実数xxが実数aよりも小さい場合には、aと定め、実数xxが実数bよりも大きい場合には、bと定め、実数xxがa又はaよりも大きく、かつb又はbよりも小さい場合には、そのままxxと定める関数である。xTbY、yTbYは、それぞれ処理対象となる量子化ブロック(対象ブロック)の左上端の水平方向、垂直方向の座標値を示す。-32768、32767は、それぞれ16ビットで示された要素毎の信号値の最小値、最大値を示す。cIdxは、信号値の種類を示すインデックスである。cIdx=0、1、2とは、それぞれ輝度信号、色差信号Cb、色差信号Crを示す。Here, Clip3 (a, b, xx) is defined as a when the real number xx is smaller than the real number a, and is defined as b when the real number xx is larger than the real number b, and the real number xx is a or If it is larger than a and smaller than b or b, it is a function determined as xx as it is. xTbY and yTbY indicate the horizontal and vertical coordinate values of the upper left corner of the quantization block (target block) to be processed. −32768 and 32767 indicate the minimum value and the maximum value of the signal value for each element indicated by 16 bits, respectively. cIdx is an index indicating the type of signal value. cIdx = 0, 1, and 2 indicate a luminance signal, a color difference signal Cb, and a color difference signal Cr, respectively.

 levelScale[0]からlevelScale[5]は、それぞれ、40、45、51、57、64、72である。qPは、量子化パラメータ、つまり量子化精度を示す整数であって6増加する毎に量子化値を半分にすることを促すパラメータである。qP%6は、qPを6で除算して得られる剰余を示す。a<<bは、aの値を二進表示でb桁だけ左側にシフトすること、つまり、2のb乗を乗算することを示すビットシフト演算子である。a>>bは、aの値を二進表示でb桁だけ右側にシフトすること、つまり、2のb乗を除算することを示すビットシフト演算子である。LevelScale [0] to levelScale [5] are 40, 45, 51, 57, 64 and 72, respectively. qP is a quantization parameter, that is, an integer indicating the quantization accuracy, and is a parameter that prompts the quantization value to be halved every time it is increased by 6.qP% 6 indicates a remainder obtained by dividing qP by 6. a << b is a bit shift operator indicating that the value of a is shifted to the left by b digits in binary notation, that is, multiplied by 2 to the power of b. a >> b is a bit shift operator indicating that the value of a is shifted to the right by b digits in binary notation, that is, 2 b is divided.

 bdShiftは、信号値の種類に応じて予め定められたビットシフト値である。例えば、信号値が輝度信号Yである場合、bdShiftは、BitDepth+Log2(nTbS)-5である。BitDepthは、輝度信号Yのビット深度、つまり量子化ビット数(例えば、16ビット)を示す。nTbSは、対象ブロックのブロックサイズを示す。信号値が色差信号Cb、Crである場合、bd量子化行列決定部105は、Shiftは、BitDepth+Log2(nTbS)-5である。BitDepthは、輝度信号Cb、Crのビット深度、つまり量子化ビット数(例えば、16ビット)を示す。ここで、qPは、フレームの種類によって異なる値であってもよい。bdShift is a bit shift value determined in advance according to the type of signal value. For example, when the signal value is the luminance signal Y, bdShift is BitDepthY + Log2 (nTbS) −5. Bit DepthY indicates the bit depth of the luminance signal Y, that is, the number of quantization bits (for example, 16 bits). nTbS indicates the block size of the target block. When the signal values are the color difference signals Cb and Cr, the bd quantizationmatrix determination unit 105 is Shift is BitDepthC + Log2 (nTbS) −5. Bit DepthC indicates the bit depth of the luminance signals Cb and Cr, that is, the number of quantization bits (for example, 16 bits). Here, qP may be a different value depending on the type of frame.

 次に、量子化行列決定部105は、当該符号化ブロックに属する全ての量子化ブロックについて、ステップSa15、Sa16の処理を行っているか否かを判定し(Sa17)、全ての量子化ブロックについて行っているときは、ステップSa12に進む。ステップSa15、Sa16の処理を行っていない量子化ブロックがあるときは、量子化行列決定部105は、処理を行っていない量子化ブロックを一つ選択し、ステップSa15に戻る。Next, the quantizationmatrix determination unit 105 determines whether or not the processing of steps Sa15 and Sa16 is performed for all quantization blocks belonging to the coding block (Sa17), and is performed for all quantization blocks. If yes, the process proceeds to step Sa12. When there is a quantized block that has not been subjected to the processes of steps Sa15 and Sa16, the quantizationmatrix determination unit 105 selects one quantized block that has not been processed, and the process returns to step Sa15.

 一方、ステップSa2にて、当該符号化ブロックにて、伝送量子化行列を使用すると判定したときは(Sa2-Yes)、量子化行列決定部105は、各サイズの伝送量子化行列(ScalingFactor)を決定する(Sa3)。例えば、量子化行列決定部105は、各サイズの量子化行列を予め複数記憶しておき、それらの中から、量子化誤差が最も小さくなるものを選択する。あるいは、量子化誤差と、量子化後のビット数とに基づく評価値を算出し、該評価値を基準に選択してもよい。On the other hand, when it is determined in step Sa2 that the transmission quantization matrix is used in the coding block (Sa2-Yes), the quantizationmatrix determination unit 105 determines the transmission quantization matrix (ScalingFactor) of each size. Determine (Sa3). For example, the quantizationmatrix determination unit 105 stores a plurality of quantization matrices of each size in advance, and selects the one having the smallest quantization error from among them. Alternatively, an evaluation value based on the quantization error and the number of bits after quantization may be calculated and selected based on the evaluation value.

 次に、量子化行列決定部105は、決定した伝送量子化行列の各要素を所定の順に並べたスケーリングリストと、「1」に設定した伝送量子化行列適用フラグ(scaling_list_enable_flag)とをエントロピー符号化部106に入力する(Sa4)。次に、当該符号化ブロック内の全ての量子化ブロックを順に一つずつ選択して、ステップSa6からSa10の処理を行う(Sa5)。Next, the quantizationmatrix determination unit 105 entropy-encodes a scaling list in which elements of the determined transmission quantization matrix are arranged in a predetermined order and a transmission quantization matrix application flag (scaling_list_enable_flag) set to “1”. The data is input to the unit 106 (Sa4). Next, all the quantization blocks in the coding block are selected one by one in order, and the processing from step Sa6 to Sa10 is performed (Sa5).

 ステップSa6では、量子化行列決定部105は、当該量子化ブロックのサイズが4×4であるか否か、すなわち変換スキップをすることができる量子化ブロックであるか否かを判定する。ステップSa6にて、4×4であると判定したときは(Sa6-Yes)、量子化行列決定部105は、当該量子化ブロックが、変換スキップされたものであるか否かを判定する(Sa7)。なお、この判定の際には、変換スキップ判定部103から入力された変換スキップフラグを参照する。In step Sa6, the quantizationmatrix determination unit 105 determines whether or not the size of the quantization block is 4 × 4, that is, whether or not the quantization block can be subjected to conversion skipping. When it is determined in step Sa6 that it is 4 × 4 (Sa6-Yes), the quantizationmatrix determination unit 105 determines whether or not the quantization block has been subjected to transform skip (Sa7). ). In this determination, the conversion skip flag input from the conversionskip determination unit 103 is referred to.

 ステップSa7にて、変換スキップであると判定したときは(Sa7-Yes)、量子化行列決定部105は、4×4のデフォルト量子化行列を量子化部104と逆量子化部107に設定し(Sa8)、ステップSa10に進む。この4×4のデフォルト量子化行列は、ステップSa15で設定したものと同一のものであり、平坦な量子化行列である。一方、ステップSa6にて4×4でないと判定したとき(Sa6-No)および、ステップSa7にて変換スキップでないと判定したとき(Sa7-No)は、量子化行列決定部105は、ステップSa3にて決定した伝送量子化行列のうち、当該量子化ブロックのサイズの伝送量子化行列を、量子化部104と逆量子化部107に設定し(Sa9)、ステップSa10に進む。If it is determined in step Sa7 that the conversion is skipped (Sa7-Yes), the quantizationmatrix determination unit 105 sets a 4 × 4 default quantization matrix in thequantization unit 104 and theinverse quantization unit 107. (Sa8), the process proceeds to step Sa10. This 4 × 4 default quantization matrix is the same as that set in step Sa15, and is a flat quantization matrix. On the other hand, when it is determined in step Sa6 that it is not 4 × 4 (Sa6-No) and when it is determined in step Sa7 that it is not conversion skip (Sa7-No), the quantizationmatrix determination unit 105 proceeds to step Sa3. Among the transmission quantization matrices determined in step S1, the transmission quantization matrix having the size of the quantization block is set in thequantization unit 104 and the inverse quantization unit 107 (Sa9), and the process proceeds to step Sa10.

 すなわち、伝送量子化行列を用いる符号化ブロックについては、4×4の量子化ブロックを量子化する際には、変換スキップされていると、デフォルト量子化行列が用いられ、変換スキップされていないときは、伝送量子化行列が用いられる。よって、変換スキップされているものには、平坦な量子化行列を用い、変換スキップされていないものには、傾斜を持つ量子化行列を用いるようにすることができる。That is, for a coding block using a transmission quantization matrix, when a 4 × 4 quantization block is quantized, if the conversion is skipped, the default quantization matrix is used, and the conversion is not skipped. A transmission quantization matrix is used. Therefore, a flat quantization matrix can be used for those that have been skipped, and a sloped quantization matrix can be used for those that have not been skipped.

 ステップSa10では、量子化部104は、ステップSa16と同様にして、ステップSa8またはSa9にて設定された量子化行列を用いて、当該量子化ブロックを量子化して、量子化済みブロックを生成する。量子化部104は、生成した量子化済みブロックを、エントロピー符号化部106と、逆量子化部107とに入力する。次に、量子化行列決定部105は、当該符号化ブロックに属する全ての量子化ブロックについて、ステップSa6~Sa10の処理を行っているか否かを判定し(Sa11)、全ての量子化ブロックについて行っているときは、ステップSa12に進む。ステップSa6~Sa10の処理を行っていない量子化ブロックがあるときは、量子化行列決定部105は、処理を行っていない量子化ブロックを一つ選択し、ステップSa6に戻る。In step Sa10, thequantization unit 104 quantizes the quantization block using the quantization matrix set in step Sa8 or Sa9 in the same manner as in step Sa16, and generates a quantized block. Thequantization unit 104 inputs the generated quantized block to theentropy encoding unit 106 and theinverse quantization unit 107. Next, the quantizationmatrix determination unit 105 determines whether or not the processing of steps Sa6 to Sa10 is performed for all quantization blocks belonging to the coding block (Sa11), and is performed for all quantization blocks. If yes, the process proceeds to step Sa12. When there is a quantized block that has not been subjected to the processing of steps Sa6 to Sa10, the quantizationmatrix determination unit 105 selects one quantized block that has not been processed, and returns to step Sa6.

 ステップSa12では、量子化行列決定部105は、全ての符号化ブロックについて、ステップSa2~Sa17の処理を行っているか否かを判定する。ステップSa2~Sa17の処理を行っていない符号化ブロックがあるときは、量子化行列決定部105は、処理を行っていない符号化ブロックを一つ選択し、ステップSa2に戻る。全ての符号化ブロックについて行っているときは、処理を終了する。In step Sa12, the quantizationmatrix determination unit 105 determines whether or not the processing of steps Sa2 to Sa17 has been performed for all the coding blocks. When there is an encoded block that has not been subjected to the processes of steps Sa2 to Sa17, the quantizationmatrix determination unit 105 selects one encoded block that has not been processed, and the process returns to step Sa2. When the process is performed for all the encoded blocks, the process ends.

 次に、画像符号化装置10によって生成された符号化データeを復号して復号画像を生成する画像復号装置30について説明する。図7は、本実施形態における画像復号装置30の構成を示す概略ブロック図である。図7に示すように、画像復号装置30は、エントロピー復号部301、復号情報記憶部302、逆量子化部303、量子化行列決定部304、逆直交変換部305、変換スキップ判定部306、復号画像生成部307、ループフィルタ部308、フレームメモリ309、インター予測部310、イントラ予測部311、予測画像選択部312を含んで構成される。各部についての概略を以下に説明する。Next, animage decoding device 30 that decodes the encoded data e generated by theimage encoding device 10 to generate a decoded image will be described. FIG. 7 is a schematic block diagram showing the configuration of theimage decoding device 30 in the present embodiment. As illustrated in FIG. 7, theimage decoding device 30 includes anentropy decoding unit 301, a decodinginformation storage unit 302, aninverse quantization unit 303, a quantizationmatrix determination unit 304, an inverseorthogonal transform unit 305, a transformskip determination unit 306, a decoding Theimage generation unit 307, theloop filter unit 308, theframe memory 309, theinter prediction unit 310, theintra prediction unit 311, and the predictedimage selection unit 312 are configured. An outline of each part will be described below.

 エントロピー復号部301は、画像符号化装置10によって生成された符号化データeが入力されると、画像符号化装置10のエントロピー符号化部106によるエントロピー符号化に対応するエントロピー復号を行う。エントロピー復号部301により復号された予測誤差信号(量子化済みブロック)は逆量子化部303に出力される。また、復号した変換スキップフラグ、伝送量子化行列適用フラグ、スケーリングリスト、フィルタ係数、インター予測されている場合の、復号された動きベクトルなどは復号情報記憶部302に入力される。When the encoded data e generated by theimage encoding device 10 is input, theentropy decoding unit 301 performs entropy decoding corresponding to the entropy encoding performed by theentropy encoding unit 106 of theimage encoding device 10. The prediction error signal (quantized block) decoded by theentropy decoding unit 301 is output to theinverse quantization unit 303. Also, the decoded transform skip flag, transmission quantization matrix application flag, scaling list, filter coefficient, decoded motion vector in the case of inter prediction, and the like are input to the decodinginformation storage unit 302.

 また、エントロピー復号部301は、イントラ予測の場合、イントラ予測部311にその旨通知する。また、エントロピー復号部301は、復号対象画像がインター予測されているか、イントラ予測されているかを予測画像選択部312に通知する。In the case of intra prediction, theentropy decoding unit 301 notifies theintra prediction unit 311 to that effect. In addition, theentropy decoding unit 301 notifies the predictionimage selection unit 312 whether the decoding target image is inter predicted or intra predicted.

 復号情報記憶部302は、復号された変換スキップフラグ、伝送量子化行列適用フラグ、スケーリングリスト、ループフィルタのフィルタ係数、動きベクトルや分割モードなどの復号情報を記憶する。The decodinginformation storage unit 302 stores decoding information such as a decoded conversion skip flag, a transmission quantization matrix application flag, a scaling list, a filter coefficient of a loop filter, a motion vector, and a division mode.

 逆量子化部303は、エントロピー復号部301から入力された量子化済みブロックに対して、式(1)で表される逆量子化処理を行って、変換済みブロックを生成する。この変換済みブロックは、図1の直交変換部102が生成した量子化ブロックを復元したものである。逆量子化部303は、変換済みブロックを、逆直交変換部305に入力する。なお、逆量子化部303は、逆量子化処理を行う際に、量子化行列決定部304から設定された量子化行列を用いる。Theinverse quantization unit 303 performs an inverse quantization process represented by Expression (1) on the quantized block input from theentropy decoding unit 301 to generate a transformed block. This transformed block is obtained by restoring the quantized block generated by theorthogonal transform unit 102 in FIG. Theinverse quantization unit 303 inputs the transformed block to the inverseorthogonal transform unit 305. Theinverse quantization unit 303 uses the quantization matrix set by the quantizationmatrix determination unit 304 when performing the inverse quantization process.

 量子化行列決定部304は、復号情報記憶部302から変換スキップフラグ、伝送量子化行列適用フラグ、スケーリングリストを読み出し、量子化済みブロック各々を逆量子化する際に用いる量子化行列を生成し、逆量子化部303に設定する。The quantizationmatrix determination unit 304 reads the conversion skip flag, the transmission quantization matrix application flag, and the scaling list from the decodinginformation storage unit 302, generates a quantization matrix used when each quantized block is inversely quantized, Set ininverse quantization section 303.

 逆直交変換部305は、逆量子化部303から入力された変換済みブロックに対して逆直交変換処理を行い、画像符号化装置10の予測差分信号生成部101が生成した予測差分信号を復元した予測差分復元信号を生成する。なお、逆直交変換部305は、変換スキップ判定部306から逆直交変換を適用しないことを指定された変換済みブロックについては、逆直交変換処理を行わずに、そのまま予測差分復元信号とする。逆直交変換部305は、予測差分復元信号を復号画像生成部307に入力する。The inverseorthogonal transform unit 305 performs an inverse orthogonal transform process on the transformed block input from theinverse quantization unit 303 to restore the prediction difference signal generated by the prediction differencesignal generation unit 101 of theimage encoding device 10. A prediction difference restoration signal is generated. Note that the inverseorthogonal transform unit 305 does not perform the inverse orthogonal transform process on the transformed block designated by the transformskip determination unit 306 as not to apply the inverse orthogonal transform, and directly uses it as a prediction difference restoration signal. The inverseorthogonal transform unit 305 inputs the prediction difference restoration signal to the decodedimage generation unit 307.

 イントラ予測部311は、フレームメモリ309から取得する復号対象画像のすでに復号化された周辺画素から、複数の予測方向を用いて予測画像を生成する。Theintra prediction unit 311 generates a predicted image using a plurality of prediction directions from the peripheral pixels already decoded of the decoding target image acquired from theframe memory 309.

 インター予測部310は、フレームメモリ309から取得した参照画像のデータを復号情報記憶部302から取得する動きベクトルや分割モードを用いて動き補償する。これにより、動き補償された参照画像からなる予測画像のブロックデータが生成される。Theinter prediction unit 310 performs motion compensation on the reference image data acquired from theframe memory 309 using a motion vector or a division mode acquired from the decodedinformation storage unit 302. As a result, block data of a predicted image including a motion-compensated reference image is generated.

 予測画像選択部312は、エントロピー復号部301からの通知に従い、イントラ予測画像、又はインター予測画像どちらか一方の予測画像を選択する。選択された予測画像のブロックデータは、復号画像生成部307に入力される。The predictedimage selection unit 312 selects either the intra predicted image or the inter predicted image according to the notification from theentropy decoding unit 301. The block data of the selected predicted image is input to the decodedimage generation unit 307.

 復号画像生成部307は、予測画像選択部312から入力される予測画像のブロックデータと、逆直交変換部305から入力される予測差分復元信号とを加算し、復号画像を生成する。生成された復号画像はループフィルタ部308に入力される。The decodedimage generation unit 307 adds the block data of the prediction image input from the predictionimage selection unit 312 and the prediction difference restoration signal input from the inverseorthogonal transform unit 305 to generate a decoded image. The generated decoded image is input to theloop filter unit 308.

 ループフィルタ部308は、復号画像生成部307から出力された復号画像に対し、ブロック歪を低減するためのフィルタをかけ、ループフィルタ処理後の復号画像をフレームメモリ309に出力する。なお、ループフィルタ後の復号画像は表示装置などに出力されてもよい。Theloop filter unit 308 applies a filter for reducing block distortion to the decoded image output from the decodedimage generation unit 307, and outputs the decoded image after the loop filter processing to theframe memory 309. Note that the decoded image after the loop filter may be output to a display device or the like.

 フレームメモリ309は、参照画像となる復号画像などを記憶する。なお、復号情報記憶部302とフレームメモリ309は、分けた構成にしているが、同じ記憶部であってもよい。Theframe memory 309 stores a decoded image that becomes a reference image. Although the decodedinformation storage unit 302 and theframe memory 309 are configured separately, they may be the same storage unit.

 図8は、量子化行列決定部304と、逆量子化部303の動作を説明するフローチャートである。量子化行列決定部304と逆量子化部303とは、全ての符号化ブロックを順に一つずつ選択して、以下のステップSb2からステップSb14の処理を行う(Sb1)。ステップSb2では、量子化行列決定部304は、復号情報記憶部302を参照して、当該符号化ブロックの伝送量子化行列適用フラグが「1」になっているか否かを判定する。FIG. 8 is a flowchart for explaining the operations of the quantizationmatrix determination unit 304 and theinverse quantization unit 303. The quantizationmatrix determination unit 304 and theinverse quantization unit 303 sequentially select all the coding blocks one by one, and perform the following processing from step Sb2 to step Sb14 (Sb1). In step Sb2, the quantizationmatrix determination unit 304 refers to the decodinginformation storage unit 302 and determines whether or not the transmission quantization matrix application flag of the coding block is “1”.

 「1」になっていないと判定したときは(Sb2-No)、量子化行列決定部304と逆量子化部303とは、当該符号化ブロック内の全ての量子化済みブロックを順に一つずつ選択して、以下のステップSb12からステップSb13の処理を行う。ステップSb12では、量子化行列決定部304は、当該符号化ブロックに属する全ての量子化ブロックについて、ステップSb12~Sb13の処理を行っているか否かを判定し(Sb14)、全ての量子化ブロックについて行っているときは、ステップSb15に進む。ステップSb12~Sb13の処理を行っていない量子化ブロックがあるときは、量子化行列決定部304は、処理を行っていない量子化ブロックを一つ選択し、ステップSb12に戻る。When it is determined that it is not “1” (Sb2-No), the quantizationmatrix determination unit 304 and theinverse quantization unit 303 sequentially process all quantized blocks in the coding block one by one. Then, the following processing from step Sb12 to step Sb13 is performed. In step Sb12, the quantizationmatrix determination unit 304 determines whether or not the processing of steps Sb12 to Sb13 is performed for all quantization blocks belonging to the coding block (Sb14), and for all quantization blocks. If so, the process proceeds to step Sb15. When there is a quantized block that has not been subjected to the processes in steps Sb12 to Sb13, the quantizationmatrix determining unit 304 selects one quantized block that has not been processed, and the process returns to step Sb12.

 一方、ステップSb2にて伝送量子化行列適用フラグが「1」になっていると判定したときは(Sb2-Yes)、量子化行列決定部304は、当該符号化ブロックの各サイズのスケーリングリストを、復号情報記憶部302から取得する(Sb3)。次に、量子化行列決定部304と逆量子化部303とは、全ての量子化済みブロックを順に一つずつ選択して、以下のステップSb5からステップSb10の処理を行う(Sb4)。まず、量子化行列決定部304は、選択した当該量子化済みブロックのサイズが4×4であるか否かを判定する(Sb5)。4×4であると判定したときは(Sb45-Yes)、さらに、当該量子化済みブロックの変換スキップフラグを復号情報記憶部302から取得し、変換スキップフラグが「1」であるか否かを判定する(Sb6)。On the other hand, when it is determined in step Sb2 that the transmission quantization matrix application flag is “1” (Sb2-Yes), the quantizationmatrix determination unit 304 displays a scaling list of each size of the coding block. Obtained from the decryption information storage unit 302 (Sb3). Next, the quantizationmatrix determination unit 304 and theinverse quantization unit 303 sequentially select all the quantized blocks one by one, and perform the following processing from step Sb5 to step Sb10 (Sb4). First, the quantizationmatrix determination unit 304 determines whether or not the size of the selected quantized block is 4 × 4 (Sb5). When it is determined that it is 4 × 4 (Sb45-Yes), the conversion skip flag of the quantized block is further acquired from the decodinginformation storage unit 302, and whether or not the conversion skip flag is “1” is determined. Determine (Sb6).

 変換スキップフラグが「1」であると判定したときは(Sb6-Yes)、量子化行列決定部304は、4×4のデフォルト量子化行列を逆量子化部303に設定し(Sb7)、ステップSb9に進む。一方、ステップSb5にて4×4でないと判定したとき(Sb5-No)および、ステップSb6にて変換スキップフラグが「1」でないと判定したとき(Sb6-No)は、量子化行列決定部304は、ステップSb3にて取得したスケーリングリストのうち、当該量子化済みブロックのサイズのスケーリングリストから生成した伝送量子化行列を、逆量子化部303に設定し(Sb8)、ステップSb9に進む。なお、量子化行列決定部304は、スケーリングリストを分割した各値を、それぞれ所定の位置の要素とすることで、伝送量子化行列を生成する。When it is determined that the conversion skip flag is “1” (Sb6-Yes), the quantizationmatrix determination unit 304 sets a 4 × 4 default quantization matrix in the inverse quantization unit 303 (Sb7), and the step Proceed to Sb9. On the other hand, when it is determined in step Sb5 that it is not 4 × 4 (Sb5-No) and when it is determined in step Sb6 that the conversion skip flag is not “1” (Sb6-No), the quantizationmatrix determination unit 304 Sets the transmission quantization matrix generated from the scaling list of the size of the quantized block in the scaling list acquired in step Sb3 to the inverse quantization unit 303 (Sb8), and proceeds to step Sb9. Note that the quantizationmatrix determination unit 304 generates a transmission quantization matrix by using each value obtained by dividing the scaling list as an element at a predetermined position.

 ステップSb9では、逆量子化部303は、ステップSb13と同様にして、ステップSb7またはSb8にて設定された量子化行列を用いて、当該量子化済みブロックを逆量子化して、変換済みブロックを生成する。逆量子化部303は、生成した変換済みブロックを、逆直交変換部305に入力する。次に、量子化行列決定部304は、当該符号化ブロックに属する全ての量子化済みブロックについて、ステップSb5~Sb9の処理を行っているか否かを判定し(Sb10)、全ての量子化済みブロックについて行っているときは、ステップSb15に進む。ステップSb5~Sb9の処理を行っていない量子化済みブロックがあるときは、量子化行列決定部304は、処理を行っていない量子化済みブロックを一つ選択し、ステップSb5に戻る。In step Sb9, theinverse quantization unit 303 generates a transformed block by inversely quantizing the quantized block using the quantization matrix set in step Sb7 or Sb8 in the same manner as in step Sb13. To do. Theinverse quantization unit 303 inputs the generated transformed block to the inverseorthogonal transform unit 305. Next, the quantizationmatrix determination unit 304 determines whether or not the processing of steps Sb5 to Sb9 has been performed for all quantized blocks belonging to the encoded block (Sb10), and all quantized blocks have been processed. When the operation is performed, the process proceeds to step Sb15. When there is a quantized block that has not been subjected to the processes of steps Sb5 to Sb9, the quantizationmatrix determination unit 304 selects one quantized block that has not been processed, and the process returns to step Sb5.

 ステップSb15では、量子化行列決定部304は、全ての符号化ブロックについて、ステップSb2~Sb14の処理を行っているか否かを判定する(Sb15)。ステップSb2~Sb14の処理を行っていない符号化ブロックがあるときは、量子化行列決定部304は、処理を行っていない符号化ブロックを一つ選択し、ステップSb2に戻る。全ての符号化ブロックについて行っているときは、処理を終了する。In step Sb15, the quantizationmatrix determination unit 304 determines whether or not the processing of steps Sb2 to Sb14 is performed for all the encoded blocks (Sb15). If there is an encoded block that has not been subjected to the processes in steps Sb2 to Sb14, the quantizationmatrix determination unit 304 selects one encoded block that has not been processed, and the process returns to step Sb2. When the process is performed for all the encoded blocks, the process ends.

 このように、本実施形態の画像符号化装置10は、変換スキップ判定部103と、直交変換部102と、量子化行列決定部105と、量子化部104とを含んで構成される。変換スキップ判定部103は、入力画像と予測画像との差分を表す予測差分信号を分割した変換ブロック各々について、直交変換を適用するか否かを判定する。直交変換部102は、変換ブロックのうち、直交変換を適用すると判定された変換ブロックを直交変換して量子化ブロックを生成し、変換ブロックのうち、直交変換を適用しないと判定された変換ブロックをそのまま量子化ブロックとする。As described above, theimage encoding device 10 according to the present embodiment includes the transformskip determination unit 103, theorthogonal transform unit 102, the quantizationmatrix determination unit 105, and thequantization unit 104. The transformskip determination unit 103 determines whether or not to apply orthogonal transform to each transform block obtained by dividing the prediction difference signal that represents the difference between the input image and the prediction image. Theorthogonal transform unit 102 generates a quantized block by performing orthogonal transform on a transform block determined to apply the orthogonal transform among the transform blocks, and selects a transform block determined not to apply the orthogonal transform among the transform blocks. The quantization block is used as it is.

 また、量子化行列決定部105は、量子化ブロックの各要素を量子化する際の要素毎の量子化の粗さを表す量子化行列を、量子化ブロック毎に決定する。量子化部104は、量子化行列決定部105が決定した量子化行列を用いて、量子化ブロックの各要素を量子化する。そして、量子化行列決定部105は、直交変換部102により変換ブロックのままとされた量子化ブロックに対する量子化行列を、全ての要素の量子化の粗さが等しい量子化行列とする。Also, the quantizationmatrix determination unit 105 determines, for each quantization block, a quantization matrix that represents the quantization roughness for each element when each element of the quantization block is quantized. Thequantization unit 104 quantizes each element of the quantization block using the quantization matrix determined by the quantizationmatrix determination unit 105. Then, the quantizationmatrix determination unit 105 sets the quantization matrix for the quantization block left as the transform block by theorthogonal transform unit 102 as a quantization matrix having the same quantization roughness for all elements.

 これにより、直交変換を行ったブロックと、直交変換を行わないブロックとが混在していても、変換ブロックのままとされた量子化ブロック、すなわち、直交変換が行われなかった量子化ブロックは、全ての要素の量子化の粗さが等しくなるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができることができる。As a result, even if a block that has undergone orthogonal transformation and a block that has not undergone orthogonal transformation are mixed, the quantization block that remains as the transformation block, that is, the quantization block that has not undergone orthogonal transformation, Since the quantization roughness of all the elements is equal, it is possible to suppress variations between pixels caused by quantization and to suppress subjective image quality degradation.

 さらに、量子化行列決定部105は、直交変換部102により変換ブロックのままとされた量子化ブロックに対する量子化行列を、復号側と予め共有しているデフォルト量子化行列とする。Further, the quantizationmatrix determination unit 105 sets the quantization matrix for the quantization block left as a transform block by theorthogonal transform unit 102 as a default quantization matrix shared in advance with the decoding side.

 これにより、変換ブロックのままとされた量子化ブロック、すなわち直交変換が行われなかった量子化ブロックの量子化には、全ての要素の量子化の粗さが等しいデフォルト量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, a quantization block that is left as a transform block, that is, a quantization block that is not subjected to orthogonal transform, uses a default quantization matrix in which the quantization coarseness of all elements is equal. In addition, it is possible to suppress variation between pixels caused by quantization and to suppress subjective image quality degradation.

 さらに、量子化行列決定部105は、量子化行列として、デフォルト量子化行列を用いるか、復号側に伝送する伝送量子化行列を用いるかを、1つまたは複数の前記量子化ブロックから構成される所定の単位(符号化ブロック)毎に判定する。また、量子化行列決定部105は、伝送量子化行列を用いると判定された所定の単位に含まれ、かつ、直交変換部102により変換ブロックのままとされた量子化ブロックに対する量子化行列を、デフォルト量子化行列とする。Further, the quantizationmatrix determination unit 105 is configured by one or a plurality of the quantization blocks, which uses a default quantization matrix or a transmission quantization matrix transmitted to the decoding side as a quantization matrix. A determination is made for each predetermined unit (encoded block). In addition, the quantizationmatrix determination unit 105 includes a quantization matrix for a quantization block that is included in a predetermined unit determined to use the transmission quantization matrix and is left as a transform block by theorthogonal transform unit 102. The default quantization matrix is used.

 これにより、伝送量子化行列を用いると判定された所定の単位(符号化ブロック)に含まれている量子化ブロックであっても、直交変換が行われなかった量子化ブロックの量子化には、全ての要素の量子化の粗さが等しいデフォルト量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, even if the quantization block included in the predetermined unit (encoding block) determined to use the transmission quantization matrix is not subjected to orthogonal transformation, Since the default quantization matrix in which the quantization roughness of all the elements is equal is used, it is possible to suppress variations between pixels caused by quantization and to suppress subjective image quality degradation.

 このように、画像復号装置30は、量子化行列決定部304、逆量子化部303、変換スキップ判定部306、逆直交変換部305、復号画像生成部307を含んで構成される。量子化行列決定部304は、符号化データeに含まれる量子化済みブロックの各要素を逆量子化する際の要素毎の量子化の粗さを表す量子化行列を、量子化済みブロック毎に決定する。逆量子化部303は、量子化行列決定部304が決定した量子化行列を用いて、量子化済みブロックの各要素を逆量子化して、変換済みブロックを生成する。変換スキップ判定部306は、変換済みブロック各々について、逆直交変換を適用するか否かを判定する。As described above, theimage decoding device 30 includes the quantizationmatrix determination unit 304, theinverse quantization unit 303, the transformskip determination unit 306, the inverseorthogonal transform unit 305, and the decodedimage generation unit 307. The quantizationmatrix determination unit 304 calculates, for each quantized block, a quantization matrix that represents the roughness of quantization for each element when each element of the quantized block included in the encoded data e is inversely quantized. decide. Theinverse quantization unit 303 uses the quantization matrix determined by the quantizationmatrix determination unit 304 to inversely quantize each element of the quantized block to generate a transformed block. The transformskip determining unit 306 determines whether to apply inverse orthogonal transform to each transformed block.

 また、逆直交変換部305は、変換済みブロックのうち、逆直交変換を適用すると判定された変換済みブロックを逆直交変換して予測差分復元信号を生成し、変換済みブロックのうち、逆直交変換を適用しないと判定された変換済みブロックをそのまま予測差分復元信号とする。復号画像生成部307(合成部)は、予測差分復元信号と予測画像とから、復号画像を生成する。そして、量子化行列決定部304は、逆直交変換部305が変換済みブロックをそのまま予測差分復元信号とする変換済みブロックを生成する際に用いる量子化行列を、全ての要素の量子化の粗さが等しい量子化行列とする。In addition, the inverseorthogonal transform unit 305 generates a prediction difference restoration signal by performing inverse orthogonal transform on the transformed block determined to apply the inverse orthogonal transform among the transformed blocks, and the inverse orthogonal transform among the transformed blocks. The converted block determined not to be applied is directly used as a prediction difference restoration signal. The decoded image generation unit 307 (synthesis unit) generates a decoded image from the prediction difference restoration signal and the prediction image. Then, the quantizationmatrix determination unit 304 uses the quantization matrix used when the inverseorthogonal transform unit 305 generates a transformed block that uses the transformed block as a prediction difference restoration signal as it is as the roughness of quantization of all elements. The quantization matrices are equal.

 これにより、直交変換を行ったブロックと、直交変換を行わないブロックとが混在していても、変換済みブロックをそのまま予測差分復元信号とし、逆直交変換を行わない変換済みブロックに対応する量子化済みブロックの逆量子化は、全ての要素の量子化の粗さが等しい量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, even if a block that has undergone orthogonal transformation and a block that has not undergone orthogonal transformation are mixed, the transformed block is used as it is as a prediction difference restoration signal, and the quantization corresponding to the transformed block that is not subjected to inverse orthogonal transformation The inverse quantization of a completed block uses a quantization matrix in which the quantization coarseness of all elements is equal, so that it is possible to suppress variations between pixels caused by quantization and to suppress subjective image quality degradation. .

 また、量子化行列決定部304は、逆直交変換部305が変換済みブロックをそのまま予測差分復元信号とする変換済みブロックを生成する際に用いる量子化行列を、符号化側と予め共有しているデフォルト量子化行列とする。Also, the quantizationmatrix determination unit 304 shares in advance the quantization matrix used when the inverseorthogonal transform unit 305 generates a transformed block using the transformed block as a prediction difference restoration signal as it is, with the encoding side. The default quantization matrix is used.

 これにより、変換済みブロックをそのまま予測差分復元信号とし、逆直交変換が行われない変換済みブロックに対応する量子化済みブロックの逆量子化には、全ての要素の量子化の粗さが等しいデフォルト量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, the transformed block is used as a prediction difference restoration signal as it is, and the inverse quantization of the quantized block corresponding to the transformed block that is not subjected to inverse orthogonal transformation is the default for which all elements have the same quantization roughness. Since a quantization matrix is used, it is possible to suppress variations between pixels caused by quantization and suppress subjective image quality degradation.

 また、量子化行列決定部304は、量子化行列として、デフォルト量子化行列を用いるか、符号化側から伝送される伝送量子化行列を用いるかを、1つまたは複数の量子化済みブロックから構成される所定の単位(符号化ブロック)毎に判定する。また、量子化行列決定部304は、伝送量子化行列を用いると判定された符号化ブロックに含まれ、かつ、逆直交変換部305が変換済みブロックをそのまま予測差分ブロックとする変換済みブロックを生成する際に用いる量子化行列を、デフォルト量子化行列とする。In addition, the quantizationmatrix determination unit 304 is configured by using one or a plurality of quantized blocks as to whether a default quantization matrix or a transmission quantization matrix transmitted from the encoding side is used as a quantization matrix. For each predetermined unit (encoded block). In addition, the quantizationmatrix determination unit 304 generates a transformed block that is included in the encoded block determined to use the transmission quantization matrix, and the inverseorthogonal transform unit 305 uses the transformed block as it is as a prediction difference block. The quantization matrix used in the process is set as a default quantization matrix.

 これにより、伝送量子化行列を用いると判定された所定の単位(符号化ブロック)に含まれている量子化済みブロックであっても、逆量子化した後に逆直交変換を行わない量子化済みブロックの逆量子化には、全ての要素の量子化の粗さが等しいデフォルト量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, even if the quantized block is included in a predetermined unit (encoded block) that is determined to use the transmission quantization matrix, the quantized block that does not perform inverse orthogonal transformation after inverse quantization Since the default quantization matrix in which the quantization coarseness of all elements is equal is used for the inverse quantization of, variation between pixels caused by quantization can be suppressed, and subjective image quality degradation can be suppressed. .

[第2の実施形態]
 以下、図面を参照して、本発明の第2の実施形態について説明する。第1の実施形態では、伝送量子化行列を用いる符号化ブロックに属する量子化ブロックであっても、変換スキップされたものについては、デフォルト量子化行列を用いる例を説明した。第2の実施形態では、伝送量子化行列を用いる符号化ブロックに属する量子化ブロックであり、変換スキップされたものについては、伝送量子化行列から生成した平坦な量子化行列である代表値量子化行列を用いる例を説明する。
[Second Embodiment]
The second embodiment of the present invention will be described below with reference to the drawings. In the first embodiment, the example in which the default quantization matrix is used for the quantization blocks that belong to the coding block that uses the transmission quantization matrix but has been skipped for conversion has been described. In the second embodiment, a quantization block belonging to a coding block that uses a transmission quantization matrix, and for those skipped by transform, representative value quantization that is a flat quantization matrix generated from the transmission quantization matrix An example using a matrix will be described.

 本実施形態における画像符号化装置10と、画像復号装置30とは、図1の画像符号化装置10、図7の画像復号装置30と同様の構成である。ただし、画像符号化装置10は、量子化行列決定部105の動作が、画像復号装置30は、量子化行列決定部304の動作が異なるので、これらの動作について説明する。Theimage encoding device 10 and theimage decoding device 30 in the present embodiment have the same configuration as theimage encoding device 10 in FIG. 1 and theimage decoding device 30 in FIG. However, since the operation of the quantizationmatrix determination unit 105 in theimage encoding device 10 is different from that of theimage decoding device 30 in the operation of the quantizationmatrix determination unit 304, these operations will be described.

 図9は、本実施形態における量子化部104、量子化行列決定部105の動作を説明するフローチャートである。図9において、図6の各部に対応する部分には同一の符号(Sa1~Sa7、Sa9~Sa17)を付し、説明を省略する。図9のフローチャートは、図6のフローチャートとは、ステップSa8に変えてステップSc8を有する点のみが異なる。ステップSc8では、量子化行列決定部105は、ステップSa3にて決定した伝送量子化行列のうち、当該量子化ブロックのサイズの伝送量子化行列の一つの代表値を取得する。量子化行列決定部105は、全ての要素を該代表値と同じ値とする代表値量子化行列を、量子化部104と逆量子化部107に設定する。FIG. 9 is a flowchart for explaining the operation of thequantization unit 104 and the quantizationmatrix determination unit 105 in the present embodiment. 9, parts corresponding to those in FIG. 6 are given the same reference numerals (Sa1 to Sa7, Sa9 to Sa17), and description thereof is omitted. The flowchart of FIG. 9 differs from the flowchart of FIG. 6 only in that step Sc8 is provided instead of step Sa8. In step Sc8, the quantizationmatrix determination unit 105 acquires one representative value of the transmission quantization matrix having the size of the quantization block among the transmission quantization matrices determined in step Sa3. The quantizationmatrix determination unit 105 sets a representative value quantization matrix in which all elements have the same value as the representative value in thequantization unit 104 and theinverse quantization unit 107.

 例えば、代表値として、伝送量子化行列の予め決められた位置の要素を用い、全ての要素がこの代表値となっている量子化行列を代表値量子化行列とする。この代表値量子化行列m[x][y]は、伝送量子化行列をScalingFactor[sizeId][x][y]としたときに、式(2)のように表せる。m[x][y]=ScalingFactor[sizeId][α][β] … (2)ここで、α、βは、それぞれ水平方向、垂直方向の予め決められた位置を示す整数であり、0からxTbS-1、0からyTbS-1のいずれかの値(例えば、2)をとる。xTbSは、x方向のブロックサイズであり、yTbsは、y方向のブロックサイズであり、どちらも「4」である。SizeIdは、量子化ブロックのサイズを表すインデックスであり、ここでは、4×4を表す値が入る。For example, as a representative value, an element at a predetermined position of the transmission quantization matrix is used, and a quantization matrix in which all the elements are the representative value is set as a representative value quantization matrix. The representative value quantization matrix m [x] [y] can be expressed as in Expression (2) when the transmission quantization matrix is ScalingFactor [sizeId] [x] [y]. m [x] [y] = ScalingFactor [sizeId] [α] [β] (2) where α and β are integers indicating predetermined positions in the horizontal and vertical directions, respectively. xTbS-1, taking any value from 0 to yTbS-1 (for example, 2). xTbS is the block size in the x direction, and yTbs is the block size in the y direction, both of which are “4”. SizeId is an index representing the size of the quantization block, and here, a value representing 4 × 4 is entered.

 なお、代表値として、特定の要素を用いるのではなく、伝送量子行列の要素の平均値、中間値、最小値、最大値、最頻値などを用いるようにしてもよい。Note that, as a representative value, instead of using a specific element, an average value, an intermediate value, a minimum value, a maximum value, a mode value, or the like of elements of the transmission quantum matrix may be used.

 図10は、本実施形態における逆量子化部303、量子化行列決定部304の動作を説明するフローチャートである。図10において、図8の各部に対応する部分には同一の符号(Sb1~Sb6、Sb8~Sa14)を付し、説明を省略する。図10のフローチャートは、図8のフローチャートとは、ステップSb7に変えてステップSd7を有する点のみが異なる。FIG. 10 is a flowchart for explaining the operation of theinverse quantization unit 303 and the quantizationmatrix determination unit 304 in the present embodiment. 10, parts corresponding to those in FIG. 8 are given the same reference numerals (Sb1 to Sb6, Sb8 to Sa14), and description thereof is omitted. The flowchart in FIG. 10 differs from the flowchart in FIG. 8 only in that step Sd7 is provided instead of step Sb7.

 ステップSd7では、量子化行列決定部304は、ステップSb3にて取得したスケーリングリストのうち、当該量子化済みブロックのサイズのスケーリングリストから伝送量子化行列を生成し、生成した伝送量子化行列の一つの代表値を取得する。代表値の取得方法は、ステップSc7と同様である。量子化行列決定部304は、全ての要素を該代表値と同じ値とする代表値量子化行列を、逆量子化部303に設定する。In step Sd7, the quantizationmatrix determination unit 304 generates a transmission quantization matrix from the scaling list of the size of the quantized block in the scaling list acquired in step Sb3, and generates one of the generated transmission quantization matrices. Get two representative values. The method for obtaining the representative value is the same as in step Sc7. The quantizationmatrix determination unit 304 sets a representative value quantization matrix in which all elements have the same value as the representative value in theinverse quantization unit 303.

 このように、本実施形態の画像符号化装置10において、量子化行列決定部105は、直交変換部102により変換ブロックのままとされた量子化ブロックに対する量子化行列を、所定の行列を構成する要素の代表値で、全ての要素の量子化の粗さが表される代表値量子化行列とする。As described above, in theimage encoding device 10 according to the present embodiment, the quantizationmatrix determination unit 105 configures a predetermined matrix for the quantization matrix for the quantization block that is left as a transform block by theorthogonal transform unit 102. It is a representative value quantization matrix that represents the representative values of elements and represents the roughness of quantization of all elements.

 これにより、変換ブロックのままとされた量子化ブロック、すなわち、直交変換が行われなかった量子化ブロックの量子化には、全ての要素の量子化の粗さが等しい代表値量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, a quantization block that is left as a transform block, that is, a quantization block that has not been subjected to orthogonal transform, uses a representative quantization matrix in which the quantization roughness of all elements is equal. Therefore, it is possible to suppress variations between pixels caused by quantization and suppress subjective image quality degradation.

 さらに、量子化行列決定部105は、量子化行列として、復号側と予め共有しているデフォルト量子化行列を用いるか、復号側に伝送する伝送量子化行列を用いるかを、1つまたは複数の量子化ブロックから構成される所定の単位(符号化ブロック)毎に判定する。量子化行列決定部105が、伝送量子化行列を用いると判定された所定の単位に含まれ、かつ、直交変換部102により変換ブロックのままとされた量子化ブロックに対する量子化行列を、代表値量子化行列とする。また、上述の所定の行列は、伝送量子化行列である。Furthermore, the quantizationmatrix determination unit 105 determines whether to use a default quantization matrix shared in advance with the decoding side or a transmission quantization matrix to be transmitted to the decoding side as the quantization matrix. A determination is made for each predetermined unit (encoded block) composed of quantized blocks. A quantization matrix for a quantization block that is included in a predetermined unit that is determined to use the transmission quantization matrix by the quantizationmatrix determination unit 105 and that remains as a transform block by theorthogonal transform unit 102 is represented as a representative value. Let it be a quantization matrix. Further, the predetermined matrix described above is a transmission quantization matrix.

 これにより、伝送量子化行列を用いると判定された所定の単位(符号化ブロック)に含まれている量子化ブロックであっても、直交変換が行われなかった量子化ブロックの量子化には、全ての要素の量子化の粗さが等しい代表値量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, even if the quantization block included in the predetermined unit (encoding block) determined to use the transmission quantization matrix is not subjected to orthogonal transformation, Since representative value quantization matrices having the same quantization roughness for all elements are used, it is possible to suppress variations between pixels caused by quantization and to suppress subjective image quality degradation.

 また、このように、本実施形態の画像復号装置30において、量子化行列決定部304は、逆直交変換部305が変換済みブロックをそのまま予測差分復元信号とする変換済みブロックを生成する際に用いる量子化行列を、所定の行列を構成する要素の代表値で、全ての要素の量子化の粗さが表される代表値量子化行列とする。As described above, in theimage decoding device 30 according to the present embodiment, the quantizationmatrix determination unit 304 is used when the inverseorthogonal transform unit 305 generates a transformed block that uses the transformed block as a prediction difference restoration signal as it is. The quantization matrix is a representative value quantization matrix that represents representative values of elements constituting a predetermined matrix and represents the quantization roughness of all elements.

 これにより、変換済みブロックをそのまま予測差分復元信号とする変換済みブロックを生成するための逆量子化には、全ての要素の量子化の粗さが等しい代表値量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, a representative value quantization matrix having the same quantization roughness for all elements is used for inverse quantization to generate a transformed block that uses the transformed block as it is as a prediction difference restoration signal. It is possible to suppress variation between pixels caused by the conversion, and to suppress subjective image quality degradation.

 さらに、量子化行列決定部304は、量子化行列として、復号側と予め共有しているデフォルト量子化行列を用いるか、符号化側から伝送される伝送量子化行列を用いるかを、1つまたは複数の前記量子化済みブロックから構成される所定の単位(符号化ブロック)毎に判定する。量子化行列決定部304が、伝送量子化行列を用いると判定された所定の単位に含まれ、かつ、逆直交変換部305が変換済みブロックをそのまま予測差分復元信号とする変換済みブロックを生成する際に用いる量子化行列を、代表値量子化行列とする。また、上述の所定の行列は、伝送量子化行列である。Further, the quantizationmatrix determination unit 304 determines whether to use a default quantization matrix shared in advance with the decoding side or a transmission quantization matrix transmitted from the encoding side as the quantization matrix, or A determination is made for each predetermined unit (encoded block) composed of a plurality of quantized blocks. The quantizationmatrix determination unit 304 generates a transformed block that is included in a predetermined unit determined to use the transmission quantization matrix, and the inverseorthogonal transform unit 305 uses the transformed block as it is as a prediction difference restoration signal. The quantization matrix used at this time is a representative value quantization matrix. Further, the predetermined matrix described above is a transmission quantization matrix.

 これにより、伝送量子化行列を用いると判定された所定の単位(符号化ブロック)に含まれている量子化済みブロックであっても、逆量子化した後に逆直交変換を行わない量子化済みブロックの逆量子化には、全ての要素の量子化の粗さが等しい代表値量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, even if the quantized block is included in a predetermined unit (encoded block) that is determined to use the transmission quantization matrix, the quantized block that does not perform inverse orthogonal transformation after inverse quantization For the inverse quantization, a representative value quantization matrix with the same quantization roughness for all elements is used, so it is possible to suppress variations between pixels caused by quantization and to suppress subjective image quality degradation. it can.

[第3の実施形態]
 以下、図面を参照して、本発明の第3の実施形態について説明する。第3の実施形態では、伝送量子化行列を用いる符号化ブロックに属する量子化ブロックであり、変換スキップされたものについては、符号化側から復号側に一つの値を伝送し、該値から生成した平坦な単一値伝送量子化行列を用いる例を説明する。
[Third Embodiment]
The third embodiment of the present invention will be described below with reference to the drawings. In the third embodiment, a quantization block that belongs to an encoding block that uses a transmission quantization matrix, and one that has been subjected to conversion skip is transmitted from the encoding side to the decoding side, and generated from the value. An example using a flat single-value transmission quantization matrix will be described.

 本実施形態における画像符号化装置10と、画像復号装置30とは、図1の画像符号化装置10、図7の画像復号装置30と同様の構成である。ただし、画像符号化装置10は、量子化行列決定部105の動作が、画像復号装置30は、量子化行列決定部304の動作が異なるので、これらの動作について説明する。Theimage encoding device 10 and theimage decoding device 30 in the present embodiment have the same configuration as theimage encoding device 10 in FIG. 1 and theimage decoding device 30 in FIG. However, since the operation of the quantizationmatrix determination unit 105 in theimage encoding device 10 is different from that of theimage decoding device 30 in the operation of the quantizationmatrix determination unit 304, these operations will be described.

 図11は、本実施形態における量子化部104、量子化行列決定部105の動作を説明するフローチャートである。図11において、図6の各部に対応する部分には同一の符号(Sa1~Sa2、Sa5~Sa7、Sa9~Sa17)を付し、説明を省略する。図11のフローチャートは、図6のフローチャートとは、ステップSa3、Sa4、Sa8に変えて、それぞれステップSe3、Se4、Se8を有する点のみが異なる。FIG. 11 is a flowchart for explaining the operation of thequantization unit 104 and the quantizationmatrix determination unit 105 in the present embodiment. In FIG. 11, parts corresponding to those in FIG. 6 are assigned the same reference numerals (Sa1 to Sa2, Sa5 to Sa7, Sa9 to Sa17), and description thereof is omitted. The flowchart of FIG. 11 differs from the flowchart of FIG. 6 only in that steps Sa3, Sa4, and Sa8 are provided instead of steps Sa3, Sa4, and Sa8, respectively.

 ステップSe3では、量子化行列決定部105は、各サイズの伝送量子化行列(ScalingFactor)と、単一値伝送量子化行列(ScalingFactor_TS)を決定する。ここで、単一値伝送量子化行列は、全ての要素が同じ値であり、この値を一つ、復号側に伝送する量子化行列である。なお、この値は、予め決められた値を用いるようにしてもよいし、変換スキップされた量子化ブロックの要素の分布から求めるようにしてもよい。In step Se3, the quantizationmatrix determination unit 105 determines a transmission quantization matrix (ScalingFactor) and a single-value transmission quantization matrix (ScalingFactor_TS) of each size. Here, the single value transmission quantization matrix is a quantization matrix in which all elements have the same value and one value is transmitted to the decoding side. As this value, a predetermined value may be used, or it may be obtained from the distribution of the elements of the quantized block skipped for conversion.

 ステップSe4では、量子化行列決定部105は、ステップSe3にて決定した伝送量子化行列の各要素と、単一値伝送量子化行列の要素を示す値一つとを、所定の順に並べたスケーリングリストを生成し、「1」に設定した伝送量子化行列適用フラグ(scaling_list_enable_flag)とをエントロピー符号化部106に入力する。In step Se4, the quantizationmatrix determination unit 105 arranges each element of the transmission quantization matrix determined in step Se3 and one value indicating the element of the single value transmission quantization matrix in a predetermined order. And the transmission quantization matrix application flag (scaling_list_enable_flag) set to “1” is input to theentropy encoding unit 106.

 ステップSe8では、量子化行列決定部105は、ステップSe3にて決定した単一値伝送量子化行列を量子化部104と逆量子化部107に設定する。なお、設定する単一値伝送量子化行列m[x][y]は、単一値伝送量子化行列の要素を示す値をScalingFactor_TS[sizeId]とすると、式(3)のように表せる。m[x][y]=ScalingFactor_TS[sizeId] … (3)SizeIdは、量子化ブロックのサイズを表すインデックスであり、ここでは、4×4を表す値が入る。In step Se8, the quantizationmatrix determination unit 105 sets the single value transmission quantization matrix determined in step Se3 in thequantization unit 104 and theinverse quantization unit 107. Note that the single-value transmission quantization matrix m [x] [y] to be set can be expressed as Equation (3), where ScalingFactor_TS [sizeId] is a value indicating an element of the single-value transmission quantization matrix. m [x] [y] = ScalingFactor_TS [sizeId] (3) SizeId is an index representing the size of the quantization block, and here, a value representing 4 × 4 is entered.

 なお、本実施形態では、単一値伝送量子化行列は、サイズが4×4のときのみ使用されるので、引数としてsizeIdを持たなくてもよい。In the present embodiment, the single-value transmission quantization matrix is used only when the size is 4 × 4, and therefore does not need to have sizeId as an argument.

 また、単一値伝送量子化行列の要素を示す値ScalingFactor_TSは、量子化ブロックのサイズ(SizeId)だけでなく、その他のパラメータとの組み合わせ毎に決定してもよい。例えば、その他のパラメータとしては、信号値の種類(輝度値Y、色差Cb、Cr)、量子化ブロックが属する符号化ブロックの予測モード(イントラ予測、インター予測など)などがある。Also, the value ScalingFactor_TS indicating the element of the single value transmission quantization matrix may be determined not only for the quantization block size (SizeId) but also for each combination with other parameters. For example, other parameters include the type of signal value (luminance value Y, color difference Cb, Cr), the prediction mode (intra prediction, inter prediction, etc.) of the encoded block to which the quantized block belongs.

 また、ステップSe3における単一値伝送量子化行列の決定と、該単一値伝送量子化行列のスケーリングリストのエントロピー符号化部106への入力は、当該符号化ブロックに変換スキップする量子化ブロックが含まれているときのみであってもよい。In addition, the determination of the single value transmission quantization matrix in step Se3 and the input of the scaling list of the single value transmission quantization matrix to theentropy coding unit 106 are performed by the quantization block to be converted and skipped to the coding block. It may be only when it is included.

 図12は、本実施形態における逆量子化部303、量子化行列決定部304の動作を説明するフローチャートである。図12において、図8の各部に対応する部分には同一の符号(Sb1、Sb2、Sb4~Sb6、Sb8~Sa14)を付し、説明を省略する。図12のフローチャートは、図8のフローチャートとは、ステップSb3、Sb7に変えてステップSf3、Sf7を有する点のみが異なる。FIG. 12 is a flowchart for explaining the operation of theinverse quantization unit 303 and the quantizationmatrix determination unit 304 in the present embodiment. In FIG. 12, the same reference numerals (Sb1, Sb2, Sb4 to Sb6, Sb8 to Sa14) are assigned to the parts corresponding to the respective parts in FIG. The flowchart in FIG. 12 differs from the flowchart in FIG. 8 only in that steps Sf3 and Sf7 are provided instead of steps Sb3 and Sb7.

 ステップSf3では、量子化行列決定部304は、当該符号化ブロックの各サイズのスケーリングリストおよび単一値伝送量子化行列のスケーリングリストを、復号情報記憶部302から取得する。In step Sf3, the quantizationmatrix determination unit 304 acquires the scaling list of each size of the coding block and the scaling list of the single-value transmission quantization matrix from the decodinginformation storage unit 302.

 ステップSf7では、量子化行列決定部304は、ステップSf3にて取得した単一値伝送量子化行列のスケーリングリストから、単一値伝送量子化行列を生成し、逆量子化部303に設定する。In step Sf7, the quantizationmatrix determination unit 304 generates a single value transmission quantization matrix from the scaling list of the single value transmission quantization matrix acquired in step Sf3, and sets it in theinverse quantization unit 303.

 このように、本実施形態の画像符号化装置10において、量子化行列決定部105は、直交変換部102により変換ブロックのままとされた量子化ブロックに対する量子化行列を、復号側に伝送する単一の値で、全ての要素の量子化の粗さが表される単一値伝送量子化行列とする。As described above, in theimage encoding device 10 according to the present embodiment, the quantizationmatrix determination unit 105 simply transmits the quantization matrix for the quantization block left as the transform block by theorthogonal transform unit 102 to the decoding side. A single value transmission quantization matrix in which quantization coarseness of all elements is represented by a single value.

 これにより、変換ブロックのままとされた量子化ブロック、すなわち直交変換が行われなかった量子化ブロックの量子化には、全ての要素の量子化の粗さが等しい単一値伝送量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, a quantization block that is left as a transform block, that is, a quantization block that is not subjected to orthogonal transform, has a single-value transmission quantization matrix in which the quantization roughness of all elements is equal. Therefore, it is possible to suppress variations between pixels caused by quantization, and to suppress subjective image quality degradation.

 また、量子化行列決定部105は、量子化行列として、復号側と予め共有しているデフォルト量子化行列を用いるか、復号側に伝送する伝送量子化行列を用いるかを、1つまたは複数の量子化ブロックから構成される所定の単位(符号化ブロック)毎に判定する。量子化行列決定部105は、伝送量子化行列を用いると判定された所定の単位に含まれ、かつ、直交変換部102により変換ブロックのままとされた量子化ブロックに対する量子化行列を、単一値伝送量子化行列とする。In addition, the quantizationmatrix determination unit 105 determines whether to use a default quantization matrix shared in advance with the decoding side or a transmission quantization matrix to be transmitted to the decoding side as the quantization matrix. A determination is made for each predetermined unit (encoded block) composed of quantized blocks. The quantizationmatrix determining unit 105 includes a single quantization matrix for a quantization block that is included in a predetermined unit that is determined to use a transmission quantization matrix and that remains as a transform block by theorthogonal transform unit 102. Let it be a value transmission quantization matrix.

 これにより、伝送量子化行列を用いると判定された所定の単位(符号化ブロック)に含まれている量子化ブロックであっても、直交変換を行われなかった量子化ブロックの量子化には、全ての要素の量子化の粗さが等しい単一値伝送量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, even for a quantization block included in a predetermined unit (encoding block) determined to use a transmission quantization matrix, quantization of a quantization block that has not been orthogonally transformed is Since a single-value transmission quantization matrix having the same quantization roughness for all elements is used, it is possible to suppress variations between pixels caused by quantization and to suppress subjective image quality degradation.

 また、このように、本実施形態の画像復号装置30において、量子化行列決定部304は、逆直交変換部305が変換済みブロックをそのまま予測差分復元信号とする変換済みブロックを生成する際に用いる量子化行列を、符号化側から伝送される単一の値で、全ての要素の量子化の粗さが表される単一値伝送量子化行列とする。As described above, in theimage decoding device 30 according to the present embodiment, the quantizationmatrix determination unit 304 is used when the inverseorthogonal transform unit 305 generates a transformed block that uses the transformed block as a prediction difference restoration signal as it is. The quantization matrix is a single value transmission quantization matrix in which quantization values of all elements are represented by a single value transmitted from the encoding side.

 これにより、変換済みブロックをそのまま予測差分復元信号とし、逆直交変換が行われない変換済みブロックに対応する量子化済みブロックの逆量子化には、全ての要素の量子化の粗さが等しい単一値伝送量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, the quantized block corresponding to the transformed block corresponding to the transformed block that is not subjected to inverse orthogonal transformation is used as the prediction difference restoration signal as it is, and the quantization roughness of all the elements is the same. Since a single-value transmission quantization matrix is used, it is possible to suppress variations between pixels caused by quantization and to suppress subjective image quality degradation.

 さらに、量子化行列決定部304は、量子化行列として、復号側と予め共有しているデフォルト量子化行列を用いるか、符号化側から伝送される伝送量子化行列を用いるかを、1つまたは複数の量子化済みブロックから構成される所定の単位(符号化ブロック)毎に判定する。量子化行列決定部304は、伝送量子化行列を用いると判定された所定の単位に含まれ、かつ、逆直交変換部305が変換済みブロックをそのまま予測差分復元信号とする変換済みブロックを生成する際に用いる量子化行列を、単一値伝送量子化行列とする。Further, the quantizationmatrix determination unit 304 determines whether to use a default quantization matrix shared in advance with the decoding side or a transmission quantization matrix transmitted from the encoding side as the quantization matrix, or The determination is made for each predetermined unit (encoded block) composed of a plurality of quantized blocks. The quantizationmatrix determination unit 304 generates a transformed block that is included in a predetermined unit determined to use the transmission quantization matrix, and the inverseorthogonal transform unit 305 uses the transformed block as it is as a prediction difference restoration signal. The quantization matrix used in this case is a single-value transmission quantization matrix.

 これにより、伝送量子化行列を用いると判定された所定の単位(符号化ブロック)に含まれている量子化済みブロックであっても、逆量子化した後に逆直交変換を行わない量子化済みブロックの逆量子化には、全ての要素の量子化の粗さが等しい単一値伝送量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, even if the quantized block is included in a predetermined unit (encoded block) that is determined to use the transmission quantization matrix, the quantized block that does not perform inverse orthogonal transformation after inverse quantization Since a single-value transmission quantization matrix in which the quantization coarseness of all elements is equal is used for inverse quantization of, pixel-to-pixel variation caused by quantization is suppressed, and subjective image quality degradation is suppressed. be able to.

[第4の実施形態]
 以下、図面を参照して、本発明の第4の実施形態について説明する。第4の実施形態では、伝送量子化行列を用いる符号化ブロックに属する量子化ブロックであり、変換スキップすることができるものについては、平坦なデフォルト量子化行列を用いる例を説明する。
[Fourth Embodiment]
Hereinafter, a fourth embodiment of the present invention will be described with reference to the drawings. In the fourth embodiment, an example in which a flat default quantization matrix is used for a quantization block that belongs to a coding block that uses a transmission quantization matrix and that can be transformed and skipped will be described.

 図13は、本実施形態における画像符号化装置10aの構成を示す概略ブロック図である。図13において、図1の各部に対応する部分には同一の符号(100~104、106~115)を付し、説明を省略する。画像符号化装置10aは、図1の画像符号化装置10とは、量子化行列決定部105に変えて、量子化行列決定部105aを有する点のみが異なる。量子化行列決定部105aは、量子化行列を決定する際に、変換スキップ判定部103の判定結果を参照しない点が、量子化行列決定部105と異なる。FIG. 13 is a schematic block diagram showing the configuration of theimage encoding device 10a in the present embodiment. In FIG. 13, the same reference numerals (100 to 104, 106 to 115) are assigned to the portions corresponding to the respective portions in FIG. Theimage encoding device 10a differs from theimage encoding device 10 of FIG. 1 only in that it has a quantizationmatrix determination unit 105a instead of the quantizationmatrix determination unit 105. The quantizationmatrix determination unit 105a differs from the quantizationmatrix determination unit 105 in that it does not refer to the determination result of the conversionskip determination unit 103 when determining the quantization matrix.

 図14は、本実施形態における量子化部104、量子化行列決定部105aの動作を説明するフローチャートである。図14において、図6の各部に対応する部分には同一の符号(Sa1~Sa17)を付し、説明を省略する。図14のフローチャートは、図6のフローチャートとは、ステップSa7を有せず、ステップSa6において、量子化ブロックのサイズが4×4であると判定したときに、ステップSa8に進む点のみが異なる。FIG. 14 is a flowchart for explaining the operation of thequantization unit 104 and the quantizationmatrix determination unit 105a in the present embodiment. In FIG. 14, the same reference numerals (Sa1 to Sa17) are given to the portions corresponding to the respective portions in FIG. The flowchart of FIG. 14 differs from the flowchart of FIG. 6 only in that it does not have Step Sa7 and proceeds to Step Sa8 when it is determined in Step Sa6 that the size of the quantization block is 4 × 4.

 図15は、本実施形態における画像復号装置30aの構成を示す概略ブロック図である。図15において、図7の各部に対応する部分には同一の符号(301~303、305~312)を付し、説明を省略する。画像復号装置30aは、図7の画像復号装置30とは、量子化行列決定部304に変えて、量子化行列決定部304aを有する点のみが異なる。量子化行列決定部304aは、量子化行列を決定する際に、復号情報記憶部302から変換スキップフラグを読み出さない点が、量子化行列決定部304と異なる。FIG. 15 is a schematic block diagram showing the configuration of theimage decoding device 30a in the present embodiment. 15, parts corresponding to those in FIG. 7 are given the same reference numerals (301 to 303, 305 to 312), and description thereof will be omitted. Theimage decoding device 30a is different from theimage decoding device 30 in FIG. 7 only in that a quantization matrix determination unit 304a is provided instead of the quantizationmatrix determination unit 304. The quantization matrix determination unit 304a is different from the quantizationmatrix determination unit 304 in that it does not read the conversion skip flag from the decodedinformation storage unit 302 when determining the quantization matrix.

 図16は、本実施形態における逆量子化部303、量子化行列決定部304aの動作を説明するフローチャートである。図16において、図8の各部に対応する部分には同一の符号(Sb1~Sb5、Sb7~Sb15)を付し、説明を省略する。図16のフローチャートは、図8のフローチャートとは、ステップSb6を有せず、ステップSb5において、量子化済みブロックのサイズが4×4であると判定したときに、ステップSb7に進む点のみが異なる。FIG. 16 is a flowchart for explaining the operation of theinverse quantization unit 303 and the quantization matrix determination unit 304a in the present embodiment. In FIG. 16, the same reference numerals (Sb1 to Sb5, Sb7 to Sb15) are assigned to portions corresponding to the respective portions in FIG. 8, and description thereof is omitted. The flowchart of FIG. 16 differs from the flowchart of FIG. 8 only in that it does not have step Sb6 and proceeds to step Sb7 when it is determined in step Sb5 that the size of the quantized block is 4 × 4. .

 このように、本実施形態の画像符号化装置10aにおいて、量子化行列決定部105aは、そのブロックサイズが所定のブロックサイズ(4×4)である全ての量子化ブロックに対する量子化行列を、全ての要素の量子化の粗さが等しいものとする。As described above, in theimage encoding device 10a of the present embodiment, the quantizationmatrix determination unit 105a determines all quantization matrices for all quantization blocks whose block size is a predetermined block size (4 × 4). Assume that the quantization roughness of the elements of is equal.

 これにより、所定のブロックサイズであり、直交変換を行っていないことがある量子化ブロックに対する量子化行列は、全ての要素の量子化の粗さが等しいものとなるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, the quantization matrix for a quantization block that has a predetermined block size and may not have undergone orthogonal transformation has the same quantization roughness for all elements. It is possible to suppress variations between the images and to suppress subjective image quality degradation.

 また、量子化行列決定部105aは、そのブロックサイズが所定のブロックサイズ(4×4)である量子化ブロックに対する量子化行列を、復号側と予め共有しているデフォルト量子化行列とする。また、デフォルト量子化行列のうち、所定のブロックサイズのものは、全ての要素の量子化の粗さが等しい。Also, the quantizationmatrix determination unit 105a sets a quantization matrix for a quantization block whose block size is a predetermined block size (4 × 4) as a default quantization matrix shared in advance with the decoding side. Further, among the default quantization matrices, those having a predetermined block size have the same quantization roughness for all elements.

 これにより、所定のブロックサイズであり、直交変換を行われないことがある量子化ブロックの量子化には、全ての要素の量子化の粗さが等しいデフォルト量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, a quantization block that has a predetermined block size and that may not be subjected to orthogonal transformation uses a default quantization matrix in which the quantization roughness of all elements is equal. It is possible to suppress variation between pixels caused by the above-described problem, and to suppress subjective image quality degradation.

 さらに、量子化行列決定部105aは、量子化行列として、デフォルト量子化行列を用いるか、復号側に伝送する伝送量子化行列を用いるかを、1つまたは複数の量子化ブロックから構成される所定の単位(符号化ブロック)毎に判定する。そして、量子化行列決定部105aは、量子化ブロックが、伝送量子化行列を用いると判定された所定の単位に含まれる量子化ブロックであっても、所定のブロックサイズ(4×4)である量子化ブロックの量子化行列を、デフォルト量子化行列とする。Furthermore, the quantizationmatrix determination unit 105a determines whether to use a default quantization matrix or a transmission quantization matrix to be transmitted to the decoding side as a quantization matrix. For each unit (encoded block). The quantizationmatrix determination unit 105a has a predetermined block size (4 × 4) even if the quantization block is a quantization block included in a predetermined unit determined to use the transmission quantization matrix. The quantization matrix of the quantization block is set as a default quantization matrix.

 これにより、伝送量子化行列を用いると判定された所定の単位(符号化ブロック)に含まれている量子化ブロックであっても、所定のブロックサイズであり、直交変換を行われないことがある量子化ブロックの量子化には、全ての要素の量子化の粗さが等しいデフォルト量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, even a quantization block included in a predetermined unit (encoding block) determined to use a transmission quantization matrix has a predetermined block size and may not be orthogonally transformed. The quantization of the quantization block uses a default quantization matrix in which the quantization coarseness of all elements is equal, so that variation between pixels caused by quantization is suppressed and subjective image quality deterioration is suppressed. Can do.

 このように、本実施形態の画像復号装置30aにおいて、量子化行列決定部304aは、そのブロックサイズが所定のブロックサイズ(4×4)である全ての変換済みブロック各々を生成する際に用いる量子化行列を、全ての要素の量子化の粗さが等しい量子化行列とする。As described above, in theimage decoding device 30a of the present embodiment, the quantization matrix determination unit 304a uses the quantum used to generate each of all the converted blocks whose block size is a predetermined block size (4 × 4). The quantization matrix is a quantization matrix in which the quantization coarseness of all elements is equal.

 これにより、所定のブロックサイズであり、逆量子化後に直交変換を行わないものがある量子化済みブロックに対する量子化行列は、全ての要素の量子化の粗さが等しいものとなるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, the quantization matrix for a quantized block that has a predetermined block size and does not perform orthogonal transformation after inverse quantization has the same quantization roughness for all elements, so quantization It is possible to suppress variation between pixels caused by the above-described problem, and to suppress subjective image quality degradation.

 このように、本実施形態の画像復号装置30aにおいて、量子化行列決定部304aは、所定のブロックサイズ(4×4)の変換済みブロックを生成する際に用いる量子化行列を、符号化側と予め共有しているデフォルト量子化行列とする。Thus, in theimage decoding device 30a of the present embodiment, the quantization matrix determination unit 304a determines the quantization matrix used when generating a transformed block having a predetermined block size (4 × 4) as the encoding side. A default quantization matrix shared in advance is used.

 これにより、所定のブロックサイズであり、逆量子化後に直交変換を行わないものがある量子化済みブロックに対する量子化行列は、全ての要素の量子化の粗さが等しいデフォルト量子化行列となるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, the quantization matrix for a quantized block that has a predetermined block size and does not perform orthogonal transform after inverse quantization is a default quantization matrix in which the quantization coarseness of all elements is equal. In addition, it is possible to suppress variation between pixels caused by quantization and to suppress subjective image quality degradation.

 さらに、量子化行列決定部304aは、量子化行列として、デフォルト量子化行列を用いるか、符号化側から伝送される伝送量子化行列を用いるかを、1つまたは複数の前記量子化済みブロックから構成される所定の単位(符号化ブロック)毎に判定する。量子化行列決定部304aは、伝送量子化行列を用いると判定された所定の単位に含まれ、かつ、所定のブロックサイズ(4×4)の変換済みブロックを生成する際に用いる量子化行列を、デフォルト量子化行列とする。Further, the quantization matrix determination unit 304a determines whether to use a default quantization matrix or a transmission quantization matrix transmitted from the encoding side as a quantization matrix from one or a plurality of the quantized blocks. Determination is made for each predetermined unit (encoded block) to be configured. The quantization matrix determination unit 304a includes a quantization matrix that is included in a predetermined unit determined to use the transmission quantization matrix and is used when generating a converted block having a predetermined block size (4 × 4). And the default quantization matrix.

 これにより、伝送量子化行列を用いると判定された所定の単位(符号化ブロック)に含まれている変換済みブロックであっても、所定のブロックサイズであり、逆量子化後に直交変換を行わないものがある量子化済みブロックに対する量子化行列は、全ての要素の量子化の粗さが等しいデフォルト量子化行列となるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, even a transformed block included in a prescribed unit (encoded block) determined to use a transmission quantization matrix has a prescribed block size and is not subjected to orthogonal transformation after inverse quantization. The quantization matrix for a quantized block with a certain one is the default quantization matrix with the same quantization roughness for all elements, so it suppresses pixel-to-pixel variations caused by quantization and degrades subjective image quality. Can be suppressed.

[第5の実施形態]
 以下、図面を参照して、本発明の第5の実施形態について説明する。第5の実施形態では、伝送量子化行列を用いる符号化ブロックに属する量子化ブロックであり、変換スキップすることができるものについては、平坦な伝送量子化行列を用いる例を説明する。
[Fifth Embodiment]
The fifth embodiment of the present invention will be described below with reference to the drawings. In the fifth embodiment, an example in which a flat transmission quantization matrix is used will be described for quantization blocks belonging to a coding block using a transmission quantization matrix that can be skipped.

 本実施形態における画像符号化装置10aと、画像復号装置30aとは、図13の画像符号化装置10a、図15の画像復号装置30aと同様の構成である。ただし、画像符号化装置10aは、量子化行列決定部105の動作が、画像復号装置30aは、量子化行列決定部304の動作が異なるので、これらの動作について説明する。Theimage encoding device 10a and theimage decoding device 30a in the present embodiment have the same configuration as theimage encoding device 10a in FIG. 13 and theimage decoding device 30a in FIG. However, since the operation of the quantizationmatrix determination unit 105 in theimage encoding device 10a is different from that of theimage decoding device 30a in the operation of the quantizationmatrix determination unit 304, these operations will be described.

 図17は、本実施形態における量子化部104、量子化行列決定部105aの動作を説明するフローチャートである。図17において、図6の各部に対応する部分には同一の符号(Sa1~Sa5、Sa9~Sa17)を付し、説明を省略する。図17のフローチャートは、図6のフローチャートとは、ステップSa3とSa4の間に、ステップSg3、Sg4を有する点と、ステップSa6~Sa8を有せず、ステップSa5に続いてSa9を有する点のみが異なる。FIG. 17 is a flowchart for explaining the operation of thequantization unit 104 and the quantizationmatrix determination unit 105a in the present embodiment. In FIG. 17, the same reference numerals (Sa1 to Sa5, Sa9 to Sa17) are assigned to portions corresponding to the respective portions in FIG. The flowchart of FIG. 17 is different from the flowchart of FIG. 6 only in that it has steps Sg3 and Sg4 between steps Sa3 and Sa4, does not have steps Sa6 to Sa8, and has Sa9 following step Sa5. Different.

 ステップSg3では、量子化行列決定部105aは、当該符号化ブロックに4×4の量子化ブロックがあるか否かを判定する。ないと判定したときは(Sg3-No)、そのままステップSa4に進む。一方、ステップSg3にてあると判定したときは(Sg3-Yes)、量子化行列決定部105aは、4×4の伝送量子化行列を平坦なものにし(Sg4)、ステップSa4に進む。In step Sg3, the quantizationmatrix determination unit 105a determines whether there is a 4 × 4 quantization block in the coding block. If it is determined that there is not (Sg3-No), the process proceeds to step Sa4. On the other hand, when it is determined in step Sg3 (Sg3-Yes), the quantizationmatrix determination unit 105a flattens the 4 × 4 transmission quantization matrix (Sg4), and proceeds to step Sa4.

 図18は、本実施形態における逆量子化部303、量子化行列決定部304aの動作を説明するフローチャートである。図18において、図8の各部に対応する部分には同一の符号(Sb1~Sb4、Sb8~Sb15)を付し、説明を省略する。図18のフローチャートは、図8のフローチャートとは、ステップSb5~Sb7を有せず、ステップSb4に続いてSa8を有する点のみが異なる。FIG. 18 is a flowchart for explaining the operation of theinverse quantization unit 303 and the quantization matrix determination unit 304a in the present embodiment. 18, parts corresponding to those in FIG. 8 are given the same reference numerals (Sb1 to Sb4, Sb8 to Sb15), and description thereof will be omitted. The flowchart of FIG. 18 differs from the flowchart of FIG. 8 only in that it does not have steps Sb5 to Sb7 but has Sa8 following step Sb4.

 このように、量子化行列決定部105aは、量子化行列として、復号側と予め共有しているデフォルト量子化行列を用いるか、復号側に伝送する伝送量子化行列を用いるかを、1つまたは複数の量子化ブロックから構成される所定の単位(符号化ブロック)毎に判定する。量子化行列決定部105aは、伝送量子化行列を用いると判定された所定の単位に含まれ、かつ、所定のブロックサイズ(4×4)の量子化ブロックに対する量子化行列を、全ての要素の量子化の粗さが等しいものとする。As described above, the quantizationmatrix determination unit 105a uses one of the default quantization matrix shared in advance with the decoding side or the transmission quantization matrix transmitted to the decoding side as the quantization matrix, or The determination is made for each predetermined unit (encoded block) composed of a plurality of quantized blocks. The quantizationmatrix determination unit 105a converts a quantization matrix for a quantization block included in a predetermined unit determined to use a transmission quantization matrix and having a predetermined block size (4 × 4) to all the elements. Assume that the quantization roughness is equal.

 これにより、伝送量子化行列を用いると判定された所定の単位(符号化ブロック)に含まれている量子化ブロックであっても、所定のサイズであり、直交変換を行われないことがある量子化ブロックの量子化には、全ての要素の量子化の粗さが等しい伝送量子化行列が用いられるので、量子化によって発生する画素間のばらつきを抑え、主観的な画質の劣化を抑えることができる。As a result, even if the quantization block is included in a predetermined unit (encoding block) determined to use the transmission quantization matrix, the quantization block has a predetermined size and orthogonal transformation may not be performed. Since the quantization quantization of the quantization block uses a transmission quantization matrix in which the quantization coarseness of all elements is equal, it is possible to suppress variations between pixels caused by quantization and to suppress subjective image quality degradation. it can.

 なお、上述の各実施形態では、変換ブロックが変換スキップできるものであるときの例として、当該変換ブロックのサイズが4×4であるときを例に挙げたが、その他のサイズあってもよいし、該当するサイズが複数あってもよい。あるいは、当該変換ブロックに対応する領域の予測画像を生成する方法に、特定の方法が含まれているときなど、変換ブロックのサイズ以外の条件が満たされるときであってもよい。In each of the above-described embodiments, as an example when the conversion block can be converted and skipped, the size of the conversion block is 4 × 4. However, other sizes may be used. There may be a plurality of corresponding sizes. Alternatively, it may be when a condition other than the size of the transform block is satisfied, such as when a specific method is included in the method of generating the predicted image of the region corresponding to the transform block.

 また、上述の各実施形態では、符号化ブロックのサイズは、8×8、16×16、32×32の3種類であり、変換ブロックおよび量子化ブロックのサイズは、4×4、8×8、16×16、32×32の4種類であるとしたが、これに限らない。他のサイズが含まれていてもよいし、いずれかのサイズが含まれていなくてもよいし、種類の数が多くてもよいし、少なくてもよい。In each of the above-described embodiments, there are three types of encoding block sizes: 8 × 8, 16 × 16, and 32 × 32, and the sizes of the transform block and the quantization block are 4 × 4 and 8 × 8. However, the present invention is not limited to this. Other sizes may be included, one of the sizes may not be included, the number of types may be large, or may be small.

 また、上述の各実施形態では、伝送量子化行列は、量子化ブロックのサイズ(SizeId)毎に決定するとしたが、サイズだけでなく、その他のパラメータとの組み合わせ毎に決定してもよい。例えば、その他のパラメータとしては、信号値の種類(輝度値Y、色差Cb、Cr)、量子化ブロックが属する符号化ブロックの予測モード(イントラ予測、インター予測など)などがある。In each of the above-described embodiments, the transmission quantization matrix is determined for each quantization block size (SizeId), but may be determined for each combination with other parameters in addition to the size. For example, other parameters include the type of signal value (luminance value Y, color difference Cb, Cr), the prediction mode (intra prediction, inter prediction, etc.) of the encoded block to which the quantized block belongs.

 また、上述の各実施形態では、伝送量子化行列(スケーリングリスト)のセットは、伝送量子化行列適用フラグと同様に符号化ブロック毎に決定したが、より大きな単位毎に決定してもよい。例えば、フレーム毎であってもよいし、符号化ブロックが複数集まった単位毎であってもよい。In each of the above-described embodiments, the transmission quantization matrix (scaling list) set is determined for each coding block in the same manner as the transmission quantization matrix application flag, but may be determined for each larger unit. For example, it may be every frame or every unit in which a plurality of encoded blocks are collected.

 また、上述の各実施形態における画像符号化装置10、画像復号装置30は、入力動画像を可逆符号化するロスレスモードを有していてもよい。Also, theimage encoding device 10 and theimage decoding device 30 in each of the above-described embodiments may have a lossless mode for lossless encoding of an input moving image.

 また、図1における画像符号化装置10、図7における画像復号装置30、図13における画像符号化装置10a、または、図15における画像復号装置30aの機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより該装置を実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。Also, a computer readable program for realizing the functions of theimage encoding device 10 in FIG. 1, theimage decoding device 30 in FIG. 7, theimage encoding device 10a in FIG. 13, or theimage decoding device 30a in FIG. The apparatus may be realized by recording on a recording medium, reading the program recorded on the recording medium into a computer system, and executing the program. Here, the “computer system” includes an OS and hardware such as peripheral devices.

 また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD-ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含むものとする。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。Further, the “computer-readable recording medium” means a storage device such as a flexible disk, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory in a computer system serving as a server or a client in that case, and a program that holds a program for a certain period of time are also included. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.

 また、上述した図1における画像符号化装置10、図7における画像復号装置30、図13における画像符号化装置10a、または、図15における画像復号装置30aの各機能ブロックは個別にチップ化してもよいし、一部、または全部を集積してチップ化してもよい。また、集積回路化の手法はLSIに限らず、専用回路、または汎用プロセッサで実現しても良い。ハイブリッド、モノリシックのいずれでも良い。一部は、ハードウェアにより、一部はソフトウェアにより機能を実現させても良い。Further, each functional block of the above-describedimage encoding device 10 in FIG. 1, theimage decoding device 30 in FIG. 7, theimage encoding device 10a in FIG. 13, or theimage decoding device 30a in FIG. Alternatively, some or all of them may be integrated into a chip. Further, the method of circuit integration is not limited to LSI, and implementation using a dedicated circuit or a general-purpose processor is also possible. Either hybrid or monolithic may be used. Some of the functions may be realized by hardware and some by software.

 また、半導体技術の進歩により、LSIに代替する集積回路化等の技術が出現した場合、当該技術による集積回路を用いることも可能である。In addition, when a technology such as an integrated circuit that replaces LSI appears due to progress in semiconductor technology, an integrated circuit based on the technology can be used.

 以上、この発明の実施形態を図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計変更等も含まれる。As described above, the embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes design changes and the like without departing from the gist of the present invention.

 なお、日本国特許出願第2013-203529(2013年9月30日)の全内容が、参照により、本願明細書に組み込まれている。Note that the entire contents of Japanese Patent Application No. 2013-203529 (September 30, 2013) are incorporated herein by reference.

 本発明によれば、直交変換を行ったブロックと、直交変換を行わないブロックとが混在していても、量子化によって発生する主観的な画質の劣化を抑えることができる。According to the present invention, even when a block that has undergone orthogonal transform and a block that has not undergone orthogonal transform coexist, subjective image quality degradation caused by quantization can be suppressed.

Claims (12)

Translated fromJapanese
 入力画像と予測画像との差分を表す予測差分信号を分割した変換ブロックに対して直交変換を適用するか又は非適用とする変換スキップを行うかを判定する判定部と、前記判定に基づき選択された処理を行う直交変換部とを備える画像符号化装置であって、
 前記判定に基づき前記変換スキップが選択された場合、前記変換ブロックを復号側と予め共有している全ての要素の量子化の粗さが等しい第1の量子化行列を用いて量子化し、前記判定に基づき変換ブロックに対して直交変換が適用された場合、前記変換ブロックを前記第1の量子化行列又は復号側に伝送する第2の量子化行列を用いて量子化する量子化部を有することを特徴とする画像符号化装置。
A determination unit that determines whether to perform orthogonal transformation or non-application transformation skip on a transform block obtained by dividing a prediction difference signal that represents a difference between an input image and a prediction image, and is selected based on the determination An image encoding device including an orthogonal transform unit that performs the processing described above,
If the transform skip is selected based on the determination, the transform block is quantized using a first quantization matrix having the same quantization roughness for all elements shared in advance with the decoding side, and the determination When orthogonal transform is applied to the transform block based on the above, a quantization unit that quantizes the transform block using the first quantization matrix or the second quantization matrix that is transmitted to the decoding side is included. An image encoding device characterized by the above.
 入力画像と予測画像との差分を表す予測差分信号を分割した変換ブロックに対して直交変換を適用するか又は非適用とする変換スキップを行うかを判定する判定部と、前記判定に基づき選択された処理を行う直交変換部とを備える画像符号化装置であって、
 前記判定に基づき前記変換スキップが選択された場合、前記変換ブロックを復号側と予め共有している全ての要素の量子化の粗さが等しい第1の量子化行列又は復号側に伝送する第2の量子化行列を構成する要素の代表値で、全ての要素の量子化の粗さが表される量子化行列を用いて量子化し、前記判定に基づき変換ブロックに対して前記直交変換が適用された場合、前記第1の量子化行列又は前記第2の量子化行列を用いて量子化する量子化部を有することを特徴とする画像符号化装置。
A determination unit that determines whether to perform orthogonal transformation or non-application transformation skip on a transform block obtained by dividing a prediction difference signal that represents a difference between an input image and a prediction image, and is selected based on the determination An image encoding device including an orthogonal transform unit that performs the processing described above,
When the transform skip is selected based on the determination, the transform block is transmitted to the first quantization matrix having the same quantization roughness of all elements shared in advance with the decoding side or to the decoding side Quantization is performed using a quantization matrix that represents the quantization roughness of all elements, and the orthogonal transform is applied to the transform block based on the determination. An image encoding apparatus comprising: a quantization unit that performs quantization using the first quantization matrix or the second quantization matrix.
 入力画像と予測画像との差分を表す予測差分信号を分割した変換ブロックに対して直交変換を適用するか又は非適用とする変換スキップを行うかを判定する判定部と、前記判定に基づき選択された処理を行う直交変換部とを備える画像符号化装置であって、
 前記判定に基づき前記変換スキップが選択された場合、前記変換ブロックを復号側と予め共有している全ての要素の量子化の粗さが等しい第1の量子化行列又は復号側に伝送する単一の値であって、全ての要素の量子化の粗さが表される量子化行列を用いて量子化し、前記判定に基づき変換ブロックに対して前記直交変換が適用された場合、前記第1の量子化行列又は復号側に伝送する第2の量子化行列を用いて量子化する量子化部を有することを特徴とする画像符号化装置。
A determination unit that determines whether to perform orthogonal transformation or non-application transformation skip on a transform block obtained by dividing a prediction difference signal that represents a difference between an input image and a prediction image, and is selected based on the determination An image encoding device including an orthogonal transform unit that performs the processing described above,
When the transform skip is selected based on the determination, the transform block is transmitted to the first quantization matrix or the decoding side having the same quantization roughness of all elements shared in advance with the decoding side And when the orthogonal transform is applied to the transform block based on the determination, the first transform is performed using the quantization matrix that represents the coarseness of quantization of all elements. An image coding apparatus comprising: a quantization unit that performs quantization using a quantization matrix or a second quantization matrix transmitted to a decoding side.
 前記量子化部は、前記判定に基づき前記変換ブロックに対して直交変換が適用された場合であって、前記第2の量子化行列を伝送するとき該第2の量子化行列を用いて量子化し、前記直交変換が適用された場合であって、前記第2の量子化行列を伝送しないとき前記第1の量子化行列を用いて量子化することを特徴とする請求項1乃至3のいずれか一項に記載の画像符号化装置。The quantization unit is a case where orthogonal transform is applied to the transform block based on the determination, and the second quantization matrix is quantized using the second quantization matrix when transmitting the second quantization matrix. 4. The method according to claim 1, wherein when the orthogonal transform is applied and the second quantization matrix is not transmitted, quantization is performed using the first quantization matrix. 5. The image encoding device according to one item. 前記量子化部は、前記判定に基づき前記変換ブロックに対して前記変換スキップが選択された場合であって、前記第2の量子化行列を伝送するとき、前記第1の量子化行列を用いて量子化することを特徴とする請求項1に記載の画像符号化装置。The quantization unit uses the first quantization matrix when transmitting the second quantization matrix when the conversion skip is selected for the conversion block based on the determination. The image coding apparatus according to claim 1, wherein the image coding apparatus performs quantization. 符号化データに含まれる量子化済みブロックが、直交変換が非適用とされた変換スキップされたブロックである場合、前記量子化済みブロックを符号化側と予め共有している全ての要素の量子化の粗さが等しい第1の量子化行列を用いて逆量子化し、符号化データに含まれる量子化済みブロックが、直交変換が適用されたブロックである場合、前記第1の量子化行列又は符号化側から伝送される第2の量子化行列を用いて逆量子化する逆量子化部を有することを特徴とする画像復号装置。When the quantized block included in the encoded data is a block whose transform is skipped in which orthogonal transform is not applied, the quantization of all the elements that share the quantized block in advance with the encoding side If the quantized block included in the encoded data is a block to which orthogonal transform is applied, using the first quantization matrix having the same roughness, the first quantization matrix or code An image decoding apparatus comprising: an inverse quantization unit that performs inverse quantization using a second quantization matrix transmitted from the quantization side. 符号化データに含まれる量子化済みブロックが、直交変換が非適用とされた変換スキップされたブロックである場合、前記量子化済みブロックを符号化側と予め共有している第1の量子化行列又は符号化側から伝送される第2の量子化行列を構成する要素の代表値で、全ての要素の量子化の粗さが表される量子化行列を用いて逆量子化し、符号化データに含まれる量子化済みブロックが、直交変換が適用されたブロックである場合、前記第1の量子化行列又は前記第2の量子化行列を用いて逆量子化する逆量子化部を有することを特徴とする画像復号装置。In a case where the quantized block included in the encoded data is a block whose transform is skipped in which orthogonal transform is not applied, the first quantization matrix which shares the quantized block with the encoding side in advance Or, it is a representative value of the elements constituting the second quantization matrix transmitted from the encoding side, and inverse quantization is performed using a quantization matrix that represents the roughness of quantization of all elements, and the encoded data is converted into encoded data. When an included quantized block is a block to which orthogonal transform is applied, the block includes an inverse quantization unit that performs inverse quantization using the first quantization matrix or the second quantization matrix. An image decoding apparatus. 符号化データに含まれる量子化済みブロックが、直交変換が非適用とされた変換スキップされたブロックである場合、前記量子化済みブロックを符号化側と予め共有している第1の量子化行列又は符号化側から伝送される単一の値で全ての要素の量子化の粗さが表される量子化行列を用いて逆量子化し、符号化データに含まれる量子化済みブロックが、直交変換が適用されたブロックである場合、前記第1の量子化行列又は符号化側から伝送される第2の量子化行列を用いて逆量子化する逆量子化部を有することを特徴とする画像復号装置。In a case where the quantized block included in the encoded data is a block whose transform is skipped in which orthogonal transform is not applied, the first quantization matrix which shares the quantized block with the encoding side in advance Or, the quantized block included in the encoded data is orthogonally transformed using a quantization matrix that represents the roughness of the quantization of all elements with a single value transmitted from the encoding side. And an inverse quantization unit that performs inverse quantization using the first quantization matrix or the second quantization matrix transmitted from the encoding side. apparatus. 前記逆量子化部は、前記符号化データに含まれる量子化済みブロックが、直交変換が適用されたブロックである場合であって、前記符号化側から前記第2の量子化行列が伝送されているとき、該第2の量子化行列を用いて逆量子化し、前記符号化データに含まれる量子化済みブロックが、直交変換が適用されたブロックである場合であって、前記符号化側から前記第2の量子化行列が伝送されていないとき、前記第1の量子化行列を用いて逆量子化することを特徴とする請求項6乃至8のいずれか一項に記載の画像復号装置。The inverse quantization unit is a case where a quantized block included in the encoded data is a block to which orthogonal transform is applied, and the second quantization matrix is transmitted from the encoding side. And when the quantized block included in the encoded data is a block to which an orthogonal transformation is applied, and is encoded from the encoding side. The image decoding apparatus according to any one of claims 6 to 8, wherein when the second quantization matrix is not transmitted, inverse quantization is performed using the first quantization matrix. 前記逆量子化部は、前記符号化データに含まれる量子化済みブロックが、直交変換が非適用とされた変換スキップされたブロックである場合であって、前記符号化側から前記第2の量子化行列が伝送されているとき、前記第1の量子化行列を用いて逆量子化することを特徴とする請求項6に記載の画像復号装置。The inverse quantization unit is a case where the quantized block included in the encoded data is a block whose transform is skipped in which orthogonal transform is not applied, and the second quantum from the encoding side The image decoding apparatus according to claim 6, wherein when a quantization matrix is transmitted, inverse quantization is performed using the first quantization matrix. コンピュータを、請求項1から請求項5のいずれか一項に記載の画像符号化装置として機能させるためのプログラム。A program for causing a computer to function as the image encoding device according to any one of claims 1 to 5. コンピュータを、請求項6から請求項10のいずれか一項に記載の画像復号装置として機能させるためのプログラム。A program for causing a computer to function as the image decoding device according to any one of claims 6 to 10.
PCT/JP2014/0727912013-09-302014-08-29Image coding device, image decoding device, and programs thereforCeasedWO2015045736A1 (en)

Priority Applications (8)

Application NumberPriority DateFiling DateTitle
JP2015525679AJP6143866B2 (en)2013-09-302014-08-29 Image encoding apparatus, image decoding apparatus, and programs thereof
CN201480053809.9ACN105580368B (en)2013-09-302014-08-29 Image encoding device and method and image decoding device and method
BR112016006686-3ABR112016006686B1 (en)2013-09-302014-08-29 IMAGE CODING DEVICE, IMAGE DECODING DEVICE, PROGRAMS THEREOF
MYPI2016701121AMY183347A (en)2013-09-302014-08-29Image encoding device, image decoding device, and the programs thereof
EP14846805.1AEP3054683A4 (en)2013-09-302014-08-29Image coding device, image decoding device, and programs therefor
US15/084,073US11223827B2 (en)2013-09-302016-03-29Image encoding device, image decoding device, and the programs thereof
US17/646,832US11647195B2 (en)2013-09-302022-01-03Image encoding device, image decoding device, and the programs thereof
US18/193,436US12177440B2 (en)2013-09-302023-03-30Image encoding device, image decoding device, and the programs thereof

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
JP20132035292013-09-30
JP2013-2035292013-09-30

Related Child Applications (1)

Application NumberTitlePriority DateFiling Date
US15/084,073ContinuationUS11223827B2 (en)2013-09-302016-03-29Image encoding device, image decoding device, and the programs thereof

Publications (1)

Publication NumberPublication Date
WO2015045736A1true WO2015045736A1 (en)2015-04-02

Family

ID=52742886

Family Applications (1)

Application NumberTitlePriority DateFiling Date
PCT/JP2014/072791CeasedWO2015045736A1 (en)2013-09-302014-08-29Image coding device, image decoding device, and programs therefor

Country Status (7)

CountryLink
US (3)US11223827B2 (en)
EP (1)EP3054683A4 (en)
JP (1)JP6143866B2 (en)
CN (1)CN105580368B (en)
MY (1)MY183347A (en)
TW (1)TWI633779B (en)
WO (1)WO2015045736A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113596443A (en)*2015-08-202021-11-02日本放送协会Image encoding device

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
TWI627857B (en)*2012-06-292018-06-21Sony Corp Image processing device and method
US11012693B2 (en)*2014-12-262021-05-18Panasonic Intellectual Property Management Co., Ltd.Encoding method, decoding method, encoding apparatus, and decoding apparatus
JPWO2019003676A1 (en)*2017-06-292020-04-30ソニー株式会社 Image processing apparatus, image processing method, and program
EP3484151A1 (en)*2017-11-132019-05-15Thomson LicensingMethod and apparatus for generating quantization matrices in video encoding and decoding
CN111886871B (en)*2018-03-282023-07-04索尼公司 Image processing device and image processing method
CN115022633B (en)*2018-03-292025-09-19日本放送协会Image encoding device, image decoding device, and program product
US12034929B2 (en)2018-12-262024-07-09Electronics And Telecommunications Research InstituteQuantization matrix encoding/decoding method and device, and recording medium in which bitstream is stored
MX2021008449A (en)2019-01-152021-11-03Rosedale Dynamics LlcImage coding method and device using transform skip flag.
JP7522137B2 (en)*2019-06-142024-07-24フラウンホファー ゲセルシャフト ツール フェールデルンク ダー アンゲヴァンテン フォルシュンク エー.ファオ. Encoder, decoder, method, and computer program using improved transform-based scaling
JP7358135B2 (en)*2019-09-172023-10-10キヤノン株式会社 Image encoding device, image encoding method, and program; image decoding device, image decoding method, and program
JP7358136B2 (en)2019-09-172023-10-10キヤノン株式会社 Image encoding device, image encoding method, and program; image decoding device, image decoding method, and program

Family Cites Families (33)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2514114B2 (en)*1991-01-311996-07-10株式会社グラフィックス・コミュニケーション・テクノロジーズ Video coding device
US6658157B1 (en)*1999-06-292003-12-02Sony CorporationMethod and apparatus for converting image information
US6876703B2 (en)*2000-05-112005-04-05Ub Video Inc.Method and apparatus for video coding
KR100341063B1 (en)*2000-06-282002-06-20송문섭Rate control apparatus and method for real-time video communication
JP2005184042A (en)*2003-12-152005-07-07Sony CorpImage decoding apparatus, image decoding method, and image decoding program
CN1910594A (en)*2004-01-202007-02-07松下电器产业株式会社 Image encoding method and device, image decoding method and device, and program thereof
JP4146444B2 (en)*2005-03-162008-09-10株式会社東芝 Video encoding method and apparatus
US7925098B2 (en)*2006-03-022011-04-12Canon Kabushiki KaishaImage encoding apparatus and method with both lossy and lossless means
US20100086028A1 (en)2007-04-162010-04-08Kabushiki Kaisha ToshibaVideo encoding and decoding method and apparatus
US8891619B2 (en)*2008-06-162014-11-18Dolby Laboratories Licensing CorporationRate control model adaptation based on slice dependencies for video coding
JPWO2009157581A1 (en)*2008-06-272011-12-15ソニー株式会社 Image processing apparatus and image processing method
US20100238997A1 (en)*2009-03-172010-09-23Yang En-HuiMethod and system for optimized video coding
MX2014002534A (en)2011-10-172014-04-16Toshiba KkEncoding method and decoding method.
EP3442227B1 (en)*2012-02-292020-04-22LG Electronics Inc.Inter-layer prediction method and apparatus
US9503702B2 (en)*2012-04-132016-11-22Qualcomm IncorporatedView synthesis mode for three-dimensional video coding
CN104335582B (en)*2012-06-122019-03-08太阳专利托管公司 Moving image encoding and decoding method and moving image encoding and decoding device
TWI627857B (en)*2012-06-292018-06-21Sony Corp Image processing device and method
CN115065823A (en)*2012-07-022022-09-16韩国电子通信研究院Video encoding/decoding method and non-transitory computer-readable recording medium
US9716892B2 (en)*2012-07-022017-07-25Qualcomm IncorporatedVideo parameter set including session negotiation information
US9451256B2 (en)*2012-07-202016-09-20Qualcomm IncorporatedReusing parameter sets for video coding
US9380289B2 (en)*2012-07-202016-06-28Qualcomm IncorporatedParameter sets in video coding
CA2877614C (en)*2012-09-062020-05-12Kengo TeradaImage coding method, image decoding method, image coding apparatus, image decoding apparatus, image coding and decoding apparatus
JP6210368B2 (en)*2012-09-182017-10-11サン パテント トラスト Image decoding method and image decoding apparatus
WO2014045506A1 (en)*2012-09-242014-03-27Sharp Kabushiki KaishaVideo compression with color space scalability
US9591329B2 (en)*2012-09-282017-03-07Sony CorporationImage processing device and method for encoding and decoding image
CN104641646A (en)*2012-09-282015-05-20索尼公司Image processing device and method
US20140169452A1 (en)*2012-12-142014-06-19Electronics And Telecommunications Research InstituteVideo encoding method and apparatus using the same
BR112015015122A2 (en)*2012-12-272017-07-11Nec Corp video coding device, video coding method and video coding program
US20140286413A1 (en)*2013-03-252014-09-25Qualcomm IncorporatedDisabling sign data hiding in video coding
US10529013B2 (en)*2013-07-012020-01-07Intuit Inc.Identifying business type using public information
JP6528635B2 (en)*2015-10-052019-06-12富士通株式会社 Moving picture coding apparatus, moving picture coding method, and computer program for moving picture coding
JPWO2018173798A1 (en)*2017-03-232020-01-23ソニー株式会社 Image processing apparatus and method
CN111886871B (en)*2018-03-282023-07-04索尼公司 Image processing device and image processing method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"High-efficiency video coding", RECOMMENDATION ITU-T H.265, April 2013 (2013-04-01)
See also references ofEP3054683A4
YOSHITAKA MORIGAMI ET AL.: "On Transform Skip", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11 10TH MEETING, 11 July 2012 (2012-07-11), STOCKHOLM, SE, XP030112546*

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113596443A (en)*2015-08-202021-11-02日本放送协会Image encoding device

Also Published As

Publication numberPublication date
TW201517596A (en)2015-05-01
US20220132127A1 (en)2022-04-28
JP6143866B2 (en)2017-06-07
US12177440B2 (en)2024-12-24
EP3054683A1 (en)2016-08-10
US11647195B2 (en)2023-05-09
TWI633779B (en)2018-08-21
BR112016006686A2 (en)2017-08-01
JPWO2015045736A1 (en)2017-03-09
US20230239475A1 (en)2023-07-27
EP3054683A4 (en)2017-06-07
CN105580368A (en)2016-05-11
US20160212429A1 (en)2016-07-21
CN105580368B (en)2018-10-19
MY183347A (en)2021-02-18
US11223827B2 (en)2022-01-11

Similar Documents

PublicationPublication DateTitle
JP6143866B2 (en) Image encoding apparatus, image decoding apparatus, and programs thereof
KR101919394B1 (en)Parameter determination for exp-golomb residuals binarization for lossless intra hevc coding
JP5215951B2 (en) Encoding apparatus, control method therefor, and computer program
KR101493194B1 (en)Flexible band offset mode in sample adaptive offset in hevc
KR101684038B1 (en)Video decoder, video encoder, video decoding method, and video encoding method
US9826241B2 (en)Image coding apparatus, image coding method, image decoding apparatus, image decoding method, and storage medium
EP3080988B1 (en)Parameter derivation for entropy coding of a syntax element
US8903184B2 (en)Image-encoding method, image-encoding device, and computer-readable recording medium storing image-encoding program
US12034927B2 (en)Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, and non-transitory computer-readable storage medium
JP7142180B2 (en) Encoding device, decoding device, and program
JP2008271371A (en) Moving picture encoding apparatus, moving picture decoding apparatus, moving picture encoding method, moving picture decoding method, and program
JP7343817B2 (en) Encoding device, encoding method, and encoding program
US20130083858A1 (en)Video image delivery system, video image transmission device, video image delivery method, and video image delivery program
JP7696048B2 (en) Decoding device, program, and decoding method
JP6481457B2 (en) Moving picture coding apparatus, moving picture coding method, moving picture decoding apparatus, and moving picture decoding method
JP2017183910A (en) Image coding apparatus and image coding method
US10448035B2 (en)Information compression device, information compression method, non-volatile recording medium, and video coding device
JP6769302B2 (en) Moving image coding device, moving image coding method, moving image coding computer program, moving image decoding device and moving image decoding method, and moving image decoding computer program
KR102741218B1 (en)Deblocking filter control device and program
US20220116640A1 (en)Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, and non-transitory computer-readable storage medium
KR20170058870A (en)Method and apparatus for encoding/dicoding a video with non linear mapping
JP2008289105A (en)Image processing device and imaging apparatus equipped therewith
JP2019075678A (en)Image encoder, image decoder, image coding program, and image decoding program
JP2012209873A (en)Moving image encoder and moving image encoding method

Legal Events

DateCodeTitleDescription
WWEWipo information: entry into national phase

Ref document number:201480053809.9

Country of ref document:CN

ENPEntry into the national phase

Ref document number:2015525679

Country of ref document:JP

Kind code of ref document:A

121Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number:14846805

Country of ref document:EP

Kind code of ref document:A1

NENPNon-entry into the national phase

Ref country code:DE

REGReference to national code

Ref country code:BR

Ref legal event code:B01A

Ref document number:112016006686

Country of ref document:BR

REEPRequest for entry into the european phase

Ref document number:2014846805

Country of ref document:EP

WWEWipo information: entry into national phase

Ref document number:2014846805

Country of ref document:EP

ENPEntry into the national phase

Ref document number:112016006686

Country of ref document:BR

Kind code of ref document:A2

Effective date:20160324


[8]ページ先頭

©2009-2025 Movatter.jp