JP6341304B2 - Image processing apparatus and method, program, and recording medium - Google Patents

Image processing apparatus and method, program, and recording medium Download PDF

Info

Publication number
JP6341304B2
JP6341304B2 JP2017024599A JP2017024599A JP6341304B2 JP 6341304 B2 JP6341304 B2 JP 6341304B2 JP 2017024599 A JP2017024599 A JP 2017024599A JP 2017024599 A JP2017024599 A JP 2017024599A JP 6341304 B2 JP6341304 B2 JP 6341304B2
Authority
JP
Japan
Prior art keywords
unit
offset
color difference
image
luminance
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.)
Expired - Fee Related
Application number
JP2017024599A
Other languages
Japanese (ja)
Other versions
JP2017112637A (en
Inventor
佐藤 数史
数史 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2017024599A priority Critical patent/JP6341304B2/en
Publication of JP2017112637A publication Critical patent/JP2017112637A/en
Application granted granted Critical
Publication of JP6341304B2 publication Critical patent/JP6341304B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本開示は画像処理装置および方法、プログラム、並びに記録媒体に関し、特に、色差信号に対する符号化効率を向上することができるようにした画像処理装置および方法、プログラム、並びに記録媒体に関する。   The present disclosure relates to an image processing apparatus and method, a program, and a recording medium, and more particularly, to an image processing apparatus and method, a program, and a recording medium that can improve the encoding efficiency for a color difference signal.

近年、画像情報をデジタルとして取り扱い、その際、効率の高い情報の伝送、蓄積を目的とし、画像情報特有の冗長性を利用して、離散コサイン変換等の直交変換と動き補償により圧縮する符号化方式を採用して画像を圧縮符号する装置が普及しつつある。この符号化方式には、例えば、MPEG(Moving Picture Experts Group)などがある。   In recent years, image information has been handled as digital data, and at that time, for the purpose of efficient transmission and storage of information, encoding is performed by orthogonal transform such as discrete cosine transform and motion compensation using redundancy unique to image information. An apparatus that employs a method to compress and code an image is becoming widespread. This encoding method includes, for example, MPEG (Moving Picture Experts Group).

特に、MPEG2(ISO/IEC 13818-2)は、汎用画像符号化方式として定義されており、飛び越し走査画像及び順次走査画像の双方、並びに標準解像度画像及び高精細画像を網羅する標準である。例えば、MPEG2は、プロフェッショナル用途及びコンシューマ用途の広範なアプリケーションに現在広く用いられている。MPEG2圧縮方式を用いることにより、例えば720×480画素を持つ標準解像度の飛び越し走査画像であれば4乃至8Mbpsの符号量(ビットレート)が割り当てられる。また、MPEG2圧縮方式を用いることにより、例えば1920×1088画素を持つ高解像度の飛び越し走査画像であれば18乃至22 Mbpsの符号量(ビットレート)が割り当てられる。これにより、高い圧縮率と良好な画質の実現が可能である。   In particular, MPEG2 (ISO / IEC 13818-2) is defined as a general-purpose image coding system, and is a standard that covers both interlaced scanning images and progressive scanning images, as well as standard resolution images and high-definition images. For example, MPEG2 is currently widely used in a wide range of applications for professional and consumer applications. By using the MPEG2 compression method, for example, a code amount (bit rate) of 4 to 8 Mbps is assigned to an interlaced scanned image having a standard resolution of 720 × 480 pixels. Further, by using the MPEG2 compression method, for example, in the case of a high-resolution interlaced scanned image having 1920 × 1088 pixels, a code amount (bit rate) of 18 to 22 Mbps is allocated. As a result, a high compression rate and good image quality can be realized.

MPEG2は主として放送用に適合する高画質符号化を対象としていたが、MPEG1より低い符号量(ビットレート)、つまりより高い圧縮率の符号化方式には対応していなかった。携帯端末の普及により、今後そのような符号化方式のニーズは高まると思われ、これに対応してMPEG4符号化方式の標準化が行われた。画像符号化方式に関しては、1998年12月にISO/IEC 14496-2としてその規格が国際標準に承認された。   MPEG2 was mainly intended for high-quality encoding suitable for broadcasting, but did not support encoding methods with a lower code amount (bit rate) than MPEG1, that is, a higher compression rate. With the widespread use of mobile terminals, the need for such an encoding system is expected to increase in the future, and the MPEG4 encoding system has been standardized accordingly. Regarding the image coding system, the standard was approved as an international standard as ISO / IEC 14496-2 in December 1998.

標準化のスケジュールとしては、2003年3月にはH.264及びMPEG-4 Part10 (Advanced Video Coding、以下H.264/AVCと記す)という国際標準となっている。   As for the standardization schedule, H. H.264 and MPEG-4 Part10 (Advanced Video Coding, hereinafter referred to as H.264 / AVC).

さらに、このH.264/AVCの拡張として、RGBや4:2:2、4:4:4といった、業務用に必要な符号化ツールや、MPEG-2で規定されていた8x8DCTや量子化マトリクスをも含んだFRExt (Fidelity Range Extension) の標準化が2005年2月に完了した。これにより、H.264/AVCを用いて、映画に含まれるフィルムノイズをも良好に表現することが可能な符号化方式となって、Blu-Ray Disc(商標)等の幅広いアプリケーションに用いられる運びとなった。   Furthermore, this H.C. As an extension of H.264 / AVC, FRExt including RGB, 4: 2: 2, 4: 4: 4 coding tools necessary for business use, 8x8DCT and quantization matrix defined by MPEG-2 Standardization of (Fidelity Range Extension) was completed in February 2005. As a result, H.C. Using 264 / AVC, it became an encoding method that can express film noise contained in movies well, and it has been used in a wide range of applications such as Blu-Ray Disc (trademark).

しかしながら、昨今、ハイビジョン画像の4倍の、4000×2000画素程度の画像を圧縮したい、あるいは、インターネットのような、限られた伝送容量の環境において、ハイビジョン画像を配信したいといった、更なる高圧縮率符号化に対するニーズが高まっている。このため、先述の、ITU-T傘下のVCEG (=Video Coding Expert Group) において、符号化効率の改善に関する検討が継続され行なわれている。   However, these days, we want to compress images with a resolution of 4000 x 2000 pixels, which is four times higher than high-definition images, or deliver high-definition images in a limited transmission capacity environment such as the Internet. There is a growing need for encoding. For this reason, in the above-mentioned VCEG (= Video Coding Expert Group) under the ITU-T, studies on improving the coding efficiency are being continued.

かかる符号化効率改善の1つとして、動き補償ループ内にFIRフィルタを持つ手法が提案されている(例えば、非特許文献1参照)。符号化装置においては、このFIRフィルタ係数を、入力画像との誤差を最小にするよう、Wiener Filterにより求めることで、参照画像における劣化を最小限に抑え、出力となる画像圧縮情報の符号化効率を向上させることが可能である。   As one of such coding efficiency improvements, a method having an FIR filter in a motion compensation loop has been proposed (see Non-Patent Document 1, for example). In the encoding device, the FIR filter coefficient is obtained by the Wiener Filter so as to minimize the error from the input image, thereby minimizing deterioration in the reference image and encoding efficiency of the image compression information to be output. It is possible to improve.

そして、現在、H.264/AVCより更なる符号化効率の向上を目的として、ITU-TとISO/IECとの共同の標準化団体であるJCTVC (Joint Collaboration Team - Video Coding) により、HEVC (High Efficiency Video Coding) と呼ばれる符号化方式の標準化が進められている。HEVCにおいては、ドラフトとして非特許文献2が発行されている。   And now H. It is called HEVC (High Efficiency Video Coding) by JCTVC (Joint Collaboration Team-Video Coding), a joint standardization organization of ITU-T and ISO / IEC, for the purpose of further improving coding efficiency than H.264 / AVC. Standardization of the encoding method is underway. In HEVC, Non-Patent Document 2 is issued as a draft.

このHEVCにおいては、AVCにおけるマクロブロックと同様の処理単位としてコーディングユニット(CU(Coding Unit))が定義されている。このCUは、AVCのマクロブロックのようにサイズが16×16画素に固定されず、それぞれのシーケンスにおいて、画像圧縮情報中において指定される。   In this HEVC, a coding unit (CU (Coding Unit)) is defined as a processing unit similar to a macroblock in AVC. The CU is not fixed to a size of 16 × 16 pixels like the AVC macroblock, and is specified in the image compression information in each sequence.

CUは、最大のLCU(Largest Coding Unit)から最小のSCU(Smallest Coding Unit)まで階層的に構成される。つまり、概ね、LCUがAVCのマクロブロックに相当し、そのLCUより下の階層のCU(LCUより小さなCU)がAVCのサブマクロブロックに相当すると考えることもできる。   The CU is hierarchically configured from the largest LCU (Largest Coding Unit) to the smallest SCU (Smallest Coding Unit). That is, it can be considered that the LCU generally corresponds to an AVC macroblock, and a CU in a layer lower than the LCU (a CU smaller than the LCU) corresponds to an AVC sub-macroblock.

ところで、HEVCにおいては、非特許文献3で提案されている適応オフセットフィルタという方法が採用されている。HEVCにおいて、適応オフセットフィルタは、デブロックフィルタと適応ループフィルタの間に設けられる。   By the way, in HEVC, the method called the adaptive offset filter proposed by the nonpatent literature 3 is employ | adopted. In HEVC, the adaptive offset filter is provided between the deblocking filter and the adaptive loop filter.

適応オフセットの種類としては、バンドオフセットと呼ばれるものが2種類、エッジオフセットと呼ばれるものが6種類あり、さらに、オフセットを適応しないことも可能である。そして、画像をquad-treeに分割し、それぞれの領域に、上述したどの適応オフセットの種類により符号化するかを選択することができる。この方法を用いることで、符号化効率を向上させることができる。   There are two types of adaptive offsets called band offsets and six types called edge offsets, and it is also possible not to apply offsets. Then, the image is divided into quad-trees, and it is possible to select which of the above-described adaptive offset types is used for encoding each region. By using this method, encoding efficiency can be improved.

Takeshi Chujoh,Goki Yasuda,Naofumi Wada,Takashi Watanabe,Tomoo Yamakage,"Block-based Adaptive Loop Filter",VCEG-AI18,ITU - Telecommunications Standardization SectorSTUDY GROUP 16 Question 6Video Coding Experts Group (VCEG)35th Meeting: Berlin, Germany, 16-18 July, 2008Takeshi Chujoh, Goki Yasuda, Naofumi Wada, Takashi Watanabe, Tomoo Yamakage, "Block-based Adaptive Loop Filter", VCEG-AI18, ITU-Telecommunications Standardization SectorSTUDY GROUP 16 Question 6Video Coding Experts Group (VCEG) 35th Meeting: Berlin, Germany, 16-18 July, 2008 Thomas Wiegand,Woo-jin Han,Benjamin Bross,Jens-Rainer Ohm,Gary J. Sullivian,"WD3:Working Draft3 of High-Efficiency Video Coding", JCTVc-E603, 2011年3月Thomas Wiegand, Woo-jin Han, Benjamin Bross, Jens-Rainer Ohm, Gary J. Sullivian, "WD3: Working Draft3 of High-Efficiency Video Coding", JCTVc-E603, March 2011 ”CE8 Subtest 3:Picture Quality Adaptive Offset”,JCTVC-D122,2011年1月“CE8 Subtest 3: Picture Quality Adaptive Offset”, JCTVC-D122, January 2011

しかしながら、非特許文献3において提案されている方法は、輝度信号に対してのみ適用され、色差信号には適用されていない。したがって、色差信号に対しての対応が必要であった。   However, the method proposed in Non-Patent Document 3 is applied only to the luminance signal and is not applied to the color difference signal. Therefore, it is necessary to deal with the color difference signal.

本開示は、このような状況に鑑みてなされたものであり、色差信号に対する符号化効率を向上することができるものである。   This indication is made in view of such a situation, and can improve coding efficiency to a color difference signal.

本技術の一側面の画像処理装置は、画像の輝度信号に対する適応オフセット処理により用いられる輝度オフセット値に基づいて設定された、復号装置の前記画像の色差信号に対する適応オフセット処理に用いられるオフセット値に関する情報を符号化し、LCU(Largest Coding Unit)ヘッダに付加し、前記オフセット値に関する情報を含むビットストリームを生成する符号化部を備える。 An image processing apparatus according to an aspect of the present technology relates to an offset value used for adaptive offset processing for a color difference signal of the image of the decoding apparatus, which is set based on a luminance offset value used by adaptive offset processing for the luminance signal of the image. An encoding unit is provided that encodes information , adds the encoded information to an LCU (Largest Coding Unit) header, and generates a bitstream including information on the offset value .

前記画像の輝度信号に対する適応オフセット処理である輝度適応オフセット処理を行う輝度適応オフセット処理部と、前記画像の色差信号に対する適応オフセット処理である色差適応オフセット処理を行う色差適応オフセット処理部とをさらに備えることができる。   A luminance adaptive offset processing unit that performs luminance adaptive offset processing that is adaptive offset processing for the luminance signal of the image, and a color difference adaptive offset processing unit that performs color difference adaptive offset processing that is an adaptive offset processing for the color difference signal of the image are further provided. be able to.

前記輝度適応オフセット処理部により用いられる輝度オフセット値に基づいて、前記オフセット値に関する情報を設定する設定部をさらに備えることができる。 The information processing apparatus may further include a setting unit that sets information regarding the offset value based on the luminance offset value used by the luminance adaptive offset processing unit.

前記色差適応オフセット処理部は、前記輝度適応オフセット処理部により用いられるQuad-tree構造に基づいて、前記色差信号に対する前記色差適応オフセット処理を行うことができる。   The color difference adaptive offset processing unit can perform the color difference adaptive offset processing on the color difference signal based on a quad-tree structure used by the luminance adaptive offset processing unit.

前記色差適応オフセット処理部は、前記Quad-tree構造に基づき、バンドオフセット、エッジオフセット、およびオフの3種類を用いて、前記色差信号に対する前記色差適応オフセット処理を行うことができる。   The color difference adaptive offset processing unit can perform the color difference adaptive offset processing on the color difference signal using three types of band offset, edge offset, and off based on the quad-tree structure.

前記輝度適応オフセット処理部は、前記輝度信号の画素値を用いて、前記Quad-tree構造を決定するQuad-tree決定部と、前記Quad-tree決定部により決定された前記Quad-tree構造に分割された領域に対して、輝度オフセット値を算出する輝度オフセット算出部と、前記輝度オフセット算出部により算出された前記輝度オフセット値を用いて、前記輝度信号の画素値に対してオフセット処理を行う輝度オフセット処理部とを備え、前記色差適応オフセット処理部は、前記Quad-tree決定部により決定された前記Quad-tree構造に分割された領域に対して、色差オフセット値を算出する色差オフセット算出部と、前記色差オフセット算出部により算出された前記色差オフセット値を用いて、前記色差信号の画素値に対してオフセット処理を行う色差オフセット処理部とを備えることができる。   The luminance adaptive offset processing unit is divided into a quad-tree determining unit that determines the quad-tree structure using the pixel value of the luminance signal and the quad-tree structure determined by the quad-tree determining unit. A luminance offset calculation unit that calculates a luminance offset value for the selected region, and a luminance that performs an offset process on the pixel value of the luminance signal using the luminance offset value calculated by the luminance offset calculation unit An offset processing unit, and the color difference adaptive offset processing unit calculates a color difference offset value for a region divided into the quad-tree structure determined by the quad-tree determination unit; A color difference offset processing unit that performs an offset process on a pixel value of the color difference signal using the color difference offset value calculated by the color difference offset calculation unit; It can be provided.

前記符号化部は、前記輝度オフセット算出部により算出された前記輝度オフセット値、および前記色差オフセット算出部により算出された前記色差オフセット値から求められる色差予測残差と、前記輝度オフセット値を符号化することができる。   The encoding unit encodes the luminance offset value calculated by the luminance offset calculation unit, a color difference prediction residual obtained from the color difference offset value calculated by the color difference offset calculation unit, and the luminance offset value. can do.

前記色差オフセット値から求められる色差予測残差を量子化する量子化部をさらに備えることができる。   The image processing apparatus may further include a quantization unit that quantizes the color difference prediction residual obtained from the color difference offset value.

前記設定部は、前記色差オフセット算出部により算出された色差オフセット値OCと、前記輝度オフセット算出部により算出された輝度オフセット値OLとを用いて、前記色差予測残差が小さくなるように、前記オフセット値に関する情報として、相関係数αおよびβを設定し、前記設定部により設定された前記相関係数αおよびβを用いて、前記色差予測残差を算出する予測残差算出部さらに備えることができる。 The setting unit is configured and the color difference offset value OC calculated by the color difference offset calculating section, by using the brightness offset value OL calculated by the brightness offset calculation section, so that the color difference prediction residual is small, the The information processing apparatus further includes a prediction residual calculation unit that sets correlation coefficients α and β as information about the offset value and calculates the color difference prediction residual using the correlation coefficients α and β set by the setting unit. be able to.

前記符号化部は、前記相関係数αおよびβを符号化することができる。   The encoding unit can encode the correlation coefficients α and β.

前記設定部は、前記相関係数αおよびβは、CbとCrについて別々に設定することができる The setting unit, the correlation coefficient α and β can be set separately for Cb and Cr.

前記設定部は、前記相関係数αおよびβは、2種類のバンドオフセットおよび6種類のエッジオフセットについて別々に設定することができる
前記色差適応オフセット処理部は、前記輝度適応オフセット処理部により用いられる輝度オフセット値を用いて、前記色差信号に対する前記色差適応オフセット処理を行うことができる。
The setting unit, the correlation coefficient α and β can be set independently for the two types of band offset and six edge offset.
The color difference adaptive offset processing unit can perform the color difference adaptive offset processing on the color difference signal using a luminance offset value used by the luminance adaptive offset processing unit.

前記画像に対してデブロックフィルタ処理を行うフィルタ部をさらに備え、前記輝度適応オフセット処理部と前記色差適応オフセット処理部は、前記フィルタ部によりデブロックフィルタ処理が行われた画像を対象として、適応オフセット処理を行うことができる。   The image processing apparatus further includes a filter unit that performs deblocking filter processing on the image, and the luminance adaptive offset processing unit and the color difference adaptive offset processing unit are adapted for an image that has been subjected to deblocking filter processing by the filter unit. Offset processing can be performed.

本技術の一側面の画像処理方法は、画像処理装置が、画像の輝度信号に対する適応オフセット処理により用いられる輝度オフセット値に基づいて設定された、復号装置の前記画像の色差信号に対する適応オフセット処理に用いられるオフセット値に関する情報を符号化し、LCU(Largest Coding Unit)ヘッダに付加し、前記オフセット値に関する情報を含むビットストリームを生成する。 According to an image processing method of one aspect of the present technology, the image processing apparatus performs adaptive offset processing on the color difference signal of the image set by the decoding apparatus based on the luminance offset value used by adaptive offset processing on the luminance signal of the image. Information on the offset value to be used is encoded and added to an LCU (Largest Coding Unit) header to generate a bitstream including information on the offset value .

本技術の一側面のプログラムは、コンピュータに、画像の輝度信号に対する適応オフセット処理により用いられる輝度オフセット値に基づいて設定された、復号装置の前記画像の色差信号に対する適応オフセット処理に用いられるオフセット値に関する情報を符号化し、LCU(Largest Coding Unit)ヘッダに付加し、前記オフセット値に関する情報を含むビットストリームを生成する符号化部として、機能させる。 A program according to one aspect of the present technology is an offset value used for adaptive offset processing for the color difference signal of the image of the decoding device, which is set in a computer based on the luminance offset value used by adaptive offset processing for the luminance signal of the image. information encoding related, added to the LCU (Largest coding unit) header, as an encoding unit generating a bitstream containing information about the offset value, to function.

本技術の一側面においては、画像の輝度信号に対する適応オフセット処理により用いられる輝度オフセット値に基づいて設定された、復号装置の前記画像の色差信号に対する適応オフセット処理に用いられるオフセット値に関する情報が符号化され、LCU(Largest Coding Unit)ヘッダに付加され、前記オフセット値に関する情報を含むビットストリームが生成される。 In one aspect of the present technology, information on an offset value used for adaptive offset processing for the color difference signal of the image of the decoding device set based on the luminance offset value used by adaptive offset processing for the luminance signal of the image is encoded. And added to an LCU (Largest Coding Unit) header to generate a bitstream including information on the offset value .

なお、上述の画像処理装置は、独立した装置であっても良いし、1つの画像符号化装置または画像復号装置を構成している内部ブロックであってもよい。   Note that the above-described image processing device may be an independent device, or may be an internal block constituting one image encoding device or image decoding device.

本開示の一側面によれば、画像を処理することができる。特に、符号化効率を向上させることができる。   According to one aspect of the present disclosure, an image can be processed. In particular, encoding efficiency can be improved.

H.264/AVC方式の画像符号化装置の主な構成例を示すブロック図である。H. 1 is a block diagram illustrating a main configuration example of an H.264 / AVC format image encoding device. FIG. H.264/AVC方式の画像復号装置の主な構成例を示すブロック図である。H. 1 is a block diagram illustrating a main configuration example of an H.264 / AVC format image decoding device. FIG. 適応ループフィルタを適用した画像符号化装置の主な構成例を示すブロック図である。It is a block diagram which shows the main structural examples of the image coding apparatus to which an adaptive loop filter is applied. 適応ループフィルタを適用した画像復号装置の主な構成例を示すブロック図である。It is a block diagram which shows the main structural examples of the image decoding apparatus to which an adaptive loop filter is applied. デブロックフィルタの動作原理を説明する図である。It is a figure explaining the principle of operation of a deblocking filter. Bsの定義の方法を説明する図である。It is a figure explaining the definition method of Bs. デブロックフィルタの動作原理を説明する図である。It is a figure explaining the principle of operation of a deblocking filter. indexAおよびindexBとαおよびβの値の対応関係の例を示す図である。It is a figure which shows the example of the correspondence of indexA and indexB, and the value of (alpha) and (beta). BsおよびindexAとtC0との対応関係の例を示す図である。It is a figure which shows the example of the correspondence of Bs and indexA, and tC0. コーディングユニットの構成例を説明する図である。It is a figure explaining the structural example of a coding unit. HEVC方式における適応オフセット処理を説明する図である。It is a figure explaining the adaptive offset process in a HEVC system. quad-tree構造を説明する図である。It is a figure explaining a quad-tree structure. バンドオフセットを説明する図である。It is a figure explaining a band offset. エッジオフセットを説明する図である。It is a figure explaining edge offset. エッジオフセットの規則一覧表を示す図である。It is a figure which shows the rule list of edge offset. 本開示の画像符号化装置の主な構成例を示すブロック図である。It is a block diagram which shows the main structural examples of the image coding apparatus of this indication. 適応オフセット部および色差適応オフセット部の構成例を示す図である。It is a figure which shows the structural example of an adaptive offset part and a color difference adaptive offset part. 符号化処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of an encoding process. 適応オフセット処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of an adaptive offset process. 画像復号装置の主な構成例を示すブロック図である。It is a block diagram which shows the main structural examples of an image decoding apparatus. 適応オフセット部および色差適応オフセット部の構成例を示すブロック図である。It is a block diagram which shows the structural example of an adaptive offset part and a color difference adaptive offset part. 復号処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of a decoding process. 適応オフセット処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of an adaptive offset process. パーソナルコンピュータの主な構成例を示すブロック図である。FIG. 26 is a block diagram illustrating a main configuration example of a personal computer. テレビジョン装置の概略的な構成の一例を示すブロック図である。It is a block diagram which shows an example of a schematic structure of a television apparatus. 携帯電話機の概略的な構成の一例を示すブロック図である。It is a block diagram which shows an example of a schematic structure of a mobile telephone. 記録再生装置の概略的な構成の一例を示すブロック図である。It is a block diagram which shows an example of a schematic structure of a recording / reproducing apparatus. 撮像装置の概略的な構成の一例を示すブロック図である。It is a block diagram which shows an example of a schematic structure of an imaging device.

[本技術を適用した信号処理装置の一実施の形態]   [One embodiment of signal processing apparatus to which the present technology is applied]

以下、本開示を実施するための形態(以下実施の形態とする)について説明する。なお、説明は以下の順序で行う。
1.第1の実施の形態(画像符号化装置)
2.第2の実施の形態(画像復号装置)
3.第3の実施の形態(パーソナルコンピュータ)
4.第4の実施の形態(テレビジョン受像機)
5.第5の実施の形態(携帯電話機)
6.第6の実施の形態(ハードディスクレコーダ)
7.第7の実施の形態(カメラ)
Hereinafter, modes for carrying out the present disclosure (hereinafter referred to as embodiments) will be described. The description will be given in the following order.
1. First Embodiment (Image Encoding Device)
2. Second embodiment (image decoding apparatus)
3. Third embodiment (personal computer)
4). Fourth embodiment (television receiver)
5. Fifth embodiment (mobile phone)
6). Sixth embodiment (hard disk recorder)
7). Seventh embodiment (camera)

<1.第1の実施の形態>
[H.264/AVC方式の画像符号化装置]
図1は、H.264及びMPEG(Moving Picture Experts Group)4 Part10(AVC(Advanced Video Coding))符号化方式により画像を符号化する画像符号化装置の一実施の形態の構成を表している。以下、H.264及びMPEG 符号化方式を、H.264/AVC方式と称する。
<1. First Embodiment>
[H. H.264 / AVC image encoding device]
FIG. 1 illustrates a configuration of an embodiment of an image encoding apparatus that encodes an image using an H.264 and MPEG (Moving Picture Experts Group) 4 Part 10 (AVC (Advanced Video Coding)) encoding method. Hereinafter, H.M. H.264 and MPEG encoding systems It is called H.264 / AVC format.

図1の例において、画像符号化装置1は、A/D変換部11、画面並べ替えバッファ12、演算部13、直交変換部14、量子化部15、可逆符号化部16、蓄積バッファ17、逆量子化部18、逆直交変換部19、演算部20を含むように構成されている。また、画像符号化装置1は、デブロックフィルタ21、フレームメモリ22、選択部23、イントラ予測部24、動き予測・補償部25、予測画像選択部26、およびレート制御部27も含むように構成されている。   In the example of FIG. 1, the image encoding device 1 includes an A / D conversion unit 11, a screen rearrangement buffer 12, a calculation unit 13, an orthogonal transformation unit 14, a quantization unit 15, a lossless encoding unit 16, an accumulation buffer 17, An inverse quantization unit 18, an inverse orthogonal transform unit 19, and a calculation unit 20 are included. The image encoding device 1 is also configured to include a deblock filter 21, a frame memory 22, a selection unit 23, an intra prediction unit 24, a motion prediction / compensation unit 25, a predicted image selection unit 26, and a rate control unit 27. Has been.

A/D変換部11は、入力された画像データをA/D変換し、画面並べ替えバッファ12に出力し、記憶させる。画面並べ替えバッファ12は、記憶した表示の順番のフレームの画像を、GOP(Group of Picture)構造に応じて、符号化のためのフレームの順番に並べ替える。画面並べ替えバッファ12は、フレームの順番を並び替えた画像を、演算部13に供給する。また、画面並べ替えバッファ12は、フレームの順番を並び替えた画像を、イントラ予測部24および動き予測・補償部25にも供給する。   The A / D converter 11 performs A / D conversion on the input image data, and outputs to the screen rearrangement buffer 12 for storage. The screen rearrangement buffer 12 rearranges the stored frame images in the display order in the order of frames for encoding in accordance with the GOP (Group of Picture) structure. The screen rearrangement buffer 12 supplies the image with the rearranged frame order to the arithmetic unit 13. The screen rearrangement buffer 12 also supplies the image in which the frame order has been rearranged to the intra prediction unit 24 and the motion prediction / compensation unit 25.

演算部13は、画面並べ替えバッファ12から読み出された画像から、予測画像選択部26を介してイントラ予測部24若しくは動き予測・補償部25から供給される予測画像を減算し、その差分情報を直交変換部14に出力する。   The calculation unit 13 subtracts the prediction image supplied from the intra prediction unit 24 or the motion prediction / compensation unit 25 via the prediction image selection unit 26 from the image read from the screen rearrangement buffer 12, and the difference information Is output to the orthogonal transform unit 14.

例えば、イントラ符号化が行われる画像の場合、演算部13は、画面並べ替えバッファ12から読み出された画像から、イントラ予測部24から供給される予測画像を減算する。また、例えば、インター符号化が行われる画像の場合、演算部13は、画面並べ替えバッファ12から読み出された画像から、動き予測・補償部25から供給される予測画像を減算する。   For example, in the case of an image on which intra coding is performed, the calculation unit 13 subtracts the prediction image supplied from the intra prediction unit 24 from the image read from the screen rearrangement buffer 12. For example, in the case of an image on which inter coding is performed, the calculation unit 13 subtracts the prediction image supplied from the motion prediction / compensation unit 25 from the image read from the screen rearrangement buffer 12.

直交変換部14は、演算部13から供給される差分情報に対して、離散コサイン変換、カルーネン・レーベ変換等の直交変換を施し、その変換係数を量子化部15に供給する。   The orthogonal transform unit 14 performs orthogonal transform such as discrete cosine transform and Karhunen-Loeve transform on the difference information supplied from the calculation unit 13 and supplies the transform coefficient to the quantization unit 15.

量子化部15は、直交変換部14が出力する変換係数を量子化する。量子化部15は、レート制御部27から供給される符号量の目標値に関する情報に基づいて量子化パラメータを設定し、量子化を行う。量子化部15は、量子化された変換係数を可逆符号化部16に供給する。   The quantization unit 15 quantizes the transform coefficient output from the orthogonal transform unit 14. The quantization unit 15 sets a quantization parameter based on the information regarding the target value of the code amount supplied from the rate control unit 27, and performs quantization. The quantization unit 15 supplies the quantized transform coefficient to the lossless encoding unit 16.

可逆符号化部16は、その量子化された変換係数に対して、可変長符号化、算術符号化等の可逆符号化を施す。係数データは、レート制御部27の制御の下で量子化されているので、この符号量は、レート制御部27が設定した目標値となる(若しくは目標値に近似する)。   The lossless encoding unit 16 performs lossless encoding such as variable length encoding and arithmetic encoding on the quantized transform coefficient. Since the coefficient data is quantized under the control of the rate control unit 27, the code amount becomes a target value set by the rate control unit 27 (or approximates the target value).

可逆符号化部16は、イントラ予測を示す情報などをイントラ予測部24から取得し、インター予測モードを示す情報や動きベクトル情報などを動き予測・補償部25から取得する。なお、イントラ予測(画面内予測)を示す情報は、以下、イントラ予測モード情報とも称する。また、インター予測(画面間予測)を示す情報モードを示す情報は、以下、インター予測モード情報とも称する。   The lossless encoding unit 16 acquires information indicating intra prediction from the intra prediction unit 24, and acquires information indicating inter prediction mode, motion vector information, and the like from the motion prediction / compensation unit 25. Note that information indicating intra prediction (intra-screen prediction) is hereinafter also referred to as intra prediction mode information. In addition, information indicating an information mode indicating inter prediction (inter-screen prediction) is hereinafter also referred to as inter prediction mode information.

可逆符号化部16は、量子化された変換係数を符号化するとともに、フィルタ係数、イントラ予測モード情報、インター予測モード情報、および量子化パラメータなどの各種情報を、符号化データのヘッダ情報の一部とする(多重化する)。可逆符号化部16は、符号化して得られた符号化データを蓄積バッファ17に供給して蓄積させる。   The lossless encoding unit 16 encodes the quantized transform coefficient, and converts various information such as a filter coefficient, intra prediction mode information, inter prediction mode information, and a quantization parameter into one piece of header information of encoded data. Part (multiplex). The lossless encoding unit 16 supplies the encoded data obtained by encoding to the accumulation buffer 17 for accumulation.

例えば、可逆符号化部16においては、可変長符号化または算術符号化等の可逆符号化処理が行われる。可変長符号化としては、H.264/AVC方式で定められているCAVLC(Context-Adaptive Variable Length Coding)などがあげられる。算術符号化としては、CABAC(Context-Adaptive Binary Arithmetic Coding)などがあげられる。   For example, the lossless encoding unit 16 performs lossless encoding processing such as variable length encoding or arithmetic encoding. Examples of variable length coding include H.264. CAVLC (Context-Adaptive Variable Length Coding) defined in H.264 / AVC format. Examples of arithmetic coding include CABAC (Context-Adaptive Binary Arithmetic Coding).

蓄積バッファ17は、可逆符号化部16から供給された符号化データを、一時的に保持し、所定のタイミングにおいて、H.264/AVC方式で符号化された符号化画像として、例えば、後段の図示せぬ記録装置や伝送路などに出力する。   The accumulation buffer 17 temporarily holds the encoded data supplied from the lossless encoding unit 16, and at a predetermined timing, the H.264 buffer stores the encoded data. As an encoded image encoded by the H.264 / AVC format, for example, it is output to a recording device or a transmission path (not shown) in the subsequent stage.

また、量子化部15において量子化された変換係数は、逆量子化部18にも供給される。逆量子化部18は、その量子化された変換係数を、量子化部15による量子化に対応する方法で逆量子化する。逆量子化部18は、得られた変換係数を、逆直交変換部19に供給する。   The transform coefficient quantized by the quantization unit 15 is also supplied to the inverse quantization unit 18. The inverse quantization unit 18 inversely quantizes the quantized transform coefficient by a method corresponding to the quantization by the quantization unit 15. The inverse quantization unit 18 supplies the obtained transform coefficient to the inverse orthogonal transform unit 19.

逆直交変換部19は、供給された変換係数を、直交変換部14による直交変換処理に対応する方法で逆直交変換する。逆直交変換された出力(復元された差分情報)は、演算部20に供給される。   The inverse orthogonal transform unit 19 performs inverse orthogonal transform on the supplied transform coefficient by a method corresponding to the orthogonal transform processing by the orthogonal transform unit 14. The inversely orthogonal transformed output (restored difference information) is supplied to the calculation unit 20.

演算部20は、逆直交変換部19より供給された逆直交変換結果、すなわち、復元された差分情報に、予測画像選択部26を介してイントラ予測部24若しくは動き予測・補償部25から供給される予測画像を加算し、局部的に復号された画像(復号画像)を得る。   The calculation unit 20 is supplied from the intra prediction unit 24 or the motion prediction / compensation unit 25 to the inverse orthogonal transform result supplied from the inverse orthogonal transform unit 19, that is, the restored difference information, via the predicted image selection unit 26. Predicted images are added to obtain a locally decoded image (decoded image).

例えば、差分情報が、イントラ符号化が行われる画像に対応する場合、演算部20は、その差分情報にイントラ予測部24から供給される予測画像を加算する。また、例えば、差分情報が、インター符号化が行われる画像に対応する場合、演算部20は、その差分情報に動き予測・補償部25から供給される予測画像を加算する。   For example, when the difference information corresponds to an image on which intra coding is performed, the calculation unit 20 adds the predicted image supplied from the intra prediction unit 24 to the difference information. For example, when the difference information corresponds to an image on which inter coding is performed, the calculation unit 20 adds the predicted image supplied from the motion prediction / compensation unit 25 to the difference information.

その加算結果は、デブロックフィルタ21またはフレームメモリ22に供給される。   The addition result is supplied to the deblock filter 21 or the frame memory 22.

デブロックフィルタ21は、適宜デブロックフィルタ処理を行うことにより復号画像のブロック歪を除去する。デブロックフィルタ21は、そのフィルタ処理結果をフレームメモリ22に供給する。なお、演算部20から出力される復号画像は、デブロックフィルタ21を介さずにフレームメモリ22に供給することができる。すなわち、デブロックフィルタ21のデブロックフィルタ処理は省略することができる。   The deblocking filter 21 removes block distortion of the decoded image by appropriately performing deblocking filter processing. The deblocking filter 21 supplies the filter processing result to the frame memory 22. Note that the decoded image output from the arithmetic unit 20 can be supplied to the frame memory 22 without going through the deblocking filter 21. That is, the deblocking filter process of the deblocking filter 21 can be omitted.

フレームメモリ22は、供給される復号画像を記憶し、所定のタイミングにおいて、記憶している復号画像を参照画像として、選択部23を介してイントラ予測部24または動き予測・補償部25に出力する。   The frame memory 22 stores the supplied decoded image, and outputs the stored decoded image as a reference image to the intra prediction unit 24 or the motion prediction / compensation unit 25 via the selection unit 23 at a predetermined timing. .

例えば、イントラ符号化が行われる画像の場合、フレームメモリ22は、参照画像を、
選択部23を介してイントラ予測部24に供給する。また、例えば、インター符号化が行われる場合、フレームメモリ22は、参照画像を、選択部23を介して動き予測・補償部25に供給する。
For example, in the case of an image on which intra coding is performed, the frame memory 22 stores the reference image,
The data is supplied to the intra prediction unit 24 via the selection unit 23. For example, when inter coding is performed, the frame memory 22 supplies the reference image to the motion prediction / compensation unit 25 via the selection unit 23.

選択部23は、フレームメモリ22から供給される参照画像がイントラ符号化を行う画像である場合、その参照画像をイントラ予測部24に供給する。また、選択部23は、フレームメモリ22から供給される参照画像がインター符号化を行う画像である場合、その参照画像を動き予測・補償部25に供給する。   When the reference image supplied from the frame memory 22 is an image to be subjected to intra coding, the selection unit 23 supplies the reference image to the intra prediction unit 24. The selection unit 23 supplies the reference image to the motion prediction / compensation unit 25 when the reference image supplied from the frame memory 22 is an image to be inter-encoded.

イントラ予測部24は、選択部23を介してフレームメモリ22から供給される処理対象ピクチャ内の画素値を用いて予測画像を生成するイントラ予測(画面内予測)を行う。イントラ予測部24は、予め用意された複数のモード(イントラ予測モード)でこのイントラ予測を行う。   The intra prediction unit 24 performs intra prediction (intra-screen prediction) that generates a predicted image using pixel values in the processing target picture supplied from the frame memory 22 via the selection unit 23. The intra prediction unit 24 performs this intra prediction in a plurality of modes (intra prediction modes) prepared in advance.

H.264/AVC方式において、輝度信号に対しては、イントラ4×4予測モード、イントラ8×8予測モード及びイントラ16×16予測モードが定義されている。また、色差信号に関しては、それぞれのマクロブロックごとに、輝度信号とは独立した予測モードを定義することが可能である。イントラ4×4予測モードについては、それぞれの4×4輝度ブロックに対して、イントラ8×8予測モードについては、それぞれの8×8輝度ブロックに対して、1つのイントラ予測モードが定義されることになる。イントラ16×16予測モード、並びに、色差信号に対しては、1つのマクロブロックに対して、それぞれ1つの予測モードが定義されることになる。   H. In the H.264 / AVC format, an intra 4 × 4 prediction mode, an intra 8 × 8 prediction mode, and an intra 16 × 16 prediction mode are defined for luminance signals. Regarding the color difference signal, a prediction mode independent of the luminance signal can be defined for each macroblock. For intra 4x4 prediction mode, one intra prediction mode must be defined for each 4x4 luminance block, and for intra 8x8 prediction mode, for each 8x8 luminance block become. For the intra 16 × 16 prediction mode and the color difference signal, one prediction mode is defined for each macroblock.

イントラ予測部24は、候補となる全てのイントラ予測モードで予測画像を生成し、画面並べ替えバッファ12から供給される入力画像を用いて各予測画像のコスト関数値を評価し、最適なモードを選択する。イントラ予測部24は、最適なイントラ予測モードを選択すると、その最適なモードで生成された予測画像を、予測画像選択部26を介して演算部13や演算部20に供給する。   The intra prediction unit 24 generates prediction images in all candidate intra prediction modes, evaluates the cost function value of each prediction image using the input image supplied from the screen rearrangement buffer 12, and selects the optimum mode. select. When the optimal intra prediction mode is selected, the intra prediction unit 24 supplies the prediction image generated in the optimal mode to the calculation unit 13 and the calculation unit 20 via the predicted image selection unit 26.

また、上述したように、イントラ予測部24は、採用されたイントラ予測モードを示すイントラ予測モード情報等の情報を、適宜可逆符号化部16に供給する。   Further, as described above, the intra prediction unit 24 supplies information such as intra prediction mode information indicating the adopted intra prediction mode to the lossless encoding unit 16 as appropriate.

動き予測・補償部25は、インター符号化が行われる画像について、画面並べ替えバッファ12から供給される入力画像と、選択部23を介してフレームメモリ22から供給される参照画像とを用いて、動き予測(インター予測)を行う。動き予測・補償部25は、検出された動きベクトルに応じて動き補償処理を行い、予測画像(インター予測画像情報)を生成する。動き予測・補償部25は、予め用意された複数のモード(インター予測モード)でこのようなインター予測を行う。   The motion prediction / compensation unit 25 uses the input image supplied from the screen rearrangement buffer 12 and the reference image supplied from the frame memory 22 via the selection unit 23 for the image to be inter-coded, Perform motion prediction (inter prediction). The motion prediction / compensation unit 25 performs a motion compensation process according to the detected motion vector, and generates a prediction image (inter prediction image information). The motion prediction / compensation unit 25 performs such inter prediction in a plurality of modes (inter prediction modes) prepared in advance.

動き予測・補償部25は、候補となる全てのインター予測モードで予測画像を生成し、各予測画像のコスト関数値を評価し、最適なモードを選択する。動き予測・補償部25は、生成された予測画像を、予測画像選択部26を介して演算部13や演算部20に供給する。   The motion prediction / compensation unit 25 generates a prediction image in all candidate inter prediction modes, evaluates the cost function value of each prediction image, and selects an optimal mode. The motion prediction / compensation unit 25 supplies the generated predicted image to the calculation unit 13 and the calculation unit 20 via the predicted image selection unit 26.

また、動き予測・補償部25は、採用されたインター予測モードを示すインター予測モード情報や、算出した動きベクトルを示す動きベクトル情報を可逆符号化部16に供給する。   Also, the motion prediction / compensation unit 25 supplies the inter prediction mode information indicating the adopted inter prediction mode and the motion vector information indicating the calculated motion vector to the lossless encoding unit 16.

予測画像選択部26は、イントラ符号化を行う画像の場合、イントラ予測部24の出力を演算部13や演算部20に供給し、インター符号化を行う画像の場合、動き予測・補償部25の出力を演算部13や演算部20に供給する。   The predicted image selection unit 26 supplies the output of the intra prediction unit 24 to the calculation unit 13 and the calculation unit 20 in the case of an image to be subjected to intra coding, and in the case of an image to be subjected to inter coding, the motion prediction / compensation unit 25. The output is supplied to the calculation unit 13 and the calculation unit 20.

レート制御部27は、蓄積バッファ17に蓄積された圧縮画像に基づいて、オーバーフローあるいはアンダーフローが発生しないように、量子化部15の量子化動作のレートを制御する。   The rate control unit 27 controls the quantization operation rate of the quantization unit 15 based on the compressed image stored in the storage buffer 17 so that overflow or underflow does not occur.

[H.264/AVC方式の画像復号装置]
図2は、離散コサイン変換若しくはカルーネン・レーベ変換等の直交変換と動き補償により画像圧縮を実現する画像復号装置の主な構成例を示すブロック図である。図2に示される画像復号装置31は、図1の画像符号化装置1に対応する復号装置である。
[H. 264 / AVC image decoding device]
FIG. 2 is a block diagram illustrating a main configuration example of an image decoding apparatus that realizes image compression by orthogonal transformation such as discrete cosine transformation or Karhunen-Labe transformation and motion compensation. An image decoding device 31 shown in FIG. 2 is a decoding device corresponding to the image encoding device 1 of FIG.

画像符号化装置1より符号化された符号化データは、例えば伝送路や記録媒体等、任意の経路を介して、この画像符号化装置1に対応する画像復号装置31に供給され、復号される。   The encoded data encoded by the image encoding device 1 is supplied to an image decoding device 31 corresponding to the image encoding device 1 via an arbitrary path such as a transmission path or a recording medium, and is decoded. .

図2に示されるように、画像復号装置31は、蓄積バッファ41、可逆復号部42、逆量子化部43、逆直交変換部44、演算部45、デブロックフィルタ46、画面並べ替えバッファ47、およびD/A変換部48を含むように構成される。また、画像復号装置31は、フレームメモリ49、選択部50、イントラ予測部51、動き補償部52、および画像選択部53を有する。   As shown in FIG. 2, the image decoding device 31 includes a storage buffer 41, a lossless decoding unit 42, an inverse quantization unit 43, an inverse orthogonal transform unit 44, a calculation unit 45, a deblock filter 46, a screen rearrangement buffer 47, And a D / A converter 48. Further, the image decoding device 31 includes a frame memory 49, a selection unit 50, an intra prediction unit 51, a motion compensation unit 52, and an image selection unit 53.

蓄積バッファ41は、伝送されてきた符号化データを蓄積する。この符号化データは、画像符号化装置1により符号化されたものである。可逆復号部42は、蓄積バッファ41から所定のタイミングで読み出された符号化データを、図1の可逆符号化部16の符号化方式に対応する方式で復号する。   The accumulation buffer 41 accumulates transmitted encoded data. This encoded data is encoded by the image encoding device 1. The lossless decoding unit 42 decodes the encoded data read from the accumulation buffer 41 at a predetermined timing by a method corresponding to the encoding method of the lossless encoding unit 16 in FIG.

また、当該フレームがイントラ符号化されたものである場合、符号化データのヘッダ部にはイントラ予測モード情報が格納されている。可逆復号部42は、このイントラ予測モード情報も復号し、その情報をイントラ予測部51に供給する。これに対して、当該フレームがインター符号化されたものである場合、符号化データのヘッダ部には動きベクトル情報が格納されている。可逆復号部42は、この動きベクトル情報も復号し、その情報を動き補償部52に供給する。   When the frame is intra-coded, intra prediction mode information is stored in the header portion of the encoded data. The lossless decoding unit 42 also decodes the intra prediction mode information and supplies the information to the intra prediction unit 51. On the other hand, when the frame is inter-encoded, motion vector information is stored in the header portion of the encoded data. The lossless decoding unit 42 also decodes the motion vector information and supplies the information to the motion compensation unit 52.

逆量子化部43は、可逆復号部42により復号されて得られた係数データ(量子化係数)を、図1の量子化部15の量子化方式に対応する方式で逆量子化する。つまり、逆量子化部43は、図1の逆量子化部18と同様の方法で量子化係数の逆量子化を行う。   The inverse quantization unit 43 inversely quantizes coefficient data (quantization coefficient) obtained by decoding by the lossless decoding unit 42 by a method corresponding to the quantization method of the quantization unit 15 in FIG. That is, the inverse quantization unit 43 performs inverse quantization of the quantization coefficient by the same method as the inverse quantization unit 18 of FIG.

逆量子化部43は、逆量子化された係数データ、つまり、直交変換係数を、逆直交変換部44に供給する。逆直交変換部44は、図1の直交変換部14の直交変換方式に対応する方式(図1の逆直交変換部19と同様の方式)で、その直交変換係数を逆直交変換し、画像符号化装置1において直交変換される前の残差データに対応する復号残差データを得る。例えば、4次の逆直交変換が施される。   The inverse quantization unit 43 supplies the inversely quantized coefficient data, that is, the orthogonal transform coefficient, to the inverse orthogonal transform unit 44. The inverse orthogonal transform unit 44 is a method corresponding to the orthogonal transform method of the orthogonal transform unit 14 in FIG. 1 (the same method as the inverse orthogonal transform unit 19 in FIG. 1), and inverse orthogonal transforms the orthogonal transform coefficient to obtain an image code. The decoding residual data corresponding to the residual data before being orthogonally transformed in the encoding apparatus 1 is obtained. For example, fourth-order inverse orthogonal transform is performed.

逆直交変換されて得られた復号残差データは、演算部45に供給される。また、演算部45には、画像選択部53を介して、イントラ予測部51若しくは動き補償部52から予測画像が供給される。   The decoded residual data obtained by the inverse orthogonal transform is supplied to the calculation unit 45. In addition, a prediction image is supplied to the calculation unit 45 from the intra prediction unit 51 or the motion compensation unit 52 via the image selection unit 53.

演算部45は、その復号残差データと予測画像とを加算し、画像符号化装置1の演算部13により予測画像が減算される前の画像データに対応する復号画像データを得る。演算部45は、その復号画像データをデブロックフィルタ46に供給する。   The computing unit 45 adds the decoded residual data and the predicted image, and obtains decoded image data corresponding to the image data before the predicted image is subtracted by the computing unit 13 of the image encoding device 1. The arithmetic unit 45 supplies the decoded image data to the deblock filter 46.

デブロックフィルタ46は、供給された復号画像のブロック歪を除去した後、画面並べ替えバッファ47に供給する。   The deblocking filter 46 removes block distortion from the supplied decoded image, and then supplies it to the screen rearranging buffer 47.

画面並べ替えバッファ47は、画像の並べ替えを行う。すなわち、図1の画面並べ替えバッファ12により符号化の順番のために並べ替えられたフレームの順番が、元の表示の順番に並べ替えられる。D/A変換部48は、画面並べ替えバッファ47から供給された画像をD/A変換し、図示せぬディスプレイに出力し、表示させる。   The screen rearrangement buffer 47 rearranges images. That is, the order of frames rearranged for the encoding order by the screen rearrangement buffer 12 in FIG. 1 is rearranged in the original display order. The D / A converter 48 D / A converts the image supplied from the screen rearrangement buffer 47, and outputs and displays it on a display (not shown).

デブロックフィルタ46の出力は、さらに、フレームメモリ49に供給される。   The output of the deblocking filter 46 is further supplied to the frame memory 49.

フレームメモリ49、選択部50、イントラ予測部51、動き補償部52、および画像選択部53は、画像符号化装置1のフレームメモリ22、選択部23、イントラ予測部24、動き予測・補償部25、および予測画像選択部26にそれぞれ対応する。   The frame memory 49, the selection unit 50, the intra prediction unit 51, the motion compensation unit 52, and the image selection unit 53 are the frame memory 22, the selection unit 23, the intra prediction unit 24, and the motion prediction / compensation unit 25 of the image encoding device 1. , And the predicted image selection unit 26, respectively.

選択部50は、インター処理される画像と参照される画像をフレームメモリ49から読み出し、動き補償部52に供給する。また、選択部50は、イントラ予測に用いられる画像をフレームメモリ49から読み出し、イントラ予測部51に供給する。   The selection unit 50 reads out the inter-processed image and the referenced image from the frame memory 49 and supplies them to the motion compensation unit 52. In addition, the selection unit 50 reads an image used for intra prediction from the frame memory 49 and supplies the image to the intra prediction unit 51.

イントラ予測部51には、ヘッダ情報を復号して得られたイントラ予測モードを示す情報等が可逆復号部42から適宜供給される。イントラ予測部51は、この情報に基づいて、フレームメモリ49から取得した参照画像から予測画像を生成し、生成した予測画像を画像選択部53に供給する。   Information indicating the intra prediction mode obtained by decoding the header information is appropriately supplied from the lossless decoding unit 42 to the intra prediction unit 51. The intra prediction unit 51 generates a prediction image from the reference image acquired from the frame memory 49 based on this information, and supplies the generated prediction image to the image selection unit 53.

動き補償部52は、ヘッダ情報を復号して得られた情報(予測モード情報、動きベクトル情報、参照フレーム情報、フラグ、および各種パラメータ等)を可逆復号部42から取得する。   The motion compensation unit 52 acquires information (prediction mode information, motion vector information, reference frame information, flags, various parameters, and the like) obtained by decoding the header information from the lossless decoding unit 42.

動き補償部52は、可逆復号部42から供給されるそれらの情報に基づいて、フレームメモリ49から取得した参照画像から予測画像を生成し、生成した予測画像を画像選択部53に供給する。   Based on the information supplied from the lossless decoding unit 42, the motion compensation unit 52 generates a predicted image from the reference image acquired from the frame memory 49, and supplies the generated predicted image to the image selection unit 53.

画像選択部53は、動き補償部52またはイントラ予測部51により生成された予測画像を選択し、演算部45に供給する。   The image selection unit 53 selects the prediction image generated by the motion compensation unit 52 or the intra prediction unit 51 and supplies the selected prediction image to the calculation unit 45.

[適応ループフィルタの詳細]
次に、特許文献1に提案されている適応ループフィルタ(ALF(Adaptive Loop Filter))について説明する。
[Details of adaptive loop filter]
Next, an adaptive loop filter (ALF (Adaptive Loop Filter)) proposed in Patent Document 1 will be described.

図3は、適応ループフィルタを適用した画像符号化装置の構成例を示すブロック図である。なお、図3の例において、説明の便宜上、図1のA/D変換部11、画面並べ替えバッファ12、蓄積バッファ17、選択部23、イントラ予測部24、予測画像選択部26、およびレート制御部27は省略されている。また、矢印なども適宜省略されている。したがって、図3の例の場合、フレームメモリ22からの参照画像は、動き予測・補償部25に直接入力され、動き予測・補償部25からの予測画像は、演算部13および20に直接出力されている。   FIG. 3 is a block diagram illustrating a configuration example of an image encoding device to which an adaptive loop filter is applied. In the example of FIG. 3, for convenience of explanation, the A / D conversion unit 11, the screen rearrangement buffer 12, the accumulation buffer 17, the selection unit 23, the intra prediction unit 24, the predicted image selection unit 26, and the rate control of FIG. The part 27 is omitted. Also, arrows and the like are omitted as appropriate. Therefore, in the example of FIG. 3, the reference image from the frame memory 22 is directly input to the motion prediction / compensation unit 25, and the prediction image from the motion prediction / compensation unit 25 is directly output to the calculation units 13 and 20. ing.

すなわち、図3の画像符号化装置61は、デブロックフィルタ21とフレームメモリ22の間に適応ループフィルタ71が追加された点のみが、図1の画像符号化装置1と異なっている。   That is, the image encoding device 61 in FIG. 3 is different from the image encoding device 1 in FIG. 1 only in that an adaptive loop filter 71 is added between the deblock filter 21 and the frame memory 22.

適応ループフィルタ71は、画面並べ替えバッファ12(図示は省略)からの原画像との残差を最小とするよう、適応ループフィルタ係数の算出を行い、この適応ループフィルタ係数を用いて、デブロックフィルタ21からの復号画像にフィルタ処理を行う。このフィルタとして、例えば、ウィナーフィルタ(Wiener Filter)が用いられる。   The adaptive loop filter 71 calculates an adaptive loop filter coefficient so as to minimize a residual with the original image from the screen rearrangement buffer 12 (not shown), and uses this adaptive loop filter coefficient to perform deblocking. Filter processing is performed on the decoded image from the filter 21. As this filter, for example, a Wiener Filter is used.

また、適応ループフィルタ71は、算出した適応ループフィルタ係数を、可逆符号化部16に送る。可逆符号化部16においては、この適応ループフィルタ係数を、可変長符号化、算術符号化といった可逆符号化処理し、圧縮画像のヘッダ部に挿入する。   In addition, the adaptive loop filter 71 sends the calculated adaptive loop filter coefficient to the lossless encoding unit 16. In the lossless encoding unit 16, this adaptive loop filter coefficient is subjected to lossless encoding processing such as variable length encoding and arithmetic encoding, and inserted into the header portion of the compressed image.

図4は、図3の画像符号化装置に対応する画像復号装置の構成例を示すブロック図である。なお、図4の例において、説明の便宜上、図2の蓄積バッファ41、画面並べ替えバッファ47、D/A変換部48、選択部50、イントラ予測部51、および画像選択部53は省略されている。また、矢印なども適宜省略されている。したがって、図4の例の場合、フレームメモリ49からの参照画像は、動き補償部52に直接入力され、動き補償部52からの予測画像は、演算部45に直接出力されている。   FIG. 4 is a block diagram illustrating a configuration example of an image decoding apparatus corresponding to the image encoding apparatus in FIG. In the example of FIG. 4, the storage buffer 41, the screen rearrangement buffer 47, the D / A conversion unit 48, the selection unit 50, the intra prediction unit 51, and the image selection unit 53 of FIG. Yes. Also, arrows and the like are omitted as appropriate. Therefore, in the example of FIG. 4, the reference image from the frame memory 49 is directly input to the motion compensation unit 52, and the predicted image from the motion compensation unit 52 is directly output to the calculation unit 45.

すなわち、図4の画像復号装置81は、デブロックフィルタ46とフレームメモリ49の間に適応ループフィルタ91が追加された点のみが、図2の画像復号装置31と異なっている。   That is, the image decoding device 81 in FIG. 4 differs from the image decoding device 31 in FIG. 2 only in that an adaptive loop filter 91 is added between the deblock filter 46 and the frame memory 49.

適応ループフィルタ91には、可逆復号部42から復号され、ヘッダから抽出された適応ループフィルタ係数が供給される。適応ループフィルタ91は供給されたフィルタ係数を用いて、デブロックフィルタ46からの復号画像にフィルタ処理を行う。このフィルタとして、例えば、ウィナーフィルタ(Wiener Filter)が用いられる。   The adaptive loop filter 91 is supplied with the adaptive loop filter coefficient decoded from the lossless decoding unit 42 and extracted from the header. The adaptive loop filter 91 performs a filter process on the decoded image from the deblocking filter 46 using the supplied filter coefficient. As this filter, for example, a Wiener Filter is used.

これにより、復号画像の画質を向上させ、さらに、参照画像の画質をも向上させることができる。   Thereby, the image quality of the decoded image can be improved, and further the image quality of the reference image can be improved.

[デブロックフィルタ]
次に、H.264/AVC方式におけるデブロックフィルタについて説明する。デブロックフィルタ21は、動き補償ループ内に含まれ、復号画像におけるブロック歪み、すなわち、処理単位の領域の歪みを除去する。これにより、動き補償処理により参照される画像へのブロック歪の伝播が抑制される。
[Deblock filter]
Next, H. A deblocking filter in the H.264 / AVC format will be described. The deblocking filter 21 is included in the motion compensation loop, and removes block distortion in the decoded image, that is, distortion in the region of the processing unit. Thereby, propagation of block distortion to an image referred to by motion compensation processing is suppressed.

デブロックフィルタの処理としては、符号化データに含まれる、Picture Parameter Set RBSP(Raw Byte Sequence Payload)に含まれるdeblocking_filter_control_present_flag、及び、スライスヘッダ(Slice Header)に含まれるdisable_deblocking_filter_idcという2つのパラメータによって、以下の(a)乃至(c)の3通りの方法が選択可能である。   The deblocking filter processing includes the following two parameters, deblocking_filter_control_present_flag included in the Picture Parameter Set RBSP (Raw Byte Sequence Payload) included in the encoded data, and disable_deblocking_filter_idc included in the slice header (Slice Header). Three methods (a) to (c) can be selected.

(a)ブロック境界、及びマクロブロック境界に施す
(b)マクロブロック境界にのみ施す
(c)施さない
(A) Applied to block boundaries and macroblock boundaries (b) Applied only to macroblock boundaries (c) Not applied

量子化パラメータQPについては、以下の処理を輝度信号に対して適用する場合は、QPYを、色差信号に対して適用する場合はQPCを用いる。また、動きベクトル符号化、イントラ予測、エントロピー符号化(CAVLC/CABAC)においては、異なるスライスに属する画素値は"not available"として処理する。しかしながら、デブロックフィルタ処理においては、異なるスライスに属する画素値でも、同一のピクチャに属する場合は"available"であるとして処理を行う。   For the quantization parameter QP, QPY is used when the following processing is applied to the luminance signal, and QPC is used when it is applied to the color difference signal. In motion vector coding, intra prediction, and entropy coding (CAVLC / CABAC), pixel values belonging to different slices are processed as “not available”. However, in the deblocking filter processing, even if pixel values belonging to different slices belong to the same picture, the processing is performed as “available”.

以下においては、図5に示されるように、デブロックフィルタ処理前の画素値をp0〜p3、q0〜q3とし、処理後の画素値をp0'〜p3'、q0'〜q3'とする。   In the following, as shown in FIG. 5, the pixel values before the deblocking filter processing are p0 to p3 and q0 to q3, and the pixel values after the processing are p0 ′ to p3 ′ and q0 ′ to q3 ′.

まず、デブロックフィルタ処理に先立ち、図5におけるp及びqに対して、図6に示される表のように、ブロック境界強度データであるBs(Boundary Strength)が定義される。   First, prior to deblocking filter processing, Bs (Boundary Strength), which is block boundary strength data, is defined for p and q in FIG. 5 as shown in the table of FIG.

図6に示すように、Bsは、画素pまたは画素qのいずれか一方がイントラ符号化されるマクロブロックに属し、且つ、当該画素がマクロブロックの境界に位置する場合に、最もフィルタ強度が高い「4」が割り当てられる。   As shown in FIG. 6, Bs has the highest filter strength when either pixel p or pixel q belongs to a macroblock to be intra-coded and the pixel is located at the boundary of the macroblock. “4” is assigned.

Bsは、画素pまたは画素qのいずれか一方がイントラ符号化されるマクロブロックに属し、且つ、当該画素がマクロブロックの境界に位置しない場合に、「4」の次にフィルタ強度が高い「3」が割り当てられる。   Bs belongs to the macroblock in which either the pixel p or the pixel q is intra-coded, and when the pixel is not located at the boundary of the macroblock, “3” has the next highest filter strength “3”. Is assigned.

Bsは、画素pおよび画素qの双方がイントラ符号化されるマクロブロックに属するものではなく、且つ、いずれかの画素が変換係数を持つ場合に、「3」の次にフィルタ強度が高い「2」が割り当てられる。   Bs does not belong to a macroblock in which both pixel p and pixel q are intra-coded, and when any pixel has a transform coefficient, “2” has the highest filter strength “2”. Is assigned.

Bsは、画素pおよび画素qの双方がイントラ符号化されるマクロブロックに属するものではなく、且つ、いずれかの画素が変換係数を持たないという条件を場合に満たし、且つ、参照フレームが異なるか、参照フレームの枚数が異なるか、動きベクトルが異なるかのいずれかの条件を満たす場合に、「1」が割り当てられる。   Bs does not belong to a macroblock in which both pixel p and pixel q are intra-coded, and satisfies the condition that any pixel does not have a transform coefficient, and is the reference frame different? “1” is assigned when either the number of reference frames is different or the motion vector is different.

Bsは、画素p,qの双方がイントラ符号化されるマクロブロックに属するものではなく、どちらの画素も変換係数を持たず、参照フレームおよび動きベクトルが同じ場合、「0」が割り当てられる。なお。「0」は、フィルタ処理を行わないことを意味する。   Bs does not belong to a macroblock in which both pixels p and q are intra-coded, and neither pixel has a transform coefficient, and “0” is assigned when the reference frame and the motion vector are the same. Note that. “0” means that filtering is not performed.

図5における(p2,p1,p0,q0,q1,q2)は、以下の式(1)および式(2)により示される条件が成立する場合のみ、デブロックフィルタ処理が施される。   (P2, p1, p0, q0, q1, q2) in FIG. 5 is subjected to deblocking filter processing only when the conditions shown by the following equations (1) and (2) are satisfied.

Bs > 0 ・・・(1)
|p0-q0| < α; |p1-p0| < β; |q1-q1| < β ・・・(2)
Bs> 0 (1)
| p0-q0 | <α; | p1-p0 | <β; | q1-q1 | <β (2)

式(2)のαおよびβは、デフォルトでは以下のようにQPに応じてその値が定められているが、符号化データの、スライスヘッダに含まれる、slice_alpha_c0_offset_div2及びslice_beta_offset_div2という2つのパラメータによって、グラフの矢印のように、ユーザがその強度を調整することが可能である。   The values of α and β in equation (2) are determined according to QP as follows by default, but the graph is based on two parameters slice_alpha_c0_offset_div2 and slice_beta_offset_div2 included in the slice header of the encoded data. As indicated by the arrow, the user can adjust the intensity.

なお、図7は、QPと閾値αの関係を示しており、QPにオフセット量を加えると、QPと閾値αの関係を示す曲線は矢印の方向に移動することから、フィルタ強度を調整することが明らかである。   FIG. 7 shows the relationship between QP and threshold value α. When an offset amount is added to QP, the curve indicating the relationship between QP and threshold value α moves in the direction of the arrow, so that the filter strength can be adjusted. Is clear.

また、閾値αは、隣接するブロックPとブロックQのそれぞれの量子化パラメータqPp,qPqを用いて、次の式(3)および(4)からindexAを算出することで、図8Aに示すテーブルから求められる。同様に、閾値βは、隣接するブロックPとブロックQのそれぞれの量子化パラメータqPp,qPqを用いて、式(3)および(5)からindexBを算出することで、図8Bに示すテーブルから求められる。このindexAおよびindexBは、以下の式(3)乃至式(5)のように定義される。   The threshold value α is calculated from the table shown in FIG. 8A by calculating indexA from the following equations (3) and (4) using the quantization parameters qPp and qPq of the adjacent block P and block Q, respectively. Desired. Similarly, the threshold β is obtained from the table shown in FIG. 8B by calculating indexB from the equations (3) and (5) using the quantization parameters qPp and qPq of the adjacent block P and block Q, respectively. It is done. The indexA and indexB are defined as in the following formulas (3) to (5).

qPaν=(qPp+qPq+1)>>1 ・・・(3)
indexA=Clip3(0,51,qPaν+FilterOffsetA) ・・・(4)
indexB=Clip3(0,51,qPaν+FilterOffsetB) ・・・(5)
qPaν = (qPp + qPq + 1) >> 1 (3)
indexA = Clip3 (0,51, qPaν + FilterOffsetA) (4)
indexB = Clip3 (0,51, qPaν + FilterOffsetB) (5)

式(4)および式(5)において、FilterOffsetA及びFilterOffsetBが、ユーザによる調整分に相当する。   In Expression (4) and Expression (5), FilterOffsetA and FilterOffsetB correspond to adjustments by the user.

デブロックフィルタ処理は、以下に説明するように、Bs<4の場合と、Bs=4の場合とで、互いに異なる方法が定義されている。   In the deblocking filter process, different methods are defined for Bs <4 and Bs = 4 as described below.

まず、Bs<4の場合、デブロックフィルタ処理後の画素値p'0及びq'0が、以下の式(6)乃至式(8)のように求められる。   First, in the case of Bs <4, pixel values p′0 and q′0 after the deblocking filter processing are obtained as in the following formulas (6) to (8).

Δ=Clip3(−tc,tc((((q0−p0)<<2)+(p1−q1)+4)>>3))
・・・(6)
p'0=Clip1(p0+Δ) ・・・(7)
q'0=Clip1(q0+Δ) ・・・(8)
Δ = Clip3 (−tc, tc ((((q0−p0) << 2) + (p1−q1) +4) >> 3))
... (6)
p'0 = Clip1 (p0 + Δ) (7)
q'0 = Clip1 (q0 + Δ) (8)

ここで、tcは、以下の式(9)または式(10)ように算出される。すなわち、chromaEdgeFlagの値が「0」である場合、tcは以下の式(9)のように算出される。   Here, tc is calculated as the following formula (9) or formula (10). That is, when the value of chromaEdgeFlag is “0”, tc is calculated as in the following formula (9).

tc=tc0+((ap<β)?1:0)+((aq<β)?1:0) ・・・(9)   tc = tc0 + ((ap <β)? 1: 0) + ((aq <β)? 1: 0) (9)

また、chromaEdgeFlagの値が「0」以外である場合、tcは以下の式(10)のように算出される。   Further, when the value of chromaEdgeFlag is other than “0”, tc is calculated as in the following Expression (10).

tc=tc0+1 ・・・(10)   tc = tc0 + 1 (10)

tC0の値は、BsとindexAの値に応じて、図9Aおよび図9Bに示される表のように定義される。   The value of tC0 is defined as in the tables shown in FIGS. 9A and 9B according to the values of Bs and indexA.

また、式(9)のap及びaqの値は、以下の式(11)および(12)のように算出される。
ap=|p2−p0| ・・・(11)
aq=|q2−q0| ・・・(12)
Further, the values of ap and aq in the equation (9) are calculated as in the following equations (11) and (12).
ap = | p2−p0 | (11)
aq = | q2-q0 | (12)

デブロックフィルタ処理後の画素値p'1は以下のように求められる。すなわち、chromaEdgeFlagの値が「0」で、尚且つ、apの値がβ以下である場合、p'1は、以下の式(13)のように求められる。   The pixel value p′1 after the deblocking filter process is obtained as follows. That is, when the value of chromaEdgeFlag is “0” and the value of ap is equal to or less than β, p′1 is obtained as in the following Expression (13).

p'1=p1+Clip3(−tc0,tc0,(p2+((p0+q0+1)>>1)−(p1<<1))>>1)
・・・(13)
p′1 = p1 + Clip3 (−tc0, tc0, (p2 + ((p0 + q0 + 1) >> 1) − (p1 << 1)) >> 1)
(13)

また、式(13)が成り立たない場合、p'1は、以下の式(14)のように求められる。   Further, when Expression (13) does not hold, p′1 is obtained as in Expression (14) below.

p'1=p1 ・・・(14)   p'1 = p1 (14)

デブロックフィルタ処理後の画素値q'1は以下のように求められる。すなわち、chromaEdgeFlagの値が「0」で、尚且つ、aqの値がβ以下である場合、q'1は、以下の式(15)のように求められる。   The pixel value q′1 after the deblocking filter processing is obtained as follows. That is, when the value of chromaEdgeFlag is “0” and the value of aq is equal to or less than β, q′1 is obtained as in the following Expression (15).

q'1=q1+Clip3(−tc0,tc0,(q2+((p0+q0+1)>>1)−(q1<<1))>>1)
・・・(15)
q′1 = q1 + Clip3 (−tc0, tc0, (q2 + ((p0 + q0 + 1) >> 1) − (q1 << 1)) >> 1)
... (15)

また、式(15)が成り立たない場合、q'1は、以下の式(16)のように求められる。   In addition, when Equation (15) does not hold, q′1 is obtained as in Equation (16) below.

q'1=q1 ・・・(16)   q'1 = q1 (16)

p'2及びq'2の値は、Filtering前の値p2及びq2と変わらない。すなわち、p'2は、以下の式(17)のように求められ、q'2は、以下の式(18)のように求められる。   The values of p′2 and q′2 are the same as the values p2 and q2 before filtering. That is, p′2 is obtained as in the following equation (17), and q′2 is obtained as in the following equation (18).

p'2=p2 ・・・(17)
q'2=q2 ・・・(18)
p'2 = p2 (17)
q'2 = q2 (18)

次に、Bs=4の場合、デブロックフィルタ後の画素値p'i(i=0..2)は、以下のように求められる。chromaEdgeFlag の値が「0」であり、以下の式(19)に示される条件が成り立つ場合、p'0、p'1、及びp'2は、以下の式(20)乃至式(22)のように求められる。   Next, in the case of Bs = 4, the pixel value p′i (i = 0..2) after the deblocking filter is obtained as follows. When the value of chromaEdgeFlag is “0” and the condition shown in the following equation (19) is satisfied, p′0, p′1, and p′2 are expressed by the following equations (20) to (22). Asking.

ap<β&&|p0−q0|<((α>>2)+2) ・・・(19)
p'0=(p2+2×p1+2×p0+2×q0+q1+4)>>3 ・・・(20)
p'1=(p2+p1+p0+q0+2)>>2 ・・・(21)
p'2=(2×p3+3×p2+p1+p0+q0+4)>>3 ・・・(22)
ap <β && | p0−q0 | <((α >> 2) +2) (19)
p′0 = (p2 + 2 × p1 + 2 × p0 + 2 × q0 + q1 + 4) >> 3 (20)
p'1 = (p2 + p1 + p0 + q0 + 2) >> 2 (21)
p′2 = (2 × p3 + 3 × p2 + p1 + p0 + q0 + 4) >> 3 (22)

また、式(19)に示される条件が成り立たない場合、p'0、p'1、及びp'2は、以下の式(23)乃至(25)のように求められる。   Further, when the condition shown in Expression (19) is not satisfied, p′0, p′1, and p′2 are obtained as in Expressions (23) to (25) below.

p'0=(2×p1+p0+q1+2)>>2 ・・・(23)
p'1=p1 ・・・(24)
p'2=p2 ・・・(25)
p′0 = (2 × p1 + p0 + q1 + 2) >> 2 (23)
p'1 = p1 (24)
p'2 = p2 (25)

デブロックフィルタ処理後の画素値q'i(I=0..2)は、以下のように求められる。すなわち、chromaEdgeFlagの値が「0」であり、以下の式(26)に示される条件が成り立つ場合、q'0、q'1、及びq'2は、以下の式(27)乃至(29)のように求められる。   The pixel value q′i (I = 0..2) after the deblocking filter processing is obtained as follows. That is, when the value of chromaEdgeFlag is “0” and the condition shown in the following equation (26) is satisfied, q′0, q′1, and q′2 are expressed by the following equations (27) to (29): It is required as follows.

aq<β&&|p0−q0|<((α>>2)+2) ・・・(26)
q'0=(p1+2×p0+2×q0+2×q1+q2+4)>>3 ・・・(27)
q'1=(p0+q0+q1+q2+2)>>2 ・・・(28)
q'2=(2×q3+3×q2+q1+q0+p4+4)>>3 ・・・(29)
aq <β && | p0−q0 | <((α >> 2) +2) (26)
q′0 = (p1 + 2 × p0 + 2 × q0 + 2 × q1 + q2 + 4) >> 3 (27)
q'1 = (p0 + q0 + q1 + q2 + 2) >> 2 (28)
q′2 = (2 × q3 + 3 × q2 + q1 + q0 + p4 + 4) >> 3 (29)

また、式(26)に示される条件が成り立たない場合、q'0、q'1、及びq'2は、以下の式(30)乃至(32)のように求められる。   Further, when the condition shown in Expression (26) does not hold, q′0, q′1, and q′2 are obtained as in Expressions (30) to (32) below.

q'0=(2×q1+q0+p1+2)>>2 ・・・(30)
q'1=q1 ・・・(31)
q'2=q2 ・・・(32)
q′0 = (2 × q1 + q0 + p1 + 2) >> 2 (30)
q'1 = q1 (31)
q'2 = q2 (32)

[コスト関数]
ところで、AVC符号化方式において、より高い符号化効率を達成するには、適切な予測モードの選択が重要である。
[Cost function]
By the way, in the AVC encoding method, in order to achieve higher encoding efficiency, selection of an appropriate prediction mode is important.

かかる選択方式の例として、http://iphome.hhi.de/suehring/tml/index.htm において公開されている、JM (Joint Model) と呼ばれるH.264/MPEG-4 AVCの参照ソフトウエアに実装されている方法を挙げることが出来る。   An example of such a selection method is the reference software for H.264 / MPEG-4 AVC called JM (Joint Model), which is published at http://iphome.hhi.de/suehring/tml/index.htm. The methods that are implemented can be mentioned.

JMにおいては、以下に述べる、High Complexity Modeと、Low Complexity Modeの2通りのモード判定方法を選択することが可能である。どちらも、それぞれの予測モードModeに関するコスト関数値を算出し、これを最小にする予測モードを当該ブロック乃至マクロブロックに対する最適モードとして選択する。   In JM, it is possible to select the following two mode determination methods: High Complexity Mode and Low Complexity Mode. In both cases, a cost function value for each prediction mode Mode is calculated, and a prediction mode that minimizes the cost function value is selected as the optimum mode for the block or macroblock.

High Complexity Modeにおけるコスト関数は、以下の式(33)のようになる。   The cost function in High Complexity Mode is as shown in the following equation (33).

Cost(Mode∈Ω)=D+λ*R ・・・(33)   Cost (Mode∈Ω) = D + λ * R (33)

ここで、Ωは、当該ブロック乃至マクロブロックを符号化するための候補モードの全体集合、Dは、当該予測モードModeで符号化した場合の、復号画像と入力画像の差分エネルギーである。λは、量子化パラメータの関数として与えられるLagrange未定乗数である。Rは、直交変換係数を含んだ、当該モードModeで符号化した場合の総符号量である。   Here, Ω is the entire set of candidate modes for encoding the block or macroblock, and D is the difference energy between the decoded image and the input image when encoded in the prediction mode Mode. λ is a Lagrange undetermined multiplier given as a function of the quantization parameter. R is a total code amount when encoding is performed in the mode Mode, including orthogonal transform coefficients.

つまり、High Complexity Modeでの符号化を行うには、上記パラメータD及びRを算出するため、全ての候補モード(Mode)により、一度、仮エンコード処理を行なう必要があり、より高い演算量を要する。   In other words, in order to perform encoding in the High Complexity Mode, the parameters D and R are calculated, so it is necessary to perform temporary encoding processing once in all candidate modes (Modes), which requires a higher calculation amount. .

Low Complexity Modeにおけるコスト関数は、以下の式(34)のようになる。   The cost function in Low Complexity Mode is represented by the following formula (34).

Cost(Mode∈Ω)=D+QP2Quant(QP)*HeaderBit ・・・(34)   Cost (Mode∈Ω) = D + QP2Quant (QP) * HeaderBit (34)

ここで、Dは、High Complexity Modeの場合と異なり、予測画像と入力画像の差分エネルギーとなる。QP2Quant(QP) は、量子化パラメータQPの関数として与えられ、HeaderBitは、直交変換係数を含まない、動きベクトルや、モードといった、Headerに属する情報に関する符号量である。   Here, unlike the case of High Complexity Mode, D is the difference energy between the predicted image and the input image. QP2Quant (QP) is given as a function of the quantization parameter QP, and HeaderBit is a code amount related to information belonging to Header, such as a motion vector and mode, which does not include an orthogonal transform coefficient.

すなわち、Low Complexity Modeにおいては、それぞれの候補モード(Mode)に関して、予測処理を行う必要があるが、復号化画像までは必要ないため、符号化処理まで行う必要はない。このため、High Complexity Modeより低い演算量での実現が可能である。   That is, in Low Complexity Mode, it is necessary to perform prediction processing for each candidate mode (Mode), but it is not necessary to perform decoding processing because it is not necessary to perform decoding processing. For this reason, realization with a calculation amount lower than High Complexity Mode is possible.

[コーディングユニット]
次に、非特許文献2に記載のHEVC (High Efficiency Video Coding)符号化方式(以下、HEVC方式と称する)において定められている、コーディングユニット(Coding Unit)について説明する。
[Coding unit]
Next, a coding unit defined in the High Efficiency Video Coding (HEVC) encoding method (hereinafter referred to as HEVC method) described in Non-Patent Document 2 will be described.

H.264/AVC方式においては、1つのマクロブロックを、複数の動き補償ブロックに分割し、それぞれに対して異なる動き情報を持たせることが可能であった。すなわち、H.264/AVC方式においては、マクロブロックとサブマクロブロックによる階層構造が規定されているが、例えば、HEVC方式においては、図10に示されるように、コーディングユニット(CU(Coding Unit))が規定されている。   H. In the H.264 / AVC format, it is possible to divide one macro block into a plurality of motion compensation blocks and to have different motion information for each. That is, H. In the H.264 / AVC format, a hierarchical structure is defined by macroblocks and sub-macroblocks. For example, in the HEVC format, a coding unit (CU (Coding Unit)) is defined as shown in FIG. ing.

CUは、Coding Tree Block(CTB)とも呼ばれ、H.264/AVC方式におけるマクロブロックと同様の役割を果たす、ピクチャ単位の画像の部分領域である。後者は、16×16画素の大きさに固定されているのに対し、前者の大きさは固定されておらず、それぞれのシーケンスにおいて、画像圧縮情報中において指定されることになる。   CU is also called Coding Tree Block (CTB). This is a partial area of an image in units of pictures that plays the same role as a macroblock in the H.264 / AVC format. The latter is fixed to a size of 16 × 16 pixels, whereas the size of the former is not fixed, and is specified in the image compression information in each sequence.

例えば、出力となる符号化データに含まれるシーケンスパラメータセット(SPS(Sequence Parameter Set))において、CUの最大サイズ(LCU(Largest Coding Unit))と最小サイズ((SCU(Smallest Coding Unit))が規定される。   For example, in the sequence parameter set (SPS (Sequence Parameter Set)) included in the output encoded data, the maximum size (LCU (Largest Coding Unit)) and minimum size ((SCU (Smallest Coding Unit)) of the CU are specified. Is done.

それぞれのLCU内においては、SCUのサイズを下回らない範囲で、split-flag=1とすることにより、より小さなサイズのCUに分割することができる。図10の例では、LCUの大きさが128であり、最大階層深度が5となる。2N×2Nの大きさのCUは、split_flagの値が「1」である時、1つ下の階層となる、N×Nの大きさのCUに分割される。   Within each LCU, split-flag = 1 can be divided into smaller CUs within a range that does not fall below the SCU size. In the example of FIG. 10, the LCU size is 128 and the maximum hierarchical depth is 5. When the value of split_flag is “1”, the 2N × 2N size CU is divided into N × N size CUs that are one level below.

更に、CUは、イントラ若しくはインター予測の処理単位となる領域(ピクチャ単位の画像の部分領域)であるプレディクションユニット(Prediction Unit(PU))に分割され、また、直交変換の処理単位となる領域(ピクチャ単位の画像の部分領域)である、トランスフォームユニット(Transform Unit(TU))に分割される。現在、HEVC方式においては、4×4及び8×8に加え、16×16及び32×32直交変換を用いることが可能である。   Furthermore, CU is divided into prediction units (Prediction Units (PU)) that are regions (partial regions of images in units of pictures) that are processing units for intra or inter prediction, and are regions that are processing units for orthogonal transformation It is divided into transform units (Transform Units (TU)), which are (partial regions of images in picture units). At present, in the HEVC system, it is possible to use 16 × 16 and 32 × 32 orthogonal transforms in addition to 4 × 4 and 8 × 8.

以上のHEVC方式のように、CUを定義し、そのCUを単位として各種処理を行うような符号化方式の場合、H.264/AVC方式におけるマクロブロックはLCUに相当すると考えることができる。ただし、CUは、図10に示されるように階層構造を有するので、その最上位階層のLCUのサイズは、例えば128×128画素のように、H.264/AVC方式のマクロブロックより大きく設定されることが一般的である。   In the case of an encoding method in which a CU is defined and various processes are performed in units of the CU as in the above HEVC method, It can be considered that a macroblock in the H.264 / AVC format corresponds to an LCU. However, since the CU has a hierarchical structure as shown in FIG. 10, the size of the LCU in the highest hierarchy is H.264, for example, 128 × 128 pixels. Generally, it is set larger than the macroblock of the H.264 / AVC format.

本開示は、H.264/AVC方式におけるマクロブロックを用いる符号化方式だけでなく、HEVC方式のようなCU、PU、およびTU等を用いる符号化方式にも適用することができる。すなわち、ブロックも、ユニットも、処理単位となる領域を示すものであるので、以下、適宜、どちらも含むように、処理単位の領域という文言を用いて説明する。   The present disclosure relates to H.C. The present invention can be applied not only to an encoding method using macroblocks in the H.264 / AVC format but also to an encoding method using CU, PU, TU, and the like, such as the HEVC method. That is, since both the block and the unit indicate a region serving as a processing unit, the following description will be made using the term “processing unit region” so as to include both as appropriate.

ただし、以下において、H.264/AVC方式と例として説明する場合には、ブロックを用いて説明するが、そのブロックは、処理単位となる領域を示すものであり、HEVC方式においてはユニットである。逆に、HEVC方式を例として説明する場合には、ユニットを用いて説明するが、そのユニットは、処理単位となる領域を示すものであり、H.264/AVC方式においてはブロックである。   However, in the following, H. In the case of description as an example of the H.264 / AVC format, description will be made using a block. The block indicates a region serving as a processing unit, and is a unit in the HEVC format. On the contrary, when the HEVC method is described as an example, the description will be made using units. The units indicate areas serving as processing units. In the H.264 / AVC format, it is a block.

[HEVC方式における適応オフセット処理]
次に、HEVC方式における適応オフセットフィルタについて説明する。HEVC方式においては、非特許文献3に記載のSample Adaptive Offset方式が採用されている。
[Adaptive offset processing in HEVC]
Next, an adaptive offset filter in the HEVC scheme will be described. In the HEVC method, the Sample Adaptive Offset method described in Non-Patent Document 3 is adopted.

適応オフセットフィルタ(Picture Quality Adaptive Offset:PQAO)は、図11に示されるように、デブロックフィルタ(DB)と、適応ループフィルタ(ALF)の間に設けられている。   As shown in FIG. 11, the adaptive offset filter (Picture Quality Adaptive Offset: PQAO) is provided between the deblock filter (DB) and the adaptive loop filter (ALF).

適応オフセットの種類としては、バンドオフセットと呼ばれるものが2種類、エッジオフセットと呼ばれるものが6種類あり、さらに、オフセットを適応しないことも可能である。そして、画像をquad-treeに分割し、それぞれの領域に、上述したどの適応オフセットの種類により符号化するかを選択することができる。   There are two types of adaptive offsets called band offsets and six types called edge offsets, and it is also possible not to apply offsets. Then, the image is divided into quad-trees, and it is possible to select which of the above-described adaptive offset types is used for encoding each region.

この選択情報が、PQAO Info.として、符号化部(Entropy Coding)により符号化され、ビットストリームが生成され、生成されたビットストリームが復号側に送信される。この方法を用いることで、符号化効率を向上させることができる。   This selection information is encoded as PQAO Info. By an encoding unit (Entropy Coding), a bit stream is generated, and the generated bit stream is transmitted to the decoding side. By using this method, encoding efficiency can be improved.

ここで、図12を参照して、quad-tree構造について説明する。   Here, the quad-tree structure will be described with reference to FIG.

例えば、符号化側においては、図12のA1に示されるように、領域0が分割されていない状態を示すLevel-0(分割深度0)のコスト関数値J0が計算される。また、領域0が4つの領域1乃至4に分割された状態を示すLevel-1(分割深度0)のコスト関数値J1,J2,J3,J4が計算される。   For example, on the encoding side, as indicated by A1 in FIG. 12, a cost function value J0 of Level-0 (division depth 0) indicating a state in which the region 0 is not divided is calculated. Further, cost function values J1, J2, J3, and J4 of Level-1 (division depth 0) indicating a state where the area 0 is divided into four areas 1 to 4 are calculated.

そして、A2に示されるように、コスト関数値が比較され、J0>(J1+J2+J3+J4)により、Level-1の分割領域(Partitions)が選択される。   Then, as shown in A2, the cost function values are compared, and a partition region (Partitions) of Level-1 is selected by J0> (J1 + J2 + J3 + J4).

同様にして、A3に示されるように、領域0が16つの領域5乃至20に分割された状態を示すLevel-2(分割深度2)のコスト関数値J5乃至J20が計算される。   Similarly, as indicated by A3, cost function values J5 to J20 of Level-2 (division depth 2) indicating a state in which the region 0 is divided into 16 regions 5 to 20 are calculated.

そして、A4に示されるように、コスト関数値がそれぞれ比較され、J1<(J5+J6+J9+J10)により、領域1においては、Level-1の分割領域(Partitions)が選択される。J2>(J7+J8+J11+J12)により、領域2においては、Level-2の分割領域(Partitions)が選択される。J3>(J13+J14+J17+J18)により、領域3においては、Level-2の分割領域(Partitions)が選択される。J4>(J15+J16+J19+J20)により、領域4においては、Level-1の分割領域(Partitions)が選択される。   Then, as shown in A4, the cost function values are respectively compared, and a division region (Partitions) of Level-1 is selected in region 1 by J1 <(J5 + J6 + J9 + J10). In region 2, a Level-2 partition region (Partitions) is selected by J2> (J7 + J8 + J11 + J12). By region J3> (J13 + J14 + J17 + J18), in region 3, the Level-2 partition region (Partitions) is selected. By J4> (J15 + J16 + J19 + J20), the division region (Partitions) of Level-1 is selected in the region 4.

その結果、Quad-tree構造におけるA4に示される最終的なQuad-tree領域(Partitions)が決定される。そして、Quad-tree構造の決定された領域毎に、2種類のバンドオフセット、6種類のエッジオフセット、およびオフセットなしのすべてについてコスト関数値が算出され、どのオフセットにより符号化されるのかが決定される。   As a result, the final quad-tree region (Partitions) indicated by A4 in the quad-tree structure is determined. Then, cost function values are calculated for all of the two types of band offsets, six types of edge offsets, and no offset for each determined region of the quad-tree structure, and which offset is used for encoding is determined. The

例えば、図12の例においては、白矢印に示されるように、領域1に対しては、EO(4)、すなわち、エッジオフセットのうちの4種類目が決定されている。領域7に対しては、OFF、すなわち、オフセットなしが決定されており、領域8に対しては、EO(2)、すなわち、エッジオフセットのうちの2種類目が決定されている。領域11および12に対しては、OFF、すなわち、オフセットなしが決定されている。   For example, in the example of FIG. 12, EO (4), that is, the fourth type of edge offset is determined for the region 1 as indicated by the white arrow. For region 7, OFF, that is, no offset is determined, and for region 8, EO (2), that is, the second type of edge offset is determined. For regions 11 and 12, OFF, that is, no offset is determined.

また、領域13に対しては、BO(1)、すなわち、バンドオフセットのうちの1種類目が決定されており、領域14に対しては、EO(2)、すなわち、エッジオフセットのうちの2種類目が決定されている。領域17に対しては、BO(2)、すなわち、バンドオフセットのうちの2種類目が決定されており、領域18に対しては、BO(1)、すなわち、バンドオフセットのうちの1種類目が決定されている。領域4に対しては、EO(1)、すなわち、エッジオフセットのうちの1種類目が決定されている。   For region 13, BO (1), that is, the first type of band offset is determined, and for region 14, EO (2), that is, 2 of edge offset, is determined. The type has been determined. For region 17, BO (2), that is, the second type of band offset is determined, and for region 18, BO (1), that is, the first type of band offset. Has been determined. For region 4, EO (1), that is, the first type of edge offset is determined.

次に、図13を参照して、バンドオフセットの詳細について説明する。   Next, the details of the band offset will be described with reference to FIG.

バンドオフセットにおいては、図13の例においては、1つの目盛りが1バンド=8画素を表しており、輝度画素値が32バンドに分けられて、それぞれのバンドが独立にオフセット値を有する。   Regarding the band offset, in the example of FIG. 13, one scale represents one band = 8 pixels, the luminance pixel value is divided into 32 bands, and each band has an offset value independently.

すなわち、図13の例においては、0乃至255画素(32バンド)のうち、中央の16バンドが、第1グループに分けられ、両脇の8バンドずつが第2グループに分けられている。   That is, in the example of FIG. 13, among the 0 to 255 pixels (32 bands), the central 16 bands are divided into the first group, and the 8 bands on both sides are divided into the second group.

そして、第1グループおよび第2グループのどちらか一方のみのオフセットが符号化され、復号側に送られる。一般的に、1つの領域において、白黒はっきりしているか、微妙な色合いがあるかのどちらかであることが多く、第1グループと第2グループ両方に全てに画素があるのは稀である。このため、一方のみのオフセットしか送らないことで、それぞれのQuad-tree領域において、含まれていない値の画素値が伝送されて符号化量が増えるのが、抑制される。   Then, the offset of only one of the first group and the second group is encoded and sent to the decoding side. In general, in one region, there are often either black and white clearly or subtle hues, and it is rare that both the first group and the second group have pixels. For this reason, by sending only one offset, it is possible to suppress an increase in the amount of coding due to transmission of pixel values that are not included in each quad-tree region.

なお、入力信号が放送によるものである場合、輝度信号は、16,235、色差信号は、16,240の範囲に制限される。このとき、図13の下段に示されるbroadcast legalが適用され、×印が示されている、両脇の2バンドずつに対するオフセット値は伝送されない。   When the input signal is broadcast, the luminance signal is limited to 16,235, and the color difference signal is limited to 16,240. At this time, the broadcast legal shown in the lower part of FIG. 13 is applied, and the offset value for each of the two bands on both sides indicated by the crosses is not transmitted.

次に、図14を参照して、エッジオフセットの詳細について説明する。   Next, the details of the edge offset will be described with reference to FIG.

エッジオフセットにおいては、当該画素値と、当該画素値に隣接する隣接画素値の比較が行われ、これに対応したカテゴリに対して、オフセット値が伝送されることになる。   In the edge offset, the pixel value is compared with the adjacent pixel value adjacent to the pixel value, and the offset value is transmitted to the category corresponding to this.

エッジオフセットには、図14のA乃至図14のDに示される4つの1次元パターンと、図14のEおよび図14のFに示される2つの2次元パターンが存在し、それぞれ、図15に示されるカテゴリでオフセットが伝送される。   In the edge offset, there are four one-dimensional patterns shown in FIGS. 14A to 14D and two two-dimensional patterns shown in E and F of FIG. The offset is transmitted in the indicated category.

図14のAは、当該画素Cに対して、隣接画素が左右の1次元に配置されている、すなわち、図14のAのパターンに対して0度をなしている1-D,0-degreeパターンを表している。図14のBは、当該画素Cに対して、隣接画素が上下の1次元に配置されている、すなわち、図14のAのパターンに対して90度をなしている1-D,90-degreeパターンを表している。   14A shows that 1-D, 0-degree in which adjacent pixels are arranged one-dimensionally to the left and right of the pixel C, that is, 0 degrees with respect to the pattern of A in FIG. Represents a pattern. 14B, 1-D, 90-degree in which adjacent pixels are arranged one-dimensionally above and below the pixel C, that is, 90 degrees with respect to the pattern of A in FIG. Represents a pattern.

図14のCは、当該画素Cに対して、隣接画素が左上と右下の1次元に配置されている、すなわち、図14のAのパターンに対して135度をなしている1-D,135-degreeパターンを表している。図14のDは、当該画素Cに対して、隣接画素が右上と左下の1次元に配置されている、すなわち、図14のAのパターンに対して45度をなしている1-D,135-degreeパターンを表している。   In FIG. 14C, adjacent pixels are arranged one-dimensionally in the upper left and lower right with respect to the pixel C, that is, 1-D, which forms 135 degrees with respect to the pattern of A in FIG. Represents a 135-degree pattern. In FIG. 14D, adjacent pixels are arranged one-dimensionally on the upper right and lower left with respect to the pixel C, that is, 45 degrees with respect to the pattern of A in FIG. Represents the -degree pattern.

図14のEは、当該画素Cに対して、隣接画素が上下左右2次元に配置されている、すなわち、当該画素Cに対して交差している2-D,crossパターンを表している。図14のFは、当該画素Cに対して、隣接画素が右上左下、左上右下の2次元に配置されている、すなわち、当該画素Cに対して斜めに交差している2-D,diagonalパターンを表している。   E in FIG. 14 represents a 2-D, cross pattern in which adjacent pixels are two-dimensionally arranged with respect to the pixel C, that is, intersect with the pixel C. 14F shows that 2-D, diagonal in which adjacent pixels are two-dimensionally arranged with respect to the pixel C, ie, upper right lower left and upper left lower right, that is, obliquely intersect the pixel C. Represents a pattern.

図15のAは、1次元パターンの規則一覧表(Classification rule for 1-D patterns)を示している。図14のA乃至図14のDのパターンは、図15のAに示されるような5種類のカテゴリに分類され、そのカテゴリによりオフセットが算出されて、復号部に送られる。   FIG. 15A shows a one-dimensional pattern rule list (Classification rule for 1-D patterns). The patterns A in FIG. 14 to D in FIG. 14 are classified into five types of categories as shown in FIG. 15A, offsets are calculated based on the categories, and sent to the decoding unit.

当該画素Cの画素値が2つの隣接画素の画素値より小さい場合、カテゴリ1に分類される。当該画素Cの画素値が一方の隣接画素の画素値より小さくて、他方の隣接画素の画素値と一致する場合、カテゴリ2に分類される。当該画素Cの画素値が一方の隣接画素の画素値より大きくて、他方の隣接画素の画素値と一致する場合、カテゴリ3に分類される。当該画素Cの画素値が2つの隣接画素の画素値より大きい場合、カテゴリ4に分類される。以上のどれでもない場合、カテゴリ0に分類される。   When the pixel value of the pixel C is smaller than the pixel values of two adjacent pixels, it is classified into category 1. When the pixel value of the pixel C is smaller than the pixel value of one adjacent pixel and matches the pixel value of the other adjacent pixel, it is classified into category 2. When the pixel value of the pixel C is larger than the pixel value of one adjacent pixel and matches the pixel value of the other adjacent pixel, it is classified into category 3. When the pixel value of the pixel C is larger than the pixel values of two adjacent pixels, it is classified into category 4. If none of the above, it is classified into category 0.

図15のBは、2次元パターンの規則一覧表(Classification rule for 2-D patterns)を示している。図14のEおよび図14のFのパターンは、図15のBに示されるような7種類のカテゴリに分類され、そのカテゴリによりオフセットが復号部に送られる。   FIG. 15B shows a two-dimensional pattern rule list (Classification rule for 2-D patterns). The patterns of E of FIG. 14 and F of FIG. 14 are classified into seven types of categories as shown in FIG. 15B, and offsets are sent to the decoding unit according to the categories.

当該画素Cの画素値が4つの隣接画素の画素値より小さい場合、カテゴリ1に分類される。当該画素Cの画素値が3つの隣接画素の画素値より小さくて、4番目の隣接画素の画素値と一致する場合、カテゴリ2に分類される。当該画素Cの画素値が3つの隣接画素の画素値より小さくて、4番目の隣接画素の画素値より大きい場合、カテゴリ3に分類される。   When the pixel value of the pixel C is smaller than the pixel values of the four adjacent pixels, it is classified into category 1. When the pixel value of the pixel C is smaller than the pixel values of the three adjacent pixels and matches the pixel value of the fourth adjacent pixel, the pixel C is classified into category 2. When the pixel value of the pixel C is smaller than the pixel values of the three adjacent pixels and larger than the pixel value of the fourth adjacent pixel, the pixel C is classified into category 3.

当該画素Cの画素値が3つの隣接画素の画素値より大きくて、4番目の隣接画素の画素値より小さい場合、カテゴリ4に分類される。当該画素Cの画素値が3つの隣接画素の画素値より大きくて、4番目の隣接画素の画素値と一致する場合、カテゴリ5に分類される。当該画素Cの画素値が4つの隣接画素の画素値より大きい場合、カテゴリ6に分類される。以上のどれでもない場合、カテゴリ0に分類される。   When the pixel value of the pixel C is larger than the pixel values of the three adjacent pixels and smaller than the pixel value of the fourth adjacent pixel, it is classified into category 4. When the pixel value of the pixel C is larger than the pixel values of the three adjacent pixels and matches the pixel value of the fourth adjacent pixel, the pixel C is classified into category 5. When the pixel value of the pixel C is larger than the pixel values of the four adjacent pixels, it is classified into category 6. If none of the above, it is classified into category 0.

以上のように、エッジオフセットにおいては、1次元パターンの方が、隣接2画素のみに対する比較を行えばよいので、演算量は低くなる。なお、high efficiency 符号化条件においては、low delay 符号化条件に比して、1bitオフセットの値を高精度にして、復号側へ送られる。   As described above, in the edge offset, the one-dimensional pattern only has to compare only two adjacent pixels, so that the amount of calculation is low. Note that, under the high efficiency encoding condition, the 1-bit offset value is sent to the decoding side with a higher accuracy than the low delay encoding condition.

以上の適応オフセット処理は、HEVC方式において、輝度信号に対してのみ行われていた。   The above adaptive offset processing has been performed only on the luminance signal in the HEVC scheme.

しかしながら、色差信号に対して、適応オフセット処理を施すことは、演算量の増大につながる。また、色差信号は、特に、入力が、4:2:0や4:2:2である場合、輝度信号に比して解像度が低く、輝度信号と同じ処理を行うことは冗長である。   However, applying adaptive offset processing to color difference signals leads to an increase in the amount of computation. The color difference signal has a lower resolution than the luminance signal, particularly when the input is 4: 2: 0 or 4: 2: 2, and it is redundant to perform the same processing as the luminance signal.

以上のことを踏まえて、本実施においては、色差信号に対しても、適応オフセットフィルタを適用させることにより、色差信号における符号化効率を向上させることができるようにする。   Based on the above, in the present embodiment, it is possible to improve the coding efficiency of the color difference signal by applying an adaptive offset filter also to the color difference signal.

[画像符号化装置の構成例]
図16は、本開示を適用した画像処理装置としての画像符号化装置の一実施の形態の構成を表している。
[Configuration Example of Image Encoding Device]
FIG. 16 illustrates a configuration of an embodiment of an image encoding device as an image processing device to which the present disclosure is applied.

図16の画像符号化装置101は、A/D変換部11、画面並べ替えバッファ12、演算部13、直交変換部14、量子化部15、可逆符号化部16、蓄積バッファ17、逆量子化部18、逆直交変換部19、演算部20を備える点で、図1の画像符号化装置1と共通している。図16の画像符号化装置101は、デブロックフィルタ21、フレームメモリ22、選択部23、イントラ予測部24、動き予測・補償部25、予測画像選択部26、およびレート制御部27を備える点で、図1の画像符号化装置1と共通している。   16 includes an A / D conversion unit 11, a screen rearrangement buffer 12, a calculation unit 13, an orthogonal transformation unit 14, a quantization unit 15, a lossless encoding unit 16, a storage buffer 17, and an inverse quantization. It is common to the image coding apparatus 1 of FIG. 1 in that the unit 18, the inverse orthogonal transform unit 19, and the calculation unit 20 are provided. The image coding apparatus 101 in FIG. 16 includes a deblock filter 21, a frame memory 22, a selection unit 23, an intra prediction unit 24, a motion prediction / compensation unit 25, a predicted image selection unit 26, and a rate control unit 27. This is common with the image encoding device 1 of FIG.

また、図16の画像符号化装置101は、上述した図3の適応ループフィルタ71が追加された点で、図1の画像符号化装置1と異なっている。   Also, the image encoding device 101 in FIG. 16 is different from the image encoding device 1 in FIG. 1 in that the adaptive loop filter 71 in FIG. 3 described above is added.

さらに、図16の画像符号化装置101は、適応オフセット部111および色差適応オフセット部112が追加された点で、図1の画像符号化装置1と異なっている。   Furthermore, the image encoding device 101 in FIG. 16 is different from the image encoding device 1 in FIG. 1 in that an adaptive offset unit 111 and a color difference adaptive offset unit 112 are added.

図16に示される画像符号化装置101は、予測処理を用いて画像データを符号化する。ここで、符号化方式としては、例えば、H.264及びMPEG(Moving Picture Experts Group)4 Part10(AVC(Advanced Video Coding))(以下H.264/AVCと称する)方式や、HEVC(High Efficiency Video Coding)方式などが用いられる。   The image encoding device 101 illustrated in FIG. 16 encodes image data using a prediction process. Here, as an encoding method, for example, H.264. H.264 and MPEG (Moving Picture Experts Group) 4 Part 10 (AVC (Advanced Video Coding)) (hereinafter referred to as H.264 / AVC) method, HEVC (High Efficiency Video Coding) method, and the like are used.

すなわち、適応オフセット部111および色差適応オフセット部112は、デブロックフィルタ21の後、適応ループフィルタ71の前に設けられている。すなわち、適応オフセット部111および色差適応オフセット部112は、演算部13、直交変換部14、量子化部15、逆量子化部18、逆直交変換部19、演算部20、デブロックフィルタ21、適応ループフィルタ71、フレームメモリ22、選択部23、イントラ予測部24または動き予測・補償部25、および予測画像選択部26からなる動き補償ループ内に設けられている。すなわち、動き補償ループ内では、画像がループして用いられている。   That is, the adaptive offset unit 111 and the color difference adaptive offset unit 112 are provided after the deblocking filter 21 and before the adaptive loop filter 71. That is, the adaptive offset unit 111 and the chrominance adaptive offset unit 112 are a calculation unit 13, an orthogonal transform unit 14, a quantization unit 15, an inverse quantization unit 18, an inverse orthogonal transform unit 19, a calculation unit 20, a deblocking filter 21, and an adaptive block. It is provided in a motion compensation loop including a loop filter 71, a frame memory 22, a selection unit 23, an intra prediction unit 24 or a motion prediction / compensation unit 25, and a predicted image selection unit 26. That is, images are used in a loop in the motion compensation loop.

適応オフセット部111は、デブロックフィルタ21からの復号画像(ローカルデコード後のベースバンド情報)の輝度信号に対するオフセット処理を行う。すなわち、適応オフセット部111は、図12を参照して上述したQuad-tree 構造を決定する。具体的には、適応オフセット部111は、輝度信号を用いて、quad-treeによる領域分割を行い、分割された領域毎に、バンドオフセット2種類、エッジオフセット6種類、オフセットなしの中から、オフセットの種類を決定する。また、適応オフセット部111は、Quad-tree 構造を参照して、分割された領域毎に、輝度信号に対するオフセット値を算出する。   The adaptive offset unit 111 performs an offset process on the luminance signal of the decoded image (baseband information after local decoding) from the deblocking filter 21. That is, the adaptive offset unit 111 determines the Quad-tree structure described above with reference to FIG. Specifically, the adaptive offset unit 111 performs quad-tree region division using the luminance signal, and for each divided region, the offset is selected from two types of band offset, six types of edge offset, and no offset. Determine the type of. The adaptive offset unit 111 calculates an offset value for the luminance signal for each divided region with reference to the quad-tree structure.

適応オフセット部111は、決定したquad-tree構造と、算出した輝度信号に対するオフセット値(以下、輝度オフセット値と称する)を、可逆符号化部16および色差適応オフセット部112に供給する。   The adaptive offset unit 111 supplies the determined quad-tree structure and the calculated offset value for the luminance signal (hereinafter referred to as luminance offset value) to the lossless encoding unit 16 and the color difference adaptive offset unit 112.

また、適応オフセット部111は、決定したquad-tree構造と輝度オフセット値を用いて、デブロックフィルタ21からの復号画像の輝度信号に対してオフセット処理を行う。そして、適応オフセット部111は、オフセット処理後の輝度信号と、色差適応オフセット部112によりオフセット処理が施された色差信号とを、適応ループフィルタ71に供給する。   In addition, the adaptive offset unit 111 performs offset processing on the luminance signal of the decoded image from the deblocking filter 21 using the determined quad-tree structure and luminance offset value. Then, the adaptive offset unit 111 supplies the luminance signal after the offset process and the color difference signal subjected to the offset process by the color difference adaptive offset unit 112 to the adaptive loop filter 71.

色差適応オフセット部112は、適応オフセット部111からのquad-tree構造に基づいて、色差信号に対するオフセット処理を行う。すなわち、色差適応オフセット部112は、適応オフセット部111からのquad-tree構造を参照して、分割された領域毎に、色差信号に対するオフセット値を算出する。色差適応オフセット部112は、決定した色差オフセット値を用いて、デブロックフィルタ21からの復号画像の色差信号に対してオフセット処理を行う。そして、色差適応オフセット部112は、オフセット処理後の色差信号を適応オフセット部111に供給する。   The color difference adaptive offset unit 112 performs an offset process on the color difference signal based on the quad-tree structure from the adaptive offset unit 111. That is, the color difference adaptive offset unit 112 refers to the quad-tree structure from the adaptive offset unit 111 and calculates an offset value for the color difference signal for each divided region. The color difference adaptive offset unit 112 performs an offset process on the color difference signal of the decoded image from the deblocking filter 21 using the determined color difference offset value. Then, the color difference adaptive offset unit 112 supplies the color difference signal after the offset process to the adaptive offset unit 111.

さらに、色差適応オフセット部112は、決定した色差信号に対するオフセット値(以下、色差オフセット値と称する)と、輝度オフセット値と相関係数を用いて、色差オフセット値の予測残差を算出し、可逆符号化部16に供給する。   Further, the color difference adaptive offset unit 112 calculates a prediction residual of the color difference offset value by using an offset value (hereinafter referred to as a color difference offset value) with respect to the determined color difference signal, a luminance offset value, and a correlation coefficient, and is reversible. The data is supplied to the encoding unit 16.

適応ループフィルタ71は、適応オフセット部111によりオフセットされた復号画像に対して、ウィナーフィルタ(Wiener Filter)を用いてループフィルタ処理を行うことにより画質改善を行う。   The adaptive loop filter 71 improves the image quality by performing loop filter processing on the decoded image offset by the adaptive offset unit 111 using a Wiener filter.

[本開示の適応オフセット処理]
図16の適応オフセット部111および色差適応オフセット部112により行われる適応オフセット処理について、再度、図12乃至15を適宜参照して説明する。
[Adaptive offset processing of the present disclosure]
The adaptive offset processing performed by the adaptive offset unit 111 and the color difference adaptive offset unit 112 in FIG. 16 will be described again with reference to FIGS. 12 to 15 as appropriate.

まず、画像符号化装置101においては、輝度信号と色差信号には、相関がある事実を使用し、図12を参照して上述したquad-tree構造の決定を、輝度信号のみで行い、輝度信号を用いて決定されたquad-tree構造の領域分割を、色差信号にも適用する。   First, in the image coding apparatus 101, the fact that there is a correlation between the luminance signal and the color difference signal is used, and the quad-tree structure described above with reference to FIG. The region division of the quad-tree structure determined using is applied to the color difference signal.

これにより、輝度信号と色差信号で独立した領域分割を行わなくて済むので、演算量の増大を抑えることができる。さらに、復号側へ、輝度と色差で異なる領域分割に関する情報を伝える必要がないので、画像圧縮情報の符号量が増大されない。   This eliminates the need for independent area division for the luminance signal and the color difference signal, thereby suppressing an increase in the amount of calculation. Furthermore, since it is not necessary to convey information regarding region division that differs depending on luminance and color difference to the decoding side, the code amount of the image compression information is not increased.

なお、オフセットの種類については、輝度信号のquad-tree構造に基づいて決定される。もちろん、オフセットの種類についても、輝度信号と色差信号を同じにしてもよい。また、例えば、色差信号に関しては、バンドオフセットとエッジオフセットの、2つだけの種類による分割がなされてもよい。すなわち、この場合、色差信号に関しては、バンドオフセット、エッジオフセット、オフ(オフセットを行わない)の3種類のみのquad-tree構造として処理が行われる。   Note that the type of offset is determined based on the quad-tree structure of the luminance signal. Of course, the luminance signal and the color difference signal may be the same for the type of offset. Further, for example, with respect to the color difference signal, division by only two types of band offset and edge offset may be performed. That is, in this case, the color difference signal is processed as a quad-tree structure of only three types of band offset, edge offset, and off (no offset is performed).

さらに、色差信号は、輝度信号より解像度が低いことから、バンドオフセットを適用する際には、図13に示される輝度信号に対する32バンドよりも少ない、例えば、16バンドによりオフセットを送る。これにより、符号量の増大を抑えながら、画質を改善することが可能である。   Furthermore, since the resolution of the chrominance signal is lower than that of the luminance signal, when applying the band offset, the offset is sent with fewer than 32 bands, for example, 16 bands with respect to the luminance signal shown in FIG. Thereby, it is possible to improve the image quality while suppressing an increase in the code amount.

また、輝度信号は、0がその成分がないことを意味するが、色差信号に関しては、8ビットの場合、128がその成分がないことを意味する。このため、図13において、輝度信号においては、第1グループに関する情報が送られるとき、色差信号でにおいては、第2グループに関する情報が送られる。反対に、輝度信号において、第2グループに関する情報が送られるとき、色差信号においては、第1グループに関する情報が送られる。このようにしてもよい。   Also, in the luminance signal, 0 means that the component is not present, but regarding the color difference signal, in the case of 8 bits, 128 means that the component is not present. For this reason, in FIG. 13, when information on the first group is sent in the luminance signal, information on the second group is sent in the color difference signal. Conversely, when information about the second group is sent in the luminance signal, information about the first group is sent in the color difference signal. You may do this.

さらに、エッジオフセット、バンドオフセットともに、色差信号に対するオフセット値OCではなく、次の式(35)に示される予測残差を復号側に送るようにする。

OC−(α*OL + β) ・・・(35)
Further, for both the edge offset and the band offset, the prediction residual represented by the following expression (35) is sent to the decoding side instead of the offset value OC for the color difference signal.

OC- (α * OL + β) (35)

ここで、OLは、輝度信号に対するオフセット値であり、α、βは、相関係数である。このα、βは、2種類のバンドオフセット、6種類のエッジオフセット、それぞれ別個の値が算出されて、復号側へ送られてもよい。あるいは、バンドオフセットとエッジオフセットのそれぞれに対して、2種類の相関係数αおよびβが算出されて、送られてもよい。さらに、CbとCrについて別々に相関係数αおよびβが算出されて、送られてもよい。   Here, OL is an offset value for the luminance signal, and α and β are correlation coefficients. As α and β, two types of band offsets and six types of edge offsets may be calculated and sent to the decoding side. Alternatively, two types of correlation coefficients α and β may be calculated and sent for each of the band offset and the edge offset. Furthermore, correlation coefficients α and β may be calculated separately for Cb and Cr and sent.

さらに、また、バンドオフセットで、輝度信号に対しては、32バンドあるが、色差信号に対して、16バンドしかない場合、OLが、OL0とOL1に対応すると仮定すると、次の式(36)に示される予測残差を復号側に送るようにしてもよい。

OC−(α*(OL0 +OL1+1)/2+ β) ・・・(36)
Further, when there are 32 bands for the luminance signal at the band offset but only 16 bands for the color difference signal, assuming that OL corresponds to OL0 and OL1, the following equation (36) The prediction residual shown in (1) may be sent to the decoding side.

OC- (α * (OL0 + OL1 + 1) / 2 + β) (36)

なお、上記式(35)および式(36)において、α=1、β=0の場合、色差オフセット値として、輝度オフセット値と同じ値が用いられることになる。さらに、画像符号化装置101においては、色差信号に対するオフセット値(予測残差)を量子化するようにしてもよい。   In the above equations (35) and (36), when α = 1 and β = 0, the same value as the luminance offset value is used as the color difference offset value. Further, the image coding apparatus 101 may quantize the offset value (prediction residual) for the color difference signal.

また、次に後述するように、輝度信号と色差信号で、カテゴリの対応を行うようにしてもよい。すなわち、例えば、4:2:0の場合、4つの輝度画素が、1つの色差画素にも対応することにしたが、4つのうち全部、もしくは3つの輝度画素が同じカテゴリに属する場合には、色差信号にも同一のカテゴリを適用する。   Further, as described later, categories may be associated with the luminance signal and the color difference signal. That is, for example, in the case of 4: 2: 0, four luminance pixels correspond to one chrominance pixel, but when all four or three luminance pixels belong to the same category, The same category is applied to the color difference signal.

輝度画素が2つずつ同じカテゴリに属する場合には、色差信号に対して、どちらのカテゴリを適用するかに関する情報を表すフラグを送る。これ以外の場合には、上述したように、色差信号に関してもカテゴリ情報を送る。   When two luminance pixels belong to the same category, a flag indicating information regarding which category is applied is sent to the color difference signal. In other cases, as described above, the category information is also sent for the color difference signal.

以上のようにして、色差信号に対しても適応オフセットを適用させることにより、演算量を増大させることなく、色差信号における符号化効率を向上させることができる。   As described above, by applying the adaptive offset to the color difference signal, it is possible to improve the coding efficiency of the color difference signal without increasing the amount of calculation.

[適応オフセット部および色差信号適応オフセット部の構成例]
次に、画像符号化装置101の各部について説明する。図17は、適応オフセット部111および色差信号適応オフセット部112の構成例を示すブロック図である。
[Configuration Example of Adaptive Offset Unit and Color Difference Signal Adaptive Offset Unit]
Next, each unit of the image encoding device 101 will be described. FIG. 17 is a block diagram illustrating a configuration example of the adaptive offset unit 111 and the color difference signal adaptive offset unit 112.

図17の例において、適応オフセット部111は、Quad-tree構造決定部131、輝度オフセット算出部132、輝度オフセット部133、および画素バッファ134を含むように構成されている。   In the example of FIG. 17, the adaptive offset unit 111 is configured to include a quad-tree structure determining unit 131, a luminance offset calculating unit 132, a luminance offset unit 133, and a pixel buffer 134.

色差適応オフセット部112は、色差オフセット算出部141、相関係数算出部142、色差オフセット予測値算出部143、および色差オフセット部144を含むように構成されている。   The color difference adaptive offset unit 112 is configured to include a color difference offset calculation unit 141, a correlation coefficient calculation unit 142, a color difference offset predicted value calculation unit 143, and a color difference offset unit 144.

デブロックフィルタ21からのデブロック後の画素値は、Quad-tree構造決定部131、輝度オフセット部133、および色差オフセット部144に供給される。   The pixel value after deblocking from the deblocking filter 21 is supplied to the quad-tree structure determining unit 131, the luminance offset unit 133, and the color difference offset unit 144.

Quad-tree構造決定部131は、デブロック後の輝度信号の画素値を参照して、図12を参照して上述したようにQuad-tree構造を決定する。すなわち、Quad-tree構造決定部131は、画像をquad-treeに分割し、それぞれの領域に、上述したどの適応オフセットの種類により符号化するかを、コスト関数値を用いて決定する。   The quad-tree structure determination unit 131 refers to the pixel value of the luminance signal after deblocking, and determines the quad-tree structure as described above with reference to FIG. That is, the quad-tree structure determining unit 131 divides an image into quad-trees and determines which of the above-described adaptive offset types is to be encoded in each region using the cost function value.

Quad-tree構造決定部131は、決定したQuad-tree構造を、輝度オフセット算出部132、輝度オフセット部133、色差オフセット算出部141、および色差オフセット部144に供給する。   The quad-tree structure determination unit 131 supplies the determined quad-tree structure to the luminance offset calculation unit 132, the luminance offset unit 133, the color difference offset calculation unit 141, and the color difference offset unit 144.

輝度オフセット算出部132は、輝度信号に関して、Quad-tree分割された各領域に対する輝度オフセット値の算出を行う。輝度オフセット算出部132は、算出した輝度オフセットの情報を、輝度オフセット部133、相関係数算出部142、および色差オフセット予測値算出部143に供給する。また、輝度オフセット算出部132は、算出した輝度オフセットの情報を、Quad-tree構造の情報とともに、可逆符号化部16に供給する。   The luminance offset calculation unit 132 calculates a luminance offset value for each region that is divided into quad-trees with respect to the luminance signal. The luminance offset calculation unit 132 supplies the calculated luminance offset information to the luminance offset unit 133, the correlation coefficient calculation unit 142, and the color difference offset predicted value calculation unit 143. Also, the luminance offset calculation unit 132 supplies the calculated luminance offset information to the lossless encoding unit 16 together with the quad-tree structure information.

輝度オフセット部133は、デブロック後の輝度信号の画素値に対して、オフセット処理を行う。すなわち、輝度オフセット部133は、Quad-tree構造決定部131によりQuad-tree分割された各領域の輝度の画素値に対して、輝度オフセット算出部132により算出された輝度オフセット値を加算する。輝度オフセット部133は、オフセット処理後の画素値を画素バッファ134に蓄積する。   The luminance offset unit 133 performs an offset process on the pixel value of the luminance signal after deblocking. That is, the luminance offset unit 133 adds the luminance offset value calculated by the luminance offset calculation unit 132 to the pixel value of the luminance of each region that has been quad-tree divided by the quad-tree structure determination unit 131. The luminance offset unit 133 accumulates the pixel value after the offset process in the pixel buffer 134.

画素バッファ134は、輝度信号および色差信号のオフセット処理後の画素値の両方が揃うのを待ち、揃ったところで、オフセット処理後の画素値を、適応ループフィルタ71に供給する。   The pixel buffer 134 waits for both the luminance signal and the pixel value after the offset processing of the color difference signal to be aligned. When the pixel values are aligned, the pixel buffer 134 supplies the pixel value after the offset processing to the adaptive loop filter 71.

色差オフセット算出部141および色差オフセット部144においては、輝度信号のQuad-tree構造に対して、上述したような色差信号の場合の分割数、バンド数、またはカテゴリの対応が予め設定されている。それを踏まえて、色差オフセット算出部141は、色差信号に関して、Quad-tree構造決定部131からのQuad-tree分割された各領域に対する色差オフセット値を算出する。色差オフセット算出部141は、算出した色差オフセットの情報を、相関係数算出部142、および色差オフセット部144に供給する。   In the color difference offset calculating unit 141 and the color difference offset unit 144, the correspondence of the division number, the number of bands, or the category in the case of the color difference signal as described above is set in advance for the quad-tree structure of the luminance signal. Based on this, the color difference offset calculation unit 141 calculates a color difference offset value for each quad-tree divided region from the quad-tree structure determination unit 131 with respect to the color difference signal. The color difference offset calculation unit 141 supplies the calculated color difference offset information to the correlation coefficient calculation unit 142 and the color difference offset unit 144.

相関係数算出部142は、輝度オフセット算出部132からの輝度オフセットの情報と、色差オフセット算出部141からの色差オフセットの情報とを用いて、相関係数αおよびβを算出する。相関係数算出部142は、算出した相関係数αおよびβの値と、色差オフセットの情報を、色差オフセット予測値算出部143に供給する。また、相関係数算出部142は、算出した相関係数αおよびβの値を可逆符号化部16に供給する。   The correlation coefficient calculating unit 142 calculates the correlation coefficients α and β using the luminance offset information from the luminance offset calculating unit 132 and the chrominance offset information from the chrominance offset calculating unit 141. The correlation coefficient calculation unit 142 supplies the calculated correlation coefficients α and β values and color difference offset information to the color difference offset predicted value calculation unit 143. Further, the correlation coefficient calculation unit 142 supplies the calculated values of the correlation coefficients α and β to the lossless encoding unit 16.

色差オフセット予測値算出部143は、輝度オフセット算出部132からの輝度オフセット値と、相関係数算出部142からの相関係数αおよびβの値、並びに色差オフセット値とを用いて、予測残差(以下、色差オフセット残差とも称する)を算出する。このとき、例えば、上述した式(35)または式(36)が用いられる。色差オフセット予測値算出部143は、算出した色差オフセット残差を、可逆符号化部16に供給する。   The color difference offset predicted value calculation unit 143 uses the luminance offset value from the luminance offset calculation unit 132, the correlation coefficients α and β values from the correlation coefficient calculation unit 142, and the color difference offset value to predict the residual. (Hereinafter also referred to as color difference offset residual). At this time, for example, Expression (35) or Expression (36) described above is used. The predicted color difference offset calculation unit 143 supplies the calculated color difference offset residual to the lossless encoding unit 16.

色差オフセット部144は、デブロック後の色差信号の画素値に対して、オフセット処理を行う。すなわち、色差オフセット部144は、Quad-tree構造決定部131によりQuad-tree分割された各領域の色差の画素値に対して、色差オフセット算出部141により算出された色差オフセット値を加算する。色差オフセット部144は、オフセット処理後の画素値を画素バッファ134に蓄積する。   The color difference offset unit 144 performs an offset process on the pixel value of the color difference signal after deblocking. That is, the color difference offset unit 144 adds the color difference offset value calculated by the color difference offset calculation unit 141 to the pixel value of the color difference of each region divided by the quad-tree by the quad-tree structure determination unit 131. The color difference offset unit 144 accumulates the pixel values after the offset processing in the pixel buffer 134.

[符号化処理の流れ]
次に、以上のような画像符号化装置101により実行される各処理の流れについて説明する。最初に、図18のフローチャートを参照して、符号化処理の流れの例を説明する。
[Flow of encoding process]
Next, the flow of each process executed by the image encoding device 101 as described above will be described. First, an example of the flow of encoding processing will be described with reference to the flowchart of FIG.

ステップS101において、A/D変換部11は入力された画像をA/D変換する。ステップS102において、画面並べ替えバッファ12は、A/D変換された画像を記憶し、各ピクチャの表示する順番から符号化する順番への並べ替えを行う。   In step S101, the A / D converter 11 performs A / D conversion on the input image. In step S102, the screen rearrangement buffer 12 stores the A / D converted image, and rearranges the picture from the display order to the encoding order.

画面並べ替えバッファ12から供給される処理対象の画像がイントラ処理されるブロックの画像である場合、参照される復号済みの画像がフレームメモリ22から読み出され、選択部23を介してイントラ予測部24に供給される。   When the image to be processed supplied from the screen rearrangement buffer 12 is an image of a block to be intra-processed, the decoded image to be referred to is read from the frame memory 22 and the intra-prediction unit via the selection unit 23 24.

これらの画像に基づいて、ステップS103において、イントラ予測部24は処理対象のブロックの画素を、候補となる全てのイントラ予測モードでイントラ予測する。なお、参照される復号済みの画素としては、デブロックフィルタ21、適応オフセット部111、色差適応オフセット部112、および適応ループフィルタ71によりフィルタやオフセットされていない画素が用いられる。   Based on these images, in step S103, the intra prediction unit 24 performs intra prediction on the pixels of the processing target block in all candidate intra prediction modes. As decoded pixels to be referred to, pixels that are not filtered or offset by the deblock filter 21, the adaptive offset unit 111, the color difference adaptive offset unit 112, and the adaptive loop filter 71 are used.

この処理により、候補となる全てのイントラ予測モードでイントラ予測が行われ、候補となる全てのイントラ予測モードに対してコスト関数値が算出される。そして、算出されたコスト関数値に基づいて、最適イントラ予測モードが選択され、最適イントラ予測モードのイントラ予測により生成された予測画像とそのコスト関数値が予測画像選択部26に供給される。   By this processing, intra prediction is performed in all candidate intra prediction modes, and cost function values are calculated for all candidate intra prediction modes. Then, based on the calculated cost function value, the optimal intra prediction mode is selected, and the predicted image generated by the intra prediction in the optimal intra prediction mode and its cost function value are supplied to the predicted image selection unit 26.

画面並べ替えバッファ12から供給される処理対象の画像がインター処理される画像である場合、参照される画像がフレームメモリ22から読み出され、選択部23を介して動き予測・補償部25に供給される。これらの画像に基づいて、ステップS104において、動き予測・補償部25は、動き予測・補償処理を行う。   When the processing target image supplied from the screen rearrangement buffer 12 is an inter-processed image, the referenced image is read from the frame memory 22 and supplied to the motion prediction / compensation unit 25 via the selection unit 23. Is done. Based on these images, in step S104, the motion prediction / compensation unit 25 performs motion prediction / compensation processing.

この処理により、候補となる全てのインター予測モードで動き予測処理が行われ、候補となる全てのインター予測モードに対してコスト関数値が算出され、算出したコスト関数値に基づいて、最適インター予測モードが決定される。そして、最適インター予測モードにより生成された予測画像とそのコスト関数値が予測画像選択部26に供給される。   By this processing, motion prediction processing is performed in all candidate inter prediction modes, cost function values are calculated for all candidate inter prediction modes, and optimal inter prediction is performed based on the calculated cost function values. The mode is determined. Then, the predicted image generated in the optimal inter prediction mode and its cost function value are supplied to the predicted image selection unit 26.

ステップS105において、予測画像選択部26は、イントラ予測部24および動き予測・補償部25より出力された各コスト関数値に基づいて、最適イントラ予測モードと最適インター予測モードのうちの一方を、最適予測モードに決定する。そして、予測画像選択部26は、決定した最適予測モードの予測画像を選択し、演算部13,20に供給する。この予測画像は、後述するステップS106,S111の演算に利用される。   In step S <b> 105, the predicted image selection unit 26 optimizes one of the optimal intra prediction mode and the optimal inter prediction mode based on the cost function values output from the intra prediction unit 24 and the motion prediction / compensation unit 25. Determine the prediction mode. Then, the predicted image selection unit 26 selects the predicted image in the determined optimal prediction mode and supplies it to the calculation units 13 and 20. This predicted image is used for calculations in steps S106 and S111 described later.

なお、この予測画像の選択情報は、イントラ予測部24または動き予測・補償部25に供給される。最適イントラ予測モードの予測画像が選択された場合、イントラ予測部24は、最適イントラ予測モードを示す情報(すなわち、イントラ予測モード情報)を、可逆符号化部16に供給する。   Note that the prediction image selection information is supplied to the intra prediction unit 24 or the motion prediction / compensation unit 25. When the prediction image in the optimal intra prediction mode is selected, the intra prediction unit 24 supplies information indicating the optimal intra prediction mode (that is, intra prediction mode information) to the lossless encoding unit 16.

最適インター予測モードの予測画像が選択された場合、動き予測・補償部25は、最適インター予測モードを示す情報と、さらに、必要に応じて、最適インター予測モードに応じた情報を可逆符号化部16に出力する。最適インター予測モードに応じた情報としては、動きベクトル情報や参照フレーム情報などがあげられる。   When the prediction image of the optimal inter prediction mode is selected, the motion prediction / compensation unit 25 further includes information indicating the optimal inter prediction mode and, if necessary, information corresponding to the optimal inter prediction mode as a lossless encoding unit. 16 is output. Information according to the optimal inter prediction mode includes motion vector information and reference frame information.

ステップS106において、演算部13は、ステップS102で並び替えられた画像と、ステップS105で選択された予測画像との差分を演算する。予測画像は、インター予測する場合は動き予測・補償部25から、イントラ予測する場合はイントラ予測部24から、それぞれ予測画像選択部26を介して演算部13に供給される。   In step S106, the calculation unit 13 calculates a difference between the image rearranged in step S102 and the predicted image selected in step S105. The predicted image is supplied from the motion prediction / compensation unit 25 in the case of inter prediction, and from the intra prediction unit 24 in the case of intra prediction, to the calculation unit 13 via the predicted image selection unit 26, respectively.

差分データは元の画像データに較べてデータ量が小さくなっている。したがって、画像をそのまま符号化する場合に較べて、データ量を圧縮することができる。   The difference data has a smaller data amount than the original image data. Therefore, the data amount can be compressed as compared with the case where the image is encoded as it is.

ステップS107において、直交変換部14は演算部13から供給された差分情報を直交変換する。具体的には、離散コサイン変換、カルーネン・レーベ変換等の直交変換が行われ、変換係数が出力される。   In step S <b> 107, the orthogonal transform unit 14 performs orthogonal transform on the difference information supplied from the calculation unit 13. Specifically, orthogonal transformation such as discrete cosine transformation and Karhunen-Loeve transformation is performed, and transformation coefficients are output.

ステップS108において、量子化部15は変換係数を量子化する。この量子化に際しては、後述するステップS118の処理で説明されるように、レートが制御される。   In step S108, the quantization unit 15 quantizes the transform coefficient. At the time of this quantization, the rate is controlled as described in the process of step S118 described later.

以上のようにして量子化された差分情報は、次のようにして局部的に復号される。すなわち、ステップS109において、逆量子化部18は量子化部15により量子化された変換係数を量子化部15の特性に対応する特性で逆量子化する。ステップS110において、逆直交変換部19は逆量子化部18により逆量子化された変換係数を直交変換部14の特性に対応する特性で逆直交変換する。   The difference information quantized as described above is locally decoded as follows. That is, in step S109, the inverse quantization unit 18 inversely quantizes the transform coefficient quantized by the quantization unit 15 with characteristics corresponding to the characteristics of the quantization unit 15. In step S <b> 110, the inverse orthogonal transform unit 19 performs inverse orthogonal transform on the transform coefficient inversely quantized by the inverse quantization unit 18 with characteristics corresponding to the characteristics of the orthogonal transform unit 14.

ステップS111において、演算部20は、予測画像選択部26を介して入力される予測画像を局部的に復号された差分情報に加算し、局部的に復号された(すなわち、ローカルデコードされた)画像(演算部13への入力に対応する画像)を生成する。   In step S111, the calculation unit 20 adds the predicted image input via the predicted image selection unit 26 to the locally decoded difference information, and the locally decoded (that is, locally decoded) image. (An image corresponding to the input to the calculation unit 13) is generated.

ステップS112においてデブロックフィルタ21は、演算部20より出力された画像に対して、デブロックフィルタ処理を行う。これによりブロック歪みが除去される。デブロックフィルタ21からの復号画像は、適応オフセット部111に出力される。   In step S <b> 112, the deblock filter 21 performs deblock filter processing on the image output from the calculation unit 20. Thereby, block distortion is removed. The decoded image from the deblocking filter 21 is output to the adaptive offset unit 111.

ステップS113において、適応オフセット部111および色差適応オフセット部112は、適応オフセット処理を行う。この適応オフセット処理の詳細は、図19を参照して後述される。この処理により、輝度信号を基に、quad-tree構造が決定され、決定されたquad-tree分割された領域の輝度、色差に対して、オフセット値がそれぞれ算出される。そして、決定されたquad-tree分割された領域の輝度、色差に対して、オフセット処理が施される。オフセット後の画素値は、適応ループフィルタ71に供給される。   In step S113, the adaptive offset unit 111 and the color difference adaptive offset unit 112 perform an adaptive offset process. Details of the adaptive offset processing will be described later with reference to FIG. By this processing, a quad-tree structure is determined based on the luminance signal, and an offset value is calculated for each luminance and color difference of the determined quad-tree divided region. Then, an offset process is performed on the luminance and color difference of the determined quad-tree divided area. The pixel value after the offset is supplied to the adaptive loop filter 71.

また、輝度オフセット値と色差オフセット値が用いられて、相関係数が求められ、色差オフセット残差が求められる。求められた色差オフセット残差は、quad-tree構造と輝度オフセットの情報とともに、可逆符号化部16に供給される。また、相関係数も可逆符号化部16に供給される。   Further, the correlation coefficient is obtained using the luminance offset value and the color difference offset value, and the color difference offset residual is obtained. The obtained color difference offset residual is supplied to the lossless encoding unit 16 together with information on the quad-tree structure and the luminance offset. The correlation coefficient is also supplied to the lossless encoding unit 16.

ステップS114において、適応ループフィルタ71は、適応フィルタ係数を用いて、オフセット処理後の画素値に対して、適応ループフィルタ処理を行う。適応フィルタ処理後の画素値は、フレームメモリ22に出力される。   In step S114, the adaptive loop filter 71 performs an adaptive loop filter process on the pixel value after the offset process using the adaptive filter coefficient. The pixel value after the adaptive filter processing is output to the frame memory 22.

ステップS115においてフレームメモリ22は、フィルタリングされた画像を記憶する。なお、フレームメモリ22には、デブロックフィルタ21、適応オフセット部111、色差適応オフセット部112、および適応ループフィルタ71によりフィルタやオフセットされていない画像も演算部20から供給され、記憶される。   In step S115, the frame memory 22 stores the filtered image. The frame memory 22 is also supplied with an image that has not been filtered or offset by the deblocking filter 21, the adaptive offset unit 111, the color difference adaptive offset unit 112, and the adaptive loop filter 71 from the computing unit 20 and stored therein.

一方、上述したステップS108において量子化された変換係数は、可逆符号化部16にも供給される。ステップS116において、可逆符号化部16は量子化部15より出力された量子化された変換係数を符号化する。すなわち、差分画像が可変長符号化、算術符号化等の可逆符号化され、圧縮される。   On the other hand, the transform coefficient quantized in step S108 described above is also supplied to the lossless encoding unit 16. In step S116, the lossless encoding unit 16 encodes the quantized transform coefficient output from the quantization unit 15. That is, the difference image is subjected to lossless encoding such as variable length encoding and arithmetic encoding, and is compressed.

また、このとき、上述したステップS105において可逆符号化部16に入力された、イントラ予測部24からのイントラ予測モード情報、または、動き予測・補償部25からの最適インター予測モードに応じた情報なども符号化され、ヘッダ情報に付加される。さらに、上述したステップS113において可逆符号化部16に入力されたquad-tree構造と輝度オフセット、および色差オフセット残差の情報も、符号化され、ヘッダ情報に付加される。なお、相関係数は、スライスヘッダ、またはLCU(Largest Coding Unit)ヘッダに付加される。   At this time, the intra prediction mode information from the intra prediction unit 24 or the information corresponding to the optimal inter prediction mode from the motion prediction / compensation unit 25 input to the lossless encoding unit 16 in step S105 described above, etc. Is also encoded and added to the header information. Further, the quad-tree structure, the luminance offset, and the chrominance offset residual information input to the lossless encoding unit 16 in step S113 described above are also encoded and added to the header information. The correlation coefficient is added to a slice header or an LCU (Largest Coding Unit) header.

例えば、インター予測モードを示す情報は、マクロブロック毎に符号化される。動きベクトル情報や参照フレーム情報は、対象となるブロック毎に符号化される。   For example, information indicating the inter prediction mode is encoded for each macroblock. Motion vector information and reference frame information are encoded for each target block.

ステップS117において蓄積バッファ17は差分画像を圧縮画像として蓄積する。蓄積バッファ17に蓄積された圧縮画像が適宜読み出され、伝送路を介して復号側に伝送される。   In step S117, the accumulation buffer 17 accumulates the difference image as a compressed image. The compressed image stored in the storage buffer 17 is appropriately read out and transmitted to the decoding side via the transmission path.

ステップS118においてレート制御部27は、蓄積バッファ17に蓄積された圧縮画像に基づいて、オーバーフローあるいはアンダーフローが発生しないように、量子化部15の量子化動作のレートを制御する。   In step S <b> 118, the rate control unit 27 controls the quantization operation rate of the quantization unit 15 based on the compressed image stored in the storage buffer 17 so that overflow or underflow does not occur.

ステップS118の処理が終了すると、符号化処理が終了される。   When the process of step S118 ends, the encoding process ends.

[適応オフセット処理の流れ]
次に、図19のフローチャートを参照して、図18のステップS113において実行される適応オフセット処理の流れの例を説明する。
[Flow of adaptive offset processing]
Next, an example of the flow of adaptive offset processing executed in step S113 in FIG. 18 will be described with reference to the flowchart in FIG.

デブロックフィルタ21からのデブロック後の画素値は、Quad-tree構造決定部131、輝度オフセット部133、および色差オフセット部144に供給される。   The pixel value after deblocking from the deblocking filter 21 is supplied to the quad-tree structure determining unit 131, the luminance offset unit 133, and the color difference offset unit 144.

ステップS131において、Quad-tree構造決定部131は、デブロック後の輝度信号の画素値を参照して、図12を参照して上述したように、Quad-tree構造を決定する。すなわち、画像がquad-treeに分割され、それぞれの領域に、上述したどの適応オフセットの種類により符号化するかが、コスト関数値を用いて決定されることにより、Quad-tree構造が決定される。決定されたQuad-tree構造は、輝度オフセット算出部132、輝度オフセット部133、色差オフセット算出部141、および色差オフセット部144に供給される。   In step S131, the quad-tree structure determining unit 131 refers to the pixel value of the luminance signal after deblocking and determines the quad-tree structure as described above with reference to FIG. That is, the image is divided into quad-trees, and the quad-tree structure is determined by determining which of the above-described adaptive offset types is to be encoded in each region using the cost function value. . The determined quad-tree structure is supplied to the luminance offset calculation unit 132, the luminance offset unit 133, the color difference offset calculation unit 141, and the color difference offset unit 144.

ステップS132において、輝度オフセット算出部132は、輝度信号に関して、Quad-tree分割された各領域に対する輝度オフセット値の算出を行う。算出した輝度オフセットの情報は、輝度オフセット部133、相関係数算出部142、および色差オフセット予測値算出部143に供給される。   In step S132, the luminance offset calculation unit 132 calculates a luminance offset value for each quad-tree divided region with respect to the luminance signal. The calculated luminance offset information is supplied to the luminance offset unit 133, the correlation coefficient calculation unit 142, and the color difference offset predicted value calculation unit 143.

一方、ステップS133において、色差オフセット算出部141は、色差信号に関して、Quad-tree分割された各領域に対する色差オフセット値の算出を行う。算出された色差オフセットの情報は、相関係数算出部142、および色差オフセット部144に供給される。   On the other hand, in step S133, the chrominance offset calculation unit 141 calculates chrominance offset values for each of the quad-tree divided regions with respect to the chrominance signal. The calculated color difference offset information is supplied to the correlation coefficient calculation unit 142 and the color difference offset unit 144.

ステップS134において、相関係数算出部142は、輝度オフセット算出部132からの輝度オフセットの情報と、色差オフセット算出部141からの色差オフセットの情報とを用いて、相関係数αおよびβを算出する。算出された相関係数αおよびβの値と、色差オフセットの情報は、色差オフセット予測値算出部143に供給される。   In step S134, the correlation coefficient calculation unit 142 calculates the correlation coefficients α and β using the luminance offset information from the luminance offset calculation unit 132 and the color difference offset information from the color difference offset calculation unit 141. . The calculated values of the correlation coefficients α and β and the color difference offset information are supplied to the color difference offset predicted value calculation unit 143.

ステップS135において、色差オフセット予測値算出部143は、式(35)または式(36)により、予測残差として、色差オフセット残差を算出する。この色差オフセット残差の算出には、輝度オフセット算出部132からの輝度オフセット、相関係数算出部142からの相関係数αおよびβの値、並びに色差オフセットが用いられる。   In step S135, the chrominance offset predicted value calculation unit 143 calculates a chrominance offset residual as a prediction residual using Expression (35) or Expression (36). For the calculation of the color difference offset residual, the luminance offset from the luminance offset calculation unit 132, the values of the correlation coefficients α and β from the correlation coefficient calculation unit 142, and the color difference offset are used.

ステップS136において、適応オフセット部111および色差適応オフセット部112は、適応オフセットパラメータである、Quad-tree構造、輝度オフセット値、相関係数αおよびβ、並びに、色差オフセット残差を、可逆符号化部16に送る。すなわち、輝度オフセット算出部132は、算出した輝度オフセットの情報を、Quad-tree構造の情報とともに、可逆符号化部16に供給する。相関係数算出部142は、算出した相関係数αおよびβの値を可逆符号化部16に供給する。色差オフセット予測値算出部143は、算出した色差オフセット残差を、可逆符号化部16に供給する。なお、色差オフセット残差は、量子化部15により量子化されるようにしてもよい。   In step S136, the adaptive offset unit 111 and the color difference adaptive offset unit 112 convert the quad-tree structure, the luminance offset value, the correlation coefficients α and β, and the color difference offset residual, which are adaptive offset parameters, into a lossless encoding unit. 16 That is, the luminance offset calculation unit 132 supplies the calculated luminance offset information to the lossless encoding unit 16 together with the quad-tree structure information. The correlation coefficient calculation unit 142 supplies the calculated values of the correlation coefficients α and β to the lossless encoding unit 16. The predicted color difference offset calculation unit 143 supplies the calculated color difference offset residual to the lossless encoding unit 16. Note that the color difference offset residual may be quantized by the quantization unit 15.

これらの適応オフセットパラメータは、上述した図18のステップS116において、可逆符号化部16により符号化され、ヘッダ情報に付加される。   These adaptive offset parameters are encoded by the lossless encoding unit 16 and added to the header information in step S116 of FIG. 18 described above.

ステップS137において、輝度オフセット部133および色差オフセット部144は、デブロック後の輝度、色差の画素値に対して、オフセット処理をそれぞれ行う。すなわち、輝度オフセット部133は、Quad-tree構造決定部131によりQuad-tree分割された各領域の輝度の画素値に対して、輝度オフセット算出部132により算出されたオフセット値を加算する。色差オフセット部144は、Quad-tree構造決定部131によりQuad-tree分割された各領域の色差の画素値に対して、色差オフセット算出部141により算出されたオフセット値を加算する。   In step S137, the luminance offset unit 133 and the chrominance offset unit 144 perform offset processing on the deblocked luminance and chrominance pixel values, respectively. That is, the luminance offset unit 133 adds the offset value calculated by the luminance offset calculation unit 132 to the luminance pixel value of each region that has been quad-tree divided by the quad-tree structure determination unit 131. The color difference offset unit 144 adds the offset value calculated by the color difference offset calculation unit 141 to the pixel value of the color difference of each region that has been quad-tree divided by the quad-tree structure determination unit 131.

オフセット処理後の画素値は、画素バッファ134に蓄積され、輝度、色差が揃ったところで、適応ループフィルタ71に供給される。   The pixel values after the offset processing are accumulated in the pixel buffer 134, and are supplied to the adaptive loop filter 71 when the luminance and the color difference are aligned.

以上のように、色差信号については、輝度信号に基づいて決定されたQuad-tree構造に基づいてオフセット処理が施されるので、演算量の増大を抑えながら、符号化効率を改善することができる。   As described above, since the offset processing is performed on the color difference signal based on the quad-tree structure determined based on the luminance signal, it is possible to improve the coding efficiency while suppressing an increase in the amount of calculation. .

また、色差信号については、輝度信号のオフセット値と相関係数が用いられて算出された色差オフセットの残差が復号側に送られるので、符号化効率を向上させることができる。   Also, with respect to the color difference signal, the residual of the color difference offset calculated using the offset value of the luminance signal and the correlation coefficient is sent to the decoding side, so that the coding efficiency can be improved.

<2.第2の実施の形態>
[画像復号装置]
図20は、本開示を適用した画像処理装置としての画像復号装置の一実施の形態の構成を表している。図20に示される画像復号装置201は、図16の画像符号化装置101に対応する復号装置である。
<2. Second Embodiment>
[Image decoding device]
FIG. 20 illustrates a configuration of an embodiment of an image decoding device as an image processing device to which the present disclosure is applied. An image decoding apparatus 201 shown in FIG. 20 is a decoding apparatus corresponding to the image encoding apparatus 101 in FIG.

画像符号化装置101より符号化された符号化データは、所定の伝送路を介して、この画像符号化装置101に対応する画像復号装置201に伝送され、復号されるものとする。   It is assumed that encoded data encoded by the image encoding device 101 is transmitted to an image decoding device 201 corresponding to the image encoding device 101 via a predetermined transmission path and decoded.

図20の画像復号装置201は、蓄積バッファ41、可逆復号部42、逆量子化部43、逆直交変換部44、および演算部45を備える点で、図2の画像復号装置31と共通している。図20の画像復号装置201は、デブロックフィルタ46、画面並べ替えバッファ47、D/A変換部48、フレームメモリ49、選択部50、イントラ予測部51、動き補償部52、および画像選択部53を備える点で、図2の画像復号装置31と共通している。   The image decoding apparatus 201 in FIG. 20 is common to the image decoding apparatus 31 in FIG. 2 in that it includes a storage buffer 41, a lossless decoding unit 42, an inverse quantization unit 43, an inverse orthogonal transform unit 44, and a calculation unit 45. Yes. 20 includes a deblock filter 46, a screen rearrangement buffer 47, a D / A conversion unit 48, a frame memory 49, a selection unit 50, an intra prediction unit 51, a motion compensation unit 52, and an image selection unit 53. In common with the image decoding device 31 of FIG.

また、図20の画像復号装置201は、図4の適応ループフィルタ91が追加された点で、図2の画像復号装置31と異なっている。   20 is different from the image decoding device 31 in FIG. 2 in that an adaptive loop filter 91 in FIG. 4 is added.

さらに、図20の画像復号装置201は、適応オフセット部211および色差適応オフセット部212が追加された点で、図2の画像復号装置31と異なっている。   Furthermore, the image decoding device 201 in FIG. 20 is different from the image decoding device 31 in FIG. 2 in that an adaptive offset unit 211 and a color difference adaptive offset unit 212 are added.

すなわち、可逆復号部42は、図2の可逆復号部42と同様に、蓄積バッファ41より供給された、図16の可逆符号化部16により符号化された情報を、可逆符号化部16の符号化方式に対応する方式で復号する。このとき、図20の例においては、動きベクトル情報、参照フレーム情報、予測モード情報(イントラ予測モード、またはインター予測モードを示す情報)、適応オフセットパラメータなども復号される。適応オフセットパラメータは、上述したように、図16の可逆符号化部16により符号化されたQuad-tree構造、輝度オフセット、相関係数αおよびβ、並びに、色差オフセット残差などで構成される。   That is, the lossless decoding unit 42 converts the information encoded by the lossless encoding unit 16 of FIG. 16 supplied from the accumulation buffer 41 into the code of the lossless encoding unit 16 as in the case of the lossless decoding unit 42 of FIG. Decoding is performed using a method corresponding to the conversion method. At this time, in the example of FIG. 20, motion vector information, reference frame information, prediction mode information (information indicating an intra prediction mode or an inter prediction mode), an adaptive offset parameter, and the like are also decoded. As described above, the adaptive offset parameter includes the quad-tree structure encoded by the lossless encoding unit 16 in FIG. 16, the luminance offset, the correlation coefficients α and β, and the color difference offset residual.

なお、相関係数αおよびβは、スライスヘッダまたはLCU(Largest Coding Unit)ヘッダに付加されているので、そこから取得される。また、色差オフセット残差が量子化されている場合には、色差オフセット残差は、逆量子化部43により逆量子化されてから、色差適応オフセット部212に供給される。   Note that the correlation coefficients α and β are acquired from the slice header or the LCU (Largest Coding Unit) header because they are added thereto. When the color difference offset residual is quantized, the color difference offset residual is inversely quantized by the inverse quantization unit 43 and then supplied to the color difference adaptive offset unit 212.

適応オフセット部211および色差適応オフセット部212は、デブロックフィルタ46の後、適応ループフィルタ91の前に設けられている。すなわち、適応オフセット部211および色差適応オフセット部212は、演算部45、デブロックフィルタ46、適応ループフィルタ91、フレームメモリ49、選択部50、動き補償部52、および画像選択部53からなる動き補償ループ内に設けられている。すなわち、動き補償ループ内では、画像がループして用いられている。   The adaptive offset unit 211 and the color difference adaptive offset unit 212 are provided after the deblocking filter 46 and before the adaptive loop filter 91. That is, the adaptive offset unit 211 and the chrominance adaptive offset unit 212 are motion compensations including a calculation unit 45, a deblock filter 46, an adaptive loop filter 91, a frame memory 49, a selection unit 50, a motion compensation unit 52, and an image selection unit 53. It is provided in the loop. That is, images are used in a loop in the motion compensation loop.

適応オフセット部211には、可逆復号部42からの適応オフセットパラメータのうち、Quad-tree構造、および輝度オフセットが供給される。適応オフセット部211は、それらの情報を用いて、デブロックフィルタ46からの復号画像の輝度信号の画素値に対してオフセット処理を行うとともに、それらの情報を、色差適応オフセット部212に供給する。   Among the adaptive offset parameters from the lossless decoding unit 42, the adaptive offset unit 211 is supplied with the quad-tree structure and the luminance offset. The adaptive offset unit 211 performs offset processing on the pixel value of the luminance signal of the decoded image from the deblocking filter 46 using the information, and supplies the information to the color difference adaptive offset unit 212.

また、適応オフセット部211は、オフセット処理後の輝度信号と、色差適応オフセット部212によりオフセット処理が施された色差信号とを、適応ループフィルタ91に供給する。   The adaptive offset unit 211 supplies the luminance signal after the offset processing and the color difference signal subjected to the offset processing by the color difference adaptive offset unit 212 to the adaptive loop filter 91.

色差適応オフセット部212には、適応オフセットパラメータのうち、相関係数αおよびβ、並びに、色差オフセット残差が供給される。色差適応オフセット部212は、適応オフセット部211からのQuad-tree構造に基づいて、デブロックフィルタ46からの復号画像の色差信号の画素値に対してオフセット処理を行う。すなわち、色差適応オフセット部212は、可逆復号部42からの相関係数α、β、および色差オフセット残差、並びに、適応オフセット部211からのQuad-tree構造、および輝度オフセット値を用いて、色差オフセットを再構築する。色差適応オフセット部212は、適応オフセット部211からのQuad-tree構造、再構築した色差オフセット値を用いて、デブロックフィルタ46からの復号画像の色差信号の画素値に対してオフセット処理を行う。   Among the adaptive offset parameters, the color difference adaptive offset unit 212 is supplied with the correlation coefficients α and β and the color difference offset residual. The color difference adaptive offset unit 212 performs offset processing on the pixel value of the color difference signal of the decoded image from the deblocking filter 46 based on the quad-tree structure from the adaptive offset unit 211. That is, the color difference adaptive offset unit 212 uses the correlation coefficients α and β and the color difference offset residual from the lossless decoding unit 42, the quad-tree structure from the adaptive offset unit 211, and the luminance offset value, and uses the color difference. Rebuild the offset. The color difference adaptive offset unit 212 performs an offset process on the pixel value of the color difference signal of the decoded image from the deblocking filter 46 using the quad-tree structure from the adaptive offset unit 211 and the reconstructed color difference offset value.

適応ループフィルタ91は、可逆復号部42から供給された適応フィルタ係数を用いて、デブロックフィルタ46からの復号画像にフィルタ処理を行う。このフィルタとして、例えば、ウィナーフィルタ(Wiener Filter)が用いられる。   The adaptive loop filter 91 performs filter processing on the decoded image from the deblocking filter 46 using the adaptive filter coefficient supplied from the lossless decoding unit 42. As this filter, for example, a Wiener Filter is used.

[適応オフセット部および色差適応オフセット部の構成例]
次に、画像復号装置201の各部について説明する。図21は、適応オフセット部211および色差適応オフセット部212の構成例を示すブロック図である。
[Configuration example of adaptive offset section and color difference adaptive offset section]
Next, each unit of the image decoding device 201 will be described. FIG. 21 is a block diagram illustrating a configuration example of the adaptive offset unit 211 and the color difference adaptive offset unit 212.

図21の例において、適応オフセット部211は、Quad-tree構造バッファ231、輝度オフセットバッファ232、輝度オフセット部233、および画素バッファ234を含むように構成されている。   In the example of FIG. 21, the adaptive offset unit 211 is configured to include a quad-tree structure buffer 231, a luminance offset buffer 232, a luminance offset unit 233, and a pixel buffer 234.

色差適応オフセット部212は、相関係数バッファ241、色差オフセット残差バッファ242、色差オフセット再構築部243、および色差オフセット部244を含むように構成されている。   The color difference adaptive offset unit 212 is configured to include a correlation coefficient buffer 241, a color difference offset residual buffer 242, a color difference offset reconstruction unit 243, and a color difference offset unit 244.

デブロックフィルタ46からのデブロック後の画素値は、輝度オフセット部233、および色差オフセット部244に供給される。   The pixel value after deblocking from the deblocking filter 46 is supplied to the luminance offset unit 233 and the color difference offset unit 244.

可逆復号部42からのQuad-tree構造の情報は、Quad-tree構造バッファ231に供給される。Quad-tree構造バッファ231は、可逆復号部42からのQuad-tree構造の情報を蓄積し、Quad-tree構造の情報を、輝度オフセット部233、色差オフセット再構築部243、および色差オフセット部244に供給する。   Information on the quad-tree structure from the lossless decoding unit 42 is supplied to the quad-tree structure buffer 231. The quad-tree structure buffer 231 accumulates the quad-tree structure information from the lossless decoding unit 42, and the quad-tree structure information is stored in the luminance offset unit 233, the color difference offset reconstruction unit 243, and the color difference offset unit 244. Supply.

可逆復号部42からの輝度オフセットの情報は、輝度オフセットバッファ232に供給される。輝度オフセットバッファ232は、可逆復号部42からの輝度オフセットの情報を蓄積し、輝度オフセットの情報を、輝度オフセット部233、および色差オフセット再構築部243に供給する。   Information on the luminance offset from the lossless decoding unit 42 is supplied to the luminance offset buffer 232. The luminance offset buffer 232 accumulates the luminance offset information from the lossless decoding unit 42 and supplies the luminance offset information to the luminance offset unit 233 and the chrominance offset reconstruction unit 243.

輝度オフセット部233は、デブロック後の輝度信号の画素値に対して、オフセット処理を行う。すなわち、輝度オフセット部233は、Quad-tree構造バッファ231によりQuad-tree分割された各領域の輝度の画素値に対して、輝度オフセットバッファ232からの輝度オフセット値を加算する。輝度オフセット部233は、オフセット処理後の画素値を画素バッファ234に蓄積する。   The luminance offset unit 233 performs an offset process on the pixel value of the luminance signal after deblocking. That is, the luminance offset unit 233 adds the luminance offset value from the luminance offset buffer 232 to the luminance pixel value of each region that has been quad-tree divided by the quad-tree structure buffer 231. The luminance offset unit 233 accumulates the pixel values after the offset processing in the pixel buffer 234.

画素バッファ234は、輝度信号および色差信号のオフセット処理後の画素値の両方が揃うのを待ち、揃ったところで、オフセット処理後の画素値を、適応ループフィルタ91に供給する。   The pixel buffer 234 waits for both the luminance signal and the pixel value after the offset processing of the color difference signal to be aligned. When the pixel values are aligned, the pixel buffer 234 supplies the pixel value after the offset processing to the adaptive loop filter 91.

可逆復号部42からの相関係数α、βは、相関係数バッファ241に供給される。相関係数バッファ241は、可逆復号部42からの相関係数α、βを蓄積し、蓄積された相関係数α、βを、色差オフセット再構築部243に供給する。   The correlation coefficients α and β from the lossless decoding unit 42 are supplied to the correlation coefficient buffer 241. The correlation coefficient buffer 241 accumulates the correlation coefficients α and β from the lossless decoding unit 42 and supplies the accumulated correlation coefficients α and β to the color difference offset reconstruction unit 243.

可逆復号部42からの色差オフセット残差は、色差オフセット残差バッファ242に供給される。色差オフセット残差バッファ242は、可逆復号部42からの色差オフセット残差を蓄積し、蓄積された色差オフセット残差を、色差オフセット再構築部243に供給する。   The color difference offset residual from the lossless decoding unit 42 is supplied to the color difference offset residual buffer 242. The color difference offset residual buffer 242 accumulates the color difference offset residual from the lossless decoding unit 42 and supplies the accumulated color difference offset residual to the color difference offset reconstruction unit 243.

色差オフセット再構築部243には、Quad-tree構造バッファ231からのQuad-tree構造、輝度オフセットバッファ232からの輝度オフセット、相関係数バッファ241からの相関係数、および色差オフセット残差バッファ242からの色差オフセット残差が入力される。色差オフセット再構築部243は、入力されるそれらの情報を用いて、色差オフセットを再構築し、再構築された色差オフセットの情報を、色差オフセット部244に供給する。   The chrominance offset reconstruction unit 243 includes a quad-tree structure from the quad-tree structure buffer 231, a luminance offset from the luminance offset buffer 232, a correlation coefficient from the correlation coefficient buffer 241, and a chrominance offset residual buffer 242. The color difference offset residual is input. The chrominance offset reconstructing unit 243 reconstructs the chrominance offset using the input information, and supplies the reconstructed chrominance offset information to the chrominance offset unit 244.

色差オフセット部244においては、図17の色差オフセット算出部141および色差オフセット部144と同様に、輝度信号のQuad-tree構造に対して、上述したような色差信号の場合の分割数、バンド数、またはカテゴリの対応が予め設定されている。それを踏まえて、色差オフセット部244は、デブロック後の色差信号の画素値に対して、オフセット処理を行う。すなわち、色差オフセット部244は、Quad-tree構造バッファ231からのQuad-tree分割された各領域の色差の画素値に対して、色差オフセット再構築部243ににより再構築された色差オフセット値を加算する。色差オフセット部244は、オフセット処理後の画素値を画素バッファ234に蓄積する。   In the chrominance offset unit 244, as in the chrominance offset calculation unit 141 and the chrominance offset unit 144 of FIG. 17, the number of divisions, the number of bands, Or correspondence of a category is preset. Based on this, the color difference offset unit 244 performs an offset process on the pixel value of the color difference signal after deblocking. That is, the color difference offset unit 244 adds the color difference offset value reconstructed by the color difference offset reconstructing unit 243 to the color difference pixel value of each quad-tree divided region from the quad-tree structure buffer 231. To do. The color difference offset unit 244 accumulates the pixel value after the offset process in the pixel buffer 234.

[復号処理の流れ]
次に、以上のような画像復号装置201により実行される各処理の流れについて説明する。最初に、図22のフローチャートを参照して、復号処理の流れの例を説明する。
[Decoding process flow]
Next, the flow of each process executed by the image decoding apparatus 201 as described above will be described. First, an example of the flow of decoding processing will be described with reference to the flowchart of FIG.

復号処理が開始されると、ステップS201において、蓄積バッファ41は、伝送されてきた符号化データを蓄積する。ステップS202において、可逆復号部42は、蓄積バッファ41から供給される符号化データを復号する。すなわち、図16の可逆符号化部16により符号化されたIピクチャ、Pピクチャ、並びにBピクチャが復号される。   When the decoding process is started, in step S201, the accumulation buffer 41 accumulates the transmitted encoded data. In step S <b> 202, the lossless decoding unit 42 decodes the encoded data supplied from the accumulation buffer 41. That is, the I picture, P picture, and B picture encoded by the lossless encoding unit 16 in FIG. 16 are decoded.

このとき、動きベクトル情報、参照フレーム情報、予測モード情報(イントラ予測モード、またはインター予測モード)、並びに、適応オフセットパラメータの情報も復号される。   At this time, motion vector information, reference frame information, prediction mode information (intra prediction mode or inter prediction mode), and adaptive offset parameter information are also decoded.

予測モード情報がイントラ予測モード情報である場合、予測モード情報は、イントラ予測部51に供給される。予測モード情報がインター予測モード情報である場合、予測モード情報と対応する動きベクトル情報は、動き補償部52に供給される。また、適応オフセットパラメータのうちのQuad-tree構造、および輝度オフセットは、適応オフセット部211に供給される。適応オフセットパラメータのうち、相関係数αおよびβ、並びに、色差オフセット残差は、色差適応オフセット部212に供給される。   When the prediction mode information is intra prediction mode information, the prediction mode information is supplied to the intra prediction unit 51. When the prediction mode information is inter prediction mode information, motion vector information corresponding to the prediction mode information is supplied to the motion compensation unit 52. Further, the quad-tree structure and the luminance offset among the adaptive offset parameters are supplied to the adaptive offset unit 211. Among the adaptive offset parameters, the correlation coefficients α and β and the color difference offset residual are supplied to the color difference adaptive offset unit 212.

ステップS203において、イントラ予測部51または動き補償部52は、可逆復号部42から供給される予測モード情報に対応して、それぞれ、予測画像生成処理を行う。   In step S <b> 203, the intra prediction unit 51 or the motion compensation unit 52 performs a prediction image generation process corresponding to the prediction mode information supplied from the lossless decoding unit 42.

すなわち、可逆復号部42からイントラ予測モード情報が供給された場合、イントラ予測部51は、Most Probable Modeの生成を行い、並列処理により、イントラ予測モードのイントラ予測画像を生成する。可逆復号部42からインター予測モード情報が供給された場合、動き補償部52は、インター予測モードの動き予測・補償処理を行い、インター予測画像を生成する。   That is, when intra prediction mode information is supplied from the lossless decoding unit 42, the intra prediction unit 51 generates a Most Probable Mode and generates an intra prediction image in the intra prediction mode by parallel processing. When the inter prediction mode information is supplied from the lossless decoding unit 42, the motion compensation unit 52 performs a motion prediction / compensation process in the inter prediction mode, and generates an inter prediction image.

この処理により、イントラ予測部51により生成された予測画像(イントラ予測画像)、または動き補償部52により生成された予測画像(インター予測画像)が画像選択部53に供給される。   Through this process, the predicted image (intra predicted image) generated by the intra prediction unit 51 or the predicted image (inter predicted image) generated by the motion compensation unit 52 is supplied to the image selection unit 53.

ステップS204において、画像選択部53は予測画像を選択する。すなわち、イントラ予測部51により生成された予測画像、または動き補償部52により生成された予測画像が供給される。したがって、供給された予測画像が選択されて演算部45に供給され、後述するステップS206において逆直交変換部44の出力と加算される。   In step S204, the image selection unit 53 selects a predicted image. That is, the prediction image generated by the intra prediction unit 51 or the prediction image generated by the motion compensation unit 52 is supplied. Therefore, the supplied predicted image is selected and supplied to the calculation unit 45, and is added to the output of the inverse orthogonal transform unit 44 in step S206 to be described later.

上述したステップS202において、可逆復号部42により復号された変換係数は、逆量子化部43にも供給される。ステップS205において、逆量子化部43は可逆復号部42により復号された変換係数を、図16の量子化部15の特性に対応する特性で逆量子化する。   In step S202 described above, the transform coefficient decoded by the lossless decoding unit 42 is also supplied to the inverse quantization unit 43. In step S205, the inverse quantization unit 43 inversely quantizes the transform coefficient decoded by the lossless decoding unit 42 with a characteristic corresponding to the characteristic of the quantization unit 15 in FIG.

ステップS206において逆直交変換部44は、逆量子化部43により逆量子化された変換係数を、図16の直交変換部14の特性に対応する特性で逆直交変換する。これにより図16の直交変換部14の入力(演算部13の出力)に対応する差分情報が復号されたことになる。   In step S206, the inverse orthogonal transform unit 44 performs inverse orthogonal transform on the transform coefficient inversely quantized by the inverse quantization unit 43 with characteristics corresponding to the characteristics of the orthogonal transform unit 14 in FIG. Thereby, the difference information corresponding to the input of the orthogonal transform unit 14 of FIG. 16 (the output of the calculation unit 13) is decoded.

ステップS207において、演算部45は、上述したステップS204の処理で選択され、画像選択部53を介して入力される予測画像を差分情報と加算する。これにより元の画像が復号される。ステップS208においてデブロックフィルタ46は、演算部45より出力された画像に対して、デブロックフィルタ処理を行う。これにより、画面全体におけるブロック歪みが除去される。   In step S207, the calculation unit 45 adds the predicted image selected in the process of step S204 described above and input via the image selection unit 53 to the difference information. As a result, the original image is decoded. In step S <b> 208, the deblock filter 46 performs deblock filter processing on the image output from the calculation unit 45. Thereby, block distortion in the whole screen is removed.

ステップS209において、適応オフセット部211および色差適応オフセット部212は、適応オフセット処理を行う。この適応オフセット処理の詳細は、図23を参照して後述される。この処理により、可逆復号部42からのquad-tree構造、および輝度オフセットの情報が用いられて、デブロック後の輝度信号にオフセット処理が施される。   In step S209, the adaptive offset unit 211 and the color difference adaptive offset unit 212 perform an adaptive offset process. Details of the adaptive offset processing will be described later with reference to FIG. By this processing, the quad-tree structure and the luminance offset information from the lossless decoding unit 42 are used, and the offset processing is performed on the deblocked luminance signal.

また、可逆復号部42からのquad-tree構造、輝度オフセット値、相関係数、および色差オフセット残差が用いられて、色差オフセット値が再構築される。そして、quad-tree構造、色差オフセット値が用いられて、デブロック後の色差信号にオフセット処理が施される。オフセット後の画素値は、適応ループフィルタ91に供給される。   In addition, the quad-tree structure, the luminance offset value, the correlation coefficient, and the chrominance offset residual from the lossless decoding unit 42 are used to reconstruct the chrominance offset value. Then, a quad-tree structure and a color difference offset value are used, and an offset process is performed on the color difference signal after deblocking. The pixel value after the offset is supplied to the adaptive loop filter 91.

ステップS210において、適応ループフィルタ91は、適応フィルタ係数を用いて、オフセット処理後の画素値に対して、適応ループフィルタ処理を行う。適応フィルタ処理後の画素値は、画面並べ替えバッファ47およびフレームメモリ49に出力される。   In step S210, the adaptive loop filter 91 performs an adaptive loop filter process on the pixel value after the offset process using the adaptive filter coefficient. The pixel value after the adaptive filter processing is output to the screen rearrangement buffer 47 and the frame memory 49.

ステップS211においてフレームメモリ49は、適応フィルタリングされた画像を記憶する。   In step S211, the frame memory 49 stores the adaptively filtered image.

ステップS212において、画面並べ替えバッファ47は、適応ループフィルタ91後の画像の並べ替えを行う。すなわち画像符号化装置101の画面並べ替えバッファ12により符号化のために並べ替えられたフレームの順序が、元の表示の順序に並べ替えられる。   In step S212, the screen rearrangement buffer 47 rearranges the images after the adaptive loop filter 91. That is, the order of frames rearranged for encoding by the screen rearrangement buffer 12 of the image encoding device 101 is rearranged to the original display order.

ステップS213において、D/A変換部48は、画面並べ替えバッファ47からの画像をD/A変換する。この画像が図示せぬディスプレイに出力され、画像が表示される。   In step S213, the D / A conversion unit 48 D / A converts the image from the screen rearrangement buffer 47. This image is output to a display (not shown), and the image is displayed.

ステップS213の処理が終了すると、復号処理が終了される。   When the process of step S213 ends, the decoding process ends.

[適応オフセット処理の流れ]
次に、図23のフローチャートを参照して、図22のステップS209において実行される適応オフセット処理の流れの例を説明する。
[Flow of adaptive offset processing]
Next, an example of the flow of adaptive offset processing executed in step S209 of FIG. 22 will be described with reference to the flowchart of FIG.

可逆復号部42からのQuad-tree構造の情報は、Quad-tree構造バッファ231に供給される。ステップS231において、Quad-tree構造バッファ231は、可逆復号部42からのQuad-tree構造の情報を受信し、蓄積する。その後、Quad-tree構造バッファ231は、所定のタイミングで、輝度オフセット部233に、Quad-tree構造の情報を供給する。   Information on the quad-tree structure from the lossless decoding unit 42 is supplied to the quad-tree structure buffer 231. In step S231, the quad-tree structure buffer 231 receives and accumulates the quad-tree structure information from the lossless decoding unit. Thereafter, the quad-tree structure buffer 231 supplies information on the quad-tree structure to the luminance offset unit 233 at a predetermined timing.

可逆復号部42からの輝度オフセットの情報は、輝度オフセットバッファ232に供給される。ステップS232において、輝度オフセットバッファ232は、可逆復号部42からの輝度信号に対するオフセット(輝度オフセット)の情報を受信し、蓄積する。そして、輝度オフセットバッファ232は、所定のタイミングで、輝度オフセットの情報を、輝度オフセット部233、および色差オフセット再構築部243に供給する。   Information on the luminance offset from the lossless decoding unit 42 is supplied to the luminance offset buffer 232. In step S232, the luminance offset buffer 232 receives and accumulates information on the offset (luminance offset) with respect to the luminance signal from the lossless decoding unit. Then, the luminance offset buffer 232 supplies luminance offset information to the luminance offset unit 233 and the color difference offset reconstruction unit 243 at a predetermined timing.

可逆復号部42からの相関係数α、βは、相関係数バッファ241に供給される。ステップS233において、相関係数バッファ241は、可逆復号部42からの相関係数α、βを受信し、蓄積する。相関係数バッファ241は、所定のタイミングで、蓄積された相関係数α、βを、色差オフセット再構築部243に供給する。   The correlation coefficients α and β from the lossless decoding unit 42 are supplied to the correlation coefficient buffer 241. In step S233, the correlation coefficient buffer 241 receives and accumulates the correlation coefficients α and β from the lossless decoding unit 42. The correlation coefficient buffer 241 supplies the accumulated correlation coefficients α and β to the color difference offset reconstruction unit 243 at a predetermined timing.

可逆復号部42からの色差オフセット残差は、色差オフセット残差バッファ242に供給される。色差オフセット残差バッファ242は、ステップS234において、可逆復号部42からの色差信号に対するオフセット残差(色差オフセット残差)を受信し、蓄積する。そして、色差オフセット残差バッファ242は、所定のタイミングで、蓄積された色差オフセット残差を、色差オフセット再構築部243に供給する。   The color difference offset residual from the lossless decoding unit 42 is supplied to the color difference offset residual buffer 242. In step S234, the color difference offset residual buffer 242 receives and accumulates an offset residual (color difference offset residual) for the color difference signal from the lossless decoding unit 42. Then, the color difference offset residual buffer 242 supplies the accumulated color difference offset residual to the color difference offset reconstruction unit 243 at a predetermined timing.

色差オフセット再構築部243には、Quad-tree構造バッファ231からのQuad-tree構造、輝度オフセットバッファ232からの輝度オフセット、相関係数バッファ241からの相関係数、および色差オフセット残差バッファ242からの色差オフセット残差が入力される。ステップS235において、色差オフセット再構築部243は、入力されるそれらの情報を用いて、色差信号に対するオフセット値(色差オフセット値)を再構築し、再構築された色差オフセットの情報を、色差オフセット部244に供給する。   The chrominance offset reconstruction unit 243 includes a quad-tree structure from the quad-tree structure buffer 231, a luminance offset from the luminance offset buffer 232, a correlation coefficient from the correlation coefficient buffer 241, and a chrominance offset residual buffer 242. The color difference offset residual is input. In step S235, the color difference offset reconstructing unit 243 reconstructs an offset value (color difference offset value) for the color difference signal using the input information, and the reconstructed color difference offset information is used as the color difference offset unit. 244.

ステップS236において、輝度オフセット部233および色差オフセット部244は、デブロック後の色差信号の画素値に対して、オフセット処理を行う。すなわち、すなわち、輝度オフセット部233は、Quad-tree構造バッファ231によりQuad-tree分割された各領域の輝度の画素値に対して、輝度オフセットバッファ232からの輝度オフセット値を加算する。輝度オフセット部233は、オフセット処理後の画素値を画素バッファ234に蓄積する。   In step S236, the luminance offset unit 233 and the color difference offset unit 244 perform an offset process on the pixel value of the color difference signal after deblocking. That is, that is, the luminance offset unit 233 adds the luminance offset value from the luminance offset buffer 232 to the luminance pixel value of each region that is quad-tree divided by the quad-tree structure buffer 231. The luminance offset unit 233 accumulates the pixel values after the offset processing in the pixel buffer 234.

また、色差オフセット部244は、Quad-tree構造バッファ231からのQuad-tree分割された各領域の色差の画素値に対して、色差オフセット再構築部243ににより再構築された色差オフセット値を加算する。色差オフセット部144は、オフセット処理後の画素値を画素バッファ234に蓄積する。   Further, the color difference offset unit 244 adds the color difference offset value reconstructed by the color difference offset reconstructing unit 243 to the color difference pixel value of each quad-tree divided region from the quad-tree structure buffer 231. To do. The color difference offset unit 144 accumulates the pixel value after the offset process in the pixel buffer 234.

その後、画素バッファ234は、輝度信号および色差信号のオフセット処理後の画素値の両方が揃うのを待ち、揃ったところで、オフセット処理後の画素値を、適応ループフィルタ91に供給し、適応オフセット処理は終了する。   Thereafter, the pixel buffer 234 waits for both the luminance signal and the pixel value after the offset processing of the color difference signal to be aligned, and when the pixel values are aligned, supplies the pixel value after the offset processing to the adaptive loop filter 91 to perform the adaptive offset processing. Ends.

以上のように、色差信号については、輝度信号に基づいて決定されたQuad-tree構造に基づいてオフセット処理が施されるので、演算量の増大を抑えながら、符号化効率を改善することができる。   As described above, since the offset processing is performed on the color difference signal based on the quad-tree structure determined based on the luminance signal, it is possible to improve the coding efficiency while suppressing an increase in the amount of calculation. .

また、色差信号については、輝度信号のオフセット値と相関係数が用いられて算出されたオフセットの残差が復号側に送られるので、符号化効率を向上させることができる。   For the color difference signal, the offset residual calculated using the offset value of the luminance signal and the correlation coefficient is sent to the decoding side, so that the coding efficiency can be improved.

以上においては、符号化方式としてH.264/AVC方式をベースに用いるようにしたが、本開示はこれに限らず、動き予測・補償ループ内に適応フィルタを含む、その他の符号化方式/復号方式を適用することができる。   In the above, the encoding method is H.264. However, the present disclosure is not limited to this, and other encoding schemes / decoding schemes including an adaptive filter in the motion prediction / compensation loop can be applied.

なお、本開示は、例えば、MPEG、H.26x等の様に、離散コサイン変換等の直交変換と動き補償によって圧縮された画像情報(ビットストリーム)を、衛星放送、ケーブルテレビジョン、インターネット、または携帯電話機などのネットワークメディアを介して受信する際に用いられる画像符号化装置および画像復号装置に適用することができる。また、本開示は、光、磁気ディスク、およびフラッシュメモリのような記憶メディア上で処理する際に用いられる画像符号化装置および画像復号装置に適用することができる。さらに、本開示は、それらの画像符号化装置および画像復号装置などに含まれる動き予測補償装置にも適用することができる。   Note that the present disclosure includes, for example, MPEG, H.264, and the like. When receiving image information (bitstream) compressed by orthogonal transformation such as discrete cosine transformation and motion compensation, such as 26x, via network media such as satellite broadcasting, cable television, the Internet, or mobile phones. The present invention can be applied to an image encoding device and an image decoding device used in the above. In addition, the present disclosure can be applied to an image encoding device and an image decoding device that are used when processing on a storage medium such as an optical disk, a magnetic disk, and a flash memory. Furthermore, the present disclosure can also be applied to motion prediction / compensation devices included in such image encoding devices and image decoding devices.

<3.第3の実施の形態>
[パーソナルコンピュータ]
上述した一連の処理は、ハードウエアにより実行することもできるし、ソフトウエアにより実行することもできる。一連の処理をソフトウエアにより実行する場合には、そのソフトウエアを構成するプログラムが、コンピュータにインストールされる。ここで、コンピュータには、専用のハードウエアに組み込まれているコンピュータや、各種のプログラムをインストールすることで、各種の機能を実行することが可能な汎用のパーソナルコンピュータなどが含まれる。
<3. Third Embodiment>
[Personal computer]
The series of processes described above can be executed by hardware or can be executed by software. When a series of processing is executed by software, a program constituting the software is installed in the computer. Here, the computer includes a computer incorporated in dedicated hardware, a general-purpose personal computer capable of executing various functions by installing various programs, and the like.

図24において、パーソナルコンピュータ500のCPU(Central Processing Unit)501は、ROM(Read Only Memory)502に記憶されているプログラム、または記憶部513からRAM(Random Access Memory)503にロードされたプログラムに従って各種の処理を実行する。RAM503にはまた、CPU501が各種の処理を実行する上において必要なデータなども適宜記憶される。   In FIG. 24, a CPU (Central Processing Unit) 501 of the personal computer 500 performs various processes according to a program stored in a ROM (Read Only Memory) 502 or a program loaded from a storage unit 513 to a RAM (Random Access Memory) 503. Execute the process. The RAM 503 also appropriately stores data necessary for the CPU 501 to execute various processes.

CPU501、ROM502、およびRAM503は、バス504を介して相互に接続されている。このバス504にはまた、入出力インタフェース510も接続されている。   The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input / output interface 510 is also connected to the bus 504.

入出力インタフェース510には、キーボード、マウスなどよりなる入力部511、CRT(Cathode Ray Tube)やLCD(Liquid Crystal Display)などよりなるディスプレイ、並びにスピーカなどよりなる出力部512、ハードディスクなどより構成される記憶部513、モデムなどより構成される通信部514が接続されている。通信部514は、インターネットを含むネットワークを介しての通信処理を行う。   The input / output interface 510 includes an input unit 511 including a keyboard and a mouse, a display including a CRT (Cathode Ray Tube) and an LCD (Liquid Crystal Display), an output unit 512 including a speaker, and a hard disk. A communication unit 514 including a storage unit 513 and a modem is connected. The communication unit 514 performs communication processing via a network including the Internet.

入出力インタフェース510にはまた、必要に応じてドライブ515が接続され、磁気ディスク、光ディスク、光磁気ディスク、或いは半導体メモリなどのリムーバブルメディア521が適宜装着され、それらから読み出されたコンピュータプログラムが、必要に応じて記憶部513にインストールされる。   A drive 515 is connected to the input / output interface 510 as necessary, and a removable medium 521 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory is appropriately mounted, and a computer program read from them is It is installed in the storage unit 513 as necessary.

上述した一連の処理をソフトウエアにより実行させる場合には、そのソフトウエアを構成するプログラムが、ネットワークや記録媒体からインストールされる。   When the above-described series of processing is executed by software, a program constituting the software is installed from a network or a recording medium.

この記録媒体は、例えば、図24に示されるように、装置本体とは別に、ユーザにプログラムを配信するために配布される、プログラムが記録されている磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disc - Read Only Memory),DVD(Digital Versatile Disc)を含む)、光磁気ディスク(MD(Mini Disc)を含む)、若しくは半導体メモリなどよりなるリムーバブルメディア521により構成されるだけでなく、装置本体に予め組み込まれた状態でユーザに配信される、プログラムが記録されているROM502や、記憶部513に含まれるハードディスクなどで構成される。   For example, as shown in FIG. 24, the recording medium is distributed to distribute the program to the user separately from the apparatus main body, and includes a magnetic disk (including a flexible disk) on which the program is recorded, an optical disk ( It only consists of removable media 521 consisting of CD-ROM (compact disc-read only memory), DVD (including digital versatile disc), magneto-optical disc (including MD (mini disc)), or semiconductor memory. Rather, it is composed of a ROM 502 on which a program is recorded and a hard disk included in the storage unit 513, which is distributed to the user in a state of being pre-installed in the apparatus main body.

なお、コンピュータが実行するプログラムは、本明細書で説明する順序に沿って時系列に処理が行われるプログラムであっても良いし、並列に、あるいは呼び出しが行われたとき等の必要なタイミングで処理が行われるプログラムであっても良い。   The program executed by the computer may be a program that is processed in time series in the order described in this specification, or in parallel or at a necessary timing such as when a call is made. It may be a program for processing.

また、本明細書において、記録媒体に記録されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。   Further, in the present specification, the step of describing the program recorded on the recording medium is not limited to the processing performed in chronological order according to the described order, but is not necessarily performed in chronological order. It also includes processes that are executed individually.

また、本明細書において、システムとは、複数のデバイス(装置)により構成される装置全体を表すものである。   Further, in this specification, the system represents the entire apparatus composed of a plurality of devices (apparatuses).

また、以上において、1つの装置(または処理部)として説明した構成を分割し、複数の装置(または処理部)として構成するようにしてもよい。逆に、以上において複数の装置(または処理部)として説明した構成をまとめて1つの装置(または処理部)として構成されるようにしてもよい。また、各装置(または各処理部)の構成に上述した以外の構成を付加するようにしてももちろんよい。さらに、システム全体としての構成や動作が実質的に同じであれば、ある装置(または処理部)の構成の一部を他の装置(または他の処理部)の構成に含めるようにしてもよい。つまり、本技術は、上述した実施の形態に限定されるものではなく、本技術の要旨を逸脱しない範囲において種々の変更が可能である。   In addition, in the above description, the configuration described as one device (or processing unit) may be divided and configured as a plurality of devices (or processing units). Conversely, the configurations described above as a plurality of devices (or processing units) may be combined into a single device (or processing unit). Of course, a configuration other than that described above may be added to the configuration of each device (or each processing unit). Furthermore, if the configuration and operation of the entire system are substantially the same, a part of the configuration of a certain device (or processing unit) may be included in the configuration of another device (or other processing unit). . That is, the present technology is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present technology.

上述した実施形態に係る画像符号化装置及び画像復号装置は、衛星放送、ケーブルTVなどの有線放送、インターネット上での配信、及びセルラー通信による端末への配信などにおける送信機若しくは受信機、光ディスク、磁気ディスク及びフラッシュメモリなどの媒体に画像を記録する記録装置、又は、これら記憶媒体から画像を再生する再生装置などの様々な電子機器に応用され得る。以下、4つの応用例について説明する。   An image encoding device and an image decoding device according to the above-described embodiments include a transmitter or a receiver in optical broadcasting, satellite broadcasting, cable broadcasting such as cable TV, distribution on the Internet, and distribution to terminals by cellular communication, etc. The present invention can be applied to various electronic devices such as a recording device that records an image on a medium such as a magnetic disk and a flash memory, or a playback device that reproduces an image from these storage media. Hereinafter, four application examples will be described.

<4.第4の実施の形態>
[第1の応用例:テレビジョン受像機]
図25は、上述した実施形態を適用したテレビジョン装置の概略的な構成の一例を示している。テレビジョン装置900は、アンテナ901、チューナ902、デマルチプレクサ903、デコーダ904、映像信号処理部905、表示部906、音声信号処理部907、スピーカ908、外部インタフェース909、制御部910、ユーザインタフェース911、及びバス912を備える。
<4. Fourth Embodiment>
[First application example: television receiver]
FIG. 25 illustrates an example of a schematic configuration of a television device to which the above-described embodiment is applied. The television apparatus 900 includes an antenna 901, a tuner 902, a demultiplexer 903, a decoder 904, a video signal processing unit 905, a display unit 906, an audio signal processing unit 907, a speaker 908, an external interface 909, a control unit 910, a user interface 911, And a bus 912.

チューナ902は、アンテナ901を介して受信される放送信号から所望のチャンネルの信号を抽出し、抽出した信号を復調する。そして、チューナ902は、復調により得られた符号化ビットストリームをデマルチプレクサ903へ出力する。即ち、チューナ902は、画像が符号化されている符号化ストリームを受信する、テレビジョン装置900における伝送手段としての役割を有する。   The tuner 902 extracts a signal of a desired channel from a broadcast signal received via the antenna 901, and demodulates the extracted signal. Then, the tuner 902 outputs the encoded bit stream obtained by the demodulation to the demultiplexer 903. In other words, the tuner 902 serves as a transmission unit in the television apparatus 900 that receives an encoded stream in which an image is encoded.

デマルチプレクサ903は、符号化ビットストリームから視聴対象の番組の映像ストリーム及び音声ストリームを分離し、分離した各ストリームをデコーダ904へ出力する。また、デマルチプレクサ903は、符号化ビットストリームからEPG(Electronic Program Guide)などの補助的なデータを抽出し、抽出したデータを制御部910に供給する。なお、デマルチプレクサ903は、符号化ビットストリームがスクランブルされている場合には、デスクランブルを行ってもよい。   The demultiplexer 903 separates the video stream and audio stream of the viewing target program from the encoded bit stream, and outputs each separated stream to the decoder 904. Also, the demultiplexer 903 extracts auxiliary data such as EPG (Electronic Program Guide) from the encoded bit stream, and supplies the extracted data to the control unit 910. Note that the demultiplexer 903 may perform descrambling when the encoded bit stream is scrambled.

デコーダ904は、デマルチプレクサ903から入力される映像ストリーム及び音声ストリームを復号する。そして、デコーダ904は、復号処理により生成される映像データを映像信号処理部905へ出力する。また、デコーダ904は、復号処理により生成される音声データを音声信号処理部907へ出力する。   The decoder 904 decodes the video stream and audio stream input from the demultiplexer 903. Then, the decoder 904 outputs the video data generated by the decoding process to the video signal processing unit 905. In addition, the decoder 904 outputs audio data generated by the decoding process to the audio signal processing unit 907.

映像信号処理部905は、デコーダ904から入力される映像データを再生し、表示部906に映像を表示させる。また、映像信号処理部905は、ネットワークを介して供給されるアプリケーション画面を表示部906に表示させてもよい。また、映像信号処理部905は、映像データについて、設定に応じて、例えばノイズ除去などの追加的な処理を行ってもよい。さらに、映像信号処理部905は、例えばメニュー、ボタン又はカーソルなどのGUI(Graphical User Interface)の画像を生成し、生成した画像を出力画像に重畳してもよい。   The video signal processing unit 905 reproduces the video data input from the decoder 904 and causes the display unit 906 to display the video. In addition, the video signal processing unit 905 may cause the display unit 906 to display an application screen supplied via a network. Further, the video signal processing unit 905 may perform additional processing such as noise removal on the video data according to the setting. Further, the video signal processing unit 905 may generate a GUI (Graphical User Interface) image such as a menu, a button, or a cursor, and superimpose the generated image on the output image.

表示部906は、映像信号処理部905から供給される駆動信号により駆動され、表示デバイス(例えば、液晶ディスプレイ、プラズマディスプレイ又はOELD(Organic ElectroLuminescence Display)(有機ELディスプレイ)など)の映像面上に映像又は画像を表示する。   The display unit 906 is driven by a drive signal supplied from the video signal processing unit 905, and displays a video on a video screen of a display device (for example, a liquid crystal display, a plasma display, or an OELD (Organic ElectroLuminescence Display) (organic EL display)). Or an image is displayed.

音声信号処理部907は、デコーダ904から入力される音声データについてD/A変換及び増幅などの再生処理を行い、スピーカ908から音声を出力させる。また、音声信号処理部907は、音声データについてノイズ除去などの追加的な処理を行ってもよい。   The audio signal processing unit 907 performs reproduction processing such as D / A conversion and amplification on the audio data input from the decoder 904 and outputs audio from the speaker 908. The audio signal processing unit 907 may perform additional processing such as noise removal on the audio data.

外部インタフェース909は、テレビジョン装置900と外部機器又はネットワークとを接続するためのインタフェースである。例えば、外部インタフェース909を介して受信される映像ストリーム又は音声ストリームが、デコーダ904により復号されてもよい。即ち、外部インタフェース909もまた、画像が符号化されている符号化ストリームを受信する、テレビジョン装置900における伝送手段としての役割を有する。   The external interface 909 is an interface for connecting the television device 900 to an external device or a network. For example, a video stream or an audio stream received via the external interface 909 may be decoded by the decoder 904. That is, the external interface 909 also has a role as a transmission unit in the television apparatus 900 that receives an encoded stream in which an image is encoded.

制御部910は、CPUなどのプロセッサ、並びにRAM及びROMなどのメモリを有する。メモリは、CPUにより実行されるプログラム、プログラムデータ、EPGデータ、及びネットワークを介して取得されるデータなどを記憶する。メモリにより記憶されるプログラムは、例えば、テレビジョン装置900の起動時にCPUにより読み込まれ、実行される。CPUは、プログラムを実行することにより、例えばユーザインタフェース911から入力される操作信号に応じて、テレビジョン装置900の動作を制御する。   The control unit 910 includes a processor such as a CPU and memories such as a RAM and a ROM. The memory stores a program executed by the CPU, program data, EPG data, data acquired via a network, and the like. For example, the program stored in the memory is read and executed by the CPU when the television apparatus 900 is activated. The CPU executes the program to control the operation of the television device 900 according to an operation signal input from the user interface 911, for example.

ユーザインタフェース911は、制御部910と接続される。ユーザインタフェース911は、例えば、ユーザがテレビジョン装置900を操作するためのボタン及びスイッチ、並びに遠隔制御信号の受信部などを有する。ユーザインタフェース911は、これら構成要素を介してユーザによる操作を検出して操作信号を生成し、生成した操作信号を制御部910へ出力する。   The user interface 911 is connected to the control unit 910. The user interface 911 includes, for example, buttons and switches for the user to operate the television device 900, a remote control signal receiving unit, and the like. The user interface 911 detects an operation by the user via these components, generates an operation signal, and outputs the generated operation signal to the control unit 910.

バス912は、チューナ902、デマルチプレクサ903、デコーダ904、映像信号処理部905、音声信号処理部907、外部インタフェース909及び制御部910を相互に接続する。   The bus 912 connects the tuner 902, the demultiplexer 903, the decoder 904, the video signal processing unit 905, the audio signal processing unit 907, the external interface 909, and the control unit 910 to each other.

このように構成されたテレビジョン装置900において、デコーダ904は、上述した実施形態に係る画像復号装置の機能を有する。それにより、テレビジョン装置900での画像の復号に際して、色差信号に対する符号化効率を向上することができる。   In the television apparatus 900 configured as described above, the decoder 904 has the function of the image decoding apparatus according to the above-described embodiment. Thereby, when the image is decoded by the television apparatus 900, the encoding efficiency for the color difference signal can be improved.

<5.第5の実施の形態>
[第2の応用例:携帯電話機]
図26は、上述した実施形態を適用した携帯電話機の概略的な構成の一例を示している。携帯電話機920は、アンテナ921、通信部922、音声コーデック923、スピーカ924、マイクロホン925、カメラ部926、画像処理部927、多重分離部928、記録再生部929、表示部930、制御部931、操作部932、及びバス933を備える。
<5. Fifth embodiment>
[Second application example: mobile phone]
FIG. 26 shows an example of a schematic configuration of a mobile phone to which the above-described embodiment is applied. A cellular phone 920 includes an antenna 921, a communication unit 922, an audio codec 923, a speaker 924, a microphone 925, a camera unit 926, an image processing unit 927, a demultiplexing unit 928, a recording / reproducing unit 929, a display unit 930, a control unit 931, an operation A portion 932 and a bus 933.

アンテナ921は、通信部922に接続される。スピーカ924及びマイクロホン925は、音声コーデック923に接続される。操作部932は、制御部931に接続される。バス933は、通信部922、音声コーデック923、カメラ部926、画像処理部927、多重分離部928、記録再生部929、表示部930、及び制御部931を相互に接続する。   The antenna 921 is connected to the communication unit 922. The speaker 924 and the microphone 925 are connected to the audio codec 923. The operation unit 932 is connected to the control unit 931. The bus 933 connects the communication unit 922, the audio codec 923, the camera unit 926, the image processing unit 927, the demultiplexing unit 928, the recording / reproducing unit 929, the display unit 930, and the control unit 931 to each other.

携帯電話機920は、音声通話モード、データ通信モード、撮影モード及びテレビ電話モードを含む様々な動作モードで、音声信号の送受信、電子メール又は画像データの送受信、画像の撮像、及びデータの記録などの動作を行う。   The mobile phone 920 has various operation modes including a voice call mode, a data communication mode, a shooting mode, and a videophone mode, and is used for sending and receiving voice signals, sending and receiving e-mail or image data, taking images, and recording data. Perform the action.

音声通話モードにおいて、マイクロホン925により生成されるアナログ音声信号は、音声コーデック923に供給される。音声コーデック923は、アナログ音声信号を音声データへ変換し、変換された音声データをA/D変換し圧縮する。そして、音声コーデック923は、圧縮後の音声データを通信部922へ出力する。通信部922は、音声データを符号化及び変調し、送信信号を生成する。そして、通信部922は、生成した送信信号を、アンテナ921を介して基地局(図示せず)へ送信する。また、通信部922は、アンテナ921を介して受信される無線信号を増幅し及び周波数変換し、受信信号を取得する。そして、通信部922は、受信信号を復調及び復号して音声データを生成し、生成した音声データを音声コーデック923へ出力する。音声コーデック923は、音声データを伸張し及びD/A変換し、アナログ音声信号を生成する。そして、音声コーデック923は、生成した音声信号をスピーカ924に供給して音声を出力させる。   In the voice call mode, an analog voice signal generated by the microphone 925 is supplied to the voice codec 923. The audio codec 923 converts an analog audio signal into audio data, A / D converts the compressed audio data, and compresses it. Then, the audio codec 923 outputs the compressed audio data to the communication unit 922. The communication unit 922 encodes and modulates the audio data and generates a transmission signal. Then, the communication unit 922 transmits the generated transmission signal to a base station (not shown) via the antenna 921. In addition, the communication unit 922 amplifies a radio signal received via the antenna 921 and performs frequency conversion to acquire a received signal. Then, the communication unit 922 demodulates and decodes the received signal to generate audio data, and outputs the generated audio data to the audio codec 923. The audio codec 923 decompresses the audio data and performs D / A conversion to generate an analog audio signal. Then, the audio codec 923 supplies the generated audio signal to the speaker 924 to output audio.

また、データ通信モードにおいて、例えば、制御部931は、操作部932を介するユーザによる操作に応じて、電子メールを構成する文字データを生成する。また、制御部931は、文字を表示部930に表示させる。また、制御部931は、操作部932を介するユーザからの送信指示に応じて電子メールデータを生成し、生成した電子メールデータを通信部922へ出力する。通信部922は、電子メールデータを符号化及び変調し、送信信号を生成する。そして、通信部922は、生成した送信信号を、アンテナ921を介して基地局(図示せず)へ送信する。また、通信部922は、アンテナ921を介して受信される無線信号を増幅し及び周波数変換し、受信信号を取得する。そして、通信部922は、受信信号を復調及び復号して電子メールデータを復元し、復元した電子メールデータを制御部931へ出力する。制御部931は、表示部930に電子メールの内容を表示させると共に、電子メールデータを記録再生部929の記憶媒体に記憶させる。   Further, in the data communication mode, for example, the control unit 931 generates character data that constitutes an e-mail in response to an operation by the user via the operation unit 932. In addition, the control unit 931 causes the display unit 930 to display characters. In addition, the control unit 931 generates e-mail data in response to a transmission instruction from the user via the operation unit 932, and outputs the generated e-mail data to the communication unit 922. The communication unit 922 encodes and modulates email data and generates a transmission signal. Then, the communication unit 922 transmits the generated transmission signal to a base station (not shown) via the antenna 921. In addition, the communication unit 922 amplifies a radio signal received via the antenna 921 and performs frequency conversion to acquire a received signal. Then, the communication unit 922 demodulates and decodes the received signal to restore the email data, and outputs the restored email data to the control unit 931. The control unit 931 displays the content of the electronic mail on the display unit 930 and stores the electronic mail data in the storage medium of the recording / reproducing unit 929.

記録再生部929は、読み書き可能な任意の記憶媒体を有する。例えば、記憶媒体は、RAM又はフラッシュメモリなどの内蔵型の記憶媒体であってもよく、ハードディスク、磁気ディスク、光磁気ディスク、光ディスク、USB(Unallocated Space Bitmap)メモリ、又はメモリカードなどの外部装着型の記憶媒体であってもよい。   The recording / reproducing unit 929 has an arbitrary readable / writable storage medium. For example, the storage medium may be a built-in storage medium such as a RAM or a flash memory, or an externally mounted type such as a hard disk, a magnetic disk, a magneto-optical disk, an optical disk, a USB (Unallocated Space Bitmap) memory, or a memory card. It may be a storage medium.

また、撮影モードにおいて、例えば、カメラ部926は、被写体を撮像して画像データを生成し、生成した画像データを画像処理部927へ出力する。画像処理部927は、カメラ部926から入力される画像データを符号化し、符号化ストリームを記憶再生部929の記憶媒体に記憶させる。   In the shooting mode, for example, the camera unit 926 captures an image of a subject, generates image data, and outputs the generated image data to the image processing unit 927. The image processing unit 927 encodes the image data input from the camera unit 926 and stores the encoded stream in the storage medium of the storage / playback unit 929.

また、テレビ電話モードにおいて、例えば、多重分離部928は、画像処理部927により符号化された映像ストリームと、音声コーデック923から入力される音声ストリームとを多重化し、多重化したストリームを通信部922へ出力する。通信部922は、ストリームを符号化及び変調し、送信信号を生成する。そして、通信部922は、生成した送信信号を、アンテナ921を介して基地局(図示せず)へ送信する。また、通信部922は、アンテナ921を介して受信される無線信号を増幅し及び周波数変換し、受信信号を取得する。これら送信信号及び受信信号には、符号化ビットストリームが含まれ得る。そして、通信部922は、受信信号を復調及び復号してストリームを復元し、復元したストリームを多重分離部928へ出力する。多重分離部928は、入力されるストリームから映像ストリーム及び音声ストリームを分離し、映像ストリームを画像処理部927、音声ストリームを音声コーデック923へ出力する。画像処理部927は、映像ストリームを復号し、映像データを生成する。映像データは、表示部930に供給され、表示部930により一連の画像が表示される。音声コーデック923は、音声ストリームを伸張し及びD/A変換し、アナログ音声信号を生成する。そして、音声コーデック923は、生成した音声信号をスピーカ924に供給して音声を出力させる。   Further, in the videophone mode, for example, the demultiplexing unit 928 multiplexes the video stream encoded by the image processing unit 927 and the audio stream input from the audio codec 923, and the multiplexed stream is the communication unit 922. Output to. The communication unit 922 encodes and modulates the stream and generates a transmission signal. Then, the communication unit 922 transmits the generated transmission signal to a base station (not shown) via the antenna 921. In addition, the communication unit 922 amplifies a radio signal received via the antenna 921 and performs frequency conversion to acquire a received signal. These transmission signal and reception signal may include an encoded bit stream. Then, the communication unit 922 demodulates and decodes the received signal to restore the stream, and outputs the restored stream to the demultiplexing unit 928. The demultiplexing unit 928 separates the video stream and the audio stream from the input stream, and outputs the video stream to the image processing unit 927 and the audio stream to the audio codec 923. The image processing unit 927 decodes the video stream and generates video data. The video data is supplied to the display unit 930, and a series of images is displayed on the display unit 930. The audio codec 923 decompresses the audio stream and performs D / A conversion to generate an analog audio signal. Then, the audio codec 923 supplies the generated audio signal to the speaker 924 to output audio.

このように構成された携帯電話機920において、画像処理部927は、上述した実施形態に係る画像符号化装置及び画像復号装置の機能を有する。それにより、携帯電話機920での画像の符号化及び復号に際して、色差信号に対する符号化効率を向上することができる。   In the mobile phone 920 configured as described above, the image processing unit 927 has the functions of the image encoding device and the image decoding device according to the above-described embodiment. Thereby, when encoding and decoding an image with the mobile phone 920, it is possible to improve the encoding efficiency for the color difference signal.

<6.第6の実施の形態>
[第3の応用例:記録再生装置]
図27は、上述した実施形態を適用した記録再生装置の概略的な構成の一例を示している。記録再生装置940は、例えば、受信した放送番組の音声データ及び映像データを符号化して記録媒体に記録する。また、記録再生装置940は、例えば、他の装置から取得される音声データ及び映像データを符号化して記録媒体に記録してもよい。また、記録再生装置940は、例えば、ユーザの指示に応じて、記録媒体に記録されているデータをモニタ及びスピーカ上で再生する。このとき、記録再生装置940は、音声データ及び映像データを復号する。
<6. Sixth Embodiment>
[Third application example: recording / reproducing apparatus]
FIG. 27 shows an example of a schematic configuration of a recording / reproducing apparatus to which the above-described embodiment is applied. For example, the recording / reproducing device 940 encodes audio data and video data of a received broadcast program and records the encoded data on a recording medium. In addition, the recording / reproducing device 940 may encode audio data and video data acquired from another device and record them on a recording medium, for example. In addition, the recording / reproducing device 940 reproduces data recorded on the recording medium on a monitor and a speaker, for example, in accordance with a user instruction. At this time, the recording / reproducing device 940 decodes the audio data and the video data.

記録再生装置940は、チューナ941、外部インタフェース942、エンコーダ943、HDD(Hard Disk Drive)944、ディスクドライブ945、セレクタ946、デコーダ947、OSD(On-Screen Display)948、制御部949、及びユーザインタフェース950を備える。   The recording / reproducing apparatus 940 includes a tuner 941, an external interface 942, an encoder 943, an HDD (Hard Disk Drive) 944, a disk drive 945, a selector 946, a decoder 947, an OSD (On-Screen Display) 948, a control unit 949, and a user interface. 950.

チューナ941は、アンテナ(図示せず)を介して受信される放送信号から所望のチャンネルの信号を抽出し、抽出した信号を復調する。そして、チューナ941は、復調により得られた符号化ビットストリームをセレクタ946へ出力する。即ち、チューナ941は、記録再生装置940における伝送手段としての役割を有する。   The tuner 941 extracts a signal of a desired channel from a broadcast signal received via an antenna (not shown), and demodulates the extracted signal. Then, the tuner 941 outputs the encoded bit stream obtained by the demodulation to the selector 946. That is, the tuner 941 has a role as a transmission unit in the recording / reproducing apparatus 940.

外部インタフェース942は、記録再生装置940と外部機器又はネットワークとを接続するためのインタフェースである。外部インタフェース942は、例えば、IEEE1394インタフェース、ネットワークインタフェース、USBインタフェース、又はフラッシュメモリインタフェースなどであってよい。例えば、外部インタフェース942を介して受信される映像データ及び音声データは、エンコーダ943へ入力される。即ち、外部インタフェース942は、記録再生装置940における伝送手段としての役割を有する。   The external interface 942 is an interface for connecting the recording / reproducing apparatus 940 to an external device or a network. The external interface 942 may be, for example, an IEEE1394 interface, a network interface, a USB interface, or a flash memory interface. For example, video data and audio data received via the external interface 942 are input to the encoder 943. That is, the external interface 942 serves as a transmission unit in the recording / reproducing device 940.

エンコーダ943は、外部インタフェース942から入力される映像データ及び音声データが符号化されていない場合に、映像データ及び音声データを符号化する。そして、エンコーダ943は、符号化ビットストリームをセレクタ946へ出力する。   The encoder 943 encodes video data and audio data when the video data and audio data input from the external interface 942 are not encoded. Then, the encoder 943 outputs the encoded bit stream to the selector 946.

HDD944は、映像及び音声などのコンテンツデータが圧縮された符号化ビットストリーム、各種プログラムおよびその他のデータを内部のハードディスクに記録する。また、HDD944は、映像及び音声の再生時に、これらデータをハードディスクから読み出す。   The HDD 944 records an encoded bit stream in which content data such as video and audio are compressed, various programs, and other data on an internal hard disk. Further, the HDD 944 reads out these data from the hard disk when reproducing video and audio.

ディスクドライブ945は、装着されている記録媒体へのデータの記録及び読み出しを行う。ディスクドライブ945に装着される記録媒体は、例えばDVDディスク(DVD-Video、DVD-RAM、DVD-R、DVD-RW、DVD+R、DVD+RW等)又はBlu-ray(登録商標)ディスクなどであってよい。   The disk drive 945 performs recording and reading of data with respect to the mounted recording medium. The recording medium mounted on the disk drive 945 is, for example, a DVD disk (DVD-Video, DVD-RAM, DVD-R, DVD-RW, DVD + R, DVD + RW, etc.) or a Blu-ray (registered trademark) disk. It may be.

セレクタ946は、映像及び音声の記録時には、チューナ941又はエンコーダ943から入力される符号化ビットストリームを選択し、選択した符号化ビットストリームをHDD944又はディスクドライブ945へ出力する。また、セレクタ946は、映像及び音声の再生時には、HDD944又はディスクドライブ945から入力される符号化ビットストリームをデコーダ947へ出力する。   The selector 946 selects an encoded bit stream input from the tuner 941 or the encoder 943 when recording video and audio, and outputs the selected encoded bit stream to the HDD 944 or the disk drive 945. In addition, the selector 946 outputs the encoded bit stream input from the HDD 944 or the disk drive 945 to the decoder 947 during video and audio reproduction.

デコーダ947は、符号化ビットストリームを復号し、映像データ及び音声データを生成する。そして、デコーダ947は、生成した映像データをOSD948へ出力する。また、デコーダ904は、生成した音声データを外部のスピーカへ出力する。   The decoder 947 decodes the encoded bit stream and generates video data and audio data. Then, the decoder 947 outputs the generated video data to the OSD 948. The decoder 904 outputs the generated audio data to an external speaker.

OSD948は、デコーダ947から入力される映像データを再生し、映像を表示する。また、OSD948は、表示する映像に、例えばメニュー、ボタン又はカーソルなどのGUIの画像を重畳してもよい。   The OSD 948 reproduces the video data input from the decoder 947 and displays the video. Further, the OSD 948 may superimpose a GUI image such as a menu, a button, or a cursor on the video to be displayed.

制御部949は、CPUなどのプロセッサ、並びにRAM及びROMなどのメモリを有する。メモリは、CPUにより実行されるプログラム、及びプログラムデータなどを記憶する。メモリにより記憶されるプログラムは、例えば、記録再生装置940の起動時にCPUにより読み込まれ、実行される。CPUは、プログラムを実行することにより、例えばユーザインタフェース950から入力される操作信号に応じて、記録再生装置940の動作を制御する。   The control unit 949 includes a processor such as a CPU, and memories such as a RAM and a ROM. The memory stores a program executed by the CPU, program data, and the like. The program stored in the memory is read and executed by the CPU when the recording / reproducing apparatus 940 is activated, for example. The CPU controls the operation of the recording / reproducing apparatus 940 in accordance with an operation signal input from the user interface 950, for example, by executing the program.

ユーザインタフェース950は、制御部949と接続される。ユーザインタフェース950は、例えば、ユーザが記録再生装置940を操作するためのボタン及びスイッチ、並びに遠隔制御信号の受信部などを有する。ユーザインタフェース950は、これら構成要素を介してユーザによる操作を検出して操作信号を生成し、生成した操作信号を制御部949へ出力する。   The user interface 950 is connected to the control unit 949. The user interface 950 includes, for example, buttons and switches for the user to operate the recording / reproducing device 940, a remote control signal receiving unit, and the like. The user interface 950 detects an operation by the user via these components, generates an operation signal, and outputs the generated operation signal to the control unit 949.

このように構成された記録再生装置940において、エンコーダ943は、上述した実施形態に係る画像符号化装置の機能を有する。また、デコーダ947は、上述した実施形態に係る画像復号装置の機能を有する。それにより、記録再生装置940での画像の符号化及び復号に際して、色差信号に対する符号化効率を向上することができる。   In the recording / reproducing apparatus 940 configured as described above, the encoder 943 has the function of the image encoding apparatus according to the above-described embodiment. The decoder 947 has the function of the image decoding apparatus according to the above-described embodiment. Accordingly, it is possible to improve the encoding efficiency for the color difference signal when the image is encoded and decoded by the recording / reproducing apparatus 940.

<7.第7の実施の形態>
[第4の応用例:撮像装置]
図28は、上述した実施形態を適用した撮像装置の概略的な構成の一例を示している。撮像装置960は、被写体を撮像して画像を生成し、画像データを符号化して記録媒体に記録する。
<7. Seventh Embodiment>
[Fourth Application Example: Imaging Device]
FIG. 28 illustrates an example of a schematic configuration of an imaging apparatus to which the above-described embodiment is applied. The imaging device 960 images a subject to generate an image, encodes the image data, and records it on a recording medium.

撮像装置960は、光学ブロック961、撮像部962、信号処理部963、画像処理部964、表示部965、外部インタフェース966、メモリ967、メディアドライブ968、OSD969、制御部970、ユーザインタフェース971、及びバス972を備える。   The imaging device 960 includes an optical block 961, an imaging unit 962, a signal processing unit 963, an image processing unit 964, a display unit 965, an external interface 966, a memory 967, a media drive 968, an OSD 969, a control unit 970, a user interface 971, and a bus. 972.

光学ブロック961は、撮像部962に接続される。撮像部962は、信号処理部963に接続される。表示部965は、画像処理部964に接続される。ユーザインタフェース971は、制御部970に接続される。バス972は、画像処理部964、外部インタフェース966、メモリ967、メディアドライブ968、OSD969、及び制御部970を相互に接続する。   The optical block 961 is connected to the imaging unit 962. The imaging unit 962 is connected to the signal processing unit 963. The display unit 965 is connected to the image processing unit 964. The user interface 971 is connected to the control unit 970. The bus 972 connects the image processing unit 964, the external interface 966, the memory 967, the media drive 968, the OSD 969, and the control unit 970 to each other.

光学ブロック961は、フォーカスレンズ及び絞り機構などを有する。光学ブロック961は、被写体の光学像を撮像部962の撮像面に結像させる。撮像部962は、CCD(Charge Coupled Device)又はCMOS(Complementary Metal Oxide Semiconductor)などのイメージセンサを有し、撮像面に結像した光学像を光電変換によって電気信号としての画像信号に変換する。そして、撮像部962は、画像信号を信号処理部963へ出力する。   The optical block 961 includes a focus lens and a diaphragm mechanism. The optical block 961 forms an optical image of the subject on the imaging surface of the imaging unit 962. The imaging unit 962 includes an image sensor such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor), and converts an optical image formed on the imaging surface into an image signal as an electrical signal by photoelectric conversion. Then, the imaging unit 962 outputs the image signal to the signal processing unit 963.

信号処理部963は、撮像部962から入力される画像信号に対してニー補正、ガンマ補正、色補正などの種々のカメラ信号処理を行う。信号処理部963は、カメラ信号処理後の画像データを画像処理部964へ出力する。   The signal processing unit 963 performs various camera signal processes such as knee correction, gamma correction, and color correction on the image signal input from the imaging unit 962. The signal processing unit 963 outputs the image data after the camera signal processing to the image processing unit 964.

画像処理部964は、信号処理部963から入力される画像データを符号化し、符号化データを生成する。そして、画像処理部964は、生成した符号化データを外部インタフェース966又はメディアドライブ968へ出力する。また、画像処理部964は、外部インタフェース966又はメディアドライブ968から入力される符号化データを復号し、画像データを生成する。そして、画像処理部964は、生成した画像データを表示部965へ出力する。また、画像処理部964は、信号処理部963から入力される画像データを表示部965へ出力して画像を表示させてもよい。また、画像処理部964は、OSD969から取得される表示用データを、表示部965へ出力する画像に重畳してもよい。   The image processing unit 964 encodes the image data input from the signal processing unit 963, and generates encoded data. Then, the image processing unit 964 outputs the generated encoded data to the external interface 966 or the media drive 968. The image processing unit 964 also decodes encoded data input from the external interface 966 or the media drive 968 to generate image data. Then, the image processing unit 964 outputs the generated image data to the display unit 965. In addition, the image processing unit 964 may display the image by outputting the image data input from the signal processing unit 963 to the display unit 965. Further, the image processing unit 964 may superimpose display data acquired from the OSD 969 on an image output to the display unit 965.

OSD969は、例えばメニュー、ボタン又はカーソルなどのGUIの画像を生成して、生成した画像を画像処理部964へ出力する。   The OSD 969 generates a GUI image such as a menu, a button, or a cursor, for example, and outputs the generated image to the image processing unit 964.

外部インタフェース966は、例えばUSB入出力端子として構成される。外部インタフェース966は、例えば、画像の印刷時に、撮像装置960とプリンタとを接続する。また、外部インタフェース966には、必要に応じてドライブが接続される。ドライブには、例えば、磁気ディスク又は光ディスクなどのリムーバブルメディアが装着され、リムーバブルメディアから読み出されるプログラムが、撮像装置960にインストールされ得る。さらに、外部インタフェース966は、LAN又はインターネットなどのネットワークに接続されるネットワークインタフェースとして構成されてもよい。即ち、外部インタフェース966は、撮像装置960における伝送手段としての役割を有する。   The external interface 966 is configured as a USB input / output terminal, for example. The external interface 966 connects the imaging device 960 and a printer, for example, when printing an image. Further, a drive is connected to the external interface 966 as necessary. For example, a removable medium such as a magnetic disk or an optical disk is attached to the drive, and a program read from the removable medium can be installed in the imaging device 960. Further, the external interface 966 may be configured as a network interface connected to a network such as a LAN or the Internet. That is, the external interface 966 has a role as a transmission unit in the imaging device 960.

メディアドライブ968に装着される記録媒体は、例えば、磁気ディスク、光磁気ディスク、光ディスク、又は半導体メモリなどの、読み書き可能な任意のリムーバブルメディアであってよい。また、メディアドライブ968に記録媒体が固定的に装着され、例えば、内蔵型ハードディスクドライブ又はSSD(Solid State Drive)のような非可搬性の記憶部が構成されてもよい。   The recording medium mounted on the media drive 968 may be any readable / writable removable medium such as a magnetic disk, a magneto-optical disk, an optical disk, or a semiconductor memory. Further, a recording medium may be fixedly attached to the media drive 968, and a non-portable storage unit such as a built-in hard disk drive or an SSD (Solid State Drive) may be configured.

制御部970は、CPUなどのプロセッサ、並びにRAM及びROMなどのメモリを有する。メモリは、CPUにより実行されるプログラム、及びプログラムデータなどを記憶する。メモリにより記憶されるプログラムは、例えば、撮像装置960の起動時にCPUにより読み込まれ、実行される。CPUは、プログラムを実行することにより、例えばユーザインタフェース971から入力される操作信号に応じて、撮像装置960の動作を制御する。   The control unit 970 includes a processor such as a CPU and memories such as a RAM and a ROM. The memory stores a program executed by the CPU, program data, and the like. The program stored in the memory is read and executed by the CPU when the imaging device 960 is activated, for example. For example, the CPU controls the operation of the imaging device 960 according to an operation signal input from the user interface 971 by executing the program.

ユーザインタフェース971は、制御部970と接続される。ユーザインタフェース971は、例えば、ユーザが撮像装置960を操作するためのボタン及びスイッチなどを有する。ユーザインタフェース971は、これら構成要素を介してユーザによる操作を検出して操作信号を生成し、生成した操作信号を制御部970へ出力する。   The user interface 971 is connected to the control unit 970. The user interface 971 includes, for example, buttons and switches for the user to operate the imaging device 960. The user interface 971 detects an operation by the user via these components, generates an operation signal, and outputs the generated operation signal to the control unit 970.

このように構成された撮像装置960において、画像処理部964は、上述した実施形態に係る画像符号化装置及び画像復号装置の機能を有する。それにより、撮像装置960での画像の符号化及び復号に際して、色差信号に対する符号化効率を向上することができる。   In the imaging device 960 configured as described above, the image processing unit 964 has the functions of the image encoding device and the image decoding device according to the above-described embodiment. Accordingly, it is possible to improve the encoding efficiency for the color difference signal when the image is encoded and decoded by the imaging device 960.

なお、本明細書では、差分量子化パラメータ等の各種情報が、符号化ストリームに多重化されて、符号化側から復号側へ伝送される例について説明した。しかしながら、これら情報を伝送する手法はかかる例に限定されない。例えば、これら情報は、符号化ビットストリームに多重化されることなく、符号化ビットストリームと関連付けられた別個のデータとして伝送され又は記録されてもよい。ここで、「関連付ける」という用語は、ビットストリームに含まれる画像(スライス若しくはブロックなど、画像の一部であってもよい)と当該画像に対応する情報とを復号時にリンクさせ得るようにすることを意味する。即ち、情報は、画像(又はビットストリーム)とは別の伝送路上で伝送されてもよい。また、情報は、画像(又はビットストリーム)とは別の記録媒体(又は同一の記録媒体の別の記録エリア)に記録されてもよい。さらに、情報と画像(又はビットストリーム)とは、例えば、複数フレーム、1フレーム、又はフレーム内の一部分などの任意の単位で互いに関連付けられてよい。   In the present specification, an example has been described in which various types of information such as differential quantization parameters are multiplexed in the encoded stream and transmitted from the encoding side to the decoding side. However, the method for transmitting such information is not limited to such an example. For example, these pieces of information may be transmitted or recorded as separate data associated with the encoded bitstream without being multiplexed into the encoded bitstream. Here, the term “associate” means that an image (which may be a part of an image such as a slice or a block) included in the bitstream and information corresponding to the image can be linked at the time of decoding. Means. That is, information may be transmitted on a transmission path different from that of the image (or bit stream). Information may be recorded on a recording medium (or another recording area of the same recording medium) different from the image (or bit stream). Furthermore, the information and the image (or bit stream) may be associated with each other in an arbitrary unit such as a plurality of frames, one frame, or a part of the frame.

以上、添付図面を参照しながら本開示の好適な実施形態について詳細に説明したが、本開示はかかる例に限定されない。本開示の属する技術の分野における通常の知識を有する者であれば、特許請求の範囲に記載された技術的思想の範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、これらについても、当然に本開示の技術的範囲に属するものと了解される。   The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to such examples. It is obvious that a person having ordinary knowledge in the technical field to which the present disclosure belongs can come up with various changes or modifications within the scope of the technical idea described in the claims. Of course, it is understood that these also belong to the technical scope of the present disclosure.

16 可逆符号化部, 21 デブロックフィルタ, 42 可逆復号部, 46 デブロックフィルタ, 71 適応ループフィルタ, 91 適応ループフィルタ, 101 画像符号化装置, 111 適応オフセット部, 112 色差適応オフセット部, 131 Quad-tree構造決定部, 132 輝度オフセット算出部, 133 輝度オフセット部, 134 画素バッファ, 141 色差オフセット算出部, 142 相関係数算出部, 143 色差オフセット予測値算出部, 144 色差オフセット部, 201 画像復号装置, 211 適応オフセット部, 212 色差適応オフセット部, 231 Quad-tree構造バッファ, 232 輝度オフセットバッファ, 233 輝度オフセット部, 234 画素バッファ, 241 相関係数バッファ, 242 色差オフセット残差バッファ, 243 色差オフセット再構築部, 244 色差オフセット部     16 lossless encoding unit, 21 deblocking filter, 42 lossless decoding unit, 46 deblocking filter, 71 adaptive loop filter, 91 adaptive loop filter, 101 image encoding device, 111 adaptive offset unit, 112 color difference adaptive offset unit, 131 Quad -tree structure determination unit, 132 luminance offset calculation unit, 133 luminance offset unit, 134 pixel buffer, 141 color difference offset calculation unit, 142 correlation coefficient calculation unit, 143 color difference offset predicted value calculation unit, 144 color difference offset unit, 201 image decoding Device, 211 adaptive offset unit, 212 color difference adaptive offset unit, 231 Quad-tree structure buffer, 232 luminance offset buffer, 233 luminance offset unit, 234 pixel buffer, 241 correlation coefficient buffer , 242 color difference offset residual buffer, 243 color difference offset restructuring unit, 244 color difference offset section

Claims (17)

画像の輝度信号に対する適応オフセット処理により用いられる輝度オフセット値に基づいて設定された、復号装置の前記画像の色差信号に対する適応オフセット処理に用いられるオフセット値に関する情報を符号化し、LCU(Largest Coding Unit)ヘッダに付加し、前記オフセット値に関する情報を含むビットストリームを生成する符号化部を
備える画像処理装置。
Encoding information related to the offset value used for adaptive offset processing for the color difference signal of the image of the decoding device, set based on the luminance offset value used by adaptive offset processing for the luminance signal of the image, and LCU (Largest Coding Unit) An image processing apparatus comprising: an encoding unit that generates a bit stream that is added to a header and includes information on the offset value.
前記画像の輝度信号に対する適応オフセット処理である輝度適応オフセット処理を行う輝度適応オフセット処理部と、
前記画像の色差信号に対する適応オフセット処理である色差適応オフセット処理を行う色差適応オフセット処理部と
をさらに備える請求項1に記載の画像処理装置。
A luminance adaptive offset processing unit that performs luminance adaptive offset processing that is adaptive offset processing for the luminance signal of the image;
The image processing apparatus according to claim 1, further comprising: a color difference adaptive offset processing unit that performs a color difference adaptive offset process that is an adaptive offset process for the color difference signal of the image.
前記輝度適応オフセット処理部により用いられる輝度オフセット値に基づいて、前記オフセット値に関する情報を設定する設定部
をさらに備える請求項2に記載の画像処理装置。
The image processing apparatus according to claim 2, further comprising: a setting unit that sets information regarding the offset value based on a luminance offset value used by the luminance adaptive offset processing unit.
前記色差適応オフセット処理部は、前記輝度適応オフセット処理部により用いられるQuad-tree構造に基づいて、前記色差信号に対する前記色差適応オフセット処理を行う
請求項3に記載の画像処理装置。
The image processing apparatus according to claim 3, wherein the color difference adaptive offset processing unit performs the color difference adaptive offset processing on the color difference signal based on a quad-tree structure used by the luminance adaptive offset processing unit.
前記色差適応オフセット処理部は、前記Quad-tree構造に基づき、バンドオフセット、エッジオフセット、およびオフの3種類を用いて、前記色差信号に対する前記色差適応オフセット処理を行う
請求項4に記載の画像処理装置。
5. The image processing according to claim 4, wherein the color difference adaptive offset processing unit performs the color difference adaptive offset processing on the color difference signal using three types of band offset, edge offset, and off based on the quad-tree structure. apparatus.
前記輝度適応オフセット処理部は、
前記輝度信号の画素値を用いて、前記Quad-tree構造を決定するQuad-tree決定部と、
前記Quad-tree決定部により決定された前記Quad-tree構造に分割された領域に対して、前記輝度オフセット値を算出する輝度オフセット算出部と、
前記輝度オフセット算出部により算出された前記輝度オフセット値を用いて、前記輝度信号の画素値に対してオフセット処理を行う輝度オフセット処理部と
を備え、
前記色差適応オフセット処理部は、
前記Quad-tree決定部により決定された前記Quad-tree構造に分割された領域に対して、色差オフセット値を算出する色差オフセット算出部と、
前記色差オフセット算出部により算出された前記色差オフセット値を用いて、前記色差信号の画素値に対してオフセット処理を行う色差オフセット処理部と
を備える請求項4に記載の画像処理装置。
The luminance adaptive offset processing unit
A quad-tree determining unit that determines the quad-tree structure using a pixel value of the luminance signal;
With respect to the split in the Quad-tree structure determined by Quad-tree determining region, a luminance offset calculation unit for calculating the brightness offset value,
A luminance offset processing unit that performs an offset process on a pixel value of the luminance signal using the luminance offset value calculated by the luminance offset calculating unit;
The color difference adaptive offset processing unit
A color difference offset calculating unit that calculates a color difference offset value for an area divided into the quad-tree structure determined by the quad-tree determining unit;
The image processing apparatus according to claim 4, further comprising: a color difference offset processing unit that performs an offset process on a pixel value of the color difference signal using the color difference offset value calculated by the color difference offset calculation unit.
前記符号化部は、前記輝度オフセット算出部により算出された前記輝度オフセット値、および前記色差オフセット算出部により算出された前記色差オフセット値から求められる色差予測残差と、前記輝度オフセット値を符号化する
請求項6に記載の画像処理装置。
The encoding unit encodes the luminance offset value calculated by the luminance offset calculation unit, a color difference prediction residual obtained from the color difference offset value calculated by the color difference offset calculation unit, and the luminance offset value. The image processing apparatus according to claim 6.
前記色差オフセット値から求められる色差予測残差を量子化する量子化部
をさらに備える請求項7に記載の画像処理装置。
The image processing apparatus according to claim 7 , further comprising: a quantization unit that quantizes a color difference prediction residual obtained from the color difference offset value.
前記設定部は、前記色差オフセット算出部により算出された色差オフセット値OCと、前記輝度オフセット算出部により算出された輝度オフセット値OLとを用いて、前記色差予測残差が小さくなるように、前記オフセット値に関する情報として、相関係数αおよびβを設定し、
前記設定部により設定された前記相関係数αおよびβを用いて、前記色差予測残差を算出する予測残差算出部を
さらに備える請求項7に記載の画像処理装置。
The setting unit uses the color difference offset value OC calculated by the color difference offset calculation unit and the luminance offset value OL calculated by the luminance offset calculation unit so as to reduce the color difference prediction residual. Set the correlation coefficients α and β as information about the offset value,
The image processing apparatus according to claim 7 , further comprising a prediction residual calculation unit that calculates the color difference prediction residual using the correlation coefficients α and β set by the setting unit.
前記符号化部は、前記相関係数αおよびβを符号化する
請求項9に記載の画像処理装置。
The encoding unit encodes the correlation coefficients α and β.
The image processing apparatus according to claim 9 .
前記設定部は、前記相関係数αおよびβを、CbとCrについて別々に設定する
請求項9または請求項10に記載の画像処理装置。
The image processing apparatus according to claim 9, wherein the setting unit sets the correlation coefficients α and β separately for Cb and Cr.
前記設定部は、前記相関係数αおよびβを、2種類のバンドオフセットおよび6種類のエッジオフセットについて別々に設定する
請求項9乃至請求項11のいずれかに記載の画像処理装置。
The image processing device according to claim 9, wherein the setting unit sets the correlation coefficients α and β separately for two types of band offsets and six types of edge offsets.
前記色差適応オフセット処理部は、前記輝度適応オフセット処理部により用いられる輝度オフセット値を用いて、前記色差信号に対する前記色差適応オフセット処理を行う
請求項2に記載の画像処理装置。
The image processing apparatus according to claim 2, wherein the color difference adaptive offset processing unit performs the color difference adaptive offset processing on the color difference signal using a luminance offset value used by the luminance adaptive offset processing unit.
前記画像に対してデブロックフィルタ処理を行うフィルタ部を
さらに備え、
前記輝度適応オフセット処理部と前記色差適応オフセット処理部は、前記フィルタ部によりデブロックフィルタ処理が行われた画像を対象として、適応オフセット処理を行う
請求項2に記載の画像処理装置。
A filter unit that performs deblocking filter processing on the image;
The image processing apparatus according to claim 2, wherein the luminance adaptive offset processing unit and the color difference adaptive offset processing unit perform adaptive offset processing on an image that has been subjected to deblocking filter processing by the filter unit.
画像処理装置が、
画像の輝度信号に対する適応オフセット処理により用いられる輝度オフセット値に基づいて設定された、復号装置の前記画像の色差信号に対する適応オフセット処理に用いられるオフセット値に関する情報を符号化し、LCU(Largest Coding Unit)ヘッダに付加し、前記オフセット値に関する情報を含むビットストリームを生成する
画像処理方法。
The image processing device
Encoding information related to the offset value used for adaptive offset processing for the color difference signal of the image of the decoding device, set based on the luminance offset value used by adaptive offset processing for the luminance signal of the image, and LCU (Largest Coding Unit) An image processing method for generating a bitstream that is added to a header and includes information on the offset value.
コンピュータに、
画像の輝度信号に対する適応オフセット処理により用いられる輝度オフセット値に基づいて設定された、復号装置の前記画像の色差信号に対する適応オフセット処理に用いられるオフセット値に関する情報を符号化し、LCU(Largest Coding Unit)ヘッダに付加し、前記オフセット値に関する情報を含むビットストリームを生成する符号化部と
して、機能させるプログラム。
On the computer,
Encoding information related to the offset value used for adaptive offset processing for the color difference signal of the image of the decoding device, set based on the luminance offset value used by adaptive offset processing for the luminance signal of the image, and LCU (Largest Coding Unit) A program that is added to a header and functions as an encoding unit that generates a bitstream including information on the offset value.
請求項16に記載されているプログラムが記録されている記録媒体。   A recording medium on which the program according to claim 16 is recorded.
JP2017024599A 2017-02-14 2017-02-14 Image processing apparatus and method, program, and recording medium Expired - Fee Related JP6341304B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017024599A JP6341304B2 (en) 2017-02-14 2017-02-14 Image processing apparatus and method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017024599A JP6341304B2 (en) 2017-02-14 2017-02-14 Image processing apparatus and method, program, and recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015170299A Division JP6094838B2 (en) 2015-08-31 2015-08-31 Image processing apparatus and method, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2017112637A JP2017112637A (en) 2017-06-22
JP6341304B2 true JP6341304B2 (en) 2018-06-13

Family

ID=59079702

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017024599A Expired - Fee Related JP6341304B2 (en) 2017-02-14 2017-02-14 Image processing apparatus and method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP6341304B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5763210B2 (en) * 2011-04-21 2015-08-12 メディアテック インコーポレイテッド Method and apparatus for improved loop-type filtering process
CN103535035B (en) * 2011-05-16 2017-03-15 寰发股份有限公司 For the method and apparatus that the sample self adaptation of brightness and chromatic component offsets
CN105049864A (en) * 2011-06-28 2015-11-11 三星电子株式会社 Video encoding method using offset adjustments according to pixel classification and apparatus therefor

Also Published As

Publication number Publication date
JP2017112637A (en) 2017-06-22

Similar Documents

Publication Publication Date Title
JP5907367B2 (en) Image processing apparatus and method, program, and recording medium
JP5942990B2 (en) Image processing apparatus and method
US10419756B2 (en) Image processing device and method
WO2011145601A1 (en) Image processor and image processing method
US11601685B2 (en) Image processing device and method using adaptive offset filter in units of largest coding unit
WO2013061852A1 (en) Image processing device and method
WO2013002110A1 (en) Image processing device and method
WO2012124496A1 (en) Image processing device and method
WO2011083713A1 (en) Device and method for processing image
US20140092979A1 (en) Image processing apparatus and method
WO2012128191A1 (en) Image processing device and method
WO2014050731A1 (en) Image processing device and method
WO2013108688A1 (en) Image processing device and method
WO2013047326A1 (en) Image processing device and method
WO2013154026A1 (en) Image processing apparatus and method
WO2013047325A1 (en) Image processing device and method
WO2014156708A1 (en) Image decoding device and method
JP5999449B2 (en) Image processing apparatus and method, program, and recording medium
JP6094838B2 (en) Image processing apparatus and method, program, and recording medium
WO2013051453A1 (en) Image processing device and method
WO2013002106A1 (en) Image processing device and method
WO2013065567A1 (en) Image processing device and method
JP6341304B2 (en) Image processing apparatus and method, program, and recording medium
WO2012157488A1 (en) Image processing device and method
WO2013002111A1 (en) Image processing device and method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171219

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180123

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180223

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180320

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180403

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180417

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180430

R151 Written notification of patent or utility model registration

Ref document number: 6341304

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees