JP2020145765A - Decoding device, encoding device, decoding method, and encoding method - Google Patents

Decoding device, encoding device, decoding method, and encoding method Download PDF

Info

Publication number
JP2020145765A
JP2020145765A JP2020103022A JP2020103022A JP2020145765A JP 2020145765 A JP2020145765 A JP 2020145765A JP 2020103022 A JP2020103022 A JP 2020103022A JP 2020103022 A JP2020103022 A JP 2020103022A JP 2020145765 A JP2020145765 A JP 2020145765A
Authority
JP
Japan
Prior art keywords
color difference
filter
format
information
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2020103022A
Other languages
Japanese (ja)
Other versions
JP6980843B2 (en
Inventor
中條 健
Takeshi Nakajo
健 中條
知也 児玉
Tomoya Kodama
知也 児玉
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Publication of JP2020145765A publication Critical patent/JP2020145765A/en
Priority to JP2021184978A priority Critical patent/JP7214818B2/en
Application granted granted Critical
Publication of JP6980843B2 publication Critical patent/JP6980843B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To suppress deterioration of image quality.SOLUTION: A decoding device 50 includes a decoding section 56 and a conversion section 60. The decoding section 56 decodes encoded data included in transmission information including encoded data and color difference conversion information including a first color difference format showing resolution of a color difference component of the encoded data, and specified information of a filter used when a color difference format of a decoded image obtained by decoding the encoded data is converted; and generates the decoded image of the first color difference format. The conversion section 60 subjects the decoded image of the first color difference format to the color difference format conversion by using the filter specified by the specified information.SELECTED DRAWING: Figure 24

Description

本発明の実施形態は、復号装置、符号化装置、復号方法、及び符号化方法に関する。 Embodiments of the present invention relate to a decoding device, a coding device, a decoding method, and a coding method.

輝度成分と色差成分を含む画像について、色差成分の解像度を変換した後に符号化することが行われている。また、復号時には、符号化データを復号した後に、色差成分の解像度を変換することが行われている。色差成分の解像度には、4:4:4フォーマット、4:2:2フォーマット、及び4:2:0フォーマット、等の色差フォーマットがある。 An image containing a luminance component and a color difference component is encoded after converting the resolution of the color difference component. Further, at the time of decoding, the resolution of the color difference component is converted after decoding the encoded data. The resolution of the color difference component includes a color difference format such as a 4: 4: 4 format, a 4: 2: 2 format, and a 4: 2: 0 format.

色差成分の解像度の変換を繰り返す事により、画質劣化が生じる。このため、従来、画質劣化を抑制する試みがなされている。具体的には、画質劣化を抑制する条件を満たすフィルタを、色差成分の解像度の変換に用いるフィルタとして設計することが開示されている。 Image quality deterioration occurs by repeating the conversion of the resolution of the color difference component. Therefore, conventionally, attempts have been made to suppress deterioration in image quality. Specifically, it is disclosed that a filter satisfying the condition of suppressing image quality deterioration is designed as a filter used for converting the resolution of a color difference component.

特開2005−123913号公報Japanese Unexamined Patent Publication No. 2005-123913 特開2009−246929号公報Japanese Unexamined Patent Publication No. 2009-246929

しかしながら、従来では、再生時の色差成分の解像度によっては、画質劣化が生じる場合があった。 However, in the past, image quality may deteriorate depending on the resolution of the color difference component during reproduction.

本発明が解決しようとする課題は、画質劣化を抑制することができる、復号装置、及び符号化装置を提供することである。 An object to be solved by the present invention is to provide a decoding device and a coding device capable of suppressing image quality deterioration.

実施形態の復号装置は、符号化データと、前記符号化データを復号して得られる復号画像の色差フォーマット変換時に用いるフィルタを特定するためのフィルタ情報と、再生時の画素ビット長と、再生時の色差成分の最大値と、再生時の色差成分の最小値と、を含む伝送情報に含まれる前記符号化データを復号して前記復号画像を生成する復号部と、前記フィルタ情報によって示されるダウンサンプリングフィルタを用いて、前記復号画像を色差フォーマット変換する変換部と、前記再生時の画素ビット長、前記再生時の色差成分の最大値、および前記再生時の色差成分の最小値を満たすように、色差フォーマット変換された前記復号画像をクリッピング処理し、該クリッピング処理後の前記復号画像を再生画像として出力する出力部と、を備える。 The decoding device of the embodiment includes coded data, filter information for specifying a filter used for color difference format conversion of a decoded image obtained by decoding the coded data, pixel bit length at the time of reproduction, and reproduction. The decoding unit that decodes the coded data included in the transmission information including the maximum value of the color difference component and the minimum value of the color difference component at the time of reproduction to generate the decoded image, and the down indicated by the filter information. A conversion unit that converts the decoded image into a color difference format using a sampling filter, the pixel bit length at the time of reproduction, the maximum value of the color difference component at the time of reproduction, and the minimum value of the color difference component at the time of reproduction are satisfied. It is provided with an output unit that clippings the decoded image converted into a color difference format and outputs the decoded image after the clipping processing as a reproduced image.

符号化装置の機能的構成を示す図。The figure which shows the functional configuration of a coding apparatus. 変換部の機能的構成を示す図。The figure which shows the functional structure of the conversion part. 符号化部の機能的構成を示す図。The figure which shows the functional structure of the coding part. 生成部の機能的構成を示す図。The figure which shows the functional structure of the generation part. 色差変換情報のシンタクスの一例を示す図。The figure which shows an example of the syntax of the color difference conversion information. 定義情報のデータ構造の一例を示す図。The figure which shows an example of the data structure of definition information. 色差変換情報のシンタクスの一例を示す図。The figure which shows an example of the syntax of the color difference conversion information. 色差変換情報のシンタクスの一例を示す図。The figure which shows an example of the syntax of the color difference conversion information. 定義情報のデータ構造の一例を示す図。The figure which shows an example of the data structure of definition information. 定義情報のデータ構造の一例を示す図。The figure which shows an example of the data structure of definition information. 色差変換フィルタ情報を表現するシンタクスの一例を示す図。The figure which shows an example of the syntax which expresses the color difference conversion filter information. 色差変換情報のシンタクスの一例を示す図。The figure which shows an example of the syntax of the color difference conversion information. 色差変換フィルタ情報を表現するシンタクスの一例を示す図。The figure which shows an example of the syntax which expresses the color difference conversion filter information. 定義情報のデータ構造の一例を示す図。The figure which shows an example of the data structure of definition information. 色差変換フィルタ情報を表現するシンタクスの一例を示す図。The figure which shows an example of the syntax which expresses the color difference conversion filter information. 定義情報のデータ構造の一例を示す図。The figure which shows an example of the data structure of definition information. 色差変換フィルタ情報を表現するシンタクスの一例を示す図。The figure which shows an example of the syntax which expresses the color difference conversion filter information. 符号化処理の手順を示すフローチャート。A flowchart showing the procedure of the coding process. 符号化装置の機能的構成を示す図。The figure which shows the functional configuration of a coding apparatus. 生成部の機能的構成を示す図。The figure which shows the functional structure of the generation part. 変換部の機能的構成を示す図。The figure which shows the functional structure of the conversion part. 生成部の機能的構成を示す図。The figure which shows the functional structure of the generation part. 符号化装置の機能的構成を示す図。The figure which shows the functional configuration of a coding apparatus. 復号装置の機能的構成を示す図。The figure which shows the functional configuration of a decoding apparatus. 復号部の機能的構成を示す図。The figure which shows the functional structure of the decoding part. 復号部の機能的構成を示す図。The figure which shows the functional structure of the decoding part. 変換部の機能的構成を示す図。The figure which shows the functional structure of the conversion part. 復号処理の手順を示すフローチャート。A flowchart showing the procedure of the decryption process. 復号部の機能的構成を示す図。The figure which shows the functional structure of the decoding part. 変換部の機能的構成を示す図。The figure which shows the functional structure of the conversion part. 符号化装置、及び復号装置のハードウェア構成を示す図。The figure which shows the hardware composition of the coding apparatus and the decoding apparatus.

(実施の形態1)
図1は、本実施の形態の符号化装置10の機能的構成を示す模式図である。
(Embodiment 1)
FIG. 1 is a schematic diagram showing a functional configuration of the coding device 10 of the present embodiment.

符号化装置10は、原画像の色差成分の解像度を変更した後に符号化する。原画像は、輝度成分と色差成分とを含む画像である。色差成分の解像度には、4:4:4フォーマット、4:2:2フォーマット、及び4:2:0フォーマット、等の色差フォーマットがある。本実施の形態では、これらの色差フォーマットの内の何れかの色差フォーマットの原画像が符号化装置10に入力される。 The coding device 10 encodes after changing the resolution of the color difference component of the original image. The original image is an image including a luminance component and a color difference component. The resolution of the color difference component includes a color difference format such as a 4: 4: 4 format, a 4: 2: 2 format, and a 4: 2: 0 format. In the present embodiment, the original image of any of these color difference formats is input to the encoding device 10.

なお、本実施の形態では、一例として、4:4:4フォーマットの色差フォーマットの原画像が符号化装置10に入力される場合を説明するが、この形態に限定されない。 In the present embodiment, as an example, a case where an original image in a color difference format of 4: 4: 4 format is input to the encoding device 10 will be described, but the present embodiment is not limited to this embodiment.

符号化装置10は、変換部12、符号化部14、生成部16、NALユニット生成部18、及び伝送情報生成部20を備える。 The coding device 10 includes a conversion unit 12, a coding unit 14, a generation unit 16, a NAL unit generation unit 18, and a transmission information generation unit 20.

変換部12は、原画像に対するフィルタ処理によって、原画像の色差成分の解像度を変換する。変換部12は、色差成分の解像度を変換した原画像を、色差変換画像として出力する。本実施の形態では、変換部12は、原画像について、色差成分の解像度を拡大(アップサンプリング)する場合を説明する。 The conversion unit 12 converts the resolution of the color difference component of the original image by filtering the original image. The conversion unit 12 outputs the original image obtained by converting the resolution of the color difference component as a color difference conversion image. In the present embodiment, the conversion unit 12 describes a case where the resolution of the color difference component is enlarged (upsampled) with respect to the original image.

図2は、変換部12の機能的構成を示す模式図である。 FIG. 2 is a schematic diagram showing a functional configuration of the conversion unit 12.

変換部12は、符号化装置10に入力された原画像について、色差成分の解像度を変換する1または複数の変換部を備える。なお、変換部12による色差成分の解像度の変換を、色差フォーマット変換と称する場合がある。本実施の形態では、変換部12は、変換部12A、変換部12B、及び出力調整部12Cを備える。 The conversion unit 12 includes one or a plurality of conversion units that convert the resolution of the color difference component of the original image input to the coding device 10. The conversion of the resolution of the color difference component by the conversion unit 12 may be referred to as a color difference format conversion. In the present embodiment, the conversion unit 12 includes a conversion unit 12A, a conversion unit 12B, and an output adjustment unit 12C.

変換部12Aは、4:4:4フォーマットの原画像を4:2:2フォーマットの画像に変換する。詳細には、変換部12Aは、4:4:4フォーマットの原画像を構成する画素の色差成分について、水平方向に1/2に間引くフィルタを用いたフィルタ処理を行う。これによって、変換部12Aは、4:4:4フォーマットの原画像を構成する画素の色差成分を、水平方向に1/2に間引くダウンサンプリングを行い、4:2:2フォーマットの画像に変換する。変換部12Aは、4:2:2フォーマットの画像を、変換部12Bへ出力する。 The conversion unit 12A converts the original image in the 4: 4: 4 format into the image in the 4: 2: 2 format. Specifically, the conversion unit 12A performs a filter process using a filter that thins out the color difference components of the pixels constituting the original image in the 4: 4: 4 format by 1/2 in the horizontal direction. As a result, the conversion unit 12A performs downsampling by thinning out the color difference components of the pixels constituting the original image in the 4: 4: 4 format to 1/2 in the horizontal direction, and converts the image into the image in the 4: 2: 2 format. .. The conversion unit 12A outputs an image in the 4: 2: 2 format to the conversion unit 12B.

変換部12Bは、変換部12Aから4:2:2フォーマットの画像を受け付ける。変換部12Bは、受け付けた4:2:2フォーマットの画像を4:2:0フォーマットの画像に変換する。詳細には、変換部12Bは、4:2:2フォーマットの画像を構成する画素の色差成分について、垂直方向に1/2に間引くフィルタを用いたフィルタ処理を行う。これによって、変換部12Bは、4:2:2フォーマットの画像を構成する画素の色差成分を、垂直方向に1/2に間引くダウンサンプリングを行い、4:2:0フォーマットの画像に変換する。変換部12Bは、4:2:0フォーマットの画像を、出力調整部12Cへ出力する。 The conversion unit 12B receives an image in a 4: 2: 2 format from the conversion unit 12A. The conversion unit 12B converts the received 4: 2: 2 format image into a 4: 2: 0 format image. Specifically, the conversion unit 12B performs filter processing using a filter that thins out the color difference components of the pixels constituting the image in the 4: 2: 2 format by 1/2 in the vertical direction. As a result, the conversion unit 12B performs downsampling by thinning out the color difference components of the pixels constituting the image in the 4: 2: 2 format to 1/2 in the vertical direction, and converts the image into the image in the 4: 2: 0 format. The conversion unit 12B outputs an image in the 4: 2: 0 format to the output adjustment unit 12C.

出力調整部12Cは、変換部12Bから受け付けた4:2:0フォーマットの画像を構成する各画素値が、規格上定められた最小値以上であり且つ規格上定められた最大値以下の範囲となるように、クリッピング処理を行う。そして、クリッピング処理後の画像を、変換部12で色差変換した色差変換画像として、符号化部14へ出力する。色差変換画像は、変換部12で色差成分の解像度を変換した後の原画像である。 The output adjustment unit 12C has a range in which each pixel value constituting the 4: 2: 0 format image received from the conversion unit 12B is equal to or more than the minimum value defined by the standard and is equal to or less than the maximum value defined by the standard. Clipping processing is performed so that Then, the image after the clipping process is output to the coding unit 14 as a color difference conversion image that has been color-difference-converted by the conversion unit 12. The color difference conversion image is an original image after the resolution of the color difference component is converted by the conversion unit 12.

図1に戻り、変換部12は、色差変換画像を符号化部14へ出力する。また、変換部12は、色差信号情報を生成部16へ出力する。 Returning to FIG. 1, the conversion unit 12 outputs the color difference conversion image to the coding unit 14. Further, the conversion unit 12 outputs the color difference signal information to the generation unit 16.

色差信号情報は、変換部12でフィルタ処理に用いたフィルタ情報を含む。本実施の形態では、色差信号情報は、変換部12Aで受け付けた4:4:4フォーマットの原画像と、変換部12Aでフィルタ処理に用いたフィルタ情報と、変換部12Bで受け付けた4:2:2フォーマットの画像と、変換部12Bでフィルタ処理に用いたフィルタ情報と、を含む。 The color difference signal information includes the filter information used for the filter processing by the conversion unit 12. In the present embodiment, the color difference signal information includes the original image in the 4: 4: 4 format received by the conversion unit 12A, the filter information used for the filter processing by the conversion unit 12A, and the 4: 2 received by the conversion unit 12B. : Includes images in two formats and filter information used for filtering by the conversion unit 12B.

なお、変換部12Aでフィルタ処理に用いたフィルタ情報は、本実施の形態では、水平ダウンサンプリングフィルタ情報である。また、変換部12Bでフィルタ処理に用いたフィルタ情報は、本実施の形態では、垂直ダウンサンプリングフィルタ情報である。 The filter information used for the filter processing by the conversion unit 12A is the horizontal downsampling filter information in the present embodiment. Further, the filter information used for the filter processing by the conversion unit 12B is the vertical downsampling filter information in the present embodiment.

符号化部14は、変換部12から色差変換画像を受け付ける。符号化部14は、受け付けた色差変換画像を符号化し、符号化データを生成する。本実施の形態では、符号化部14は、1フレームを複数の画素領域からなるスライスに分割してスライス毎に符号化を行う。 The coding unit 14 receives the color difference conversion image from the conversion unit 12. The coding unit 14 encodes the received color difference conversion image and generates coded data. In the present embodiment, the coding unit 14 divides one frame into slices composed of a plurality of pixel regions and encodes each slice.

図3は、符号化部14の機能的構成を示す模式図である。 FIG. 3 is a schematic diagram showing a functional configuration of the coding unit 14.

符号化部14は、減算部14A、変換/量子化部14B、エントロピー符号化部14C、逆量子化/逆変換部14D、加算部14E、フレームメモリ14F、予測画像生成部14G、及び動きベクトル探索部14Hを備える。 The coding unit 14 includes a subtraction unit 14A, a conversion / quantization unit 14B, an entropy coding unit 14C, an inverse quantization / inverse conversion unit 14D, an addition unit 14E, a frame memory 14F, a prediction image generation unit 14G, and a motion vector search. A unit 14H is provided.

減算部14Aは、変換部12から色差変換画像を受け付ける。減算部14Aは、色差変換画像と予測画像生成部14Gで生成された予測画像との差分を求め、この差分である誤差画像を生成する。 The subtraction unit 14A receives the color difference conversion image from the conversion unit 12. The subtraction unit 14A obtains the difference between the color difference conversion image and the prediction image generated by the prediction image generation unit 14G, and generates an error image which is the difference.

変換/量子化部14Bは、誤差画像を変換して変換係数を生成し、変換係数を量子化して量子化係数を生成する。誤差画像の変換方法としては、例えば、DCT(Discrete Cosine Transform:離散コサイン変換)を用いた直交変換や、ウェーブレット変換や、独立成分解析等が挙げられる。変換/量子化部14Bは、これらの何れかの変換方法を用いて誤差画像を変換する。また、変換/量子化部14Bは、予め設定された量子化パラメータを用いて、変換係数を量子化する。 The conversion / quantization unit 14B converts the error image to generate a conversion coefficient, and quantizes the conversion coefficient to generate a quantization coefficient. Examples of the error image conversion method include orthogonal transform using DCT (Discrete Cosine Transform: discrete cosine transform), wavelet transform, and independent component analysis. The conversion / quantization unit 14B converts the error image by using any of these conversion methods. Further, the conversion / quantization unit 14B quantizes the conversion coefficient using the preset quantization parameters.

変換/量子化部14Bは、エントロピー符号化部14C及び逆量子化/逆変換部14Dに量子化係数を出力する。 The conversion / quantization unit 14B outputs the quantization coefficient to the entropy coding unit 14C and the inverse quantization / inverse conversion unit 14D.

エントロピー符号化部14Cは、変換/量子化部14Bから量子化係数を受け付ける。また、エントロピー符号化部14Cは、後述する動きベクトル探索部14Hから動きベクトル情報を受け付ける。エントロピー符号化部14Cは、量子化係数、及び動きベクトル情報を、予め決められたシンタクスに従ってエントロピー符号化し、符号化データを生成する。シンタクスとは、符号化データの設定規則である。 The entropy coding unit 14C receives the quantization coefficient from the conversion / quantization unit 14B. Further, the entropy coding unit 14C receives motion vector information from the motion vector search unit 14H, which will be described later. The entropy coding unit 14C entropy-encodes the quantization coefficient and the motion vector information according to a predetermined syntax to generate the coded data. The syntax is a setting rule for encoded data.

エントロピー符号化部14Cは、例えば、ハフマン符号化や算術符号化を用いてエントロピー符号化する。 The entropy coding unit 14C performs entropy coding using, for example, Huffman coding or arithmetic coding.

エントロピー符号化部14Cは、生成した符号化データを、NALユニット生成部18へ出力する。 The entropy coding unit 14C outputs the generated coded data to the NAL unit generation unit 18.

逆量子化/逆変換部14Dは、量子化係数を逆量子化した後に逆変換し、誤差画像を生成する。すなわち、逆量子化/逆変換部14Dは、量子化係数に対して、変換/量子化部14Bの処理と逆の処理を行う。具体的には、変換/量子化部14Bがウェーブレット変換及び量子化を行なった場合には、逆量子化/逆変換部14Dは、逆量子化及び逆ウェーブレット変換を行う。 The inverse quantization / inverse conversion unit 14D inversely quantizes the quantization coefficient and then inversely transforms it to generate an error image. That is, the inverse quantization / inverse conversion unit 14D performs the reverse processing of the conversion / quantization unit 14B on the quantization coefficient. Specifically, when the conversion / quantization unit 14B performs wavelet transformation and quantization, the inverse quantization / inverse transform unit 14D performs inverse quantization and inverse wavelet transformation.

加算部14Eは、逆量子化/逆変換部14Dから誤差画像を受け取り、予測画像生成部14Gから予測画像を受け取る。そして、加算部14Eは、誤差画像と予測画像を加算して復号画像を生成する。この復号画像は、フレームメモリ14Fに保存される。 The addition unit 14E receives an error image from the inverse quantization / inverse conversion unit 14D, and receives a prediction image from the prediction image generation unit 14G. Then, the addition unit 14E adds the error image and the prediction image to generate a decoded image. This decoded image is stored in the frame memory 14F.

フレームメモリ14Fは、復号画像にフィルタ処理を行い、参照画像として記憶する。フレームメモリ14Fは、参照画像を、予測画像生成部14Gと動きベクトル探索部14Hに出力する。 The frame memory 14F filters the decoded image and stores it as a reference image. The frame memory 14F outputs the reference image to the prediction image generation unit 14G and the motion vector search unit 14H.

動きベクトル探索部14Hは、変換部12から受け付けた色差変換画像と、フレームメモリ14Fから受け付けた参照画像と、を用いて、動きベクトル情報を生成する。動きベクトル探索部14Hは、生成した動きベクトル情報を、予測画像生成部14Gとエントロピー符号化部14Cへ出力する。 The motion vector search unit 14H generates motion vector information by using the color difference conversion image received from the conversion unit 12 and the reference image received from the frame memory 14F. The motion vector search unit 14H outputs the generated motion vector information to the prediction image generation unit 14G and the entropy coding unit 14C.

予測画像生成部14Gは、参照画像と動きベクトル情報を用いて、予測画像を生成する。そして、予測画像生成部14Gは、生成した予測画像を、加算部14E及び減算部14Aへ出力する。 The prediction image generation unit 14G generates a prediction image by using the reference image and the motion vector information. Then, the predicted image generation unit 14G outputs the generated predicted image to the addition unit 14E and the subtraction unit 14A.

ここで、フレームメモリ14Fが生成した参照画像は、色差変換画像と同じ色差フォーマットの画像である。すなわち、参照画像は、本実施の形態では、変換部12によって色差成分の解像度を変換されることによって得られた色差変換画像と同じ、4:2:0フォーマットの画像である。本実施の形態では、フレームメモリ14Fは、この4:2:0フォーマットの参照画像を、生成部16へ出力する。 Here, the reference image generated by the frame memory 14F is an image having the same color difference format as the color difference conversion image. That is, in the present embodiment, the reference image is an image in the same 4: 2: 0 format as the color difference conversion image obtained by converting the resolution of the color difference component by the conversion unit 12. In the present embodiment, the frame memory 14F outputs the reference image in the 4: 2: 0 format to the generation unit 16.

図1に戻り、生成部16は、変換部12から色差信号情報を受け付ける。また、生成部16は、符号化部14から、色差変換画像と同じ色差フォーマット(4:2:0フォーマット)の参照画像を受け付ける。生成部16は、色差信号情報及び色差変換画像の色差フォーマットの参照画像、を用いて、色差変換情報を生成する。 Returning to FIG. 1, the generation unit 16 receives the color difference signal information from the conversion unit 12. Further, the generation unit 16 receives a reference image in the same color difference format (4: 2: 0 format) as the color difference conversion image from the coding unit 14. The generation unit 16 generates the color difference conversion information by using the color difference signal information and the reference image of the color difference format of the color difference conversion image.

色差変換情報は、第1色差フォーマットと、符号化データを復号した復号画像の色差フォーマット変換時に用いるフィルタの特定情報と、を含む。 The color difference conversion information includes a first color difference format and specific information of a filter used at the time of color difference format conversion of the decoded image obtained by decoding the coded data.

本実施の形態では、一例として、色差変換フォーマットが、第1色差フォーマットと、第2色差フォーマットと、特定情報と、を含む場合を説明する。 In the present embodiment, as an example, a case where the color difference conversion format includes a first color difference format, a second color difference format, and specific information will be described.

第1色差フォーマットは、符号化部14で符号化した符号化データの色差成分の解像度、すなわち色差フォーマットを示す。言い換えれば、第1色差フォーマットは、色差変換画像の色差フォーマットである。本実施の形態では、第1色差フォーマットは、4:2:0フォーマットである。なお、以下では、色差成分の解像度を、単に、色差フォーマットと称して説明する場合がある。 The first color difference format indicates the resolution of the color difference component of the coded data encoded by the coding unit 14, that is, the color difference format. In other words, the first color difference format is the color difference format of the color difference converted image. In the present embodiment, the first color difference format is a 4: 2: 0 format. In the following, the resolution of the color difference component may be described simply as a color difference format.

第2色差フォーマットは、符号化データを復号した復号画像の再生時の色差フォーマットである。復号画像の再生時、とは、符号化データを復号した復号画像を再生するときに用いる色差フォーマットであり、再生時の形態や再生機器等によって定まる。本実施の形態では、第2色差フォーマットは、生成部16に予め設定されている。なお、第2色差フォーマットは、原画像と共に符号化装置10で受信してもよい。また、第2色差フォーマットは、図示を省略する通信部を介して、外部装置等から受信してもよい。 The second color difference format is a color difference format at the time of reproduction of the decoded image obtained by decoding the encoded data. The time of reproducing the decoded image is a color difference format used when reproducing the decoded image obtained by decoding the encoded data, and is determined by the form at the time of reproduction, the reproduction device, and the like. In the present embodiment, the second color difference format is preset in the generation unit 16. The second color difference format may be received by the coding apparatus 10 together with the original image. Further, the second color difference format may be received from an external device or the like via a communication unit (not shown).

特定情報は、復号画像の色差フォーマット変換時に用いるフィルタを特定するための情報である。 The specific information is information for specifying a filter used at the time of color difference format conversion of the decoded image.

本実施の形態では、一例として、特定情報が、第1色差フォーマットの復号画像を第2色差フォーマットに変換するときに用いるフィルタを特定するための情報である場合を説明する。本実施の形態では、特定情報が、第1色差フォーマットの復号画像を第2色差フォーマットに変換するために用いるフィルタ情報である場合を説明する。フィルタ情報は、例えば、フィルタ係数を含む。 In the present embodiment, as an example, a case where the specific information is information for specifying a filter used when converting a decoded image of the first color difference format into the second color difference format will be described. In the present embodiment, the case where the specific information is the filter information used for converting the decoded image of the first color difference format into the second color difference format will be described. The filter information includes, for example, a filter coefficient.

なお、特定情報は、第2色差フォーマットの参照情報を含んでいてもよい。参照情報は、第2色差フォーマットを特定するためのフラグ等の情報であってもよいし、第2色差フォーマットそのものであってもよい。 The specific information may include reference information of the second color difference format. The reference information may be information such as a flag for specifying the second color difference format, or may be the second color difference format itself.

図4は、生成部16の機能的構成を示す模式図である。 FIG. 4 is a schematic diagram showing the functional configuration of the generation unit 16.

生成部16は、変換部12から色差信号情報を受け付ける。また、生成部16は、色差変換画像と同じ色差フォーマット(4:2:0フォーマット)の参照画像を符号化部14から受け付ける。 The generation unit 16 receives the color difference signal information from the conversion unit 12. Further, the generation unit 16 receives a reference image in the same color difference format (4: 2: 0 format) as the color difference conversion image from the coding unit 14.

上述したように、本実施の形態では、色差信号情報は、変換部12Aで受け付けた4:4:4フォーマットの原画像と、変換部12Aでフィルタ処理に用いたフィルタ情報と、変換部12Bで受け付けた4:2:2フォーマットの画像と、変換部12Bでフィルタ処理に用いたフィルタ情報と、を含む。 As described above, in the present embodiment, the color difference signal information includes the original image in the 4: 4: 4 format received by the conversion unit 12A, the filter information used for the filter processing by the conversion unit 12A, and the conversion unit 12B. The received 4: 2: 2 format image and the filter information used for the filter processing by the conversion unit 12B are included.

生成部16は、垂直フィルタ情報生成部16A、変換部16B、水平フィルタ情報生成部16C、及び生成部16Dを備える。 The generation unit 16 includes a vertical filter information generation unit 16A, a conversion unit 16B, a horizontal filter information generation unit 16C, and a generation unit 16D.

垂直フィルタ情報生成部16Aは、色差信号情報に含まれる情報の内、4:2:2フォーマットの画像、及び変換部12Bでフィルタ処理に用いたフィルタ情報(垂直ダウンサンプリングフィルタ情報)を受け付ける。また、垂直フィルタ情報生成部16Aは、符号化部14から、色差変換画像と同じ色差フォーマット(4:2:0フォーマット)の参照画像を受け付ける。 The vertical filter information generation unit 16A receives the 4: 2: 2 format image and the filter information (vertical downsampling filter information) used for the filter processing by the conversion unit 12B among the information included in the color difference signal information. Further, the vertical filter information generation unit 16A receives a reference image in the same color difference format (4: 2: 0 format) as the color difference conversion image from the coding unit 14.

垂直フィルタ情報生成部16Aは、4:2:2フォーマットの画像と、変換部12Bでフィルタ処理に用いた垂直ダウンサンプリングフィルタ情報と、変換部12Bによる変換後の色差フォーマットの画像である4:2:0フォーマットの参照画像と、から、4:2:0フォーマットの画像を4:2:2フォーマットに変換するために用いるフィルタ情報を設計する。 The vertical filter information generation unit 16A is an image in a 4: 2: 2 format, vertical downsampling filter information used for filtering by the conversion unit 12B, and an image in a color difference format after conversion by the conversion unit 12B. 4: 2 Design the reference image in the: 0 format and the filter information used to convert the image in the 4: 2: 0 format to the 4: 2: 2 format.

すなわち、垂直フィルタ情報生成部16Aは、4:2:0フォーマットの参照画像に対して垂直方向アップサンプリング処理を行うことで、4:2:2フォーマットの画像を得るために用いるフィルタ情報を設計する。そして、垂直フィルタ情報生成部16Aは、設計したフィルタ情報である垂直フィルタ情報を、変換部16B及び生成部16Dへ出力する。 That is, the vertical filter information generation unit 16A designs the filter information used to obtain the 4: 2: 2 format image by performing the vertical upsampling process on the reference image in the 4: 2: 0 format. .. Then, the vertical filter information generation unit 16A outputs the designed vertical filter information, which is the filter information, to the conversion unit 16B and the generation unit 16D.

なお、フィルタ情報の設計には、下記式(1)〜式(3)を用いる。 The following equations (1) to (3) are used for designing the filter information.

Figure 2020145765
Figure 2020145765

式(1)〜式(3)は、フィルタ処理前の画像の色差成分と、フィルタ処理後の画像の色差成分との差の二乗平均が最小となるフィルタ、すなわち、ウィナーフィルタの算出式である。 Equations (1) to (3) are formulas for calculating a filter that minimizes the root mean square of the difference between the color difference component of the image before filtering and the color difference component of the image after filtering, that is, the Wiener filter. ..

式(1)中、Fは、フィルタ係数を示す。式(1)中、(f〜f)は、フィルタ係数を示す。なお、nは、1以上の整数を示す。 In equation (1), F represents a filter coefficient. In the formula (1), (f 1 to f n ) indicate the filter coefficient. In addition, n represents an integer of 1 or more.

式(2)中、Sは、フィルタ処理後の画像の色差成分を示す。式(2)中、xは、画素の位置を示す。式(2)及び式(3)中、S(x)は、フィルタ処理後の画像信号を示す。式(3)中、Sorgは、フィルタ処理前の画像の色差成分を示す。 In the formula (2), S represents the color difference component of the image after the filtering process. In equation (2), x indicates the position of the pixel. In equations (2) and (3), SF (x) indicates the image signal after filtering. In formula (3), Sorg represents the color difference component of the image before filtering.

変換部16Bは、符号化部14から、色差変換画像と同じ色差フォーマット(4:2:0フォーマット)の参照画像を受け付ける。また、変換部16Bは、垂直フィルタ情報生成部16Aから、垂直フィルタ情報を受け付ける。 The conversion unit 16B receives a reference image in the same color difference format (4: 2: 0 format) as the color difference conversion image from the coding unit 14. Further, the conversion unit 16B receives the vertical filter information from the vertical filter information generation unit 16A.

変換部16Bは、受け付けた垂直フィルタ情報を用いたフィルタ処理を行い、色差変換画像と同じ色差フォーマット(4:2:0フォーマット)の参照画像の色差フォーマットを4:2:2フォーマットに変換する。変換部16Bは、変換により得られた4:2:2フォーマットの画像を、水平フィルタ情報生成部16Cに出力する。 The conversion unit 16B performs a filter process using the received vertical filter information, and converts the color difference format of the reference image in the same color difference format (4: 2: 0 format) as the color difference conversion image into the 4: 2: 2 format. The conversion unit 16B outputs the image in the 4: 2: 2 format obtained by the conversion to the horizontal filter information generation unit 16C.

水平フィルタ情報生成部16Cは、色差信号情報に含まれる情報の内、変換部12Aで受け付けた4:4:4フォーマットの原画像と、変換部12Aでフィルタ処理に用いたフィルタ情報(水平ダウンサンプリングフィルタ情報)と、を受け付ける。また、水平フィルタ情報生成部16Cは、変換部16Bから4:2:2フォーマットの画像を受け付ける。 Of the information included in the color difference signal information, the horizontal filter information generation unit 16C includes the original image in the 4: 4: 4 format received by the conversion unit 12A and the filter information (horizontal downsampling) used for the filter processing by the conversion unit 12A. Filter information) and accept. Further, the horizontal filter information generation unit 16C receives an image in a 4: 2: 2 format from the conversion unit 16B.

水平フィルタ情報生成部16Cは、4:4:4フォーマットの原画像と、水平ダウンサンプリングフィルタ情報と、4:2:2フォーマットの画像と、から、4:2:2フォーマットの画像を4:4:4フォーマットに変換するために用いるフィルタ情報を設計する。フィルタ情報の設計には、上記式(1)〜式(3)を用いる。 The horizontal filter information generation unit 16C obtains a 4: 4: 2 format image from the 4: 4: 4 format original image, the horizontal downsampling filter information, and the 4: 2: 2 format image at 4: 4. : Design the filter information used to convert to 4 formats. The above equations (1) to (3) are used for designing the filter information.

すなわち、水平フィルタ情報生成部16Cは、4:2:2フォーマットの画像に対して水平アップサンプリング処理を行うことで、4:4:4フォーマットの原画像を得るために用いるフィルタ情報を設計する。そして、水平フィルタ情報生成部16Cは、設計したフィルタ情報である水平フィルタ情報を、生成部16Dへ出力する。 That is, the horizontal filter information generation unit 16C designs the filter information used to obtain the original image in the 4: 4: 4 format by performing the horizontal upsampling process on the image in the 4: 2: 2 format. Then, the horizontal filter information generation unit 16C outputs the horizontal filter information, which is the designed filter information, to the generation unit 16D.

生成部16Dは、色差変換情報を生成する。詳細には、生成部16Dは、符号化部14で符号化した符号化データの第1色差フォーマットとして、符号化部14から受け付けた参照画像の色差フォーマット(4:2:0フォーマット)を用いる。また、生成部16Dは、符号化データを復号した復号画像の再生時の第2色差フォーマットを、図示を省略するメモリから読取る。また、生成部16Dは、特定情報として、垂直フィルタ情報生成部16Aから受け付けた垂直フィルタ情報と、水平フィルタ情報生成部16Cから受け付けた水平フィルタ情報と、を用いる。そして、生成部16Dは、第1色差フォーマットと、第2色差フォーマットと、特定情報と、を含む色差変換情報を生成する。 The generation unit 16D generates the color difference conversion information. Specifically, the generation unit 16D uses the color difference format (4: 2: 0 format) of the reference image received from the coding unit 14 as the first color difference format of the coded data encoded by the coding unit 14. Further, the generation unit 16D reads the second color difference format at the time of reproduction of the decoded image obtained by decoding the encoded data from a memory (not shown). Further, the generation unit 16D uses the vertical filter information received from the vertical filter information generation unit 16A and the horizontal filter information received from the horizontal filter information generation unit 16C as specific information. Then, the generation unit 16D generates the color difference conversion information including the first color difference format, the second color difference format, and the specific information.

なお、生成部16Dは、予め決められた設定規則(シンタクス)に従って色差変換情報を生成する。 The generation unit 16D generates the color difference conversion information according to a predetermined setting rule (syntax).

図5は、色差変換情報のシンタクスの一例を示す図である。 FIG. 5 is a diagram showing an example of the syntax of the color difference conversion information.

色差変換情報は、図5に示すように、coded_format_idc、coded_data_bit_depth、target_format_idc、target_bit_depth、max_value、min_value、progressive_flag、implicit_vertical_flag、tap_length_vertical_minus1、ver_filter_coeff、implicit_horizontal_flag、interpolation_horizontal_idc、tap_length_horizontal_minus1、及びhor_filter_coeffを含む。 Chrominance conversion information includes, as shown in FIG. 5, coded_format_idc, coded_data_bit_depth, target_format_idc, target_bit_depth, max_value, min_value, progressive_flag, implicit_vertical_flag, tap_length_vertical_minus1, ver_filter_coeff, implicit_horizontal_flag, interpolation_horizontal_idc, tap_length_horizontal_minus1, and Hor_filter_coeff.

coded_format_idcは、第1色差フォーマットを示す。 Coded_format_idc indicates a first color difference format.

例えば、coded_format_idcの値が「0」である場合、第1色差フォーマットは、輝度のみ規定されたモノクロフォーマットである。coded_format_idcの値が「1」である場合、第1色差フォーマットは、4:2:0フォーマットである。coded_format_idcの値が「2」である場合、第1色差フォーマットは4:2:2フォーマットである。coded_format_idcの値が「3」である場合、第1色差フォーマットは4:4:4フォーマットである。 For example, when the value of coded_format_idc is "0", the first color difference format is a monochrome format in which only the luminance is specified. When the value of coded_format_idc is "1", the first color difference format is the 4: 2: 0 format. When the value of coded_format_idc is "2", the first color difference format is the 4: 2: 2 format. When the value of coded_format_idc is "3", the first color difference format is the 4: 4: 4 format.

coded_data_bit_depthは、符号化データの画素ビット長を示す。 The code_data_bit_depth indicates the pixel bit length of the encoded data.

target_format_idcは、符号化データを復号した復号画像の再生時の色差フォーマットである第2色差フォーマットを示す。target_bit_depthは、再生時の画素ビット長を示す。max_valueは、再生時の色差成分の最大値を示す。min_valueは、再生時の色差成分の最小値を示す。 target_format_idc indicates a second color difference format which is a color difference format at the time of reproduction of the decoded image obtained by decoding the coded data. target_bit_depth indicates the pixel bit length at the time of reproduction. max_value indicates the maximum value of the color difference component at the time of reproduction. min_value indicates the minimum value of the color difference component at the time of reproduction.

progressive_flagは、符号化データがプログレッシブ信号であるか否かを示すフラグである。例えば、progressive_flagの値が「0」である場合、符号化データは、プログレッシブ信号ではなく、インターレース信号である。この場合、色差変換の処理は、フィールド単位で行う必要があることを示す。 The progressive_flag is a flag indicating whether or not the encoded data is a progressive signal. For example, when the value of progressive_flag is "0", the encoded data is an interlaced signal rather than a progressive signal. In this case, it indicates that the color difference conversion process needs to be performed in field units.

implicit_vertical_flag、interpolation_vertical_idc、tap_length_vertical_minus1、ver_filter_coeff、implicit_horizontal_flag、interpolation_horizontal_idc、tap_length_horizontal_minus1、及びhor_filter_coeff、は、特定情報を示す。 implicit_vertical_flag, interpolation_vertical_idc, tap_length_vertical_minus1, ver_filter_coeff, implicit_horizontal_flag, interpolation_horizontal_ident_horizontal_id

implicit_vertical_flagは、予め定義した垂直方向のフィルタ情報を用いることを示すフラグである。interpolation_vertical_idcは、予め定義した垂直方向のフィルタ情報の識別情報である。tap_length_vertical_minus1は、垂直方向のフィルタ係数のタップ長マイナス1の値を示している。 The implicit_vertical_flag is a flag indicating that the predefined vertical filter information is used. interpolation_vertical_idc is the identification information of the filter information in the vertical direction defined in advance. tap_length_vertical_minus1 indicates a value of the tap length minus 1 of the filter coefficient in the vertical direction.

ver_filter_coeffは、水平方向のフィルタ係数を示している。implicit_horizontal_flagは、予め定めた水平方向のフィルタ情報を用いることを示すフラグである。Interpolation_horizontal_idcは、予め定義した水平方向のフィルタ情報の識別情報である。tap_length_horizontal_minus1は、水平方向のフィルタ係数のタップ長マイナス1の値を示す。hor_filter_coeffは、水平方向のフィルタ係数を示す。 ver_filter_coeff indicates the filter coefficient in the horizontal direction. The implicit_horizontal_flag is a flag indicating that a predetermined horizontal filter information is used. Interpolation_horizontal_idc is pre-defined horizontal filter information identification information. tap_length_horizontal_minus1 indicates a value of the tap length minus 1 of the horizontal filter coefficient. hor_filter_coeff indicates the filter coefficient in the horizontal direction.

例えば、coded_format_idcの値が「1」、すなわち、符号化データのフォーマットである第1色差フォーマットが4:2:0フォーマットであるとする。また、target_format_idcの値が「1」以上、すなわち、復号画像の再生時の色差フォーマットである第2色差フォーマットが4:2:2、または4:4:4フォーマットであるとする。この場合は、垂直方向にアップサンプリングの処理が必要である。このため、この場合、生成部16は、垂直方向のフィルタ情報(垂直アップサンプリングフィルタ情報)を特定情報として生成する。 For example, it is assumed that the value of code_format_idc is "1", that is, the first color difference format, which is the format of the encoded data, is the 4: 2: 0 format. Further, it is assumed that the value of target_format_idc is "1" or more, that is, the second color difference format, which is the color difference format at the time of reproducing the decoded image, is the 4: 2: 2 or 4: 4: 4 format. In this case, upsampling processing is required in the vertical direction. Therefore, in this case, the generation unit 16 generates the filter information in the vertical direction (vertical upsampling filter information) as specific information.

また、coded_fromat_idcの値が「1」より大きい、すなわち、符号化データのフォーマットである第1色差フォーマットが4:2:2フォーマット、または4:4:4フォーマットであるとする。また、target_format_idcの値が「1」、すなわち、再生時の色差フォーマットである第2色差フォーマットが、4:2:0フォーマットであるとする。この場合、特定情報は、垂直方向のフィルタ情報(垂直ダウンサンプリングフィルタ情報)である。 Further, it is assumed that the value of coded_from_idc is larger than "1", that is, the first color difference format, which is the format of the encoded data, is the 4: 2: 2 format or the 4: 4: 4 format. Further, it is assumed that the value of target_format_idc is "1", that is, the second color difference format which is the color difference format at the time of reproduction is the 4: 2: 0 format. In this case, the specific information is vertical filter information (vertical downsampling filter information).

また、coded_format_idcの値が「1」または「2」、すなわち、第1色差フォーマットが、4:2:0フォーマット、または4:2:2フォーマットであるとする。また、target_format_idcの値が「3」、すなわち、第2色差フォーマットが4:4:4フォーマットであるとする。この場合、特定情報は、水平方向のフィルタ情報(水平アップサンプリングフィルタ情報)である。 Further, it is assumed that the value of coded_format_idc is "1" or "2", that is, the first color difference format is 4: 2: 0 format or 4: 2: 2 format. Further, it is assumed that the value of target_format_idc is "3", that is, the second color difference format is the 4: 4: 4 format. In this case, the specific information is horizontal filter information (horizontal upsampling filter information).

また、coded_format_idcの値が「3」、すなわち、第1色差フォーマットが、4:4:4フォーマットであるとする。また、target_format_idcの値が「1」または「2」、すなわち、第2色差フォーマットが、4:2:0フォーマット、または4:2:2フォーマットであるとする。この場合、特定情報は、水平方向のフィルタ情報(水平ダウンサンプリングフィルタ情報)である。 Further, it is assumed that the value of coded_format_idc is "3", that is, the first color difference format is the 4: 4: 4 format. Further, it is assumed that the value of target_format_idc is "1" or "2", that is, the second color difference format is 4: 2: 0 format or 4: 2: 2 format. In this case, the specific information is horizontal filter information (horizontal downsampling filter information).

なお、図5中、u(n)は、nビットの非負の2進表現を示す。nは、1以上の整数である。se(v)は、符号付きの0次のExp−Golomb符号を表す。 In FIG. 5, u (n) represents an n-bit non-negative binary representation. n is an integer of 1 or more. se (v) represents a signed 0th-order Exp-Golomb code.

なお、符号化装置10は、予め定義した垂直方向のフィルタ情報、及び予め定義した水平方向のフィルタ情報と、これらのフィルタ情報を識別する識別情報と、を対応づけた定義テーブルを、予め生成部16の図示を省略するメモリに記憶する。 The coding apparatus 10 previously generates a definition table in which a predefined vertical filter information, a predetermined horizontal filter information, and an identification information for identifying the filter information are associated with each other. 16 is stored in a memory (not shown).

図6は、定義情報のデータ構造の一例を示す模式図である。 FIG. 6 is a schematic diagram showing an example of a data structure of definition information.

定義情報は、Valueと、Tap lengthと、Filter coefficientsと、を対応づけたテーブルである。 The definition information is a table in which Value, Tap dimensions, and Filter cohesions are associated with each other.

Valueは、フィルタ情報の識別情報である。Valueは、図5に示す色差変換情報に含まれる、interpolation_vertical_idc、またはinterpolation_horizontal_idcで示される値に対応している。 Value is identification information of filter information. Value corresponds to the value indicated by interpolation_vertical_idc or interpolation_horizontal_idc included in the color difference conversion information shown in FIG.

Tap lengthは、フィルタ情報の識別情報であるValueの値に対応する、フィルタ係数のタップ長を示している。Filter coefficientsは、フィルタ情報の識別情報であるValueの値に対応する、フィルタ係数を示している。 Tap length indicates the tap length of the filter coefficient corresponding to the value of Value which is the identification information of the filter information. Filter cofficients indicate the filter coefficient corresponding to the value of Value which is the identification information of the filter information.

なお、色差変換情報は、符号化データから得られる情報や、規格化されている再生情報を、含まない形態であってもよい。 The color difference conversion information may be in a form that does not include information obtained from coded data or standardized reproduction information.

図7は、符号化データから得られる情報や、規格化されている再生情報を含まない場合の、色差変換情報のシンタクスの一例を示す図である。 FIG. 7 is a diagram showing an example of the syntax of the color difference conversion information when the information obtained from the coded data and the standardized reproduction information are not included.

具体的には、色差変換情報は、target_format_idc、progressive_flag、implicit_vertical_flag、tap_length_vertical_minus1、ver_filter_coeff、implicit_horizontal_flag、interpolation_horizontal_idc、tap_length_horizontal_minus1、及びhor_filter_coeffを含む。 Specifically, the color difference conversion information includes target_format_idc, progressive_flag, implicit_vertical_flag, tap_length_vertical_minus1, ver_filter_coeff, implicit_horizontal_flag, interpolation_horizontal_idc, tap_length_horizontal_minus1, and Hor_filter_coeff.

すなわち、図7に示す例では、色差変換情報は、符号化データの色差フォーマットである第1色差フォーマット、及び画素ビット長を含まない。また、図7に示す例では、色差変換情報は、再生時の画素ビット長、再生時の色差成分の最大値及び最小値を含まない。 That is, in the example shown in FIG. 7, the color difference conversion information does not include the first color difference format, which is the color difference format of the coded data, and the pixel bit length. Further, in the example shown in FIG. 7, the color difference conversion information does not include the pixel bit length at the time of reproduction and the maximum value and the minimum value of the color difference component at the time of reproduction.

なお、上述したように、色差変換情報は、符号化データの色差成分の解像度を示す第1色差フォーマットと、符号化データを復号した復号画像の色差フォーマット変換時に用いるフィルタの特定情報と、を含む情報であればよい。 As described above, the color difference conversion information includes the first color difference format indicating the resolution of the color difference component of the coded data, and the specific information of the filter used at the time of color difference format conversion of the decoded image obtained by decoding the coded data. It may be information.

図8は、色差変換情報のシンタクスの一例を示す模式図である。なお、図8は、色差変換情報が、第1色差フォーマット、符号化データの色差成分の画素サンプル位置と、特定情報と、を含む場合を示した。 FIG. 8 is a schematic diagram showing an example of the syntax of the color difference conversion information. Note that FIG. 8 shows a case where the color difference conversion information includes the first color difference format, the pixel sample position of the color difference component of the coded data, and the specific information.

図8に示す例では、色差変換情報は、chroma_loc_info_present_flag、chroma_sample_loc_type_top_field、chroma_sample_loc_type_bottom_field、chroma_filter_info_present_flag、chroma_filter_infoを含む。 In the example shown in FIG. 8, the color difference conversion information includes chroma_loc_info_present_flag, chroma_sample_loc_type_top_field, chroma_sample_loc_type_bottom_field, and chromafelf.

chroma_loc_info_present_flagは、色差信号の画素位置、及び色差変換に関するフィルタ情報が存在するか否かを示すフラグである。例えば、chroma_loc_info_present_flagの値が「1」である場合、このフラグは、色差信号の画素位置及び色差変換に関するフィルタ情報が存在することを示す。また、chroma_loc_info_present_flagの値が「0」である場合、このフラグは、色差信号の画素位置及び色差変換に関するフィルタ情報が存在しないことを示す。 The chroma_loc_info_present_flag is a flag indicating the pixel position of the color difference signal and whether or not the filter information regarding the color difference conversion exists. For example, when the value of chroma_loc_info_present_flag is "1", this flag indicates that the filter information regarding the pixel position and the color difference conversion of the color difference signal exists. Further, when the value of chroma_loc_info_present_flag is "0", this flag indicates that there is no filter information regarding the pixel position of the color difference signal and the color difference conversion.

chroma_sample_loc_type_top_fieldは、符号化データがインターレース走査を用いて符号化された符号化データであるときの、トップフィールドの色差成分の画素サンプル位置(サンプリング対象の画素位置)を示す。このトップフィールドの色差成分の画素サンプル位置には、輝度成分の画素サンプル位置との組み合わせにより、合計6通りの公知の組合せがある。 Chroma_sample_loc_type_top_field indicates the pixel sample position (sampling target pixel position) of the color difference component of the top field when the coded data is the coded data encoded by using interlaced scanning. There are a total of six known combinations of pixel sample positions of the color difference component in the top field, depending on the combination with the pixel sample positions of the luminance component.

chroma_sample_loc_type_bottom_fieldは、符号化データがインターレース走査を用いて符号化された符号化データであるときの、ボトムフィールドの色差成分の画素サンプル位置(サンプリング対象の画素位置)を示す。このボトムフィールドの色差成分の画素サンプル位置には、トップフィールドの場合と同様に、輝度成分の画素サンプル位置との組み合わせにより、合計6通りの公知の組合せがある。 chroma_sample_loc_type_bottom_field indicates the pixel sample position (sampling target pixel position) of the color difference component in the bottom field when the coded data is coded data encoded by using interlaced scanning. As in the case of the top field, there are a total of six known combinations of pixel sample positions of the color difference component in the bottom field, depending on the combination with the pixel sample positions of the luminance component.

chroma_filter_info_present_flagは、色差変換に関するフィルタ情報が存在するか否かを示すフラグである。chroma_filter_info_present_flagの値が「1」である場合、色差変換に関するフィルタ情報が存在することを示す。chroma_filter_info_present_flagの値が「0」である場合、色差変換に関するフィルタ情報が存在しない事を示す。 chroma_filter_info_present_flag is a flag indicating whether or not filter information regarding color difference conversion exists. When the value of chroma_filter_info_present_flag is "1", it indicates that the filter information regarding the color difference conversion exists. When the value of chroma_filter_info_present_flag is "0", it indicates that there is no filter information regarding the color difference conversion.

chroma_filter_infoは、色差変換フィルタ情報の識別情報である。色差変換フィルタ情報の識別情報に対応する色差変換フィルタ情報は、色差変換フィルタ定義情報に予め設定されている。 chroma_filter_info is identification information of color difference conversion filter information. The color difference conversion filter information corresponding to the identification information of the color difference conversion filter information is preset in the color difference conversion filter definition information.

図9は、色差変換フィルタ定義情報のデータ構造の一例を示す模式図である。色差変換フィルタ定義情報は、色差変換フィルタ情報の識別情報(図9中、「Value」に相当)と、該識別情報によって特定される色差変換フィルタ情報と、を対応づけたテーブルである。 FIG. 9 is a schematic diagram showing an example of the data structure of the color difference conversion filter definition information. The color difference conversion filter definition information is a table in which the identification information of the color difference conversion filter information (corresponding to “Value” in FIG. 9) and the color difference conversion filter information specified by the identification information are associated with each other.

図9に示す例では、色差変換フィルタ情報は、Tap length、Filter coefficients、Divisor、Phase shift、及びPurposeを含む。 In the example shown in FIG. 9, the color difference conversion filter information includes Tap dimension, Filter co-efficients, Divisor, Phase shift, and Purpose.

Tap lengthは、フィルタ係数のタップ長を示す。Filter coefficientsは、フィルタ係数を示す。Divisorは、フィルタ処理において、除算を行う場合の分母の数を示す。Phase shiftは、フィルタの位相情報を示す。Purposeは、フィルタの種類を示す。具体的には、Purposeは、色差フォーマット変換する場合のダウンサンプリング用フィルタ、または、アップサンプリング用フィルタを示す。 Tap length indicates the tap length of the filter coefficient. Filter cofficients indicate the filter coefficient. Divisor indicates the number of denominators when dividing in filtering. Phase shift indicates the phase information of the filter. Purpose indicates the type of filter. Specifically, Purpose indicates a downsampling filter or an upsampling filter for color difference format conversion.

図10は、色差変換フィルタ定義情報のデータ構造の別の例を示す模式図である。図10に示す色差変換フィルタ定義情報は、図9と同様に、色差変換フィルタ情報の識別情報(図10中、「Value」に相当)と、該識別情報によって特定される色差変換フィルタ情報と、を対応づけたテーブルである。 FIG. 10 is a schematic diagram showing another example of the data structure of the color difference conversion filter definition information. Similar to FIG. 9, the color difference conversion filter definition information shown in FIG. 10 includes identification information of the color difference conversion filter information (corresponding to “Value” in FIG. 10), color difference conversion filter information specified by the identification information, and It is a table associated with.

図10に示す例においても、図9と同様に、色差変換フィルタ情報は、Tap length、Filter coefficients、Divisor、Phase shift、及びPurposeを含む。 In the example shown in FIG. 10, similarly to FIG. 9, the color difference conversion filter information includes Tap length, Filter cohesions, Divisor, Phase shift, and Purpose.

なお、図10に示す色差変換フィルタ定義情報では、識別情報である「Value」の値が特定の値の場合には、予め定めたシンタクスに従って色差変換フィルタ情報を生成することを示す。 The color difference conversion filter definition information shown in FIG. 10 indicates that when the value of "Value", which is the identification information, is a specific value, the color difference conversion filter information is generated according to a predetermined syntax.

図11は、色差変換フィルタ情報のシンタクスの一例を示す図である。例えば、図10に示す色差変換フィルタ定義情報における識別情報である「Value」の値が「1」である場合、図11に示すシンタクスの色差変換フィルタ情報を予め対応づける。 FIG. 11 is a diagram showing an example of the syntax of the color difference conversion filter information. For example, when the value of "Value", which is the identification information in the color difference conversion filter definition information shown in FIG. 10, is "1", the color difference conversion filter information of the syntax shown in FIG. 11 is associated in advance.

この場合、生成部16は、色差変換フィルタ定義情報における識別情報である「Value」の値が「1」である場合、図11に示すシンタクスの色差変換フィルタ情報に従って、色差変換フィルタ情報を生成する。 In this case, when the value of "Value", which is the identification information in the color difference conversion filter definition information, is "1", the generation unit 16 generates the color difference conversion filter information according to the color difference conversion filter information of the syntax shown in FIG. ..

図11に示す色差変換フィルタ情報は、target_format_idc、num_of_filter_minus1、tap_length_minus1、filter_coeffを含む。 The color difference conversion filter information shown in FIG. 11 includes target_format_idc, num_of_filter_minus1, tap_length_minus1, and filter_coeff.

target_format_idcは、上記と同様である。num_of_filter_minus1は、色差変換フィルタの数マイナス1の値を示す。tap_length_minus1は、フィルタ係数のタップ長マイナス1の値を示す。filter_coeffは、フィルタ係数を示す。 target_format_idc is the same as above. num_of_filter_minus1 indicates the value of the number minus 1 of the color difference conversion filter. tap_length_minus1 indicates a value of the tap length minus 1 of the filter coefficient. filter_coeff indicates the filter coefficient.

図12は、色差変換情報のシンタクスの他の一例を示す模式図である。なお、図12は、chroma_filter_infoを含まない点が、図8に示す色差変換情報と異なる。 FIG. 12 is a schematic diagram showing another example of the syntax of the color difference conversion information. Note that FIG. 12 is different from the color difference conversion information shown in FIG. 8 in that it does not include chroma_filter_info.

図12に示す例では、色差変換情報は、chroma_loc_info_present_flag、chroma_sample_loc_type_top_field、chroma_sample_loc_type_bottom_field、chroma_filter_info_present_flagを含む。 In the example shown in FIG. 12, the color difference conversion information includes chroma_loc_info_present_flag, chroma_sample_loc_type_top_field, chroma_sample_loc_type_bottom_field_file_file_file_file_file.

chroma_filter_info_present_flagは、色差変換に関するフィルタ情報が別途存在するか否かを示すフラグである。chroma_filter_info_present_flagの値が「1」である場合、色差変換に関するフィルタ情報が存在することを示す。chroma_filter_info_present_flagの値が「0」である場合、色差変換に関するフィルタ情報が存在しないことを示す。 The chroma_filter_info_present_flag is a flag indicating whether or not filter information regarding the color difference conversion exists separately. When the value of chroma_filter_info_present_flag is "1", it indicates that the filter information regarding the color difference conversion exists. When the value of chroma_filter_info_present_flag is "0", it indicates that there is no filter information regarding the color difference conversion.

図13は、図12に示す色差変換情報における、chroma_filter_info_present_flagの値が「1」である場合に存在する色差変換フィルタ情報の一例を示す図である。 FIG. 13 is a diagram showing an example of the color difference conversion filter information existing when the value of chroma_filter_info_present_flag in the color difference conversion information shown in FIG. 12 is “1”.

図13に示す色差変換フィルタ情報は、num_of_filter_set_minus1と、implicit_filter_set_flagと、filter_set_idcと、num_of_filter_minus1と、implicit_filter_flagと、filter_idcと、tap_length_minus1と、filter_coeffと、を含む。 The color difference conversion filter information shown in FIG. 13 includes num_of_filter_set_minus1, implicit_filter_set_flag, filter_set_idc, num_of_filter_minus1, implicit_filter_mig, filter_filler_file, and filter_idc.

num_of_filter_set_minus1は、フィルタセットの数マイナス1を示す。implicit_filter_set_flagは、予め定めたフィルタセットの情報を用いることを示すフラグである。filter_set_idcは、予め定義したフィルタセットの情報の識別情報である。num_of_filter_minus1は、色差変換フィルタの数マイナス1の値を示す。implicit_filter_flagは、予め定めたフィルタ情報を用いることを示すフラグである。filter_idcは、予め定義したフィルタ情報の識別情報である。tap_length_minus1は、フィルタ係数のタップ長マイナス1の値を示す。filter_coeffは、フィルタ係数を示す。 num_of_filter_set_minus1 indicates the number of filter sets minus one. The implicit_filter_set_flag is a flag indicating that the information of the predetermined filter set is used. filter_set_idc is the identification information of the information of the preset filter set. num_of_filter_minus1 indicates the value of the number minus 1 of the color difference conversion filter. The implicit_filter_flag is a flag indicating that a predetermined filter information is used. filter_idc is the identification information of the filter information defined in advance. tap_length_minus1 indicates a value of the tap length minus 1 of the filter coefficient. filter_coeff indicates the filter coefficient.

図14は、色差変換フィルタ定義情報のデータ構造の一例を示す模式図であり、図9とは異なる例を示す図である。図14に示す例では、色差変換フィルタ定義情報は、filter_set_idcと、filter_idcと、Tap lengthと、Filter coefficientsと、Divisorと、Phase shiftと、Purposeと、を対応づけたテーブルである。 FIG. 14 is a schematic diagram showing an example of the data structure of the color difference conversion filter definition information, and is a diagram showing an example different from FIG. In the example shown in FIG. 14, the color difference conversion filter definition information is a table in which filter_set_idc, filter_idc, Tap dimension, Filter cohesions, Divisor, Phase shift, and Purpose are associated with each other.

filter_set_idcは、フィルタセットの情報の識別情報である。このfilter_set_idcの値は、図13に示すfilter_set_idcに対応する。 filter_set_idc is identification information of filter set information. The value of this filter_set_idc corresponds to the filter_set_idc shown in FIG.

filter_idcは、フィルタ情報の識別情報である。このfilter_idcの値は、図13に示すfilter_idcに対応する。 filter_idc is identification information of filter information. The value of filter_idc corresponds to filter_idc shown in FIG.

Tap lengthは、上記と同様に、フィルタ係数のタップ長を示す。Filter coefficientsは、フィルタ係数を示す。Divisorは、フィルタ処理において、除算を行う場合の分母の数を示す。Phase shiftは、フィルタの位相情報を示す。Purposeは、フィルタの目的を示し、色差フォーマットを変換する場合のダウンサンプリング用、アップサンプリング用を示す。 Tap length indicates the tap length of the filter coefficient as described above. Filter cofficients indicate the filter coefficient. Divisor indicates the number of denominators when dividing in filtering. Phase shift indicates the phase information of the filter. Purpose indicates the purpose of the filter, and indicates for downsampling and upsampling when converting the color difference format.

図15は、色差変換フィルタ定義情報におけるchroma_filter_info_present_flagの値が「1」の場合に存在する色差変換フィルタ情報の一例を示す。 FIG. 15 shows an example of the color difference conversion filter information that exists when the value of chroma_filter_info_present_flag in the color difference conversion filter definition information is “1”.

図15に示す色差変換フィルタ情報は、target_format_idc、implicit_vertical_flag、vertical_filter_idc、tap_length_vertical_minus1、ver_filter_coeff、second_filter_flag、second_vertical_filter_idc、tap_length_second_vertical_minus1、second_ver_filter_coeff、implicit_horizontal_flag、horizontal_filter_idc、tap_length_horizontal_minus1、及びhor_filter_coeffを含む。 Chrominance conversion filter information shown in FIG. 15 includes target_format_idc, implicit_vertical_flag, vertical_filter_idc, tap_length_vertical_minus1, ver_filter_coeff, second_filter_flag, second_vertical_filter_idc, tap_length_second_vertical_minus1, second_ver_filter_coeff, implicit_horizontal_flag, horizontal_filter_idc, tap_length_horizontal_minus1, and Hor_filter_coeff.

target_format_idcは、図5と同様に、第2色差フォーマットを示す。なお、図15に示す色差変換フィルタ情報では、target_format_idcの値に対する意味付けが、図5とは異なる。具体的には、図15に示す例では、target_format_idcの値が「0」である場合、第2色差フォーマットが輝度のみ規定されたモノクロフォーマットであることを示す。また、target_format_idcの値が「1」である場合、第2色差フォーマットが4:2:0フォーマットであることを示す。また、target_format_idcの値が「2」である場合、第2色差フォーマットが4:2:2フォーマットであることを示す。target_format_idcの値が「3」である場合、第2色差フォーマットは4:4:4フォーマットであることを示す。 target_format_idc indicates a second color difference format, as in FIG. In the color difference conversion filter information shown in FIG. 15, the meaning of the value of target_format_idc is different from that in FIG. Specifically, in the example shown in FIG. 15, when the value of target_format_idc is "0", it indicates that the second color difference format is a monochrome format in which only the brightness is defined. Further, when the value of target_format_idc is "1", it indicates that the second color difference format is the 4: 2: 0 format. Further, when the value of target_format_idc is "2", it indicates that the second color difference format is the 4: 2: 2 format. When the value of target_format_idc is "3", it indicates that the second color difference format is the 4: 4: 4 format.

なお、chroma_format_idcは、符号化データに含まれ、第1色差フォーマットを示す。 In addition, chroma_format_idc is included in the coded data and indicates the first color difference format.

implicit_vertical_flagは、予め定義した垂直方向のフィルタ情報を用いることを示すフラグである。vertical_filter_idcは、予め定義した垂直方向のフィルタ情報の識別情報である。tap_length_vertical_minus1は、垂直方向のフィルタ係数のタップ長マイナス1の値を示す。 The implicit_vertical_flag is a flag indicating that the predefined vertical filter information is used. vertical_filter_idc is pre-defined vertical filter information identification information. tap_length_vertical_minus1 indicates a value of the tap length minus 1 of the filter coefficient in the vertical direction.

ver_filter_coeffは、垂直方向のフィルタ係数を示す。second_filter_flagは、フィールド信号の場合に、トップフィールドとボトムフィールドで、垂直方向で異なるフィルタセットを使う場合に定義されるフラグであり、もし、second_filter_flagの値が「1」ならば、2つ目の垂直フィルタが定義できる。 ver_filter_coeff indicates the filter coefficient in the vertical direction. second_filter_flag is a flag defined when the top field and bottom field use different filter sets in the vertical direction in the case of a field signal, and if the value of second_filter_flag is "1", the second vertical Filters can be defined.

second_vertical_filter_idcは、予め定義した2つ目の垂直方向のフィルタ情報の識別情報である。tap_length_second_vertical_minus1は、2つ目の垂直方向のフィルタ係数のタップ長マイナス1の値を示す。second_ver_filter_coeffは、2つ目の垂直方向のフィルタ係数を示す。 second_vertical_filter_idc is the identification information of the second vertical filter information defined in advance. tap_length_second_vertical_minus1 indicates a value of tap length minus 1 of the second vertical filter coefficient. second_ver_filter_coeff indicates the second vertical filter coefficient.

implicit_horizontal_flagは、予め定めた水平方向のフィルタ情報を用いることを示すフラグである。 The implicit_horizontal_flag is a flag indicating that a predetermined horizontal filter information is used.

horizontal_filter_idcは、予め定義した水平方向のフィルタ情報の識別情報である。tap_length_horizontal_minus1は、水平方向のフィルタ係数のタップ長マイナス1の値を示す。hor_filter_coeffは、水平方向のフィルタ係数を示す。 horizontal_filter_idc is pre-defined horizontal filter information identification information. tap_length_horizontal_minus1 indicates a value of the tap length minus 1 of the horizontal filter coefficient. hor_filter_coeff indicates the filter coefficient in the horizontal direction.

例えば、chroma_format_idcの値が「1」、すなわち、符号化データのフォーマットである第1色差フォーマットが4:2:0フォーマットであるとする。また、target_format_idcの値が「1」以上、すなわち、復号画像の再生時の色差フォーマットである第2色差フォーマットが4:2:2、または4:4:4フォーマットであるとする。この場合、垂直方向にアップサンプリングの処理が必要である。このため、この場合、生成部16は、垂直方向のフィルタ情報(垂直アップサンプリングフィルタ情報)を特定情報として生成する。 For example, assume that the value of chroma_format_idc is "1", that is, the first color difference format, which is the format of the encoded data, is the 4: 2: 0 format. Further, it is assumed that the value of target_format_idc is "1" or more, that is, the second color difference format, which is the color difference format at the time of reproducing the decoded image, is the 4: 2: 2 or 4: 4: 4 format. In this case, upsampling processing is required in the vertical direction. Therefore, in this case, the generation unit 16 generates the filter information in the vertical direction (vertical upsampling filter information) as specific information.

また、chroma_fromat_idcの値が「1」より大きい、すなわち、符号化データのフォーマットである第1色差フォーマットが4:2:2フォーマット、または4:4:4フォーマットであるとする。また、target_format_idcの値が「1」、すなわち、再生時の色差フォーマットである第2色差フォーマットが、4:2:0フォーマットであるとする。この場合、特定情報は、垂直方向のフィルタ情報(垂直ダウンサンプリングフィルタ情報)である。 Further, it is assumed that the value of chroma_from_idc is larger than "1", that is, the first color difference format, which is the format of the encoded data, is the 4: 2: 2 format or the 4: 4: 4 format. Further, it is assumed that the value of target_format_idc is "1", that is, the second color difference format which is the color difference format at the time of reproduction is the 4: 2: 0 format. In this case, the specific information is vertical filter information (vertical downsampling filter information).

また、chroma_format_idcの値が「1」または「2」、すなわち、第1色差フォーマットが、4:2:0フォーマット、または4:2:2フォーマットであるとする。また、target_format_idcの値が「3」、すなわち、第2色差フォーマットが4:4:4フォーマットであるとする。この場合、特定情報は、水平方向のフィルタ情報(水平アップサンプリングフィルタ情報)である。 Further, it is assumed that the value of chroma_format_idc is "1" or "2", that is, the first color difference format is 4: 2: 0 format or 4: 2: 2 format. Further, it is assumed that the value of target_format_idc is "3", that is, the second color difference format is the 4: 4: 4 format. In this case, the specific information is horizontal filter information (horizontal upsampling filter information).

また、chroma_format_idcの値が「3」、すなわち、第1色差フォーマットが、4:4:4フォーマットであるとする。また、target_format_idcの値が「1」または「2」、すなわち、第2色差フォーマットが、4:2:0フォーマット、または4:2:2フォーマットであるとする。この場合、特定情報は、水平方向のフィルタ情報(水平ダウンサンプリングフィルタ情報)である。 Further, it is assumed that the value of chroma_format_idc is "3", that is, the first color difference format is the 4: 4: 4 format. Further, it is assumed that the value of target_format_idc is "1" or "2", that is, the second color difference format is 4: 2: 0 format or 4: 2: 2 format. In this case, the specific information is horizontal filter information (horizontal downsampling filter information).

図16は、色差変換フィルタ定義情報のデータ構造の図14とは異なる例を示す模式図である。 FIG. 16 is a schematic diagram showing an example different from FIG. 14 in the data structure of the color difference conversion filter definition information.

図16に示す色差変換フィルタ定義情報は、filter_idcと、Tap lengthと、Filter coefficientsと、Divisorと、Phase shiftと、Purposeと、を対応づけたテーブルである。 The color difference conversion filter definition information shown in FIG. 16 is a table in which filter_idc, Tap dimension, Filter cohesions, Divisor, Phase shift, and Purpose are associated with each other.

図16中の、filter_idcは、フィルタセットの情報の識別情報である。図15に示す色差変換情報に含まれるvertical_filter_idc、second_filter_idc、horizontal_filter_idcに対応する。 In FIG. 16, filter_idc is identification information of filter set information. Corresponds to vertical_filter_idc, second_filter_idc, and horizontal_filter_idc included in the color difference conversion information shown in FIG.

Tap lengthは、フィルタ係数のタップ長を示す。Filter coefficientsは、フィルタ係数を示す。Divisorは、フィルタ処理において、除算を行う場合の分母の数を示す。Phase shiftは、フィルタの位相情報を示す。Purposeは、フィルタの目的を示し、色差フォーマットを変換する場合のダウンサンプリング用、アップサンプリング用を示す。 Tap length indicates the tap length of the filter coefficient. Filter cofficients indicate the filter coefficient. Divisor indicates the number of denominators when dividing in filtering. Phase shift indicates the phase information of the filter. Purpose indicates the purpose of the filter, and indicates for downsampling and upsampling when converting the color difference format.

図17は、図8や、図12に示す色差変換情報におけるchroma_filter_info_present_flagの値が「1」の場合に存在する色差変換フィルタ情報の一例を示す。 FIG. 17 shows an example of the color difference conversion filter information existing when the value of chroma_filter_info_present_flag in the color difference conversion information shown in FIGS. 8 and 12 is “1”.

図17に示す色差変換フィルタは、target_format_idc、tap_length_vertical_minus1、ver_filter_coeff、second_filter_flag、tap_length_second_vertical_minus1、second_ver_filter_coeff、tap_length_horizontal_minus1、及びhor_filter_coeffを含む。なお、図17に示す色差変換フィルタと、図15に示す色差変換フィルタとの違いは、全てのフィルタ情報が明示的に定義されている点である。 The color difference conversion filter shown in FIG. 17 includes target_format_idc, tap_length_vertical_minus1, ver_filter_coeff, second_filter_flag, tap_length_second_vertical_minus1, second_verminus1, second_vert_vert_verff. The difference between the color difference conversion filter shown in FIG. 17 and the color difference conversion filter shown in FIG. 15 is that all the filter information is explicitly defined.

図1へ戻り、生成部16は、生成した色差変換情報をNALユニット生成部18へ出力する。 Returning to FIG. 1, the generation unit 16 outputs the generated color difference conversion information to the NAL unit generation unit 18.

NALユニット生成部18は、符号化部14から符号化データを受け付ける。また、NALユニット生成部18は、生成部16から色差変換情報を受け付ける。 The NAL unit generation unit 18 receives coded data from the coding unit 14. Further, the NAL unit generation unit 18 receives the color difference conversion information from the generation unit 16.

NALユニット生成部18は、符号化部14から受け付けた符号化データ、生成部16から受け付けた色差変換情報、及びヘッダ情報及び書き込み読み出しの際の調整情報であるバイトアライメント情報等を含むNAL(Network Abstraction Layer)ユニット情報を生成する。NALユニット生成部18は、生成したNALユニット情報を、伝送情報生成部20へ出力する。 The NAL unit generation unit 18 includes NAL (Network) including coding data received from the coding unit 14, color difference conversion information received from the generation unit 16, header information, byte alignment information which is adjustment information at the time of writing / reading, and the like. Header Layer) Generates unit information. The NAL unit generation unit 18 outputs the generated NAL unit information to the transmission information generation unit 20.

NALユニット情報とは、符号化装置10が出力する後述する伝送情報に含まれる、ハイレベルシンタクスに相当する情報である。ハイレベルシンタクスとは、伝送情報の構造(シンタクス)の内、スライスより上位のシンタクスであり、伝送情報のフレーム全体に影響を与えるパラメータを含む。本実施の形態では、上述したように、NALユニット情報は、符号化データ、生成部16から受け付けた色差変換情報、及びヘッダ情報及び書き込み読み出しの際の調整情報であるバイトアライメント情報等を含む。 The NAL unit information is information corresponding to high-level syntax included in the transmission information to be described later, which is output by the coding apparatus 10. The high-level syntax is a syntax higher than a slice in the structure (syntax) of transmission information, and includes parameters that affect the entire frame of transmission information. In the present embodiment, as described above, the NAL unit information includes coded data, color difference conversion information received from the generation unit 16, header information, byte alignment information which is adjustment information at the time of writing / reading, and the like.

伝送情報生成部20は、NALユニット生成部18からNALユニット情報を受け付ける。伝送情報生成部20は、受け付けたNALユニット情報を、MPEG−2システムや、ISOファイルフォーマット等のシステムレイヤの情報に変換し、伝送情報を生成する。伝送情報生成部20は、生成した伝送情報を出力する。 The transmission information generation unit 20 receives NAL unit information from the NAL unit generation unit 18. The transmission information generation unit 20 converts the received NAL unit information into information of a system layer such as an MPEG-2 system or an ISO file format, and generates transmission information. The transmission information generation unit 20 outputs the generated transmission information.

次に、符号化装置10で実行する符号化処理を説明する。 Next, the coding process executed by the coding apparatus 10 will be described.

図18は、符号化装置10で実行する符号化処理の手順を示すフローチャートである。 FIG. 18 is a flowchart showing a procedure of the coding process executed by the coding apparatus 10.

まず、変換部12が、符号化装置10で受け付けた原画像について、色差成分の解像度を変換する色差変換処理を実行する(ステップS100)。そして、変換部12は、色差成分の解像度を変換した原画像を、色差変換画像として符号化部14へ出力する。また、変換部12は、色差信号情報を生成部16へ出力する。 First, the conversion unit 12 executes a color difference conversion process for converting the resolution of the color difference component on the original image received by the coding device 10 (step S100). Then, the conversion unit 12 outputs the original image obtained by converting the resolution of the color difference component to the coding unit 14 as a color difference conversion image. Further, the conversion unit 12 outputs the color difference signal information to the generation unit 16.

次に、符号化部14が、変換部12から受け付けた色差変換画像を符号化し、符号化データを生成する(ステップS102)。符号化部14は、符号化データをNALユニット生成部18へ出力する。また、符号化部14は、色差変換画像と同じ色差フォーマット(4:2:0フォーマット)の参照画像を生成部16へ出力する。 Next, the coding unit 14 encodes the color difference conversion image received from the conversion unit 12 and generates coded data (step S102). The coding unit 14 outputs the coded data to the NAL unit generation unit 18. Further, the coding unit 14 outputs a reference image in the same color difference format (4: 2: 0 format) as the color difference converted image to the generation unit 16.

次に、生成部16が、変換部12から受け付けた色差信号情報と、符号化部14から受け付けた、色差変換画像の色差フォーマットの参照画像と、を用いて、色差変換情報を生成する(ステップS104)。生成部16は、生成した色差変換情報をNALユニット生成部18へ出力する。 Next, the generation unit 16 generates the color difference conversion information by using the color difference signal information received from the conversion unit 12 and the color difference format reference image of the color difference conversion image received from the coding unit 14 (step). S104). The generation unit 16 outputs the generated color difference conversion information to the NAL unit generation unit 18.

次に、NALユニット生成部18が、符号化部14から受け付けた符号化データ、生成部16から受け付けた色差変換情報、及びヘッダ情報及び書き込み読み出しの際の調整情報であるバイトアライメント情報等を含む、NALユニット情報を生成する(ステップS106)。NALユニット生成部18は、生成したNALユニット情報を、伝送情報生成部20へ出力する。 Next, the NAL unit generation unit 18 includes the coding data received from the coding unit 14, the color difference conversion information received from the generation unit 16, the header information, the byte alignment information which is the adjustment information at the time of writing / reading, and the like. , NAL unit information is generated (step S106). The NAL unit generation unit 18 outputs the generated NAL unit information to the transmission information generation unit 20.

次に、伝送情報生成部20が、NALユニット生成部18から受け付けたNALユニット情報をシステムレイヤの情報に変換し、伝送情報を生成する(ステップS108)。伝送情報生成部20は、生成した伝送情報を出力する。 Next, the transmission information generation unit 20 converts the NAL unit information received from the NAL unit generation unit 18 into system layer information, and generates transmission information (step S108). The transmission information generation unit 20 outputs the generated transmission information.

以上説明したように、本実施の形態の符号化装置10によれば、符号化部14が、色差変換画像を符号化して符号化データを生成する。生成部16は、符号化データの色差成分の解像度を示す第1色差フォーマットと、符号化データを復号した復号画像の再生時の色差成分の解像度を示す第2色差フォーマットと、第1色差フォーマットの符号化データの復号画像を第2色差フォーマットに変換するときに用いるフィルタを特定するための特定情報と、を含む色差変換情報を生成する。 As described above, according to the coding apparatus 10 of the present embodiment, the coding unit 14 encodes the color difference conversion image to generate the coded data. The generation unit 16 has a first color difference format indicating the resolution of the color difference component of the coded data, a second color difference format indicating the resolution of the color difference component at the time of reproduction of the decoded image obtained by decoding the coded data, and a first color difference format. The color difference conversion information including the specific information for specifying the filter used when converting the decoded image of the coded data into the second color difference format is generated.

このため、符号化装置10で符号化された符号化データを復号した復号画像の再生時には、色差変換情報に含まれる特定情報によって特定されるフィルタを用いて、第1色差フォーマットの符号化データの復号画像を第2色差フォーマットに変換することで、解像度変換による画質劣化を抑制することができる。 Therefore, when reproducing the decoded image obtained by decoding the coded data encoded by the coding apparatus 10, the coded data in the first color difference format is subjected to the filter specified by the specific information included in the color difference conversion information. By converting the decoded image to the second color difference format, deterioration of image quality due to resolution conversion can be suppressed.

従って、本実施の形態の符号化装置10は、画質劣化を抑制することができる。 Therefore, the coding device 10 of the present embodiment can suppress deterioration of image quality.

(変形例1)
なお、上記実施の形態では、特定情報が、第1色差フォーマットの復号画像を第2色差フォーマットに変換するために用いるフィルタ情報である場合を説明した。
(Modification example 1)
In the above embodiment, the case where the specific information is the filter information used for converting the decoded image of the first color difference format into the second color difference format has been described.

しかし、特定情報は、第1色差フォーマットの復号画像を第2色差フォーマットに変換するときに用いるフィルタを特定するための情報であればよい。例えば、特定情報は、第1色差フォーマットの復号画像を第2色差フォーマットに変換するために用いるフィルタ情報を識別するための識別情報であってもよい。 However, the specific information may be any information for specifying the filter used when converting the decoded image of the first color difference format into the second color difference format. For example, the specific information may be identification information for identifying the filter information used for converting the decoded image of the first color difference format into the second color difference format.

この場合には、フィルタ情報とフィルタ情報の識別情報とを対応づけた上記定義情報を、符号化装置10と、符号化データを復号する復号装置(後述する復号装置等)と、に予め記憶すればよい。そして、符号化データを復号する装置側では、符号化データを復号した復号画像に、特定情報に含まれる識別情報に対応するフィルタ情報を用いたフィルタ処理を行うことで、復号画像の色差フォーマットを変換すればよい。 In this case, the definition information in which the filter information and the identification information of the filter information are associated with each other is stored in advance in the coding device 10 and a decoding device (decoding device or the like described later) for decoding the coded data. Just do it. Then, on the device side that decodes the coded data, the decoded image obtained by decoding the coded data is filtered using the filter information corresponding to the identification information included in the specific information, so that the color difference format of the decoded image is obtained. You just have to convert.

また、特定情報は、変換部12でフィルタ処理に用いたフィルタ情報であってもよい。 Further, the specific information may be the filter information used for the filter processing by the conversion unit 12.

この場合、符号化データを復号する復号装置では、特定情報に含まれるフィルタ情報から、第1色差フォーマットの復号画像を第2色差フォーマットに変換するときに用いるフィルタを設定する。そして、復号装置は、設定したフィルタを用いて、復号画像の色差フォーマットを変換すればよい。 In this case, the decoding device that decodes the coded data sets a filter to be used when converting the decoded image of the first color difference format into the second color difference format from the filter information included in the specific information. Then, the decoding device may convert the color difference format of the decoded image by using the set filter.

(実施の形態2)
本実施の形態では、実施の形態1とは異なる方法で色差変換情報を生成する形態を説明する。
(Embodiment 2)
In this embodiment, a mode for generating color difference conversion information by a method different from that of the first embodiment will be described.

図19は、本実施の形態の符号化装置10Aの機能的構成を示す模式図である。 FIG. 19 is a schematic diagram showing a functional configuration of the coding device 10A of the present embodiment.

符号化装置10Aは、変換部120、符号化部14、生成部160、NALユニット生成部18、及び伝送情報生成部20を備える。 The coding device 10A includes a conversion unit 120, a coding unit 14, a generation unit 160, a NAL unit generation unit 18, and a transmission information generation unit 20.

符号化装置10Aは、変換部12に替えて変換部120、生成部16に替えて生成部160を備えた以外は、実施の形態1の符号化装置10と同様の構成である。 The coding device 10A has the same configuration as the coding device 10 of the first embodiment except that the conversion unit 120 is replaced with the conversion unit 12 and the generation unit 160 is provided instead of the generation unit 16.

なお、変換部120は、色差信号情報として、変換部120で用いたフィルタ情報を生成部160へ出力する以外は、変換部12と同様の構成である。具体的には、変換部120は、変換部12Aでフィルタ処理に用いたフィルタ情報と、変換部12Bでフィルタ処理に用いたフィルタ情報と、を含む色差信号情報を生成部160へ出力する。なお、本実施の形態では、実施の形態1と同様に、変換部12Aで用いたフィルタ情報は、水平ダウンサンプリングフィルタ情報であり、変換部12Bで用いたフィルタ情報は、垂直ダウンサンプリングフィルタ情報である。 The conversion unit 120 has the same configuration as the conversion unit 12 except that the filter information used by the conversion unit 120 is output to the generation unit 160 as the color difference signal information. Specifically, the conversion unit 120 outputs the color difference signal information including the filter information used for the filter processing by the conversion unit 12A and the filter information used for the filter processing by the conversion unit 12B to the generation unit 160. In the present embodiment, as in the first embodiment, the filter information used by the conversion unit 12A is the horizontal downsampling filter information, and the filter information used by the conversion unit 12B is the vertical downsampling filter information. is there.

生成部160は、変換部120から色差信号情報を受け付ける。生成部160は、色差信号情報を用いて、色差変換情報を生成する。 The generation unit 160 receives the color difference signal information from the conversion unit 120. The generation unit 160 generates the color difference conversion information by using the color difference signal information.

図20は、生成部160の機能的構成を示す模式図である。 FIG. 20 is a schematic diagram showing a functional configuration of the generation unit 160.

生成部160は、垂直フィルタ情報生成部160A、水平フィルタ情報生成部160B、及び生成部160Cを備える。 The generation unit 160 includes a vertical filter information generation unit 160A, a horizontal filter information generation unit 160B, and a generation unit 160C.

垂直フィルタ情報生成部160Aは、色差信号情報に含まれる情報の内、変換部12Bでフィルタ処理に用いたフィルタ情報(垂直ダウンサンプリングフィルタ情報)を受け付ける。 The vertical filter information generation unit 160A receives the filter information (vertical downsampling filter information) used for the filter processing by the conversion unit 12B among the information included in the color difference signal information.

垂直フィルタ情報生成部160Aは、変換部12Bで用いた垂直ダウンサンプリングフィルタ情報から、4:2:0フォーマットの画像を4:2:2フォーマットに変換するために用いるフィルタ情報を設計する。すなわち、垂直フィルタ情報生成部160Aは、4:2:0フォーマットの復号画像に対して垂直方向アップサンプリング処理を行うことで、4:2:2フォーマットの画像を得るために用いるフィルタ情報を設計する。該フィルタ情報の設計は、下記式(4)を用いて行う。そして、垂直フィルタ情報生成部160Aは、設計したフィルタ情報である垂直フィルタ情報を、生成部160Cへ出力する。 The vertical filter information generation unit 160A designs the filter information used to convert the image in the 4: 2: 0 format into the 4: 2: 2 format from the vertical downsampling filter information used in the conversion unit 12B. That is, the vertical filter information generation unit 160A designs the filter information used to obtain the image in the 4: 2: 2 format by performing the vertical upsampling process on the decoded image in the 4: 2: 0 format. .. The filter information is designed using the following equation (4). Then, the vertical filter information generation unit 160A outputs the designed vertical filter information, which is the filter information, to the generation unit 160C.

水平フィルタ情報生成部160Bは、色差信号情報に含まれる情報の内、変換部12Aでフィルタ処理に用いたフィルタ情報(水平ダウンサンプリングフィルタ情報)から、4:2:2フォーマットの画像を4:4:4フォーマットの原画像に変換するために用いるフィルタ情報を設計する。すなわち、水平フィルタ情報生成部160Bは、4:2:2フォーマットの画像に対して水平アップサンプリング処理を行うことで、4:4:4フォーマットの原画像を得るために用いるフィルタ情報を設計する。該フィルタ情報の設計は、下記式(4)を用いて行う。そして、水平フィルタ情報生成部160Bは、設計したフィルタ情報である水平フィルタ情報を、生成部160Cへ出力する。 The horizontal filter information generation unit 160B uses the filter information (horizontal downsampling filter information) used for the filter processing by the conversion unit 12A among the information included in the color difference signal information to obtain an image in 4: 2: 2 format at 4: 4. : Design the filter information used to convert to the original image in 4 formats. That is, the horizontal filter information generation unit 160B designs the filter information used to obtain the original image in the 4: 4: 4 format by performing the horizontal upsampling process on the image in the 4: 2: 2 format. The filter information is designed using the following equation (4). Then, the horizontal filter information generation unit 160B outputs the horizontal filter information, which is the designed filter information, to the generation unit 160C.

Figure 2020145765
Figure 2020145765

式(4)は、垂直フィルタ情報生成部160A及び水平フィルタ情報生成部160Bがフィルタ設計時に用いるフィルタの算出式である。 Equation (4) is a filter calculation equation used by the vertical filter information generation unit 160A and the horizontal filter information generation unit 160B at the time of filter design.

具体的には、式(4)は、一次元の画像と、該一次元の画像を構成する各画素における色差成分を2倍にアップサンプリングした後に各画素における色差成分を1/2にダウンサンプリングした画像と、が同じ画質の画像となるように、フィルタ情報を設計するための式である。 Specifically, in the equation (4), the color difference component in each pixel is downsampled to 1/2 after the one-dimensional image and the color difference component in each pixel constituting the one-dimensional image are upsampled twice. This is an equation for designing the filter information so that the image quality is the same as that of the image.

式(4)中、Dは、ダウンサンプリングフィルタ係数を示すベクトルであり、d〜d2n(nは1以上の整数)は、ダウンサンプリングフィルタのフィルタ係数を示す。U及びVは、アップサンプリングフィルタ係数を示すベクトルであり、u〜u(nは1以上の整数)は、トップフィールド用のアップサンプリングに用いるフィルタ係数を示し、v〜v(nは1以上の整数)は、ボトムフィールド用のアップサンプリングに用いるフィルタ係数を示す。 In the equation (4), D is a vector indicating the downsampling filter coefficient, and d 1 to d 2n (n is an integer of 1 or more) indicates the filter coefficient of the downsampling filter. U and V is a vector indicating the up-sampling filter coefficients, u 1 ~u n (n is an integer of 1 or more) represents a filter coefficient used for upsampling for the top field, v 1 to v n (n Is an integer greater than or equal to 1) indicates the filter coefficient used for upsampling for the bottom field.

また、式(4)中、Xは、アップサンプリングフィルタ係数を要素とする2n行(2n−1)列の行列であり、Iは、要素数2n−1でn番目が1で残りが0であるベクトルである。 Further, in the equation (4), X is a matrix of 2n rows (2n-1) having the upsampling filter coefficient as an element, and I is the number of elements 2n-1, the nth being 1 and the rest being 0. It is a vector.

そして、DX=Iを満たすように、D、U、Vを設計することで、フィルタ情報を設計する。 Then, the filter information is designed by designing D, U, and V so as to satisfy DX = I.

式(4)を用いることによって、ダウンサンプリングフィルタ係数から、対応するアップサンプリングフィルタ係数を求めることができる。また、逆に、アップサンプリングフィルタ係数から、対応するダウンサンプリングフィルタ係数を求めることもできる。 By using the equation (4), the corresponding upsampling filter coefficient can be obtained from the downsampling filter coefficient. On the contrary, the corresponding downsampling filter coefficient can be obtained from the upsampling filter coefficient.

生成部160Cは、色差変換情報を生成する。詳細には、生成部160Cは、符号化部14で符号化した符号化データの第1色差フォーマットとして、符号化部14から受け付けた参照画像の色差フォーマット(4:2:0フォーマット)を用いる。また、生成部160Cは、第2色差フォーマットを、図示を省略するメモリから読取る。また、生成部160Cは、特定情報として、垂直フィルタ情報生成部160Aから受け付けた垂直フィルタ情報と、水平フィルタ情報生成部160Bから受け付けた水平フィルタ情報と、を用いる。生成部160Cは、これらの第1色差フォーマット、第2色差フォーマット、及び特定情報を含む色差変換情報を生成し、NALユニット生成部18へ出力する。 The generation unit 160C generates color difference conversion information. Specifically, the generation unit 160C uses the color difference format (4: 2: 0 format) of the reference image received from the coding unit 14 as the first color difference format of the coded data encoded by the coding unit 14. Further, the generation unit 160C reads the second color difference format from a memory (not shown). Further, the generation unit 160C uses the vertical filter information received from the vertical filter information generation unit 160A and the horizontal filter information received from the horizontal filter information generation unit 160B as specific information. The generation unit 160C generates the first color difference format, the second color difference format, and the color difference conversion information including the specific information, and outputs the color difference conversion information to the NAL unit generation unit 18.

以上説明したように、本実施の形態の符号化装置10Aにおいては、生成部160が、変換部120で用いたフィルタ情報を色差信号情報として受け付ける。生成部160は、受け付けた色差信号情報を用いて、色差変換情報を生成する。 As described above, in the coding apparatus 10A of the present embodiment, the generation unit 160 receives the filter information used by the conversion unit 120 as the color difference signal information. The generation unit 160 uses the received color difference signal information to generate color difference conversion information.

このため、符号化装置10Aで符号化された符号化データを復号した復号画像の再生時には、色差変換情報に含まれる特定情報によって特定されるフィルタ情報を用いて、第1色差フォーマットの符号化データの復号画像を第2色差フォーマットに変換することで、解像度変換による画質劣化を抑制することができる。 Therefore, when reproducing the decoded image obtained by decoding the coded data encoded by the coding apparatus 10A, the coded data in the first color difference format is used by using the filter information specified by the specific information included in the color difference conversion information. By converting the decoded image of the above to the second color difference format, deterioration of image quality due to resolution conversion can be suppressed.

従って、実施の形態1とは異なる方法で色差変換情報を生成した場合についても、実施の形態1と同様の効果が得られる。 Therefore, even when the color difference conversion information is generated by a method different from that of the first embodiment, the same effect as that of the first embodiment can be obtained.

また、実施の形態1における符号化装置10による効果に加えて、生成部160(生成部16)の構成を簡略化することができる。 Further, in addition to the effect of the coding device 10 in the first embodiment, the configuration of the generation unit 160 (generation unit 16) can be simplified.

(変形例2)
なお、上記実施の形態では、変換部12は、二つの変換部(変換部12A、変換部12B)を備え、原画像について、色差成分の解像度を複数回変換する場合を説明した。しかし、変換部12は、1回の色差変換を行う機能部であってもよい。また、上記実施の形態では、変換部12は、色差成分の解像度を縮小するフィルタ処理(ダウンサンプリング)を行う場合を説明した。しかし、変換部12は、色差成分の解像度を拡大するフィルタ処理(アップサンプリング)を行ってもよい。
(Modification 2)
In the above embodiment, the conversion unit 12 includes two conversion units (conversion unit 12A and conversion unit 12B), and describes a case where the resolution of the color difference component is converted a plurality of times for the original image. However, the conversion unit 12 may be a functional unit that performs one color difference conversion. Further, in the above embodiment, the case where the conversion unit 12 performs a filter process (downsampling) for reducing the resolution of the color difference component has been described. However, the conversion unit 12 may perform a filter process (upsampling) to expand the resolution of the color difference component.

この場合、図19に示すように、符号化装置10Aは、変換部120に替えて変換部122を備え、生成部160に替えて生成部162を備える。 In this case, as shown in FIG. 19, the coding apparatus 10A includes a conversion unit 122 in place of the conversion unit 120, and a generation unit 162 in place of the generation unit 160.

図21は、変換部122の機能的構成を示す模式図である。変換部122は、変換部122A、及び出力調整部122Bを備える。 FIG. 21 is a schematic diagram showing a functional configuration of the conversion unit 122. The conversion unit 122 includes a conversion unit 122A and an output adjustment unit 122B.

例えば、変換部122は、原画像として、4:2:0フォーマットの原画像を受け付ける。変換部122Aは、受け付けた4:2:0フォーマットの原画像を4:2:2フォーマットの画像に変換する。変換部122Aは、4:2:0フォーマットの原画像を構成する画素の色差成分について、垂直方向に画素補間を行うフィルタ情報を用いたフィルタ処理を行う。これによって、変換部122Aは、4:2:0フォーマットの画像を構成する画素の色差成分を、垂直方向に補間するアップサンプリングを行う。すなわち、変換部122Aは、4:2:0フォーマットの原画像を4:2:2フォーマットの画像に変換する。変換部122Aは、変換後の4:2:2フォーマットの画像を、出力調整部122Bへ出力する。 For example, the conversion unit 122 accepts an original image in a 4: 2: 0 format as an original image. The conversion unit 122A converts the received original image in the 4: 2: 0 format into an image in the 4: 2: 2 format. The conversion unit 122A performs filter processing using filter information for performing pixel interpolation in the vertical direction with respect to the color difference component of the pixels constituting the original image in the 4: 2: 0 format. As a result, the conversion unit 122A performs upsampling that vertically interpolates the color difference components of the pixels constituting the image in the 4: 2: 0 format. That is, the conversion unit 122A converts the original image in the 4: 2: 0 format into the image in the 4: 2: 2 format. The conversion unit 122A outputs the converted 4: 2: 2 format image to the output adjustment unit 122B.

出力調整部122Bは、変換部122Aから受け付けた4:2:2フォーマットの画像を構成する各画素値が、規格上定められた最小値以上であり且つ規格上定められた最大値以下の範囲となるように、クリッピング処理を行う。そして、クリッピング処理後の原画像を、変換部122で色差変換した色差変換画像として、符号化部14へ出力する。 The output adjustment unit 122B has a range in which each pixel value constituting the 4: 2: 2 format image received from the conversion unit 122A is equal to or more than the minimum value defined by the standard and is equal to or less than the maximum value defined by the standard. Clipping processing is performed so that Then, the original image after the clipping process is output to the coding unit 14 as a color difference conversion image converted by the conversion unit 122.

また、出力調整部122Bは、変換部122Aでフィルタ処理に用いたフィルタ情報を含む色差信号情報を、生成部162へ出力する。 Further, the output adjustment unit 122B outputs the color difference signal information including the filter information used for the filter processing by the conversion unit 122A to the generation unit 162.

次に、生成部162について説明する。 Next, the generation unit 162 will be described.

図22は、生成部162の機能的構成を示す模式図である。 FIG. 22 is a schematic diagram showing a functional configuration of the generation unit 162.

生成部162は、水平フィルタ情報生成部162A及び生成部162Bを備える。 The generation unit 162 includes a horizontal filter information generation unit 162A and a generation unit 162B.

水平フィルタ情報生成部162Aは、色差信号情報として、変換部122Aでフィルタ処理に用いたフィルタ情報(水平アップサンプリングフィルタ情報)を受け付ける。 The horizontal filter information generation unit 162A receives the filter information (horizontal upsampling filter information) used for the filter processing by the conversion unit 122A as the color difference signal information.

水平フィルタ情報生成部162Aは、変換部122Aでフィルタ処理に用いた水平アップサンプリングフィルタ情報から、4:2:2フォーマットの画像を4:2:0フォーマットに変換するために用いるフィルタ情報を設計する。すなわち、水平フィルタ情報生成部162Aは、4:2:2フォーマットの画像に対して水平方向ダウンサンプリング処理を行うことで、4:2:0フォーマットの画像を得るために用いるフィルタ情報を設計する。そして、水平フィルタ情報生成部162Aは、設計したフィルタ情報である水平フィルタ情報を、生成部162Bへ出力する。 The horizontal filter information generation unit 162A designs the filter information used to convert the image in the 4: 2: 2 format into the 4: 2: 0 format from the horizontal upsampling filter information used in the filter processing by the conversion unit 122A. .. That is, the horizontal filter information generation unit 162A designs the filter information used to obtain the image in the 4: 2: 0 format by performing the horizontal downsampling process on the image in the 4: 2: 2 format. Then, the horizontal filter information generation unit 162A outputs the horizontal filter information, which is the designed filter information, to the generation unit 162B.

生成部162Bは、色差変換情報を生成する。詳細には、生成部162Bは、符号化部14で符号化した符号化データの第1色差フォーマットとして、符号化部14から受け付けた参照画像の色差フォーマット(4:2:2フォーマット)を用いる。また、生成部162Bは、第2色差フォーマットを、図示を省略するメモリから読取る。また、生成部162Bは、特定情報として、水平フィルタ情報生成部162Aから受け付けた水平フィルタ情報を用いる。 The generation unit 162B generates the color difference conversion information. Specifically, the generation unit 162B uses the color difference format (4: 2: 2 format) of the reference image received from the coding unit 14 as the first color difference format of the coded data encoded by the coding unit 14. Further, the generation unit 162B reads the second color difference format from a memory (not shown). Further, the generation unit 162B uses the horizontal filter information received from the horizontal filter information generation unit 162A as the specific information.

生成部162Bは、これらの第1色差フォーマット、第2色差フォーマット、及び特定情報、を含む色差変換情報を生成し、NALユニット生成部18へ出力する。 The generation unit 162B generates color difference conversion information including these first color difference format, second color difference format, and specific information, and outputs the color difference conversion information to the NAL unit generation unit 18.

このように、変換部122が、色差成分の解像度を拡大するフィルタ処理(アップサンプリング)を行う場合についても、生成部162が、第1色差フォーマットと、第2色差フォーマットと、特定情報と、を含む色差変換情報を生成する。 In this way, even when the conversion unit 122 performs the filter processing (upsampling) for expanding the resolution of the color difference component, the generation unit 162 can display the first color difference format, the second color difference format, and the specific information. Generate the color difference conversion information including.

従って、本変形例においても、実施の形態1と同様の効果が得られる。 Therefore, in this modification as well, the same effect as that of the first embodiment can be obtained.

(変形例3)
なお、上記実施の形態では、符号化装置10、符号化装置10Aにおいて、色差変換を行う場合を説明したが、色差変換を行う変換部12(変換部120、変換部122)を備えない構成であってもよい。
(Modification 3)
In the above embodiment, the case where the color difference conversion is performed in the coding device 10 and the coding device 10A has been described, but the configuration does not include the conversion unit 12 (conversion unit 120, conversion unit 122) for performing the color difference conversion. There may be.

図23は、符号化装置10Bの機能的構成を示す模式図である。 FIG. 23 is a schematic diagram showing a functional configuration of the coding device 10B.

符号化装置10Bは、符号化部14、NALユニット生成部18、伝送情報生成部20、及び生成部16を備える。 The coding device 10B includes a coding unit 14, a NAL unit generation unit 18, a transmission information generation unit 20, and a generation unit 16.

符号化装置10Bは、変換部12を備えない構成である以外は、実施の形態1の符号化装置10と同様の構成である。なお、本実施の形態においては、符号化装置10Bの符号化部14は、外部装置等から色差変換画像を受け付ける。また、生成部16は、色差変換情報を外部装置等から受け付ける。 The coding device 10B has the same configuration as the coding device 10 of the first embodiment, except that the coding device 10B does not include the conversion unit 12. In the present embodiment, the coding unit 14 of the coding device 10B receives the color difference conversion image from an external device or the like. Further, the generation unit 16 receives the color difference conversion information from an external device or the like.

このように、符号化装置10Bは、変換部12を備えない構成であってもよい。 As described above, the coding device 10B may be configured not to include the conversion unit 12.

(実施の形態3)
本実施の形態では、復号装置を説明する。復号装置は、符号化装置10、10A、10Bで生成された伝送情報に含まれる符号化データを復号する装置である。
(Embodiment 3)
In this embodiment, the decoding device will be described. The decoding device is a device that decodes the coded data included in the transmission information generated by the coding devices 10, 10A, and 10B.

図24は、本実施の形態の復号装置の機能的構成を示す模式図である。本実施の形態の復号装置50は、伝送情報復号部52、NALユニット復号部54、復号部56、復号部58、及び変換部60を備える。 FIG. 24 is a schematic diagram showing a functional configuration of the decoding device of the present embodiment. The decoding device 50 of the present embodiment includes a transmission information decoding unit 52, a NAL unit decoding unit 54, a decoding unit 56, a decoding unit 58, and a conversion unit 60.

伝送情報復号部52は、伝送情報を受け付ける。本実施の形態では、一例として、実施の形態1の符号化装置10から伝送情報を受け付ける場合を説明する。また、本実施の形態では、符号化装置10から、図5に示す色差変換情報を含む伝送情報を受け付ける場合を説明する。伝送情報復号部52は、受け付けた伝送情報から、NALユニット情報を生成する。 The transmission information decoding unit 52 receives the transmission information. In the present embodiment, as an example, a case where transmission information is received from the coding device 10 of the first embodiment will be described. Further, in the present embodiment, a case where transmission information including the color difference conversion information shown in FIG. 5 is received from the coding device 10 will be described. The transmission information decoding unit 52 generates NAL unit information from the received transmission information.

NALユニット復号部54は、伝送情報復号部52からNALユニット情報を受け付け、復号する。これにより、NALユニット復号部54は、符号化データ、色差変換情報、バイトアライメント情報等を得る。 The NAL unit decoding unit 54 receives and decodes the NAL unit information from the transmission information decoding unit 52. As a result, the NAL unit decoding unit 54 obtains coded data, color difference conversion information, byte alignment information, and the like.

NALユニット復号部54は、NALユニット情報から得た符号化データを、復号部56へ出力する。また、NALユニット復号部54は、NALユニット情報から得た色差変換情報を、復号部58へ出力する。 The NAL unit decoding unit 54 outputs the coded data obtained from the NAL unit information to the decoding unit 56. Further, the NAL unit decoding unit 54 outputs the color difference conversion information obtained from the NAL unit information to the decoding unit 58.

復号部58は、色差変換情報を復号し、第1色差フォーマット、第2色差フォーマット、及び特定情報を得る。そして、変換部60へ出力する。 The decoding unit 58 decodes the color difference conversion information and obtains the first color difference format, the second color difference format, and specific information. Then, it is output to the conversion unit 60.

図25は、復号部58の機能的構成を示す模式図である。 FIG. 25 is a schematic diagram showing a functional configuration of the decoding unit 58.

図25に示すように、復号部58は、復号部58Aを含む。復号部58Aは、色差変換情報を解析し、色差変換情報に含まれる、第1色差フォーマット、第2色差フォーマット、及び特定情報を読取る。そして、読取った第1色差フォーマット、第2色差フォーマット、及び特定情報を含む色差変換情報を、変換部60へ出力する。 As shown in FIG. 25, the decoding unit 58 includes a decoding unit 58A. The decoding unit 58A analyzes the color difference conversion information and reads the first color difference format, the second color difference format, and the specific information included in the color difference conversion information. Then, the read first color difference format, second color difference format, and color difference conversion information including specific information are output to the conversion unit 60.

なお、復号部58Aは、色差変換情報に含まれる特定情報が、第1色差フォーマットの復号画像を第2色差フォーマットに変換するときに用いるフィルタ情報である場合には、復号部58Aは、該特定情報をそのまま変換部60へ出力する。 If the specific information included in the color difference conversion information is the filter information used when converting the decoded image of the first color difference format into the second color difference format, the decoding unit 58A will perform the specific information. The information is output to the conversion unit 60 as it is.

一方、復号部58Aは、色差変換情報に含まれる特定情報が、第1色差フォーマットの復号画像を第2色差フォーマットに変換するときに用いるフィルタ情報の識別情報である場合には、識別情報に対応するフィルタ情報を、図示を省略するメモリに予め記憶した定義情報から読み取る。そして、読取ったフィルタ情報を、特定情報として変換部60へ出力する。 On the other hand, when the specific information included in the color difference conversion information is the identification information of the filter information used when converting the decoded image of the first color difference format into the second color difference format, the decoding unit 58A corresponds to the identification information. The filter information to be used is read from the definition information stored in advance in a memory (not shown). Then, the read filter information is output to the conversion unit 60 as specific information.

また、復号部58Aは、色差変換情報に含まれる特定情報が、符号化装置10の変換部12におけるフィルタ処理に用いたフィルタ情報である場合には、このフィルタ情報から、第1色差フォーマットの復号画像を第2色差フォーマットに変換するためのフィルタ情報を設計する。そして、設計したフィルタのフィルタ情報を、特定情報として変換部60に出力する。 Further, when the specific information included in the color difference conversion information is the filter information used for the filter processing in the conversion unit 12 of the coding apparatus 10, the decoding unit 58A decodes the first color difference format from this filter information. Design filter information to convert the image to the second color difference format. Then, the filter information of the designed filter is output to the conversion unit 60 as specific information.

図24に戻り、復号部56は、符号化データを復号し、復号画像を得る。復号部56は、復号画像を、変換部60へ出力する。 Returning to FIG. 24, the decoding unit 56 decodes the encoded data to obtain a decoded image. The decoding unit 56 outputs the decoded image to the conversion unit 60.

図26は、復号部56の機能的構成を示す模式図である。 FIG. 26 is a schematic diagram showing the functional configuration of the decoding unit 56.

図26に示すように、復号部56は、エントロピー復号部56A、逆量子化/逆変換部56B、加算部56C、フレームメモリ56D、及び予測画像生成部56Eを備える。 As shown in FIG. 26, the decoding unit 56 includes an entropy decoding unit 56A, an inverse quantization / inverse conversion unit 56B, an addition unit 56C, a frame memory 56D, and a prediction image generation unit 56E.

エントロピー復号部56Aは、NALユニット復号部54から符号化データを受け付ける。エントロピー復号部56Aは、受け付けた符号化データを、予め決められたシンタクスに従ってエントロピー復号する。これによって、エントロピー復号部56Aは、量子化係数、動きベクトル情報を得る。 The entropy decoding unit 56A receives the encoded data from the NAL unit decoding unit 54. The entropy decoding unit 56A entropy decodes the received encoded data according to a predetermined syntax. As a result, the entropy decoding unit 56A obtains the quantization coefficient and the motion vector information.

エントロピー復号部56Aは、量子化係数を逆量子化/逆変換部56Bへ出力し、動きベクトル情報を予測画像生成部56Eへ出力する。 The entropy decoding unit 56A outputs the quantization coefficient to the inverse quantization / inverse conversion unit 56B, and outputs the motion vector information to the prediction image generation unit 56E.

逆量子化/逆変換部56Bは、量子化係数を逆量子化した後に逆変換し、誤差画像を生成する。加算部56Cは、逆量子化/逆変換部56Bから誤差画像を受け取り、予測画像生成部56Eから予測画像を受け取る。そして、加算部56Cは、誤差画像と予測画像を加算して復号画像を生成する。この復号画像は、フレームメモリ56Dに保存された後に、変換部60及び予測画像生成部56Eへ出力される。 The inverse quantization / inverse conversion unit 56B inversely quantizes the quantization coefficient and then inversely transforms it to generate an error image. The addition unit 56C receives an error image from the inverse quantization / inverse conversion unit 56B, and receives a prediction image from the prediction image generation unit 56E. Then, the addition unit 56C adds the error image and the prediction image to generate a decoded image. This decoded image is stored in the frame memory 56D and then output to the conversion unit 60 and the prediction image generation unit 56E.

予測画像生成部56Eは、復号画像と動きベクトル情報を用いて、予測画像を生成する。そして、予測画像生成部56Eは、生成した予測画像を、加算部56Cへ出力する。 The prediction image generation unit 56E generates a prediction image by using the decoded image and the motion vector information. Then, the prediction image generation unit 56E outputs the generated prediction image to the addition unit 56C.

図24へ戻り、変換部60は、復号部56から復号画像を受け付ける。また、変換部60は、復号部58から色差変換情報を受け付ける。変換部60は、色差変換情報に含まれる、第1色差フォーマット、第2色差フォーマット、及び特定情報を読取る。そして、変換部60は、第1色差フォーマットの復号画像について、特定情報によって特定されるフィルタを用いて色差成分の解像度の変換を行い、第2色差フォーマットに変換する。変換部60は、復号画像の色差成分の解像度の変換によって得た再生画像を、再生装置等に出力する。 Returning to FIG. 24, the conversion unit 60 receives the decoded image from the decoding unit 56. Further, the conversion unit 60 receives the color difference conversion information from the decoding unit 58. The conversion unit 60 reads the first color difference format, the second color difference format, and the specific information included in the color difference conversion information. Then, the conversion unit 60 converts the resolution of the color difference component of the decoded image of the first color difference format using the filter specified by the specific information, and converts it into the second color difference format. The conversion unit 60 outputs the reproduced image obtained by converting the resolution of the color difference component of the decoded image to a reproduction device or the like.

図27は、変換部60の機能的構成を示す模式図である。 FIG. 27 is a schematic diagram showing the functional configuration of the conversion unit 60.

変換部60は、変換部60A、変換部60B、及び出力調整部60Cを備える。 The conversion unit 60 includes a conversion unit 60A, a conversion unit 60B, and an output adjustment unit 60C.

変換部60Aは、4:2:0フォーマットの復号画像を、4:2:2フォーマットに変換する。変換部60Aは、復号部58から受け付けた色差変換情報から、特定情報として、変換部12Bでフィルタ処理に用いたフィルタ情報を読取る。そして、読取ったフィルタ情報を用いてフィルタ処理を行い、4:2:0フォーマットの復号画像を、4:2:2フォーマットに変換する。 The conversion unit 60A converts the decoded image in the 4: 2: 0 format into the 4: 2: 2 format. The conversion unit 60A reads the filter information used for the filter processing by the conversion unit 12B as specific information from the color difference conversion information received from the decoding unit 58. Then, a filter process is performed using the read filter information, and the decoded image in the 4: 2: 0 format is converted into the 4: 2: 2 format.

変換部60Aは、変換によって得た4:2:2フォーマットの復号画像を、変換部60Bへ出力する。変換部60Bは、復号部58から受け付けた色差変換情報から、特定情報として、変換部12Aでフィルタ処理に用いたフィルタ情報を読取る。そして、読取ったフィルタ情報を用いてフィルタ処理を行い、4:2:2フォーマットの復号画像を、4:4:4フォーマットに変換する。変換部60Bは、変換後の4:4:4フォーマットの復号画像を、出力調整部60Cへ出力する。 The conversion unit 60A outputs the decoded image in the 4: 2: 2 format obtained by the conversion to the conversion unit 60B. The conversion unit 60B reads the filter information used for the filter processing by the conversion unit 12A as specific information from the color difference conversion information received from the decoding unit 58. Then, a filter process is performed using the read filter information, and the decoded image in the 4: 2: 2 format is converted into the 4: 4: 4 format. The conversion unit 60B outputs the converted 4: 4: 4 format decoded image to the output adjustment unit 60C.

出力調整部60Cは、色差変換情報に規定される、再生時の画素ビット長、再生時の色差成分の最大値、再生時の色差成分の最小値を読取るか、或いは、予め定められた色差フォーマットの仕様に従った画素ビット長、最大値、最小値で、これらの値を満たすように、復号画像をクリッピング処理する。そして、クリッピング処理後の復号画像を再生画像として、出力する。 The output adjustment unit 60C reads the pixel bit length at the time of reproduction, the maximum value of the color difference component at the time of reproduction, and the minimum value of the color difference component at the time of reproduction, which are defined in the color difference conversion information, or a predetermined color difference format. The decoded image is clipped so as to satisfy these values with the pixel bit length, the maximum value, and the minimum value according to the specifications of. Then, the decoded image after the clipping process is output as a reproduced image.

次に、復号装置50で実行する復号処理を説明する。 Next, the decoding process executed by the decoding device 50 will be described.

図28は、復号装置50で実行する復号処理の手順を示すフローチャートである。 FIG. 28 is a flowchart showing a procedure of the decoding process executed by the decoding device 50.

まず、伝送情報復号部52が、符号化装置10から受け付けた伝送情報を復号する(ステップS200)。ステップS200の処理によって、NALユニット情報を得る。 First, the transmission information decoding unit 52 decodes the transmission information received from the coding device 10 (step S200). NAL unit information is obtained by the process of step S200.

次に、NALユニット復号部54が、ステップS200で得られたNALユニット情報を復号する(ステップS202)。ステップS202の処理によってNALユニット復号部54は、符号化データ、色差変換情報、バイトアライメント情報等を得る。 Next, the NAL unit decoding unit 54 decodes the NAL unit information obtained in step S200 (step S202). By the process of step S202, the NAL unit decoding unit 54 obtains coded data, color difference conversion information, byte alignment information, and the like.

次に、復号部56が、NALユニット復号部54から受け付けた符号化データを復号し、復号画像を得る(ステップS204)。 Next, the decoding unit 56 decodes the encoded data received from the NAL unit decoding unit 54 to obtain a decoded image (step S204).

次に、復号部58が、色差変換情報を復号する(ステップS206)。ステップS206の処理によって、復号部58は、色差変換情報に含まれる、第1色差フォーマット、第2色差フォーマット、及び特定情報を読取る。そして、読取った第1色差フォーマット、第2色差フォーマット、及び特定情報を含む色差変換情報を、変換部60へ出力する。 Next, the decoding unit 58 decodes the color difference conversion information (step S206). By the process of step S206, the decoding unit 58 reads the first color difference format, the second color difference format, and the specific information included in the color difference conversion information. Then, the read first color difference format, second color difference format, and color difference conversion information including specific information are output to the conversion unit 60.

次に、変換部60が、復号部56から受け付けた復号画像を、色差変換情報に規定される第2色差フォーマットに色差変換する(ステップS208)。変換部60は、復号画像を色差変換することにより得た再生画像を、再生装置等に出力する。そして、本ルーチンを終了する。 Next, the conversion unit 60 performs color difference conversion of the decoded image received from the decoding unit 56 into the second color difference format defined in the color difference conversion information (step S208). The conversion unit 60 outputs the reproduced image obtained by color-difference converting the decoded image to a reproduction device or the like. Then, this routine is terminated.

以上説明したように、復号装置50は、色差変換情報と符号化データを含む伝送情報を受け付ける。そして、復号装置50では、色差変換情報に含まれる特定情報によって特定されるフィルタを用いて、符号化データを復号することによって得た第1色差フォーマットの復号画像を、第2色差フォーマットに変換する。このため、復号装置50は、解像度変換による画質劣化を抑制することができる。 As described above, the decoding device 50 receives transmission information including color difference conversion information and coded data. Then, the decoding device 50 converts the decoded image of the first color difference format obtained by decoding the encoded data into the second color difference format by using the filter specified by the specific information included in the color difference conversion information. .. Therefore, the decoding device 50 can suppress deterioration of image quality due to resolution conversion.

従って、本実施の形態の復号装置50は、画質劣化を抑制することができる。 Therefore, the decoding device 50 of the present embodiment can suppress deterioration of image quality.

(変形例4)
次に、伝送情報復号部52が、図8に示す色差変換情報を含む伝送情報を符号化装置10から受け付けた場合の、復号部58及び復号部58A(図25参照)の動作を説明する。
(Modification example 4)
Next, the operations of the decoding unit 58 and the decoding unit 58A (see FIG. 25) when the transmission information decoding unit 52 receives the transmission information including the color difference conversion information shown in FIG. 8 from the coding device 10 will be described.

この場合、復号部58Aは、図8に示すシンタクスに従って、色差変換情報を復号する。 In this case, the decoding unit 58A decodes the color difference conversion information according to the syntax shown in FIG.

上述のように、図8に示す色差変換情報におけるchroma_loc_info_present_flagは、色差信号の画素位置及び色差変換に関するフィルタ情報が存在するか否かを示すフラグである。このchroma_loc_info_present_flagの値が「0」である場合、復号部58Aは、色差信号の画素位置及び色差変換に関するフィルタ情報が存在しないとみなして、読み飛ばす。一方、chroma_loc_info_present_flagの値が「1」である場合、色差信号の画素位置及び色差変換に関するフィルタ情報が存在する。このため、この場合、復号部58Aは、chroma_sample_loc_type_top_fieldと、chroma_sample_loc_type_bottom_fieldと、の各々によって示される値で色差の画素サンプル位置を特定する。 As described above, the chroma_loc_info_present_flag in the color difference conversion information shown in FIG. 8 is a flag indicating whether or not there is filter information regarding the pixel position of the color difference signal and the color difference conversion. When the value of this chroma_loc_info_present_flag is "0", the decoding unit 58A considers that the pixel position of the color difference signal and the filter information regarding the color difference conversion do not exist, and skips the reading. On the other hand, when the value of chroma_loc_info_present_flag is "1", there is filter information regarding the pixel position of the color difference signal and the color difference conversion. Therefore, in this case, the decoding unit 58A identifies the pixel sample position of the color difference by the values indicated by each of the chroma_sample_loc_type_top_field and the chroma_sample_loc_type_bottom_field.

また、上述のように、chroma_filter_info_present_flagは、色差変換に関するフィルタ情報が存在するか否かを示すフラグである。このため、復号部58Aは、chroma_filter_info_present_flagの値が「0」である場合、色差変換に関するフィルタ情報が存在しないことから、読み飛ばす。一方、chroma_filter_info_present_flagの値が「1」である場合、色差変換に関するフィルタ情報が存在する。このため、この場合、復号部58Aは、chroma_filter_infoによって示される識別情報(Value)を、図9または図10に示す色差変換フィルタ定義情報から読み取る。 Further, as described above, chroma_filter_info_present_flag is a flag indicating whether or not filter information regarding color difference conversion exists. Therefore, when the value of chroma_filter_info_present_flag is "0", the decoding unit 58A skips it because there is no filter information related to the color difference conversion. On the other hand, when the value of chroma_filter_info_present_flag is "1", there is filter information regarding the color difference conversion. Therefore, in this case, the decoding unit 58A reads the identification information (Value) indicated by chroma_filter_info from the color difference conversion filter definition information shown in FIG. 9 or FIG.

具体的には、復号部58Aは、図9または図10に示す色差変換フィルタ定義情報における、該識別情報に対応する、フィルタ係数、フィルタ処理を行う場合の分母の数(Divisor)、フィルタ処理後の色差画素のサンプル位置(Phase shift)、当該フィルタ係数の用途及び第2色差フォーマットの情報(Purpose)の各々に対応する情報を読取る。 Specifically, the decoding unit 58A has a filter coefficient corresponding to the identification information in the color difference conversion filter definition information shown in FIG. 9 or 10, the number of denominators (Divisor) in the case of performing the filter processing, and after the filter processing. The information corresponding to each of the sample position (Phase shift) of the color difference pixel, the use of the filter coefficient, and the information (Purpose) of the second color difference format is read.

なお、図9及び図10に示す色差変換フィルタ定義情報には、上述のように、第1色差フォーマットから、第2色差フォーマットへの色差変換を行うフィルタ係数以外にも、対となる符号化装置側において用いた、第2色差フォーマットから第1色差フォーマットへの色差変換を行ったフィルタ係数も含まれる。 In addition, as described above, the color difference conversion filter definition information shown in FIGS. 9 and 10 includes a pair of coding devices other than the filter coefficient for performing color difference conversion from the first color difference format to the second color difference format. The filter coefficient used on the side for color difference conversion from the second color difference format to the first color difference format is also included.

具体的には、図10に示す色差変換フィルタ定義情報における、chroma_filter_infoの値が「1」である場合、復号部58Aは、図11に示すシンタクスに従い、第2色差フォーマットであるtarget_format_idcと、色差変換フィルタの数マイナス1の値を示すnum_of_filter_minus1と、フィルタ係数を示すfilter_coeffと、の各々の値を読取る。 Specifically, when the value of chroma_filter_info in the color difference conversion filter definition information shown in FIG. 10 is "1", the decoding unit 58A performs color difference conversion with the second color difference format target_format_idc according to the syntax shown in FIG. The values of num_of_filter_minus1 indicating the number of filters minus 1 and filter_coeff indicating the filter coefficient are read.

そして、復号部58Aは、これらの読み取った値を、変換部60へ出力する。変換部60の処理は、上記と同様である。 Then, the decoding unit 58A outputs these read values to the conversion unit 60. The processing of the conversion unit 60 is the same as described above.

このように、図8に示す色差変換情報を含む伝送情報を受け付けた場合についても同様に、復号装置50では、色差変換情報に含まれる特定情報によって特定されるフィルタを用いて、符号化データを復号することによって得た第1色差フォーマットの復号画像を色差フォーマット変換する。このため、復号装置50は、解像度変換による画質劣化を抑制することができる。 Similarly, when the transmission information including the color difference conversion information shown in FIG. 8 is received, the decoding device 50 similarly uses the filter specified by the specific information included in the color difference conversion information to convert the coded data. The decoded image of the first color difference format obtained by decoding is converted into the color difference format. Therefore, the decoding device 50 can suppress deterioration of image quality due to resolution conversion.

(変形例5)
次に、伝送情報復号部52が、図12に示す色差変換情報を含む伝送情報を符号化装置10から受け付けた場合の、復号部58及び復号部58A(図25参照)の動作を説明する。
(Modification 5)
Next, the operations of the decoding unit 58 and the decoding unit 58A (see FIG. 25) when the transmission information decoding unit 52 receives the transmission information including the color difference conversion information shown in FIG. 12 from the coding device 10 will be described.

この場合、復号部58Aは、図12に示すシンタクスに従って、色差変換情報を復号する。 In this case, the decoding unit 58A decodes the color difference conversion information according to the syntax shown in FIG.

上述のように、図12に示す色差変換情報におけるchroma_loc_info_present_flagは、色差信号の画素位置及び色差変換に関するフィルタ情報が存在するか否かを示すフラグである。chroma_loc_info_present_flagの値が「0」である場合、色差信号の画素位置及び色差変換に関するフィルタ情報が存在しないので、復号部58Aは、このフラグの値を読み飛ばす。 As described above, the chroma_loc_info_present_flag in the color difference conversion information shown in FIG. 12 is a flag indicating whether or not there is filter information regarding the pixel position of the color difference signal and the color difference conversion. When the value of chroma_loc_info_present_flag is "0", the decoding unit 58A skips the value of this flag because there is no filter information regarding the pixel position of the color difference signal and the color difference conversion.

一方、chroma_loc_info_present_flagの値が「1」である場合、色差信号の画素位置及び色差変換に関するフィルタ情報が存在する。このため、この場合、復号部58Aは、chroma_sample_loc_type_top_fieldと、chroma_sample_loc_type_bottom_fieldと、の各々の値から色差の画素サンプル位置を特定する。 On the other hand, when the value of chroma_loc_info_present_flag is "1", there is filter information regarding the pixel position of the color difference signal and the color difference conversion. Therefore, in this case, the decoding unit 58A specifies the pixel sample position of the color difference from each value of chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field.

chroma_filter_info_present_flagは、色差変換に関するフィルタ情報が存在するか否かを示すフラグである。このchroma_filter_info_present_flagの値が「1」の場合、復号部58Aは、図13、図15、または図17の色差変換フィルタ情報のシンタクスに従い、復号を行う。 chroma_filter_info_present_flag is a flag indicating whether or not filter information regarding color difference conversion exists. When the value of this chroma_filter_info_present_flag is "1", the decoding unit 58A performs decoding according to the syntax of the color difference conversion filter information of FIG. 13, FIG. 15, or FIG.

以下、復号部58Aが、図13に示す色差変換フィルタ情報のシンタクスに従い、復号を行う場合を説明する。 Hereinafter, a case where the decoding unit 58A performs decoding according to the syntax of the color difference conversion filter information shown in FIG. 13 will be described.

上述のように、num_of_filter_set_minus1は、フィルタセットの数マイナス1を示す値であり、フィルタセット数分だけ、ループ処理することを示す。また、implicit_filter_set_flagは、予め定めたフィルタセットの情報を用いることを示すフラグである。このフラグが「1」である場合、復号部58Aは、予め定義したフィルタセットの情報の識別情報であるfilter_set_idcを読み取る。一方、implicit_filter_set_flagが「0」である場合、復号部58Aは、色差変換フィルタの数マイナス1の値を示すnum_of_filter_minus1を読み取り、以下の色差変換フィルタ数のループを行う。 As described above, num_of_filter_set_minus1 is a value indicating the number of filter sets minus 1, and indicates that loop processing is performed by the number of filter sets. Further, the implicit_filter_set_flag is a flag indicating that the information of the predetermined filter set is used. When this flag is "1", the decoding unit 58A reads filter_set_idc which is the identification information of the information of the preset filter set. On the other hand, when impedance_filter_set_flag is "0", the decoding unit 58A reads num_of_filter_minus1 indicating a value of minus 1 of the number of color difference conversion filters, and loops the following number of color difference conversion filters.

上述のように、implicit_filter_flagは、予め定めたフィルタ情報を用いることを示すフラグである。このフラグの値が「1」である場合、復号部58Aは、予め定義したフィルタ情報の識別情報であるfilter_idcを読み取る。一方、implicit_filter_flagの値が「0」である場合、復号部58Aは、フィルタ係数のタップ長マイナス1の値を示すtap_length_minus1をよみ取る。そして、復号部58Aは、読取ったフィルタ係数タップ長分だけループを行い、フィルタ係数値を表すfilter_coeffを読み取る。 As described above, implicit_filter_flag is a flag indicating that predetermined filter information is used. When the value of this flag is "1", the decoding unit 58A reads filter_idc which is the identification information of the filter information defined in advance. On the other hand, when the value of implicit_filter_flag is "0", the decoding unit 58A reads tap_length_minus1 indicating the value of the tap length minus 1 of the filter coefficient. Then, the decoding unit 58A loops by the read filter coefficient tap length, and reads filter_coeff representing the filter coefficient value.

次に、復号部58Aは、filter_set_idc及びfilter_idcに対応する予め定義した色差変換フィルタ定義情報のフィルタ係数のタップ長(Tap length)、フィルタ係数(Filter coefficient)、フィルタ処理を行う場合の分母の数(Divisor)、フィルタ処理後の色差画素のサンプル位置(Phase shift)、当該フィルタ係数の用途及び第2色差フォーマットの情報(Purpose)の各々の値を読取る。なお、filter_set_idcでは、復号側でのフィルタ処理と対になる符号化側でのフィルタ処理でのフィルタ係数も定義できる。 Next, the decoding unit 58A has a tap length of the filter coefficient of the preset color difference conversion filter definition information corresponding to filter_set_idc and filter_idc, a filter coefficient (Filter coefficient), and a number of denominators when performing filter processing (Filter cofficient). (Divisor), the sample position (Phase shift) of the color difference pixel after the filter processing, the use of the filter coefficient, and the information (Purpose) of the second color difference format are read. In filter_set_idc, the filter coefficient in the filtering process on the coding side, which is paired with the filtering process on the decoding side, can also be defined.

そして、復号部58Aは、これらの読み取った値を、変換部60へ出力する。変換部60の処理は、上記と同様である。 Then, the decoding unit 58A outputs these read values to the conversion unit 60. The processing of the conversion unit 60 is the same as described above.

このように、図12に示す色差変換情報を含む伝送情報を受け付けた場合についても同様に、復号装置50では、色差変換情報に含まれる特定情報によって特定されるフィルタを用いて、符号化データを復号することによって得た第1色差フォーマットの復号画像を色差フォーマット変換する。このため、復号装置50は、解像度変換による画質劣化を抑制することができる。 Similarly, when the transmission information including the color difference conversion information shown in FIG. 12 is received, the decoding device 50 similarly uses the filter specified by the specific information included in the color difference conversion information to obtain the coded data. The decoded image of the first color difference format obtained by decoding is converted into the color difference format. Therefore, the decoding device 50 can suppress deterioration of image quality due to resolution conversion.

(変形例6)
次に、変形例5において、復号部58Aが、図14に示す色差変換フィルタ情報のシンタクスに従い、復号を行う場合を説明する。
(Modification 6)
Next, in the modified example 5, a case where the decoding unit 58A performs decoding according to the syntax of the color difference conversion filter information shown in FIG. 14 will be described.

上述のように、target_format_idcは、第2色差フォーマットを示す。また、chroma_format_idcは、第1色差フォーマットを示す。 As mentioned above, target_format_idc indicates a second color difference format. Further, chroma_format_idc indicates a first color difference format.

chroma_format_idcの値が「1」であり且つtarget_format_idcの値が「1」より大きい場合、若しくは、chroma_format_idcの値が「1」より大きく且つtarget_format_idcの値が「1」である場合、復号部58Aは、垂直方向のフィルタ情報を読み込む。 When the value of chroma_format_idc is "1" and the value of target_format_idc is larger than "1", or when the value of chroma_format_idc is larger than "1" and the value of target_format_idc is "1", the decoding unit 58A is vertical. Read the direction filter information.

上述のように、implicit_vertical_flagは、予め定義した垂直方向のフィルタ情報を用いることを示すフラグである。このフラグの値が「1」である場合、復号部58Aは、予め定義した垂直方向のフィルタ情報の識別情報であるvertical_filter_idcを読み取る。一方、implicit_vertical_flagの値が「0」である場合、復号部58Aは、垂直方向のフィルタ係数のタップ長マイナス1の値を示すtap_length_vertical_minus1を読取り、タップ長分の垂直フィルタ係数ver_filter_coeffを読み込む。 As described above, implicit_vertical_flag is a flag indicating that the predefined vertical filter information is used. When the value of this flag is "1", the decoding unit 58A reads the virtual_filter_idc which is the identification information of the vertically defined filter information. On the other hand, when the value of implicit_vertical_flag is "0", the decoding unit 58A reads tap_length_vertical_minus1 indicating the value of the tap length minus 1 of the vertical filter coefficient, and reads the vertical filter coefficient ver_filter_coeff for the tap length.

そして、復号部58Aは、符号化データがフィールド信号である場合、トップフィールドとボトムフィールドにおいて、垂直方向で異なるフィルタセットを使う場合に定義されるフラグであるsecond_filter_flagを読み取る。そして、このフラグの値が「1」で有り、chroma_format_idcの値が「1」であり、且つ、target_format_idcの値が「1」より大きい場合、2つ目のフィルタ情報が存在する。 Then, when the encoded data is a field signal, the decoding unit 58A reads second_filter_flag, which is a flag defined when different filter sets are used in the vertical direction in the top field and the bottom field. Then, when the value of this flag is "1", the value of chroma_format_idc is "1", and the value of target_format_idc is larger than "1", the second filter information exists.

一方、implicit_vertical_flagの値が「1」である場合、復号部58Aは、予め定義した2つ目の垂直方向のフィルタ情報の識別情報であるsecond_vertical_filter_idcを読み取る。また、implicit_vertical_flagの値が「0」である場合、復号部58Aは、2つ目の垂直方向のフィルタ係数のタップ長マイナス1の値を示すtap_length_second_vertical_minus1を読み取り、タップ長分の垂直フィルタ係数second_ver_filter_coeffを読み込む。 On the other hand, when the value of implicit_vertical_flag is "1", the decoding unit 58A reads second_vertical_filter_idc, which is the identification information of the second vertical filter information defined in advance. When the value of implicit_vertical_flag is "0", the decoding unit 58A reads tap_length_second_vertical_minus1 indicating the value of the tap length minus 1 of the second vertical filter coefficient, and reads the vertical filter coefficient second_ver_filter_coeff for the tap length. ..

また、chroma_format_idcの値が「1」または「2」であり、且つ、target_format_idcの値が「3」である場合、或いは、chroma_format_idcの値が「3」であり、且つ、target_format_idcが「1」或いは「2」の場合、復号部58Aは、水平方向のフィルタ情報を読み込む。 Further, when the value of horizontal_format_idc is "1" or "2" and the value of target_format_idc is "3", or the value of chroma_format_idc is "3" and the value of target_format_idc is "1" or ". In the case of "2", the decoding unit 58A reads the filter information in the horizontal direction.

implicit_horizontal_flagは、予め定義した水平方向のフィルタ情報を用いることを示すフラグである。このフラグの値が「1」である場合、復号部58Aは、予め定義した水平方向のフィルタ情報の識別情報であるhorizontal_filter_idcを読み取る。一方、implicit_vertical_flagの値が「0」の場合、復号部58Aは、水平方向のフィルタ係数のタップ長マイナス1の値を示すtap_length_horizontal_minus1を読取り、タップ長分の水平フィルタ係数hor_filter_coeffを読み込む。 The implicit_horizontal_flag is a flag indicating that the predefined horizontal filter information is used. When the value of this flag is "1", the decoding unit 58A reads the horizontal_filter_idc which is the identification information of the horizontally defined filter information. On the other hand, when the value of implicit_vertical_flag is "0", the decoding unit 58A reads tap_length_horizontal_minus1 indicating the value of the tap length minus 1 of the horizontal filter coefficient, and reads the horizontal filter coefficient ho_filter_coeff for the tap length.

そして、復号部58Aは、図15に示す、vertical_filter_idc、second_vertical_filter_idc、またはhorizontal_filter_idcに対応する、図16におけるfilter_idcを特定する。そして、復号部58Aは、特定したfilter_idcに対応する、予め定義した色差変換フィルタ定義情報のフィルタ係数のタップ長(Tap length)、フィルタ係数(Filter coefficients)、フィルタ処理を行う場合の分母の数(Divisor)、フィルタ処理後の色差画素のサンプル位置(Phase shift)、当該フィルタ係数の用途及び第2色差フォーマットの情報(Purpose)の各々の情報を得る。 Then, the decoding unit 58A identifies the filter_idc in FIG. 16, which corresponds to the vertical_filter_idc, second_vertical_filter_idc, or horizontal_filter_idc shown in FIG. 15. Then, the decoding unit 58A has a tap length (Taplength) of a filter coefficient of the color difference conversion filter definition information defined in advance corresponding to the specified filter_idc, a filter coefficient (Filter coefficients), and a number of denominators when performing filter processing ( (Divisor), the sample position (Phase shift) of the color difference pixel after the filter processing, the use of the filter coefficient, and the information (Purpose) of the second color difference format are obtained.

そして、復号部58Aは、これらの読み取った値を、変換部60へ出力する。変換部60の処理は、上記と同様である。 Then, the decoding unit 58A outputs these read values to the conversion unit 60. The processing of the conversion unit 60 is the same as described above.

このように、図14に示す色差変換フィルタ情報のシンタクスに従い、復号を行った場合についても同様に、復号装置50では、色差変換情報に含まれる特定情報によって特定されるフィルタを用いて、符号化データを復号することによって得た第1色差フォーマットの復号画像を色差フォーマット変換する。このため、復号装置50は、解像度変換による画質劣化を抑制することができる。 In this way, even when decoding is performed according to the syntax of the color difference conversion filter information shown in FIG. 14, the decoding device 50 encodes using the filter specified by the specific information included in the color difference conversion information. The decoded image of the first color difference format obtained by decoding the data is converted into the color difference format. Therefore, the decoding device 50 can suppress deterioration of image quality due to resolution conversion.

(変形例7)
次に、変形例5において、復号部58Aが、図17に示す色差変換フィルタ情報のシンタクスに従い、復号を行う場合を説明する。
(Modification 7)
Next, in the modified example 5, a case where the decoding unit 58A performs decoding according to the syntax of the color difference conversion filter information shown in FIG. 17 will be described.

chroma_format_idcの値が「1」であり且つtarget_format_idcの値が「1」より大きい場合、或いは、chroma_format_idcの値が「1」より大きく且つ、target_format_idcが「1」である場合、復号部58Aは、垂直方向のフィルタ情報を読み込む。 When the value of chroma_format_idc is "1" and the value of target_format_idc is larger than "1", or when the value of chroma_format_idc is larger than "1" and the value of target_format_idc is "1", the decoding unit 58A is in the vertical direction. Read the filter information of.

具体的には、復号部58Aは、垂直方向のフィルタ係数のタップ長マイナス1の値を示すtap_length_vertical_minus1を読取り、タップ長分の垂直フィルタ係数ver_filter_coeffを読み込む。 Specifically, the decoding unit 58A reads tap_length_vertical_minus1 indicating a value of the tap length minus 1 of the filter coefficient in the vertical direction, and reads the vertical filter coefficient ver_filter_coeff corresponding to the tap length.

なお、復号部58Aは、符号化データがフィールド信号である場合、トップフィールドとボトムフィールドで、垂直方向に異なるフィルタセットを使う場合に定義されるフラグであるsecond_filter_flagを読み込む。そして、このフラグの値が「1」であり、chroma_format_idcの値が「1」であり、target_format_idcの値が「1」より大きい場合、2つ目のフィルタ情報が存在することとなる。 When the encoded data is a field signal, the decoding unit 58A reads second_filter_flag, which is a flag defined when different filter sets are used in the vertical direction in the top field and the bottom field. Then, when the value of this flag is "1", the value of chroma_format_idc is "1", and the value of target_format_idc is larger than "1", the second filter information exists.

このため、この場合、復号部58Aは、2つ目の垂直方向のフィルタ係数のタップ長マイナス1の値を示すtap_length_second_vertical_minus1を読取り、タップ長分の垂直フィルタ係数second_ver_filter_coeffを読み込む。 Therefore, in this case, the decoding unit 58A reads tap_length_second_vertical_minus1 indicating the value of the tap length minus 1 of the second vertical filter coefficient, and reads the vertical filter coefficient second_ver_filter_coeff for the tap length.

一方、もし、chroma_format_idcの値が「1」或いは「2」であり、且つ、target_format_idcの値が「3」である場合、或いは、chroma_format_idcの値が「3」であり且つtarget_format_idcが「1」または「2」の場合、復号部58Aは、水平方向のフィルタ情報を読み込む。 On the other hand, if the value of chroma_format_idc is "1" or "2" and the value of target_format_idc is "3", or the value of chroma_format_idc is "3" and the value of target_format_idc is "1" or "1" or ". In the case of "2", the decoding unit 58A reads the filter information in the horizontal direction.

水平方向のフィルタ係数のタップ長マイナス1の値をしめすtap_length_horizontal_minus1を読取り、タップ長分の水平フィルタ係数hor_filter_coeffを読み込む。 Tap_length_horizontal_minus1, which indicates the value of the tap length minus 1 of the horizontal filter coefficient, is read, and the horizontal filter coefficient ho_filter_coeff for the tap length is read.

そして、復号部58Aは、これらの読み取った値を、変換部60へ出力する。変換部60の処理は、上記と同様である。 Then, the decoding unit 58A outputs these read values to the conversion unit 60. The processing of the conversion unit 60 is the same as described above.

このように、図17に示す色差変換フィルタ情報のシンタクスに従い、復号を行った場合についても同様に、復号装置50では、色差変換情報に含まれる特定情報によって特定されるフィルタを用いて、符号化データを復号することによって得た第1色差フォーマットの復号画像を色差フォーマット変換する。このため、復号装置50は、解像度変換による画質劣化を抑制することができる。 In this way, even when decoding is performed according to the syntax of the color difference conversion filter information shown in FIG. 17, the decoding device 50 encodes using the filter specified by the specific information included in the color difference conversion information. The decoded image of the first color difference format obtained by decoding the data is converted into the color difference format. Therefore, the decoding device 50 can suppress deterioration of image quality due to resolution conversion.

(変形例8)
次に、復号装置50が、符号化装置10の変換部12におけるフィルタ処理に用いたフィルタ情報を特定情報として含む、伝送情報を受け付けた場合を具体的に説明する。
(Modification 8)
Next, a case where the decoding device 50 receives the transmission information including the filter information used for the filter processing in the conversion unit 12 of the coding device 10 as specific information will be specifically described.

この場合、図24に示す復号装置50は、復号部58に替えて、復号部580を備えた構成とすればよい。 In this case, the decoding device 50 shown in FIG. 24 may be configured to include a decoding unit 580 instead of the decoding unit 58.

図29は、復号部580の機能的構成を示す模式図である。復号部580は、復号部580A、垂直フィルタ情報生成部580B、及び水平フィルタ情報生成部580Cを備える。 FIG. 29 is a schematic diagram showing a functional configuration of the decoding unit 580. The decoding unit 580 includes a decoding unit 580A, a vertical filter information generation unit 580B, and a horizontal filter information generation unit 580C.

復号部580Aは、色差変換情報を解析し、色差変換情報に含まれる、第1色差フォーマット、第2色差フォーマット、及び特定情報を読取る。本変形例では、特定情報は、符号化装置10の変換部12におけるフィルタ処理に用いたフィルタ情報である。また、本変形例では、特定情報として、垂直ダウンサンプリングフィルタ情報、及び水平ダウンサンプリングフィルタ情報を含む。 The decoding unit 580A analyzes the color difference conversion information and reads the first color difference format, the second color difference format, and the specific information included in the color difference conversion information. In this modification, the specific information is the filter information used for the filter processing in the conversion unit 12 of the coding apparatus 10. Further, in this modification, vertical downsampling filter information and horizontal downsampling filter information are included as specific information.

垂直フィルタ情報生成部580Bは、特定情報に含まれる垂直ダウンサンプリングフィルタ情報から、復号装置50の変換部60でフィルタ処理時に用いる垂直アップサンプリングフィルタ情報を生成する。水平フィルタ情報生成部580Cは、特定情報に含まれる水平ダウンサンプリングフィルタ情報から、復号装置50の変換部60でフィルタ処理時に用いる水平アップサンプリングフィルタ情報を生成する。そして、復号部580は、垂直フィルタ情報生成部580Bで生成された垂直アップサンプリングフィルタ情報、及び水平フィルタ情報生成部580Cで生成された水平アップサンプリングフィルタ情報と、第1色差フォーマットと、第2色差フォーマットと、を含む色差変換情報を、変換部60へ出力する。 The vertical filter information generation unit 580B generates vertical upsampling filter information to be used in the filtering process by the conversion unit 60 of the decoding device 50 from the vertical downsampling filter information included in the specific information. The horizontal filter information generation unit 580C generates horizontal upsampling filter information used in the filtering process by the conversion unit 60 of the decoding device 50 from the horizontal downsampling filter information included in the specific information. Then, the decoding unit 580 includes the vertical upsampling filter information generated by the vertical filter information generation unit 580B, the horizontal upsampling filter information generated by the horizontal filter information generation unit 580C, the first color difference format, and the second color difference. The color difference conversion information including the format is output to the conversion unit 60.

変換部60では、上記実施の形態と同様にして、色差変換情報に含まれる、第1色差フォーマット、第2色差フォーマット、及び特定情報を読取る。そして、変換部60は、第1色差フォーマットの復号画像について、特定情報によって特定されるフィルタを用いて色差成分の解像度の変換を行い、第2色差フォーマットに変換する。変換部60は、復号画像の色差成分の解像度の変換によって得た再生画像を、再生装置等に出力する。 The conversion unit 60 reads the first color difference format, the second color difference format, and the specific information included in the color difference conversion information in the same manner as in the above embodiment. Then, the conversion unit 60 converts the resolution of the color difference component of the decoded image of the first color difference format using the filter specified by the specific information, and converts it into the second color difference format. The conversion unit 60 outputs the reproduced image obtained by converting the resolution of the color difference component of the decoded image to a reproduction device or the like.

このように、復号装置50側で、復号装置50の変換部60のフィルタ処理に用いるフィルタ情報を生成してもよい。 In this way, the decoding device 50 may generate filter information used for the filtering process of the conversion unit 60 of the decoding device 50.

なお、復号部58または復号部580が生成した色差変換情報に含まれる特定情報が、垂直ダウンサンプリングフィルタ情報を含むとする。 It is assumed that the specific information included in the color difference conversion information generated by the decoding unit 58 or the decoding unit 580 includes the vertical downsampling filter information.

この場合には、復号装置50は、変換部60に替えて変換部600を備える。 In this case, the decoding device 50 includes a conversion unit 600 instead of the conversion unit 60.

図30は、変換部600の機能的構成を示す模式図である。 FIG. 30 is a schematic diagram showing the functional configuration of the conversion unit 600.

変換部600は、変換部600A及び出力調整部600Bを備える。 The conversion unit 600 includes a conversion unit 600A and an output adjustment unit 600B.

変換部600Aは、復号部56から4:2:2フォーマットの復号画像を受け付ける。変換部600Aは、受け付けた4:2:2フォーマットの復号画像を、復号部58または復号部580から受け付けた色差変換情報に含まれる特定情報によって示される垂直ダウンサンプリングフィルタ情報を用いて、4:2:0フォーマットに色差変換する。すなわち、変換部600Aは、4:2:2フォーマットの復号画像を構成する画素の色差成分について、垂直ダウンサンプリングフィルタ情報を用いて、垂直方向に1/2に間引くダウンサンプリングを行う。変換部600Aは、変換後の4:2:0フォーマットの復号画像を、出力調整部600Bへ出力する。 The conversion unit 600A receives the decoded image in the 4: 2: 2 format from the decoding unit 56. The conversion unit 600A uses the received 4: 2: 2 format decoded image by using the vertical downsampling filter information indicated by the specific information included in the color difference conversion information received from the decoding unit 58 or the decoding unit 580. Color difference conversion to 2: 0 format. That is, the conversion unit 600A performs downsampling by thinning out the color difference components of the pixels constituting the decoded image in the 4: 2: 2 format to 1/2 in the vertical direction by using the vertical downsampling filter information. The conversion unit 600A outputs the converted 4: 2: 0 format decoded image to the output adjustment unit 600B.

出力調整部600Bは、色差変換情報に規定される、再生時の画素ビット長、再生時の色差成分の最大値、再生時の色差成分の最小値を読取るか、或いは、予め定められた色差フォーマットの仕様に従った画素ビット長、最大値、最小値で、これらの値を満たすように、復号画像をクリッピング処理する。そして、クリッピング処理後の復号画像を、再生対象の再生画像として、出力する。 The output adjustment unit 600B reads the pixel bit length at the time of reproduction, the maximum value of the color difference component at the time of reproduction, and the minimum value of the color difference component at the time of reproduction, which are defined in the color difference conversion information, or a predetermined color difference format. The decoded image is clipped so as to satisfy these values with the pixel bit length, the maximum value, and the minimum value according to the specifications of. Then, the decoded image after the clipping process is output as a reproduction image to be reproduced.

(実施の形態4)
次に、符号化装置10、10A、10B、及び復号装置50のハードウェア構成について説明する。図31は、符号化装置10、10A、10B、及び復号装置50のハードウェア構成を示すブロック図である。
(Embodiment 4)
Next, the hardware configurations of the coding devices 10, 10A, 10B, and the decoding device 50 will be described. FIG. 31 is a block diagram showing the hardware configurations of the coding devices 10, 10A, 10B, and the decoding device 50.

本実施の形態の符号化装置10、10A、10B、及び復号装置50は、通信インタフェース(IF)86、CPU80(Central Processing Unit)、ROM(Read Only Memory)82、及びRAM(Random Access Memory)84等がバスにより相互に接続されており、通常のコンピュータを利用したハードウェア構成となっている。 The coding devices 10, 10A, 10B, and decoding device 50 of the present embodiment include a communication interface (IF) 86, a CPU 80 (Central Processing Unit), a ROM (Read Only Memory) 82, and a RAM (Random Access Memory) 84. Etc. are connected to each other by a bus, and the hardware configuration uses a normal computer.

CPU80は、符号化装置10、10A、10B、及び復号装置50の各々における、全体の処理を制御する演算装置である。RAM84は、CPU80による各種処理に必要なデータを記憶する。ROM82は、CPU80による各種処理を実現するプログラム等を記憶する。通信インタフェース(IF)86は、外部装置と通信回線を介して接続し、接続した外部装置との間でデータを送受信するためのインタフェースである。 The CPU 80 is an arithmetic unit that controls the entire processing in each of the coding devices 10, 10A, 10B, and the decoding device 50. The RAM 84 stores data required for various processes by the CPU 80. The ROM 82 stores a program or the like that realizes various processes by the CPU 80. The communication interface (IF) 86 is an interface for connecting to an external device via a communication line and transmitting / receiving data to / from the connected external device.

なお、符号化装置10、10A、10Bで実行される符号化処理を実行するためのプログラム、及び復号装置50で実行される復号処理を実行するためのプログラムは、ROM82等に予め組み込んで提供される。 The program for executing the coding process executed by the coding devices 10, 10A and 10B and the program for executing the decoding process executed by the decoding device 50 are provided in advance in the ROM 82 or the like. Program.

なお、符号化装置10、10A、10Bで実行される符号化処理を実行するためのプログラム、及び復号装置50で実行される復号処理を実行するためのプログラムは、符号化装置10、10A、10B、及び復号装置50にインストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録されて提供するように構成してもよい。 The program for executing the coding process executed by the coding devices 10, 10A and 10B and the program for executing the decoding process executed by the decoding device 50 are the coding devices 10, 10A and 10B. , And a file in a format that can be installed in the decoding device 50 or in an executable format, and is recorded on a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, or a DVD (Digital Versaille Disk). May be configured to provide.

また、符号化装置10、10A、10Bで実行される符号化処理を実行するためのプログラム、及び復号装置50で実行される復号処理を実行するためのプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。また、符号化装置10、10A、10Bで実行される符号化処理を実行するためのプログラム、及び復号装置50で実行される復号処理を実行するためのプログラムを、インターネット等のネットワーク経由で提供または配布するように構成してもよい。 Further, a program for executing the coding process executed by the coding devices 10, 10A and 10B and a program for executing the decoding process executed by the decoding device 50 are connected to a network such as the Internet. It may be configured to be stored on a computer and provided by downloading via a network. Further, a program for executing the coding process executed by the coding devices 10, 10A and 10B and a program for executing the decoding process executed by the decoding device 50 are provided or provided via a network such as the Internet. It may be configured to be distributed.

符号化装置10、10A、10Bで実行される符号化処理を実行するためのプログラム、及び復号装置50で実行される復号処理を実行するためのプログラムは、上述した各部を含むモジュール構成となっている。実際のハードウェアとしては、CPU80が、ROM82等から各種プログラムを読み出して実行することにより上記各部が主記憶装置上にロードされ、上述した機能構成が主記憶装置上に生成されるようになっている。 The program for executing the coding process executed by the coding devices 10, 10A and 10B and the program for executing the decoding process executed by the decoding device 50 have a modular configuration including the above-mentioned parts. There is. As actual hardware, the CPU 80 reads various programs from the ROM 82 or the like and executes them, so that each of the above parts is loaded on the main storage device, and the above-mentioned functional configuration is generated on the main storage device. There is.

以上、本発明のいくつかの実施の形態及び変形例を説明したが、これらの実施の形態及び変形例は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施の形態及び変形例は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変換を行うことができる。これらの実施の形態やその変形例は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although some embodiments and modifications of the present invention have been described above, these embodiments and modifications are presented as examples and are not intended to limit the scope of the invention. These novel embodiments and modifications can be implemented in various other embodiments, and various omissions, replacements, and conversions can be made without departing from the gist of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are also included in the scope of the invention described in the claims and the equivalent scope thereof.

10、10A、10B 符号化装置
14 符号化部
16、160、162 生成部
50 復号装置
10, 10A, 10B Encoding device 14 Encoding unit 16, 160, 162 Generation unit 50 Decoding device

Claims (4)

符号化データと、前記符号化データの色差成分の解像度を示す第1色差フォーマット、前記符号化データを復号して得られる復号画像の再生時に用いる色差成分の解像度を示す第2色差フォーマット、及びフィルタを特定するためフィルタ情報と、を含む伝送情報を受付ける受付部と、
前記符号化データを復号して前記復号画像を生成する復号部と、
前記フィルタ情報によって示されるフィルタを用いて、前記復号画像を色差フォーマット変換する変換部と、
を備え、
前記第1色差フォーマットおよび前記第2色差フォーマットは、それぞれ、4:4:4フォーマット、4:2:2フォーマット、または4:2:0フォーマットの色差成分の解像度を示し、
前記フィルタ情報は、フィルタの識別情報を含み、
前記変換部は、前記識別情報と前記第1色差フォーマットと前記第2色差フォーマットに基づいて、予め定められた複数のフィルタの中から、水平サンプリングフィルタおよび垂直サンプリングフィルタの少なくとも一方を含む前記フィルタを選択する、
復号装置。
A first color difference format indicating the resolution of the coded data and the color difference component of the coded data, a second color difference format indicating the resolution of the color difference component used when reproducing the decoded image obtained by decoding the coded data, and a filter. Filter information to identify, and a reception unit that accepts transmission information including
A decoding unit that decodes the coded data and generates the decoded image,
A conversion unit that converts the decoded image into a color difference format using the filter indicated by the filter information, and
With
The first color difference format and the second color difference format indicate the resolutions of the color difference components of the 4: 4: 4 format, the 4: 2: 2 format, or the 4: 2: 0 format, respectively.
The filter information includes filter identification information.
Based on the identification information, the first color difference format, and the second color difference format, the conversion unit selects the filter including at least one of a horizontal sampling filter and a vertical sampling filter from a plurality of predetermined filters. select,
Decoding device.
符号化データを生成する符号化部と、
前記符号化データの色差成分の解像度を示す第1色差フォーマット、前記符号化データを復号して得られる復号画像の再生時に用いる色差成分の解像度を示す第2色差フォーマット、及びフィルタを特定するためのフィルタ情報、を生成する生成部と、
前記符号化データ、前記第1色差フォーマット、前記第2色差フォーマット、及び前記フィルタ情報、を含む伝送情報を出力する出力部と、
を備え、
前記第1色差フォーマットおよび前記第2色差フォーマットは、それぞれ、4:4:4フォーマット、4:2:2フォーマット、または4:2:0フォーマットの色差成分の解像度を示す、
符号化装置。
A coding unit that generates coded data and
A first color difference format indicating the resolution of the color difference component of the coded data, a second color difference format indicating the resolution of the color difference component used when reproducing the decoded image obtained by decoding the coded data, and a filter for specifying the filter. A generator that generates filter information, and
An output unit that outputs transmission information including the coded data, the first color difference format, the second color difference format, and the filter information.
With
The first color difference format and the second color difference format indicate the resolutions of the color difference components in the 4: 4: 4 format, the 4: 2: 2 format, or the 4: 2: 0 format, respectively.
Encoding device.
符号化データと、前記符号化データの色差成分の解像度を示す第1色差フォーマット、前記符号化データを復号して得られる復号画像の再生時に用いる色差成分の解像度を示す第2色差フォーマット、及びフィルタを特定するためフィルタ情報と、を含む伝送情報を受付ける受付ステップと、
前記符号化データを復号して前記復号画像を生成する復号ステップと、
前記フィルタ情報によって示されるフィルタを用いて、前記復号画像を色差フォーマット変換する変換ステップと、
を含み、
前記第1色差フォーマットおよび前記第2色差フォーマットは、それぞれ、4:4:4フォーマット、4:2:2フォーマット、または4:2:0フォーマットの色差成分の解像度を示し、
前記フィルタ情報は、フィルタの識別情報を含み、
前記変換ステップは、前記識別情報と前記第1色差フォーマットと前記第2色差フォーマットに基づいて、予め定められた複数のフィルタの中から、水平サンプリングフィルタおよび垂直サンプリングフィルタの少なくとも一方を含む前記フィルタを選択する、
復号方法。
A first color difference format indicating the resolution of the coded data and the color difference component of the coded data, a second color difference format indicating the resolution of the color difference component used when reproducing the decoded image obtained by decoding the coded data, and a filter. A reception step that accepts transmission information, including filter information, to identify
A decoding step of decoding the encoded data to generate the decoded image, and
A conversion step of converting the decoded image into a color difference format using the filter indicated by the filter information, and
Including
The first color difference format and the second color difference format indicate the resolutions of the color difference components of the 4: 4: 4 format, the 4: 2: 2 format, or the 4: 2: 0 format, respectively.
The filter information includes filter identification information.
In the conversion step, the filter including at least one of a horizontal sampling filter and a vertical sampling filter is selected from a plurality of predetermined filters based on the identification information, the first color difference format, and the second color difference format. select,
Decryption method.
符号化データを生成する符号化ステップと、
前記符号化データの色差成分の解像度を示す第1色差フォーマット、前記符号化データを復号して得られる復号画像の再生時に用いる色差成分の解像度を示す第2色差フォーマット、及びフィルタを特定するためのフィルタ情報、を生成する生成ステップと、
前記符号化データ、前記第1色差フォーマット、前記第2色差フォーマット、及び前記フィルタ情報、を含む伝送情報を出力する出力ステップと、
を含み、
前記第1色差フォーマットおよび前記第2色差フォーマットは、それぞれ、4:4:4フォーマット、4:2:2フォーマット、または4:2:0フォーマットの色差成分の解像度を示す、
符号化方法。
The coding steps to generate the coded data and
A first color difference format indicating the resolution of the color difference component of the coded data, a second color difference format indicating the resolution of the color difference component used when reproducing the decoded image obtained by decoding the coded data, and a filter for specifying the filter. Generate steps to generate filter information, and
An output step for outputting transmission information including the coded data, the first color difference format, the second color difference format, and the filter information.
Including
The first color difference format and the second color difference format indicate the resolutions of the color difference components in the 4: 4: 4 format, the 4: 2: 2 format, or the 4: 2: 0 format, respectively.
Coding method.
JP2020103022A 2012-09-21 2020-06-15 Decoding device, coding device, decoding method, and coding method Active JP6980843B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021184978A JP7214818B2 (en) 2012-09-21 2021-11-12 Decoding device, encoding device, decoding method, and encoding method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2012208837 2012-09-21
JP2012208837 2012-09-21
JP2019008560A JP6721730B2 (en) 2012-09-21 2019-01-22 Decoding device and encoding device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2019008560A Division JP6721730B2 (en) 2012-09-21 2019-01-22 Decoding device and encoding device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2021184978A Division JP7214818B2 (en) 2012-09-21 2021-11-12 Decoding device, encoding device, decoding method, and encoding method

Publications (2)

Publication Number Publication Date
JP2020145765A true JP2020145765A (en) 2020-09-10
JP6980843B2 JP6980843B2 (en) 2021-12-15

Family

ID=58768678

Family Applications (6)

Application Number Title Priority Date Filing Date
JP2017007663A Active JP6282763B2 (en) 2012-09-21 2017-01-19 Decoding device, encoding device, decoding method, and encoding method
JP2018003337A Active JP6473833B2 (en) 2012-09-21 2018-01-12 Encoding apparatus and encoding method
JP2019008560A Active JP6721730B2 (en) 2012-09-21 2019-01-22 Decoding device and encoding device
JP2020103022A Active JP6980843B2 (en) 2012-09-21 2020-06-15 Decoding device, coding device, decoding method, and coding method
JP2021184978A Active JP7214818B2 (en) 2012-09-21 2021-11-12 Decoding device, encoding device, decoding method, and encoding method
JP2023001666A Active JP7387924B2 (en) 2012-09-21 2023-01-10 Decoding device, encoding device, decoding method, and encoding method

Family Applications Before (3)

Application Number Title Priority Date Filing Date
JP2017007663A Active JP6282763B2 (en) 2012-09-21 2017-01-19 Decoding device, encoding device, decoding method, and encoding method
JP2018003337A Active JP6473833B2 (en) 2012-09-21 2018-01-12 Encoding apparatus and encoding method
JP2019008560A Active JP6721730B2 (en) 2012-09-21 2019-01-22 Decoding device and encoding device

Family Applications After (2)

Application Number Title Priority Date Filing Date
JP2021184978A Active JP7214818B2 (en) 2012-09-21 2021-11-12 Decoding device, encoding device, decoding method, and encoding method
JP2023001666A Active JP7387924B2 (en) 2012-09-21 2023-01-10 Decoding device, encoding device, decoding method, and encoding method

Country Status (1)

Country Link
JP (6) JP6282763B2 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000236547A (en) * 1998-12-15 2000-08-29 Sony Corp Image information converter and image information conversion method
JP2004088795A (en) * 2003-10-03 2004-03-18 Sony Corp Image signal preparation device and method, and image signal reproducing device and method
JP2005012460A (en) * 2003-06-18 2005-01-13 Kddi Corp Sampling transform/ resolution conversion device for transform coding factor
WO2010004726A1 (en) * 2008-07-08 2010-01-14 パナソニック株式会社 Image coding method, image decoding method, image coding device, image decoding device, program, and integrated circuit
JP2010531609A (en) * 2007-06-27 2010-09-24 サムスン エレクトロニクス カンパニー リミテッド Video data encoding and / or decoding method, recording medium, and apparatus
JP2011083022A (en) * 2005-03-18 2011-04-21 Sharp Corp Methods and systems for extended spatial scalability with picture-level adaptation
WO2012090334A1 (en) * 2010-12-29 2012-07-05 富士通株式会社 Image signal encryption device, and image signal encryption method and program
JP6125215B2 (en) * 2012-09-21 2017-05-10 株式会社東芝 Decoding device and encoding device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5832120A (en) * 1995-12-22 1998-11-03 Cirrus Logic, Inc. Universal MPEG decoder with scalable picture size
JP3681835B2 (en) * 1995-12-27 2005-08-10 三菱電機株式会社 Image encoding apparatus, image decoding apparatus, and encoding / decoding system
EP1074091A2 (en) * 1998-04-20 2001-02-07 Sun Microsystems, Inc. Method and apparatus for supporting a video protocol in a network environment
JP2000092512A (en) * 1998-09-11 2000-03-31 Nec Corp Video signal encoding device, video signal decoding device and video signal conversion device
US7136417B2 (en) * 2002-07-15 2006-11-14 Scientific-Atlanta, Inc. Chroma conversion optimization
US7301582B2 (en) * 2003-08-14 2007-11-27 Broadcom Corporation Line address computer for providing line addresses in multiple contexts for interlaced to progressive conversion
US8582659B2 (en) * 2003-09-07 2013-11-12 Microsoft Corporation Determining a decoding time stamp from buffer fullness
JP4210925B2 (en) * 2004-01-15 2009-01-21 ソニー株式会社 Image signal generating apparatus and method, and image signal reproducing apparatus and method
JP2006254232A (en) * 2005-03-11 2006-09-21 Toshiba Corp Information processing apparatus and program
JP5195032B2 (en) * 2008-05-28 2013-05-08 富士通株式会社 Encoding device / decoding device, encoding method / decoding method, and program
AU2010206977B2 (en) * 2009-01-26 2016-02-25 Interdigital Vc Holdings, Inc. Frame packing for video coding

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000236547A (en) * 1998-12-15 2000-08-29 Sony Corp Image information converter and image information conversion method
JP2005012460A (en) * 2003-06-18 2005-01-13 Kddi Corp Sampling transform/ resolution conversion device for transform coding factor
JP2004088795A (en) * 2003-10-03 2004-03-18 Sony Corp Image signal preparation device and method, and image signal reproducing device and method
JP2011083022A (en) * 2005-03-18 2011-04-21 Sharp Corp Methods and systems for extended spatial scalability with picture-level adaptation
JP2010531609A (en) * 2007-06-27 2010-09-24 サムスン エレクトロニクス カンパニー リミテッド Video data encoding and / or decoding method, recording medium, and apparatus
WO2010004726A1 (en) * 2008-07-08 2010-01-14 パナソニック株式会社 Image coding method, image decoding method, image coding device, image decoding device, program, and integrated circuit
WO2012090334A1 (en) * 2010-12-29 2012-07-05 富士通株式会社 Image signal encryption device, and image signal encryption method and program
JP6125215B2 (en) * 2012-09-21 2017-05-10 株式会社東芝 Decoding device and encoding device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BROSS, BENJAMIN ET AL.: "High efficiency video coding (HEVC) text specification draft 8", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11 10TH, vol. JCTVC-J1003 (version 8), JPN6021021254, 28 July 2012 (2012-07-28), pages 16 - 19, ISSN: 0004524648 *
CHUJOU, T.: "Chroma sampling filter hint SEI", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11, vol. JCTVC-K0152 (version 1), JPN6021021250, 1 October 2012 (2012-10-01), pages 1 - 5, ISSN: 0004524647 *

Also Published As

Publication number Publication date
JP6980843B2 (en) 2021-12-15
JP2018078643A (en) 2018-05-17
JP2022036956A (en) 2022-03-08
JP6282763B2 (en) 2018-02-21
JP2019075822A (en) 2019-05-16
JP2023029538A (en) 2023-03-03
JP2017092981A (en) 2017-05-25
JP7387924B2 (en) 2023-11-28
JP6721730B2 (en) 2020-07-15
JP7214818B2 (en) 2023-01-30
JP6473833B2 (en) 2019-02-20

Similar Documents

Publication Publication Date Title
JP6125215B2 (en) Decoding device and encoding device
US11575940B2 (en) Context modeling of reduced secondary transforms in video
JP2019146263A (en) Methods and devices for emulating low-fidelity coding in high-fidelity coder
KR102267518B1 (en) Method for encoding/decoding image, and device using same
JP6409516B2 (en) Picture coding program, picture coding method, and picture coding apparatus
US20210377578A1 (en) Custom data indicating nominal range of samples of media content
JP2018533284A (en) Method and apparatus for processing video signals using coefficient induced prediction
CN117376556A (en) Position dependent intra prediction sampling point filtering
JP6980843B2 (en) Decoding device, coding device, decoding method, and coding method
KR20200004348A (en) Method and apparatus for processing video signal through target region correction
KR20130098121A (en) Device and method for encoding/decoding image using adaptive interpolation filters
WO2013035358A1 (en) Device and method for video encoding, and device and method for video decoding
JP2020010342A (en) Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method, and image decoding program
STANDARD VC-2 Video Compression

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200615

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210608

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210708

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211117

R151 Written notification of patent or utility model registration

Ref document number: 6980843

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151