JP2020025150A - Image filter device - Google Patents

Image filter device Download PDF

Info

Publication number
JP2020025150A
JP2020025150A JP2016234014A JP2016234014A JP2020025150A JP 2020025150 A JP2020025150 A JP 2020025150A JP 2016234014 A JP2016234014 A JP 2016234014A JP 2016234014 A JP2016234014 A JP 2016234014A JP 2020025150 A JP2020025150 A JP 2020025150A
Authority
JP
Japan
Prior art keywords
offset
pixel
unit
image
pixel value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016234014A
Other languages
Japanese (ja)
Inventor
友子 青野
Tomoko Aono
友子 青野
知宏 猪飼
Tomohiro Igai
知宏 猪飼
貴也 山本
Takaya Yamamoto
貴也 山本
知典 橋本
Tomonori Hashimoto
知典 橋本
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2016234014A priority Critical patent/JP2020025150A/en
Priority to PCT/JP2017/041624 priority patent/WO2018101100A1/en
Publication of JP2020025150A publication Critical patent/JP2020025150A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/117Filters, e.g. for pre-processing or post-processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • H04N19/82Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/86Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving reduction of coding artifacts, e.g. of blockiness

Landscapes

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

Abstract

To achieve processing that makes use of both characteristics by removing redundant parts or sharing some information in a combination of PO and SAO to improve encoding efficiency more than before while suppressing an increase in a processing amount.SOLUTION: The image filter device for adding a first offset to each pixel value of a coding unit, is configured to: set a category indicating a change pattern of a pixel value in a two-dimensional direction with respect to a target pixel and a class indicating an amount of change in the pixel value in the two-dimensional direction; use a pixel adjacent to the target pixel as a reference pixel when adding an offset obtained by referring to the category and the class to the target pixel value from offsets decoded from encoded data to set categories and classes; and switch four pixels adjacent to the target pixel in the horizontal and vertical directions and four pixels adjacent to the target pixel in the upper left and lower right and lower left and upper right directions for the reference pixel.SELECTED DRAWING: Figure 25

Description

本発明の実施形態は、画像フィルタ装置に関する。   Embodiments of the present invention relate to an image filter device.

動画像を効率的に伝送または記録するために、動画像を符号化することによって符号化データを生成する画像符号化装置、および、当該符号化データを復号することによって復号画像を生成する画像復号装置が用いられている。   In order to efficiently transmit or record a moving image, an image encoding device that generates encoded data by encoding a moving image, and an image decoding that generates a decoded image by decoding the encoded data The device is used.

具体的な動画像符号化方式としては、例えば、H.264/AVCやHEVC(High-Efficiency Video Coding)にて提案されている方式などが挙げられる。   Specific examples of the moving image coding method include, for example, methods proposed in H.264 / AVC and HEVC (High-Efficiency Video Coding).

このような動画像符号化方式においては、動画像を構成する画像(ピクチャ)は、画像を分割することにより得られるスライス、スライスを分割することにより得られる符号化単位(符号化ユニット(Coding Unit:CU)と呼ばれることもある)、および、符号化単
位を分割することより得られるブロックである予測ユニット(PU)、変換ユニット(TU)からなる階層構造により管理され、CUごとに符号化/復号される。
In such a moving image coding method, an image (picture) constituting a moving image includes a slice obtained by dividing the image, and a coding unit (coding unit (Coding Unit) obtained by dividing the slice. : CU)), and is managed by a hierarchical structure including a prediction unit (PU) and a transform unit (TU), which are blocks obtained by dividing the coding unit. Decrypted.

また、このような動画像符号化方式においては、通常、入力画像を符号化/復号することによって得られる局所復号画像に基づいて予測画像が生成され、当該予測画像を入力画像(原画像)から減算して得られる予測残差(「差分画像」または「残差画像」と呼ぶこともある)が符号化される。予測画像の生成方法としては、画面間予測(インター予測)、および、画面内予測(イントラ予測)が挙げられる。さらに、復号画像に対し、視覚的な歪除去を目的としたループフィルタの適用が一般的になっている。   In such a moving picture coding method, a predicted image is usually generated based on a locally decoded image obtained by encoding / decoding an input image, and the predicted image is converted from the input image (original image). A prediction residual obtained by subtraction (sometimes called a “difference image” or a “residual image”) is encoded. As a method for generating a predicted image, there are an inter-screen prediction (inter prediction) and an intra-screen prediction (intra prediction). Furthermore, it has become common to apply a loop filter to a decoded image for the purpose of removing visual distortion.

また、近年の動画像符号化および復号の技術として非特許文献1が挙げられる。   Also, Non-Patent Document 1 is a recent moving image encoding and decoding technique.

さらに、近年では、ループフィルタとしてデブロッキングフィルタ、サンプル適応オフセット(SAO)、適応ループフィルタ(ALF)に加え、非特許文献2のピークSAOも提案さ
れている。
Further, in recent years, a peak SAO of Non-Patent Document 2 has been proposed as a loop filter in addition to a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF).

以上のとおり、複数のループフィルタが存在し、各々異なる効果を持っているものの、中には重複する効果もあり、ループフィルタの組み合わせ方にも工夫が必要になってきている。   As described above, although there are a plurality of loop filters, each having different effects, some of them have overlapping effects, and thus a method of combining loop filters needs to be devised.

"Algorithm Description of Joint Exploration Test Model 4", JVET-D1001, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 15-21 October 2016"Algorithm Description of Joint Exploration Test Model 4", JVET-D1001, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 15-21 October 2016 "Peak Sample Adaptive Offset", JVET-D0133, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 15-21 October 2016"Peak Sample Adaptive Offset", JVET-D0133, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 15-21 October 2016

復号画像に適用するループフィルタの種類は、デブロッキングフィルタ、SAO、ALF、ピークSAO(PO)と増えており、特に、SAOのオフセットタイプEOは1次元方向の画素値の変
化を用い、POは画像の2次元方向の画素値の変化を用いる違いはあるが、双方とも対象画素と参照画素との画素値の変化を用いる点で類似している。そのため、冗長な部分が存在し、あるいは導出する情報を共有することでSAOとPOを合わせた符号化効率を向上させる
ことができるが、これらの点はまだ十分に考慮されていない。
The types of loop filters applied to the decoded image are increasing, such as deblocking filter, SAO, ALF, and peak SAO (PO). In particular, the offset type EO of SAO uses the change of the pixel value in the one-dimensional direction. Although there is a difference in using a change in the pixel value in the two-dimensional direction of the image, both are similar in that a change in the pixel value between the target pixel and the reference pixel is used. Therefore, although there is a redundant portion or sharing of derived information can improve the coding efficiency of the SAO and the PO together, these points have not been sufficiently considered.

そこで、本発明はPOとSAOの組み合わせにおいて冗長な部分を削除し、あるいはいくつ
かの情報を共有することで、さらに双方の特性を活かした処理を実現し、処理量の増加を抑えつつ符号化効率を従来よりも向上させることを目的とする。
Therefore, the present invention realizes processing utilizing both characteristics by removing redundant parts in the combination of PO and SAO, or sharing some information, and performs encoding while suppressing an increase in processing amount. The purpose is to improve efficiency more than before.

本願の実施形態は、残差画像と予測画像とを加算して生成された、復号画像を構成する複数の符号化単位の各画素値に第1のオフセットを加算する第1の画像フィルタ装置であって、対象画素に対し2次元方向の画素値の変化パターンを示す第1のカテゴリ、および2次元方向の画素値の変化量を示す第1のクラスを設定する第1の設定部と、符号化データから復号された第1のオフセットの中から、前記第1のカテゴリと第1のクラスを参照して求めた第1のオフセットを前記対象画素値に加算する第1の加算部とを備え、前記設定部は、第1のカテゴリおよび第1のクラスを設定するために、対象画素の隣接画素を参照画素として利用し、前記参照画素は対象画素に対し水平・垂直方向の隣接4画素と、対象画素に対し左上右下・左下右上方向の隣接4画素を切り替える。これにより、参照画素を水平・垂直あるいは斜め方向に切り替えるため、最適な参照方向を選択し、オフセット加算により画素値を補正することができる。   An embodiment of the present application is a first image filter device that adds a first offset to each pixel value of a plurality of coding units that form a decoded image and is generated by adding a residual image and a predicted image. A first setting unit that sets a first category indicating a two-dimensional direction pixel value change pattern and a first class indicating a two-dimensional direction pixel value change amount for the target pixel; And a first adder that adds a first offset obtained by referring to the first category and the first class to the target pixel value from among the first offsets decoded from the encoded data. The setting unit uses a pixel adjacent to the target pixel as a reference pixel in order to set a first category and a first class, and the reference pixel includes four pixels adjacent to the target pixel in the horizontal and vertical directions. , Upper left lower right, lower left right Switching the direction of the adjacent four pixels. Accordingly, since the reference pixel is switched in the horizontal, vertical, or oblique direction, the optimal reference direction can be selected, and the pixel value can be corrected by offset addition.

本願の実施形態は、前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、符号化データから復号された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のオフセットの加算を行わず、第1の加算部で第1のオフセットを加算しなかった画素に対して第2のオフセットを加算する。これにより、2次元方向の画素値の変化からはオフセットの加算が不要でも、1次元方向の画素値の変化からはオフセットの加算が必要な場合にも、適切にオフセットを加算することができ、かつ、オフセット加算処理を二重に実施することを回避することができる。   An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an output image of the first filter device. A second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of a pixel value in the one-dimensional direction, and a range of the target pixel value. And a second setting unit that sets a band position indicating the second offset, obtained from the second offset decoded from the encoded data, by referring to the second category, as the target pixel value. A second adding unit for adding the first offset without adding the second offset to the pixel to which the first offset has been added by the first adding unit. Part did not add the first offset Adding the second offset with respect to iodine. Thereby, even when the addition of the offset is unnecessary from the change in the pixel value in the two-dimensional direction, the offset can be appropriately added even when the addition of the offset is necessary from the change in the pixel value in the one-dimensional direction, Further, it is possible to avoid performing the offset addition processing twice.

本願の実施形態は、前記第1のフィルタ装置の入力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、符号化データから復号された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第1のフィルタ装置の第1の加算部は第2の加算部で第2のオフセットを加算した画素に対しては、第1のオフセットを加算し、第2の加算部で第2のオフセットを加算しなかった画素に対しては第1のオフセットを加算しない。これにより、1次元方向の画素値の変化からはオフセットの加算が必要な画素に対し、さらに2次元方向の画素値の変化を考慮したオフセットを加算することができる。   An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in pixel value in a one-dimensional direction with respect to an input image of the first filter device. A second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of a pixel value in the one-dimensional direction, and a range of the target pixel value. And a second setting unit that sets a band position indicating the second offset, obtained from the second offset decoded from the encoded data, by referring to the second category, as the target pixel value. A second adder for adding, wherein the first adder of the first filter device adds the first offset to the pixel added with the second offset by the second adder, In the second adder, the second offset Not adding the first offset for pixels not calculated. This makes it possible to add an offset in consideration of a change in the pixel value in the two-dimensional direction to a pixel that needs to be added with an offset from a change in the pixel value in the one-dimensional direction.

本願の実施形態は、前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第
2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリを用いる第1のタイプと、対象画素値の範囲を示すバンド位置を用いる第2のタイプを設定する第2の設定部と、符号化データから復号された第2のオフセットの中から、前記第2のカテゴリあるいはバンド位置を参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のタイプを用いるオフセットの加算を行い、第1の加算部で第1のオフセットを加算しなかった画素に対しては第1のタイプを用いるオフセットの加算を行うことを特徴とする画像フィルタ装置。これにより、異なる画質改善効果をもつフィルタ処理を組み合わせることで、冗長な処理を回避することができる。
An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an output image of the first filter device. A first type using a second class indicating a direction to refer to the target pixel in a one-dimensional direction, and a second type using a second category indicating a change pattern of a pixel value in the one-dimensional direction. A second setting unit for setting a second type using a band position indicating a range of the target pixel value, and a second category or band position from a second offset decoded from encoded data. A second adding unit that adds the second offset obtained by reference to the target pixel value, wherein the second adding unit is configured to add the first offset to the pixel added by the first adding unit. Off, using the second type Performs addition of Tsu bets, for pixels that have not adding the first offset in the first addition unit image filter device which is characterized in that the addition of the offset using the first type. This makes it possible to avoid redundant processing by combining filter processes having different image quality improvement effects.

本願の実施形態は、残差画像と予測画像とを加算して生成された、局所復号画像を構成する複数の符号化単位の各画素値に第1のオフセットを加算する第1の画像フィルタ装置であって、対象画素に対し2次元方向の画素値の変化パターンを示す第1のカテゴリ、および2次元方向の画素値の変化量を示す第1のクラスを設定する第1の設定部と、第1のオフセット算出部された第1のオフセットの中から、前記第1のカテゴリと第1のクラスを参照して求めた第1のオフセットを前記対象画素値に加算する第1の加算部とを備え、前記設定部は、第1のカテゴリおよび第1のクラスを設定するために、対象画素の隣接画素を参照画素として利用し、前記参照画素は対象画素に対し水平・垂直方向の隣接4画素と、対象画素に対し左上右下・左下右上方向の隣接4画素を切り替えることを特徴とする第1の画像フィルタ装置を備える画像フィルタ装置。これにより、参照画素を水平・垂直あるいは斜め方向に切り替えるため、最適な参照方向を選択し、オフセット加算により画素値を補正することができる。   An embodiment of the present application provides a first image filter device that adds a first offset to each pixel value of a plurality of coding units that constitute a locally decoded image and is generated by adding a residual image and a prediction image. A first setting unit that sets a first category indicating a two-dimensional pixel value change pattern for the target pixel, and a first class indicating a two-dimensional direction pixel value change amount, A first adder for adding a first offset obtained by referring to the first category and the first class to the target pixel value from among the first offsets calculated by the first offset calculator; The setting unit uses a pixel adjacent to the target pixel as a reference pixel to set a first category and a first class, and the reference pixel is adjacent to the target pixel in the horizontal and vertical directions. Pixel and target pixel Image filter apparatus comprising a first image filter device characterized by switching the four adjacent pixels in the lower right upper direction. Accordingly, since the reference pixel is switched in the horizontal, vertical, or oblique direction, the optimal reference direction can be selected, and the pixel value can be corrected by offset addition.

本願の実施形態は、前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、第2のオフセット算出部された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のオフセットの加算を行わず、第1の加算部で第1のオフセットを加算しなかった画素に対して第2のオフセットを加算する。これにより、2次元方向の画素値の変化からはオフセットの加算が不要でも、1次元方向の画素値の変化からはオフセットの加算が必要な場合にも、適切にオフセットを加算することができ、かつ、オフセット加算処理を二重に実施することを回避することができる。   An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an output image of the first filter device. A second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of a pixel value in the one-dimensional direction, and a range of the target pixel value. A second setting unit that sets a band position indicating a second offset, and a second offset obtained by referring to the second category from among the second offsets calculated by the second offset calculating unit. And a second adding unit that adds the first offset to the pixel to which the first offset has been added by the first adding unit. Addition unit does not add the first offset Adding the second offset to the pixel. Thereby, even when the addition of the offset is unnecessary from the change in the pixel value in the two-dimensional direction, the offset can be appropriately added even when the addition of the offset is necessary from the change in the pixel value in the one-dimensional direction, Further, it is possible to avoid performing the offset addition processing twice.

本願の実施形態は、前記第1のフィルタ装置の入力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、第2のオフセット算出部された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第1のフィルタ装置の第1の加算部は第2の加算部で第2のオフセットを加算した画素に対しては、第1のオフセットを加算し、第2の加算部で第2のオフセットを加算しなかった画素に対しては第1のオフセットを加算しないことを特徴とする画像フィルタ装置。これにより、1次元方向の画素値の変化からはオフセットの加算が必要な画素に対し、さらに2次元方向の画素値の変化を考慮したオフセットを加算することができる。   An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in pixel value in a one-dimensional direction with respect to an input image of the first filter device. A second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of a pixel value in the one-dimensional direction, and a range of the target pixel value. A second setting unit that sets a band position indicating a second offset, and a second offset obtained by referring to the second category from among the second offsets calculated by the second offset calculating unit. And a second adder for adding the first offset to the pixel to which the second offset has been added by the second adder. , The second offset in the second adder Image filter apparatus characterized by not adding the first offset for pixels which are not added. This makes it possible to add an offset in consideration of a change in the pixel value in the two-dimensional direction to a pixel that needs to be added with an offset from a change in the pixel value in the one-dimensional direction.

本願の実施形態は、前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の
変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリを用いる第1のタイプと、対象画素値の範囲を示すバンド位置を用いる第2のタイプを設定する第2の設定部と、第2のオフセット算出部された第2のオフセットの中から、前記第2のカテゴリあるいはバンド位置を参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のタイプを用いるオフセットの加算を行い、第1の加算部で第1のオフセットを加算しなかった画素に対しては第1のタイプを用いるオフセットの加算を行う。これにより、異なる画質改善効果をもつフィルタ処理を組み合わせることで、冗長な処理を回避することができる。
An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an output image of the first filter device. A first type using a second class indicating a direction to refer to the target pixel in a one-dimensional direction, and a second type using a second category indicating a change pattern of a pixel value in the one-dimensional direction. A second setting unit that sets a second type using a band position indicating a range of a target pixel value, and a second category or a band position from the second offset calculated by the second offset calculating unit. And a second adder that adds a second offset obtained by referring to the above to the target pixel value, wherein the second adder is configured to add a first offset to the pixel added by the first adder. Uses the second type Performs addition of the set, for pixels that have not adding the first offset in a first adding unit for adding an offset using the first type. This makes it possible to avoid redundant processing by combining filter processes having different image quality improvement effects.

本願の実施形態は、2次元方向の画素値の変化を用いて算出したオフセットの加算によるフィルタ処理を、2つの1次元方向の画素値の変化を用いて算出したオフセットの加算によるフィルタ処理の組み合わせで表現する。2つの1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する画像フィルタは、対象画素に対し、異なる1次元方向を示す2つのクラス、クラスの示す方向の画素値の変化パターンを示す2つのカテゴリ、および対象画素値の範囲を示すバンド位置を設定する設定部と、符号化データから復号されたオフセットの中から、前記カテゴリを参照して求めた2つのオフセットを前記対象画素値に加算する加算部とを備え、加算部は前記2つのオフセットの平均を対象画素に加算する。これにより、2つの1次元方向フィルタの組み合わせで表現することで、冗長な処理を削除し、かつ、1次元方向の画素値の変化だけでは表現できなかった画素値の変化のパターンに対応することができ、より効率的なフィルタ処理を実現できる。   The embodiment of the present application is a combination of a filtering process by adding an offset calculated using a change in a two-dimensional pixel value and a filtering process by adding an offset calculated using two changes in a one-dimensional pixel value. Expressed by An image filter that adds an offset to each pixel value of a coding unit by using a change in pixel values in two one-dimensional directions provides two classes indicating different one-dimensional directions for a target pixel, and directions indicated by the classes. And a setting unit for setting a band position indicating a range of a target pixel value, and a setting unit for setting a band position indicating a range of the target pixel value, and a category obtained by referring to the category from among the offsets decoded from the encoded data. An adding unit that adds two offsets to the target pixel value, and the adding unit adds an average of the two offsets to the target pixel. Accordingly, by expressing by a combination of two one-dimensional direction filters, redundant processing is eliminated, and a pattern of change in pixel value that cannot be expressed by only a change in pixel value in one-dimensional direction is supported. And more efficient filtering can be realized.

本願の実施形態は、1次元方向の画素値の変化を利用するフィルタ(第2のフィルタ)、および2次元方向の画素値の変化を利用するフィルタ(第1のフィルタ)の参照画素位置の情報を共有する。第1のフィルタの後で第2のフィルタを適用する場合、第1のフィルタで使用した参照画素位置を参照して第2のフィルタの参照画素位置を決定する。第2のフィルタの後で第1のフィルタを適用する場合、第2のフィルタで使用した参照画素位置を参照して第1のフィルタの参照画素位置を決定する。これにより、参照画素位置の導出処理を共通化できるため、冗長な処理を削減することができる。   According to the embodiment of the present application, information on a reference pixel position of a filter (second filter) using a change in pixel value in a one-dimensional direction and a filter (first filter) using a change in pixel value in a two-dimensional direction To share. When applying the second filter after the first filter, the reference pixel position of the second filter is determined with reference to the reference pixel position used in the first filter. When applying the first filter after the second filter, the reference pixel position of the first filter is determined with reference to the reference pixel position used in the second filter. Thereby, the derivation processing of the reference pixel position can be shared, and redundant processing can be reduced.

本願の実施形態は、ピクチャパラメータセット、またはスライスヘッダにおいて、第1のフィルタのクラスの最大数と、正規化係数を符号化し、CTUレベルでは画素値の変化量
に関係の深いパラメータを用いてPOクラスの最大数と、正規化係数を推定する。画素値の変化量に関係の深いパラメータとして量子化幅QPやCUサイズを使用する。これにより、CTU毎に第1のフィルタのクラスの最大数と、正規化係数を符号化しなくてよいので、符号
量を削減しつつ、細かいオフセットの調整ができる。
The embodiment of the present application encodes the maximum number of the first filter class and the normalization coefficient in a picture parameter set or a slice header, and uses a parameter closely related to a change amount of a pixel value at a CTU level. Estimate the maximum number of classes and the normalization factor. The quantization width QP and the CU size are used as parameters closely related to the amount of change in the pixel value. This eliminates the need to encode the maximum number of classes of the first filter and the normalization coefficient for each CTU, so that fine offset adjustment can be performed while reducing the code amount.

本願の実施形態は、値が小さい2回目のフィルタ処理のオフセットを1回目のフィルタ処理のオフセットの最大値以下とする。また、1回目の処理のオフセットのバイナリゼーションは大きな入力値で符号量が大きくなりにくい符号化方法を選択し、2回目の処理のオフセットのバイナリゼーションは小さな入力値で符号量が小さくなりやすい符号化方法を選択する。これにより、2回目の処理で使用するオフセットの符号量を、1回目の処理で使用する符号量よりも削減することができる。   In the embodiment of the present application, the offset of the second filtering process having a small value is set to be equal to or less than the maximum value of the offset of the first filtering process. In addition, for the binary processing of the offset in the first processing, a coding method in which the code amount is difficult to increase with a large input value is selected. Select a conversion method. Thereby, the code amount of the offset used in the second processing can be reduced more than the code amount used in the first processing.

本発明に係る形態によれば、POとSAOの組み合わせにおいて冗長な部分を削除し、ある
いはいくつかの情報を共有することで、さらに双方の特性を活かした処理を実現し、処理
量の増加を抑えつつ符号化効率を従来よりも向上させることができる。
According to the embodiment of the present invention, by removing redundant portions in the combination of PO and SAO, or by sharing some information, a process that further utilizes both characteristics is realized, thereby increasing the amount of processing. It is possible to improve the coding efficiency as compared with the related art while suppressing the noise.

実施形態1に係る画像伝送システムの構成を示す概略図である。1 is a schematic diagram illustrating a configuration of an image transmission system according to a first embodiment. 実施形態1に係る符号化ストリームのデータの階層構造を示す図である。FIG. 3 is a diagram illustrating a hierarchical structure of data of an encoded stream according to the first embodiment. PU分割モードのパターンを示す図である。(a)〜(h)は、それぞれ、PU分割モードが、2Nx2N、2NxN、2NxnU、2NxnD、Nx2N、nLx2N、nRx2N、および、NxNの場合のパーティション形状について示している。It is a figure showing a pattern of PU division mode. (A) to (h) show the partition shapes when the PU division mode is 2Nx2N, 2NxN, 2NxnU, 2NxnD, Nx2N, nLx2N, nRx2N, and NxN, respectively. 参照ピクチャおよび参照ピクチャリストの一例を示す概念図である。FIG. 3 is a conceptual diagram illustrating an example of a reference picture and a reference picture list. 実施形態1に係る画像復号装置の構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of an image decoding device according to Embodiment 1. 実施形態1に係る画像符号化装置の構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of an image encoding device according to Embodiment 1. SAOのEOのクラス毎の対象画素と参照画素の関係を示す図である。FIG. 7 is a diagram illustrating a relationship between a target pixel and a reference pixel for each EO class of SAO. 実施形態1に係る画像符号化装置を搭載した送信装置、および、画像復号装置を搭載した受信装置の構成について示した図である。(a)は、画像符号化装置を搭載した送信装置を示しており、(b)は、画像復号装置を搭載した受信装置を示している。FIG. 1 is a diagram illustrating a configuration of a transmission device including an image encoding device according to a first embodiment and a configuration of a reception device including an image decoding device. (A) shows a transmitting device equipped with an image encoding device, and (b) shows a receiving device equipped with an image decoding device. 実施形態1に係る画像符号化装置を搭載した記録装置、および、画像復号装置を搭載した再生装置の構成について示した図である。(a)は、画像符号化装置を搭載した記録装置を示しており、(b)は、画像復号装置を搭載した再生装置を示している。FIG. 2 is a diagram illustrating a configuration of a recording device including the image encoding device according to the first embodiment and a playback device including the image decoding device. (A) shows a recording device equipped with an image encoding device, and (b) shows a reproducing device equipped with an image decoding device. 図5に示すSAO部314のブロック図である。FIG. 6 is a block diagram of the SAO unit 314 shown in FIG. 図10に示すカテゴリ設定部の動作を示すフローチャートである。11 is a flowchart showing the operation of the category setting unit shown in FIG. SAOのカテゴリ毎の対象画素と参照画素の画素値の大小関係を示す図である。FIG. 7 is a diagram illustrating a magnitude relationship between pixel values of a target pixel and a reference pixel for each SAO category. 実施形態1に係るPOの対象画素と参照画素の関係を示す図である。FIG. 4 is a diagram illustrating a relationship between a target pixel and a reference pixel of the PO according to the first embodiment. 実施形態1に係るPOの対象画素と参照画素の関係を示す図である。FIG. 4 is a diagram illustrating a relationship between a target pixel and a reference pixel of the PO according to the first embodiment. 実施形態5に係るSAOのEOとPOにおける対象画素と参照画素の関係を示す図である。FIG. 18 is a diagram illustrating a relationship between a target pixel and a reference pixel in EO and PO of SAO according to the fifth embodiment. SAOのBOのバンドを説明する図である。It is a figure explaining the band of BO of SAO. 図6に示すSAO_E部115のブロック図である。FIG. 7 is a block diagram of a SAO_E unit 115 shown in FIG. 図17のオフセット算出部の動作を示すフローチャートである。18 is a flowchart illustrating the operation of the offset calculation unit in FIG. 図17のオフセット情報選択部の動作を示すフローチャートである。18 is a flowchart showing the operation of the offset information selection unit in FIG. PO部のブロック図である。It is a block diagram of a PO part. 図20のPOカテゴリ/POクラス設定部の動作を示すフローチャートである。21 is a flowchart showing the operation of the PO category / PO class setting unit in FIG. 20. PO_E部のブロック図である。It is a block diagram of a PO_E part. 図22のPOオフセット算出部の動作を示すフローチャートである。23 is a flowchart showing the operation of the PO offset calculator of FIG. 実施形態2の1次元EOの組み合わせ表である。10 is a one-dimensional EO combination table according to the second embodiment. 図20のPOカテゴリ/POクラス設定部の動作を示すフローチャートの別の一例である。21 is another example of a flowchart showing the operation of the PO category / PO class setting unit in FIG. 20. 図20のPOカテゴリ/POクラス設定部の変形例1における動作を示すフローチャートである。21 is a flowchart illustrating an operation of a PO category / PO class setting unit in Modification Example 1 of FIG. 20. 変形例1におけるSAO部の動作を示すフローチャートである。13 is a flowchart illustrating the operation of the SAO unit in Modification 1. 変形例2における復号装置側のSAO部とPO部のブロック図である。FIG. 21 is a block diagram of a SAO unit and a PO unit on the decoding device side in Modification 2. 変形例2における符号化装置側のSAO_E部とPO_E部のブロック図である。FIG. 18 is a block diagram of an SAO_E unit and a PO_E unit on the encoding device side in Modification 2. 変形例2のカテゴリ設定部の動作を示すフローチャートである。13 is a flowchart illustrating an operation of a category setting unit according to a second modification. 変形例2のPOカテゴリ/POクラス設定部の動作を示すフローチャートである。15 is a flowchart illustrating the operation of a PO category / PO class setting unit according to a second modification. 実施形態3の1次元EOの組み合わせとpcatの関係を示す表である。14 is a table showing a relationship between a combination of one-dimensional EO and pcat according to the third embodiment. 実施形態6のCmaxの算出に使用する(α、β)を示す表である。15 is a table showing (α, β) used for calculating Cmax in the sixth embodiment. 実施形態2のカテゴリ設定部の動作を示すフローチャートである。9 is a flowchart illustrating an operation of a category setting unit according to the second embodiment. 実施形態2のオフセット情報選択部の動作を示すフローチャートである。9 is a flowchart illustrating an operation of an offset information selection unit according to the second embodiment. 実施形態7でオフセットのバイナリゼーションに用いる可変長符号表の一例である。21 is an example of a variable-length code table used for offset binaryization in a seventh embodiment. 実施形態3のPO部およびSAO部の動作を示すフローチャートである。13 is a flowchart illustrating operations of a PO unit and a SAO unit according to the third embodiment. 実施形態4のPO部およびSAO部の動作を示すフローチャートである。15 is a flowchart illustrating operations of a PO unit and a SAO unit according to the fourth embodiment. 実施形態6のPOカテゴリ/POクラス設定部の動作を示すフローチャートである。15 is a flowchart illustrating an operation of a PO category / PO class setting unit according to the sixth embodiment.

〔実施形態1〕
以下、図面を参照しながら本発明の実施形態について説明する。
図1は、本実施形態に係る画像伝送システム1の構成を示す概略図である。
[Embodiment 1]
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a schematic diagram illustrating a configuration of an image transmission system 1 according to the present embodiment.

画像伝送システム1は、符号化対象画像を符号化した符号を伝送し、伝送された符号を復号し画像を表示するシステムである。画像伝送システム1は、画像符号化装置11、ネットワーク21、画像復号装置31および画像表示装置41を含んで構成される。   The image transmission system 1 is a system that transmits a code obtained by encoding an encoding target image, decodes the transmitted code, and displays the image. The image transmission system 1 includes an image encoding device 11, a network 21, an image decoding device 31, and an image display device 41.

画像符号化装置11には、単一レイヤもしくは複数レイヤの画像を示す画像Tが入力される。レイヤとは、ある時間を構成するピクチャが1つ以上ある場合に、複数のピクチャを区別するために用いられる概念である。たとえば、同一ピクチャを、画質や解像度の異なる複数のレイヤで符号化するとスケーラブル符号化になり、異なる視点のピクチャを複数のレイヤで符号化するとビュースケーラブル符号化となる。複数のレイヤのピクチャ間で予測(インターレイヤ予測、インタービュー予測)を行う場合には、符号化効率が大きく向上する。また予測を行わない場合(サイマルキャスト)の場合にも、符号化データをまとめることができる。   An image T indicating an image of a single layer or a plurality of layers is input to the image encoding device 11. The layer is a concept used to distinguish a plurality of pictures when there is one or more pictures constituting a certain time. For example, when the same picture is encoded by a plurality of layers having different image qualities and resolutions, scalable encoding is performed, and when pictures of different viewpoints are encoded by a plurality of layers, view scalable encoding is performed. When prediction (inter-layer prediction, inter-view prediction) is performed between pictures of a plurality of layers, coding efficiency is greatly improved. Also, in the case where prediction is not performed (simultaneous cast), encoded data can be collected.

ネットワーク21は、画像符号化装置11が生成した符号化ストリームTeを画像復号装置31に伝送する。ネットワーク21は、インターネット(internet)、広域ネットワーク(WAN:Wide Area Network)、小規模ネットワーク(LAN:Local Area Network)また
はこれらの組み合わせである。ネットワーク21は、必ずしも双方向の通信網に限らず、地上デジタル放送、衛星放送等の放送波を伝送する一方向の通信網であっても良い。また、ネットワーク21は、DVD(Digital Versatile Disc)、BD(Blu-ray Disc:登録商標)等の符号化ストリームTeを記録した記憶媒体で代替されても良い。
The network 21 transmits the encoded stream Te generated by the image encoding device 11 to the image decoding device 31. The network 21 is the Internet (internet), a wide area network (WAN: Wide Area Network), a small network (LAN: Local Area Network), or a combination thereof. The network 21 is not limited to a two-way communication network, but may be a one-way communication network for transmitting broadcast waves such as terrestrial digital broadcasting and satellite broadcasting. Further, the network 21 may be replaced with a storage medium that records the encoded stream Te such as a DVD (Digital Versatile Disc) and a BD (Blu-ray Disc: registered trademark).

画像復号装置31は、ネットワーク21が伝送した符号化ストリームTeのそれぞれを復号し、それぞれ復号した1または複数の復号画像Tdを生成する。   The image decoding device 31 decodes each of the encoded streams Te transmitted by the network 21, and generates one or a plurality of decoded images Td respectively decoded.

画像表示装置41は、画像復号装置31が生成した1または複数の復号画像Tdの全部または一部を表示する。画像表示装置41は、例えば、液晶ディスプレイ、有機EL(Electro-luminescence)ディスプレイ等の表示デバイスを備える。また、空間スケーラブル符号化、SNRスケーラブル符号化では、画像復号装置31、画像表示装置41が高い処理能力を有する場合には、画質の高い拡張レイヤ画像を表示し、より低い処理能力しか有しない場合には、拡張レイヤほど高い処理能力、表示能力を必要としないベースレイヤ画像を表示する。   The image display device 41 displays all or a part of one or a plurality of decoded images Td generated by the image decoding device 31. The image display device 41 includes a display device such as a liquid crystal display and an organic EL (Electro-luminescence) display. Also, in the spatial scalable coding and the SNR scalable coding, when the image decoding device 31 and the image display device 41 have a high processing capability, a high quality enhancement layer image is displayed, and only a lower processing capability is provided. Displays a base layer image that does not require higher processing capability and display capability than the enhancement layer.

<演算子>
本明細書で用いる演算子を以下に記載する。
<Operator>
The operators used in this specification are described below.

>>は右ビットシフト、<<は左ビットシフト、&はビットワイズAND、|はビットワイズOR
、|=は別の条件との和演算(OR)である。
>> is right bit shift, << is left bit shift, & is bitwise AND, | is bitwise OR
, | = Is a sum operation (OR) with another condition.

x ? y : zは、xが真(0以外)の場合にy、xが偽(0)の場合にzをとる3項演算子であ
る。
x? y: z is a ternary operator that takes y when x is true (other than 0) and z when x is false (0).

Clip3(a, b, c) は、cをa以上b以下の値にクリップする関数であり、c<aの場合にはaを返し、c>bの場合にはbを返し、その他の場合にはcを返す関数である(ただし、a<=b)。   Clip3 (a, b, c) is a function that clips c to a value greater than or equal to a and less than or equal to b, returning a if c <a, returning b if c> b, otherwise Is a function that returns c (where a <= b).

<符号化ストリームTeの構造>
本実施形態に係る画像符号化装置11および画像復号装置31の詳細な説明に先立って、画像符号化装置11によって生成され、画像復号装置31によって復号される符号化ストリームTeのデータ構造について説明する。
<Structure of encoded stream Te>
Prior to the detailed description of the image encoding device 11 and the image decoding device 31 according to the present embodiment, a data structure of an encoded stream Te generated by the image encoding device 11 and decoded by the image decoding device 31 will be described. .

図2は、符号化ストリームTeにおけるデータの階層構造を示す図である。符号化ストリームTeは、例示的に、シーケンス、およびシーケンスを構成する複数のピクチャを含む。図2の(a)〜(f)は、それぞれ、シーケンスSEQを既定する符号化ビデオシーケンス
、ピクチャPICTを規定する符号化ピクチャ、スライスSを規定する符号化スライス、スラ
イスデータを規定する符号化スライスデータ、符号化スライスデータに含まれる符号化ツリーユニット、符号化ツリーユニットに含まれる符号化ユニット(Coding Unit;CU)を
示す図である。
FIG. 2 is a diagram showing a hierarchical structure of data in the encoded stream Te. The coded stream Te illustratively includes a sequence and a plurality of pictures constituting the sequence. 2A to 2F show an encoded video sequence defining a sequence SEQ, an encoded picture defining a picture PICT, an encoded slice defining a slice S, and an encoded slice defining slice data, respectively. FIG. 3 is a diagram illustrating data, a coding tree unit included in the coding slice data, and a coding unit (Coding Unit; CU) included in the coding tree unit.

(符号化ビデオシーケンス)
符号化ビデオシーケンスでは、処理対象のシーケンスSEQを復号するために画像復号装
置31が参照するデータの集合が規定されている。シーケンスSEQは、図2の(a)に示
すように、ビデオパラメータセット(Video Parameter Set)、シーケンスパラメータセ
ットSPS(Sequence Parameter Set)、ピクチャパラメータセットPPS(Picture Parameter Set)、ピクチャPICT、および、付加拡張情報SEI(Supplemental Enhancement Information)を含んでいる。ここで#の後に示される値はレイヤIDを示す。図2では、#0と#1すなわちレイヤ0とレイヤ1の符号化データが存在する例を示すが、レイヤの種類およびレイヤの数はこれによらない。
(Encoded video sequence)
In the encoded video sequence, a set of data referred to by the image decoding device 31 to decode the sequence SEQ to be processed is defined. As shown in FIG. 2A, the sequence SEQ includes a video parameter set (Video Parameter Set), a sequence parameter set SPS (Sequence Parameter Set), a picture parameter set PPS (Picture Parameter Set), a picture PICT, and an addition. Contains extended information SEI (Supplemental Enhancement Information). Here, the value shown after # indicates the layer ID. FIG. 2 shows an example in which coded data of # 0 and # 1, that is, layer 0 and layer 1 are present, but the type of layer and the number of layers do not depend on this.

ビデオパラメータセットVPSは、複数のレイヤから構成されている動画像において、複
数の動画像に共通する符号化パラメータの集合および動画像に含まれる複数のレイヤおよび個々のレイヤに関連する符号化パラメータの集合が規定されている。
The video parameter set VPS includes, in a moving image composed of a plurality of layers, a set of encoding parameters common to a plurality of moving images and a plurality of layers included in the moving image and encoding parameters related to individual layers. Sets are defined.

シーケンスパラメータセットSPSでは、対象シーケンスを復号するために画像復号装置
31が参照する符号化パラメータの集合が規定されている。例えば、ピクチャの幅や高さが規定される。なお、SPSは複数存在してもよい。その場合、PPSから複数のSPSの何れか
を選択する。
In the sequence parameter set SPS, a set of encoding parameters referred to by the image decoding device 31 to decode the target sequence is defined. For example, the width and height of a picture are defined. Note that a plurality of SPSs may exist. In that case, one of the plurality of SPSs is selected from the PPS.

ピクチャパラメータセットPPSでは、対象シーケンス内の各ピクチャを復号するために
画像復号装置31が参照する符号化パラメータの集合が規定されている。例えば、ピクチャの復号に用いられる量子化幅の基準値(pic_init_qp_minus26)や重み付き予測の適用
を示すフラグ(weighted_pred_flag)が含まれる。なお、PPSは複数存在してもよい。そ
の場合、対象シーケンス内の各ピクチャから複数のPPSの何れかを選択する。
In the picture parameter set PPS, a set of encoding parameters referred to by the image decoding device 31 to decode each picture in the target sequence is defined. For example, a reference value (pic_init_qp_minus26) of a quantization width used for decoding a picture and a flag (weighted_pred_flag) indicating application of weighted prediction are included. Note that a plurality of PPSs may exist. In that case, any one of the plurality of PPSs is selected from each picture in the target sequence.

(符号化ピクチャ)
符号化ピクチャでは、処理対象のピクチャPICTを復号するために画像復号装置31が参照するデータの集合が規定されている。ピクチャPICTは、図2の(b)に示すように、スライスS0〜SNS-1を含んでいる(NSはピクチャPICTに含まれるスライスの総数)。
(Encoded picture)
In the coded picture, a set of data referred to by the image decoding device 31 for decoding the picture PICT to be processed is defined. As shown in FIG. 2B, the picture PICT includes slices S0 to SNS -1 (NS is the total number of slices included in the picture PICT).

なお、以下、スライスS0〜SNS-1のそれぞれを区別する必要が無い場合、符号の添え字
を省略して記述することがある。また、以下に説明する符号化ストリームTeに含まれるデータであって、添え字を付している他のデータについても同様である。
In the following, when it is not necessary to distinguish each of the slices S0 to SNS -1 , the description may be omitted with suffixes of the reference numerals. The same applies to other data included in the coded stream Te described below and to which subscripts are added.

(符号化スライス)
符号化スライスでは、処理対象のスライスSを復号するために画像復号装置31が参照
するデータの集合が規定されている。スライスSは、図2の(c)に示すように、スライ
スヘッダSH、および、スライスデータSDATAを含んでいる。
(Coding slice)
In the coded slice, a set of data referred to by the image decoding device 31 for decoding the slice S to be processed is defined. The slice S includes a slice header SH and slice data SDATA, as shown in FIG.

スライスヘッダSHには、対象スライスの復号方法を決定するために画像復号装置31が参照する符号化パラメータ群が含まれる。スライスタイプを指定するスライスタイプ指定情報(slice_type)は、スライスヘッダSHに含まれる符号化パラメータの一例である。   The slice header SH includes an encoding parameter group referred to by the image decoding device 31 to determine a decoding method for the target slice. The slice type designation information (slice_type) that designates the slice type is an example of an encoding parameter included in the slice header SH.

スライスタイプ指定情報により指定可能なスライスタイプとしては、(1)符号化の際にイントラ予測のみを用いるIスライス、(2)符号化の際に単方向予測、または、イントラ予測を用いるPスライス、(3)符号化の際に単方向予測、双方向予測、または、イントラ予測を用いるBスライスなどが挙げられる。   The slice types that can be specified by the slice type specification information include (1) an I slice using only intra prediction at the time of encoding, (2) a P slice using unidirectional prediction or intra prediction at the time of encoding, (3) B-slice using unidirectional prediction, bidirectional prediction, or intra prediction at the time of encoding.

なお、スライスヘッダSHには、前記符号化ビデオシーケンスに含まれる、ピクチャパラメータセットPPSへの参照(pic_parameter_set_id)を含んでいても良い。   Note that the slice header SH may include a reference (pic_parameter_set_id) to a picture parameter set PPS included in the encoded video sequence.

(符号化スライスデータ)
符号化スライスデータでは、処理対象のスライスデータSDATAを復号するために画像復
号装置31が参照するデータの集合が規定されている。スライスデータSDATAは、図2の
(d)に示すように、符号化ツリーユニット(CTU:Coding Tree Unit)を含んでいる。CTUは、スライスを構成する固定サイズ(例えば64x64)の矩形であり、最大符号化単位(LCU:Largest Coding Unit)と呼ぶこともある。
(Encoded slice data)
In the encoded slice data, a set of data referred to by the image decoding device 31 for decoding the slice data SDATA to be processed is defined. The slice data SDATA includes a coding tree unit (CTU: Coding Tree Unit) as shown in FIG. The CTU is a fixed-size (for example, 64 × 64) rectangle that forms a slice, and may be referred to as a maximum coding unit (LCU).

(符号化ツリーユニット)
図2の(e)に示すように、処理対象の符号化ツリーユニットを復号するために画像復号装置31が参照するデータの集合が規定されている。符号化ツリーユニットは、再帰的な4分木分割(QT分割)または2分木分割(BT分割)により分割される。再帰的な4分木分割または2分木分割により得られる木構造のノードのことを符号化ノード(CN:Coding Node)と称する。4分木および2分木の中間ノードは、符号化ツリー(CT:Coding Tree)であり、符号化ツリーユニット自身も最上位の符号化ツリーとして規定される。
(Coding tree unit)
As shown in FIG. 2E, a set of data referred to by the image decoding device 31 for decoding the coding tree unit to be processed is defined. The coding tree unit is divided by recursive quadtree division (QT division) or binary tree division (BT division). A node having a tree structure obtained by recursive quadtree division or binary tree division is referred to as a coding node (CN). An intermediate node of the quadtree and the binary tree is a coding tree (CT: Coding Tree), and the coding tree unit itself is defined as a top coding tree.

CTUは、QT分割を行うか否かを示すQT分割フラグ(cu_split_flag)、およびBT分割の分割方法を示すBT分割モード(split_bt_mode)を含む。cu_split_flagが1の場合には、4つの符号化ノードCNに分割される。cu_split_flagが0の場合には、符号化ノードCNは分
割されず、1つの符号化ユニット(CU:Coding Unit)をノードとして持つ。一方、split_bt_modeが2の場合には、2つの符号化ノードCNに水平分割される。split_bt_modeが1の場合には、2つの符号化ノードCNに垂直分割される。split_bt_modeが0の場合には、符
号化ノードCNは分割されず、1つの符号化ユニットCUをノードとして持つ。符号化ユニットCUは符号化ツリーの末端ノードであり、これ以上分割されない。符号化ユニットCUは、符号化処理の基本的な単位となる。
The CTU includes a QT split flag (cu_split_flag) indicating whether or not to perform QT split, and a BT split mode (split_bt_mode) indicating a split method of the BT split. When cu_split_flag is 1, it is divided into four coding nodes CN. When cu_split_flag is 0, the coding node CN is not divided and has one coding unit (CU: Coding Unit) as a node. On the other hand, when split_bt_mode is 2, the image is horizontally divided into two encoding nodes CN. When split_bt_mode is 1, the image is vertically divided into two coding nodes CN. When split_bt_mode is 0, the coding node CN is not split and has one coding unit CU as a node. The coding unit CU is a terminal node of the coding tree and is not further divided. The encoding unit CU is a basic unit of the encoding process.

符号化ツリーユニットCTUのサイズが64x64画素の場合にとり得る符号化ユニットのサイズは、例えば、64x64画素、64x32画素、32x64画素、32x32画素、64x16画素、16x64画素、32x16画素、16x32画素、16x16画素、64x8画素、8x64画素、32x8画素、8x32画素、16x8画
素、8x16画素、および、8x8画素の何れかである。ただし、分割の回数や組み合わせ、符
号化ユニットのサイズなどに関する制約によっては、これ以外のサイズもとり得る。
The size of the coding unit that can be taken when the size of the coding tree unit CTU is 64x64 pixels is, for example, 64x64 pixels, 64x32 pixels, 32x64 pixels, 32x32 pixels, 64x16 pixels, 16x64 pixels, 32x16 pixels, 16x32 pixels, 16x16 pixels, One of 64 × 8 pixels, 8 × 64 pixels, 32 × 8 pixels, 8 × 32 pixels, 16 × 8 pixels, 8 × 16 pixels, and 8 × 8 pixels. However, other sizes can be used depending on restrictions on the number of times and combinations of division, the size of the coding unit, and the like.

(符号化ユニット)
図2の(f)に示すように、処理対象の符号化ユニットを復号するために画像復号装置31が参照するデータの集合が規定されている。具体的には、符号化ユニットは、予測ツリー、変換ツリー、CUヘッダCUHから構成される。CUヘッダでは予測モード、分割方法(PU分割モード)等が規定される。
(Encoding unit)
As shown in (f) of FIG. 2, a set of data referred to by the image decoding device 31 for decoding the encoding unit to be processed is defined. Specifically, the coding unit includes a prediction tree, a transform tree, and a CU header CUH. The CU header specifies a prediction mode, a division method (PU division mode), and the like.

予測ツリーでは、符号化ユニットを1または複数に分割した各予測ユニット(PU)の予測情報(参照ピクチャインデックス、動きベクトル等)が規定される。別の表現でいえば、予測ユニットは、符号化ユニットを構成する1または複数の重複しない領域である。また、予測ツリーは、前述の分割により得られた1または複数の予測ユニットを含む。なお、以下では、予測ユニットをさらに分割した予測単位を「サブブロック」と呼ぶ。サブブロックは、複数の画素によって構成されている。予測ユニットとサブブロックのサイズが等しい場合には、予測ユニット中のサブブロックは1つである。予測ユニットがサブブロックのサイズよりも大きい場合には、予測ユニットは、サブブロックに分割される。たとえば予測ユニットが8x8、サブブロックが4x4の場合には、予測ユニットは水平に2分割、垂直に2分割からなる、4つのサブブロックに分割される。   In the prediction tree, prediction information (a reference picture index, a motion vector, and the like) of each prediction unit (PU) obtained by dividing the coding unit into one or a plurality is defined. In other words, a prediction unit is one or more non-overlapping regions that make up a coding unit. Further, the prediction tree includes one or more prediction units obtained by the above-described division. Hereinafter, a prediction unit obtained by further dividing the prediction unit is referred to as a “sub-block”. The sub-block is composed of a plurality of pixels. If the size of the prediction unit is equal to the size of the sub-block, there is one sub-block in the prediction unit. If the prediction unit is larger than the size of the sub-block, the prediction unit is divided into sub-blocks. For example, when the prediction unit is 8 × 8 and the sub-block is 4 × 4, the prediction unit is divided into four sub-blocks, which are divided into two horizontally and two vertically.

予測処理は、この予測ユニット(サブブロック)ごとに行ってもよい。   The prediction process may be performed for each prediction unit (sub-block).

予測ツリーにおける分割の種類は、大まかにいえば、イントラ予測の場合と、インター予測の場合との2つがある。イントラ予測とは、同一ピクチャ内の予測であり、インター予測とは、互いに異なるピクチャ間(例えば、表示時刻間、レイヤ画像間)で行われる予測処理を指す。   Broadly speaking, there are two types of divisions in the prediction tree: intra prediction and inter prediction. Intra prediction refers to prediction within the same picture, and inter prediction refers to prediction processing performed between different pictures (for example, between display times and between layer images).

イントラ予測の場合、分割方法は、2Nx2N(符号化ユニットと同一サイズ)と、NxNとがある。   In the case of intra prediction, the division method includes 2Nx2N (the same size as the coding unit) and NxN.

また、インター予測の場合、分割方法は、符号化データのPU分割モード(part_mode)
により符号化され、2Nx2N(符号化ユニットと同一サイズ)、2NxN、2NxnU、2NxnD、Nx2N
、nLx2N、nRx2N、および、NxNなどがある。なお、2NxN、Nx2Nは1:1の対称分割を示し、
2NxnU、2NxnDおよびnLx2N、nRx2Nは、1:3、3:1の非対称分割を示す。CUに含まれるPUを順にPU0、PU1、PU2、PU3と表現する。
In the case of inter prediction, the division method is a PU division mode (part_mode) of the encoded data.
2Nx2N (same size as encoding unit), 2NxN, 2NxnU, 2NxnD, Nx2N
, NLx2N, nRx2N, and NxN. Note that 2NxN and Nx2N indicate a 1: 1 symmetric division,
2NxnU, 2NxnD and nLx2N, nRx2N show asymmetric splits of 1: 3, 3: 1. The PUs included in the CU are represented as PU0, PU1, PU2, and PU3 in order.

図3の(a)〜(h)に、それぞれのPU分割モードにおけるパーティションの形状(PU分割の境界の位置)を具体的に図示している。図3の(a)は、2Nx2Nのパーティション
を示し、(b)、(c)、(d)は、それぞれ、2NxN、2NxnU、および、2NxnDのパーティション(横長パーティション)を示す。(e)、(f)、(g)は、それぞれ、Nx2N、nLx2N、nRx2Nである場合のパーティション(縦長パーティション)を示し、(h)は、NxN
のパーティションを示す。なお、横長パーティションと縦長パーティションを総称して長方形パーティション、2Nx2N、NxNを総称して正方形パーティションと呼ぶ。
FIGS. 3A to 3H specifically illustrate the shape of the partition (the position of the boundary of the PU division) in each PU division mode. FIG. 3A shows a 2Nx2N partition, and FIGS. 3B, 3C, and 3D show 2NxN, 2NxnU, and 2NxnD partitions (horizontally long partitions), respectively. (E), (f), and (g) show partitions (vertical partitions) in the case of Nx2N, nLx2N, and nRx2N, respectively, and (h) shows NxN
Indicates the partition of Note that the horizontally long partition and the vertically long partition are generically called a rectangular partition, and 2Nx2N and NxN are generically called a square partition.

また、変換ツリーにおいては、符号化ユニットが1または複数の変換ユニットに分割され、各変換ユニットの位置とサイズとが規定される。別の表現でいえば、変換ユニットは、符号化ユニットを構成する1または複数の重複しない領域のことである。また、変換ツリーは、前述の分割より得られた1または複数の変換ユニットを含む。   In the transform tree, the coding unit is divided into one or a plurality of transform units, and the position and size of each transform unit are defined. In other words, a transform unit is one or more non-overlapping regions that make up a coding unit. Further, the transform tree includes one or a plurality of transform units obtained by the above-described division.

変換ツリーにおける分割には、符号化ユニットと同一のサイズの領域を変換ユニットとして割り付けるものと、前述したCUの分割と同様、再帰的な4分木分割によるものがある。   The division in the transform tree includes one in which an area having the same size as the encoding unit is allocated as the transform unit, and one in which the recursive quadtree division is performed similarly to the above-described CU division.

変換処理は、この変換ユニットごとに行われる。   The conversion process is performed for each conversion unit.

(予測パラメータ)
予測ユニット(PU:Prediction Unit)の予測画像は、PUに付随する予測パラメータに
よって導出される。予測パラメータには、イントラ予測の予測パラメータもしくはインター予測の予測パラメータがある。以下、インター予測の予測パラメータ(インター予測パラメータ)について説明する。インター予測パラメータは、予測リスト利用フラグpredFlagL0、predFlagL1と、参照ピクチャインデックスrefIdxL0、refIdxL1と、動きベクトルmvL0、mvL1から構成される。予測リスト利用フラグpredFlagL0、predFlagL1は、各々L0リスト、L1リストと呼ばれる参照ピクチャリストが用いられるか否かを示すフラグであり、値が1の場合に対応する参照ピクチャリストが用いられる。なお、本明細書中「XXであるか否かを示すフラグ」と記す場合、フラグが0以外(たとえば1)をXXである場合、0をXXではない場合とし、論理否定、論理積などでは1を真、0を偽と扱う(以下同様)。但し、実際の装置や方法では真値、偽値として他の値を用いることもできる。
(Forecast parameters)
A prediction image of a prediction unit (PU: Prediction Unit) is derived by a prediction parameter attached to the PU. The prediction parameter includes a prediction parameter for intra prediction or a prediction parameter for inter prediction. Hereinafter, the prediction parameters of the inter prediction (inter prediction parameters) will be described. The inter prediction parameter includes a prediction list use flag predFlagL0, predFlagL1, a reference picture index refIdxL0, refIdxL1, and a motion vector mvL0, mvL1. The prediction list use flags predFlagL0 and predFlagL1 are flags indicating whether reference picture lists called L0 list and L1 list are used, respectively. When the value is 1, the corresponding reference picture list is used. Note that in this specification, when a “flag indicating whether it is XX” is described, a flag other than 0 (for example, 1) is XX, 0 is not XX, and logical negation, logical product, etc. Treat 1 as true and 0 as false (the same applies hereinafter). However, other values can be used as a true value and a false value in an actual device or method.

符号化データに含まれるインター予測パラメータを導出するためのシンタックス要素には、例えば、PU分割モードpart_mode、マージフラグmerge_flag、マージインデックスmerge_idx、インター予測識別子inter_pred_idc、参照ピクチャインデックスrefIdxLX、予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLXがある。   Syntax elements for deriving the inter prediction parameters included in the encoded data include, for example, PU partition mode part_mode, merge flag merge_flag, merge index merge_idx, inter prediction identifier inter_pred_idc, reference picture index refIdxLX, prediction vector index mvp_LX_idx, There is a difference vector mvdLX.

(参照ピクチャリスト)
参照ピクチャリストは、参照ピクチャメモリ306に記憶された参照ピクチャからなるリストである。図4は、参照ピクチャおよび参照ピクチャリストの一例を示す概念図である。図4の(a)において、矩形はピクチャ、矢印はピクチャの参照関係、横軸は時間、矩形中のI、P、Bは各々イントラピクチャ、単予測ピクチャ、双予測ピクチャ、矩形中の
数字は復号順を示す。図に示すように、ピクチャの復号順は、I0、P1、B2、B3、B4であり、表示順は、I0、B3、B2、B4、P1である。図4の(b)に、参照ピクチャリストの例を示す。参照ピクチャリストは、参照ピクチャの候補を表すリストであり、1つのピクチャ(スライス)が1つ以上の参照ピクチャリストを有してもよい。図の例では、対象ピクチャB3は、L0リストRefPicList0およびL1リストRefPicList1の2つの参照ピクチャリストを持つ。対象ピクチャがB3の場合の参照ピクチャは、I0、P1、B2であり、参照ピクチャはこれらのピクチャを要素として持つ。個々の予測ユニットでは、参照ピクチャリストRefPicListX中のどのピクチャを実際に参照するかを参照ピクチャインデックスrefIdxLXで指定す
る。図では、refIdxL0およびrefIdxL1により参照ピクチャP1とB2が参照される例を示す。
(Reference picture list)
The reference picture list is a list including reference pictures stored in the reference picture memory 306. FIG. 4 is a conceptual diagram illustrating an example of a reference picture and a reference picture list. In FIG. 4A, a rectangle is a picture, an arrow is a picture reference relationship, a horizontal axis is time, and I, P, and B in the rectangle are intra pictures, uni-prediction pictures, bi-prediction pictures, and numbers in the rectangles, respectively. Indicates the decoding order. As shown in the figure, the decoding order of the pictures is I0, P1, B2, B3, B4, and the display order is I0, B3, B2, B4, P1. FIG. 4B shows an example of the reference picture list. The reference picture list is a list representing reference picture candidates, and one picture (slice) may have one or more reference picture lists. In the illustrated example, the target picture B3 has two reference picture lists, an L0 list RefPicList0 and an L1 list RefPicList1. When the current picture is B3, the reference pictures are I0, P1, and B2, and the reference picture has these pictures as elements. In each prediction unit, which picture in the reference picture list RefPicListX is actually referred to is specified by the reference picture index refIdxLX. The figure shows an example in which reference pictures P1 and B2 are referenced by refIdxL0 and refIdxL1.

(マージ予測とAMVP予測)
予測パラメータの復号(符号化)方法には、マージ予測(merge)モードとAMVP(Adaptive Motion Vector Prediction、適応動きベクトル予測)モードがある、マージフラグmerge_flagは、これらを識別するためのフラグである。マージ予測モードは、予測リスト利用フラグpredFlagLX(またはインター予測識別子inter_pred_idc)、参照ピクチャインデックスrefIdxLX、動きベクトルmvLXを符号化データに含めずに、既に処理した近傍PUの予測パラメータから導出する用いるモードであり、AMVPモードは、インター予測識別子inter_pred_idc、参照ピクチャインデックスrefIdxLX、動きベクトルmvLXを符号化データに含めるモードである。なお、動きベクトルmvLXは、予測ベクトルmvpLXを識別する予測ベク
トルインデックスmvp_LX_idxと差分ベクトルmvdLXとして符号化される。
(Merge prediction and AMVP prediction)
The prediction parameter decoding (encoding) method includes a merge prediction (merge) mode and an AMVP (Adaptive Motion Vector Prediction) mode. A merge flag merge_flag is a flag for identifying these. The merge prediction mode is a mode in which a prediction list use flag predFlagLX (or an inter prediction identifier inter_pred_idc), a reference picture index refIdxLX, and a motion vector mvLX are not included in encoded data but are derived from prediction parameters of already processed neighboring PUs. , AMVP mode is a mode in which an inter prediction identifier inter_pred_idc, a reference picture index refIdxLX, and a motion vector mvLX are included in encoded data. The motion vector mvLX is encoded as a prediction vector index mvp_LX_idx for identifying the prediction vector mvpLX and a difference vector mvdLX.

インター予測識別子inter_pred_idcは、参照ピクチャの種類および数を示す値であり、PRED_L0、PRED_L1、PRED_BIの何れかの値をとる。PRED_L0、PRED_L1は、各々L0リスト、L1リストの参照ピクチャリストで管理された参照ピクチャを用いることを示し、1枚の参
照ピクチャを用いること(単予測)を示す。PRED_BIは2枚の参照ピクチャを用いること
(双予測BiPred)を示し、L0リストとL1リストで管理された参照ピクチャを用いる。予測ベクトルインデックスmvp_LX_idxは予測ベクトルを示すインデックスであり、参照ピクチャインデックスrefIdxLXは、参照ピクチャリストで管理された参照ピクチャを示すインデックスである。なお、LXは、L0予測とL1予測を区別しない場合に用いられる記述方法であり、LXをL0、L1に置き換えることでL0リストに対するパラメータとL1リストに対するパラメータを区別する。
The inter prediction identifier inter_pred_idc is a value indicating the type and number of reference pictures, and takes one of PRED_L0, PRED_L1, and PRED_BI. PRED_L0 and PRED_L1 indicate that a reference picture managed by a reference picture list of an L0 list and an L1 list is used, respectively, and indicate that one reference picture is used (uni-prediction). PRED_BI indicates that two reference pictures are used (bi-prediction BiPred), and uses reference pictures managed in an L0 list and an L1 list. The prediction vector index mvp_LX_idx is an index indicating a prediction vector, and the reference picture index refIdxLX is an index indicating a reference picture managed in a reference picture list. Note that LX is a description method used when L0 prediction and L1 prediction are not distinguished, and the parameters for the L0 list and the parameters for the L1 list are distinguished by replacing LX with L0 and L1.

マージインデックスmerge_idxは、処理が完了したPUから導出される予測パラメータ候
補(マージ候補)のうち、いずれかの予測パラメータを復号対象PUの予測パラメータとして用いるかを示すインデックスである。
The merge index merge_idx is an index indicating which of the prediction parameter candidates (merge candidates) derived from the processed PU is to be used as the prediction parameter of the decoding target PU.

(動きベクトル)
動きベクトルmvLXは、異なる2つのピクチャ上のブロック間のずれ量を示す。動きベクトルmvLXに関する予測ベクトル、差分ベクトルを、それぞれ予測ベクトルmvpLX、差分ベ
クトルmvdLXと呼ぶ。
(Motion vector)
The motion vector mvLX indicates a shift amount between blocks on two different pictures. The prediction vector and the difference vector related to the motion vector mvLX are called a prediction vector mvpLX and a difference vector mvdLX, respectively.

(インター予測識別子inter_pred_idcと予測リスト利用フラグpredFlagLX)
インター予測識別子inter_pred_idcと、予測リスト利用フラグpredFlagL0、predFlagL1の関係は以下のとおりであり、相互に変換可能である。
(Inter prediction identifier inter_pred_idc and prediction list use flag predFlagLX)
The relationship between the inter prediction identifier inter_pred_idc and the prediction list use flags predFlagL0 and predFlagL1 is as follows, and can be mutually converted.

inter_pred_idc = (predFlagL1<<1) + predFlagL0
predFlagL0 = inter_pred_idc & 1
predFlagL1 = inter_pred_idc >> 1
なお、インター予測パラメータは、予測リスト利用フラグを用いても良いし、インター予測識別子を用いてもよい。また、予測リスト利用フラグを用いた判定は、インター予測識別子を用いた判定に置き替えてもよい。逆に、インター予測識別子を用いた判定は、予測リスト利用フラグを用いた判定に置き替えてもよい。
inter_pred_idc = (predFlagL1 << 1) + predFlagL0
predFlagL0 = inter_pred_idc & 1
predFlagL1 = inter_pred_idc >> 1
As the inter prediction parameter, a prediction list use flag or an inter prediction identifier may be used. Further, the determination using the prediction list use flag may be replaced with a determination using an inter prediction identifier. Conversely, the determination using the inter prediction identifier may be replaced with a determination using a prediction list use flag.

(双予測biPredの判定)
双予測BiPredであるかのフラグbiPredは、2つの予測リスト利用フラグがともに1であるかによって導出できる。たとえば以下の式で導出できる。
(Judgment of bi-prediction biPred)
The flag biPred as to whether it is bi-prediction BiPred can be derived depending on whether both of the two prediction list use flags are “1”. For example, it can be derived by the following equation.

biPred = (predFlagL0 == 1 && predFlagL1 == 1)
フラグbiPredは、インター予測識別子が2つの予測リスト(参照ピクチャ)を使うことを示す値であるか否かによっても導出できる。たとえば以下の式で導出できる。
biPred = (predFlagL0 == 1 && predFlagL1 == 1)
The flag biPred can also be derived based on whether or not the inter prediction identifier is a value indicating that two prediction lists (reference pictures) are used. For example, it can be derived by the following equation.

biPred = (inter_pred_idc == PRED_BI) ? 1 : 0
前記式は、以下の式でも表現できる。
biPred = (inter_pred_idc == PRED_BI)? 1: 0
The above equation can also be expressed by the following equation.

biPred = (inter_pred_idc == PRED_BI)
なお、PRED_BIはたとえば3の値を用いることができる。
biPred = (inter_pred_idc == PRED_BI)
Note that a value of 3, for example, can be used for PRED_BI.

(画像復号装置の構成)
次に、本実施形態に係る画像復号装置31の構成について説明する。図5は、本実施形態に係る画像復号装置31の構成を示すブロック図である。画像復号装置31は、エントロピー復号部301、予測パラメータ復号部(予測画像復号装置)302、ループフィルタ305、参照ピクチャメモリ306、予測パラメータメモリ307、予測画像生成部(予測画像生成装置)308、逆量子化・逆DCT部311、および加算部312を含んで構
成される。
(Configuration of image decoding device)
Next, the configuration of the image decoding device 31 according to the present embodiment will be described. FIG. 5 is a block diagram illustrating a configuration of the image decoding device 31 according to the present embodiment. The image decoding device 31 includes an entropy decoding unit 301, a prediction parameter decoding unit (prediction image decoding device) 302, a loop filter 305, a reference picture memory 306, a prediction parameter memory 307, a prediction image generation unit (prediction image generation device) 308, and an inverse. It is configured to include a quantization / inverse DCT unit 311 and an addition unit 312.

また、予測パラメータ復号部302は、インター予測パラメータ復号部303およびイントラ予測パラメータ復号部304を含んで構成される。予測画像生成部308は、インター予測画像生成部309およびイントラ予測画像生成部310を含んで構成される。   Further, the prediction parameter decoding unit 302 includes an inter prediction parameter decoding unit 303 and an intra prediction parameter decoding unit 304. The predicted image generation unit 308 includes an inter predicted image generation unit 309 and an intra predicted image generation unit 310.

エントロピー復号部301は、外部から入力された符号化ストリームTeに対してエントロピー復号を行って、個々の符号(シンタックス要素)を分離し復号する。分離された符号には、予測画像を生成するための予測情報および、差分画像を生成するための残差情報などがある。   The entropy decoding unit 301 performs entropy decoding on the coded stream Te input from the outside to separate and decode individual codes (syntax elements). The separated codes include prediction information for generating a prediction image, residual information for generating a difference image, and the like.

エントロピー復号部301は、分離した符号の一部を予測パラメータ復号部302に出力する。分離した符号の一部とは、例えば、予測モードpredMode、PU分割モードpart_mode、マージフラグmerge_flag、マージインデックスmerge_idx、インター予測識別子inter_pred_idc、参照ピクチャインデックスrefIdxLX、予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLXである。どの符号を復号するかの制御は、予測パラメータ復号部30
2の指示に基づいて行われる。エントロピー復号部301は、量子化係数を逆量子化・逆DCT部311に出力する。この量子化係数は、符号化処理において、残差信号に対してDCT(Discrete Cosine Transform、離散コサイン変換)を行い量子化して得られる係数であ
る。
Entropy decoding section 301 outputs a part of the separated code to prediction parameter decoding section 302. The part of the separated code is, for example, a prediction mode predMode, a PU division mode part_mode, a merge flag merge_flag, a merge index merge_idx, an inter prediction identifier inter_pred_idc, a reference picture index refIdxLX, a prediction vector index mvp_LX_idx, and a difference vector mvdLX. The control of which code is to be decoded is performed by the prediction parameter decoding unit 30.
2 is performed based on the instruction. Entropy decoding section 301 outputs the quantized coefficient to inverse quantization / inverse DCT section 311. These quantized coefficients are coefficients obtained by performing DCT (Discrete Cosine Transform) on the residual signal in the encoding process and quantizing the result.

インター予測パラメータ復号部303は、エントロピー復号部301から入力された符号に基づいて、予測パラメータメモリ307に記憶された予測パラメータを参照してインター予測パラメータを復号する。   The inter prediction parameter decoding unit 303 decodes the inter prediction parameters based on the code input from the entropy decoding unit 301 with reference to the prediction parameters stored in the prediction parameter memory 307.

インター予測パラメータ復号部303は、復号したインター予測パラメータを予測画像生成部308に出力し、また予測パラメータメモリ307に記憶する。インター予測パラメータ復号部303の詳細については後述する。   The inter prediction parameter decoding unit 303 outputs the decoded inter prediction parameter to the prediction image generation unit 308, and stores the decoded inter prediction parameter in the prediction parameter memory 307. Details of the inter prediction parameter decoding unit 303 will be described later.

イントラ予測パラメータ復号部304は、エントロピー復号部301から入力された符号に基づいて、予測パラメータメモリ307に記憶された予測パラメータを参照してイントラ予測パラメータを復号する。イントラ予測パラメータとは、CUを1つのピクチャ内で予測する処理で用いるパラメータ、例えば、イントラ予測モードIntraPredModeである。
イントラ予測パラメータ復号部304は、復号したイントラ予測パラメータを予測画像生成部308に出力し、また予測パラメータメモリ307に記憶する。
Intra prediction parameter decoding section 304 decodes the intra prediction parameters with reference to the prediction parameters stored in prediction parameter memory 307 based on the code input from entropy decoding section 301. The intra prediction parameter is a parameter used in a process of predicting a CU in one picture, for example, an intra prediction mode IntraPredMode.
The intra prediction parameter decoding unit 304 outputs the decoded intra prediction parameters to the prediction image generation unit 308, and stores the decoded intra prediction parameters in the prediction parameter memory 307.

イントラ予測パラメータ復号部304は、輝度と色差で異なるイントラ予測モードを導出しても良い。この場合、イントラ予測パラメータ復号部304は、輝度の予測パラメータとして輝度予測モードIntraPredModeY、色差の予測パラメータとして、色差予測モードIntraPredModeCを復号する。輝度予測モードIntraPredModeYは、35モードであり、プレーナ予測(0)、DC予測(1)、方向予測(2〜34)が対応する。色差予測モードIntraPredModeCは、プレーナ予測(0)、DC予測(1)、方向予測(2〜34)、LMモード(35)の何れかを用いるものである。イントラ予測パラメータ復号部304は、IntraPredModeCは輝度モードと同じモードであるか否かを示すフラグを復号し、フラグが輝度モードと同じモードであることを示せば、IntraPredModeCにIntraPredModeYを割り当て、フラグが輝度モードと異なるモードであることを示せば、IntraPredModeCとして、プレーナ予測(0)、DC予測(1)、方向予測(2〜34)、LMモード(35)を復号しても良い。   The intra prediction parameter decoding unit 304 may derive different intra prediction modes for luminance and chrominance. In this case, the intra prediction parameter decoding unit 304 decodes the luminance prediction mode IntraPredModeY as the luminance prediction parameter and the chrominance prediction mode IntraPredModeC as the chrominance prediction parameter. The luminance prediction mode IntraPredModeY is 35 modes, and corresponds to planar prediction (0), DC prediction (1), and direction prediction (2-34). The color difference prediction mode IntraPredModeC uses one of planar prediction (0), DC prediction (1), direction prediction (2-34), and LM mode (35). The intra prediction parameter decoding unit 304 decodes a flag indicating whether IntraPredModeC is the same mode as the luminance mode, and if the flag indicates that the mode is the same as the luminance mode, assigns IntraPredModeY to IntraPredModeC, and sets the flag to If the mode is different from the mode, the planar prediction (0), the DC prediction (1), the directional prediction (2-34), and the LM mode (35) may be decoded as IntraPredModeC.

ループフィルタ305は、加算部312が生成したCUの復号画像に対し、デブロッキングフィルタ、サンプル適応オフセット(SAO)、適応ループフィルタ(ALF)等のフィルタを施す。   The loop filter 305 applies a filter such as a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) to the decoded image of the CU generated by the adding unit 312.

参照ピクチャメモリ306は、加算部312が生成したCUの復号画像を、復号対象のピクチャおよびCU毎に予め定めた位置に記憶する。   The reference picture memory 306 stores the decoded image of the CU generated by the adding unit 312 at a position predetermined for each decoding target picture and CU.

予測パラメータメモリ307は、予測パラメータを、復号対象のピクチャおよび予測ユニット(もしくはサブブロック、固定サイズブロック、ピクセル)毎に予め定めた位置に記憶する。具体的には、予測パラメータメモリ307は、インター予測パラメータ復号部303が復号したインター予測パラメータ、イントラ予測パラメータ復号部304が復号したイントラ予測パラメータおよびエントロピー復号部301が分離した予測モードpredModeを記憶する。記憶されるインター予測パラメータには、例えば、予測リスト利用フラグpredFlagLX(インター予測識別子inter_pred_idc)、参照ピクチャインデックスrefIdxLX、動きベクトルmvLXがある。   The prediction parameter memory 307 stores the prediction parameters at predetermined positions for each of a decoding target picture and a prediction unit (or a sub-block, a fixed-size block, or a pixel). Specifically, the prediction parameter memory 307 stores the inter prediction parameter decoded by the inter prediction parameter decoding unit 303, the intra prediction parameter decoded by the intra prediction parameter decoding unit 304, and the prediction mode predMode separated by the entropy decoding unit 301. . The stored inter prediction parameters include, for example, a prediction list use flag predFlagLX (inter prediction identifier inter_pred_idc), a reference picture index refIdxLX, and a motion vector mvLX.

予測画像生成部308には、エントロピー復号部301から入力された予測モードpredModeが入力され、また予測パラメータ復号部302から予測パラメータが入力される。また、予測画像生成部308は、参照ピクチャメモリ306から参照ピクチャを読み出す。予測画像生成部308は、予測モードpredModeが示す予測モードで、入力された予測パラメータと読み出した参照ピクチャを用いてPUの予測画像を生成する。   The prediction mode generation unit 308 receives the prediction mode predMode input from the entropy decoding unit 301 and receives the prediction parameters from the prediction parameter decoding unit 302. Further, the predicted image generation unit 308 reads a reference picture from the reference picture memory 306. The prediction image generation unit 308 generates a PU prediction image in the prediction mode indicated by the prediction mode predMode, using the input prediction parameters and the read reference pictures.

ここで、予測モードpredModeがインター予測モードを示す場合、インター予測画像生成部309は、インター予測パラメータ復号部303から入力されたインター予測パラメータと読み出した参照ピクチャを用いてインター予測によりPUの予測画像を生成する。   Here, when the prediction mode predMode indicates the inter prediction mode, the inter prediction image generation unit 309 performs a PU prediction image by the inter prediction using the inter prediction parameter input from the inter prediction parameter decoding unit 303 and the read reference picture. Generate

インター予測画像生成部309は、予測リスト利用フラグpredFlagLXが1である参照ピクチャリスト(L0リスト、もしくはL1リスト)に対し、参照ピクチャインデックスrefIdxLXで示される参照ピクチャから、復号対象PUを基準として動きベクトルmvLXが示す位置にある参照ピクチャブロックを参照ピクチャメモリ306から読み出す。インター予測画像生成部309は、読み出した参照ピクチャブロックをもとに予測を行ってPUの予測画像を生成する。インター予測画像生成部309は、生成したPUの予測画像を加算部312に出力する。   The inter-prediction image generation unit 309 generates a motion vector for a reference picture list (L0 list or L1 list) in which the prediction list use flag predFlagLX is 1 from a reference picture indicated by a reference picture index refIdxLX with reference to a decoding target PU. The reference picture block at the position indicated by mvLX is read from the reference picture memory 306. The inter-prediction image generation unit 309 performs prediction based on the read reference picture block to generate a PU prediction image. The inter prediction image generation unit 309 outputs the generated PU prediction image to the addition unit 312.

予測モードpredModeがイントラ予測モードを示す場合、イントラ予測画像生成部310は、イントラ予測パラメータ復号部304から入力されたイントラ予測パラメータと読み出した参照ピクチャを用いてイントラ予測を行う。具体的には、イントラ予測画像生成部310は、復号対象のピクチャであって、既に復号されたPUのうち、復号対象PUから予め定めた範囲にある隣接PUを参照ピクチャメモリ306から読み出す。予め定めた範囲とは、復号対象PUがいわゆるラスタースキャンの順序で順次移動する場合、例えば、左、左上、上、右上の隣接PUのうちのいずれかであり、イントラ予測モードによって異なる。ラスタースキャンの順序とは、各ピクチャにおいて、上端から下端まで各行について、順次左端から右端まで移動させる順序である。   When the prediction mode predMode indicates the intra prediction mode, the intra prediction image generation unit 310 performs the intra prediction using the intra prediction parameters input from the intra prediction parameter decoding unit 304 and the read reference pictures. Specifically, the intra-prediction image generation unit 310 reads, from the reference picture memory 306, an adjacent PU that is a decoding target picture and is within a predetermined range from the decoding target PU among the already decoded PUs. The predetermined range is, for example, one of the left, upper left, upper, and upper right adjacent PUs when the decoding target PU sequentially moves in a so-called raster scan order, and differs depending on the intra prediction mode. The raster scan order is an order in which each row is sequentially moved from the left end to the right end in each picture from the upper end to the lower end.

イントラ予測画像生成部310は、読み出した隣接PUについてイントラ予測モードIntraPredModeが示す予測モードで予測を行ってPUの予測画像を生成する。イントラ予測画像
生成部310は、生成したPUの予測画像を加算部312に出力する。
The intra prediction image generation unit 310 performs prediction on the read adjacent PU in the prediction mode indicated by the intra prediction mode IntraPredMode, and generates a prediction image of the PU. The intra prediction image generation unit 310 outputs the generated prediction image of the PU to the addition unit 312.

イントラ予測パラメータ復号部304において、輝度と色差で異なるイントラ予測モードを導出する場合、イントラ予測画像生成部310は、輝度予測モードIntraPredModeYに応じて、プレーナ予測(0)、DC予測(1)、方向予測(2〜34)の何れかによって輝度のPUの予測画像を生成し、色差予測モードIntraPredModeCに応じて、プレーナ予測(0)、DC予測(1)、方向予測(2〜34)、LMモード(35)の何れかによって色差のPU
の予測画像を生成する。
When the intra prediction parameter decoding unit 304 derives different intra prediction modes for luminance and chrominance, the intra prediction image generation unit 310 performs planar prediction (0), DC prediction (1), and direction according to the luminance prediction mode IntraPredModeY. A prediction image of a luminance PU is generated by one of the predictions (2 to 34), and the planar prediction (0), the DC prediction (1), the direction prediction (2 to 34), and the LM mode are performed according to the color difference prediction mode IntraPredModeC. PU of color difference by any of (35)
Is generated.

逆量子化・逆DCT部311は、エントロピー復号部301から入力された量子化係数を
逆量子化してDCT係数を求める。逆量子化・逆DCT部311は、求めたDCT係数について逆DCT(Inverse Discrete Cosine Transform、逆離散コサイン変換)を行い、残差信号を算
出する。逆量子化・逆DCT部311は、算出した残差信号を加算部312に出力する。
The inverse quantization / inverse DCT section 311 inversely quantizes the quantization coefficient input from the entropy decoding section 301 to obtain a DCT coefficient. The inverse quantization / inverse DCT unit 311 performs an inverse DCT (Inverse Discrete Cosine Transform) on the obtained DCT coefficient, and calculates a residual signal. The inverse quantization / inverse DCT section 311 outputs the calculated residual signal to the addition section 312.

加算部312は、インター予測画像生成部309またはイントラ予測画像生成部310から入力されたPUの予測画像と逆量子化・逆DCT部311から入力された残差信号を画素
毎に加算して、PUの復号画像を生成する。加算部312は、生成したPUの復号画像をピクチャ毎にデブロッキングフィルタ313、SAO(サンプル適応オフセット)部314、ま
たはALF315の少なくとも何れかに出力する。
The addition unit 312 adds, for each pixel, the PU prediction image input from the inter prediction image generation unit 309 or the intra prediction image generation unit 310 and the residual signal input from the inverse quantization / inverse DCT unit 311. Generate a PU decoded image. The addition unit 312 outputs the generated decoded image of the PU to at least one of the deblocking filter 313, the SAO (sample adaptive offset) unit 314, and the ALF 315 for each picture.

デブロッキングフィルタ313は、CU境界を介して互いに隣接する画素のデブロック前画素値の差が予め定められた閾値よりも小さい場合に、当該CU境界に対してデブロッキング処理を施すことによって、当該CU境界付近の画像の平滑化を行う。デブロッキングフィルタ313によりデブロッキング処理が施された画像は、デブロック済復号画像として、SAO部314に出力される。なお、デブロック前画素値とは、加算部312より出
力された画像における画素値である。
The deblocking filter 313 performs the deblocking process on the CU boundary when the difference between the pre-deblocking pixel values of the pixels adjacent to each other via the CU boundary is smaller than a predetermined threshold. The image near the CU boundary is smoothed. The image that has been subjected to the deblocking process by the deblocking filter 313 is output to the SAO unit 314 as a deblocked decoded image. The pre-deblocking pixel value is a pixel value in the image output from the adding unit 312.

SAO部314は、オフセットフィルタ前復号画像に対して、符号化データTeから復号
されたオフセットを用いたオフセットフィルタ処理を所定の単位毎に施すことによって、オフセットフィルタ済復号画像を生成する。なお、オフセットフィルタ前復号画像とは、加算部312より出力された画像、またはデブロッキングフィルタ313より出力されたデブロック済復号画像であり得る。
The SAO unit 314 generates an offset-filtered decoded image by performing, for each predetermined unit, an offset filter process using an offset decoded from the encoded data Te on the decoded image before the offset filter. Note that the decoded image before the offset filter may be an image output from the adding unit 312 or a deblocked decoded image output from the deblocking filter 313.

ALF315は、ALF前復号画像に対して、符号化データTeから復号されたALFパラメータALFPを用いた適応的フィルタ処理を施すことによって、ALF済復号画像を生成する。ALF済復号画像は、復号画像Tdとして外部に出力されると共に、エントロピー復号部301によって符号化データTeから復号されたPOC情報と関連付けて参照ピクチャメモリ306に格納される。ALF315の具体的な構成については、後述するため、ここでは説明を省略する。なお、ALF前復号画像とは、加算部312より出力された画像、デブロック済復号画像、またはオフセットフィルタ済復号画像であり得る。   The ALF 315 generates an ALF-completed decoded image by performing an adaptive filtering process on the pre-ALF decoded image using the ALF parameter ALFP decoded from the encoded data Te. The ALF-decoded image is output to the outside as a decoded image Td, and is stored in the reference picture memory 306 in association with the POC information decoded from the encoded data Te by the entropy decoding unit 301. Since the specific configuration of the ALF 315 will be described later, the description thereof is omitted here. The pre-ALF decoded image may be an image output from the adding unit 312, a deblocked decoded image, or an offset-filtered decoded image.

(画像符号化装置の構成)
次に、本実施形態に係る画像符号化装置11の構成について説明する。図6は、本実施形態に係る画像符号化装置11の構成を示すブロック図である。画像符号化装置11は、予測画像生成部101、減算部102、DCT・量子化部103、エントロピー符号化部1
04、逆量子化・逆DCT部105、加算部106、ループフィルタ107、予測パラメー
タメモリ(予測パラメータ記憶部、フレームメモリ)108、参照ピクチャメモリ(参照画像記憶部、フレームメモリ)109、符号化パラメータ決定部110、予測パラメータ符号化部111を含んで構成される。予測パラメータ符号化部111は、インター予測パラメータ符号化部112およびイントラ予測パラメータ符号化部113を含んで構成される。
(Configuration of image coding device)
Next, the configuration of the image encoding device 11 according to the present embodiment will be described. FIG. 6 is a block diagram illustrating a configuration of the image encoding device 11 according to the present embodiment. The image encoding device 11 includes a predicted image generation unit 101, a subtraction unit 102, a DCT / quantization unit 103, and an entropy encoding unit 1.
04, inverse quantization / inverse DCT section 105, adder section 106, loop filter 107, prediction parameter memory (prediction parameter storage section, frame memory) 108, reference picture memory (reference image storage section, frame memory) 109, encoding parameter It is configured to include a determination unit 110 and a prediction parameter encoding unit 111. The prediction parameter coding unit 111 includes an inter prediction parameter coding unit 112 and an intra prediction parameter coding unit 113.

予測画像生成部101は画像Tの各ピクチャについて、そのピクチャを分割した領域である符号化ユニットCU毎に予測ユニットPUの予測画像Pを生成する。ここで、予測画像生成部101は、予測パラメータ符号化部111から入力された予測パラメータに基づいて参照ピクチャメモリ109から復号済のブロックを読み出す。予測パラメータ符号化部111から入力された予測パラメータとは、例えばインター予測の場合、動きベクトルであ
る。予測画像生成部101は、対象PUを起点として動きベクトルが示す参照画像上の位置にあるブロックを読み出す。またイントラ予測の場合、予測パラメータとは例えばイントラ予測モードである。イントラ予測モードで使用する隣接PUの画素値を参照ピクチャメモリ109から読み出し、PUの予測画像Pを生成する。予測画像生成部101は、読み出し
た参照ピクチャブロックについて複数の予測方式のうちの1つの予測方式を用いてPUの予測画像Pを生成する。予測画像生成部101は、生成したPUの予測画像Pを減算部102に出力する。
For each picture of the image T, the predicted image generation unit 101 generates a predicted image P of the prediction unit PU for each coding unit CU that is a region obtained by dividing the picture. Here, the predicted image generation unit 101 reads a decoded block from the reference picture memory 109 based on the prediction parameters input from the prediction parameter encoding unit 111. The prediction parameter input from the prediction parameter coding unit 111 is, for example, a motion vector in the case of inter prediction. The predicted image generation unit 101 reads a block at a position on the reference image indicated by the motion vector starting from the target PU. In the case of intra prediction, the prediction parameter is, for example, an intra prediction mode. The pixel value of the adjacent PU used in the intra prediction mode is read from the reference picture memory 109, and a predicted image P of the PU is generated. The predicted image generation unit 101 generates a PU predicted image P using one of a plurality of prediction methods for the read reference picture block. The predicted image generation unit 101 outputs the generated PU predicted image P to the subtraction unit 102.

なお、予測画像生成部101は、既に説明した予測画像生成部308と同じ動作である。   The operation of the predicted image generation unit 101 is the same as the operation of the predicted image generation unit 308 described above.

予測画像生成部101は、予測パラメータ符号化部から入力されたパラメータを用いて、参照ピクチャメモリから読み出した参照ブロックの画素値をもとにPUの予測画像Pを生
成する。予測画像生成部101で生成した予測画像は減算部102、加算部106に出力される。
The predicted image generating unit 101 generates a PU predicted image P based on the pixel values of the reference block read from the reference picture memory using the parameters input from the prediction parameter encoding unit. The predicted image generated by the predicted image generation unit 101 is output to the subtraction unit 102 and the addition unit 106.

減算部102は、予測画像生成部101から入力されたPUの予測画像Pの信号値を、画像Tの対応するPUの画素値から減算して、残差信号を生成する。減算部102は、生成した残差信号をDCT・量子化部103に出力する。   The subtraction unit 102 generates a residual signal by subtracting the signal value of the predicted image P of the PU input from the predicted image generation unit 101 from the pixel value of the corresponding PU of the image T. Subtraction section 102 outputs the generated residual signal to DCT / quantization section 103.

DCT・量子化部103は、減算部102から入力された残差信号についてDCTを行い、DCT係数を算出する。DCT・量子化部103は、算出したDCT係数を量子化して量子化係数を
求める。DCT・量子化部103は、求めた量子化係数をエントロピー符号化部104およ
び逆量子化・逆DCT部105に出力する。
The DCT / quantization section 103 performs DCT on the residual signal input from the subtraction section 102 and calculates a DCT coefficient. The DCT / quantization unit 103 quantizes the calculated DCT coefficient to obtain a quantization coefficient. DCT / quantization section 103 outputs the obtained quantization coefficient to entropy encoding section 104 and inverse quantization / inverse DCT section 105.

エントロピー符号化部104には、DCT・量子化部103から量子化係数が入力され、
予測パラメータ符号化部111から符号化パラメータが入力される。入力される符号化パラメータには、例えば、参照ピクチャインデックスrefIdxLX、予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLX、予測モードpredMode、およびマージインデックスmerge_idx等の符号がある。
A quantization coefficient is input from the DCT / quantization unit 103 to the entropy encoding unit 104,
An encoding parameter is input from the prediction parameter encoding unit 111. The input coding parameters include codes such as a reference picture index refIdxLX, a prediction vector index mvp_LX_idx, a difference vector mvdLX, a prediction mode predMode, and a merge index merge_idx.

エントロピー符号化部104は、入力された量子化係数と符号化パラメータをエントロピー符号化して符号化ストリームTeを生成し、生成した符号化ストリームTeを外部に出力する。   The entropy coding unit 104 generates a coded stream Te by entropy coding the input quantization coefficients and coding parameters, and outputs the generated coded stream Te to the outside.

逆量子化・逆DCT部105は、DCT・量子化部103から入力された量子化係数を逆量子化してDCT係数を求める。逆量子化・逆DCT部105は、求めたDCT係数について逆DCTを行い、残差信号を算出する。逆量子化・逆DCT部105は、算出した残差信号を加算部10
6に出力する。
The inverse quantization / inverse DCT section 105 inversely quantizes the quantization coefficient input from the DCT / quantization section 103 to obtain a DCT coefficient. The inverse quantization / inverse DCT section 105 performs an inverse DCT on the obtained DCT coefficient to calculate a residual signal. The inverse quantization / inverse DCT section 105 adds the calculated residual signal to the addition section 10
6 is output.

加算部106は、予測画像生成部101から入力されたPUの予測画像Pの信号値と逆量子化・逆DCT部105から入力された残差信号の信号値を画素毎に加算して、復号画像を
生成する。加算部106は、生成した復号画像を参照ピクチャメモリ109に記憶する。
The addition unit 106 adds the signal value of the PU predicted image P input from the predicted image generation unit 101 and the signal value of the residual signal input from the inverse quantization / inverse DCT unit 105 for each pixel, and performs decoding. Generate an image. The adding unit 106 stores the generated decoded image in the reference picture memory 109.

ループフィルタ107は加算部106が生成した復号画像に対し、デブロッキングフィルタ114、SAO_E(サンプル適応オフセットエンコーダ)部115、適応ループフィル
タ(ALF)116を施す。
The loop filter 107 applies a deblocking filter 114, a SAO_E (sample adaptive offset encoder) unit 115, and an adaptive loop filter (ALF) 116 to the decoded image generated by the adding unit 106.

予測パラメータメモリ108は、符号化パラメータ決定部110が生成した予測パラメータを、符号化対象のピクチャおよびCU毎に予め定めた位置に記憶する。   The prediction parameter memory 108 stores the prediction parameter generated by the coding parameter determination unit 110 at a position predetermined for each picture to be coded and each CU.

参照ピクチャメモリ109は、ループフィルタ107が生成した復号画像を、符号化対象のピクチャおよびCU毎に予め定めた位置に記憶する。   The reference picture memory 109 stores the decoded image generated by the loop filter 107 at a predetermined position for each picture to be encoded and each CU.

符号化パラメータ決定部110は、符号化パラメータの複数のセットのうち、1つのセットを選択する。符号化パラメータとは、前述した予測パラメータやこの予測パラメータに関連して生成される符号化の対象となるパラメータである。予測画像生成部101は、これらの符号化パラメータのセットの各々を用いてPUの予測画像Pを生成する。   The coding parameter determination unit 110 selects one set from a plurality of sets of coding parameters. The coding parameter is the above-described prediction parameter or a parameter to be coded that is generated in association with the prediction parameter. The predicted image generation unit 101 generates a PU predicted image P using each of these sets of encoding parameters.

符号化パラメータ決定部110は、複数のセットの各々について情報量の大きさと符号化誤差を示すコスト値を算出する。コスト値は、例えば、符号量と二乗誤差に係数λを乗じた値との和である。符号量は、量子化誤差と符号化パラメータをエントロピー符号化して得られる符号化ストリームTeの情報量である。二乗誤差は、減算部102において算出された残差信号の残差値の二乗値についての画素間の総和である。係数λは、予め設定されたゼロよりも大きい実数である。符号化パラメータ決定部110は、算出したコスト値が最小となる符号化パラメータのセットを選択する。これにより、エントロピー符号化部104は、選択した符号化パラメータのセットを符号化ストリームTeとして外部に出力し、選択されなかった符号化パラメータのセットを出力しない。符号化パラメータ決定部110は決定した符号化パラメータを予測パラメータメモリ108に記憶する。   The encoding parameter determination unit 110 calculates a magnitude of the information amount and a cost value indicating an encoding error for each of the plurality of sets. The cost value is, for example, a sum of a code amount and a value obtained by multiplying a square error by a coefficient λ. The code amount is the information amount of the coded stream Te obtained by entropy coding the quantization error and the coding parameter. The square error is the sum of the squares of the residual values of the residual signals calculated by the subtraction unit 102 between pixels. The coefficient λ is a real number larger than a preset zero. The coding parameter determination unit 110 selects a set of coding parameters that minimizes the calculated cost value. As a result, the entropy encoding unit 104 outputs the selected set of encoding parameters to the outside as the encoded stream Te, and does not output the unselected set of encoding parameters. The coding parameter determination unit 110 stores the determined coding parameter in the prediction parameter memory 108.

予測パラメータ符号化部111は、符号化パラメータ決定部110から入力されたパラメータから、符号化するための形式を導出し、エントロピー符号化部104に出力する。符号化するための形式の導出とは、例えば動きベクトルと予測ベクトルから差分ベクトルを導出することである。また予測パラメータ符号化部111は、符号化パラメータ決定部110から入力されたパラメータから予測画像を生成するために必要なパラメータを導出し、予測画像生成部101に出力する。予測画像を生成するために必要なパラメータとは、例えばサブブロック単位の動きベクトルである。   The prediction parameter coding unit 111 derives a coding format from the parameters input from the coding parameter determination unit 110 and outputs the format to the entropy coding unit 104. Deriving a format for encoding is, for example, deriving a difference vector from a motion vector and a prediction vector. Further, the prediction parameter coding unit 111 derives parameters necessary for generating a predicted image from the parameters input from the coding parameter determination unit 110, and outputs the parameters to the predicted image generation unit 101. The parameter required to generate the predicted image is, for example, a motion vector in sub-block units.

インター予測パラメータ符号化部112は、符号化パラメータ決定部110から入力された予測パラメータに基づいて、差分ベクトルのようなインター予測パラメータを導出する。インター予測パラメータ符号化部112は、予測画像生成部101に出力する予測画像の生成に必要なパラメータを導出する構成として、インター予測パラメータ復号部303(図6等、参照)がインター予測パラメータを導出する構成と一部同一の構成を含む。インター予測パラメータ符号化部112の構成については、後述する。   The inter prediction parameter coding unit 112 derives an inter prediction parameter such as a difference vector based on the prediction parameter input from the coding parameter determination unit 110. The inter prediction parameter encoding unit 112 derives parameters necessary for generating a predicted image to be output to the predicted image generation unit 101, and the inter prediction parameter decoding unit 303 (see FIG. 6 and the like) derives the inter prediction parameters. Some configurations are the same as the configurations to be performed. The configuration of the inter prediction parameter coding unit 112 will be described later.

イントラ予測パラメータ符号化部113は、符号化パラメータ決定部110から入力されたイントラ予測モードIntraPredModeから、符号化するための形式(例えばmpm_idx、rem_intra_luma_pred_mode等)を導出する。 (SAO処理)
次にSAO(サンプル適応オフセット)部314について説明する。SAOはデブロッキングフ
ィルタ後に適用するフィルタであり、リンギング歪や量子化歪を除去する効果がある。SAOはCTU単位の処理であり、画素値をいくつかのカテゴリに分類して、カテゴリ毎に画素単位にオフセットを加減算するフィルタである。SAOはエッジオフセット(EO)とバンドオフセット(BO)の2種類のオフセットタイプを持ち、CTU内画素値のカテゴリ分類方法は、このオフセットタイプによって決まる。EOは対象画素と隣接画素(参照画素)との大小関係に応じて画素値をカテゴリ分類する。BOは対象画素の画素値の大きさにより、画素値をカテゴリ分類する。EO、BOともにカテゴリ毎に定められたオフセットを復号画素値(SAO部314への入力画像の画素値)に加算する。SAO部314には、予測画像と予測誤差を加算した復号画像、あるいは、さらにデブロッキングフィルタを適用した復号画像が入力されるが、以降ではSAO部314への入力画像は全て「復号画像」、入力画像の画素値は「復号画素値」と呼ぶ。
The intra prediction parameter coding unit 113 derives a coding format (for example, mpm_idx, rem_intra_luma_pred_mode, etc.) from the intra prediction mode IntraPredMode input from the coding parameter determination unit 110. (SAO processing)
Next, the SAO (sample adaptive offset) section 314 will be described. SAO is a filter applied after the deblocking filter, and has an effect of removing ringing distortion and quantization distortion. SAO is a process on a CTU basis, and is a filter that classifies pixel values into several categories and adds / subtracts an offset on a pixel basis for each category. SAO has two types of offset types, edge offset (EO) and band offset (BO), and the category classification method of the pixel values in the CTU is determined by the offset type. EO classifies pixel values into categories according to the magnitude relationship between a target pixel and an adjacent pixel (reference pixel). BO classifies pixel values into categories according to the magnitude of the pixel value of the target pixel. Both EO and BO add the offset determined for each category to the decoded pixel value (the pixel value of the image input to the SAO unit 314). To the SAO unit 314, a decoded image obtained by adding the prediction image and the prediction error, or a decoded image further applied with a deblocking filter is input, but hereinafter the input images to the SAO unit 314 are all `` decoded images '', The pixel values of the input image are called “decoded pixel values”.

図10はSAO部314のブロック図である。SAO部314はカテゴリ設定部1001、オフセット情報格納部1002、オフセット加算部1003からなる。カテゴリ設定部1001はエントロピー復号部301で復号したオフセットタイプ(type)、クラス(class)、あるいはバンド位置(band_position)と復号画像recが入力される。カテゴリ設定部1001は、これらを用いてカテゴリを設定する。オフセットタイプが0の場合はSAOを行わない(オフセット加算しない)。オフセットタイプが1の場合はBO、2の場合はEOを実施する。   FIG. 10 is a block diagram of the SAO unit 314. The SAO unit 314 includes a category setting unit 1001, an offset information storage unit 1002, and an offset addition unit 1003. The category setting unit 1001 receives the offset type (type), the class (class), or the band position (band_position) decoded by the entropy decoding unit 301 and the decoded image rec. The category setting unit 1001 sets a category using these. If the offset type is 0, do not perform SAO (do not add offset). If the offset type is 1, execute BO, and if it is 2, execute EO.

図11のフローチャートを参照して、カテゴリ設定部1001の動作を説明する。カテゴリ設定部1001は、S1101でオフセットタイプtypeをチェックし、EOならばS1102へ、BOならばS1105へ進む。S1102〜S1104はEOの処理、S1105〜S1106はBOの処理である。カテゴリ設定部1001は、オフセットタイプtypeがEOであれば S1102でクラスを参照して、対象画素Xの隣接画素を参照画素a、bとして設定する。   The operation of the category setting unit 1001 will be described with reference to the flowchart in FIG. The category setting unit 1001 checks the offset type in step S1101, and if EO, proceeds to step S1102, and if BO, proceeds to step S1105. S1102 to S1104 are EO processing, and S1105 to S1106 are BO processing. If the offset type is EO, the category setting unit 1001 refers to the class in S1102, and sets adjacent pixels of the target pixel X as reference pixels a and b.

EOのクラス(class)による参照画素の設定方法を図7に示す。classは、参照画素を対象画素からみた方向に対応し、参照画素の選択に用いられる。class=0の場合、参照画素a、bに対象画素Xの左右の画素を設定し、class=1の場合、a、bに対象画素Xの上下の画素を設定し、class=2の場合、a、bに対象画素Xの左上、右下の画素を設定し、class=3の場合
、a、bに対象画素Xの左下、右上の画素を設定する。
FIG. 7 shows a method of setting a reference pixel according to the EO class. The class corresponds to the direction in which the reference pixel is viewed from the target pixel and is used for selecting the reference pixel. If class = 0, set the reference pixels a and b to the left and right pixels of the target pixel X.If class = 1, set a and b to the upper and lower pixels of the target pixel X.If class = 2, set The upper left and lower right pixels of the target pixel X are set to a and b. If class = 3, the lower left and upper right pixels of the target pixel X are set to a and b.

次にカテゴリ設定部1001は、S1103で、対象画素Xと2つの参照画素a、bの画素値の差分sign(rec[X]-rec[a])、sign(rec[X]-rec[b])を用いてedgeIdxを導出する。   Next, in step S1103, the category setting unit 1001 sets the difference sign (rec [X] -rec [a]) and sign (rec [X] -rec [b) between the target pixel X and the two reference pixels a and b. ]) Is used to derive edgeIdx.

edgeIdx=sign(rec[X]-rec[a])+sign(rec[X]-rec[b])+2
sign(x) = 1 (x>0)
= 0 (x=0)
=-1 (x<0)
ここで、rec[x]は画素xの復号画素値を表す。
次にカテゴリ設定部1001は、S1104でedgeIdxからカテゴリcatを算出する。
edgeIdx = sign (rec [X] -rec [a]) + sign (rec [X] -rec [b]) + 2
sign (x) = 1 (x> 0)
= 0 (x = 0)
= -1 (x <0)
Here, rec [x] represents the decoded pixel value of pixel x.
Next, the category setting unit 1001 calculates a category cat from edgeIdx in S1104.

cat =(edgeIdx==2)?0:edgeIdx+1 (edgeIdx<=2)
=edgeIdx (edgeIdx>2)
class=0の場合のカテゴリcatの示す対象画素値Xと参照画素a、bの大小関係を図12に示す
。黒丸が対象画素X、Xの左側の白丸が参照画素a、Xの右側の白丸が参照画素bであり、縦
方向は画素値の大小関係を表す。
cat = (edgeIdx == 2)? 0: edgeIdx + 1 (edgeIdx <= 2)
= edgeIdx (edgeIdx> 2)
FIG. 12 shows the magnitude relationship between the target pixel value X indicated by the category cat and the reference pixels a and b when class = 0. The black circle is the target pixel X, the white circle to the left of X is the reference pixel a, the white circle to the right of X is the reference pixel b, and the vertical direction indicates the magnitude relationship of the pixel values.

カテゴリ設定部1001は、オフセットタイプtypeがBOであれば S1105で、図16に示すように0〜2N-1の画素値をバンドに分割する。N=8の場合、画素値は0〜255の範囲をとり、各バンドは8個の連続する画素値からなる。N=10の場合、画素値は0〜1023の範囲をとり、各バンドは32個の連続する画素値からなる。 If the offset type is BO, the category setting unit 1001 divides the pixel values of 0 to 2 N -1 into bands as shown in FIG. 16 in S1105. If N = 8, the pixel values range from 0 to 255, and each band consists of eight consecutive pixel values. If N = 10, the pixel values range from 0 to 1023, and each band consists of 32 consecutive pixel values.

カテゴリ設定部1001は、S1106で、カテゴリcatの0〜3に、エントロピー復号部301で復
号したバンド位置(band_position)が示すバンドから連続する4バンドをセットする。そして対象画素の画素値rec[X]が含まれるカテゴリが存在する場合、対象画素Xのカテゴリ
とする。
In S1106, the category setting unit 1001 sets four consecutive bands from the band indicated by the band position (band_position) decoded by the entropy decoding unit 301 to 0 to 3 of the category cat. If there is a category including the pixel value rec [X] of the target pixel, the category is set to the target pixel X.

オフセット情報格納部1002は、エントロピー復号部301で復号したオフセット(offset
)を格納する。
The offset information storage unit 1002 stores the offset (offset) decoded by the entropy decoding unit 301.
) Is stored.

オフセット加算部1003は、カテゴリ設定部1001で導出したカテゴリcatを用いて、オフ
セット情報格納部1002からオフセットoffset[cat]を読み出す。復号画素値をrec[X]とす
ると、オフセット加算部1003の出力画素値recsao[X]は
recsao[X]=rec[X]+offset[cat]
である。
The offset addition unit 1003 reads the offset offset [cat] from the offset information storage unit 1002 using the category cat derived by the category setting unit 1001. Assuming that the decoded pixel value is rec [X], the output pixel value recsao [X] of the offset adding unit 1003 is
recsao [X] = rec [X] + offset [cat]
It is.

(符号化装置におけるSAO)
画像符号化装置におけるSAOの動作を説明するため、図6のSAO_E部115のブロック図を
図17に示す。SAO_E部115はSAO情報設定部1701とSAO部314からなる。SAO部314は図10
と同じであり、説明は省略する。SAO情報設定部1701はオフセット算出部1702とオフセッ
ト情報選択部1703からなる。
(SAO in encoder)
FIG. 17 is a block diagram of the SAO_E unit 115 of FIG. 6 for explaining the operation of SAO in the image encoding device. SAO_E section 115 includes SAO information setting section 1701 and SAO section 314. The SAO unit 314 is shown in FIG.
The description is omitted. The SAO information setting section 1701 includes an offset calculation section 1702 and an offset information selection section 1703.

ますオフセット情報算出部1702を説明する。オフセット情報算出部1702は、EOの各クラス(0〜3)およびBOのオフセットを算出する。オフセットタイプがEOの場合、クラス毎に各画素のカテゴリ設定を行い、設定したカテゴリ毎のオフセットを算出する。具体的な動作を、図18を用いて説明する。   First, the offset information calculation unit 1702 will be described. The offset information calculation unit 1702 calculates the offset of each class of EO (0 to 3) and BO. If the offset type is EO, the category of each pixel is set for each class, and the offset for each set category is calculated. A specific operation will be described with reference to FIG.

オフセット算出部1702は、S1801で、クラス(class)、count[class][cat]、SAD
[class][cat]を初期化する。ここでcount[class][cat]はCTU内の(class、cat)の組み合わせ毎の画素数をカウントする変数、SAD[class][cat]はCTU内の(class、cat)の組み合わせ毎の復号画素値と原画素との絶対差分和を格納する変数である。
In step S1801, the offset calculation unit 1702 determines the class (class), count [class] [cat], and SAD
Initialize [class] [cat]. Here, count [class] [cat] is a variable that counts the number of pixels for each combination of (class, cat) in the CTU, and SAD [class] [cat] is decoding for each combination of (class, cat) in the CTU. This variable stores the sum of absolute differences between the pixel value and the original pixel.

オフセット算出部1702は、S1802とS1803でEOのオフセットを算出する。S1702では、対
象画素Xに対し、クラスが示す参照画素aとbをセットし、カテゴリcatを導出する。現在のクラスに対し、count[class][cat]を1インクリメントする。また現在のクラスにおいて
、復号画素値と原画素との絶対差分をSAD[class][cat]に加算する。
The offset calculation unit 1702 calculates the offset of EO in S1802 and S1803. In S1702, the reference pixels a and b indicated by the class are set for the target pixel X, and a category cat is derived. Increment count [class] [cat] by 1 for the current class. In the current class, the absolute difference between the decoded pixel value and the original pixel is added to SAD [class] [cat].

SAD[class][cat]+=|rec(X)-org[X]|
CTU内の全画素に対し上記の処理を行う。
SAD [class] [cat] + = | rec (X) -org [X] |
The above processing is performed on all the pixels in the CTU.

オフセット算出部1702は、S1803でカテゴリ1〜4に対し、下記の式を用いてオフセットoffset[class][cat]を算出し、クラスを1インクリメントする。   The offset calculation unit 1702 calculates the offset offset [class] [cat] for the categories 1 to 4 using the following formula in S1803, and increments the class by one.

offset[class][cat]=SAD[class][cat]/count[class][cat]
なおカテゴリ0のオフセットは0にセットする。
offset [class] [cat] = SAD [class] [cat] / count [class] [cat]
The offset of category 0 is set to 0.

オフセット算出部1702は、S1804でclass=4(EOがすべて終了)であれば、S1805に進み
、そうでなければS1802とS1803を繰り返す。
If class = 4 in S1804 (all EOs have been completed), the offset calculation unit 1702 proceeds to S1805, otherwise repeats S1802 and S1803.

オフセット算出部1702は、S1805とS1806でBOのオフセットを算出する。S1805で対象画
素の復号画素値rec[X]の属するバンドiを求め、バンドiの差分和SAD[class][i]にrec[X]
とorg[X]の差分を加算する。またバンドiのカウントを1インクリメントする。
The offset calculation unit 1702 calculates the offset of BO in S1805 and S1806. In step S1805, the band i to which the decoded pixel value rec [X] of the target pixel belongs is obtained, and the difference sum SAD [class] [i] of the band i is rec [X].
And the difference between org [X]. Also, the count of band i is incremented by one.

i=Rec[X]>>5
SAD[class][i]+=(rec[X]-org[X])
count[class][i]++
オフセット算出部1702は、S1806で32個のバンドi(i=0〜31)に対し、各々オフセット
を算出する。
i = Rec [X] >> 5
SAD [class] [i] + = (rec [X] -org [X])
count [class] [i] ++
The offset calculation unit 1702 calculates the offset for each of the 32 bands i (i = 0 to 31) in S1806.

offset[class][i]=SAD[class][i]/count[class][i]
以上でEO(class=0〜3)の各カテゴリ(cat=1〜4)のオフセット、およびBO(class=4
)の各バンド(i=0〜31)のオフセットを各々算出した。
offset [class] [i] = SAD [class] [i] / count [class] [i]
The offset of each category (cat = 1 to 4) of EO (class = 0 to 3) and BO (class = 4
) Was calculated for each band (i = 0 to 31).

オフセット情報選択部1703は、オフセット算出部1702で算出したオフセットを用いて、オフセットタイプ(EO/BO)と、EOの場合はクラス、BOの場合はバンド位置を選択する。
図19はオフセット情報選択部1703の動作を示すフローチャートである。
The offset information selection unit 1703 uses the offset calculated by the offset calculation unit 1702 to select an offset type (EO / BO), a class for EO, and a band position for BO.
FIG. 19 is a flowchart showing the operation of the offset information selection unit 1703.

オフセット情報選択部1703は、S1901で、クラスclass(0〜3)と絶対差分和SAD[class]を初期化する。絶対差分和SAD[class]は、SAOを適用した(オフセットを加算した)画素
値と原画素値の絶対差分和を格納する変数である。
In step S1901, the offset information selection unit 1703 initializes the class class (0 to 3) and the absolute difference sum SAD [class]. The absolute difference sum SAD [class] is a variable that stores an absolute difference sum between a pixel value to which SAO is applied (to which an offset is added) and an original pixel value.

絶対差分和SAD[class]は、S1902で、クラスで示される参照画素a、bをセットし、CTUの各画素毎に上述の方法でカテゴリを導出し、各カテゴリに割り当てられたオフセットを用いて絶対差分和SADを算出する。   In S1902, the absolute difference sum SAD [class] sets the reference pixels a and b indicated by the class, derives the category for each pixel of the CTU in the above-described manner, and uses the offset assigned to each category. Calculate the absolute difference sum SAD.

SAD[class]+=|rec[X]+offset[class][cat]-org[X]|
なおカテゴリ0のオフセットは0にセットする。rec[X]+offset[class][cat]は(class、cat)の組み合わせ時のSAOの値であり、これと原画素値org[X]との絶対差分をクラス毎にSADに加算する。CTU内の全画素の処理が終了すれば、クラスを1インクリメントする。
SAD [class] + = | rec [X] + offset [class] [cat] -org [X] |
The offset of category 0 is set to 0. rec [X] + offset [class] [cat] is the value of SAO when (class, cat) is combined, and the absolute difference between this and the original pixel value org [X] is added to the SAD for each class. When the processing of all the pixels in the CTU is completed, the class is incremented by one.

オフセット情報選択部1703は、S1903で、クラスが4に等しいか否かをチェックする。クラスが4に等しくなければ、4になるまでS1902の処理を行う。クラスが4に等しい場合、EOの全クラスの処理が終了したことになり、S1904に進む。   In step S1903, the offset information selection unit 1703 checks whether the class is equal to 4. If the class is not equal to 4, the process of S1902 is performed until the class becomes 4. If the class is equal to 4, it means that the processing of all classes of EO has been completed, and the process proceeds to S1904.

オフセット情報選択部1703は、S1904で、SAD[i](i=0〜3)が最小となるiを求め、これをEOのクラスとする。   In step S1904, the offset information selection unit 1703 obtains i that minimizes SAD [i] (i = 0 to 3), and sets this as the class of EO.

SADEO=min(SAD[i])、class=左記を満たすi
オフセット情報選択部1703は、S1905で、CTUの各バンドに対し、SAOを適用した(オフ
セットを加算した)画素値と原画素値との絶対差分和を計算する。具体的には、対象画素Xのバンドiと、オフセット算出部1702で求めた各バンドのオフセットoffset[class][i]を用いて、4つの連続するバンドに属する画素のSAOを適用した画素値rec[X]+oftと原画素値org[X]の絶対差分和を計算する。ここで、
i=rec[X]>>5
oft =offset[class=4][j] (j<=i<=j+3)
=0 (otherwise)
SAD[i]=|rec[X]+oft-org[X]|
とする。そしてCTUの全画素に対し上記処理を施した後、jを1インクリメントする。
SAD EO = min (SAD [i]), class = i that satisfies
In step S1905, the offset information selection unit 1703 calculates, for each band of the CTU, the absolute difference sum between the pixel value to which SAO has been applied (to which the offset has been added) and the original pixel value. Specifically, using the band i of the target pixel X and the offset offset [class] [i] of each band obtained by the offset calculation unit 1702, a pixel value to which SAO of pixels belonging to four consecutive bands is applied Calculate the absolute difference sum of rec [X] + oft and original pixel value org [X]. here,
i = rec [X] >> 5
oft = offset [class = 4] [j] (j <= i <= j + 3)
= 0 (otherwise)
SAD [i] = | rec [X] + oft-org [X] |
And Then, after the above processing is performed on all the pixels of the CTU, j is incremented by one.

オフセット情報選択部1703は、S1906で、i<29であるか否かをチェックする。i<32であ
れば、処理を終了していないバンドがあるので、j=32になるまでS1905を繰り返す。i=32
の場合、全バンドに対し処理が終了したので、S1907に進む。
In step S1906, the offset information selection unit 1703 checks whether i <29. If i <32, there are bands for which processing has not been completed, and S1905 is repeated until j = 32. i = 32
In the case of, since the processing has been completed for all the bands, the process proceeds to S1907.

オフセット情報選択部1703は、S1907で、SAD[j]が最小となるj(j=0〜31)を現CTUのBOのバンド位置(band_position)に設定する。   In step S1907, the offset information selection unit 1703 sets j (j = 0 to 31) at which SAD [j] is minimum to the band position (band_position) of the BO of the current CTU.

SADBO=min(SAD[j])、band_position=左記を満たすj
オフセット情報選択部1703は、S1908で、SAOEOとSAOBOの大小関係を比較する。SAOBOが大きい場合、S1909に進み、現CTUのオフセットタイプ(type)をEOにセットする。そうでない場合、S1910に進み、現CTUのオフセットタイプ(type)をBOにセットする。
SAD BO = min (SAD [j]), band_position = j that satisfies the following
In step S1908, the offset information selection unit 1703 compares the magnitude relationship between SAO EO and SAO BO . If the SAO BO is large, the process advances to S1909 to set the offset type (type) of the current CTU to EO. Otherwise, the process proceeds to S1910, where the offset type (type) of the current CTU is set to BO.

以上がオフセット情報選択部1703で実施される処理である。   The above is the processing performed by the offset information selection unit 1703.

SAO情報設定部1701で算出したオフセット情報(オフセット、オフセットタイプ、クラ
ス、バンド位置)はSAO部314に入力される。SAO部314の動作は上述と同じであり、説明を省略する。
The offset information (offset, offset type, class, band position) calculated by SAO information setting section 1701 is input to SAO section 314. The operation of SAO section 314 is the same as described above, and description thereof will be omitted.

(PO処理)
上記で説明したSAO(特にEO)は、1次元(上下、左右、斜め)方向の画素値を用いた
フィルタであったが、このSAOの前に2次元方向の画素値を用いたフィルタをかけること
ができる。このフィルタをピークSAO(peak SAO:PO)と呼ぶ。図20にPOおよびSAOのブロック図を示す。PO部2001はエントロピー復号部301で復号したPOオフセット情報(Cmax
、NF、オフセット等)と、復号画像を入力し、PO処理を行い、結果の画像をSAO部314に出力する。
(PO processing)
Although the SAO (especially EO) described above is a filter using pixel values in one-dimensional (up, down, left, right, and oblique) directions, a filter using two-dimensional pixel values is applied before this SAO. be able to. This filter is called peak SAO (peak SAO: PO). FIG. 20 shows a block diagram of the PO and SAO. The PO unit 2001 outputs the PO offset information (Cmax) decoded by the entropy decoding unit 301.
, NF, offset, etc.) and the decoded image, perform the PO processing, and output the resulting image to the SAO unit 314.

PO部2001は、POカテゴリ/POクラス設定部2002、オフセット情報格納部2003、POオフセ
ット加算部2004からなる。POカテゴリ/POクラス設定部2002は、復号画像の画素値から画
素毎に算出したPOカテゴリを用いてPOクラスを設定する。オフセット情報格納部2003は、エントロピー復号部301で復号したPOオフセット情報を格納する。POオフセット加算部2004は、POクラス、POカテゴリで指定されたオフセットを復号画像に加算し、結果をSAO部314に出力する。
The PO unit 2001 includes a PO category / PO class setting unit 2002, an offset information storage unit 2003, and a PO offset adding unit 2004. The PO category / PO class setting unit 2002 sets the PO class using the PO category calculated for each pixel from the pixel value of the decoded image. The offset information storage unit 2003 stores the PO offset information decoded by the entropy decoding unit 301. PO offset addition section 2004 adds the offset specified by the PO class and the PO category to the decoded image, and outputs the result to SAO section 314.

POカテゴリ/POクラス設定部2002の動作を図21のフローチャートで説明する。POカテ
ゴリ/POクラス設定部2002は、S2101で、対象画素の参照画素を設定する。図13に対象画素Xと参照画素c0〜c3との位置関係を示す。POカテゴリ/POクラス設定部2002は、S2102で、CTU内の各画素Xに対し、下式により対象画素Xの参照画素ci(i=0〜3)と対象画素Xの大小
関係を調べる。
The operation of the PO category / PO class setting unit 2002 will be described with reference to the flowchart of FIG. In S2101, the PO category / PO class setting unit 2002 sets a reference pixel of the target pixel. FIG. 13 shows the positional relationship between the target pixel X and the reference pixels c0 to c3. In S2102, the PO category / PO class setting unit 2002 checks the magnitude relationship between the reference pixel ci (i = 0 to 3) of the target pixel X and the target pixel X for each pixel X in the CTU according to the following equation.

3
ML=Σlgr(rec(ci)-rec(X))
i=0
3
MS=Σsml(rec(ci)-rec(X))
i=0
M =max(ML、MS)
ここで
lgr(x)=(x>0)?1:0
sml(x)=(x<0)?1:0
である。
Three
M L = Σlgr (rec (ci) -rec (X))
i = 0
Three
M S = Σsml (rec (ci) -rec (X))
i = 0
M = max (M L , M S )
here
lgr (x) = (x> 0)? 1: 0
sml (x) = (x <0)? 1: 0
It is.

POカテゴリ/POクラス設定部2002は、S2103でカテゴリpcatを設定する。   The PO category / PO class setting unit 2002 sets the category pcat in S2103.

pcat=0 (M=3)
1 (M=4)
2 (otherwise)
POカテゴリ/POクラス設定部2002は、S2104でPOクラスcidを算出する。
pcat = 0 (M = 3)
1 (M = 4)
2 (otherwise)
The PO category / PO class setting unit 2002 calculates the PO class cid in S2104.

3
cid=Σ|rec(ci)-rec(X)|/(M*(1<<NF)
i=0
ここでΣは、M= MLの場合はlgr(rec(ci)-rec(X))=1を満たすiについての和を計算し、M=
MSの場合はsml(rec(ci)-rec(X))=1を満たすiについての和を計算する。NFはエントロピー復号部301で復号された正規化係数である。
Three
cid = Σ | rec (ci) -rec (X) | / (M * (1 << NF)
i = 0
Here Σ, if the M = M L sums of i satisfying lgr (rec (ci) -rec ( X)) = 1, M =
For M S computing the sum of i satisfying sml (rec (ci) -rec ( X)) = 1. NF is a normalization coefficient decoded by the entropy decoding unit 301.

POカテゴリ/POクラス設定部2002は、S2105で、POクラスc_idを下記のように決定する。   In S2105, the PO category / PO class setting unit 2002 determines the PO class c_id as follows.

c_id=cid (cid<Cmax)
=Cmax (otherwise)
ここでCmaxはエントロピー復号部301で復号されたPOクラスの最大値であり、POクラス
数が大きくなりすぎることを防ぐ。
c_id = cid (cid <Cmax)
= Cmax (otherwise)
Here, Cmax is the maximum value of the PO class decoded by the entropy decoding unit 301, and prevents the number of PO classes from becoming too large.

POオフセット加算部2004は、POカテゴリ/POクラス設定部2002で算出された、対象画素
のPOカテゴリとPOクラスを用いて適用するオフセットを決定し、対象画素値rec[X]にオフセットを加算し、フィルタ処理された対象画素値recpo[X]を算出する。
The PO offset addition unit 2004 determines an offset to be applied using the PO category and the PO class of the target pixel calculated by the PO category / PO class setting unit 2002, and adds the offset to the target pixel value rec [X]. , And calculates a filtered target pixel value recpo [X].

recpo[X]=rec[X]+offset[c_id][pcat]
(符号化装置におけるPO)
符号化装置においてPO処理を実行するPO_E部の動作を、図22のブロック図を用いて説明する。PO_E部2201は、POカテゴリ、POクラス毎にオフセットを算出するPOオフセット算出部2202と、PO部2001からなる。PO部2001は上述と同じため、説明を省略する。PO_E部2201で算出したオフセット情報(Cmax、NF、オフセット)はエントロピー符号化部104に
出力され、フィルタ処理された画像はSAO_E部115に出力される。
recpo [X] = rec [X] + offset [c_id] [pcat]
(PO in the encoding device)
The operation of the PO_E unit that executes the PO processing in the encoding device will be described with reference to the block diagram of FIG. The PO_E unit 2201 includes a PO offset calculation unit 2202 that calculates an offset for each PO category and PO class, and a PO unit 2001. Since the PO unit 2001 is the same as described above, the description is omitted. The offset information (Cmax, NF, offset) calculated by the PO_E unit 2201 is output to the entropy encoding unit 104, and the filtered image is output to the SAO_E unit 115.

POオフセット算出部2202の動作を図23のフローチャートを用いて説明する。   The operation of the PO offset calculator 2202 will be described with reference to the flowchart in FIG.

POオフセット算出部2202は、S2301で、各POクラスc_idとPOカテゴリpcatの組み合わせ
毎に画素数をカウントする変数count[c_id][pcat]と、対象画素の復号画素値と原画素値
の絶対差分和を格納するSAD[c_id][pcat]を初期化する。
In step S2301, the PO offset calculation unit 2202 calculates a variable count [c_id] [pcat] for counting the number of pixels for each combination of the PO class c_id and the PO category pcat, and an absolute difference between the decoded pixel value of the target pixel and the original pixel value. Initialize SAD [c_id] [pcat] that stores the sum.

POオフセット算出部2202は、S2302で、対象画素の参照画素c0〜c3を設定し、図21と
同様の方法でPOカテゴリを導出する。CTUの全画素に対し前記処理を行い、POカテゴリ毎
に、対象画素Xの復号画素値rec[X]と原画素値org[X]の絶対差分の分布を求める。
In step S2302, the PO offset calculation unit 2202 sets the reference pixels c0 to c3 of the target pixel, and derives the PO category in the same manner as in FIG. The above processing is performed on all pixels of the CTU, and the distribution of the absolute difference between the decoded pixel value rec [X] of the target pixel X and the original pixel value org [X] is obtained for each PO category.

POオフセット算出部2202は、S2303で、S2302で求めた分布の最大値から対象画素Xの正
規化係数NFとPOクラスの最大値Cmaxを導出する。例えば、分布の最大値をPmaxとすると、
Cmax=Pmax/2
NF=Ceil(log2(Pmax/Cmax))
あるいは分布の最頻値Pfreqを用いて
Cmax=min(Pmax/2,Pfreq)
としてもよい。
In step S2303, the PO offset calculation unit 2202 derives the normalization coefficient NF of the target pixel X and the maximum value Cmax of the PO class from the maximum value of the distribution obtained in step S2302. For example, if the maximum value of the distribution is Pmax,
Cmax = Pmax / 2
NF = Ceil (log2 (Pmax / Cmax))
Or using the mode Pfreq of the distribution
Cmax = min (Pmax / 2, Pfreq)
It may be.

POオフセット算出部2202は、S2304で、図21のフローチャートで説明した方法で対象
画素XのPOカテゴリ、POクラスを抽出し、各POカテゴリとPOクラスの絶対差分和SAD[c_id][pcat]に、対象画素Xの復号画素値と原画素値の絶対差分を加算する。
In step S2304, the PO offset calculation unit 2202 extracts the PO category and the PO class of the target pixel X by the method described with reference to the flowchart of FIG. 21 and adds the absolute difference sum SAD [c_id] [pcat] between each PO category and the PO class. , The absolute difference between the decoded pixel value of the target pixel X and the original pixel value is added.

POオフセット算出部2202は、S2305で、POカテゴリとPOクラス毎にオフセットを算出す
る。
In S2305, the PO offset calculating unit 2202 calculates an offset for each PO category and PO class.

offset[c_id][pcat]=SAD[c_id][pcat]/count[c_id][pcat]
以上の処理により、SAOでは考慮できなかった2次元方向の画素値の変化を用いてフィ
ルタ処理ができる。
offset [c_id] [pcat] = SAD [c_id] [pcat] / count [c_id] [pcat]
Through the above processing, the filter processing can be performed using the change in the pixel value in the two-dimensional direction, which cannot be considered in SAO.

上記の説明はPOとSAOを共に使用する例であった。POは画像の2次元方向の画素値の変
化を用い、SAOのオフセットタイプEOは1次元方向の画素値の変化を用いる違いはあるが
、双方とも対象画素と参照画素との画素値の変化を用いる点で類似しており、POとSAOの
組み合わせ方法を変更することで、さらに双方の特性を活かした処理が可能になる。 本発明の一つの実施形態では、POの参照画素を図14に示す(a)水平・垂直方向と(b)斜め方向の2種類からCTU毎にフラグ(flag)を用いて選択する。この処理を実現するため
のPO部2001のPOカテゴリ/POクラス設定部2002の動作を図25のフローチャートを用いて
説明する。
The above description is an example of using both PO and SAO. PO uses the change in the pixel value in the two-dimensional direction of the image, and the offset type EO of SAO uses the change in the pixel value in the one-dimensional direction. There is a difference, but both use the change in the pixel value between the target pixel and the reference pixel. It is similar in terms of use, and by changing the combination method of PO and SAO, processing that further utilizes both characteristics can be performed. In one embodiment of the present invention, a reference pixel of PO is selected from two types shown in FIG. 14 (a) horizontal / vertical direction and (b) diagonal direction using a flag for each CTU. The operation of the PO category / PO class setting unit 2002 of the PO unit 2001 for realizing this processing will be described with reference to the flowchart of FIG.

図25は、図21のS2101をS25010〜S25012に置き換えたもので、その他のステップに
は変更はない。POカテゴリ/POクラス設定部2002は、S25010で、エントロピー復号部301で復号したフラグ(flag)をチェックする。フラグが0の場合、S25011に進み、対象画素Xの参照画素ci(i=0〜3)を図14(a)に示す水平・垂直方向の画素にセットする。そうで
ない場合、S25012に進み、対象画素Xの参照画素ci(i=0〜3)を図14(b)に示す斜め方向の画素にセットする。
FIG. 25 is obtained by replacing S2101 in FIG. 21 with S25010 to S25012, and the other steps are not changed. The PO category / PO class setting unit 2002 checks the flag (flag) decoded by the entropy decoding unit 301 in S25010. If the flag is 0, the process advances to step S25011 to set the reference pixel ci (i = 0 to 3) of the target pixel X to horizontal and vertical pixels shown in FIG. If not, the process advances to step S25012 to set the reference pixel ci (i = 0 to 3) of the target pixel X to a diagonal pixel shown in FIG. 14B.

符号化装置では、PO_E部2201のオフセット算出部2202の動作を示す図23のフローチャートにおいて、選択可能な参照画素が水平・垂直方向と斜め方向の2種類に増えるので、各々の参照画素に対しS2301〜S2305の処理を実行する。そして図14の2種類の参照画素に対してS2304で求めた絶対差分和SAD[c=id][pcat]を比較し、小さい方の参照画素を採用する。そして絶対差分和SADが小さい方の参照画素位置は図14の(a)か(b)かを示す
フラグ、この参照画素を使用して算出したオフセット、Cmax、NFをエントロピー符号化部104に出力する。
In the encoding device, in the flowchart of FIG. 23 showing the operation of the offset calculation unit 2202 of the PO_E unit 2201, the number of selectable reference pixels increases to two types, that is, a horizontal / vertical direction and an oblique direction. To S2305. Then, the absolute difference sum SAD [c = id] [pcat] obtained in S2304 is compared with the two types of reference pixels in FIG. 14, and the smaller reference pixel is adopted. A flag indicating whether the absolute difference sum SAD is smaller is a flag indicating whether (a) or (b) in FIG. 14 and an offset, Cmax, and NF calculated using this reference pixel are output to the entropy encoder 104. I do.

このように、フラグを用いてPOの参照画素位置を水平・垂直方向あるいは斜め方向のどちらかに設定することで、斜め方向の画素値の変化を考慮しつつ、最適な参照方向を選択し、オフセット加算により画素値を補正することができる。
〔変形例1〕
本発明の別の実施形態として、POの処理によってSAOのオフセットタイプEOの処理を変
更する例を説明する。具体的にはPOでオフセットを加算した画素であるか、加算しなかった画素であるかに応じて、SAOのオフセットタイプEOの処理を変更する。上記のPOの構成
では、POカテゴリが2の場合、オフセットを加算しない。つまり、対象画素と参照画素の
2次元方向の画素値の変化をチェックした時にオフセットの加算が必要ないということである。しかし、上述のSAOのEOでは、対象画素と参照画素の1次元方向の画素値の変化を
チェックし、さらにオフセットを加算することがある。しかしながら、POカテゴリが2以
外の画素ではすでにPOでオフセット処理を実施しているので、少なくともSAOのEOの処理
は実施しないことが適当である(画素のオフセットタイプがBOの場合は上述の通り実施する)。
In this way, by setting the reference pixel position of the PO in either the horizontal / vertical direction or the diagonal direction using the flag, the optimal reference direction is selected while considering the change in the pixel value in the diagonal direction, The pixel value can be corrected by offset addition.
[Modification 1]
As another embodiment of the present invention, an example in which the processing of the offset type EO of the SAO is changed by the processing of the PO will be described. Specifically, the processing of the offset type EO of the SAO is changed depending on whether the pixel is the pixel to which the offset has been added by the PO or the pixel to which the offset has not been added. In the above PO configuration, when the PO category is 2, no offset is added. That is, it is not necessary to add an offset when checking a change in the two-dimensional pixel value between the target pixel and the reference pixel. However, in the EO of SAO described above, a change in the pixel value of the target pixel and the reference pixel in the one-dimensional direction may be checked, and an offset may be added. However, it is appropriate to not perform at least the SAO EO processing for pixels with a PO category other than 2 because the PO has already performed the offset processing. Do).

変形例1のPO部2001におけるPOカテゴリ/POクラス設定部2002の動作を、図26を用い
て説明する。図26は、図21のS2103の後にS26030〜S26032を追加しており、その他の
ステップには変更はない。POカテゴリ/POクラス設定部2002は、S26030で、S2103において設定したPOカテゴリpcatを参照し、pcatが2か否かを判定する。pcatが2(PO部ではオフセットを加算しないカテゴリ)の場合、S26031に進み、対象画素Xのmaskを1にセットする。pcatが2でない(PO部ではオフセットを加算するカテゴリ)の場合、S26032に進み、対象
画素Xのmaskを0にセットする。maskはCTU内の全画素に各々割り当てられた変数である。
The operation of the PO category / PO class setting unit 2002 in the PO unit 2001 of the first modification will be described with reference to FIG. FIG. 26 adds S26030 to S26032 after S2103 in FIG. 21, and the other steps are not changed. In S26030, the PO category / PO class setting unit 2002 refers to the PO category pcat set in S2103, and determines whether pcat is 2 or not. If pcat is 2 (a category in which no offset is added in the PO section), the flow advances to S26031 to set the mask of the target pixel X to 1. If pcat is not 2 (the category to which the offset is added in the PO section), the process proceeds to S26032, and the mask of the target pixel X is set to 0. mask is a variable assigned to each pixel in the CTU.

次にPOの後で行うSAOの処理を図27のフローチャートを用いて説明する。図27は、
図11のS1104の後にS27040〜S27041を追加したもので、その他のステップは同じである
。SAO部314のカテゴリ設定部1001は、S27040で、PO部2001でセットした対象画素Xのmask
をチェックし、1でない(PO部でオフセットを加算する)場合、S27041に進み、1次元SAOであるEOのカテゴリcatを、オフセットを加算しないカテゴリの0にセットする(EOを行わない)。
Next, the SAO process performed after the PO will be described with reference to the flowchart in FIG. FIG.
S27040 to S27041 are added after S1104 in FIG. 11, and the other steps are the same. In S27040, the category setting unit 1001 of the SAO unit 314 sets the mask of the target pixel X set in the PO unit 2001.
Is checked, and if it is not 1 (the offset is added in the PO section), the process proceeds to S27041, where the category cat of the EO which is a one-dimensional SAO is set to 0 of the category to which the offset is not added (EO is not performed).

以上の動作により、2次元オフセット加算フィルタであるPO時にオフセットを加算しなかった画素のみを1次元オフセット加算フィルタであるEOのオフセット加算の候補とすることで、2次元方向の画素値の変化からはオフセットの加算が不要でも、1次元方向の画素値の変化からはオフセットの加算が必要な場合に、適切にオフセットを加算することができ、かつ、POとEOという似た処理を二重に実施することを回避することができる。   By the above operation, only the pixels for which no offset was added at the time of the PO, which is the two-dimensional offset addition filter, are candidates for the offset addition of the EO, which is the one-dimensional offset addition filter. If the addition of an offset is not necessary, the offset can be appropriately added when the offset needs to be added from the change in the pixel value in the one-dimensional direction, and the similar processing of PO and EO is doubled. Implementation can be avoided.

なお、変形例1に対しても、実施形態1で説明した参照画素位置の切替を適用することができる。この場合、図26のS2101を、図25のS25010〜S25012に置き換えればよく、
それ以外のステップは同じである。
〔変形例2〕
本発明の別の実施例として、POとSAOの実行順序を変更する例を説明する。図28は復
号装置側のブロック図、図29は符号化装置側のブロック図であり、双方とも実施形態2と構成要素は同じであるが、POとSAOの実行順序が異なっている。変形例2では、SAOのオフセットタイプがEO、かつ、オフセットを加算した画素(画素のカテゴリcatが0以外の画素、つまり画素のカテゴリcatがオフセットを加算するカテゴリの画素)を、後続のPOの
オフセットを加算する画素の候補とする。つまり、EOで1次元方向の画素値の変化を考慮した画素に対し、さらに2次元方向の画素値の変化を考慮した補正を行う。
The switching of the reference pixel position described in the first embodiment can be applied to the first modification. In this case, S2101 in FIG. 26 may be replaced with S25010 to S25012 in FIG.
Other steps are the same.
[Modification 2]
As another embodiment of the present invention, an example in which the execution order of PO and SAO is changed will be described. FIG. 28 is a block diagram on the decoding device side, and FIG. 29 is a block diagram on the encoding device side. Both have the same components as those in the second embodiment, but the execution order of PO and SAO is different. In the second modification, a pixel whose SAO offset type is EO and an offset is added (a pixel whose pixel category cat is other than 0, that is, a pixel whose category is a pixel category cat to which an offset is added) is assigned to a subsequent PO. It is assumed that the pixel to which the offset is added is a candidate. That is, the EO performs a correction in consideration of the change in the pixel value in the two-dimensional direction with respect to the pixel in consideration of the change in the pixel value in the one-dimensional direction.

変形例2のSAO部314のカテゴリ設定部1001の動作を図30のフローチャートで説明する。図30は、図11のS1104の後にS30000〜S30002を追加し、また図11のS1106の後にS30060を追加したものであり、それ以外のステップは同じである。   The operation of the category setting unit 1001 of the SAO unit 314 according to Modification 2 will be described with reference to the flowchart of FIG. FIG. 30 is obtained by adding S30000 to S30002 after S1104 in FIG. 11, and adding S30060 after S1106 in FIG. 11, and the other steps are the same.

SAO部314のカテゴリ設定部1001は、S30000で、S1104で設定したカテゴリcatが0か否か
をチェックする。カテゴリcatが0(EOでオフセット加算しない)の場合、S30001に進み、対象画素のmaskを0にセットする。カテゴリcatが0でない(EOでオフセット加算する)の
場合、S30002に進み、対象画素のmaskを1にセットする。カテゴリ設定部1001は、S30060
で、対象画素のmaskを0にセットする。maskはCTU内の全画素に各々割り当てられた変数である。
In S30000, the category setting unit 1001 of the SAO unit 314 checks whether the category cat set in S1104 is 0. If the category cat is 0 (no offset addition by EO), the process advances to S30001 to set the mask of the target pixel to 0. If the category cat is not 0 (the offset is added by EO), the process advances to step S30002 to set the mask of the target pixel to 1. The category setting unit 1001 determines
Then, the mask of the target pixel is set to 0. mask is a variable assigned to each pixel in the CTU.

次にPO部1001のPOカテゴリ/POクラス設定部2002の動作を、図31を用いて説明する。
図31は、図21のS2103の後にS31030、S31031を追加したものであり、それ以外のステ
ップは同じである。POカテゴリ/POクラス設定部2002は、S31030で、EOでオフセットを加
算したかどうかを示すmaskをチェックする。maskが0(EOでオフセットを加算しない)の
場合、S31031に進み、POカテゴリpcatをオフセットを加算しないカテゴリの0にセットす
る。これにより、EOでオフセットを加算しなかった画素は、POのオフセットを加算しない。
Next, the operation of the PO category / PO class setting section 2002 of the PO section 1001 will be described with reference to FIG.
FIG. 31 is obtained by adding S31030 and S31031 after S2103 in FIG. 21, and the other steps are the same. In S31030, the PO category / PO class setting unit 2002 checks a mask indicating whether or not the offset has been added by EO. If mask is 0 (no offset is added by EO), the process advances to step S31031 to set the PO category pcat to 0 of the category to which no offset is added. As a result, pixels for which no offset has been added in EO do not add the offset for PO.

なお、変形例1に対しても、実施形態2で説明した参照画素位置の切替を適用することができる。この場合、図31のS2101を、図25のS25010〜S25012に置き換えればよく、
それ以外のステップは同じである。
〔実施形態2〕
本願の実施形態2は、POの画素分類(POカテゴリ分類)を2つの1次元EOの組み合わせで実現する。2つのEOの組み合わせで実現することで、POとEOの両者を処理する場合に発生する冗長な処理を削除し、かつ、1次元方向の画素値の変化だけでは表現できなかった画素値の変化のパターンに対応することができ、より効率的なフィルタ処理を実現できる
。具体的には、図7に示す4つのクラスに対応する方向(水平方向、垂直方向、左上から右下方向、右上から左下方向)のうちの2つの方向のEOカテゴリを、EOカテゴリ1、EOカ
テゴリ2として導出し、この2つのEOカテゴリに基づいてPOカテゴリ分類を導出する。
The switching of the reference pixel position described in the second embodiment can be applied to the first modification. In this case, S2101 in FIG. 31 may be replaced with S25010 to S25012 in FIG.
Other steps are the same.
[Embodiment 2]
In the second embodiment of the present application, the PO pixel classification (PO category classification) is realized by a combination of two one-dimensional EOs. By implementing a combination of two EOs, redundant processing that occurs when processing both PO and EO is eliminated, and changes in pixel values that cannot be expressed only by changes in pixel values in the one-dimensional direction , And more efficient filter processing can be realized. Specifically, EO categories in two directions among the directions (horizontal direction, vertical direction, upper left to lower right, upper right to lower left) corresponding to the four classes shown in FIG. The category is derived as category 2, and a PO category classification is derived based on the two EO categories.

図24(a)は、EOの2つのクラスのカテゴリ(EOカテゴリ1、EOカテゴリ2)を組み合
わせた時のMの値を示す。図24(a)を用いることでEOカテゴリ1、EOカテゴリ2から、POカテゴリを導出するための一時変数Mを導出することができる。
FIG. 24A shows the value of M when two categories of EO are combined (EO category 1 and EO category 2). By using FIG. 24A, a temporary variable M for deriving the PO category can be derived from the EO category 1 and the EO category 2.

M=max(Σlgr(rec(X)-rec(ci)), Σsml(rec(X)-rec(ci)))
ここで、発生しないパターンのMは0にセットする。
M = max (Σlgr (rec (X) -rec (ci)), Σsml (rec (X) -rec (ci)))
Here, M of a pattern that does not occur is set to 0.

例えば、図24(a)のEOカテゴリ1は図7のクラス0(参照画素は水平方向)の参照画素から得られるカテゴリ、EOカテゴリ2は図7のクラス2(参照画素は左上から右下方向
)の参照画素から得られるカテゴリとする。例えばEOカテゴリ1が2、EOカテゴリ2が1の場合、Mは3と導出される。
For example, EO category 1 in FIG. 24A is a category obtained from reference pixels in class 0 (reference pixels are horizontal) in FIG. 7, and EO category 2 is class 2 in FIG. 7 (reference pixels are from upper left to lower right). ) Is a category obtained from the reference pixel. For example, if EO category 1 is 2 and EO category 2 is 1, M is derived as 3.

図24(b)は(実施形態1の式で導出される)POカテゴリのMと2つのEOのカテゴリの組み合わせ(EOカテゴリ1、EOカテゴリ2)との関係を示した表である。例えばM=3は、2
つのカテゴリが0と3、あるいは1と2に相当する。またM=4は、2つのカテゴリが1と1、あ
るいは4と4に相当する。M=0〜2はPOではオフセット加算の対象とならない画素値の変化パターンであるが、1次元のEOとしてはオフセット加算の対象となる画素値の変化パターンなので、本実施形態でもオフセットの加算を行う。このように、CTU毎に方向(EOクラス
)を2つ設定し、画素毎に2つの方向に対するカテゴリを求めることで、従来POとSAOのEO双方でカテゴリ分類が必要であった処理を、SAOのEOのカテゴリ分類だけで処理することができる。
FIG. 24B is a table showing the relationship between M of the PO category (derived from the equation of the first embodiment) and a combination of two EO categories (EO category 1 and EO category 2). For example, M = 3 is 2
One category corresponds to 0 and 3, or 1 and 2. M = 4 corresponds to two categories of 1 and 1, or 4 and 4. M = 0 to 2 is a change pattern of a pixel value which is not subjected to offset addition in PO, but is a change pattern of a pixel value which is a target of offset addition as one-dimensional EO. Do. In this way, by setting two directions (EO classes) for each CTU and obtaining categories in two directions for each pixel, processing that conventionally required categorization by both EO of PO and SAO can be performed by SAO Can be processed only by EO categorization.

実施形態2のブロック図は、実施形態1の図10のSAO部314、および図17のSAO_E部115と同じであるが、カテゴリ設定部1001、オフセット加算部1003、オフセット情報選択部1703の動作が異なる。カテゴリ設定部1001、およびオフセット情報選択部1703の動作を図34、図35のフローチャートで説明する。   The block diagram of the second embodiment is the same as the SAO unit 314 of FIG. 10 of the first embodiment and the SAO_E unit 115 of FIG. 17 except that the operations of the category setting unit 1001, offset adding unit 1003, and offset information selecting unit 1703 are different. different. The operations of the category setting unit 1001 and the offset information selection unit 1703 will be described with reference to the flowcharts of FIGS.

図34のカテゴリ設定部1001は、2つの方向(クラス)に対応する参照画素から2つのカテゴリを導出するためS1102〜S1104の処理を2回繰り返す。その他のステップは、1つの方向(クラス)の参照画素から1つのカテゴリを導出する図11と同じである。カテゴリ設定部1001は、S34040でS1102〜S1104の処理の回数をカウントし、2回であれば処理を終了し、1回であればS1102に戻り処理を継続する。なお、2つのカテゴリ導出はループ
処理で行う必要はなく、カテゴリ導出処理を2回実行する構成でもよい。
The category setting unit 1001 in FIG. 34 repeats the processing of S1102 to S1104 twice to derive two categories from reference pixels corresponding to two directions (classes). Other steps are the same as those in FIG. 11 in which one category is derived from reference pixels in one direction (class). The category setting unit 1001 counts the number of processes in S1102 to S1104 in S34040, terminates the process if it is twice, returns to S1102 if it is once, and continues the process. Note that it is not necessary to perform the two category derivation in a loop process, and a configuration in which the category derivation process is performed twice may be employed.

オフセット加算部1003では、カテゴリ設定部1001で算出した2つのクラス(class1、class2)とそのカテゴリ(cat1、cat2)に対応する2つのオフセットをオフセット情報格納部から読み出し、対象画素の画素値Rec[X]に加算する。   The offset adding unit 1003 reads from the offset information storage unit the two classes (class1, class2) calculated by the category setting unit 1001 and the two offsets corresponding to the categories (cat1, cat2), and reads the pixel value Rec [ X].

recsao[X]=rec[X]+(offset[class1][cat1]+offset[class2][cat2])/2
(cat1≠0かつcat2≠0)
=rec[X]+offset[class1][cat1] (cat2=0)
=rec[X]+offset[class2][cat2] (cat1=0)
上式は2つのオフセットの平均値を加算しているが、2つのオフセットの重み付き演算でもよい。ただし、最初に符号化されたクラスclass1の重みw1を、class2の重みw2より大きくする。
recsao [X] = rec [X] + (offset [class1] [cat1] + offset [class2] [cat2]) / 2
(cat1 ≠ 0 and cat2 ≠ 0)
= rec [X] + offset [class1] [cat1] (cat2 = 0)
= rec [X] + offset [class2] [cat2] (cat1 = 0)
In the above expression, the average value of the two offsets is added, but a weighted operation of the two offsets may be used. However, the weight w1 of the class class1 encoded first is made larger than the weight w2 of the class2.

recsao[X]=rec[X]+w1*offset[cat1]+w2*offset[cat2] (cat1≠0かつcat2≠0)
ここでw1>=w2、w1+w2=1である。
recsao [X] = rec [X] + w1 * offset [cat1] + w2 * offset [cat2] (cat1 ≠ 0 and cat2 ≠ 0)
Here, w1> = w2 and w1 + w2 = 1.

なお、カテゴリ設定部1001で用いる2つの方向(クラス)は、CTU単位で符号化
・復号してもよい。4つの方向(クラス)の中から2つの方向(クラス)を選択する場合には、2ビットのシンタックスが必要である。なお、選択可能な方向として2つの方向(クラス)が直交する場合のみ選択するという制限をかけてもよい。この場合、取り得る参照画素位置は水平・垂直方向と2つの斜め方向の2パターンに限定されるが、クラスを表現するビット数を1ビット削減することができる。
Note that the two directions (classes) used in the category setting unit 1001 may be encoded / decoded on a CTU basis. To select two directions (classes) from the four directions (classes), 2-bit syntax is required. It should be noted that a restriction may be imposed that only two directions (classes) are selected as selectable directions when the directions are orthogonal. In this case, the possible reference pixel positions are limited to two patterns in the horizontal and vertical directions and two oblique directions, but the number of bits representing the class can be reduced by one bit.

以上で説明したように、本願の実施形態2は、POのカテゴリ分類相当の処理を2つの1次元EOのカテゴリ分類の組み合わせで実現する。2つのEOの組み合わせで実現することで、POカテゴリ分類とEOカテゴリ分類の両方を処理する場合に発生する冗長な処理を回避し、かつ、1次元方向の画素値の変化だけでは表現できなかった画素値の変化のパターンに対応することができ、より効率的なフィルタ処理を実現できる。
〔実施形態3〕
本願の実施形態3は、POを拡張して実施形態2の1次元EOの組み合わせを表現する。POを拡張して表現することで、POもEOも処理する場合に発生する冗長な処理を削除し、かつ、従来のPOでは表現できなかった1次元方向の画素値の変化に対応することができ、より効率的なフィルタ処理を実現できる。
As described above, in the second embodiment of the present invention, the processing corresponding to the PO category classification is realized by a combination of two one-dimensional EO category classifications. By implementing a combination of two EOs, redundant processing that occurs when processing both the PO category classification and the EO category classification is avoided, and it cannot be expressed only by a change in the pixel value in the one-dimensional direction. It is possible to cope with a pattern of a change in pixel value, and more efficient filtering can be realized.
[Embodiment 3]
In the third embodiment of the present application, PO is extended to express the one-dimensional EO combination of the second embodiment. By expanding and expressing PO, redundant processing that occurs when processing both PO and EO can be eliminated, and it is possible to deal with changes in pixel values in the one-dimensional direction that could not be expressed with conventional PO. And more efficient filter processing can be realized.

実施形態3のブロック図は、実施形態1の図20のPO部2001、および図22のPO_E部2201と同じであるが、POカテゴリ/POクラス設定部2002の動作が異なる。
ここでPOカテゴリpcatとEOカテゴリの対応関係を図32に示す。図32において、POのM
が0〜2の場合は、SAOのEOのカテゴリに従って処理を実施する。POのMが3の場合はPOを実
施するが、オフセットはEOカテゴリに合わせて異なるオフセットを符号化装置側で算出し、POオフセット加算部2004で加算処理に使用する。POのMが4の場合はPOを実施するが、オフセットはEOカテゴリに合わせて、かつM=3とは異なるオフセットを符号化装置側で算出
し、POオフセット加算部2004で加算処理に使用する。EOカテゴリが1と4、あるいは2と3のように特性が似通っている場合、オフセットは同じ値でもよい。
The block diagram of the third embodiment is the same as the PO unit 2001 of FIG. 20 of the first embodiment and the PO_E unit 2201 of FIG. 22, but the operation of the PO category / PO class setting unit 2002 is different.
FIG. 32 shows the correspondence between the PO category pcat and the EO category. In FIG. 32, M of PO
Is 0 to 2, the processing is performed according to the SAO EO category. If the M of PO is 3, PO is performed, but the offset is calculated on the encoding device side according to the EO category, and the PO offset addition unit 2004 uses the offset for addition processing. When M of PO is 4, PO is performed, but the offset is adjusted to the EO category, and an offset different from M = 3 is calculated on the encoding device side, and is used in the addition process by the PO offset addition unit 2004. . If the characteristics are similar, such as EO categories 1 and 4, or 2 and 3, the offset may be the same value.

また拡張したPOはSAOのEOの機能も含むので、POの後に処理するSAOは、図37に示すようにBOの機能のみを実施してもよい。この構成では、図37に示すように、まずPO部2001(あるいはPO_E部2201)が、上述のPOカテゴリ分類とオフセット加算処理を行い、SAO部314(あるいはSAO_E部115)がEOを除くBOのカテゴリ分類とオフセット加算処理を行う。SAOのオフセットタイプはBOだけなので、例えば図11のカテゴリ設定部1001は、S1105とS1106の処理だけになる。図18のオフセット算出部1702はS1801、S1805とS1806の処理だけになる。図19のオフセット情報選択部1703はS1901とS1905〜S1907の処理だけになる。
従って、オフセット情報はオフセットとバンド位置(band_position)となる。またオフ
セットタイプはBOだけなので、オフセットタイプ(type)も符号化する必要はない。
Further, since the expanded PO also includes the EO function of the SAO, the SAO processed after the PO may implement only the function of the BO as shown in FIG. In this configuration, as shown in FIG. 37, first, the PO unit 2001 (or the PO_E unit 2201) performs the above-described PO category classification and offset addition processing, and the SAO unit 314 (or the SAO_E unit 115) removes the EO from the BO. Perform category classification and offset addition processing. Since the offset type of SAO is only BO, for example, the category setting unit 1001 in FIG. 11 performs only the processing of S1105 and S1106. The offset calculation unit 1702 in FIG. 18 performs only the processing in S1801, S1805, and S1806. The offset information selection unit 1703 in FIG. 19 performs only the processes in S1901 and S1905 to S1907.
Therefore, the offset information is the offset and the band position (band_position). Also, since the offset type is only BO, there is no need to encode the offset type (type).

以上のように、本願の実施形態3は、実施形態2の1次元EOの組み合わせに相当するカテゴリ分類処理を、POを拡張して実現する。POを拡張して実現することで、POとEOを処理する場合に発生する冗長なカテゴリ分類処理を削除し、かつ、従来のPOで表現できなかった1次元方向の画素値の変化に対応することができ、より効率的なフィルタ処理を実現できる。
〔実施形態4〕
本願の実施形態4は、POとSAOのEOがリンギング除去効果、SAOのBOが擬似輪郭防止効果という異なる画質改善効果をもつことから、POを使用(POでオフセットを加算)した場合のSAOはBOを選択する。
As described above, the third embodiment of the present application realizes the category classification processing corresponding to the one-dimensional EO combination of the second embodiment by extending PO. By extending and realizing PO, redundant category classification processing that occurs when processing PO and EO is eliminated, and it is possible to cope with changes in pixel values in the one-dimensional direction that cannot be expressed by conventional PO. And more efficient filtering can be realized.
[Embodiment 4]
In the fourth embodiment of the present invention, since the EO of PO and SAO have different image quality improvement effects such as a ringing removal effect and the BO of SAO has a different image quality improvement effect of a false contour prevention effect, the SAO when PO is used (an offset is added by PO) is Select BO.

実施形態4のブロック図は、実施形態1の図20のPO部2001(ただしPOカテゴリ/POク
ラス設定部2002は図26の動作)、および図22のPO_E部2201と同じであるが、図38に示すようにS3802でCTUの全画素に対してオフセットを加算したか否かの判定を行う。具体的にはmask=1の場合、POでオフセットを加算していないため、CTUの全画素のmaskが1であれば、そのCTUはオフセットを加算していないことになる。。S3802でCTUの全画素のmask
が1の場合、後続のSAOは従来通りEOとBOから適切なタイプを選択し処理する。そうでない場合、後続のSAOはBOのみの処理となる。SAOがBOのみの場合、SAOのオフセットタイプの
符号化は不要である。
The block diagram of the fourth embodiment is the same as the PO unit 2001 of FIG. 20 of the first embodiment (the PO category / PO class setting unit 2002 operates in FIG. 26) and the PO_E unit 2201 of FIG. In step S3802, it is determined whether the offset has been added to all the pixels of the CTU. Specifically, when mask = 1, the offset is not added by PO, so if the mask of all the pixels of the CTU is 1, it means that the CTU has not added the offset. . Mask of all pixels of CTU with S3802
If is 1, the subsequent SAO selects and processes the appropriate type from EO and BO as before. Otherwise, the subsequent SAO is a BO only process. If the SAO is only BO, it is not necessary to encode the offset type of the SAO.

なお、符号化装置側で、POにおいてCTUに1つでもmaskが0の画素があった場合にオフセットタイプ(BO)を符号化する場合は、復号装置側では、図38のS3802とS3804は不要となり、従来のPOとSAOを順番に処理する動作と全く同じ動作となる。
〔実施形態5〕
本願の実施形態5は、実施形態1で説明したPOの参照画素位置への斜め方向画素(図14(b))の追加に関する。POとSAOのEOでは、どちらも適切な参照画素位置の算出が必要であるため、POとEOで参照画素位置の情報を共有することで冗長な算出処理を削減できる。
Note that if the encoding device encodes the offset type (BO) when at least one pixel in the CTU has a mask of 0 in the PO, the decoding device does not need S3802 and S3804 in FIG. This is exactly the same operation as the conventional operation of processing PO and SAO in order.
[Embodiment 5]
The fifth embodiment of the present application relates to the addition of an oblique direction pixel (FIG. 14B) to the reference pixel position of the PO described in the first embodiment. Since the EO of the PO and the SAO both need to appropriately calculate the reference pixel position, the redundant calculation process can be reduced by sharing the information of the reference pixel position between the PO and the EO.

POの後にSAOを処理する場合(図20、図22)、POで算出した参照画素位置を用いてEOの参照画素位置を決定する。POで用いた参照方向を示すフラグをPOflag、EOで用いる1ビットのクラス情報をEOflagとすると、EOのクラスclassは下記で算出できる。   When processing SAO after PO (FIGS. 20 and 22), the reference pixel position of EO is determined using the reference pixel position calculated by PO. If the flag indicating the reference direction used in PO is POflag and the 1-bit class information used in EO is EOflag, the class class of EO can be calculated as follows.

class=(POflag<<1)+EOflag
この場合、EOのクラスを示すための情報を1ビット削減できる。
class = (POflag << 1) + EOflag
In this case, information for indicating the EO class can be reduced by one bit.

SAOの後にPOを処理する場合(図28、図29)、SAOのEOで算出した参照画素位置を用いて、図15(a)に示すようにPOの参照画素位置を決定する。つまりEOのクラスが0あるいは1の場合、POflag=0(参照画素位置は水平・垂直方向)であり、EOのクラスが2あるいは3の場合、POflag=1(参照画素位置は斜め方向)である。この場合、POの参照画素位置
を示す情報を削除することができる。
When processing PO after SAO (FIGS. 28 and 29), the reference pixel position of PO is determined as shown in FIG. 15A using the reference pixel position calculated by EO of SAO. That is, when the EO class is 0 or 1, POflag = 0 (the reference pixel position is in the horizontal / vertical direction), and when the EO class is 2 or 3, POflag = 1 (the reference pixel position is in the oblique direction). . In this case, the information indicating the reference pixel position of the PO can be deleted.

POとSAOのEOの参照画素位置が共通の場合、最初の処理で補正の効果がある参照画素位
置を後続の処理にも用いることで、さらに精度の高い補正ができるという効果もある。
〔変形例3〕
上記はPOとSAOのEO参照画素位置を共通にした場合であったが、変形例3はPOとEOで異
なる参照画素位置を用いる。
When the reference pixel position of the EO of the PO and the SAO is common, the use of the reference pixel position having the effect of correction in the first processing is also used in the subsequent processing, so that there is also an effect that correction with higher accuracy can be performed.
[Modification 3]
The above is a case where the EO reference pixel positions of the PO and the SAO are common, but the third modification uses different reference pixel positions for the PO and the EO.

POの後にSAOを処理する場合(図20、図22)、POで算出した参照画素位置を用いてEOの参照画素位置を決定する。POで用いた参照方向を示すフラグをPOflag、EOで用いる1ビットのクラス情報をEOflagとすると、EOのクラスclassは下記で算出できる。   When processing SAO after PO (FIGS. 20 and 22), the reference pixel position of EO is determined using the reference pixel position calculated by PO. If the flag indicating the reference direction used in PO is POflag and the 1-bit class information used in EO is EOflag, the class class of EO can be calculated as follows.

class=((1-POflag)<<1)+EOflag
この場合、EOのクラスを示すための情報を1ビット削減できる。
class = ((1-POflag) << 1) + EOflag
In this case, information for indicating the EO class can be reduced by one bit.

SAOの後にPOを処理する場合(図28、図29)、SAOのEOで算出した参照画素位置を用いて、図15(b)に示すようにPOの参照画素位置を決定する。つまりEOのクラスが0あるいは1の場合、POflag=1(参照画素位置は斜め方向)であり、EOのクラスが2あるいは3の
場合、POflag=0(参照画素位置は水平・垂直方向)である。この場合、POの参照画素位置を示す情報を削除することができる。
When processing PO after SAO (FIGS. 28 and 29), the reference pixel position of PO is determined as shown in FIG. 15B using the reference pixel position calculated by EO of SAO. In other words, if the EO class is 0 or 1, POflag = 1 (the reference pixel position is oblique), and if the EO class is 2 or 3, POflag = 0 (the reference pixel position is horizontal / vertical). . In this case, the information indicating the reference pixel position of the PO can be deleted.

POとSAOのEOの参照画素位置が異なる場合、最初の処理で補正できなかった方向の画素
値の変化を用いて後続の処理ができるので、符号化効率を向上させる効果がある。
〔実施形態6〕
本発明の実施形態6は、POで通知するPOクラスの最大数Cmaxと、クラスの算出に使用する正規化係数NFの推定について説明する。Cmaxによって符号化すべきオフセット数を制限し、NFによって1つのオフセットで対応する画素値の変化量の粒度を変更できるため、CTU毎にCmaxとNFを通知することで最適なオフセットの調整ができる。しかしながらCTU毎にCmaxとNFを符号化すると、符号量が増大するという課題がある。そこでピクチャパラメータセットやスライスヘッダ等でCmaxとNFを符号化し、CTUレベルでは画素値の変化量に関
係の深いパラメータを用いてCmaxとNFを変更することで符号量を削減しつつ、細かいオフセットの調整ができる。
When the reference pixel positions of EO of PO and SAO are different, subsequent processing can be performed using a change in the pixel value in the direction that could not be corrected in the first processing, so that there is an effect of improving coding efficiency.
[Embodiment 6]
The sixth embodiment of the present invention describes the estimation of the maximum number Cmax of PO classes notified by PO and the normalization coefficient NF used for class calculation. Since the number of offsets to be coded is limited by Cmax, and the granularity of the change amount of the corresponding pixel value can be changed by one offset by NF, the optimum offset can be adjusted by notifying Cmax and NF for each CTU. However, when Cmax and NF are encoded for each CTU, there is a problem that the code amount increases. Therefore, Cmax and NF are encoded using a picture parameter set, a slice header, and the like.At the CTU level, the Cmax and NF are changed using parameters that are closely related to the amount of change in the pixel value, thereby reducing the amount of code and increasing the fine offset. Can be adjusted.

以下に、画素値の変化量に関係の深いパラメータとして量子化幅QPを用いた例を説明する。   Hereinafter, an example in which the quantization width QP is used as a parameter closely related to the amount of change in the pixel value will be described.

QPが大きい場合、復号画像にはリンギング歪や量子化歪が増加するため、オフセット数を増やし、画素値の細かな調整をする必要がある。そのためにはQPが大きい場合、Cmaxを大きく、NFを小さくして、オフセット数を増やし、1つのオフセットが対応する画素値の変化量の精度を細かくする。   When QP is large, ringing distortion and quantization distortion increase in the decoded image, so it is necessary to increase the number of offsets and finely adjust the pixel value. Therefore, when QP is large, Cmax is increased, NF is reduced, and the number of offsets is increased, so that the accuracy of the change amount of the pixel value corresponding to one offset is reduced.

POカテゴリ/POクラス設定部2202の動作を図39のフローチャートで説明する。図39
は図21のS2103の後にS39030が追加されたものであり、それ以外のステップは同じであ
る。POカテゴリ/POクラス設定部2002は、S39030でCmaxとNFをCTU単位で推定する。具体的には、POカテゴリ毎に対象画素Xと参照画素c0〜c3の復号画素値の絶対差分の平均値DIFF_avgを算出し、図33に示す(α、β)を用い、下式でCmaxを算出する。
The operation of the PO category / PO class setting unit 2202 will be described with reference to the flowchart in FIG. FIG.
In FIG. 21, S39030 is added after S2103 in FIG. 21, and the other steps are the same. The PO category / PO class setting unit 2002 estimates Cmax and NF in C390 units in S39030. Specifically, the average value DIFF_avg of the absolute difference between the target pixel X and the decoded pixel values of the reference pixels c0 to c3 is calculated for each PO category, and using the (α, β) shown in FIG. calculate.

Cmax=(Cmax_init*α)>>β
ここで、Cmax_initはピクチャパラメータセットやスライスヘッダで通知したCmaxの値で
ある。図33のavgは絶対差分の平均値DIFF_avgである。示す値であり、例えばQPがTHQより小さく、avgがTHD1〜THD2の間にある時は、(α、β)=(3、1)で、Cmax=Cmax_init*3/2である。また、POカテゴリ毎に対象画素Xと参照画素c0〜c3の復号画素値の絶対差分の最大
値DIFF_maxを用いて、NFを下式で算出する。
Cmax = (Cmax_init * α) >> β
Here, Cmax_init is a value of Cmax notified by a picture parameter set or a slice header. Avg in FIG. 33 is the average value DIFF_avg of the absolute differences. For example, when QP is smaller than THQ and avg is between THD1 and THD2, (α, β) = (3, 1), and Cmax = Cmax_init * 3/2. Further, NF is calculated by the following formula using the maximum value DIFF_max of the absolute difference between the decoded pixel value of the target pixel X and the reference pixels c0 to c3 for each PO category.

NF=Ceil(log2(DIFF_max/DIFF_avg))
なお、上記では画素値の変化量に関係の深いパラメータとして量子化幅QPを用いたが、CUのサイズとしてもよい。CUサイズが大きい領域はテクスチャが平坦であり、擬似輪郭が発生しやすい。画素値のわずかな変化が目立つので、QPが大きい時と同様の制御が可能である。
NF = Ceil (log2 (DIFF_max / DIFF_avg))
In the above description, the quantization width QP is used as a parameter closely related to the amount of change in the pixel value. However, the size of the CU may be used. An area having a large CU size has a flat texture, and a pseudo contour is likely to occur. Since a slight change in the pixel value is noticeable, the same control as when QP is large can be performed.

また、上記ではCTU毎にCmaxとNFを推定したが、1つ前のCTU毎のCmaxとNF、あるいはピクチャパラメータセットやスライスヘッダで通知したCmax_initとNF_initとの差分値を符号化することで、符号量を削減することもできる。i番目のCTUのCmaxとNFをCmax[i]、NF[i]とすると、
dCmax=Cmax[i]-Cmax[i-1] (i>0)
dNF=NF[i]-NF[i-1]
であり、dCmax、dNFを符号化する。
Further, in the above, Cmax and NF are estimated for each CTU. The code amount can also be reduced. If Cmax and NF of the i-th CTU are Cmax [i] and NF [i],
dCmax = Cmax [i] -Cmax [i-1] (i> 0)
dNF = NF [i] -NF [i-1]
And encodes dCmax and dNF.

符号化装置側ではPOオフセット算出部2202において、図23に示すS2303のCmax、NFの
導出は上記で説明した図39のS39030に置き換えられる。
On the encoding device side, in the PO offset calculation unit 2202, the derivation of Cmax and NF in S2303 shown in FIG. 23 is replaced with S39030 in FIG. 39 described above.

以上のように、実施形態6では、CTUレベルでは画素値の変化量に関係の深いパラメー
タを用いてCmaxとNFを変更する、あるいは1つ前のCmaxとNFとの差分値を符号化することで符号量を削減しつつ、細かいオフセットの調整ができる。
As described above, in the sixth embodiment, at the CTU level, Cmax and NF are changed using a parameter closely related to the amount of change in pixel value, or the difference value between the immediately preceding Cmax and NF is encoded. Thus, fine offset adjustment can be performed while reducing the code amount.

なお、PO_E部2201は、CmaxとNFの初期値であるCmax_initとNF_initをエントロピー符号化部104に出力し、エントロピー符号化部104はこれらをピクチャパラメータセットやスライスヘッダを符号化する。PO部2001は、エントロピー復号部301で復号したCmax_initとNF_initをPOカテゴリ/POクラス設定部2002に渡す。
〔実施形態7〕
本願の実施形態7はオフセットのエントロピー符号化方法について説明する。本発明では、POとSAOで各々オフセットを符号化・復号する。しかしながら、1回目の処理(処理
1)のオフセット加算により原画素値とフィルタ処理後の画素値の差分はフィルタ処理前の画素値との差分より小さくなっており、2回目の処理(処理2)のオフセットは1回目のオフセット以下でよい。従って、処理1のオフセットを用いて、処理2のオフセットの符号長を削減することができる。
Note that the PO_E unit 2201 outputs Cmax_init and NF_init, which are the initial values of Cmax and NF, to the entropy coding unit 104, and the entropy coding unit 104 codes these into a picture parameter set and a slice header. The PO unit 2001 passes the Cmax_init and NF_init decoded by the entropy decoding unit 301 to the PO category / PO class setting unit 2002.
[Embodiment 7]
Embodiment 7 of the present application describes an offset entropy encoding method. In the present invention, PO and SAO encode and decode offsets, respectively. However, the difference between the original pixel value and the pixel value after the filter processing is smaller than the difference between the pixel value before the filter processing and the second processing (the processing 2) by the offset addition in the first processing (the processing 1). May be equal to or less than the first offset. Therefore, the code length of the offset of the process 2 can be reduced using the offset of the process 1.

図5のエントロピー復号部301、あるいは図6のエントロピー符号化部104の中に、オフセット値をバイナリゼーションする(図示しない)バイナリゼーション部がある。ここで行われるバイナリゼーションの方法としてTR(Truncated Rice)符号を用いる例を説明する。処理1のオフセットの取り得る最大値Omax1は
Omax1=(1<<(min(N,10)-5))-1
で表される。ここでNは画素の階調で、8(0〜255)の場合はOmax1=7であり、オフセット
として0〜7の値を使用することができる。Omax1=7の場合のTR符号表を図36(a)に示す。例えば処理1のオフセットの最大値が5の場合、処理2のオフセットの最大値は5以下であるので、処理2ではOmax2=5であり、この時のTR符号表を図36(b)に示す。従って処理2でオフセットがOmax2と等しくなる時は、処理1で使用するTR符号表を用いて符号化
する時よりも符号量を1ビット削減することができる。なお、実施形態7では、処理1がPOで処理2がSAOの場合も、その逆の場合も適用することができる。
〔変形例4〕
実施形態7では、処理2のオフセットの制限を処理1のオフセットの最大値以下とした。変形例4では、処理2のオフセットの制限を処理1のオフセットの最大値の1/2以下と
する。図36(c)に変形例4の場合の処理2におけるオフセットのTR符号表を示す。例
えば処理1のオフセットの最大値が5の場合、処理2のオフセットの最大値は5の1/2以下
であるので、処理2ではOmax2=2である。
〔変形例5〕
実施形態7では処理1と処理2のオフセットのバイナリゼーションにTR符号(RiceParam=0)を使用した。変形例5では処理2に比べオフセット値が大きくなる処理1において
、入力値が大きくなっても符号長が長くなりにくいTR符号(RiceParam=1)を使用して、
オフセットの符号量を削減する。図36(d)にTR符号表(RiceParam=1)を示す。図36(a)の符号表と図36(d)の符号表を比較すると、入力が0の場合は図36(a)の符号表の符号量割り当てが小さいが、3以上になると図36(d)の符号表の符号量割り当てが小さい。従ってオフセットのバイナリゼーションにおいて、処理1では図36(d)の符
号表を用い、処理2では図36(a)の符号表を用いることで、入力が大きい場合の符号
量を削減することができる。
In the entropy decoding unit 301 of FIG. 5 or the entropy encoding unit 104 of FIG. 6, there is a binaryization unit (not shown) that performs binaryization of the offset value. An example in which a TR (Truncated Rice) code is used as a binaryization method performed here will be described. The maximum value Omax1 that the offset of process 1 can take is
Omax1 = (1 << (min (N, 10) -5))-1
It is represented by Here, N is the gradation of the pixel, and in the case of 8 (0 to 255), Omax1 = 7, and a value of 0 to 7 can be used as the offset. FIG. 36A shows a TR code table when Omax1 = 7. For example, when the maximum value of the offset in the process 1 is 5, the maximum value of the offset in the process 2 is 5 or less, so in process 2, Omax2 = 5, and the TR code table at this time is shown in FIG. . Therefore, when the offset becomes equal to Omax2 in the process 2, the code amount can be reduced by one bit compared to when encoding using the TR code table used in the process 1. In the seventh embodiment, the case where the process 1 is PO and the process 2 is SAO, and vice versa can be applied.
[Modification 4]
In the seventh embodiment, the offset of the process 2 is limited to the maximum value of the offset of the process 1 or less. In the fourth modification, the limitation of the offset of the process 2 is set to be equal to or less than 最大 of the maximum value of the offset of the process 1. FIG. 36C shows a TR code table of the offset in the process 2 in the case of the modification 4. For example, when the maximum value of the offset in the process 1 is 5, the maximum value of the offset in the process 2 is equal to or less than 1/2 of 5, and therefore, in the process 2, Omax2 = 2.
[Modification 5]
In the seventh embodiment, the TR code (RiceParam = 0) is used for the binarization of the offset between the processing 1 and the processing 2. In the modified example 5, in the processing 1 in which the offset value is larger than that in the processing 2, the TR code (RiceParam = 1) is used, in which the code length is hardly increased even when the input value is increased.
Reduce the code amount of the offset. FIG. 36D shows a TR code table (RiceParam = 1). Comparing the code table of FIG. 36 (a) with the code table of FIG. 36 (d), when the input is 0, the code amount allocation of the code table of FIG. 36 (a) is small. The code amount allocation of the code table d) is small. Therefore, in the binaryization of the offset, the code table of FIG. 36D is used in the processing 1 and the code table of FIG. 36A is used in the processing 2, so that the code amount when the input is large can be reduced. .

以上のように、本願の実施形態7はオフセットのエントロピー符号化において、1回目の処理のオフセットより、2回目の処理のオフセットが小さくなることを利用して、オフセットの符号長を削減することができる。   As described above, in the seventh embodiment of the present application, in the entropy encoding of the offset, the code length of the offset can be reduced by utilizing the fact that the offset of the second process is smaller than the offset of the first process. it can.

〔その他〕
なお、前述した実施形態における画像符号化装置11、画像復号装置31の一部、例えば、エントロピー復号部301、予測パラメータ復号部302、ループフィルタ305、予測画像生成部308、逆量子化・逆DCT部311、加算部312、予測画像生成部10
1、減算部102、DCT・量子化部103、エントロピー符号化部104、逆量子化・逆DCT部105、ループフィルタ107、符号化パラメータ決定部110、予測パラメータ符号化部111、および各部が含むブロックをコンピュータで実現するようにしても良い。その場合、この制御機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現しても良い。なお、ここでいう「コンピュータシステム」とは、画像符号化装置11、画像復号装置31のいずれかに内蔵されたコンピュータシステムであって、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD-ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のこと
をいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでも良い。また前記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。
[Others]
Note that a part of the image encoding device 11 and the image decoding device 31 in the above-described embodiment, for example, the entropy decoding unit 301, the prediction parameter decoding unit 302, the loop filter 305, the predicted image generation unit 308, the inverse quantization / inverse DCT Unit 311, addition unit 312, predicted image generation unit 10
1, the subtraction unit 102, the DCT / quantization unit 103, the entropy encoding unit 104, the inverse quantization / inverse DCT unit 105, the loop filter 107, the encoding parameter determination unit 110, the prediction parameter encoding unit 111, and each unit The blocks may be realized by a computer. In that case, a program for realizing this control function may be recorded on a computer-readable recording medium, and the program recorded on this recording medium may be read and executed by a computer system. Note that the “computer system” here is a computer system built in either the image encoding device 11 or the image decoding device 31 and includes an OS and hardware such as peripheral devices. The “computer-readable recording medium” refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, and a CD-ROM, and a storage device such as a hard disk built in a computer system. Further, the "computer-readable recording medium" is a medium that holds the program dynamically for a short time, such as a communication line for transmitting the program through a network such as the Internet or a communication line such as a telephone line, In this case, a program holding a program for a certain period of time, such as a volatile memory in a computer system serving as a server or a client, may be included. Further, the program may be for realizing a part of the functions described above, or may be for realizing the functions described above in combination with a program already recorded in a computer system.

また、前述した実施形態における画像符号化装置11、画像復号装置31の一部、または全部を、LSI(Large Scale Integration)等の集積回路として実現しても良い。画像符号化装置11、画像復号装置31の各機能ブロックは個別にプロセッサ化しても良いし、一部、または全部を集積してプロセッサ化しても良い。また、集積回路化の手法はLSIに限らず専用回路、または汎用プロセッサで実現しても良い。また、半導体技術の進歩によりLSIに代替する集積回路化の技術が出現した場合、当該技術による集積回路を用いても良い。   Further, part or all of the image encoding device 11 and the image decoding device 31 in the above-described embodiment may be realized as an integrated circuit such as an LSI (Large Scale Integration). Each functional block of the image encoding device 11 and the image decoding device 31 may be individually implemented as a processor, or a part or all thereof may be integrated and implemented as a processor. The method of circuit integration is not limited to an LSI, and may be realized by a dedicated circuit or a general-purpose processor. Further, in the case where a technology for forming an integrated circuit that replaces the LSI appears due to the progress of the semiconductor technology, an integrated circuit based on the technology may be used.

(応用例)
前述した画像符号化装置11および画像復号装置31は、動画像の送信、受信、記録、再生を行う各種装置に搭載して利用することができる。なお、動画像は、カメラ等により撮像された自然動画像であってもよいし、コンピュータ等により生成された人工動画像(CGおよびGUIを含む)であってもよい。
(Application example)
The above-described image encoding device 11 and image decoding device 31 can be used by being mounted on various devices that transmit, receive, record, and reproduce moving images. Note that the moving image may be a natural moving image captured by a camera or the like, or may be an artificial moving image (including CG and GUI) generated by a computer or the like.

まず、前述した画像符号化装置11および画像復号装置31を、動画像の送信および受信に利用できることを、図8を参照して説明する。   First, the fact that the above-described image encoding device 11 and image decoding device 31 can be used for transmitting and receiving moving images will be described with reference to FIG.

図8の(a)は、画像符号化装置11を搭載した送信装置PROD_Aの構成を示したブロック図である。図8の(a)に示すように、送信装置PROD_Aは、動画像を符号化することによって符号化データを得る符号化部PROD_A1と、符号化部PROD_A1が得た符号化データで搬送波を変調することによって変調信号を得る変調部PROD_A2と、変調部PROD_A2が得た変調信号を送信する送信部PROD_A3と、を備えている。前述した画像符号化装置11は、この
符号化部PROD_A1として利用される。
FIG. 8A is a block diagram illustrating a configuration of a transmission device PROD_A on which the image encoding device 11 is mounted. As shown in FIG. 8A, the transmission device PROD_A modulates a carrier with an encoding unit PROD_A1 that obtains encoded data by encoding a moving image and encoded data obtained by the encoding unit PROD_A1. And a transmitting section PROD_A3 for transmitting the modulated signal obtained by the modulating section PROD_A2. The above-described image encoding device 11 is used as the encoding unit PROD_A1.

送信装置PROD_Aは、符号化部PROD_A1に入力する動画像の供給源として、動画像を撮像
するカメラPROD_A4、動画像を記録した記録媒体PROD_A5、動画像を外部から入力するための入力端子PROD_A6、および、画像を生成または加工する画像処理部A7を更に備えてい
てもよい。図8の(a)においては、これら全てを送信装置PROD_Aが備えた構成を例示し
ているが、一部を省略しても構わない。
The transmission device PROD_A is a camera PROD_A4 that captures a moving image, a recording medium PROD_A5 that records the moving image, an input terminal PROD_A6 for externally inputting the moving image, as a supply source of the moving image input to the encoding unit PROD_A1, and , An image processing unit A7 for generating or processing an image. FIG. 8A illustrates a configuration in which all of them are included in the transmission device PROD_A, but some of them may be omitted.

なお、記録媒体PROD_A5は、符号化されていない動画像を記録したものであってもよい
し、伝送用の符号化方式とは異なる記録用の符号化方式で符号化された動画像を記録したものであってもよい。後者の場合、記録媒体PROD_A5と符号化部PROD_A1との間に、記録媒体PROD_A5から読み出した符号化データを記録用の符号化方式に従って復号する復号部(
不図示)を介在させるとよい。
Note that the recording medium PROD_A5 may be a recording of a moving image that is not encoded, or may record a moving image encoded by a recording encoding method different from the transmission encoding method. It may be something. In the latter case, between the recording medium PROD_A5 and the encoding unit PROD_A1, a decoding unit that decodes the encoded data read from the recording medium PROD_A5 according to a recording encoding method (
(Not shown) may be interposed.

図8の(b)は、画像復号装置31を搭載した受信装置PROD_Bの構成を示したブロック図である。図8の(b)に示すように、受信装置PROD_Bは、変調信号を受信する受信部PROD_B1と、受信部PROD_B1が受信した変調信号を復調することによって符号化データを得る復調部PROD_B2と、復調部PROD_B2が得た符号化データを復号することによって動画像を得る復号部PROD_B3と、を備えている。前述した画像復号装置31は、この復号部PROD_B3として利用される。   FIG. 8B is a block diagram illustrating a configuration of the receiving device PROD_B on which the image decoding device 31 is mounted. As shown in FIG. 8B, the receiving device PROD_B includes a receiving unit PROD_B1 that receives a modulated signal, a demodulating unit PROD_B2 that obtains encoded data by demodulating the modulated signal received by the receiving unit PROD_B1, A decoding unit PROD_B3 that obtains a moving image by decoding the encoded data obtained by the unit PROD_B2. The above-described image decoding device 31 is used as the decoding unit PROD_B3.

受信装置PROD_Bは、復号部PROD_B3が出力する動画像の供給先として、動画像を表示す
るディスプレイPROD_B4、動画像を記録するための記録媒体PROD_B5、および、動画像を外部に出力するための出力端子PROD_B6を更に備えていてもよい。図8の(b)においては
、これら全てを受信装置PROD_Bが備えた構成を例示しているが、一部を省略しても構わない。
The receiving device PROD_B has a display PROD_B4 for displaying a moving image, a recording medium PROD_B5 for recording the moving image, and an output terminal for outputting the moving image to the outside, as a supply destination of the moving image output by the decoding unit PROD_B3. PROD_B6 may be further provided. FIG. 8B illustrates the configuration in which the receiving device PROD_B includes all of them, but a part of the configuration may be omitted.

なお、記録媒体PROD_B5は、符号化されていない動画像を記録するためのものであって
もよいし、伝送用の符号化方式とは異なる記録用の符号化方式で符号化されたものであってもよい。後者の場合、復号部PROD_B3と記録媒体PROD_B5との間に、復号部PROD_B3から
取得した動画像を記録用の符号化方式に従って符号化する符号化部(不図示)を介在させるとよい。
Note that the recording medium PROD_B5 may be for recording a moving image that is not encoded, or may be encoded using a recording encoding method different from the transmission encoding method. You may. In the latter case, an encoding unit (not shown) that encodes the moving image obtained from the decoding unit PROD_B3 according to the encoding method for recording may be interposed between the decoding unit PROD_B3 and the recording medium PROD_B5.

なお、変調信号を伝送する伝送媒体は、無線であってもよいし、有線であってもよい。また、変調信号を伝送する伝送態様は、放送(ここでは、送信先が予め特定されていない送信態様を指す)であってもよいし、通信(ここでは、送信先が予め特定されている送信態様を指す)であってもよい。すなわち、変調信号の伝送は、無線放送、有線放送、無線通信、および有線通信の何れによって実現してもよい。   The transmission medium for transmitting the modulated signal may be wireless or wired. The transmission mode for transmitting the modulated signal may be broadcast (here, a transmission mode in which the transmission destination is not specified in advance), or communication (here, transmission in which the transmission destination is specified in advance). (Which refers to an embodiment). That is, the transmission of the modulated signal may be realized by any of wireless broadcasting, wired broadcasting, wireless communication, and wired communication.

例えば、地上デジタル放送の放送局(放送設備など)/受信局(テレビジョン受像機など)は、変調信号を無線放送で送受信する送信装置PROD_A/受信装置PROD_Bの一例である。また、ケーブルテレビ放送の放送局(放送設備など)/受信局(テレビジョン受像機など)は、変調信号を有線放送で送受信する送信装置PROD_A/受信装置PROD_Bの一例である。   For example, a terrestrial digital broadcasting station (such as a broadcasting facility) / receiving station (such as a television receiver) is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives a modulated signal by wireless broadcasting. A broadcasting station (broadcasting facility or the like) / receiving station (television receiver or the like) of cable television broadcasting is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives a modulated signal by cable broadcasting.

また、インターネットを用いたVOD(Video On Demand)サービスや動画共有サービスなどのサーバ(ワークステーションなど)/クライアント(テレビジョン受像機、パーソナルコンピュータ、スマートフォンなど)は、変調信号を通信で送受信する送信装置PROD_A/受信装置PROD_Bの一例である(通常、LANにおいては伝送媒体として無線または有線の何れかが用いられ、WANにおいては伝送媒体として有線が用いられる)。ここで、パーソナルコンピュータには、デスクトップ型PC、ラップトップ型PC、およびタブレット型PCが含まれる。また、スマートフォンには、多機能携帯電話端末も含まれる。   In addition, servers (workstations, etc.) / Clients (television receivers, personal computers, smartphones, etc.) such as VOD (Video On Demand) services and video sharing services using the Internet are transmission devices that transmit and receive modulated signals by communication. This is an example of PROD_A / reception device PROD_B (usually, either a wireless or wired transmission medium is used in a LAN, and a wired transmission medium is used in a WAN). Here, the personal computer includes a desktop PC, a laptop PC, and a tablet PC. In addition, the smartphone includes a multifunctional mobile phone terminal.

なお、動画共有サービスのクライアントは、サーバからダウンロードした符号化データを復号してディスプレイに表示する機能に加え、カメラで撮像した動画像を符号化してサーバにアップロードする機能を有している。すなわち、動画共有サービスのクライアント
は、送信装置PROD_Aおよび受信装置PROD_Bの双方として機能する。
The client of the moving image sharing service has a function of decoding encoded data downloaded from the server and displaying the encoded data on a display, and a function of encoding a moving image captured by a camera and uploading the encoded moving image to the server. That is, the client of the moving image sharing service functions as both the transmitting device PROD_A and the receiving device PROD_B.

次に、前述した画像符号化装置11および画像復号装置31を、動画像の記録および再生に利用できることを、図9を参照して説明する。   Next, the fact that the above-described image encoding device 11 and image decoding device 31 can be used for recording and reproduction of a moving image will be described with reference to FIG.

図9の(a)は、前述した画像符号化装置11を搭載した記録装置PROD_Cの構成を示したブロック図である。図9の(a)に示すように、記録装置PROD_Cは、動画像を符号化することによって符号化データを得る符号化部PROD_C1と、符号化部PROD_C1が得た符号化データを記録媒体PROD_Mに書き込む書込部PROD_C2と、を備えている。前述した画像符号化
装置11は、この符号化部PROD_C1として利用される。
FIG. 9A is a block diagram illustrating a configuration of a recording device PROD_C in which the above-described image encoding device 11 is mounted. As illustrated in FIG. 9A, the recording device PROD_C includes an encoding unit PROD_C1 that acquires encoded data by encoding a moving image, and encoded data obtained by the encoding unit PROD_C1 on a recording medium PROD_M. A writing unit PROD_C2 for writing. The above-described image encoding device 11 is used as the encoding unit PROD_C1.

なお、記録媒体PROD_Mは、(1)HDD(Hard Disk Drive)やSSD(Solid State Drive)などのように、記録装置PROD_Cに内蔵されるタイプのものであってもよいし、(2)SDメモリカードやUSB(Universal Serial Bus)フラッシュメモリなどのように、記録装置PROD_Cに接続されるタイプのものであってもよいし、(3)DVD(Digital Versatile Disc)やBD(Blu-ray Disc:登録商標)などのように、記録装置PROD_Cに内蔵されたドライブ装置
(不図示)に装填されるものであってもよい。
The recording medium PROD_M may be (1) a type built in the recording device PROD_C such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive), or (2) an SD memory. It may be of a type connected to the recording device PROD_C, such as a card or a USB (Universal Serial Bus) flash memory, or (3) DVD (Digital Versatile Disc) or BD (Blu-ray Disc: registered) Such as a trademark, for example, may be loaded in a drive device (not shown) built in the recording device PROD_C.

また、記録装置PROD_Cは、符号化部PROD_C1に入力する動画像の供給源として、動画像
を撮像するカメラPROD_C3、動画像を外部から入力するための入力端子PROD_C4、動画像を受信するための受信部PROD_C5、および、画像を生成または加工する画像処理部PROD_C6を更に備えていてもよい。図9の(a)においては、これら全てを記録装置PROD_Cが備えた構成を例示しているが、一部を省略しても構わない。
In addition, the recording device PROD_C includes a camera PROD_C3 for capturing a moving image, an input terminal PROD_C4 for externally inputting a moving image, and a reception terminal for receiving the moving image, as a supply source of the moving image to be input to the encoding unit PROD_C1. A unit PROD_C5 and an image processing unit PROD_C6 for generating or processing an image may be further provided. FIG. 9A illustrates an example of a configuration in which the recording device PROD_C includes all of them, but some of them may be omitted.

なお、受信部PROD_C5は、符号化されていない動画像を受信するものであってもよいし
、記録用の符号化方式とは異なる伝送用の符号化方式で符号化された符号化データを受信するものであってもよい。後者の場合、受信部PROD_C5と符号化部PROD_C1との間に、伝送用の符号化方式で符号化された符号化データを復号する伝送用復号部(不図示)を介在させるとよい。
The receiving unit PROD_C5 may receive an uncoded moving image, or may receive coded data coded by a transmission coding method different from the recording coding method. May be used. In the latter case, a transmission decoding unit (not shown) for decoding encoded data encoded by the transmission encoding method may be interposed between the receiving unit PROD_C5 and the encoding unit PROD_C1.

このような記録装置PROD_Cとしては、例えば、DVDレコーダ、BDレコーダ、HDD(Hard Disk Drive)レコーダなどが挙げられる(この場合、入力端子PROD_C4または受信部PROD_C5が動画像の主な供給源となる)。また、カムコーダ(この場合、カメラPROD_C3が動画像の主な供給源となる)、パーソナルコンピュータ(この場合、受信部PROD_C5または画像
処理部C6が動画像の主な供給源となる)、スマートフォン(この場合、カメラPROD_C3
または受信部PROD_C5が動画像の主な供給源となる)なども、このような記録装置PROD_C
の一例である。
Examples of such a recording device PROD_C include a DVD recorder, a BD recorder, an HDD (Hard Disk Drive) recorder, and the like (in this case, the input terminal PROD_C4 or the receiving unit PROD_C5 is a main source of moving images). . In addition, a camcorder (in this case, the camera PROD_C3 is a main source of moving images), a personal computer (in this case, the receiving unit PROD_C5 or the image processing unit C6 is a main source of moving images), and a smartphone (this If the camera PROD_C3
Or the receiving unit PROD_C5 is a main source of moving images).
This is an example.

図9の(b)は、前述した画像復号装置31を搭載した再生装置PROD_Dの構成を示したブロック図である。図9の(b)に示すように、再生装置PROD_Dは、記録媒体PROD_Mに書き込まれた符号化データを読み出す読出部PROD_D1と、読出部PROD_D1が読み出した符号化データを復号することによって動画像を得る復号部PROD_D2と、を備えている。前述した
画像復号装置31は、この復号部PROD_D2として利用される。
FIG. 9B is a block diagram illustrating a configuration of a playback device PROD_D including the above-described image decoding device 31. As shown in FIG. 9B, the playback device PROD_D reads a moving image by decoding a coded data read by the reading unit PROD_D1 and a reading unit PROD_D1 that reads coded data written on the recording medium PROD_M. And a decoding unit PROD_D2 for obtaining the same. The above-described image decoding device 31 is used as the decoding unit PROD_D2.

なお、記録媒体PROD_Mは、(1)HDDやSSDなどのように、再生装置PROD_Dに内蔵されるタイプのものであってもよいし、(2)SDメモリカードやUSBフラッシュメモリなどのよ
うに、再生装置PROD_Dに接続されるタイプのものであってもよいし、(3)DVDやBDなど
のように、再生装置PROD_Dに内蔵されたドライブ装置(不図示)に装填されるものであってもよい。
The recording medium PROD_M may be (1) a type built in the playback device PROD_D, such as an HDD or SSD, or (2) a type such as an SD memory card or a USB flash memory. It may be a type connected to the playback device PROD_D, or (3) a device such as a DVD or a BD that is loaded into a drive device (not shown) built in the playback device PROD_D. Good.

また、再生装置PROD_Dは、復号部PROD_D2が出力する動画像の供給先として、動画像を
表示するディスプレイPROD_D3、動画像を外部に出力するための出力端子PROD_D4、および、動画像を送信する送信部PROD_D5を更に備えていてもよい。図9の(b)においては、
これら全てを再生装置PROD_Dが備えた構成を例示しているが、一部を省略しても構わない。
Also, the playback device PROD_D includes a display PROD_D3 for displaying a moving image, an output terminal PROD_D4 for outputting the moving image to the outside, and a transmitting unit for transmitting the moving image, as a supply destination of the moving image output by the decoding unit PROD_D2. PROD_D5 may be further provided. In FIG. 9B,
Although the configuration in which the playback device PROD_D includes all of them is illustrated, a part of the configuration may be omitted.

なお、送信部PROD_D5は、符号化されていない動画像を送信するものであってもよいし
、記録用の符号化方式とは異なる伝送用の符号化方式で符号化された符号化データを送信するものであってもよい。後者の場合、復号部PROD_D2と送信部PROD_D5との間に、動画像を伝送用の符号化方式で符号化する符号化部(不図示)を介在させるとよい。
The transmitting unit PROD_D5 may transmit an uncoded moving image, or may transmit coded data coded by a transmission coding method different from the recording coding method. May be used. In the latter case, an encoding unit (not shown) for encoding a moving image using a transmission encoding method may be interposed between the decoding unit PROD_D2 and the transmission unit PROD_D5.

このような再生装置PROD_Dとしては、例えば、DVDプレイヤ、BDプレイヤ、HDDプレイヤなどが挙げられる(この場合、テレビジョン受像機等が接続される出力端子PROD_D4が動
画像の主な供給先となる)。また、テレビジョン受像機(この場合、ディスプレイPROD_D3が動画像の主な供給先となる)、デジタルサイネージ(電子看板や電子掲示板等とも称
され、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)、デスクトップ型PC(この場合、出力端子PROD_D4または送信部PROD_D5が動画像の主な供給先となる)、ラップトップ型またはタブレット型PC(この場合、ディスプレイPROD_D3または送
信部PROD_D5が動画像の主な供給先となる)、スマートフォン(この場合、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)なども、このような再生装置PROD_Dの一例である。
Such a playback device PROD_D includes, for example, a DVD player, a BD player, an HDD player, and the like (in this case, an output terminal PROD_D4 to which a television receiver or the like is connected is a main destination of a moving image). . In addition, a television receiver (in this case, the display PROD_D3 is a main supply destination of the moving image), a digital signage (also referred to as an electronic signboard or an electronic bulletin board, etc.) Desktop PC (in this case, the output terminal PROD_D4 or the transmission unit PROD_D5 is the main supply destination of moving images), laptop or tablet PC (in this case, the display PROD_D3 or the transmission unit PROD_D5 is a moving image A main supply destination of an image), a smartphone (in this case, the display PROD_D3 or the transmission unit PROD_D5 is a main supply destination of a moving image) are also examples of such a playback device PROD_D.

(ハードウェア的実現およびソフトウェア的実現)
また、前述した画像復号装置31および画像符号化装置11の各ブロックは、集積回路(ICチップ)上に形成された論理回路によってハードウェア的に実現してもよいし、CPU
(Central Processing Unit)を用いてソフトウェア的に実現してもよい。
(Hardware realization and software realization)
Also, each block of the image decoding device 31 and the image encoding device 11 described above may be realized in hardware by a logic circuit formed on an integrated circuit (IC chip),
(Central Processing Unit).

後者の場合、前記各装置は、各機能を実現するプログラムの命令を実行するCPU、前記
プログラムを格納したROM(Read Only Memory)、前記プログラムを展開するRAM(Random
Access Memory)、前記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の実施形態の目的は、前述した機能を実現するソフトウェアである前記各装置の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、前記各装置に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。
In the latter case, each device includes a CPU that executes instructions of a program for realizing each function, a ROM (Read Only Memory) storing the program, and a RAM (Random) that expands the program.
Access Memory), and a storage device (recording medium) such as a memory for storing the program and various data. An object of an embodiment of the present invention is to record a program code (executable program, intermediate code program, source program) of a control program of each device, which is software for realizing the above-described functions, in a computer-readable manner. The present invention can also be achieved by supplying a medium to each of the above-described devices, and reading out and executing a program code recorded on a recording medium by a computer (or CPU or MPU).

前記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ類、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD-ROM(Compact Disc Read-Only Memory)/MOディスク(Magneto-Optical disc)/MD(Mini Disc)/DVD(Digital Versatile Disc)/CD-R(CD Recordable)/ブルーレイディスク(Blu-ray Disc:登録商標)等の光ディスクを含むディスク類、ICカード(メモリカードを含む)/光カード等のカード類、マスクROM/EPROM(Erasable Programmable Read-Only Memory)/EEPROM(Electrically Erasable and Programmable Read-Only Memory:登録商標)/フラッシ
ュROM等の半導体メモリ類、またはPLD(Programmable logic device)やFPGA(Field Programmable Gate Array)等の論理回路類などを用いることができる。
Examples of the recording medium include tapes such as a magnetic tape and a cassette tape; magnetic disks such as a floppy (registered trademark) disk / hard disk; and CD-ROMs (Compact Disc Read-Only Memory) / MO disks (Magneto-Optical discs). ) / MD (Mini Disc) / DVD (Digital Versatile Disc) / CD-R (CD Recordable) / Blu-ray Disc (Blu-ray Disc: registered trademark) and other discs including optical discs, IC cards (including memory cards) / Electronically Erasable and Programmable Read-Only Memory (EEPROM) / Electrically Erasable and Programmable Read-Only Memory (registered trademark) / flash ROM and other semiconductor memories or PLDs (Programmable logic devices) ) Or logic circuits such as an FPGA (Field Programmable Gate Array).

また、前記各装置を通信ネットワークと接続可能に構成し、前記プログラムコードを通信ネットワークを介して供給してもよい。この通信ネットワークは、プログラムコードを伝送可能であればよく、特に限定されない。例えば、インターネット、イントラネット、
エキストラネット、LAN(Local Area Network)、ISDN(Integrated Services Digital Network)、VAN(Value-Added Network)、CATV(Community Antenna television/Cable Television)通信網、仮想専用網(Virtual Private Network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、この通信ネットワークを構成する伝送媒体も、プログラムコードを伝送可能な媒体であればよく、特定の構成または種類のものに限定されない。例えば、IEEE(Institute of Electrical and Electronic Engineers)1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL(Asymmetric Digital Subscriber Line)回線等の有線でも、IrDA(Infrared Data Association)やリモコンのような赤外線、BlueTooth(登録商標)、IEEE802.11無線、HDR(High Data Rate)、NFC(Near Field Communication)、DLNA(Digital Living Network Alliance:登録商標)、携帯電話網、衛星回線、地上デジタル放送網等の無線でも利用可能である。なお、本発明の実施形態は、前記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。
Further, the respective devices may be configured to be connectable to a communication network, and the program code may be supplied via the communication network. This communication network is not particularly limited as long as it can transmit a program code. For example, the Internet, intranet,
Extranet, LAN (Local Area Network), ISDN (Integrated Services Digital Network), VAN (Value-Added Network), CATV (Community Antenna television / Cable Television) communication network, virtual private network (Virtual Private Network), telephone line network , A mobile communication network, a satellite communication network and the like can be used. Also, the transmission medium constituting this communication network may be any medium capable of transmitting the program code, and is not limited to a specific configuration or type. For example, even if a cable such as IEEE (Institute of Electrical and Electronic Engineers) 1394, USB, power line carrier, cable TV line, telephone line, ADSL (Asymmetric Digital Subscriber Line) line, etc., infrared rays such as IrDA (Infrared Data Association) and remote control are used. , BlueTooth (registered trademark), IEEE 802.11 wireless, HDR (High Data Rate), NFC (Near Field Communication), DLNA (Digital Living Network Alliance: registered trademark), mobile phone network, satellite line, terrestrial digital broadcasting network, etc. It can also be used wirelessly. Note that the embodiment of the present invention can also be realized in the form of a computer data signal embedded in a carrier wave, in which the program code is embodied by electronic transmission.

〔付記事項〕
本発明の実施形態は前述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。
[Appendix]
Embodiments of the present invention are not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims. That is, embodiments obtained by combining technical means appropriately changed within the scope of the claims are also included in the technical scope of the present invention.

本願の実施形態は、残差画像と予測画像とを加算して生成された、復号画像を構成する複数の符号化単位の各画素値に第1のオフセットを加算する第1の画像フィルタ装置であって、対象画素に対し2次元方向の画素値の変化パターンを示す第1のカテゴリ、および2次元方向の画素値の変化量を示す第1のクラスを設定する第1の設定部と、符号化データから復号された第1のオフセットの中から、前記第1のカテゴリと第1のクラスを参照して求めた第1のオフセットを前記対象画素値に加算する第1の加算部とを備え、前記設定部は、第1のカテゴリおよび第1のクラスを設定するために、対象画素の隣接画素を参照画素として利用し、前記参照画素は対象画素に対し水平・垂直方向の隣接4画素と、対象画素に対し左上右下・左下右上方向の隣接4画素を切り替える。これにより、参照画素を水平・垂直あるいは斜め方向に切り替えるため、最適な参照方向を選択し、オフセット加算により画素値を補正することができる。   An embodiment of the present application is a first image filter device that adds a first offset to each pixel value of a plurality of coding units that form a decoded image and is generated by adding a residual image and a predicted image. A first setting unit that sets a first category indicating a two-dimensional direction pixel value change pattern and a first class indicating a two-dimensional direction pixel value change amount for the target pixel; And a first adder that adds a first offset obtained by referring to the first category and the first class to the target pixel value from among the first offsets decoded from the encoded data. The setting unit uses a pixel adjacent to the target pixel as a reference pixel in order to set a first category and a first class, and the reference pixel includes four pixels adjacent to the target pixel in the horizontal and vertical directions. , Upper left lower right, lower left right Switching the direction of the adjacent four pixels. Accordingly, since the reference pixel is switched in the horizontal, vertical, or oblique direction, the optimal reference direction can be selected, and the pixel value can be corrected by offset addition.

本願の実施形態は、前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、符号化データから復号された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のオフセットの加算を行わず、第1の加算部で第1のオフセットを加算しなかった画素に対して第2のオフセットを加算する。これにより、2次元方向の画素値の変化からはオフセットの加算が不要でも、1次元方向の画素値の変化からはオフセットの加算が必要な場合にも、適切にオフセットを加算することができ、かつ、オフセット加算処理を二重に実施することを回避することができる。   An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an output image of the first filter device. A second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of a pixel value in the one-dimensional direction, and a range of the target pixel value. And a second setting unit that sets a band position indicating the second offset, obtained from the second offset decoded from the encoded data, by referring to the second category, as the target pixel value. A second adding unit for adding the first offset without adding the second offset to the pixel to which the first offset has been added by the first adding unit. Part did not add the first offset Adding the second offset with respect to iodine. Thereby, even when the addition of the offset is unnecessary from the change in the pixel value in the two-dimensional direction, the offset can be appropriately added even when the addition of the offset is necessary from the change in the pixel value in the one-dimensional direction, Further, it is possible to avoid performing the offset addition processing twice.

本願の実施形態は、前記第1のフィルタ装置の入力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、符号化データから復号された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対
象画素値に加算する第2の加算部とを備え、第1のフィルタ装置の第1の加算部は第2の加算部で第2のオフセットを加算した画素に対しては、第1のオフセットを加算し、第2の加算部で第2のオフセットを加算しなかった画素に対しては第1のオフセットを加算しない。これにより、1次元方向の画素値の変化からはオフセットの加算が必要な画素に対し、さらに2次元方向の画素値の変化を考慮したオフセットを加算することができる。
An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in pixel value in a one-dimensional direction with respect to an input image of the first filter device. A second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of a pixel value in the one-dimensional direction, and a range of the target pixel value. And a second setting unit that sets a band position indicating the second offset, obtained from the second offset decoded from the encoded data, by referring to the second category, as the target pixel value. A second adder for adding, wherein the first adder of the first filter device adds the first offset to the pixel added with the second offset by the second adder, In the second adder, the second offset Not adding the first offset for pixels not calculated. This makes it possible to add an offset in consideration of a change in the pixel value in the two-dimensional direction to a pixel that needs to be added with an offset from a change in the pixel value in the one-dimensional direction.

本願の実施形態は、前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリを用いる第1のタイプと、対象画素値の範囲を示すバンド位置を用いる第2のタイプを設定する第2の設定部と、符号化データから復号された第2のオフセットの中から、前記第2のカテゴリあるいはバンド位置を参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のタイプを用いるオフセットの加算を行い、第1の加算部で第1のオフセットを加算しなかった画素に対しては第1のタイプを用いるオフセットの加算を行うことを特徴とする画像フィルタ装置。これにより、異なる画質改善効果をもつフィルタ処理を組み合わせることで、冗長な処理を回避することができる。   An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an output image of the first filter device. A first type using a second class indicating a direction to refer to the target pixel in a one-dimensional direction, and a second type using a second category indicating a change pattern of a pixel value in the one-dimensional direction. A second setting unit for setting a second type using a band position indicating a range of the target pixel value, and a second category or band position from a second offset decoded from encoded data. A second adding unit that adds the second offset obtained by reference to the target pixel value, wherein the second adding unit is configured to add the first offset to the pixel added by the first adding unit. Off, using the second type Performs addition of Tsu bets, for pixels that have not adding the first offset in the first addition unit image filter device which is characterized in that the addition of the offset using the first type. This makes it possible to avoid redundant processing by combining filter processes having different image quality improvement effects.

本願の実施形態は、残差画像と予測画像とを加算して生成された、局所復号画像を構成する複数の符号化単位の各画素値に第1のオフセットを加算する第1の画像フィルタ装置であって、対象画素に対し2次元方向の画素値の変化パターンを示す第1のカテゴリ、および2次元方向の画素値の変化量を示す第1のクラスを設定する第1の設定部と、第1のオフセット算出部された第1のオフセットの中から、前記第1のカテゴリと第1のクラスを参照して求めた第1のオフセットを前記対象画素値に加算する第1の加算部とを備え、前記設定部は、第1のカテゴリおよび第1のクラスを設定するために、対象画素の隣接画素を参照画素として利用し、前記参照画素は対象画素に対し水平・垂直方向の隣接4画素と、対象画素に対し左上右下・左下右上方向の隣接4画素を切り替えることを特徴とする第1の画像フィルタ装置を備える画像フィルタ装置。これにより、参照画素を水平・垂直あるいは斜め方向に切り替えるため、最適な参照方向を選択し、オフセット加算により画素値を補正することができる。   An embodiment of the present application provides a first image filter device that adds a first offset to each pixel value of a plurality of coding units that constitute a locally decoded image and is generated by adding a residual image and a prediction image. A first setting unit that sets a first category indicating a two-dimensional pixel value change pattern for the target pixel, and a first class indicating a two-dimensional direction pixel value change amount, A first adder for adding a first offset obtained by referring to the first category and the first class to the target pixel value from among the first offsets calculated by the first offset calculator; The setting unit uses a pixel adjacent to the target pixel as a reference pixel to set a first category and a first class, and the reference pixel is adjacent to the target pixel in the horizontal and vertical directions. Pixel and target pixel Image filter apparatus comprising a first image filter device characterized by switching the four adjacent pixels in the lower right upper direction. Accordingly, since the reference pixel is switched in the horizontal, vertical, or oblique direction, the optimal reference direction can be selected, and the pixel value can be corrected by offset addition.

本願の実施形態は、前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、第2のオフセット算出部された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のオフセットの加算を行わず、第1の加算部で第1のオフセットを加算しなかった画素に対して第2のオフセットを加算する。これにより、2次元方向の画素値の変化からはオフセットの加算が不要でも、1次元方向の画素値の変化からはオフセットの加算が必要な場合にも、適切にオフセットを加算することができ、かつ、オフセット加算処理を二重に実施することを回避することができる。   An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an output image of the first filter device. A second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of a pixel value in the one-dimensional direction, and a range of the target pixel value. A second setting unit that sets a band position indicating a second offset, and a second offset obtained by referring to the second category from among the second offsets calculated by the second offset calculating unit. And a second adding unit that adds the first offset to the pixel to which the first offset has been added by the first adding unit. Addition unit does not add the first offset Adding the second offset to the pixel. Thereby, even when the addition of the offset is unnecessary from the change in the pixel value in the two-dimensional direction, the offset can be appropriately added even when the addition of the offset is necessary from the change in the pixel value in the one-dimensional direction, Further, it is possible to avoid performing the offset addition processing twice.

本願の実施形態は、前記第1のフィルタ装置の入力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、第2のオフセット算出部された第
2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第1のフィルタ装置の第1の加算部は第2の加算部で第2のオフセットを加算した画素に対しては、第1のオフセットを加算し、第2の加算部で第2のオフセットを加算しなかった画素に対しては第1のオフセットを加算しないことを特徴とする画像フィルタ装置。これにより、1次元方向の画素値の変化からはオフセットの加算が必要な画素に対し、さらに2次元方向の画素値の変化を考慮したオフセットを加算することができる。
An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in pixel value in a one-dimensional direction with respect to an input image of the first filter device. A second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of a pixel value in the one-dimensional direction, and a range of the target pixel value. A second setting unit that sets a band position indicating a second offset, and a second offset obtained by referring to the second category from among the second offsets calculated by the second offset calculating unit. And a second adder for adding the first offset to the pixel to which the second offset has been added by the second adder. , The second offset in the second adder Image filter apparatus characterized by not adding the first offset for pixels which are not added. This makes it possible to add an offset in consideration of a change in the pixel value in the two-dimensional direction to a pixel that needs to be added with an offset from a change in the pixel value in the one-dimensional direction.

本願の実施形態は、前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリを用いる第1のタイプと、対象画素値の範囲を示すバンド位置を用いる第2のタイプを設定する第2の設定部と、第2のオフセット算出部された第2のオフセットの中から、前記第2のカテゴリあるいはバンド位置を参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のタイプを用いるオフセットの加算を行い、第1の加算部で第1のオフセットを加算しなかった画素に対しては第1のタイプを用いるオフセットの加算を行う。これにより、異なる画質改善効果をもつフィルタ処理を組み合わせることで、冗長な処理を回避することができる。   An embodiment of the present application provides a second image filter device that adds an offset to each pixel value of a coding unit using a change in pixel value in a one-dimensional direction with respect to an output image of the first filter device. A first type using a second class indicating a direction to refer to the target pixel in a one-dimensional direction, and a second type using a second category indicating a change pattern of a pixel value in the one-dimensional direction. A second setting unit that sets a second type using a band position indicating a range of target pixel values, and the second category or band position from the second offset calculated by the second offset calculating unit. And a second adder that adds a second offset obtained by referring to the above to the target pixel value, wherein the second adder is configured to add a first offset to the pixel added by the first adder. Uses the second type Performs addition of the set, for pixels that have not adding the first offset in a first adding unit for adding an offset using the first type. This makes it possible to avoid redundant processing by combining filter processes having different image quality improvement effects.

本願の実施形態は、2次元方向の画素値の変化を用いて算出したオフセットの加算によるフィルタ処理を、2つの1次元方向の画素値の変化を用いて算出したオフセットの加算によるフィルタ処理の組み合わせで表現する。2つの1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する画像フィルタは、対象画素に対し、異なる1次元方向を示す2つのクラス、クラスの示す方向の画素値の変化パターンを示す2つのカテゴリ、および対象画素値の範囲を示すバンド位置を設定する設定部と、符号化データから復号されたオフセットの中から、前記カテゴリを参照して求めた2つのオフセットを前記対象画素値に加算する加算部とを備え、加算部は前記2つのオフセットの平均を対象画素に加算する。これにより、2つの1次元方向フィルタの組み合わせで表現することで、冗長な処理を削除し、かつ、1次元方向の画素値の変化だけでは表現できなかった画素値の変化のパターンに対応することができ、より効率的なフィルタ処理を実現できる。   The embodiment of the present application is a combination of a filtering process by adding an offset calculated using a change in a two-dimensional pixel value and a filtering process by adding an offset calculated using two changes in a one-dimensional pixel value. Expressed by An image filter that adds an offset to each pixel value of a coding unit by using a change in pixel values in two one-dimensional directions provides two classes indicating different one-dimensional directions for a target pixel, and directions indicated by the classes. And a setting unit for setting a band position indicating a range of a target pixel value, and a setting unit for setting a band position indicating a range of the target pixel value, and a category obtained by referring to the category from among the offsets decoded from the encoded data. An adding unit that adds two offsets to the target pixel value, and the adding unit adds an average of the two offsets to the target pixel. Accordingly, by expressing by a combination of two one-dimensional direction filters, redundant processing is eliminated, and a pattern of change in pixel value that cannot be expressed by only a change in pixel value in one-dimensional direction is supported. And more efficient filtering can be realized.

本願の実施形態は、1次元方向の画素値の変化を利用するフィルタ(第2のフィルタ)、および2次元方向の画素値の変化を利用するフィルタ(第1のフィルタ)の参照画素位置の情報を共有する。第1のフィルタの後で第2のフィルタを適用する場合、第1のフィルタで使用した参照画素位置を参照して第2のフィルタの参照画素位置を決定する。第2のフィルタの後で第1のフィルタを適用する場合、第2のフィルタで使用した参照画素位置を参照して第1のフィルタの参照画素位置を決定する。これにより、参照画素位置の導出処理を共通化できるため、冗長な処理を削減することができる。   According to the embodiment of the present application, information on a reference pixel position of a filter (second filter) using a change in pixel value in a one-dimensional direction and a filter (first filter) using a change in pixel value in a two-dimensional direction To share. When applying the second filter after the first filter, the reference pixel position of the second filter is determined with reference to the reference pixel position used in the first filter. When applying the first filter after the second filter, the reference pixel position of the first filter is determined with reference to the reference pixel position used in the second filter. Thereby, the derivation processing of the reference pixel position can be shared, and redundant processing can be reduced.

本願の実施形態は、ピクチャパラメータセット、またはスライスヘッダにおいて、第1のフィルタのクラスの最大数と、正規化係数を符号化し、CTUレベルでは画素値の変化量
に関係の深いパラメータを用いてPOクラスの最大数と、正規化係数を推定する。画素値の変化量に関係の深いパラメータとして量子化幅QPやCUサイズを使用する。これにより、CTU毎に第1のフィルタのクラスの最大数と、正規化係数を符号化しなくてよいので、符号
量を削減しつつ、細かいオフセットの調整ができる。
The embodiment of the present application encodes the maximum number of the first filter class and the normalization coefficient in a picture parameter set or a slice header, and uses a parameter closely related to a change amount of a pixel value at a CTU level. Estimate the maximum number of classes and the normalization factor. The quantization width QP and the CU size are used as parameters closely related to the amount of change in the pixel value. This eliminates the need to encode the maximum number of classes of the first filter and the normalization coefficient for each CTU, so that fine offset adjustment can be performed while reducing the code amount.

本願の実施形態は、値が小さい2回目のフィルタ処理のオフセットを1回目のフィルタ
処理のオフセットの最大値以下とする。また、1回目の処理のオフセットのバイナリゼーションは大きな入力値で符号量が大きくなりにくい符号化方法を選択し、2回目の処理のオフセットのバイナリゼーションは小さな入力値で符号量が小さくなりやすい符号化方法を選択する。これにより、2回目の処理で使用するオフセットの符号量を、1回目の処理で使用する符号量よりも削減することができる。
In the embodiment of the present application, the offset of the second filtering process having a small value is set to be equal to or less than the maximum value of the offset of the first filtering process. In addition, for the binary processing of the offset in the first processing, a coding method in which the code amount is difficult to increase with a large input value is selected, and in the binary processing of the offset in the second processing, the coding method is likely to reduce the code amount with a small input value. Select a conversion method. Thereby, the code amount of the offset used in the second processing can be reduced more than the code amount used in the first processing.

本発明の実施形態は、画像データが符号化された符号化データを復号する画像復号装置、および、画像データが符号化された符号化データを生成する画像符号化装置に好適に適用することができる。また、画像符号化装置によって生成され、画像復号装置によって参照される符号化データのデータ構造に好適に適用することができる。   Embodiments of the present invention can be suitably applied to an image decoding device that decodes encoded data obtained by encoding image data, and an image encoding device that generates encoded data obtained by encoding image data. it can. Further, the present invention can be suitably applied to the data structure of encoded data generated by an image encoding device and referenced by the image decoding device.

11 画像符号化装置
31 画像復号装置
314 SAO部
115 SAO_E部
2001 PO部
2201 PO_E部
11 Image Encoding Device 31 Image Decoding Device 314 SAO Unit 115 SAO_E Unit 2001 PO Unit 2201 PO_E Unit

Claims (8)

残差画像と予測画像とを加算して生成された、復号画像を構成する複数の符号化単位の各画素値に第1のオフセットを加算する第1の画像フィルタ装置であって、
対象画素に対し2次元方向の画素値の変化パターンを示す第1のカテゴリ、および2次元方向の画素値の変化量を示す第1のクラスを設定する第1の設定部と、
符号化データから復号された第1のオフセットの中から、前記第1のカテゴリと第1のクラスを参照して求めた第1のオフセットを前記対象画素値に加算する第1の加算部とを備え、
前記設定部は、第1のカテゴリおよび第1のクラスを設定するために、対象画素の隣接画素を参照画素として利用し、
前記参照画素は対象画素に対し水平・垂直方向の隣接4画素と、対象画素に対し左上右下・左下右上方向の隣接4画素を切り替えることを特徴とする第1の画像フィルタ装置を備える画像フィルタ装置。
A first image filter device configured to add a first offset to each pixel value of a plurality of coding units forming a decoded image, which is generated by adding a residual image and a prediction image,
A first setting unit that sets a first category indicating a two-dimensional direction pixel value change pattern and a first class indicating a two-dimensional direction pixel value change amount for the target pixel;
A first adder that adds a first offset obtained by referring to the first category and the first class to the target pixel value from among the first offsets decoded from the encoded data; Prepared,
The setting unit uses a pixel adjacent to the target pixel as a reference pixel to set a first category and a first class,
An image filter comprising a first image filter device, wherein the reference pixel switches between four adjacent pixels in the horizontal and vertical directions with respect to the target pixel and four adjacent pixels in the upper left and lower right and lower left and upper right directions with respect to the target pixel. apparatus.
請求項1において、
前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、
第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、
符号化データから復号された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、
第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のオフセットの加算を行わず、第1の加算部で第1のオフセットを加算しなかった画素に対して第2のオフセットの加算することを特徴とする画像フィルタ装置。
In claim 1,
A second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an output image of the first filter device,
The second image filter device indicates a second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of pixel values in a one-dimensional direction, and a range of the target pixel value. A second setting unit for setting a band position;
A second adder that adds a second offset obtained by referring to the second category to the target pixel value from among the second offsets decoded from the encoded data,
The second adder did not add the second offset to the pixel to which the first offset was added in the first adder, and did not add the first offset in the first adder. An image filter device, wherein a second offset is added to a pixel.
請求項1において、
前記第1のフィルタ装置の入力画像に対し、1次元方向の画素値の変化を利用して符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、
第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、
符号化データから復号された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、
第1のフィルタ装置の第1の加算部は第2の加算部で第2のオフセットを加算した画素に対しては、第1のオフセットを加算し、第2の加算部で第2のオフセットを加算しなかった画素に対しては第1のオフセットを加算しないことを特徴とする画像フィルタ装置。
In claim 1,
A second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an input image of the first filter device,
The second image filter device indicates a second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of pixel values in a one-dimensional direction, and a range of the target pixel value. A second setting unit for setting a band position;
A second adder that adds a second offset obtained by referring to the second category to the target pixel value from among the second offsets decoded from the encoded data,
The first addition unit of the first filter device adds the first offset to the pixel to which the second offset has been added by the second addition unit, and adds the second offset to the pixel by the second addition unit. An image filter device, wherein a first offset is not added to a pixel that has not been added.
請求項1において、
前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、
第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリを用いる第1のタイプと、対象画素値の範囲を示すバンド位置を用いる第2のタイプを設定する第2の設定部と、
符号化データから復号された第2のオフセットの中から、前記第2のカテゴリあるいはバンド位置を参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、
第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のタイプを用いるオフセットの加算を行い、第1の加算部で第1のオフセットを加算しなかっ
た画素に対しては第1のタイプを用いるオフセットの加算を行うことを特徴とする画像フィルタ装置。
In claim 1,
A second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an output image of the first filter device,
The second image filter device includes a first type using a second class indicating a direction in which a target pixel is referred to in a one-dimensional direction and a second type using a second category indicating a change pattern of pixel values in a one-dimensional direction. A second setting unit that sets a second type using a band position indicating a range of pixel values;
A second adding unit that adds a second offset obtained by referring to the second category or the band position to the target pixel value from among the second offsets decoded from the encoded data,
The second addition unit adds an offset using the second type to the pixel to which the first offset has been added in the first addition unit, and adds the first offset in the first addition unit. An image filter apparatus, wherein an offset using the first type is added to a missing pixel.
残差画像と予測画像とを加算して生成された、局所復号画像を構成する複数の符号化単位の各画素値に第1のオフセットを加算する第1の画像フィルタ装置であって、
対象画素に対し2次元方向の画素値の変化パターンを示す第1のカテゴリ、および2次元方向の画素値の変化量を示す第1のクラスを設定する第1の設定部と、
第1のオフセット算出部された第1のオフセットの中から、前記第1のカテゴリと第1のクラスを参照して求めた第1のオフセットを前記対象画素値に加算する第1の加算部とを備え、
前記設定部は、第1のカテゴリおよび第1のクラスを設定するために、対象画素の隣接画素を参照画素として利用し、
前記参照画素は対象画素に対し水平・垂直方向の隣接4画素と、対象画素に対し左上右下・左下右上方向の隣接4画素を切り替えることを特徴とする第1の画像フィルタ装置を備える画像フィルタ装置。
A first image filter device configured to add a first offset to each pixel value of a plurality of coding units included in a locally decoded image generated by adding a residual image and a prediction image,
A first setting unit that sets a first category indicating a two-dimensional direction pixel value change pattern and a first class indicating a two-dimensional direction pixel value change amount for the target pixel;
A first adder for adding a first offset obtained by referring to the first category and the first class to the target pixel value from among the first offsets calculated by the first offset calculator; With
The setting unit uses a pixel adjacent to the target pixel as a reference pixel to set a first category and a first class,
An image filter comprising a first image filter device, wherein the reference pixel switches between four adjacent pixels in the horizontal and vertical directions with respect to the target pixel and four adjacent pixels in the upper left and lower right and lower left and upper right directions with respect to the target pixel. apparatus.
請求項5において、
前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、
第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、
第2のオフセット算出部された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、
第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のオフセットの加算を行わず、第1の加算部で第1のオフセットを加算しなかった画素に対して第2のオフセットの加算することを特徴とする画像フィルタ装置。
In claim 5,
A second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an output image of the first filter device,
The second image filter device indicates a second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of pixel values in a one-dimensional direction, and a range of the target pixel value. A second setting unit for setting a band position;
A second adder that adds a second offset obtained by referring to the second category to the target pixel value from among the second offsets calculated by the second offset calculator;
The second adder did not add the second offset to the pixel to which the first offset was added in the first adder, and did not add the first offset in the first adder. An image filter device, wherein a second offset is added to a pixel.
請求項5において、
前記第1のフィルタ装置の入力画像に対し、1次元方向の画素値の変化を利用して符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、
第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリ、および対象画素値の範囲を示すバンド位置を設定する第2の設定部と、
第2のオフセット算出部された第2のオフセットの中から、前記第2のカテゴリを参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、
第1のフィルタ装置の第1の加算部は第2の加算部で第2のオフセットを加算した画素に対しては、第1のオフセットを加算し、第2の加算部で第2のオフセットを加算しなかった画素に対しては第1のオフセットを加算しないことを特徴とする画像フィルタ装置。
In claim 5,
A second image filter device that adds an offset to each pixel value of a coding unit using a change in a pixel value in a one-dimensional direction with respect to an input image of the first filter device,
The second image filter device indicates a second class indicating a direction to refer to the target pixel in a one-dimensional direction, a second category indicating a change pattern of pixel values in a one-dimensional direction, and a range of the target pixel value. A second setting unit for setting a band position;
A second adder that adds a second offset obtained by referring to the second category to the target pixel value from among the second offsets calculated by the second offset calculator;
The first addition unit of the first filter device adds the first offset to the pixel to which the second offset has been added by the second addition unit, and adds the second offset to the pixel by the second addition unit. An image filter device, wherein a first offset is not added to a pixel that has not been added.
請求項5において、
前記第1のフィルタ装置の出力画像に対し、1次元方向の画素値の変化を利用して、符号化単位の各画素値にオフセットを加算する第2の画像フィルタ装置を備え、
第2の画像フィルタ装置は、対象画素に対し1次元方向に参照する方向を示す第2のクラス、1次元方向の画素値の変化パターンを示す第2のカテゴリを用いる第1のタイプと、対象画素値の範囲を示すバンド位置を用いる第2のタイプを設定する第2の設定部と、
第2のオフセット算出部された第2のオフセットの中から、前記第2のカテゴリあるいはバンド位置を参照して求めた第2のオフセットを前記対象画素値に加算する第2の加算部とを備え、
第2の加算部は第1の加算部で第1のオフセットを加算した画素に対しては、第2のタ
イプを用いるオフセットの加算を行い、第1の加算部で第1のオフセットを加算しなかった画素に対しては第1のタイプを用いるオフセットの加算を行うことを特徴とする画像フィルタ装置。
In claim 5,
A second image filter device that adds an offset to each pixel value of a coding unit using a change in pixel value in a one-dimensional direction with respect to an output image of the first filter device,
The second image filter device includes a first type using a second class indicating a direction in which a target pixel is referred to in a one-dimensional direction and a second type using a second category indicating a change pattern of pixel values in a one-dimensional direction. A second setting unit that sets a second type using a band position indicating a range of pixel values;
A second adder for adding a second offset obtained by referring to the second category or band position from the second offset calculated by the second offset calculator to the target pixel value. ,
The second addition unit adds an offset using the second type to the pixel to which the first offset has been added in the first addition unit, and adds the first offset in the first addition unit. An image filter apparatus, wherein an offset using the first type is added to a missing pixel.
JP2016234014A 2016-12-01 2016-12-01 Image filter device Pending JP2020025150A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016234014A JP2020025150A (en) 2016-12-01 2016-12-01 Image filter device
PCT/JP2017/041624 WO2018101100A1 (en) 2016-12-01 2017-11-20 Image filter device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016234014A JP2020025150A (en) 2016-12-01 2016-12-01 Image filter device

Publications (1)

Publication Number Publication Date
JP2020025150A true JP2020025150A (en) 2020-02-13

Family

ID=62242478

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016234014A Pending JP2020025150A (en) 2016-12-01 2016-12-01 Image filter device

Country Status (2)

Country Link
JP (1) JP2020025150A (en)
WO (1) WO2018101100A1 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8660174B2 (en) * 2010-06-15 2014-02-25 Mediatek Inc. Apparatus and method of adaptive offset for video coding

Also Published As

Publication number Publication date
WO2018101100A1 (en) 2018-06-07

Similar Documents

Publication Publication Date Title
JP7516603B2 (en) IMAGE FILTER DEVICE, IMAGE DECODING DEVICE, AND IMAGE ENCODING DEVICE
JP7223886B2 (en) Image decoding method
WO2018116925A1 (en) Intra prediction image generating device, image decoding device, and image coding device
US10863186B2 (en) Image decoding apparatus and image coding apparatus
WO2018116802A1 (en) Image decoding device, image coding device, and image predicting device
JP7213689B2 (en) Image decoding device and image encoding device
WO2018221368A1 (en) Moving image decoding device, and moving image encoding device
JP2021005741A (en) Image coding device and image decoding device
WO2018110203A1 (en) Moving image decoding apparatus and moving image encoding apparatus
JP2021010046A (en) Image encoding device and image decoding device
JP2019216294A (en) Entropy decoding apparatus, entropy coding apparatus, image decoding device, and image coding device
WO2019182159A1 (en) Image filtering device, image decoding device, and image encoding device
JP7073186B2 (en) Image filter device
WO2018199002A1 (en) Moving picture encoding device and moving picture decoding device
JP2020120141A (en) Dynamic image encoding device, dynamic image decoding device, and filter device
JP7241153B2 (en) image decoding device
WO2018159526A1 (en) Moving picture coding device and moving picture decoding device
WO2019230904A1 (en) Image decoding device and image encoding device
WO2019159820A1 (en) Moving image encoding device and moving image decoding device
WO2018143289A1 (en) Image encoding device and image decoding device
JP2019201332A (en) Image encoding device, image decoding device, and image encoding system
WO2019131349A1 (en) Image decoding device and image coding device
WO2018061550A1 (en) Image decoding device and image coding device
JP2020036101A (en) Image decoder, and image encoder
WO2018101100A1 (en) Image filter device