JP2016042717A - Image processor and image processing method - Google Patents

Image processor and image processing method Download PDF

Info

Publication number
JP2016042717A
JP2016042717A JP2015212445A JP2015212445A JP2016042717A JP 2016042717 A JP2016042717 A JP 2016042717A JP 2015212445 A JP2015212445 A JP 2015212445A JP 2015212445 A JP2015212445 A JP 2015212445A JP 2016042717 A JP2016042717 A JP 2016042717A
Authority
JP
Japan
Prior art keywords
motion vector
unit
prediction unit
layer
information
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
JP2015212445A
Other languages
Japanese (ja)
Other versions
JP6048564B2 (en
Inventor
佐藤 数史
Kazufumi Sato
数史 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2015212445A priority Critical patent/JP6048564B2/en
Publication of JP2016042717A publication Critical patent/JP2016042717A/en
Application granted granted Critical
Publication of JP6048564B2 publication Critical patent/JP6048564B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an image processor capable of enhancing the encoding efficiency by utilizing correlation in movements of an image between the layers which are subject to scalable encoding.SOLUTION: The image processor includes: an information acquisition section 191 that acquires a piece of setting information relevant to a motion vector to be set to a first prediction unit, which is a piece of setting information for setting a motion vector, to a second prediction unit in a second layer corresponding to a first prediction unit in a first layer of an image including the first layer and the second layer upper than the first layer, which is subjected to scalable coding; and a motion vector setting section 192 that sets a motion vector to the second prediction unit by using the setting information acquired by the information acquisition section.SELECTED DRAWING: Figure 18

Description

本開示は、画像処理装置及び画像処理方法に関する。   The present disclosure relates to an image processing apparatus and an image processing method.

従来、デジタル画像を効率的に伝送し又は蓄積することを目的とし、画像に特有の冗長性を利用して画像の情報量を圧縮する、H.26x(ITU-T Q6/16 VCEG)標準及びMPEG(Moving Picture Experts Group)−y標準などの圧縮技術が普及している。MPEG4の活動の一環としてのJoint Model of Enhanced-Compression Video Codingでは、H.26x標準をベースとしながら新たな機能をも取り入れることで、より高い圧縮率を実現可能な、H.264及びMPEG−4 Part10(Advanced Video Coding;AVC)という名称の国際的な標準規格が策定された。   Conventionally, the purpose of efficiently transmitting or storing digital images is to compress the amount of information of an image using redundancy unique to the image. Compression techniques such as the 26x (ITU-T Q6 / 16 VCEG) standard and the Moving Picture Experts Group (MPEG) -y standard are widespread. In Joint Model of Enhanced-Compression Video Coding as part of MPEG4 activities, It is possible to realize a higher compression ratio by incorporating new functions based on the 26x standard. An international standard named H.264 and MPEG-4 Part 10 (Advanced Video Coding; AVC) has been developed.

これら画像符号化方式において重要な技術の1つに、フレーム間予測がある。フレーム間予測では、符号化される画像の内容が参照画像を用いて予測され、予測画像と実際の画像との差分のみが符号化される。それにより、符号量の圧縮が実現される。しかし、一連の画像内で物体が大きく動いている場合、予測画像と実際の画像との差分が大きくなり、単純なフレーム間予測では高い圧縮率を得ることができない。そこで、物体の動きを動きベクトルとして認識し、動きが現れている領域の画素値を動きベクトルに応じて補償することで、フレーム間予測における予測誤差の低減が図られる。このような手法を、動き補償という。   One of the important techniques in these image coding methods is inter-frame prediction. In inter-frame prediction, the content of an image to be encoded is predicted using a reference image, and only the difference between the predicted image and the actual image is encoded. Thereby, the compression of the code amount is realized. However, when an object moves greatly in a series of images, the difference between the predicted image and the actual image becomes large, and a high compression rate cannot be obtained by simple inter-frame prediction. Therefore, by recognizing the motion of the object as a motion vector and compensating the pixel value of the region where the motion appears according to the motion vector, the prediction error in the inter-frame prediction can be reduced. Such a method is called motion compensation.

H.264/AVCに続く次世代の画像符号化方式として標準化が進められているHEVC(High Efficiency Video Coding)HEVCでは、画像内の各符号化単位(CU:Coding Unit)がさらに1つ以上の予測単位(PU:Prediction Unit)に区分され、各予測単位に動きベクトルを設定することができる。HEVCの予測単位のサイズ及び形状はH.264/AVCのブロックよりも多様であり、物体の動きをより正確に動き補償に反映させることができる(下記非特許文献1参照)。下記非特許文献2は、動きベクトルの符号量を削減するために、動きの空間的相関又は時間的相関を利用して動きベクトルを予測し、予測動きベクトルと実際の動きベクトルとの差分のみを符号化する技術を提案している。下記非特許文献3は、画像内で隣り合うブロックのうち動き情報が共通するブロックをマージ(併合)することで、動き情報の符号量を削減することを提案している。   H. In HEVC (High Efficiency Video Coding) HEVC, which is being standardized as a next-generation image encoding method following H.264 / AVC, each encoding unit (CU: Coding Unit) in an image further includes one or more prediction units. (PU: Prediction Unit), and a motion vector can be set for each prediction unit. The size and shape of the prediction unit of HEVC is H.264. It is more diverse than the H.264 / AVC block, and the motion of the object can be reflected more accurately in motion compensation (see Non-Patent Document 1 below). Non-Patent Document 2 below predicts a motion vector using spatial correlation or temporal correlation of motion in order to reduce the amount of code of the motion vector, and calculates only the difference between the predicted motion vector and the actual motion vector. A coding technique is proposed. Non-Patent Document 3 below proposes to reduce the amount of code of motion information by merging (merging) blocks having common motion information among adjacent blocks in an image.

上述した画像符号化方式において重要なもう1つの技術は、スケーラブル符号化(SVC(Scalable Video Coding)ともいう)である。スケーラブル符号化とは、粗い画像信号を伝送するレイヤと精細な画像信号を伝送するレイヤとを階層的に符号化する技術をいう。スケーラブル符号化において階層化される典型的な属性は、主に次の3種類である。
−空間スケーラビリティ:空間解像度あるいは画像サイズが階層化される。
−時間スケーラビリティ:フレームレートが階層化される。
−SNR(Signal to Noise Ratio)スケーラビリティ:SN比が階層化される。
さらに、標準規格で未だ採用されていないものの、ビット深度スケーラビリティ及びクロマフォーマットスケーラビリティもまた議論されている。
Another important technique in the above-described image coding scheme is scalable coding (also referred to as SVC (Scalable Video Coding)). Scalable encoding refers to a technique for hierarchically encoding a layer that transmits a coarse image signal and a layer that transmits a fine image signal. Typical attributes hierarchized in scalable coding are mainly the following three types.
Spatial scalability: Spatial resolution or image size is layered.
-Time scalability: Frame rate is layered.
-Signal to noise ratio (SNR) scalability: SN ratio is hierarchized.
In addition, bit depth scalability and chroma format scalability are also discussed, although not yet adopted by the standard.

JCTVC-B205, “Test Model under Consideration”, Joint Collaborative Team on Video Coding meeting: Geneva, CH, 21-28 July, 2010JCTVC-B205, “Test Model under Consideration”, Joint Collaborative Team on Video Coding meeting: Geneva, CH, 21-28 July, 2010 VCEG-AI22, “Motion Vector Coding with Optimal PMV Selection”, Jungyoup Yang, et al, July, 2008VCEG-AI22, “Motion Vector Coding with Optimal PMV Selection”, Jungyoup Yang, et al, July, 2008 JCTVC-A116, “Video Coding Technology Proposal by Fraunhofer HHI”,M.Winken, et al, April, 2010JCTVC-A116, “Video Coding Technology Proposal by Fraunhofer HHI”, M. Winken, et al, April, 2010

上述した非特許文献2により提案されている手法及び非特許文献3により提案されている手法は、スケーラブル符号化を前提としていない。スケーラブル符号化される画像の各レイヤについてこれら既存の手法を適用すれば、ある程度の符号量の削減を見込むことはできる。しかしながら、スケーラブル符号化の種類によっては、レイヤ間の動きの相関が顕著である。従って、そのようなレイヤ間の動きの相関を活用して符号化効率を高めることが有益である。   The method proposed by Non-Patent Document 2 and the method proposed by Non-Patent Document 3 do not presuppose scalable coding. If these existing methods are applied to each layer of an image to be scalable encoded, a certain amount of code reduction can be expected. However, depending on the type of scalable coding, the correlation of motion between layers is significant. Therefore, it is beneficial to increase the coding efficiency by utilizing such correlation of motion between layers.

そこで、本開示に係る技術は、スケーラブル符号化される画像のレイヤ間の動きの相関を活用して、符号化効率を高めることを目的とする。   Therefore, the technology according to the present disclosure aims to increase the encoding efficiency by utilizing the correlation of motion between layers of an image to be scalable encoded.

本開示によれば、第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を取得する情報取得部と、前記情報取得部により取得される前記設定情報を用いて、前記第2の予測単位に動きベクトルを設定する動きベクトル設定部と、を備える画像処理装置が提供される。   According to the present disclosure, the second corresponding to the first prediction unit in the first layer of the image to be scalable decoded including the first layer and the second layer higher than the first layer. Setting information for setting a motion vector in a second prediction unit in the layer, and an information acquisition unit for acquiring the setting information related to the motion vector set in the first prediction unit; There is provided an image processing apparatus comprising: a motion vector setting unit that sets a motion vector in the second prediction unit using the setting information acquired by the information acquisition unit.

上記画像処理装置は、典型的には、画像を復号する画像復号装置として実現され得る。   The image processing apparatus can typically be realized as an image decoding apparatus that decodes an image.

また、本開示によれば、第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を取得することと、取得された前記設定情報を用いて、前記第2の予測単位に動きベクトルを設定することと、を含む画像処理方法が提供される。   Also, according to the present disclosure, the first layer and the first prediction unit in the first layer of the image to be scalable decoded including the second layer higher than the first layer correspond to the first prediction unit in the first layer. Setting information for setting a motion vector in the second prediction unit in the second layer, the setting information relating to the motion vector set in the first prediction unit; And setting a motion vector in the second prediction unit using the set information thus provided.

また、本開示によれば、第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を生成する情報生成部と、前記情報生成部により生成される前記設定情報を符号化する符号化部と、を備える画像処理装置が提供される。   Also, according to the present disclosure, the first layer and the first prediction unit in the first layer of the image to be scalable decoded including the second layer higher than the first layer correspond to the first prediction unit in the first layer. An information generation unit configured to generate setting information related to a motion vector set in the first prediction unit, which is setting information for setting a motion vector in a second prediction unit in the second layer; And an encoding unit that encodes the setting information generated by the information generation unit.

上記画像処理装置は、典型的には、画像を符号化する画像符号化装置として実現され得る。   The image processing apparatus can typically be realized as an image encoding apparatus that encodes an image.

また、本開示によれば、第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を生成することと、生成された前記設定情報を符号化することと、を含む画像処理方法が提供される。   Also, according to the present disclosure, the first layer and the first prediction unit in the first layer of the image to be scalable decoded including the second layer higher than the first layer correspond to the first prediction unit in the first layer. Generation of setting information for setting a motion vector in a second prediction unit in the second layer, the setting information relating to the motion vector set in the first prediction unit; An image processing method including encoding the setting information.

本開示によれば、スケーラブル符号化される画像のレイヤ間の動きの相関を活用することにより、符号化効率が一層高められる。   According to the present disclosure, encoding efficiency is further improved by utilizing the correlation of motion between layers of an image to be scalable encoded.

一実施形態に係る画像符号化装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the image coding apparatus which concerns on one Embodiment. 空間スケーラビリティについて説明するための説明図である。It is explanatory drawing for demonstrating space scalability. SNRスケーラビリティについて説明するための説明図である。It is explanatory drawing for demonstrating SNR scalability. 第1の実施例に係る動き探索部の詳細な構成の一例を示すブロック図である。It is a block diagram which shows an example of a detailed structure of the motion search part which concerns on a 1st Example. 動きベクトルの予測のためのプレディクタ候補の例について説明するための第1の説明図である。It is the 1st explanatory view for explaining an example of a predictor candidate for prediction of a motion vector. 動きベクトルの予測のためのプレディクタ候補の例について説明するための第2の説明図である。It is the 2nd explanatory view for explaining an example of a predictor candidate for prediction of a motion vector. 第1の実施例に係る動き探索部による動き探索処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the motion search process by the motion search part which concerns on a 1st Example. 第2の実施例に係る動き探索部の詳細な構成の一例を示すブロック図である。It is a block diagram which shows an example of a detailed structure of the motion search part which concerns on a 2nd Example. レイヤ間プレディクタの一例について説明するための説明図である。It is explanatory drawing for demonstrating an example of the predictor between layers. 第2の実施例に係る動き探索部による動き探索処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the motion search process by the motion search part which concerns on a 2nd Example. 第3の実施例に係る動き探索部の詳細な構成の一例を示すブロック図である。It is a block diagram which shows an example of a detailed structure of the motion search part which concerns on a 3rd Example. マージ情報の第1の例を示す説明図である。It is explanatory drawing which shows the 1st example of merge information. マージ情報の第2の例を示す説明図である。It is explanatory drawing which shows the 2nd example of merge information. マージ情報の第3の例を示す説明図である。It is explanatory drawing which shows the 3rd example of merge information. 第3の実施例に係る動き探索部による動き探索処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the motion search process by the motion search part which concerns on a 3rd Example. 第4の実施例に係る動き探索部の詳細な構成の一例を示すブロック図である。It is a block diagram which shows an example of a detailed structure of the motion search part which concerns on a 4th Example. マージ情報の第4の例を示す説明図である。It is explanatory drawing which shows the 4th example of merge information. マージ情報の第5の例を示す説明図である。It is explanatory drawing which shows the 5th example of merge information. マージ情報の第6の例を示す説明図である。It is explanatory drawing which shows the 6th example of merge information. 第4の実施例に係る動き探索部による動き探索処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the motion search process by the motion search part which concerns on a 4th Example. 一実施形態に係る画像復号装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the image decoding apparatus which concerns on one Embodiment. 第1の実施例に係る動き補償部の詳細な構成の一例を示すブロック図である。It is a block diagram which shows an example of a detailed structure of the motion compensation part which concerns on a 1st Example. 第1の実施例に係る動き補償部による動き補償処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the motion compensation process by the motion compensation part which concerns on 1st Example. 第2の実施例に係る動き補償部の詳細な構成の一例を示すブロック図である。It is a block diagram which shows an example of a detailed structure of the motion compensation part which concerns on a 2nd Example. 第2の実施例に係る動き補償部による動き補償処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the motion compensation process by the motion compensation part which concerns on 2nd Example. 第3の実施例に係る動き補償部の詳細な構成の一例を示すブロック図である。It is a block diagram which shows an example of a detailed structure of the motion compensation part which concerns on a 3rd Example. 第3の実施例に係る動き補償部による動き補償処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the motion compensation process by the motion compensation part which concerns on a 3rd Example. 第4の実施例に係る動き補償部の詳細な構成の一例を示すブロック図である。It is a block diagram which shows an example of a detailed structure of the motion compensation part which concerns on a 4th Example. 第4の実施例に係る動き補償部による動き補償処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the motion compensation process by the motion compensation part which concerns on a 4th Example. テレビジョン装置の概略的な構成の一例を示すブロック図である。It is a block diagram which shows an example of a schematic structure of a television apparatus. 携帯電話機の概略的な構成の一例を示すブロック図である。It is a block diagram which shows an example of a schematic structure of a mobile telephone. 記録再生装置の概略的な構成の一例を示すブロック図である。It is a block diagram which shows an example of a schematic structure of a recording / reproducing apparatus. 撮像装置の概略的な構成の一例を示すブロック図である。It is a block diagram which shows an example of a schematic structure of an imaging device.

以下に添付図面を参照しながら、本開示の好適な実施の形態について詳細に説明する。なお、本明細書及び図面において、実質的に同一の機能構成を有する構成要素については、同一の符号を付することにより重複説明を省略する。   Hereinafter, preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In addition, in this specification and drawing, about the component which has the substantially same function structure, duplication description is abbreviate | omitted by attaching | subjecting the same code | symbol.

また、以下の順序で説明を行う。
1.画像符号化装置の構成例
2.動き探索部の詳細な構成例
2−1.第1の実施例
2−2.第2の実施例
2−3.第3の実施例
2−4.第4の実施例
3.画像復号装置の構成例
4.動き補償部の詳細な構成例
4−1.第1の実施例
4−2.第2の実施例
4−3.第3の実施例
4−4.第4の実施例
5.応用例
6.まとめ
The description will be given in the following order.
1. 1. Configuration example of image encoding device 2. Detailed configuration example of motion search unit 2-1. First Example 2-2. Second Example 2-3. Third Example 2-4. 4. Fourth embodiment 3. Configuration example of image decoding apparatus Detailed configuration example of motion compensation unit 4-1. First Example 4-2. Second Example 4-3. Third Example 4-4. 4. Fourth embodiment Application example 6. Summary

<1.画像符号化装置の構成例>
図1は、一実施形態に係る画像符号化装置10の構成の一例を示すブロック図である。図1を参照すると、画像符号化装置10は、A/D(Analogue to Digital)変換部11、並び替えバッファ12、減算部13、直交変換部14、量子化部15、可逆符号化部16、蓄積バッファ17、レート制御部18、逆量子化部21、逆直交変換部22、加算部23、デブロックフィルタ24、フレームメモリ25、セレクタ26及び27、イントラ予測部30、並びに動き探索部40を備える。
<1. Configuration Example of Image Encoding Device>
FIG. 1 is a block diagram illustrating an example of a configuration of an image encoding device 10 according to an embodiment. Referring to FIG. 1, an image encoding device 10 includes an A / D (Analogue to Digital) conversion unit 11, a rearrangement buffer 12, a subtraction unit 13, an orthogonal transformation unit 14, a quantization unit 15, a lossless encoding unit 16, The accumulation buffer 17, rate control unit 18, inverse quantization unit 21, inverse orthogonal transform unit 22, addition unit 23, deblock filter 24, frame memory 25, selectors 26 and 27, intra prediction unit 30, and motion search unit 40 are provided. Prepare.

A/D変換部11は、アナログ形式で入力される画像信号をデジタル形式の画像データに変換し、一連のデジタル画像データを並び替えバッファ12へ出力する。   The A / D conversion unit 11 converts an image signal input in analog format into image data in digital format, and outputs a series of digital image data to the rearrangement buffer 12.

並び替えバッファ12は、A/D変換部11から入力される一連の画像データに含まれる画像を並び替える。並び替えバッファ12は、符号化処理に係るGOP(Group of Pictures)構造に応じて画像を並び替えた後、並び替え後の画像データを減算部13、イントラ予測部30及び動き探索部40へ出力する。   The rearrangement buffer 12 rearranges images included in a series of image data input from the A / D conversion unit 11. The rearrangement buffer 12 rearranges the images according to the GOP (Group of Pictures) structure related to the encoding process, and then outputs the rearranged image data to the subtraction unit 13, the intra prediction unit 30, and the motion search unit 40. To do.

減算部13には、並び替えバッファ12から入力される画像データ、及び後に説明するイントラ予測部30又は動き探索部40から入力される予測画像データが供給される。減算部13は、並び替えバッファ12から入力される画像データと予測画像データとの差分である予測誤差データを算出し、算出した予測誤差データを直交変換部14へ出力する。   The subtraction unit 13 is supplied with image data input from the rearrangement buffer 12 and predicted image data input from the intra prediction unit 30 or the motion search unit 40 described later. The subtraction unit 13 calculates prediction error data that is the difference between the image data input from the rearrangement buffer 12 and the predicted image data, and outputs the calculated prediction error data to the orthogonal transform unit 14.

直交変換部14は、減算部13から入力される予測誤差データについて直交変換を行う。直交変換部14により実行される直交変換は、例えば、離散コサイン変換(Discrete Cosine Transform:DCT)又はカルーネン・レーベ変換などであってよい。直交変換部14は、直交変換処理により取得される変換係数データを量子化部15へ出力する。   The orthogonal transform unit 14 performs orthogonal transform on the prediction error data input from the subtraction unit 13. The orthogonal transform executed by the orthogonal transform unit 14 may be, for example, discrete cosine transform (DCT) or Karoonen-Loeve transform. The orthogonal transform unit 14 outputs transform coefficient data acquired by the orthogonal transform process to the quantization unit 15.

量子化部15には、直交変換部14から入力される変換係数データ、及び後に説明するレート制御部18からのレート制御信号が供給される。量子化部15は、変換係数データを量子化し、量子化後の変換係数データ(以下、量子化データという)を可逆符号化部16及び逆量子化部21へ出力する。また、量子化部15は、レート制御部18からのレート制御信号に基づいて量子化パラメータ(量子化スケール)を切り替えることにより、可逆符号化部16に入力される量子化データのビットレートを変化させる。   The quantization unit 15 is supplied with transform coefficient data input from the orthogonal transform unit 14 and a rate control signal from a rate control unit 18 described later. The quantizing unit 15 quantizes the transform coefficient data and outputs the quantized transform coefficient data (hereinafter referred to as quantized data) to the lossless encoding unit 16 and the inverse quantization unit 21. Further, the quantization unit 15 changes the bit rate of the quantized data input to the lossless encoding unit 16 by switching the quantization parameter (quantization scale) based on the rate control signal from the rate control unit 18. Let

可逆符号化部16は、量子化部15から入力される量子化データについて可逆符号化処理を行うことにより、符号化ストリームを生成する。可逆符号化部16による可逆符号化は、例えば、可変長符号化、又は算術符号化などであってよい。また、可逆符号化部16は、セレクタ27から入力されるイントラ予測に関する情報又はインター予測に関する情報を、符号化ストリームのヘッダ領域内に多重化する。そして、可逆符号化部16は、生成した符号化ストリームを蓄積バッファ17へ出力する。   The lossless encoding unit 16 performs a lossless encoding process on the quantized data input from the quantization unit 15 to generate an encoded stream. The lossless encoding by the lossless encoding unit 16 may be variable length encoding or arithmetic encoding, for example. Further, the lossless encoding unit 16 multiplexes information related to intra prediction or information related to inter prediction input from the selector 27 in the header region of the encoded stream. Then, the lossless encoding unit 16 outputs the generated encoded stream to the accumulation buffer 17.

蓄積バッファ17は、可逆符号化部16から入力される符号化ストリームを一時的に蓄積する。そして、蓄積バッファ17は、蓄積した符号化ストリームを、伝送路の帯域に応じたレートで、図示しない伝送部(例えば、通信インタフェース又は周辺機器との接続インタフェースなど)へ出力する。   The accumulation buffer 17 temporarily accumulates the encoded stream input from the lossless encoding unit 16. Then, the accumulation buffer 17 outputs the accumulated encoded stream to a transmission unit (not shown) (for example, a communication interface or a connection interface with a peripheral device) at a rate corresponding to the bandwidth of the transmission path.

レート制御部18は、蓄積バッファ17の空き容量を監視する。そして、レート制御部18は、蓄積バッファ17の空き容量に応じてレート制御信号を生成し、生成したレート制御信号を量子化部15へ出力する。例えば、レート制御部18は、蓄積バッファ17の空き容量が少ない時には、量子化データのビットレートを低下させるためのレート制御信号を生成する。また、例えば、レート制御部18は、蓄積バッファ17の空き容量が十分大きい時には、量子化データのビットレートを高めるためのレート制御信号を生成する。   The rate control unit 18 monitors the free capacity of the accumulation buffer 17. Then, the rate control unit 18 generates a rate control signal according to the free capacity of the accumulation buffer 17 and outputs the generated rate control signal to the quantization unit 15. For example, the rate control unit 18 generates a rate control signal for reducing the bit rate of the quantized data when the free capacity of the storage buffer 17 is small. For example, when the free capacity of the accumulation buffer 17 is sufficiently large, the rate control unit 18 generates a rate control signal for increasing the bit rate of the quantized data.

逆量子化部21は、量子化部15から入力される量子化データについて逆量子化処理を行う。そして、逆量子化部21は、逆量子化処理により取得される変換係数データを、逆直交変換部22へ出力する。   The inverse quantization unit 21 performs an inverse quantization process on the quantized data input from the quantization unit 15. Then, the inverse quantization unit 21 outputs transform coefficient data acquired by the inverse quantization process to the inverse orthogonal transform unit 22.

逆直交変換部22は、逆量子化部21から入力される変換係数データについて逆直交変換処理を行うことにより、予測誤差データを復元する。そして、逆直交変換部22は、復元した予測誤差データを加算部23へ出力する。   The inverse orthogonal transform unit 22 restores the prediction error data by performing an inverse orthogonal transform process on the transform coefficient data input from the inverse quantization unit 21. Then, the inverse orthogonal transform unit 22 outputs the restored prediction error data to the addition unit 23.

加算部23は、逆直交変換部22から入力される復元された予測誤差データとイントラ予測部30又は動き探索部40から入力される予測画像データとを加算することにより、復号画像データを生成する。そして、加算部23は、生成した復号画像データをデブロックフィルタ24及びフレームメモリ25へ出力する。   The adding unit 23 generates decoded image data by adding the restored prediction error data input from the inverse orthogonal transform unit 22 and the predicted image data input from the intra prediction unit 30 or the motion search unit 40. . Then, the addition unit 23 outputs the generated decoded image data to the deblock filter 24 and the frame memory 25.

デブロックフィルタ24は、画像の符号化時に生じるブロック歪みを減少させるためのフィルタリング処理を行う。デブロックフィルタ24は、加算部23から入力される復号画像データをフィルタリングすることによりブロック歪みを除去し、フィルタリング後の復号画像データをフレームメモリ25へ出力する。   The deblocking filter 24 performs a filtering process for reducing block distortion that occurs when an image is encoded. The deblocking filter 24 removes block distortion by filtering the decoded image data input from the adding unit 23, and outputs the decoded image data after filtering to the frame memory 25.

フレームメモリ25は、加算部23から入力される復号画像データ、及びデブロックフィルタ24から入力されるフィルタリング後の復号画像データを記憶媒体を用いて記憶する。   The frame memory 25 stores the decoded image data input from the adder 23 and the decoded image data after filtering input from the deblock filter 24 using a storage medium.

セレクタ26は、インター予測のために使用されるフィルタリング後の復号画像データをフレームメモリ25から読み出し、読み出した復号画像データを参照画像データとして動き探索部40に供給する。また、セレクタ26は、イントラ予測のために使用されるフィルタリング前の復号画像データをフレームメモリ25から読み出し、読み出した復号画像データを参照画像データとしてイントラ予測部30に供給する。   The selector 26 reads filtered decoded image data used for inter prediction from the frame memory 25 and supplies the read decoded image data to the motion search unit 40 as reference image data. In addition, the selector 26 reads out the decoded image data before filtering used for intra prediction from the frame memory 25 and supplies the read out decoded image data to the intra prediction unit 30 as reference image data.

セレクタ27は、インター予測モードにおいて、動き探索部40から出力されるインター予測の結果としての予測画像データを減算部13へ出力すると共に、インター予測に関する情報を可逆符号化部16へ出力する。また、セレクタ27は、イントラ予測モードにおいて、イントラ予測部30から出力されるイントラ予測の結果としての予測画像データを減算部13へ出力すると共に、イントラ予測に関する情報を可逆符号化部16へ出力する。セレクタ27は、インター予測モードとイントラ予測モードとを、イントラ予測部30及び動き探索部40から出力されるコスト関数値の大きさに応じて切り替える。   In the inter prediction mode, the selector 27 outputs predicted image data as a result of inter prediction output from the motion search unit 40 to the subtraction unit 13 and outputs information related to inter prediction to the lossless encoding unit 16. In addition, in the intra prediction mode, the selector 27 outputs the prediction image data as a result of the intra prediction output from the intra prediction unit 30 to the subtraction unit 13 and outputs information related to the intra prediction to the lossless encoding unit 16. . The selector 27 switches between the inter prediction mode and the intra prediction mode according to the size of the cost function value output from the intra prediction unit 30 and the motion search unit 40.

イントラ予測部30は、並び替えバッファ12から入力される符号化対象の画像データ(原画像データ)、及びフレームメモリ25から供給される参照画像データとしての復号画像データに基づいて、画像内に設定されるブロックごとにイントラ予測処理を行う。そして、イントラ予測部30は、最適な予測モードを示す予測モード情報を含むイントラ予測に関する情報、コスト関数値、及び予測画像データを、セレクタ27へ出力する。   The intra prediction unit 30 is set in the image based on the image data to be encoded (original image data) input from the rearrangement buffer 12 and the decoded image data as reference image data supplied from the frame memory 25. Intra prediction processing is performed for each block to be processed. Then, the intra prediction unit 30 outputs information related to intra prediction including prediction mode information indicating an optimal prediction mode, a cost function value, and predicted image data to the selector 27.

動き探索部40は、並び替えバッファ12から入力される原画像データ、及びセレクタ26を介して供給される復号画像データに基づいて、インター予測(フレーム間予測)のための動き探索処理を行う。本実施形態に係る動き探索部40による動き探索処理は、上記非特許文献2に記載された手法又は上記非特許文献3に記載された手法を拡張することにより実現され得る。上記非特許文献2に記載された手法の拡張においては、動き探索部40は、各予測単位について最適なプレディクタ(predictor)を示すプレディクタ情報を生成し得る。また、上記非特許文献3に記載された手法の拡張においては、動き探索部40は、各予測単位について最適なマージモードを示すマージ情報を生成し得る。そして、動き探索部40は、プレディクタ情報又はマージ情報、動きベクトル情報及び参照画像情報を含むインター予測に関する情報、コスト関数値、並びに予測画像データを、セレクタ27へ出力する。次節において、動き探索部40の詳細な構成についての4つの実施例を説明する。   The motion search unit 40 performs a motion search process for inter prediction (interframe prediction) based on the original image data input from the rearrangement buffer 12 and the decoded image data supplied via the selector 26. The motion search process by the motion search unit 40 according to the present embodiment can be realized by extending the method described in Non-Patent Document 2 or the method described in Non-Patent Document 3. In the extension of the method described in Non-Patent Document 2, the motion search unit 40 can generate predictor information indicating an optimal predictor for each prediction unit. Further, in the extension of the technique described in Non-Patent Document 3, the motion search unit 40 can generate merge information indicating an optimal merge mode for each prediction unit. Then, the motion search unit 40 outputs information related to inter prediction including predictor information or merge information, motion vector information, and reference image information, a cost function value, and predicted image data to the selector 27. In the next section, four examples of the detailed configuration of the motion search unit 40 will be described.

画像符号化装置10は、ここで説明した一連の符号化処理を、スケーラブル符号化される画像の複数のレイヤの各々について繰り返す。最初に符号化されるレイヤは、ベースレイヤ(base layer)と呼ばれる、最も粗い画像を表現するレイヤである。ベースレイヤの符号化ストリームは、他のレイヤの符号化ストリームを復号することなく、独立して復号され得る。ベースレイヤ以外のレイヤは、エンハンスメントレイヤ(enhancement layer)と呼ばれる、より精細な画像を表現するレイヤである。エンハンスメントレイヤの符号化ストリームは、符号化効率を高めるためにベースレイヤの符号化ストリームに含まれる情報を用いて符号化される。従って、エンハンスメントレイヤの画像を再現するためには、ベースレイヤ及びエンハンスメントレイヤの双方の符号化ストリームが復号されることになる。スケーラブル符号化において扱われるレイヤは、3つ以上であってもよい。その場合には、最下位のレイヤがベースレイヤ、残りの複数のレイヤがエンハンスメントレイヤである。より上位のエンハンスメントレイヤの符号化ストリームは、より下位のエンハンスメントレイヤ又はベースレイヤの符号化ストリームに含まれる情報を用いて符号化され及び復号され得る。本明細書では、依存関係を有する少なくとも2つのレイヤのうち、依存される側のレイヤを下位レイヤ(lower layer)、依存する側のレイヤを上位レイヤ(upper layer)という。   The image encoding device 10 repeats the series of encoding processes described here for each of a plurality of layers of an image to be scalable encoded. The layer encoded first is a layer that expresses the coarsest image, called a base layer. The base layer coded stream may be decoded independently without decoding the other layer coded streams. A layer other than the base layer is a layer called an enhancement layer (enhancement layer) that represents a finer image. The enhancement layer coded stream is coded using information included in the base layer coded stream in order to increase coding efficiency. Accordingly, in order to reproduce the enhancement layer image, both the base layer and enhancement layer encoded streams are decoded. There may be three or more layers handled in scalable coding. In this case, the lowest layer is the base layer, and the remaining layers are enhancement layers. The higher enhancement layer encoded stream may be encoded and decoded using information contained in the lower enhancement layer or base layer encoded stream. In this specification, of at least two layers having a dependency relationship, a layer on which the dependency is made is referred to as a lower layer, and a layer on which the dependency is concerned is referred to as an upper layer.

画像符号化装置10によるスケーラブル符号化に際しては、インター予測に関する情報を効率的に符号化するために、レイヤ間の動きの相関が利用される。即ち、インター予測ブロックにおいて、下位レイヤに設定された動きベクトルに関連する設定情報に基づく上位レイヤへの動きベクトルの設定が行われる。具体的には、図1に示した動き探索部40は、下位レイヤでのインター予測の際に得られる情報を一時的に記憶するためのバッファを有し、当該バッファに記憶される情報を用いて上位レイヤに動きベクトルを設定する。レイヤ間の動きの相関は、特に、空間スケーラビリティ又はSNRスケーラビリティに基づくスケーラブル符号化において顕著に現れ得る。   When scalable coding is performed by the image coding device 10, motion correlation between layers is used to efficiently code information related to inter prediction. That is, in the inter prediction block, the motion vector is set to the upper layer based on the setting information related to the motion vector set to the lower layer. Specifically, the motion search unit 40 illustrated in FIG. 1 has a buffer for temporarily storing information obtained in inter prediction in a lower layer, and uses information stored in the buffer. To set a motion vector in the upper layer. The correlation of motion between layers can be particularly noticeable in scalable coding based on spatial scalability or SNR scalability.

図2は、空間スケーラビリティの一例について説明するための説明図である。図2において、スケーラブル符号化される3つのレイヤL1、L2及びL3が示されている。レイヤL1はベースレイヤであり、レイヤL2及びL3はエンハンスメントレイヤである。レイヤL2のレイヤL1に対する空間解像度の比は、2:1である。レイヤL3のレイヤL1に対する空間解像度の比は、4:1である。このように互いに解像度が異なっているとしても、レイヤL1内の予測単位B1に現れる動きは、レイヤL2内の対応する予測単位B2及びレイヤL3内の対応する予測単位B3において同じように現れる可能性が高い。これが、空間スケーラビリティにおけるレイヤ間の動きの相関である。   FIG. 2 is an explanatory diagram for explaining an example of spatial scalability. In FIG. 2, three layers L1, L2 and L3 to be scalable encoded are shown. Layer L1 is a base layer, and layers L2 and L3 are enhancement layers. The ratio of the spatial resolution of the layer L2 to the layer L1 is 2: 1. The ratio of the spatial resolution of layer L3 to layer L1 is 4: 1. Even if the resolutions are different from each other in this way, the motion that appears in the prediction unit B1 in the layer L1 may appear in the same way in the corresponding prediction unit B2 in the layer L2 and the corresponding prediction unit B3 in the layer L3. Is expensive. This is the correlation of motion between layers in spatial scalability.

図3は、SNRスケーラビリティの一例について説明するための説明図である。図3において、スケーラブル符号化される3つのレイヤL1、L2及びL3が示されている。レイヤL1はベースレイヤであり、レイヤL2及びL3はエンハンスメントレイヤである。レイヤL1、L2及びL3の空間解像度は互いに等しい。しかし、一例として、レイヤL1の最小の量子化スケールは25であり、直交変換係数の量子化によって符号化ストリームのビットレートは2Mbps程度に抑えられる。一方、例えばレイヤL2の最小の量子化スケールは12であり、符号化ストリームのビットレートは5Mbps程度となる。また、例えばレイヤL3の最小の量子化スケールは0であり、符号化ストリームのビットレートは10Mbps程度となる。このように互いにビットレートが異なっているとしても、レイヤL1内の予測単位B1に現れる動きは、レイヤL2内の対応する予測単位B2及びレイヤL3内の対応する予測単位B3において同じように現れる可能性が高い。これが、SNRスケーラビリティにおけるレイヤ間の動きの相関である。   FIG. 3 is an explanatory diagram for explaining an example of SNR scalability. In FIG. 3, three layers L1, L2 and L3 to be scalable encoded are shown. Layer L1 is a base layer, and layers L2 and L3 are enhancement layers. The spatial resolutions of the layers L1, L2 and L3 are equal to each other. However, as an example, the minimum quantization scale of the layer L1 is 25, and the bit rate of the encoded stream is suppressed to about 2 Mbps by quantization of the orthogonal transform coefficient. On the other hand, for example, the minimum quantization scale of the layer L2 is 12, and the bit rate of the encoded stream is about 5 Mbps. For example, the minimum quantization scale of the layer L3 is 0, and the bit rate of the encoded stream is about 10 Mbps. Thus, even if the bit rates are different from each other, the motion appearing in the prediction unit B1 in the layer L1 can appear in the same way in the corresponding prediction unit B2 in the layer L2 and the corresponding prediction unit B3 in the layer L3. High nature. This is the correlation of motion between layers in SNR scalability.

本実施形態に係る画像符号化装置10は、これらのようなレイヤ間の動きの相関を積極的に活用して、インター予測に関する情報を効率的に符号化する。   The image encoding device 10 according to the present embodiment efficiently uses the correlation of motion between layers as described above to efficiently encode information related to inter prediction.

なお、上位レイヤの予測単位に対応する下位レイヤの予測単位とは、例えば、上位レイヤの予測単位の所定の位置(例えば、左上)の画素に対応する画素を有する、下位レイヤの予測単位であってよい。このような定義により、下位レイヤの複数の予測単位を統合するような上位レイヤの予測単位が存在したとしても、上位レイヤの予測単位に対応する下位レイヤの予測単位を一意に決定することができる。その代わりに、上位レイヤの予測単位に対応する下位レイヤの予測単位とは、例えば、上位レイヤの予測単位と重なる(同じ位置の画素を共有する)下位レイヤ内の予測単位のうち重なりの最も大きい(共有される画素数の最も多い)予測単位であってもよい。このような定義により、動きの相関が最も現れ易い予測単位を「対応する予測単位」として決定することができる。   Note that the lower layer prediction unit corresponding to the upper layer prediction unit is, for example, a lower layer prediction unit having a pixel corresponding to a pixel at a predetermined position (for example, upper left) of the upper layer prediction unit. It's okay. With such a definition, even when there is an upper layer prediction unit that integrates a plurality of lower layer prediction units, the lower layer prediction unit corresponding to the upper layer prediction unit can be uniquely determined. . Instead, the prediction unit of the lower layer corresponding to the prediction unit of the upper layer is, for example, the largest overlap among the prediction units in the lower layer that overlap with the prediction unit of the upper layer (sharing pixels at the same position). It may be a prediction unit (the largest number of shared pixels). With such a definition, it is possible to determine the prediction unit in which the correlation of motion is most likely to appear as the “corresponding prediction unit”.

<2.動き探索部の詳細な構成例>
本節では、図1に示した動き探索部40の詳細な構成についての4つの実施例を説明する。その4つの実施例のうち、第1及び第2の実施例は、上記非特許文献2に記載された手法の拡張についての実施例である。一方、第3及び第4の実施例は、上記非特許文献3に記載された手法の拡張についての実施例である。
<2. Detailed configuration example of motion search unit>
In this section, four examples of the detailed configuration of the motion search unit 40 shown in FIG. 1 will be described. Of the four examples, the first and second examples are examples of the extension of the technique described in Non-Patent Document 2. On the other hand, the third and fourth examples are examples of the extension of the technique described in Non-Patent Document 3.

[2−1.第1の実施例]
図4は、第1の実施例に係る動き探索部40の詳細な構成の一例を示すブロック図である。図4を参照すると、動き探索部40は、探索制御部141、動きベクトル算出部142、動きベクトル予測部143、動きベクトルバッファ144、モード選択部145、情報生成部146及びプレディクタ情報バッファ147を有する。
[2-1. First Example]
FIG. 4 is a block diagram illustrating an example of a detailed configuration of the motion search unit 40 according to the first embodiment. Referring to FIG. 4, the motion search unit 40 includes a search control unit 141, a motion vector calculation unit 142, a motion vector prediction unit 143, a motion vector buffer 144, a mode selection unit 145, an information generation unit 146, and a predictor information buffer 147. .

(1)ベースレイヤ
ベースレイヤの動き探索処理において、探索制御部141は、符号化単位内に1つ以上の予測単位を配置し、各予測単位について動きベクトル算出部142に動きベクトルを算出させる。動きベクトル算出部142により算出された動きベクトルは、動きベクトル予測部143へ出力されると共に、動きベクトルバッファ144に記憶される。動きベクトル予測部143は、複数のプレディクタ候補の各々に従い、動きベクトルバッファ144に記憶されている他のブロックの動きベクトル(参照動きベクトルという)を用いて予測動きベクトルを生成する。そして、動きベクトル予測部143は、動きベクトル算出部142により算出された動きベクトルと予測動きベクトルとの差分である差分動きベクトルを算出する。モード選択部145は、動きベクトル算出部142により算出された動きベクトルを用いて予測画像データを生成し、生成した予測画像データと原画像データとの比較に基づいて計算されるコスト関数値を評価する。そして、モード選択部145は、コスト関数値を最小にする最適な予測単位の配置と各予測単位についての最適なプレディクタとを選択する。情報生成部146は、各予測単位について選択された最適なプレディクタを示すプレディクタ情報及び対応する差分動きベクトルを示す差分動きベクトル情報を含むインター予測に関する情報を生成する。例えば、プレディクタ情報は、参照動きベクトルを特定するインデックスを含んでもよい。また、プレディクタ情報は、予測式を特定するパラメータを含んでもよい。そして、情報生成部146は、生成したインター予測に関する情報、コスト関数値及び予測画像データをセレクタ27へ出力する。また、情報生成部146により生成されるプレディクタ情報は、上位レイヤでの処理のために、プレディクタ情報バッファ147に一時的に記憶される。
(1) Base Layer In the base layer motion search process, the search control unit 141 arranges one or more prediction units in a coding unit, and causes the motion vector calculation unit 142 to calculate a motion vector for each prediction unit. The motion vector calculated by the motion vector calculation unit 142 is output to the motion vector prediction unit 143 and stored in the motion vector buffer 144. The motion vector prediction unit 143 generates a predicted motion vector using a motion vector (referred to as a reference motion vector) of another block stored in the motion vector buffer 144 according to each of the plurality of predictor candidates. Then, the motion vector prediction unit 143 calculates a differential motion vector that is a difference between the motion vector calculated by the motion vector calculation unit 142 and the predicted motion vector. The mode selection unit 145 generates predicted image data using the motion vector calculated by the motion vector calculation unit 142, and evaluates the cost function value calculated based on the comparison between the generated predicted image data and the original image data. To do. Then, the mode selection unit 145 selects an optimal prediction unit arrangement that minimizes the cost function value and an optimal predictor for each prediction unit. The information generation unit 146 generates information related to inter prediction including predictor information indicating the optimal predictor selected for each prediction unit and differential motion vector information indicating the corresponding differential motion vector. For example, the predictor information may include an index that identifies the reference motion vector. Further, the predictor information may include a parameter that specifies a prediction formula. Then, the information generation unit 146 outputs the generated inter prediction information, cost function value, and predicted image data to the selector 27. Further, the predictor information generated by the information generation unit 146 is temporarily stored in the predictor information buffer 147 for processing in the upper layer.

図5及び図6は、このようなインター予測において使用され得る、動きベクトルの予測のためのプレディクタ候補の例について説明するための説明図である。図5を参照すると、予測対象である1つの予測単位PTe、及び予測単位PTeの予測動きベクトルPMVeが示されている。予測単位PTeの予測動きベクトルPMVeは、例えば、予測単位PTeに隣接する予測単位の動きベクトルMVa、MVb及びMVcを参照動きベクトルとして用いて予測され得る。参照動きベクトルMVaは、予測単位PTeの左に隣接する予測単位に設定された動きベクトルである。参照動きベクトルMVbは、予測単位PTeの上に隣接する予測単位に設定された動きベクトルである。参照動きベクトルMVcは、予測単位PTeの右上に隣接する予測単位に設定された動きベクトルである。予測動きベクトルPMVeは、これら参照動きベクトルMVa、MVb及びMVcを用いて、次のような予測式に従って生成され得る。   5 and 6 are explanatory diagrams for explaining examples of predictor candidates for motion vector prediction that can be used in such inter prediction. Referring to FIG. 5, one prediction unit PTe that is a prediction target and a predicted motion vector PMVe of the prediction unit PTe are illustrated. The prediction motion vector PMVe of the prediction unit PTe can be predicted using, for example, the motion vectors MVa, MVb, and MVc of the prediction unit adjacent to the prediction unit PTe as reference motion vectors. The reference motion vector MVa is a motion vector set in a prediction unit adjacent to the left of the prediction unit PTe. The reference motion vector MVb is a motion vector set in a prediction unit adjacent to the prediction unit PTe. The reference motion vector MVc is a motion vector set in a prediction unit adjacent to the upper right of the prediction unit PTe. The predicted motion vector PMVe can be generated according to the following prediction formula using these reference motion vectors MVa, MVb, and MVc.

Figure 2016042717
Figure 2016042717

式(1)は、動きの空間的相関に基づく予測式である。式(1)におけるmedはメディアンオペレーションを表す。即ち、式(1)によれば、予測動きベクトルPMVeは、参照動きベクトルMVa、MVb及びMVcの水平成分の中央値と垂直成分の中央値とを成分とするベクトルである。式(1)に従って生成される予測動きベクトルPMVeは、プレディクタ候補の一例である。このような動きの空間的相関に基づく予測式によって算出される予測動きベクトルを、空間的プレディクタ(spatial predictor)という。   Formula (1) is a prediction formula based on the spatial correlation of motion. In the formula (1), med represents a median operation. That is, according to the equation (1), the predicted motion vector PMVe is a vector whose components are the median value of the horizontal components and the median value of the vertical components of the reference motion vectors MVa, MVb and MVc. The predicted motion vector PMVe generated according to Expression (1) is an example of a predictor candidate. A predicted motion vector calculated by a prediction formula based on such spatial correlation of motion is referred to as a spatial predictor.

なお、式(1)は予測式の一例に過ぎない。例えば、予測対象の予測単位が画像の端部に位置するために、動きベクトルMVa、MVb又はMVcのいずれかが存在しない場合には、存在しない動きベクトルは、メディアンオペレーションの引数から省略されてもよい。また、次の式(2)〜式(4)のように、より単純な空間的プレディクタもまたプレディクタ候補として使用されてよい。   Equation (1) is only an example of a prediction equation. For example, if any of the motion vectors MVa, MVb, or MVc does not exist because the prediction unit to be predicted is located at the end of the image, the non-existing motion vector may be omitted from the median operation argument. Good. In addition, simpler spatial predictors may also be used as predictor candidates, as in the following formulas (2) to (4).

Figure 2016042717
Figure 2016042717

一方、動きの時間的相関に基づく予測式によって算出される予測動きベクトルである時間的プレディクタ(temporal predictor)もまた、プレディクタ候補として使用され得る。図6を参照すると、予測対象の予測単位PTeを含む画像IM01、及び参照画像IM02が示されている。参照画像IM02内のブロックBcolは、予測単位PTeのコロケーテッドブロックである。動きの時間的相関を利用する予測式は、例えば、このコロケーテッドブロックBcol又はコロケーテッドブロックBcolに隣接するブロックに設定された動きベクトルを参照動きベクトルとして使用する。   Meanwhile, a temporal predictor that is a predicted motion vector calculated by a prediction formula based on a temporal correlation of motion may also be used as a predictor candidate. Referring to FIG. 6, an image IM01 including a prediction unit PTe to be predicted and a reference image IM02 are shown. The block Bcol in the reference image IM02 is a collocated block of the prediction unit PTe. The prediction formula using temporal correlation of motion uses, for example, a motion vector set in the collocated block Bcol or a block adjacent to the collocated block Bcol as a reference motion vector.

例えば、コロケーテッドブロックBcolに設定された動きベクトルをMVcolとする。また、コロケーテッドブロックBcolの上、左、下、右、左上、左下、右下及び右上のブロックに設定された動きベクトルを、それぞれMVt0〜MVt7とする。すると、予測動きベクトルPMVeは、例えば、次の予測式(5)又は(6)を用いて、参照動きベクトルMVcol及びMVt0〜MVt7から生成され得る。   For example, the motion vector set in the collocated block Bcol is MVcol. In addition, the motion vectors set in the upper, left, lower, right, upper left, lower left, lower right, and upper right blocks of the collocated block Bcol are MVt0 to MVt7, respectively. Then, the predicted motion vector PMVe can be generated from the reference motion vectors MVcol and MVt0 to MVt7 using, for example, the following prediction formula (5) or (6).

Figure 2016042717
Figure 2016042717

動きベクトル予測部143は、これら複数のプレディクタ候補の各々について予測動きベクトルPMVeを生成した後、次式のように、動きベクトル算出部142により算出された動きベクトルMVeと予測動きベクトルPMVeとの差分を表す差分動きベクトルMVDeを算出する。   The motion vector predicting unit 143 generates a predicted motion vector PMVe for each of the plurality of predictor candidates, and then, as in the following equation, the difference between the motion vector MVe calculated by the motion vector calculating unit 142 and the predicted motion vector PMVe The difference motion vector MVDe representing is calculated.

Figure 2016042717
Figure 2016042717

そして、モード選択部145により各予測単位についての最適なプレディクタ(例えば、予測精度の最も高いプレディクタ)が選択され、情報生成部146により当該最適なプレディクタを示すプレディクタ情報と対応する差分動きベクトルを示す差分動きベクトル情報とが生成される。動きベクトルの予測が行われない予測単位については、差分動きベクトル情報の代わりに、動きベクトル算出部142により算出された動きベクトルを示す動きベクトル情報が生成されてよい。このように生成された情報は、インター予測に関する情報として可逆符号化部16により符号化され得る。プレディクタ情報は、上位レイヤでの処理のために、プレディクタ情報バッファ147に一時的に記憶される。   Then, an optimal predictor (for example, a predictor with the highest prediction accuracy) for each prediction unit is selected by the mode selection unit 145, and a difference motion vector corresponding to the predictor information indicating the optimal predictor is displayed by the information generation unit 146. Difference motion vector information is generated. For a prediction unit in which the motion vector is not predicted, motion vector information indicating the motion vector calculated by the motion vector calculation unit 142 may be generated instead of the difference motion vector information. The information generated in this way can be encoded by the lossless encoding unit 16 as information regarding inter prediction. The predictor information is temporarily stored in the predictor information buffer 147 for processing in an upper layer.

(2)エンハンスメントレイヤ
エンハンスメントレイヤの動き探索処理では、プレディクタ情報バッファ147に記憶されている下位レイヤのプレディクタ情報に基づく動きベクトルの予測が行われる。
(2) Enhancement Layer In the enhancement layer motion search process, a motion vector is predicted based on the predictor information of the lower layer stored in the predictor information buffer 147.

まず、探索制御部141は、符号化単位内に配置される各予測単位について、動きベクトル算出部142に動きベクトルを算出させる。そして、探索制御部141は、各予測単位について、動きベクトル予測部143に予測動きベクトルを生成させる。エンハンスメントレイヤにおける動きベクトル予測部143による予測動きベクトルの生成は、プレディクタ情報バッファ147に記憶されている設定情報であるプレディクタ情報を用いて行われる。より具体的には、例えば、ある上位レイヤ内の予測単位に対応する下位レイヤ内の予測単位についてプレディクタ情報が式(1)に示したような空間的プレディクタを示している場合、動きベクトル予測部143は、上位レイヤ内の隣接予測単位の参照動きベクトルを動きベクトルバッファ144から取得する。そして、動きベクトル予測部143は、取得した参照動きベクトルを式(1)に代入し、予測動きベクトルを生成する。また、例えば、ある上位レイヤ内の予測単位に対応する下位レイヤ内の予測単位についてプレディクタ情報が式(5)に示したような時間的プレディクタを示している場合、動きベクトル予測部143は、参照画像内のコロケーテッドブロック及び当該コロケーテッドブロックの隣接ブロックの参照動きベクトルを動きベクトルバッファ144から取得する。そして、動きベクトル予測部143は、取得した参照動きベクトルを式(5)に代入し、予測動きベクトルを生成する。さらに、動きベクトル予測部143は、動きベクトル算出部142により算出された動きベクトルと予測動きベクトルとの差分を表す差分動きベクトルを算出する。モード選択部145は、動きベクトル算出部142により算出された動きベクトルを用いて予測画像データを生成し、コスト関数値を計算する。情報生成部146は、各予測単位について算出された差分動きベクトルを示す差分動きベクトル情報を生成する。そして、情報生成部146は、差分動きベクトル情報を含むインター予測に関する情報、コスト関数値及び予測画像データをセレクタ27へ出力する。   First, the search control unit 141 causes the motion vector calculation unit 142 to calculate a motion vector for each prediction unit arranged in the coding unit. Then, the search control unit 141 causes the motion vector prediction unit 143 to generate a predicted motion vector for each prediction unit. The motion vector predictor 143 in the enhancement layer generates the motion vector predictor using predictor information that is setting information stored in the predictor information buffer 147. More specifically, for example, when the predictor information indicates a spatial predictor as shown in Expression (1) for a prediction unit in a lower layer corresponding to a prediction unit in a certain upper layer, a motion vector prediction unit 143 obtains the reference motion vector of the adjacent prediction unit in the higher layer from the motion vector buffer 144. Then, the motion vector predicting unit 143 substitutes the acquired reference motion vector into Expression (1) to generate a predicted motion vector. For example, when the predictor information indicates a temporal predictor as shown in Expression (5) for a prediction unit in a lower layer corresponding to a prediction unit in a certain upper layer, the motion vector prediction unit 143 refers to The reference motion vector of the collocated block in the image and the adjacent block of the collocated block is obtained from the motion vector buffer 144. Then, the motion vector predicting unit 143 substitutes the acquired reference motion vector into Expression (5) to generate a predicted motion vector. Furthermore, the motion vector prediction unit 143 calculates a difference motion vector that represents the difference between the motion vector calculated by the motion vector calculation unit 142 and the predicted motion vector. The mode selection unit 145 generates predicted image data using the motion vector calculated by the motion vector calculation unit 142, and calculates a cost function value. The information generation unit 146 generates differential motion vector information indicating the differential motion vector calculated for each prediction unit. Then, the information generation unit 146 outputs information regarding inter prediction including the difference motion vector information, the cost function value, and predicted image data to the selector 27.

(3)処理の流れ
図7は、本実施例に係る動き探索部40による動き探索処理の流れの一例を示すフローチャートである。図7を参照すると。まず、動き探索部40は、ベースレイヤの動き探索処理を行う(ステップS110)。その結果、各符号化単位内の予測単位の配置が決定され、各予測単位の最適なプレディクタが選択される。プレディクタ情報バッファ147は、各予測単位の最適なプレディクタを示すプレディクタ情報を設定情報としてバッファリングする。
(3) Process Flow FIG. 7 is a flowchart illustrating an example of the flow of the motion search process by the motion search unit 40 according to the present embodiment. Referring to FIG. First, the motion search unit 40 performs a base layer motion search process (step S110). As a result, the arrangement of prediction units within each coding unit is determined, and the optimal predictor for each prediction unit is selected. The predictor information buffer 147 buffers predictor information indicating an optimal predictor of each prediction unit as setting information.

ステップS111〜S117の処理は、エンハンスメントレイヤの動き探索処理である。これら処理のうちステップS111〜S116の処理は、各エンハンスメントレイヤの各予測単位(以下、注目PUという)について繰り返される。なお、以下の説明において、「上位レイヤ」は予測対象のレイヤであり、「下位レイヤ」は予測対象のレイヤの下位のレイヤである。   The processing in steps S111 to S117 is enhancement layer motion search processing. Among these processes, the processes of steps S111 to S116 are repeated for each prediction unit (hereinafter referred to as a focused PU) of each enhancement layer. In the following description, “upper layer” is a prediction target layer, and “lower layer” is a lower layer of the prediction target layer.

まず、動きベクトル算出部142は、上位レイヤの1つの注目PUについて、原画像の画素値、及びフレームメモリ25から入力される参照画像の画素値に基づいて、動きベクトルを算出する(ステップS111)。そして、動きベクトル算出部142は、算出した動きベクトルを、動きベクトル予測部143及び動きベクトルバッファ144へ出力する。   First, the motion vector calculation unit 142 calculates a motion vector for one target PU in the upper layer based on the pixel value of the original image and the pixel value of the reference image input from the frame memory 25 (step S111). . Then, the motion vector calculation unit 142 outputs the calculated motion vector to the motion vector prediction unit 143 and the motion vector buffer 144.

次に、動きベクトル予測部143は、プレディクタ情報バッファ147に記憶されている下位レイヤ内の対応するPUについてのプレディクタ情報と、プレディクタ情報に従って取得される参照動きベクトルとを用いて、注目PUについての予測動きベクトルを生成する(ステップS112)。次に、動きベクトル予測部143は、動きベクトルから予測動きベクトルを減算することにより、差分動きベクトルを算出する(ステップS113)。そして、動きベクトル予測部143は、注目PUについての動きベクトル及び差分動きベクトルをモード選択部145へ出力する。   Next, the motion vector predicting unit 143 uses the predictor information for the corresponding PU in the lower layer stored in the predictor information buffer 147 and the reference motion vector acquired according to the predictor information, for the attention PU. A predicted motion vector is generated (step S112). Next, the motion vector prediction unit 143 calculates a differential motion vector by subtracting the predicted motion vector from the motion vector (step S113). Then, the motion vector prediction unit 143 outputs the motion vector and the difference motion vector for the attention PU to the mode selection unit 145.

次に、モード選択部145は、注目PUについての予測画像データ及びコスト関数値を生成する(ステップS114)。また、情報生成部146は、注目PUについての差分動きベクトルを示す差分動きベクトル情報を生成する(ステップS115)。   Next, the mode selection part 145 produces | generates the prediction image data and cost function value about attention PU (step S114). Further, the information generation unit 146 generates differential motion vector information indicating the differential motion vector for the attention PU (step S115).

その後、予測対象のレイヤ内に未処理のPUが残っている場合には、処理はステップS111に戻る(ステップS116)。一方、未処理のPUが残っていない場合には、さらに残りのレイヤ(より上位のレイヤ)が存在するかが判定される(ステップS117)。ここで、残りのレイヤが存在する場合には、それまでの予測対象のレイヤを下位レイヤ、次のレイヤを上位レイヤとして、ステップS111以降の処理が繰り返される。下位レイヤについて選択されたプレディクタを示すプレディクタ情報は、プレディクタ情報バッファ147により引き続きバッファリングされる。残りのレイヤが存在しない場合には、図7の動き探索処理は終了する。ここで生成された予測画像データ及び(差分動きベクトル情報を含み得る)インター予測に関する情報は、スイッチ27を介して、減算部13及び可逆符号化部16へそれぞれ出力され得る。   Thereafter, when an unprocessed PU remains in the prediction target layer, the process returns to step S111 (step S116). On the other hand, if there is no unprocessed PU remaining, it is determined whether there is a remaining layer (a higher layer) (step S117). Here, when there are remaining layers, the processing after step S111 is repeated with the previous prediction target layer as the lower layer and the next layer as the upper layer. Predictor information indicating the predictor selected for the lower layer is subsequently buffered by the predictor information buffer 147. If there are no remaining layers, the motion search process in FIG. 7 ends. The prediction image data generated here and information regarding inter prediction (which may include differential motion vector information) may be output to the subtraction unit 13 and the lossless encoding unit 16 via the switch 27, respectively.

このように、第1の実施例では、上位レイヤのインター予測に関する情報としてプレディクタ情報が符号化されず、下位レイヤのプレディクタ情報が再利用されるため、インター予測に関する情報の符号量を削減することができる。   As described above, in the first embodiment, the predictor information is not encoded as the information related to the inter prediction of the upper layer, and the predictor information of the lower layer is reused, so that the code amount of the information related to the inter prediction is reduced. Can do.

[2−2.第2の実施例]
図8は、第2の実施例に係る動き探索部40の詳細な構成の一例を示すブロック図である。図8を参照すると、動き探索部40は、探索制御部241、動きベクトル算出部242、動きベクトル予測部243、動きベクトルバッファ244、モード選択部245及び情報生成部246を有する。
[2-2. Second embodiment]
FIG. 8 is a block diagram illustrating an example of a detailed configuration of the motion search unit 40 according to the second embodiment. Referring to FIG. 8, the motion search unit 40 includes a search control unit 241, a motion vector calculation unit 242, a motion vector prediction unit 243, a motion vector buffer 244, a mode selection unit 245, and an information generation unit 246.

(1)ベースレイヤ
本実施例に係るベースレイヤの動き探索処理は、上述した第1の実施例に係るベースレイヤの動き探索処理と同様であってよい。但し、本実施例では、ベースレイヤのプレディクタ情報はバッファリングされなくてよく、ベースレイヤの動きベクトル情報がレイヤをまたいでバッファリングされる。ベースレイヤの動き探索処理において、探索制御部241は、符号化単位内に1つ以上の予測単位を配置し、各予測単位について動きベクトル算出部242に動きベクトルを算出させる。動きベクトル算出部242により算出された動きベクトルは、動きベクトル予測部243へ出力されると共に、動きベクトルバッファ244に記憶される。動きベクトル予測部243は、複数のプレディクタ候補の各々に従い、動きベクトルバッファ244に記憶されている参照動きベクトルを用いて予測動きベクトルを生成する。そして、動きベクトル予測部243は、動きベクトル算出部242により算出された動きベクトルと予測動きベクトルとの差分である差分動きベクトルを算出する。モード選択部245は、動きベクトル算出部242により算出された動きベクトルを用いて予測画像データを生成し、生成した予測画像データと原画像データとの比較に基づいて計算されるコスト関数値を評価する。そして、モード選択部245は、コスト関数値を最小にする最適な予測単位の配置と各予測単位についての最適なプレディクタとを選択する。情報生成部246は、各予測単位について選択された最適なプレディクタを示すプレディクタ情報及び対応する差分動きベクトルを示す差分動きベクトル情報を含むインター予測に関する情報を生成する。そして、情報生成部246は、生成したインター予測に関する情報、コスト関数値及び予測画像データをセレクタ27へ出力する。
(1) Base Layer The base layer motion search process according to the present embodiment may be the same as the base layer motion search process according to the first embodiment described above. However, in this embodiment, the predictor information of the base layer does not have to be buffered, and the motion vector information of the base layer is buffered across the layers. In the base layer motion search process, the search control unit 241 arranges one or more prediction units in the encoding unit, and causes the motion vector calculation unit 242 to calculate a motion vector for each prediction unit. The motion vector calculated by the motion vector calculation unit 242 is output to the motion vector prediction unit 243 and stored in the motion vector buffer 244. The motion vector prediction unit 243 generates a predicted motion vector using the reference motion vector stored in the motion vector buffer 244 according to each of the plurality of predictor candidates. Then, the motion vector prediction unit 243 calculates a differential motion vector that is a difference between the motion vector calculated by the motion vector calculation unit 242 and the predicted motion vector. The mode selection unit 245 generates predicted image data using the motion vector calculated by the motion vector calculation unit 242, and evaluates the cost function value calculated based on the comparison between the generated predicted image data and the original image data. To do. Then, the mode selection unit 245 selects an optimal prediction unit arrangement that minimizes the cost function value and an optimal predictor for each prediction unit. The information generation unit 246 generates information related to inter prediction including predictor information indicating the optimal predictor selected for each prediction unit and differential motion vector information indicating the corresponding differential motion vector. Then, the information generation unit 246 outputs information regarding the generated inter prediction, a cost function value, and predicted image data to the selector 27.

(2)エンハンスメントレイヤ
本実施例に係るベースレイヤの動き探索処理において探索されるプレディクタ候補は、上述した空間的プレディクタ及び時間的プレディクタの一方又は双方を含んでよい。さらに、本実施例に係るエンハンスメントレイヤの動き探索処理では、追加的なプレディクタ候補が導入される。ここで導入されるプレディクタ候補は、下位レイヤの対応する予測単位に設定された動きベクトルを参照動きベクトルとするプレディクタ候補である。このようなプレディクタを、本明細書では、レイヤ間プレディクタという。
(2) Enhancement Layer Predictor candidates searched in the base layer motion search process according to the present embodiment may include one or both of the spatial predictor and the temporal predictor described above. Furthermore, in the enhancement layer motion search process according to the present embodiment, additional predictor candidates are introduced. The predictor candidate introduced here is a predictor candidate using a motion vector set as a corresponding prediction unit of the lower layer as a reference motion vector. Such a predictor is referred to as an inter-layer predictor in this specification.

図9は、レイヤ間プレディクタの一例について説明するための説明図である。図9を参照すると、上位レイヤであるレイヤL12内の予測単位PTe、及び予測単位PTeの予測動きベクトルPMVeが示されている。下位レイヤであるレイヤL11内の予測単位PTbaseは、予測単位PTeに対応する予測単位である。参照動きベクトルMVbaseは、予測単位PTbaseに設定された動きベクトルである。レイヤ間プレディクタは、例えば次の式(8)により表され得る。   FIG. 9 is an explanatory diagram for describing an example of an inter-layer predictor. Referring to FIG. 9, a prediction unit PTe in the upper layer L12 and a prediction motion vector PMVe of the prediction unit PTe are shown. The prediction unit PTbase in the lower layer L11 is a prediction unit corresponding to the prediction unit PTe. The reference motion vector MVbase is a motion vector set in the prediction unit PTbase. The inter-layer predictor can be expressed by the following equation (8), for example.

Figure 2016042717
Figure 2016042717

なお、下位レイヤと上位レイヤとで空間解像度が異なる場合には、下位レイヤと上位レイヤとの間の空間解像度の比率Nに応じて次式のように拡大された動きベクトルが、レイヤ間プレディクタとして用いられてもよい。その際、レイヤ間プレディクタの垂直成分及び水平成分の値は、上位レイヤの動きベクトルの精度(例えば、1/4画素精度など)に適合するように丸められ得る。   When the spatial resolution differs between the lower layer and the upper layer, the motion vector expanded as shown in the following equation according to the spatial resolution ratio N between the lower layer and the upper layer is used as an inter-layer predictor. May be used. In this case, the values of the vertical component and the horizontal component of the inter-layer predictor can be rounded to match the accuracy of the motion vector of the upper layer (for example, ¼ pixel accuracy).

Figure 2016042717
Figure 2016042717

第1の実施例と異なり、本実施例では、エンハンスメントレイヤの動き探索処理においても、複数のプレディクタ候補からの最適なプレディクタの選択が行われる。   Unlike the first embodiment, in this embodiment, the optimal predictor is selected from a plurality of predictor candidates in the motion search process of the enhancement layer.

まず、探索制御部241は、符号化単位内の各予測単位について動きベクトル算出部242に動きベクトルを算出させる。動きベクトル算出部242により算出された動きベクトルは、動きベクトル予測部243へ出力されると共に、動きベクトルバッファ244に記憶される。動きベクトルバッファ244には、下位レイヤの各予測単位について算出された動きベクトル(参照動きベクトル)もまた記憶されている。動きベクトル予測部243は、複数のプレディクタ候補の各々に従い、動きベクトルバッファ244に記憶されている参照動きベクトルを用いて予測動きベクトルを生成する。ここでの複数のプレディクタ候補は、上述したレイヤ間プレディクタを含む。そして、動きベクトル予測部243は、動きベクトル算出部242により算出された動きベクトルと予測動きベクトルとの差分である差分動きベクトルを算出する。モード選択部245は、動きベクトル算出部242により算出された動きベクトルを用いて予測画像データを生成し、生成した予測画像データと原画像データとの比較に基づいて計算されるコスト関数値を評価する。そして、モード選択部245は、各予測単位についての最適なプレディクタを選択する。情報生成部246は、各予測単位について選択された最適なプレディクタを示すプレディクタ情報及び対応する差分動きベクトルを示す差分動きベクトル情報を含むインター予測に関する情報を生成する。上述したレイヤ間プレディクタが最適なプレディクタとして選択された場合には、プレディクタ情報は、下位レイヤの参照動きベクトルを特定するインデックスを含み得る。そして、情報生成部246は、生成したインター予測に関する情報、コスト関数値及び予測画像データをセレクタ27へ出力する。   First, the search control unit 241 causes the motion vector calculation unit 242 to calculate a motion vector for each prediction unit in the coding unit. The motion vector calculated by the motion vector calculation unit 242 is output to the motion vector prediction unit 243 and stored in the motion vector buffer 244. The motion vector buffer 244 also stores a motion vector (reference motion vector) calculated for each prediction unit of the lower layer. The motion vector prediction unit 243 generates a predicted motion vector using the reference motion vector stored in the motion vector buffer 244 according to each of the plurality of predictor candidates. The plurality of predictor candidates here include the above-described inter-layer predictors. Then, the motion vector prediction unit 243 calculates a differential motion vector that is a difference between the motion vector calculated by the motion vector calculation unit 242 and the predicted motion vector. The mode selection unit 245 generates predicted image data using the motion vector calculated by the motion vector calculation unit 242, and evaluates the cost function value calculated based on the comparison between the generated predicted image data and the original image data. To do. And the mode selection part 245 selects the optimal predictor about each prediction unit. The information generation unit 246 generates information related to inter prediction including predictor information indicating the optimal predictor selected for each prediction unit and differential motion vector information indicating the corresponding differential motion vector. When the above-described inter-layer predictor is selected as the optimal predictor, the predictor information may include an index that identifies the reference motion vector of the lower layer. Then, the information generation unit 246 outputs information regarding the generated inter prediction, a cost function value, and predicted image data to the selector 27.

(3)処理の流れ
図10は、本実施例に係る動き探索部40による動き探索処理の流れの一例を示すフローチャートである。図10を参照すると。まず、動き探索部40は、ベースレイヤの動き探索処理を行う(ステップS120)。その結果、各符号化単位内の予測単位の配置が決定され、各予測単位の最適なプレディクタが選択される。動きベクトルバッファ244は、各予測単位について算出された動きベクトルをバッファリングする。
(3) Process Flow FIG. 10 is a flowchart illustrating an example of a flow of motion search processing by the motion search unit 40 according to the present embodiment. Referring to FIG. First, the motion search unit 40 performs a base layer motion search process (step S120). As a result, the arrangement of prediction units within each coding unit is determined, and the optimal predictor for each prediction unit is selected. The motion vector buffer 244 buffers the motion vector calculated for each prediction unit.

ステップS121〜S127の処理は、エンハンスメントレイヤの動き探索処理である。これら処理のうちステップS121〜S126の処理は、各エンハンスメントレイヤの各注目PUについて繰り返される。なお、以下の説明において、「上位レイヤ」は予測対象のレイヤであり、「下位レイヤ」は予測対象のレイヤの下位のレイヤである。   The processing in steps S121 to S127 is enhancement layer motion search processing. Of these processes, the processes of steps S121 to S126 are repeated for each attention PU of each enhancement layer. In the following description, “upper layer” is a prediction target layer, and “lower layer” is a lower layer of the prediction target layer.

まず、動きベクトル算出部242は、上位レイヤの1つの注目PUについて、原画像の画素値、及びフレームメモリ25から入力される参照画像の画素値に基づいて、動きベクトルを算出する(ステップS121)。そして、動きベクトル算出部242は、算出した動きベクトルを、動きベクトル予測部243及び動きベクトルバッファ244へ出力する。   First, the motion vector calculation unit 242 calculates a motion vector for one target PU in the upper layer based on the pixel value of the original image and the pixel value of the reference image input from the frame memory 25 (step S121). . Then, the motion vector calculation unit 242 outputs the calculated motion vector to the motion vector prediction unit 243 and the motion vector buffer 244.

次に、動きベクトル予測部243は、複数のプレディクタ候補の各々に従い、動きベクトルバッファ244に記憶されている参照動きベクトルを用いて、注目PUについての予測動きベクトルをそれぞれ生成する(ステップS122)。ここでの複数のプレディクタ候補は、レイヤ間プレディクタを含む。次に、動きベクトル予測部243は、複数のプレディクタ候補の各々について、差分動きベクトルをそれぞれ算出する(ステップS123)。そして、動きベクトル予測部243は、各プレディクタ候補についての動きベクトル及び差分動きベクトルをモード選択部245へ出力する。   Next, the motion vector prediction unit 243 generates a predicted motion vector for the attention PU using the reference motion vector stored in the motion vector buffer 244 according to each of the plurality of predictor candidates (step S122). The plurality of predictor candidates here include inter-layer predictors. Next, the motion vector prediction unit 243 calculates a difference motion vector for each of the plurality of predictor candidates (step S123). Then, the motion vector prediction unit 243 outputs the motion vector and the difference motion vector for each predictor candidate to the mode selection unit 245.

次に、モード選択部245は、各プレディクタ候補について予測画像データを生成し、コスト関数値を評価することにより最適なプレディクタを選択する(ステップS124)。そして、情報生成部246は、選択された最適なプレディクタを示すプレディクタ情報及び対応する差分動きベクトルを示す差分動きベクトル情報を生成する(ステップS125)。   Next, the mode selection unit 245 generates predicted image data for each predictor candidate, and selects an optimal predictor by evaluating the cost function value (step S124). Then, the information generating unit 246 generates predictor information indicating the selected optimal predictor and differential motion vector information indicating the corresponding differential motion vector (step S125).

その後、予測対象のレイヤ内に未処理のPUが残っている場合には、処理はステップS121に戻る(ステップS126)。一方、未処理のPUが残っていない場合には、さらに残りのレイヤ(より上位のレイヤ)が存在するかが判定される(ステップS127)、ここで、残りのレイヤが存在する場合には、それまでの予測対象のレイヤを下位レイヤ、次のレイヤを上位レイヤとして、ステップS121以降の処理が繰り返される。下位レイヤの各注目PUについて算出された動きベクトルは、動きベクトルバッファ244によりバッファリングされる。残りのレイヤが存在しない場合には、図10の動き探索処理は終了する。ここで生成された予測画像データ及び(プレディクタ情報と差分動きベクトル情報とを含み得る)インター予測に関する情報は、スイッチ27を介して、減算部13及び可逆符号化部16へそれぞれ出力され得る。   Thereafter, when an unprocessed PU remains in the prediction target layer, the process returns to step S121 (step S126). On the other hand, if there is no unprocessed PU remaining, it is determined whether there is a remaining layer (higher layer) (step S127). Here, if there is a remaining layer, The processes after step S121 are repeated with the prediction target layer as the lower layer and the next layer as the upper layer. The motion vector calculated for each attention PU of the lower layer is buffered by the motion vector buffer 244. If there are no remaining layers, the motion search process in FIG. 10 ends. The prediction image data generated here and information regarding inter prediction (which may include predictor information and differential motion vector information) may be output to the subtraction unit 13 and the lossless encoding unit 16 via the switch 27, respectively.

このように、第2の実施例では、上位レイヤのインター予測に関する情報として、下位レイヤに設定された動きベクトルに基づくレイヤ間プレディクタを使用すべきことを示すプレディクタ情報が符号化され得る。従って、動きの相関の顕著な下位レイヤの対応する予測単位に基づく動きベクトルの予測が可能となる。よって、動きベクトルの予測の精度が高められる結果、差分動きベクトルの符号量を削減することができる。   Thus, in the second embodiment, predictor information indicating that an inter-layer predictor based on a motion vector set in a lower layer should be used as information related to inter prediction in the upper layer. Therefore, it is possible to predict a motion vector based on a corresponding prediction unit of a lower layer having a significant motion correlation. Therefore, the accuracy of motion vector prediction is improved, and as a result, the code amount of the difference motion vector can be reduced.

なお、プレディクタ情報を符号化する可逆符号化部16は、上位レイヤのプレディクタ情報の符号化において、複数のプレディクタ候補の中でレイヤ間プレディクタに最小の符号番号を割り当ててよい。通常、レイヤ間の動きの相関は、動きの空間的な相関及び動きの時間的な相関よりも強い。従って、レイヤ間プレディクタに最小の符号番号を割り当てることで、可変長符号化後の符号化ストリームにおいてより短い符号語をより多く使用することが可能となり、符号量の一層の削減が図られる。   Note that the lossless encoding unit 16 that encodes the predictor information may assign the smallest code number to the inter-layer predictor among the plurality of predictor candidates in the encoding of the predictor information of the higher layer. Usually, the motion correlation between layers is stronger than the spatial correlation of motion and the temporal correlation of motion. Therefore, by assigning the minimum code number to the inter-layer predictor, it is possible to use more shorter codewords in the encoded stream after variable length encoding, thereby further reducing the code amount.

[2−3.第3の実施例]
図11は、第3の実施例に係る動き探索部40の詳細な構成の一例を示すブロック図である。図11を参照すると、動き探索部40は、探索制御部341、動きベクトル算出部342、動きベクトルバッファ344、モード選択部345、情報生成部346及びマージ情報バッファ347を有する。
[2-3. Third Example]
FIG. 11 is a block diagram illustrating an example of a detailed configuration of the motion search unit 40 according to the third embodiment. Referring to FIG. 11, the motion search unit 40 includes a search control unit 341, a motion vector calculation unit 342, a motion vector buffer 344, a mode selection unit 345, an information generation unit 346, and a merge information buffer 347.

(1)ベースレイヤ
ベースレイヤの動き探索処理において、探索制御部341は、符号化単位内に1つ以上の予測単位を配置し、各予測単位について動きベクトル算出部342に動きベクトルを算出させる。動きベクトル算出部342により算出された動きベクトルは、モード選択部345へ出力されると共に、動きベクトルバッファ344に記憶される。モード選択部345は、ある予測単位について動きベクトル算出部342により算出された動きベクトルが隣接する1つ以上の予測単位に設定された参照動きベクトルと共通である場合に、これら予測単位をマージすることを決定する。上記非特許文献3により提案されている手法では、ある予測単位は、上に隣接する予測単位又は左に隣接する予測単位とマージされ得る。即ち、モード選択部345は、例えば、マージモードとして、上に隣接する予測単位とのマージ、左に隣接する予測単位とのマージ、又はマージなし、のいずれかを選択し得る。さらに、モード選択部345は、各予測単位について予測画像データを生成し、生成した予測画像データと原画像データとの比較に基づいてコスト関数値を計算する。情報生成部346は、各予測単位についてのマージモードを示すマージ情報と、他の予測単位とマージされない予測単位についての動きベクトル情報とを含むインター予測に関する情報を生成する。そして、情報生成部346は、生成したインター予測に関する情報、コスト関数値及び予測画像データをセレクタ27へ出力する。
(1) Base Layer In the base layer motion search process, the search control unit 341 arranges one or more prediction units in a coding unit, and causes the motion vector calculation unit 342 to calculate a motion vector for each prediction unit. The motion vector calculated by the motion vector calculation unit 342 is output to the mode selection unit 345 and stored in the motion vector buffer 344. The mode selection unit 345 merges these prediction units when the motion vector calculated by the motion vector calculation unit 342 for a certain prediction unit is common to the reference motion vector set in one or more adjacent prediction units. Decide that. In the method proposed by Non-Patent Document 3, a certain prediction unit can be merged with a prediction unit adjacent on the top or a prediction unit adjacent on the left. That is, for example, the mode selection unit 345 can select, as the merge mode, one of merge with the prediction unit adjacent on the upper side, merge with the prediction unit adjacent on the left, or no merge. Further, the mode selection unit 345 generates predicted image data for each prediction unit, and calculates a cost function value based on a comparison between the generated predicted image data and original image data. The information generation unit 346 generates information related to inter prediction including merge information indicating the merge mode for each prediction unit and motion vector information for a prediction unit that is not merged with other prediction units. Then, the information generation unit 346 outputs information regarding the generated inter prediction, a cost function value, and predicted image data to the selector 27.

本実施例において生成されるマージ情報は、例えば、「MergeFlag」及び「MergeLeftFlag」という2つのフラグを含み得る。MergeFlagは、注目PUの動きベクトルが少なくとも1つの隣接PUの動きベクトルと共通であるか否かを示すフラグである。例えば、MergeFlag=1の場合、注目PUの動きベクトルは少なくとも1つの隣接PUの動きベクトルと共通である。MergeFlag=0の場合、注目PUの動きベクトルはいずれの隣接PUの動きベクトルとも異なる。MergeFlag=0の場合、MergeLeftFlagは符号化されず、その代わりに注目PUについて動きベクトル(及び参照画像情報などの動き情報)が符号化される。MergeFlag=1であって、2つの隣接PUの動きベクトルが共通である場合にも、MergeLeftFlagは符号化されなくてよい。   The merge information generated in the present embodiment may include, for example, two flags “MergeFlag” and “MergeLeftFlag”. MergeFlag is a flag indicating whether or not the motion vector of the attention PU is common to the motion vector of at least one adjacent PU. For example, when MergeFlag = 1, the motion vector of the attention PU is common to the motion vector of at least one adjacent PU. When MergeFlag = 0, the motion vector of the attention PU is different from the motion vector of any adjacent PU. When MergeFlag = 0, MergeLeftFlag is not encoded, and instead, a motion vector (and motion information such as reference image information) is encoded for the attention PU. Even when MergeFlag = 1 and the motion vectors of two adjacent PUs are common, MergeLeftFlag may not be encoded.

MergeLeftFlagは、注目PUの動きベクトルが左の隣接PUの動きベクトルと共通であるか否かを示すフラグである。例えば、MergeLeftFlag=1の場合、注目PUの動きベクトルは左の隣接PUの動きベクトルと共通である。MergeLeftFlag=0の場合、注目PUの動きベクトルは、左の隣接PUの動きベクトルと異なり、上の隣接PUの動きベクトルと共通である。   MergeLeftFlag is a flag indicating whether the motion vector of the attention PU is common to the motion vector of the left adjacent PU. For example, when MergeLeftFlag = 1, the motion vector of the attention PU is the same as the motion vector of the left adjacent PU. When MergeLeftFlag = 0, the motion vector of the attention PU is different from the motion vector of the left adjacent PU and is common to the motion vector of the upper adjacent PU.

図12A〜図12Cは、本実施例において生成され得るマージ情報の例をそれぞれ示している。これら3つの図において、レイヤL21内の注目PUである予測単位B20が示されている。予測単位B21及びB22は、それぞれ予測単位B20の左及び上に隣接している。動きベクトルMV20は、予測単位B20について動きベクトル算出部342により算出された動きベクトルである。動きベクトルMV21及びMV22は、それぞれ予測単位B21及びB22に設定された参照動きベクトルである。   12A to 12C respectively show examples of merge information that can be generated in the present embodiment. In these three figures, the prediction unit B20 which is the attention PU in the layer L21 is shown. Prediction units B21 and B22 are adjacent to the left and top of prediction unit B20, respectively. The motion vector MV20 is a motion vector calculated by the motion vector calculation unit 342 for the prediction unit B20. The motion vectors MV21 and MV22 are reference motion vectors set in the prediction units B21 and B22, respectively.

図12Aの例において、動きベクトルMV20は、参照動きベクトルMV21及びMV22の双方と共通である。この場合、情報生成部346は、マージ情報として、MergeFlag=1を生成する。MergeLeftFlagは、マージ情報には含められない。このようなマージ情報を受け取った復号側は、MergeLeftFlagを復号することなく、予測単位B21又はB22に設定された動きベクトルと共通の動きベクトルを予測単位B20に設定し得る。   In the example of FIG. 12A, the motion vector MV20 is common to both the reference motion vectors MV21 and MV22. In this case, the information generation unit 346 generates MergeFlag = 1 as merge information. MergeLeftFlag is not included in merge information. The decoding side that has received such merge information can set a motion vector that is common to the motion vector set in the prediction unit B21 or B22 in the prediction unit B20 without decoding MergeLeftFlag.

図12Bの例において、動きベクトルMV20は、参照動きベクトルMV21と共通であり、参照動きベクトルMV22と異なる。この場合、情報生成部346は、マージ情報として、MergeFlag=1及びMergeLeftFlag=1を生成する。このようなマージ情報を受け取った復号側は、予測単位B21に設定された動きベクトルと共通の動きベクトルを予測単位B20に設定し得る。   In the example of FIG. 12B, the motion vector MV20 is common to the reference motion vector MV21 and is different from the reference motion vector MV22. In this case, the information generation unit 346 generates MergeFlag = 1 and MergeLeftFlag = 1 as merge information. The decoding side that has received such merge information can set a motion vector common to the motion vector set in the prediction unit B21 in the prediction unit B20.

図12Cの例において、動きベクトルMV20は、参照動きベクトルMV22と共通であり、参照動きベクトルMV21と異なる。この場合、情報生成部346は、マージ情報として、MergeFlag=1及びMergeLeftFlag=0を生成する。このようなマージ情報を受け取った復号側は、予測単位B22に設定された動きベクトルと共通の動きベクトルを予測単位B20に設定し得る。   In the example of FIG. 12C, the motion vector MV20 is common to the reference motion vector MV22 and is different from the reference motion vector MV21. In this case, the information generation unit 346 generates MergeFlag = 1 and MergeLeftFlag = 0 as merge information. The decoding side that has received such merge information can set a motion vector common to the motion vector set in the prediction unit B22 in the prediction unit B20.

(2)エンハンスメントレイヤ
エンハンスメントレイヤの動き探索処理では、マージ情報バッファ347に記憶されている下位レイヤのマージ情報を用いて、各予測単位に動きベクトルが設定される。
(2) Enhancement Layer In the enhancement layer motion search process, a motion vector is set for each prediction unit using lower layer merge information stored in the merge information buffer 347.

まず、探索制御部341は、上位レイヤの符号化単位内の各予測単位に対応する下位レイヤ内の予測単位についてのマージ情報をマージ情報バッファ347から取得する。そして、探索制御部341は、取得したマージ情報がマージなしを示している場合(例えば、MergeFlag=0)には、上位レイヤの当該予測単位について動きベクトル算出部342に動きベクトルを算出させる。動きベクトル算出部342により算出された動きベクトルは、モード選択部345へ出力されると共に、動きベクトルバッファ344に記憶される。一方、探索制御部341は、取得したマージ情報が他の予測単位とのマージを示している場合には、上位レイヤの当該予測単位について動きベクトル算出部342に動きベクトルを算出させない。その代わりに、モード選択部345は、他の予測単位とマージされる予測単位について、動きベクトルバッファ344から取得される(マージ先の予測単位の)動きベクトル(例えば、MergeLeftFlag=1であれば、左に隣接する予測単位の動きベクトル)を用いて予測画像データを生成し、及びコスト関数値を計算する。一方、モード選択部345は、他の予測単位とマージされない予測単位については、動きベクトル算出部342から入力される動きベクトルを用いて予測画像データを生成し、及びコスト関数値を計算する。情報生成部346は、他の予測単位とマージされない予測単位についての動きベクトル情報を含むインター予測に関する情報を生成する。そして、情報生成部346は、生成したインター予測に関する情報、コスト関数値及び予測画像データをセレクタ27へ出力する。   First, the search control unit 341 acquires merge information about the prediction unit in the lower layer corresponding to each prediction unit in the encoding unit of the upper layer from the merge information buffer 347. Then, when the acquired merge information indicates no merge (for example, MergeFlag = 0), the search control unit 341 causes the motion vector calculation unit 342 to calculate a motion vector for the prediction unit of the upper layer. The motion vector calculated by the motion vector calculation unit 342 is output to the mode selection unit 345 and stored in the motion vector buffer 344. On the other hand, when the acquired merge information indicates merging with another prediction unit, the search control unit 341 does not cause the motion vector calculation unit 342 to calculate a motion vector for the prediction unit of the higher layer. Instead, the mode selection unit 345 obtains a motion vector (for a prediction unit to be merged) (for example, MergeLeftFlag = 1) acquired from the motion vector buffer 344 for a prediction unit to be merged with another prediction unit. Prediction image data is generated using a motion vector of a prediction unit adjacent to the left), and a cost function value is calculated. On the other hand, the mode selection unit 345 generates prediction image data using a motion vector input from the motion vector calculation unit 342 and calculates a cost function value for a prediction unit that is not merged with another prediction unit. The information generation unit 346 generates information related to inter prediction including motion vector information about prediction units that are not merged with other prediction units. Then, the information generation unit 346 outputs information regarding the generated inter prediction, a cost function value, and predicted image data to the selector 27.

(3)処理の流れ
図13は、本実施例に係る動き探索部40による動き探索処理の流れの一例を示すフローチャートである。図13を参照すると。まず、動き探索部341は、ベースレイヤの動き探索処理を行う(ステップS130)。その結果、各符号化単位内の予測単位の配置が決定され、各予測単位のマージモードが選択される。動きベクトルバッファ344は、各予測単位について算出された動きベクトルをバッファリングする。マージ情報バッファ347は、各予測単位について選択されたマージモードを示すマージ情報を設定情報としてバッファリングする。
(3) Process Flow FIG. 13 is a flowchart illustrating an example of the flow of the motion search process by the motion search unit 40 according to the present embodiment. Referring to FIG. First, the motion search unit 341 performs base layer motion search processing (step S130). As a result, the arrangement of the prediction units in each coding unit is determined, and the merge mode of each prediction unit is selected. The motion vector buffer 344 buffers the motion vector calculated for each prediction unit. The merge information buffer 347 buffers merge information indicating the merge mode selected for each prediction unit as setting information.

ステップS131〜S136の処理は、エンハンスメントレイヤの動き探索処理である。これら処理のうちステップS131〜S135の処理は、各エンハンスメントレイヤの各注目PUについて繰り返される。なお、以下の説明において、「上位レイヤ」は予測対象のレイヤであり、「下位レイヤ」は予測対象のレイヤの下位のレイヤである。   The processes in steps S131 to S136 are enhancement layer motion search processes. Among these processes, the processes of steps S131 to S135 are repeated for each attention PU of each enhancement layer. In the following description, “upper layer” is a prediction target layer, and “lower layer” is a lower layer of the prediction target layer.

まず、探索制御部341は、上位レイヤの1つの注目PUについて、対応する下位レイヤのPUが他のPUとマージされているかを、マージ情報バッファ347に記憶されているマージ情報を参照することにより判定する(ステップS131)。ここで、対応する下位レイヤのPUが他のPUとマージされている場合には、注目PUもまた他のPUとマージされるため、その後のステップS132の処理はスキップされる。   First, the search control unit 341 refers to one merged PU stored in the merge information buffer 347 to determine whether the PU of the corresponding lower layer is merged with another PU for one attention PU of the upper layer. Determination is made (step S131). Here, when the PU of the corresponding lower layer is merged with other PUs, the attention PU is also merged with other PUs, and therefore the subsequent process of step S132 is skipped.

ステップS132において、動きベクトル算出部342は、他のPUとマージされない注目PUについて、原画像の画素値、及びフレームメモリ25から入力される参照画像の画素値に基づいて、動きベクトルを算出する(ステップS132)。そして、動きベクトル算出部342は、算出した動きベクトルを、モード選択部345及び動きベクトルバッファ344へ出力する。   In step S132, the motion vector calculation unit 342 calculates a motion vector for the attention PU that is not merged with other PUs based on the pixel value of the original image and the pixel value of the reference image input from the frame memory 25 ( Step S132). Then, the motion vector calculation unit 342 outputs the calculated motion vector to the mode selection unit 345 and the motion vector buffer 344.

次に、モード選択部345は、動きベクトル算出部342により算出され又は動きベクトルバッファ344から取得される動きベクトルを用いて予測画像データを生成し、コスト関数値を計算する(ステップS133)。そして、情報生成部346は、他のPUとマージされない注目PUについて動きベクトル情報を生成する(ステップS134)。   Next, the mode selection unit 345 generates predicted image data using the motion vector calculated by the motion vector calculation unit 342 or acquired from the motion vector buffer 344, and calculates a cost function value (step S133). Then, the information generation unit 346 generates motion vector information for the attention PU that is not merged with other PUs (step S134).

その後、予測対象のレイヤ内に未処理のPUが残っている場合には、処理はステップS131に戻る(ステップS135)。一方、未処理のPUが残っていない場合には、さらに残りのレイヤ(より上位のレイヤ)が存在するかが判定される(ステップS136)、ここで、残りのレイヤが存在する場合には、それまでの予測対象のレイヤを下位レイヤ、次のレイヤを上位レイヤとして、ステップS131以降の処理が繰り返される。下位レイヤの各注目PUについて算出された動きベクトルは、動きベクトルバッファ344によりバッファリングされる。マージ情報は、マージ情報バッファ347により引き続きバッファリングされる。残りのレイヤが存在しない場合には、図13の動き探索処理は終了する。ここで生成された予測画像データ及びインター予測に関する情報は、スイッチ27を介して、減算部13及び可逆符号化部16へそれぞれ出力され得る。   Thereafter, when an unprocessed PU remains in the prediction target layer, the process returns to step S131 (step S135). On the other hand, if there is no unprocessed PU remaining, it is determined whether there is a remaining layer (higher layer) (step S136). Here, if there is a remaining layer, The processes after step S131 are repeated with the previous prediction target layer as the lower layer and the next layer as the upper layer. The motion vector calculated for each attention PU of the lower layer is buffered by the motion vector buffer 344. The merge information is continuously buffered by the merge information buffer 347. If there are no remaining layers, the motion search process in FIG. 13 ends. Information about the predicted image data and the inter prediction generated here can be output to the subtraction unit 13 and the lossless encoding unit 16 via the switch 27, respectively.

このように、第3の実施例では、上位レイヤのインター予測に関する情報としてマージ情報が符号化されず、下位レイヤのマージ情報が再利用されるため、インター予測に関する情報の符号量を削減することができる。   As described above, in the third embodiment, the merge information is not encoded as the information related to the inter prediction of the upper layer, and the merge information of the lower layer is reused, so that the code amount of the information related to the inter prediction is reduced. Can do.

[2−4.第4の実施例]
図14は、第4の実施例に係る動き探索部40の詳細な構成の一例を示すブロック図である。図14を参照すると、動き探索部40は、探索制御部441、動きベクトル算出部442、動きベクトルバッファ444、モード選択部445及び情報生成部446を有する。
[2-4. Fourth Example]
FIG. 14 is a block diagram illustrating an example of a detailed configuration of the motion search unit 40 according to the fourth embodiment. Referring to FIG. 14, the motion search unit 40 includes a search control unit 441, a motion vector calculation unit 442, a motion vector buffer 444, a mode selection unit 445, and an information generation unit 446.

(1)ベースレイヤ
本実施例に係るベースレイヤの動き探索処理は、上述した第3の実施例に係るベースレイヤの動き探索処理と同様であってよい。但し、本実施例では、ベースレイヤのマージ情報はバッファリングされなくてよい。ベースレイヤの動き探索処理において、探索制御部441は、符号化単位内に1つ以上の予測単位を配置し、各予測単位について動きベクトル算出部442に動きベクトルを算出させる。動きベクトル算出部442により算出された動きベクトルは、モード選択部445へ出力されると共に、動きベクトルバッファ444に記憶される。モード選択部445は、ある予測単位について動きベクトル算出部442により算出された動きベクトルが隣接する1つ以上の予測単位に設定された参照動きベクトルと共通である場合に、これら予測単位をマージすることを決定する。モード選択部445は、各予測単位について予測画像データを生成し、生成した予測画像データと原画像データとの比較に基づいてコスト関数値を計算する。情報生成部346は、各予測単位についてのマージモードを示すマージ情報と、他の予測単位とマージされない予測単位についての動きベクトル情報とを含むインター予測に関する情報を生成する。そして、情報生成部346は、生成したインター予測に関する情報、コスト関数値及び予測画像データをセレクタ27へ出力する。
(1) Base Layer The base layer motion search process according to the present embodiment may be the same as the base layer motion search process according to the third embodiment described above. However, in this embodiment, the base layer merge information may not be buffered. In the base layer motion search process, the search control unit 441 arranges one or more prediction units in the encoding unit, and causes the motion vector calculation unit 442 to calculate a motion vector for each prediction unit. The motion vector calculated by the motion vector calculation unit 442 is output to the mode selection unit 445 and stored in the motion vector buffer 444. The mode selection unit 445 merges these prediction units when the motion vector calculated by the motion vector calculation unit 442 for a certain prediction unit is the same as the reference motion vector set in one or more adjacent prediction units. Decide that. The mode selection unit 445 generates predicted image data for each prediction unit, and calculates a cost function value based on a comparison between the generated predicted image data and original image data. The information generation unit 346 generates information related to inter prediction including merge information indicating the merge mode for each prediction unit and motion vector information for a prediction unit that is not merged with other prediction units. Then, the information generation unit 346 outputs information regarding the generated inter prediction, a cost function value, and predicted image data to the selector 27.

(2)エンハンスメントレイヤ
本実施例に係るベースレイヤの動き探索処理において生成されるマージ情報は、第3の実施例と同様の「MergeFlag」及び「MergeLeftFlag」という2つのフラグを含んでよい。これに対し、エンハンスメントレイヤの動き探索処理において生成されるマージ情報は、「MergeBaseFlag」という新たなフラグを追加的に含み得る。MergeBaseFlagは、注目PUの動きベクトルが対応する下位レイヤのPUの動きベクトルと共通であるか否かを示すフラグである。例えば、MergeBaseFlag=1の場合、注目PUの動きベクトルは対応する下位レイヤのPUの動きベクトルと共通である。
(2) Enhancement Layer The merge information generated in the base layer motion search process according to the present embodiment may include two flags “MergeFlag” and “MergeLeftFlag” similar to those in the third embodiment. In contrast, the merge information generated in the motion search process of the enhancement layer may additionally include a new flag “MergeBaseFlag”. MergeBaseFlag is a flag indicating whether or not the motion vector of the attention PU is common to the motion vector of the PU of the corresponding lower layer. For example, when MergeBaseFlag = 1, the motion vector of the attention PU is common to the motion vector of the PU of the corresponding lower layer.

図15A〜図15Cは、本実施例において生成され得るマージ情報の例をそれぞれ示している。これら3つの図において、上位レイヤL30内の注目PUである予測単位B30が示されている。予測単位B31及びB32は、それぞれ予測単位B30の左及び上に隣接している。動きベクトルMV30は、予測単位B30について動きベクトル算出部442により算出された動きベクトルである。動きベクトルMV31及びMV32は、それぞれ予測単位B31及びB32に設定された参照動きベクトルである。下位レイヤ21内の注目PUに対応するPUである予測単位B20もまた示されている。動きベクトルMV20は、予測単位B20についてバッファリングされている参照動きベクトルである。   15A to 15C respectively show examples of merge information that can be generated in the present embodiment. In these three figures, the prediction unit B30 which is the attention PU in the higher layer L30 is shown. The prediction units B31 and B32 are adjacent to the left and above the prediction unit B30, respectively. The motion vector MV30 is a motion vector calculated by the motion vector calculation unit 442 for the prediction unit B30. The motion vectors MV31 and MV32 are reference motion vectors set in the prediction units B31 and B32, respectively. A prediction unit B20 that is a PU corresponding to the attention PU in the lower layer 21 is also shown. The motion vector MV20 is a reference motion vector buffered for the prediction unit B20.

図15Aの例において、動きベクトルMV30は、参照動きベクトルMV31、MV32及びMV20の全てと共通である。この場合、情報生成部446は、マージ情報として、MergeFlag=1を生成する。MergeBaseFlag及びMergeLeftFlagは、マージ情報には含められない。このようなマージ情報を受け取った復号側は、MergeBaseFlag及びMergeLeftFlagを復号することなく、予測単位B20、B31又はB32に設定された動きベクトルと共通の動きベクトルを予測単位B30に設定し得る。   In the example of FIG. 15A, the motion vector MV30 is common to all of the reference motion vectors MV31, MV32, and MV20. In this case, the information generation unit 446 generates MergeFlag = 1 as merge information. MergeBaseFlag and MergeLeftFlag are not included in the merge information. The decoding side that has received such merge information can set a motion vector common to the prediction unit B20, B31, or B32 in the prediction unit B30 without decoding MergeBaseFlag and MergeLeftFlag.

図15Bの例において、動きベクトルMV30は、参照動きベクトルMV20と共通であり、参照動きベクトルMV31及びMV32と異なる。この場合、情報生成部446は、マージ情報として、MergeFlag=1及びMergeBaseFlag=1を生成する。このようなマージ情報を受け取った復号側は、下位レイヤL21内の予測単位B20に設定された動きベクトルと共通の動きベクトルを上位レイヤL30内の予測単位B30に設定し得る。   In the example of FIG. 15B, the motion vector MV30 is common to the reference motion vector MV20 and is different from the reference motion vectors MV31 and MV32. In this case, the information generation unit 446 generates MergeFlag = 1 and MergeBaseFlag = 1 as merge information. The decoding side that has received such merge information can set a motion vector common to the motion vector set in the prediction unit B20 in the lower layer L21 to the prediction unit B30 in the upper layer L30.

図15Cの例において、動きベクトルMV30は、参照動きベクトルMV31と共通であり、参照動きベクトルMV20及びMV32と異なる。この場合、情報生成部446は、マージ情報として、MergeFlag=1、MergeBaseFlag=0及びMergeLeftFlag=1を生成する。このようなマージ情報を受け取った復号側は、予測単位B31に設定された動きベクトルと共通の動きベクトルを予測単位B30に設定し得る。   In the example of FIG. 15C, the motion vector MV30 is common to the reference motion vector MV31 and is different from the reference motion vectors MV20 and MV32. In this case, the information generation unit 446 generates MergeFlag = 1, MergeBaseFlag = 0, and MergeLeftFlag = 1 as merge information. The decoding side that has received such merge information can set a motion vector common to the motion vector set in the prediction unit B31 in the prediction unit B30.

エンハンスメントレイヤの動き探索処理において、探索制御部441は、符号化単位内の各予測単位について動きベクトル算出部442に動きベクトルを算出させる。動きベクトル算出部442により算出された動きベクトルは、モード選択部445へ出力されると共に、動きベクトルバッファ444に記憶される。動きベクトルバッファ444には、下位レイヤの各予測単位について算出された動きベクトル(参照動きベクトル)もまた記憶されている。モード選択部445は、ある予測単位について動きベクトル算出部442により算出された動きベクトルが隣接する予測単位又は下位レイヤ内の対応する予測単位に設定された参照動きベクトルと共通である場合に、これら予測単位をマージすることを決定する。即ち、モード選択部445は、例えば、マージモードとして、下位レイヤとのマージ、上に隣接する予測単位とのマージ若しくは左に隣接する予測単位とのマージ、又はマージなし、のいずれかを選択し得る。さらに、モード選択部445は、各予測単位について予測画像データを生成し、生成した予測画像データと原画像データとの比較に基づいてコスト関数値を計算する。情報生成部346は、各予測単位についてのマージモードを示すマージ情報と、他の予測単位とマージされない予測単位についての動きベクトル情報とを含むインター予測に関する情報を生成する。そして、情報生成部346は、生成したインター予測に関する情報、コスト関数値及び予測画像データをセレクタ27へ出力する。   In the enhancement layer motion search process, the search control unit 441 causes the motion vector calculation unit 442 to calculate a motion vector for each prediction unit in the coding unit. The motion vector calculated by the motion vector calculation unit 442 is output to the mode selection unit 445 and stored in the motion vector buffer 444. The motion vector buffer 444 also stores a motion vector (reference motion vector) calculated for each prediction unit of the lower layer. When the motion vector calculated by the motion vector calculation unit 442 for a certain prediction unit is common to the adjacent prediction unit or the reference motion vector set to the corresponding prediction unit in the lower layer, these modes are selected. Decide to merge prediction units. That is, for example, the mode selection unit 445 selects, as the merge mode, one of merge with the lower layer, merge with the prediction unit adjacent to the upper layer, merge with the prediction unit adjacent to the left, or no merge. obtain. Further, the mode selection unit 445 generates predicted image data for each prediction unit, and calculates a cost function value based on a comparison between the generated predicted image data and original image data. The information generation unit 346 generates information related to inter prediction including merge information indicating the merge mode for each prediction unit and motion vector information for a prediction unit that is not merged with other prediction units. Then, the information generation unit 346 outputs information regarding the generated inter prediction, a cost function value, and predicted image data to the selector 27.

(3)処理の流れ
図16は、本実施例に係る動き探索部40による動き探索処理の流れの一例を示すフローチャートである。図16を参照すると。まず、動き探索部441は、ベースレイヤの動き探索処理を行う(ステップS140)。その結果、各符号化単位内の予測単位の配置が決定され、各予測単位のマージモードが選択される。動きベクトルバッファ444は、各予測単位について算出された動きベクトルをバッファリングする。
(3) Process Flow FIG. 16 is a flowchart illustrating an example of a flow of motion search processing by the motion search unit 40 according to the present embodiment. Referring to FIG. First, the motion search unit 441 performs base layer motion search processing (step S140). As a result, the arrangement of the prediction units in each coding unit is determined, and the merge mode of each prediction unit is selected. The motion vector buffer 444 buffers the motion vector calculated for each prediction unit.

ステップS141〜S146の処理は、エンハンスメントレイヤの動き探索処理である。これら処理のうちステップS141〜S145の処理は、各エンハンスメントレイヤの各注目PUについて繰り返される。なお、以下の説明において、「上位レイヤ」は予測対象のレイヤであり、「下位レイヤ」は予測対象のレイヤの下位のレイヤである。   The processing in steps S141 to S146 is enhancement layer motion search processing. Among these processes, the processes of steps S141 to S145 are repeated for each attention PU of each enhancement layer. In the following description, “upper layer” is a prediction target layer, and “lower layer” is a lower layer of the prediction target layer.

まず、動きベクトル算出部442は、上位レイヤの1つの注目PUについて、原画像の画素値、及びフレームメモリ25から入力される参照画像の画素値に基づいて、動きベクトルを算出する(ステップS141)。そして、動きベクトル算出部442は、算出した動きベクトルを、モード選択部445及び動きベクトルバッファ444へ出力する。   First, the motion vector calculation unit 442 calculates a motion vector for one target PU in the upper layer, based on the pixel value of the original image and the pixel value of the reference image input from the frame memory 25 (step S141). . Then, the motion vector calculation unit 442 outputs the calculated motion vector to the mode selection unit 445 and the motion vector buffer 444.

次に、モード選択部445は、動きベクトル算出部442により算出された動きベクトルを動きベクトルバッファ444に記憶されている参照動きベクトルと比較することにより、マージモードを選択する(ステップS142)。例えば、注目PUについて算出された動きベクトルが下位レイヤ内の対応するPUについてバッファリングされている参照動きベクトルと共通である場合には、下位レイヤとのマージが選択され得る。   Next, the mode selection unit 445 selects the merge mode by comparing the motion vector calculated by the motion vector calculation unit 442 with the reference motion vector stored in the motion vector buffer 444 (step S142). For example, if the motion vector calculated for the attention PU is common to the reference motion vector buffered for the corresponding PU in the lower layer, merging with the lower layer may be selected.

次に、モード選択部445は、注目PUについての動きベクトルを用いて予測画像データを生成し、コスト関数値を計算する(ステップS144)。そして、情報生成部446は、注目PUについてのマージ情報(及び他のPUとマージされない注目PUについては動きベクトル情報)を含む設定情報を生成する(ステップS144)。   Next, the mode selection unit 445 generates predicted image data using a motion vector for the attention PU, and calculates a cost function value (step S144). Then, the information generation unit 446 generates setting information including merge information about the attention PU (and motion vector information for the attention PU that is not merged with other PUs) (step S144).

その後、予測対象のレイヤ内に未処理のPUが残っている場合には、処理はステップS141に戻る(ステップS145)。一方、未処理のPUが残っていない場合には、さらに残りのレイヤ(より上位のレイヤ)が存在するかが判定される(ステップS146)、ここで、残りのレイヤが存在する場合には、それまでの予測対象のレイヤを下位レイヤ、次のレイヤを上位レイヤとして、ステップS141以降の処理が繰り返される。下位レイヤの各注目PUについて算出された動きベクトルは、動きベクトルバッファ444によりバッファリングされる。残りのレイヤが存在しない場合には、図16の動き探索処理は終了する。ここで生成された予測画像データ及びインター予測に関する情報は、スイッチ27を介して、減算部13及び可逆符号化部16へそれぞれ出力され得る。   Thereafter, when an unprocessed PU remains in the prediction target layer, the process returns to step S141 (step S145). On the other hand, if there is no unprocessed PU remaining, it is further determined whether there is a remaining layer (higher layer) (step S146). Here, if there is a remaining layer, The processes after step S141 are repeated with the previous prediction target layer as the lower layer and the next layer as the upper layer. The motion vector calculated for each attention PU in the lower layer is buffered by the motion vector buffer 444. If there are no remaining layers, the motion search process in FIG. 16 ends. Information about the predicted image data and the inter prediction generated here can be output to the subtraction unit 13 and the lossless encoding unit 16 via the switch 27, respectively.

このように、第4の実施例では、上位レイヤのインター予測に関する情報として、注目PUが下位レイヤ内の対応するPUとマージされること(共通する動きベクトルが設定されること)を示すマージ情報が符号化され得る。従って、動きの相関の顕著な下位レイヤとの間の予測単位のマージが可能となり、マージされる上位レイヤ内の予測単位については動きベクトルが符号化されないため、符号量を効果的に削減することができる。   As described above, in the fourth example, merge information indicating that the attention PU is merged with the corresponding PU in the lower layer (a common motion vector is set) as information related to inter prediction of the upper layer. Can be encoded. Therefore, the prediction unit can be merged with the lower layer where the correlation of the motion is remarkable, and the motion vector is not encoded for the prediction unit in the upper layer to be merged, so that the code amount is effectively reduced. Can do.

<3.画像復号装置の構成例>
図17は、一実施形態に係る画像復号装置60の構成の一例を示すブロック図である。図17を参照すると、画像復号装置60は、蓄積バッファ61、可逆復号部62、逆量子化部63、逆直交変換部64、加算部65、デブロックフィルタ66、並び替えバッファ67、D/A(Digital to Analogue)変換部68、フレームメモリ69、セレクタ70及び71、イントラ予測部80、並びに動き補償部90を備える。
<3. Configuration Example of Image Decoding Device>
FIG. 17 is a block diagram illustrating an example of the configuration of the image decoding device 60 according to an embodiment. Referring to FIG. 17, the image decoding device 60 includes an accumulation buffer 61, a lossless decoding unit 62, an inverse quantization unit 63, an inverse orthogonal transform unit 64, an addition unit 65, a deblock filter 66, a rearrangement buffer 67, a D / A (Digital to Analogue) conversion unit 68, frame memory 69, selectors 70 and 71, intra prediction unit 80, and motion compensation unit 90 are provided.

蓄積バッファ61は、伝送路を介して入力される符号化ストリームを一時的に蓄積する。   The accumulation buffer 61 temporarily accumulates the encoded stream input via the transmission path.

可逆復号部62は、蓄積バッファ61から入力される符号化ストリームを、符号化の際に使用された符号化方式に従って復号する。また、可逆復号部62は、符号化ストリームのヘッダ領域に多重化されている情報を復号する。符号化ストリームのヘッダ領域に多重化されている情報とは、例えば、上述したインター予測に関する情報及びイントラ予測に関する情報を含み得る。可逆復号部62は、インター予測に関する情報を動き補償部90へ出力する。また、可逆復号部62は、イントラ予測に関する情報をイントラ予測部80へ出力する。   The lossless decoding unit 62 decodes the encoded stream input from the accumulation buffer 61 according to the encoding method used at the time of encoding. In addition, the lossless decoding unit 62 decodes information multiplexed in the header area of the encoded stream. The information multiplexed in the header area of the encoded stream can include, for example, the information related to inter prediction and the information related to intra prediction described above. The lossless decoding unit 62 outputs information related to inter prediction to the motion compensation unit 90. Further, the lossless decoding unit 62 outputs information related to intra prediction to the intra prediction unit 80.

逆量子化部63は、可逆復号部62による復号後の量子化データを逆量子化する。逆直交変換部64は、符号化の際に使用された直交変換方式に従い、逆量子化部63から入力される変換係数データについて逆直交変換を行うことにより、予測誤差データを生成する。そして、逆直交変換部64は、生成した予測誤差データを加算部65へ出力する。   The inverse quantization unit 63 inversely quantizes the quantized data decoded by the lossless decoding unit 62. The inverse orthogonal transform unit 64 generates prediction error data by performing inverse orthogonal transform on the transform coefficient data input from the inverse quantization unit 63 according to the orthogonal transform method used at the time of encoding. Then, the inverse orthogonal transform unit 64 outputs the generated prediction error data to the addition unit 65.

加算部65は、逆直交変換部64から入力される予測誤差データと、セレクタ71から入力される予測画像データとを加算することにより、復号画像データを生成する。そして、加算部65は、生成した復号画像データをデブロックフィルタ66及びフレームメモリ69へ出力する。   The adding unit 65 adds the prediction error data input from the inverse orthogonal transform unit 64 and the predicted image data input from the selector 71 to generate decoded image data. Then, the addition unit 65 outputs the generated decoded image data to the deblock filter 66 and the frame memory 69.

デブロックフィルタ66は、加算部65から入力される復号画像データをフィルタリングすることによりブロック歪みを除去し、フィルタリング後の復号画像データを並び替えバッファ67及びフレームメモリ69へ出力する。   The deblock filter 66 removes block distortion by filtering the decoded image data input from the adder 65 and outputs the decoded image data after filtering to the rearrangement buffer 67 and the frame memory 69.

並び替えバッファ67は、デブロックフィルタ66から入力される画像を並び替えることにより、時系列の一連の画像データを生成する。そして、並び替えバッファ67は、生成した画像データをD/A変換部68へ出力する。   The rearrangement buffer 67 generates a series of time-series image data by rearranging the images input from the deblocking filter 66. Then, the rearrangement buffer 67 outputs the generated image data to the D / A conversion unit 68.

D/A変換部68は、並び替えバッファ67から入力されるデジタル形式の画像データをアナログ形式の画像信号に変換する。そして、D/A変換部68は、例えば、画像復号装置60と接続されるディスプレイ(図示せず)にアナログ画像信号を出力することにより、画像を表示させる。   The D / A converter 68 converts the digital image data input from the rearrangement buffer 67 into an analog image signal. Then, the D / A conversion unit 68 displays an image by outputting an analog image signal to a display (not shown) connected to the image decoding device 60, for example.

フレームメモリ69は、加算部65から入力されるフィルタリング前の復号画像データ、及びデブロックフィルタ66から入力されるフィルタリング後の復号画像データを記憶媒体を用いて記憶する。   The frame memory 69 stores the decoded image data before filtering input from the adding unit 65 and the decoded image data after filtering input from the deblocking filter 66 using a storage medium.

セレクタ70は、可逆復号部62により取得されるモード情報に応じて、画像内のブロックごとに、フレームメモリ69からの画像データの出力先をイントラ予測部80と動き補償部90との間で切り替える。例えば、セレクタ70は、イントラ予測モードが指定された場合には、フレームメモリ69から供給されるフィルタリング前の復号画像データを参照画像データとしてイントラ予測部80へ出力する。また、セレクタ70は、インター予測モードが指定された場合には、フレームメモリ69から供給されるフィルタリング後の復号画像データを参照画像データとして動き補償部90へ出力する。   The selector 70 switches the output destination of the image data from the frame memory 69 between the intra prediction unit 80 and the motion compensation unit 90 for each block in the image according to the mode information acquired by the lossless decoding unit 62. . For example, when the intra prediction mode is designated, the selector 70 outputs the decoded image data before filtering supplied from the frame memory 69 to the intra prediction unit 80 as reference image data. Further, when the inter prediction mode is designated, the selector 70 outputs the decoded image data after filtering supplied from the frame memory 69 to the motion compensation unit 90 as reference image data.

セレクタ71は、可逆復号部62により取得されるモード情報に応じて、加算部65へ供給すべき予測画像データの出力元をイントラ予測部80と動き補償部90との間で切り替える。例えば、セレクタ71は、イントラ予測モードが指定された場合には、イントラ予測部80から出力される予測画像データを加算部65へ供給する。また、セレクタ71は、インター予測モードが指定された場合には、動き補償部90から出力される予測画像データを加算部65へ供給する。   The selector 71 switches the output source of the predicted image data to be supplied to the adding unit 65 between the intra prediction unit 80 and the motion compensation unit 90 according to the mode information acquired by the lossless decoding unit 62. For example, the selector 71 supplies the prediction image data output from the intra prediction unit 80 to the adding unit 65 when the intra prediction mode is designated. Further, when the inter prediction mode is designated, the selector 71 supplies the predicted image data output from the motion compensation unit 90 to the adding unit 65.

イントラ予測部80は、可逆復号部62から入力されるイントラ予測に関する情報とフレームメモリ69からの参照画像データとに基づいてイントラ予測処理を行い、予測画像データを生成する。そして、イントラ予測部80は、生成した予測画像データをセレクタ71へ出力する。   The intra prediction unit 80 performs intra prediction processing based on the information related to intra prediction input from the lossless decoding unit 62 and the reference image data from the frame memory 69, and generates predicted image data. Then, the intra prediction unit 80 outputs the generated predicted image data to the selector 71.

動き補償部90は、可逆復号部62から入力されるインター予測に関する情報とフレームメモリ69からの参照画像データとに基づいて動き補償処理を行い、予測画像データを生成する。本実施形態に係る動き補償部90による動き補償処理は、上記非特許文献2に記載された手法又は上記非特許文献3に記載された手法を拡張することにより実現され得る。そして、動き補償部90は、動き補償処理の結果として生成される予測画像データをセレクタ71へ出力する。次節において、動き補償部90の詳細な構成についての4つの実施例を説明する。   The motion compensation unit 90 performs motion compensation processing based on the information related to inter prediction input from the lossless decoding unit 62 and the reference image data from the frame memory 69, and generates predicted image data. The motion compensation processing by the motion compensation unit 90 according to the present embodiment can be realized by extending the method described in Non-Patent Document 2 or the method described in Non-Patent Document 3. Then, the motion compensation unit 90 outputs predicted image data generated as a result of the motion compensation process to the selector 71. In the next section, four examples of the detailed configuration of the motion compensation unit 90 will be described.

画像復号装置60は、ここで説明した一連の復号処理を、スケーラブル符号化された画像の複数のレイヤの各々について繰り返す。最初に復号されるレイヤは、ベースレイヤである。ベースレイヤが復号された後、1つ以上のエンハンスメントレイヤが復号される。エンハンスメントレイヤの復号に際しては、ベースレイヤ又は他のエンハンスメントレイヤである下位レイヤを復号することにより得られた情報が用いられる。   The image decoding device 60 repeats the series of decoding processes described here for each of a plurality of layers of a scalable encoded image. The layer that is decoded first is the base layer. After the base layer is decoded, one or more enhancement layers are decoded. When decoding the enhancement layer, information obtained by decoding the lower layer, which is the base layer or another enhancement layer, is used.

画像復号装置60によるスケーラブル復号に際しては、ある上位レイヤ内の予測単位に、下位レイヤ内の対応する予測単位に設定された動きベクトルに関連する設定情報を用いて動きベクトルが設定される。当該設定情報は、例えば、上述したプレディクタ情報、マージ情報又は動きベクトル情報を含み得る。   In scalable decoding by the image decoding device 60, a motion vector is set in a prediction unit in a certain upper layer using setting information related to a motion vector set in a corresponding prediction unit in a lower layer. The setting information may include, for example, the above-described predictor information, merge information, or motion vector information.

<4.動き補償部の詳細な構成例>
本節では、図17に示した動き補償部90の詳細な構成についての4つの実施例を説明する。その4つの実施例は、上述した画像符号化装置10の動き探索部40の4つの実施例にそれぞれ対応する。第1及び第2の実施例は、上記非特許文献2に記載された手法の拡張についての実施例である。一方、第3及び第4の実施例は、上記非特許文献3に記載された手法の拡張についての実施例である。
<4. Detailed configuration example of motion compensation unit>
In this section, four examples of the detailed configuration of the motion compensation unit 90 shown in FIG. 17 will be described. The four examples correspond to the four examples of the motion search unit 40 of the image encoding device 10 described above. The first and second embodiments are embodiments for extending the method described in Non-Patent Document 2 above. On the other hand, the third and fourth examples are examples of the extension of the technique described in Non-Patent Document 3.

[4−1.第1の実施例]
図18は、第1の実施例に係る動き補償部90の詳細な構成の一例を示すブロック図である。図18を参照すると、動き補償部90は、情報取得部191、動きベクトル設定部192、プレディクタ情報バッファ193、動きベクトルバッファ194及び補償部195を有する。
[4-1. First Example]
FIG. 18 is a block diagram illustrating an example of a detailed configuration of the motion compensation unit 90 according to the first embodiment. Referring to FIG. 18, the motion compensation unit 90 includes an information acquisition unit 191, a motion vector setting unit 192, a predictor information buffer 193, a motion vector buffer 194, and a compensation unit 195.

(1)ベースレイヤ
ベースレイヤの動き補償処理において、情報取得部191は、可逆復号部62により符号化ストリームから復号されるインター予測に関する情報を取得する。本実施例において、インター予測に関する情報は、プレディクタ情報及び差分動きベクトル情報(動きベクトルの予測が行われない予測単位については動きベクトル情報)を含み得る。ここで取得されるプレディクタ情報は、例えば、上述した様々なプレディクタ候補のうち符号化の際に各予測単位について選択されたプレディクタを示す。動きベクトル設定部192は、各予測単位に動きベクトルを設定する。そして、動きベクトル設定部192により各予測単位に設定された動きベクトルは、補償部195へ出力されると共に、動きベクトルバッファ194に記憶される。また、各予測単位についてのプレディクタ情報は、上位レイヤでの処理のために、プレディクタ情報バッファ193に一時的に記憶される。動きベクトル設定部192による動きベクトルの設定は、各予測単位についてプレディクタ情報により示されるプレディクタと差分動きベクトル情報により示される差分動きベクトルとを用いて行われ得る。例えば、ある予測単位についてプレディクタ情報が式(1)に示したような空間的プレディクタを示している場合、動きベクトル設定部192は、当該予測単位に隣接する予測単位の参照動きベクトルを動きベクトルバッファ194から取得する。そして、動きベクトル設定部192は、取得した参照動きベクトルを式(1)に代入し、予測動きベクトルを生成する。さらに、動きベクトル設定部192は、生成した予測動きベクトルに差分動きベクトルを加算することにより、動きベクトルを再構築する。このように再構築された動きベクトルが、各予測単位に設定され得る。補償部195は、動きベクトル設定部192により各予測単位に設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、各予測単位の予測画像データを生成する。そして、補償部195は、生成した予測画像データをスイッチ71を介して加算部65へ出力する。
(1) Base Layer In the base layer motion compensation process, the information acquisition unit 191 acquires information related to inter prediction decoded from the encoded stream by the lossless decoding unit 62. In the present embodiment, the information related to inter prediction may include predictor information and differential motion vector information (motion vector information for a prediction unit in which motion vector prediction is not performed). The predictor information acquired here indicates, for example, the predictor selected for each prediction unit at the time of encoding among the various predictor candidates described above. The motion vector setting unit 192 sets a motion vector for each prediction unit. The motion vector set for each prediction unit by the motion vector setting unit 192 is output to the compensation unit 195 and stored in the motion vector buffer 194. Also, the predictor information for each prediction unit is temporarily stored in the predictor information buffer 193 for processing in the upper layer. The setting of the motion vector by the motion vector setting unit 192 can be performed using the predictor indicated by the predictor information and the differential motion vector indicated by the differential motion vector information for each prediction unit. For example, when the predictor information for a certain prediction unit indicates a spatial predictor as shown in Expression (1), the motion vector setting unit 192 uses the reference motion vector of the prediction unit adjacent to the prediction unit as a motion vector buffer. Obtained from 194. Then, the motion vector setting unit 192 generates the predicted motion vector by substituting the acquired reference motion vector into Expression (1). Furthermore, the motion vector setting unit 192 reconstructs the motion vector by adding the difference motion vector to the generated predicted motion vector. The motion vector reconstructed in this way can be set for each prediction unit. The compensation unit 195 generates predicted image data for each prediction unit using the motion vector set for each prediction unit by the motion vector setting unit 192 and the reference image data input from the frame memory 69. Then, the compensating unit 195 outputs the generated predicted image data to the adding unit 65 via the switch 71.

(2)エンハンスメントレイヤ
エンハンスメントレイヤの動き補償処理では、プレディクタ情報バッファ193に記憶されている下位レイヤのプレディクタ情報に基づく動きベクトルの予測が行われる。
(2) Enhancement Layer In the enhancement layer motion compensation process, motion vectors are predicted based on the predictor information of the lower layer stored in the predictor information buffer 193.

まず、情報取得部191は、可逆復号部62により符号化ストリームから復号されるインター予測に関する情報を取得する。本実施例において、エンハンスメントレイヤのインター予測に関する情報は、差分動きベクトル情報(動きベクトルの予測が行われない予測単位については動きベクトル情報)を含み得る。また、情報取得部191は、上位レイヤ内の各予測単位に動きベクトルを設定するための設定情報として、下位レイヤ内の対応する予測単位の動きベクトルの予測の際に用いられたプレディクタを示すプレディクタ情報を、プレディクタ情報バッファ193から取得する。ここで取得されるプレディクタ情報は、例えば、上述した空間的プレディクタ又は時間的プレディクタのうちのいずれかを示す。動きベクトル設定部192は、情報取得部191により取得された差分動きベクトル情報とプレディクタ情報とを用いて動きベクトルを再構築し、各予測単位に再構築された動きベクトルを設定する。動きベクトル設定部192により各予測単位に設定された動きベクトルは、補償部195へ出力されると共に、動きベクトルバッファ194に記憶される。補償部195は、動きベクトル設定部192により各予測単位に設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、各予測単位の予測画像データを生成する。そして、補償部195は、生成した予測画像データをスイッチ71を介して加算部65へ出力する。   First, the information acquisition unit 191 acquires information on inter prediction decoded from the encoded stream by the lossless decoding unit 62. In the present embodiment, the information related to inter prediction of the enhancement layer may include differential motion vector information (motion vector information for a prediction unit in which motion vector prediction is not performed). In addition, the information acquisition unit 191 includes a predictor that indicates a predictor used when predicting a motion vector of a corresponding prediction unit in the lower layer as setting information for setting a motion vector in each prediction unit in the upper layer. Information is obtained from the predictor information buffer 193. The predictor information acquired here indicates, for example, one of the above-described spatial predictor or temporal predictor. The motion vector setting unit 192 reconstructs a motion vector using the difference motion vector information and the predictor information acquired by the information acquisition unit 191, and sets the reconstructed motion vector in each prediction unit. The motion vector set for each prediction unit by the motion vector setting unit 192 is output to the compensation unit 195 and stored in the motion vector buffer 194. The compensation unit 195 generates predicted image data for each prediction unit using the motion vector set for each prediction unit by the motion vector setting unit 192 and the reference image data input from the frame memory 69. Then, the compensating unit 195 outputs the generated predicted image data to the adding unit 65 via the switch 71.

(3)処理の流れ
図19は、本実施例に係る動き補償部90による動き補償処理の流れの一例を示すフローチャートである。図19を参照すると。まず、動き補償部90は、ベースレイヤの動き補償処理を行う(ステップS210)。その際、プレディクタ情報バッファ193は、各予測単位について符号化の際に選択されたプレディクタを示すプレディクタ情報を設定情報としてバッファリングする。
(3) Processing Flow FIG. 19 is a flowchart illustrating an example of the flow of motion compensation processing by the motion compensation unit 90 according to the present embodiment. Referring to FIG. First, the motion compensation unit 90 performs base layer motion compensation processing (step S210). At that time, the predictor information buffer 193 buffers predictor information indicating the predictor selected at the time of encoding for each prediction unit as setting information.

ステップS211〜S218の処理は、エンハンスメントレイヤの動き補償処理である。これら処理のうちステップS211〜S217の処理は、各エンハンスメントレイヤの各注目PUについて繰り返される。なお、以下の説明において、「上位レイヤ」は予測対象のレイヤであり、「下位レイヤ」は予測対象のレイヤの下位のレイヤである。   The processing in steps S211 to S218 is enhancement layer motion compensation processing. Of these processes, the processes of steps S211 to S217 are repeated for each attention PU of each enhancement layer. In the following description, “upper layer” is a prediction target layer, and “lower layer” is a lower layer of the prediction target layer.

まず、情報取得部191は、上位レイヤの1つのPUを注目PUとし、注目PUに対応する下位レイヤ内のPUについてのプレディクタ情報を、プレディクタ情報バッファ193から取得する(ステップS211)。また、情報取得部191は、注目PUについての差分動きベクトル情報を取得する(ステップS212)。動きベクトル設定部192は、差分動きベクトル情報を復号する(ステップS213)。   First, the information acquisition unit 191 uses one PU in the upper layer as the attention PU, and acquires predictor information about the PU in the lower layer corresponding to the attention PU from the predictor information buffer 193 (step S211). Further, the information acquisition unit 191 acquires differential motion vector information for the attention PU (step S212). The motion vector setting unit 192 decodes the difference motion vector information (step S213).

次に、動きベクトル設定部192は、情報取得部191により取得されたプレディクタ情報及び参照動きベクトルを用いて、注目PUについての予測動きベクトルを生成する(ステップS214)。次に、動きベクトル設定部192は、生成した予測動きベクトルに差分動きベクトルを加算することにより、動きベクトルを再構築する(ステップS215)。このように再構築された動きベクトルが、注目PUに設定される。また、再構築された動きベクトルは、上位レイヤでの処理のために、動きベクトルバッファ194に一時的に記憶される。なお、動きベクトルの予測が行われない予測単位については、差分動きベクトル情報の代わりに動きベクトル情報が符号化ストリームから取得され、当該動きベクトル情報から動きベクトルが復号されてよい。   Next, the motion vector setting unit 192 generates a predicted motion vector for the attention PU using the predictor information and the reference motion vector acquired by the information acquisition unit 191 (step S214). Next, the motion vector setting unit 192 reconstructs the motion vector by adding the difference motion vector to the generated predicted motion vector (step S215). The motion vector reconstructed in this way is set as the attention PU. Further, the reconstructed motion vector is temporarily stored in the motion vector buffer 194 for processing in the upper layer. Note that for a prediction unit in which a motion vector is not predicted, motion vector information may be acquired from the encoded stream instead of the difference motion vector information, and the motion vector may be decoded from the motion vector information.

次に、補償部195は、動きベクトル設定部192により注目PUに設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、注目PUの予測画像データを生成する(ステップS216)。   Next, the compensation unit 195 generates predicted image data of the attention PU using the motion vector set to the attention PU by the motion vector setting unit 192 and the reference image data input from the frame memory 69 (step S216). ).

その後、予測対象のレイヤ内に未処理のPUが残っている場合には、処理はステップS211に戻る(ステップS217)。一方、未処理のPUが残っていない場合には、さらに残りのレイヤ(より上位のレイヤ)が存在するかが判定される(ステップS218)。ここで、残りのレイヤが存在する場合には、それまでの予測対象のレイヤを下位レイヤ、次のレイヤを上位レイヤとして、ステップS211以降の処理が繰り返される。下位レイヤについて選択されたプレディクタを示すプレディクタ情報は、プレディクタ情報バッファ193により引き続きバッファリングされる。残りのレイヤが存在しない場合には、図19の動き補償処理は終了する。ここで生成された予測画像データは、スイッチ71を介して、加算部65へ出力され得る。   Thereafter, when an unprocessed PU remains in the prediction target layer, the process returns to step S211 (step S217). On the other hand, when there is no unprocessed PU remaining, it is determined whether there is a remaining layer (a higher layer) (step S218). Here, if there are remaining layers, the processing from step S211 is repeated with the previous prediction target layer as the lower layer and the next layer as the upper layer. Predictor information indicating the predictor selected for the lower layer is subsequently buffered by the predictor information buffer 193. If there are no remaining layers, the motion compensation process in FIG. 19 ends. The predicted image data generated here can be output to the adding unit 65 via the switch 71.

このように、第1の実施例では、上位レイヤの復号の際に下位レイヤのプレディクタ情報が再利用されるため、上位レイヤのためにプレディクタ情報を冗長的に符号化しなくてよい。従って、インター予測に関する情報の符号量を削減することができる。   As described above, in the first embodiment, the predictor information of the lower layer is reused at the time of decoding of the upper layer. Therefore, the predictor information does not need to be redundantly encoded for the upper layer. Therefore, it is possible to reduce the code amount of information related to inter prediction.

[4−2.第2の実施例]
図20は、第2の実施例に係る動き補償部90の詳細な構成の一例を示すブロック図である。図20を参照すると、動き補償部90は、情報取得部291、動きベクトル設定部292、動きベクトルバッファ294及び補償部295を有する。
[4-2. Second embodiment]
FIG. 20 is a block diagram illustrating an example of a detailed configuration of the motion compensation unit 90 according to the second embodiment. Referring to FIG. 20, the motion compensation unit 90 includes an information acquisition unit 291, a motion vector setting unit 292, a motion vector buffer 294, and a compensation unit 295.

(1)ベースレイヤ
本実施例に係るベースレイヤの動き補償処理は、上述した第1の実施例に係るベースレイヤの動き補償処理と同様であってよい。但し、本実施例では、ベースレイヤのプレディクタ情報はバッファリングされなくてよく、ベースレイヤの動きベクトル情報がレイヤをまたいでバッファリングされる。ベースレイヤの動き補償処理において、情報取得部291は、可逆復号部62により符号化ストリームから復号されるインター予測に関する情報を取得する。本実施例において、インター予測に関する情報は、プレディクタ情報及び差分動きベクトル情報(動きベクトルの予測が行われない予測単位については動きベクトル情報)を含み得る。ここで取得されるプレディクタ情報は、例えば、上述した空間的プレディクタ及び時間的プレディクタを含み得るプレディクタ候補のうち符号化の際に各予測単位について選択されたプレディクタを示す。動きベクトル設定部292は、各予測単位に動きベクトルを設定する。そして、動きベクトル設定部292により各予測単位に設定された動きベクトルは、補償部295へ出力されると共に、動きベクトルバッファ294に記憶される。動きベクトル設定部292による動きベクトルの設定は、各予測単位についてプレディクタ情報により示されるプレディクタと差分動きベクトル情報により示される差分動きベクトルとを用いて行われ得る。補償部295は、動きベクトル設定部292により各予測単位に設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、各予測単位の予測画像データを生成する。そして、補償部295は、生成した予測画像データをスイッチ71を介して加算部65へ出力する。
(1) Base Layer The base layer motion compensation processing according to the present embodiment may be the same as the base layer motion compensation processing according to the first embodiment described above. However, in this embodiment, the predictor information of the base layer does not have to be buffered, and the motion vector information of the base layer is buffered across the layers. In the motion compensation process of the base layer, the information acquisition unit 291 acquires information related to inter prediction decoded from the encoded stream by the lossless decoding unit 62. In the present embodiment, the information related to inter prediction may include predictor information and differential motion vector information (motion vector information for a prediction unit in which motion vector prediction is not performed). The predictor information acquired here indicates, for example, the predictor selected for each prediction unit at the time of encoding among the predictor candidates that may include the spatial predictor and the temporal predictor described above. The motion vector setting unit 292 sets a motion vector for each prediction unit. The motion vector set for each prediction unit by the motion vector setting unit 292 is output to the compensation unit 295 and stored in the motion vector buffer 294. The setting of the motion vector by the motion vector setting unit 292 can be performed using the predictor indicated by the predictor information and the differential motion vector indicated by the differential motion vector information for each prediction unit. The compensation unit 295 generates predicted image data for each prediction unit using the motion vector set for each prediction unit by the motion vector setting unit 292 and the reference image data input from the frame memory 69. Then, the compensating unit 295 outputs the generated predicted image data to the adding unit 65 via the switch 71.

(2)エンハンスメントレイヤ
エンハンスメントレイヤの動き補償処理では、動きベクトルバッファ294に記憶されている下位レイヤの参照動きベクトルに基づくレイヤ間プレディクタを用いた動きベクトルの予測が行われ得る。
(2) Enhancement Layer In the enhancement layer motion compensation process, motion vector prediction using an inter-layer predictor based on lower layer reference motion vectors stored in the motion vector buffer 294 may be performed.

まず、情報取得部291は、可逆復号部62により符号化ストリームから復号されるインター予測に関する情報を取得する。本実施例において、エンハンスメントレイヤのインター予測に関する情報は、差分動きベクトル情報に加えて、レイヤ間プレディクタを含む複数のプレディクタ候補から符号化の際に選択されたプレディクタを示すプレディクタ情報を設定情報として含み得る。なお、レイヤ間プレディクタが選択されたことを示すプレディクタ情報には、複数のプレディクタ候補の中で最小の符号番号が割り当てられ得る。動きベクトル設定部292は、情報取得部291により取得された差分動きベクトル情報とプレディクタ情報とを用いて動きベクトルを再構築し、各予測単位に再構築された動きベクトルを設定する。なお、動きベクトル設定部292は、プレディクタ情報がレイヤ間プレディクタを示している場合には、上述した式(9)のように、レイヤ間の空間解像度の比率に応じて拡大された参照動きベクトルを、予測動きベクトルとしてよい。その際、動きベクトル設定部292は、予測動きベクトルを動きベクトル精度に応じて丸めてもよい。動きベクトル設定部292により各予測単位に設定された動きベクトルは、補償部295へ出力されると共に、動きベクトルバッファ294に記憶される。補償部295は、動きベクトル設定部292により各予測単位に設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、各予測単位の予測画像データを生成する。そして、補償部295は、生成した予測画像データをスイッチ71を介して加算部65へ出力する。   First, the information acquisition unit 291 acquires information regarding inter prediction decoded from the encoded stream by the lossless decoding unit 62. In this embodiment, the information related to the inter prediction of the enhancement layer includes, as setting information, predictor information indicating a predictor selected at the time of encoding from a plurality of predictor candidates including inter-layer predictors in addition to the difference motion vector information. obtain. Note that the predictor information indicating that the inter-layer predictor has been selected may be assigned the smallest code number among the plurality of predictor candidates. The motion vector setting unit 292 reconstructs a motion vector using the difference motion vector information and the predictor information acquired by the information acquisition unit 291 and sets the reconstructed motion vector in each prediction unit. In addition, when the predictor information indicates the inter-layer predictor, the motion vector setting unit 292 displays the reference motion vector expanded according to the spatial resolution ratio between layers as in the above-described equation (9). The predicted motion vector may be used. At that time, the motion vector setting unit 292 may round the predicted motion vector according to the motion vector accuracy. The motion vector set for each prediction unit by the motion vector setting unit 292 is output to the compensation unit 295 and stored in the motion vector buffer 294. The compensation unit 295 generates predicted image data for each prediction unit using the motion vector set for each prediction unit by the motion vector setting unit 292 and the reference image data input from the frame memory 69. Then, the compensating unit 295 outputs the generated predicted image data to the adding unit 65 via the switch 71.

(3)処理の流れ
図21は、本実施例に係る動き補償部90による動き補償処理の流れの一例を示すフローチャートである。図21を参照すると。まず、動き補償部90は、ベースレイヤの動き補償処理を行う(ステップS220)。その際、動きベクトルバッファ294は、各予測単位に設定された動きベクトルをバッファリングする。
(3) Processing Flow FIG. 21 is a flowchart illustrating an example of the flow of motion compensation processing by the motion compensation unit 90 according to the present embodiment. Referring to FIG. First, the motion compensation unit 90 performs base layer motion compensation processing (step S220). At that time, the motion vector buffer 294 buffers the motion vector set for each prediction unit.

ステップS221〜S228の処理は、エンハンスメントレイヤの動き補償処理である。これら処理のうちステップS221〜S227の処理は、各エンハンスメントレイヤの各注目PUについて繰り返される。なお、以下の説明において、「上位レイヤ」は予測対象のレイヤであり、「下位レイヤ」は予測対象のレイヤの下位のレイヤである。   The processes in steps S221 to S228 are enhancement layer motion compensation processes. Among these processes, the processes of steps S221 to S227 are repeated for each attention PU of each enhancement layer. In the following description, “upper layer” is a prediction target layer, and “lower layer” is a lower layer of the prediction target layer.

まず、情報取得部291は、上位レイヤの1つのPUを注目PUとし、注目PUについての差分動きベクトル情報及びプレディクタ情報を符号化ストリームから取得する(ステップS221)。動きベクトル設定部292は、差分動きベクトル情報を復号する(ステップS222)。また、動きベクトル設定部292は、プレディクタ情報を用いて、注目PUの予測動きベクトルの生成の際に用いるべきプレディクタを特定する(ステップS223)。   First, the information acquisition unit 291 uses one PU in the upper layer as a target PU, and acquires differential motion vector information and predictor information for the target PU from the encoded stream (step S221). The motion vector setting unit 292 decodes the difference motion vector information (step S222). Also, the motion vector setting unit 292 uses the predictor information to identify a predictor to be used when generating the predicted motion vector of the attention PU (step S223).

次に、動きベクトル設定部292は、特定したプレディクタに従い、動きベクトルバッファ294によりバッファリングされている参照動きベクトルを用いて、注目PUについての予測動きベクトルを生成する(ステップS224)。例えば、特定したプレディクタがレイヤ間プレディクタである場合には、注目PUに対応する下位レイヤ内のPUについて設定された動きベクトルが、上述した式(8)又は式(9)の参照動きベクトルMVbaseとして使用される。次に、動きベクトル設定部292は、生成した予測動きベクトルに差分動きベクトルを加算することにより、動きベクトルを再構築する(ステップS225)。このように再構築された動きベクトルが、注目PUに設定される。また、再構築された動きベクトルは、上位レイヤでの処理のために、動きベクトルバッファ294に一時的に記憶される。なお、動きベクトルの予測が行われない予測単位については、差分動きベクトル情報の代わりに動きベクトル情報が符号化ストリームから取得され、当該動きベクトル情報から動きベクトルが復号されてよい。   Next, the motion vector setting unit 292 generates a predicted motion vector for the attention PU using the reference motion vector buffered by the motion vector buffer 294 in accordance with the specified predictor (step S224). For example, when the specified predictor is an inter-layer predictor, the motion vector set for the PU in the lower layer corresponding to the target PU is the reference motion vector MVbase of the above-described Expression (8) or Expression (9). used. Next, the motion vector setting unit 292 reconstructs the motion vector by adding the difference motion vector to the generated predicted motion vector (step S225). The motion vector reconstructed in this way is set as the attention PU. In addition, the reconstructed motion vector is temporarily stored in the motion vector buffer 294 for processing in an upper layer. Note that for a prediction unit in which a motion vector is not predicted, motion vector information may be acquired from the encoded stream instead of the difference motion vector information, and the motion vector may be decoded from the motion vector information.

次に、補償部295は、動きベクトル設定部292により注目PUに設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、注目PUの予測画像データを生成する(ステップS226)。   Next, the compensation unit 295 generates predicted image data of the attention PU using the motion vector set as the attention PU by the motion vector setting unit 292 and the reference image data input from the frame memory 69 (step S226). ).

その後、予測対象のレイヤ内に未処理のPUが残っている場合には、処理はステップS221に戻る(ステップS227)。一方、未処理のPUが残っていない場合には、さらに残りのレイヤ(より上位のレイヤ)が存在するかが判定される(ステップS228)。ここで、残りのレイヤが存在する場合には、それまでの予測対象のレイヤを下位レイヤ、次のレイヤを上位レイヤとして、ステップS221以降の処理が繰り返される。残りのレイヤが存在しない場合には、図21の動き補償処理は終了する。ここで生成された予測画像データは、スイッチ71を介して、加算部65へ出力され得る。   Thereafter, when an unprocessed PU remains in the prediction target layer, the process returns to step S221 (step S227). On the other hand, if there is no unprocessed PU remaining, it is determined whether or not there are remaining layers (higher layers) (step S228). Here, if there are remaining layers, the processing from step S221 onward is repeated with the previous prediction target layer as the lower layer and the next layer as the upper layer. If there are no remaining layers, the motion compensation process in FIG. 21 ends. The predicted image data generated here can be output to the adding unit 65 via the switch 71.

このように、第2の実施例では、上位レイヤの動き補償の際に使用される動きベクトルを、下位レイヤに設定された動きベクトルに基づくレイヤ間プレディクタに従って予測することができる。従って、動きベクトルの予測の精度が高められる結果、差分動きベクトルの符号量を削減することができる。   As described above, in the second embodiment, the motion vector used in the upper layer motion compensation can be predicted according to the inter-layer predictor based on the motion vector set in the lower layer. Therefore, the accuracy of motion vector prediction is improved, and as a result, the code amount of the difference motion vector can be reduced.

[4−3.第3の実施例]
図22は、第3の実施例に係る動き補償部90の詳細な構成の一例を示すブロック図である。図22を参照すると、動き補償部90は、情報取得部391、動きベクトル設定部392、マージ情報バッファ393、動きベクトルバッファ394及び補償部395を有する。
[4-3. Third Example]
FIG. 22 is a block diagram illustrating an example of a detailed configuration of the motion compensation unit 90 according to the third embodiment. Referring to FIG. 22, the motion compensation unit 90 includes an information acquisition unit 391, a motion vector setting unit 392, a merge information buffer 393, a motion vector buffer 394, and a compensation unit 395.

(1)ベースレイヤ
ベースレイヤの動き補償処理において、情報取得部391は、可逆復号部62により符号化ストリームから復号されるインター予測に関する情報を取得する。本実施例において、インター予測に関する情報は、マージ情報及び動きベクトル情報を含み得る。ここで取得されるマージ情報は、例えば、図12A〜図12Cを用いて説明したMergeFlag及びMergeLeftFlagを含み、複数のマージモードの候補のうち符号化の際に各予測単位について選択されたマージモードを示し得る。動きベクトル設定部392は、各予測単位に動きベクトルを設定する。そして、動きベクトル設定部392により各予測単位に設定された動きベクトルは、補償部395へ出力されると共に、動きベクトルバッファ394に記憶される。また、各予測単位についてのマージ情報は、上位レイヤでの処理のために、マージ情報バッファ393に記憶される。動きベクトル設定部392は、例えば、ある予測単位が当該予測単位に隣接する隣接予測単位とマージされること(これら予測単位に共通する動きベクトルが設定されること)をマージ情報が示している場合には、隣接予測単位に設定された動きベクトルを動きベクトルバッファ394から取得し、取得した動きベクトルを上記予測単位に設定する。一方、動きベクトル設定部392は、ある予測単位が他の予測単位とマージされないことをマージ情報が示している場合には、情報取得部391により取得された動きベクトル情報を復号することにより再構築される動きベクトルを上記予測単位に設定する。補償部395は、動きベクトル設定部392により各予測単位に設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、各予測単位の予測画像データを生成する。そして、補償部395は、生成した予測画像データをスイッチ71を介して加算部65へ出力する。
(1) Base Layer In the base layer motion compensation process, the information acquisition unit 391 acquires information on inter prediction decoded from the encoded stream by the lossless decoding unit 62. In the present embodiment, the information related to inter prediction may include merge information and motion vector information. The merge information acquired here includes, for example, the MergeFlag and the MergeLeftFlag described with reference to FIGS. 12A to 12C, and the merge mode selected for each prediction unit at the time of encoding among a plurality of merge mode candidates. Can show. The motion vector setting unit 392 sets a motion vector for each prediction unit. The motion vector set for each prediction unit by the motion vector setting unit 392 is output to the compensation unit 395 and stored in the motion vector buffer 394. The merge information for each prediction unit is stored in the merge information buffer 393 for processing in the upper layer. For example, when the merge information indicates that a certain prediction unit is merged with an adjacent prediction unit adjacent to the prediction unit (a motion vector common to these prediction units is set), the motion vector setting unit 392 First, the motion vector set as the adjacent prediction unit is acquired from the motion vector buffer 394, and the acquired motion vector is set as the prediction unit. On the other hand, when the merge information indicates that a certain prediction unit is not merged with other prediction units, the motion vector setting unit 392 reconstructs by decoding the motion vector information acquired by the information acquisition unit 391. The motion vector to be performed is set as the prediction unit. The compensation unit 395 generates predicted image data for each prediction unit using the motion vector set for each prediction unit by the motion vector setting unit 392 and the reference image data input from the frame memory 69. Then, the compensating unit 395 outputs the generated predicted image data to the adding unit 65 via the switch 71.

(2)エンハンスメントレイヤ
エンハンスメントレイヤの動き補償処理では、マージ情報バッファ393に記憶されている下位レイヤのマージ情報に従って、各予測単位に動きベクトルが設定される。
(2) Enhancement Layer In the enhancement layer motion compensation process, a motion vector is set for each prediction unit according to the lower layer merge information stored in the merge information buffer 393.

まず、情報取得部391は、上位レイヤ内の各予測単位に動きベクトルを設定するための設定情報として、各予測単位に対応する下位レイヤ内の予測単位についてのマージ情報を、マージ情報バッファ393から取得する。また、情報取得部391は、他の予測単位とマージされない予測単位について、インター予測に関する情報に含まれる動きベクトル情報を取得する。情報取得部391により取得されるマージ情報は、例えば、図12A〜図12Cを用いて説明したMergeFlag及びMergeLeftFlagを含み得る。動きベクトル設定部392は、情報取得部391により取得されたマージ情報に従って、各予測単位に動きベクトルを設定する。動きベクトル設定部392により各予測単位に設定された動きベクトルは、補償部395へ出力されると共に、動きベクトルバッファ394に記憶される。動きベクトル設定部392は、他の予測単位とマージされない予測単位については、動きベクトル情報を復号することにより再構築される動きベクトルを当該予測単位に設定してよい。補償部395は、動きベクトル設定部392により各予測単位に設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、各予測単位の予測画像データを生成する。そして、補償部395は、生成した予測画像データをスイッチ71を介して加算部65へ出力する。   First, the information acquisition unit 391 uses, as the setting information for setting a motion vector in each prediction unit in the upper layer, merge information about the prediction unit in the lower layer corresponding to each prediction unit from the merge information buffer 393. get. In addition, the information acquisition unit 391 acquires motion vector information included in the information related to inter prediction for prediction units that are not merged with other prediction units. The merge information acquired by the information acquisition unit 391 may include, for example, MergeFlag and MergeLeftFlag described with reference to FIGS. 12A to 12C. The motion vector setting unit 392 sets a motion vector for each prediction unit according to the merge information acquired by the information acquisition unit 391. The motion vector set for each prediction unit by the motion vector setting unit 392 is output to the compensation unit 395 and stored in the motion vector buffer 394. For a prediction unit that is not merged with another prediction unit, the motion vector setting unit 392 may set a motion vector reconstructed by decoding the motion vector information as the prediction unit. The compensation unit 395 generates predicted image data for each prediction unit using the motion vector set for each prediction unit by the motion vector setting unit 392 and the reference image data input from the frame memory 69. Then, the compensating unit 395 outputs the generated predicted image data to the adding unit 65 via the switch 71.

(3)処理の流れ
図23は、本実施例に係る動き補償部90による動き補償処理の流れの一例を示すフローチャートである。図23を参照すると。まず、動き補償部90は、ベースレイヤの動き補償処理を行う(ステップS230)。その際、マージ情報バッファ393は、各予測単位について符号化の際に選択されたマージモードを示すマージ情報を設定情報としてバッファリングする。
(3) Processing Flow FIG. 23 is a flowchart illustrating an example of the flow of motion compensation processing by the motion compensation unit 90 according to the present embodiment. Referring to FIG. First, the motion compensation unit 90 performs base layer motion compensation processing (step S230). At that time, the merge information buffer 393 buffers merge information indicating the merge mode selected at the time of encoding for each prediction unit as setting information.

ステップS231〜S238の処理は、エンハンスメントレイヤの動き補償処理である。これら処理のうちステップS231〜S237の処理は、各エンハンスメントレイヤの各注目PUについて繰り返される。なお、以下の説明において、「上位レイヤ」は予測対象のレイヤであり、「下位レイヤ」は予測対象のレイヤの下位のレイヤである。   The processing in steps S231 to S238 is enhancement layer motion compensation processing. Among these processes, the processes of steps S231 to S237 are repeated for each attention PU of each enhancement layer. In the following description, “upper layer” is a prediction target layer, and “lower layer” is a lower layer of the prediction target layer.

まず、情報取得部391は、上位レイヤの1つのPUを注目PUとし、注目PUに対応する下位レイヤ内のPUについてのマージ情報を、マージ情報バッファ393から取得する(ステップS231)。次に、情報取得部391は、取得したマージ情報から、注目PUを他のPUとマージするか否かを判定する(ステップS232)。例えば、下位レイヤ内の対応するPUが左の隣接PUとマージされる場合には、注目PUもまた左の隣接PUとマージされると判定され得る。同様に、下位レイヤ内の対応するPUが上の隣接PUとマージされる場合には、注目PUもまた上の隣接PUとマージされると判定され得る。これらの場合、処理はステップS233へ進む。一方、下位レイヤ内の対応するPUが隣接PUとマージされない場合には、注目PUもまた他のPUとマージされないと判定され得る。この場合、処理はステップS234へ進む。   First, the information acquisition unit 391 uses one PU in the upper layer as the attention PU, and acquires merge information about the PU in the lower layer corresponding to the attention PU from the merge information buffer 393 (step S231). Next, the information acquisition unit 391 determines whether or not the attention PU is merged with another PU from the acquired merge information (step S232). For example, if the corresponding PU in the lower layer is merged with the left adjacent PU, it can be determined that the attention PU is also merged with the left adjacent PU. Similarly, if the corresponding PU in the lower layer is merged with the upper neighboring PU, it can be determined that the attention PU is also merged with the upper neighboring PU. In these cases, the process proceeds to step S233. On the other hand, if the corresponding PU in the lower layer is not merged with the adjacent PU, it may be determined that the attention PU is not merged with other PUs. In this case, the process proceeds to step S234.

ステップS233では、動きベクトル設定部392は、マージ情報に応じて特定される動きベクトルを動きベクトルバッファ394から取得し、取得した動きベクトルを注目PUに設定する(ステップS233)。一方、ステップS234では、情報取得部391により、注目PUについての動きベクトル情報が取得される(ステップS234)。そして、動きベクトル設定部392は、取得された動きベクトル情報から動きベクトルを復号し、復号した動きベクトルを注目PUに設定する(ステップS235)。   In step S233, the motion vector setting unit 392 acquires the motion vector specified according to the merge information from the motion vector buffer 394, and sets the acquired motion vector as the attention PU (step S233). On the other hand, in step S234, the information acquisition unit 391 acquires motion vector information about the attention PU (step S234). Then, the motion vector setting unit 392 decodes the motion vector from the acquired motion vector information, and sets the decoded motion vector as the attention PU (step S235).

次に、補償部395は、動きベクトル設定部392により注目PUに設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、注目PUの予測画像データを生成する(ステップS236)。   Next, the compensation unit 395 generates predicted image data of the attention PU using the motion vector set to the attention PU by the motion vector setting unit 392 and the reference image data input from the frame memory 69 (step S236). ).

その後、予測対象のレイヤ内に未処理のPUが残っている場合には、処理はステップS231に戻る(ステップS237)。一方、未処理のPUが残っていない場合には、さらに残りのレイヤ(より上位のレイヤ)が存在するかが判定される(ステップS238)。ここで、残りのレイヤが存在する場合には、それまでの予測対象のレイヤを下位レイヤ、次のレイヤを上位レイヤとして、ステップS231以降の処理が繰り返される。下位レイヤについて選択されたマージモードを示すマージ情報は、マージ情報バッファ393により引き続きバッファリングされる。残りのレイヤが存在しない場合には、図23の動き補償処理は終了する。ここで生成された予測画像データは、スイッチ71を介して、加算部65へ出力され得る。   Thereafter, when an unprocessed PU remains in the prediction target layer, the process returns to step S231 (step S237). On the other hand, if there is no unprocessed PU remaining, it is determined whether or not there are remaining layers (higher layers) (step S238). Here, when there are remaining layers, the processing after step S231 is repeated with the previous prediction target layer as the lower layer and the next layer as the upper layer. Merge information indicating the merge mode selected for the lower layer is continuously buffered by the merge information buffer 393. If there is no remaining layer, the motion compensation process in FIG. 23 ends. The predicted image data generated here can be output to the adding unit 65 via the switch 71.

このように、第3の実施例では、上位レイヤの復号の際に下位レイヤのマージ情報が再利用されるため、上位レイヤのためにマージ情報を冗長的に符号化しなくてよい。従って、インター予測に関する情報の符号量を削減することができる。   As described above, in the third embodiment, since the merge information of the lower layer is reused when decoding the upper layer, the merge information need not be encoded redundantly for the upper layer. Therefore, it is possible to reduce the code amount of information related to inter prediction.

[4−4.第4の実施例]
図24は、第4の実施例に係る動き補償部90の詳細な構成の一例を示すブロック図である。図24を参照すると、動き補償部90は、情報取得部491、動きベクトル設定部492、動きベクトルバッファ494及び補償部495を有する。
[4-4. Fourth Example]
FIG. 24 is a block diagram illustrating an example of a detailed configuration of the motion compensation unit 90 according to the fourth embodiment. Referring to FIG. 24, the motion compensation unit 90 includes an information acquisition unit 491, a motion vector setting unit 492, a motion vector buffer 494, and a compensation unit 495.

(1)ベースレイヤ
ベースレイヤの動き補償処理において、情報取得部491は、可逆復号部62により符号化ストリームから復号されるインター予測に関する情報を取得する。本実施例において、インター予測に関する情報は、マージ情報及び動きベクトル情報を含み得る。ベースレイヤについて取得されるマージ情報は、例えば、図12A〜図12Cを用いて説明したMergeFlag及びMergeLeftFlagを含み、複数のマージモードの候補のうち符号化の際に各予測単位について選択されたマージモードを示し得る。動きベクトル設定部492は、各予測単位に動きベクトルを設定する。そして、動きベクトル設定部492により各予測単位に設定された動きベクトルは、補償部495へ出力されると共に、動きベクトルバッファ494に記憶される。動きベクトル設定部492は、例えば、ある予測単位が当該予測単位に隣接する隣接予測単位とマージされることをマージ情報が示している場合には、隣接予測単位に設定された動きベクトルを動きベクトルバッファ494から取得し、取得した動きベクトルを上記予測単位に設定する。一方、動きベクトル設定部492は、ある予測単位が他の予測単位とマージされないことをマージ情報が示している場合には、情報取得部491により取得された動きベクトル情報を復号することにより再構築される動きベクトルを上記予測単位に設定する。補償部495は、動きベクトル設定部492により各予測単位に設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、各予測単位の予測画像データを生成する。そして、補償部495は、生成した予測画像データをスイッチ71を介して加算部65へ出力する。
(1) Base Layer In the base layer motion compensation process, the information acquisition unit 491 acquires information on inter prediction decoded from the encoded stream by the lossless decoding unit 62. In the present embodiment, the information related to inter prediction may include merge information and motion vector information. The merge information acquired for the base layer includes, for example, MergeFlag and MergeLeftFlag described with reference to FIGS. 12A to 12C, and the merge mode selected for each prediction unit at the time of encoding among a plurality of merge mode candidates Can be shown. The motion vector setting unit 492 sets a motion vector for each prediction unit. The motion vector set for each prediction unit by the motion vector setting unit 492 is output to the compensation unit 495 and stored in the motion vector buffer 494. For example, when the merge information indicates that a certain prediction unit is merged with an adjacent prediction unit adjacent to the prediction unit, the motion vector setting unit 492 uses the motion vector set to the adjacent prediction unit as a motion vector. The motion vector acquired from the buffer 494 is set as the prediction unit. On the other hand, when the merge information indicates that a certain prediction unit is not merged with another prediction unit, the motion vector setting unit 492 reconstructs by decoding the motion vector information acquired by the information acquisition unit 491. The motion vector to be performed is set as the prediction unit. The compensation unit 495 generates predicted image data for each prediction unit using the motion vector set for each prediction unit by the motion vector setting unit 492 and the reference image data input from the frame memory 69. Then, the compensating unit 495 outputs the generated predicted image data to the adding unit 65 via the switch 71.

(2)エンハンスメントレイヤ
エンハンスメントレイヤの動き補償処理では、下位レイヤ内の対応する予測単位とのマージを示すMergeBaseFlagを含むマージ情報が利用され得る。
(2) Enhancement Layer In the enhancement layer motion compensation process, merge information including MergeBaseFlag indicating a merge with a corresponding prediction unit in the lower layer can be used.

まず、情報取得部491は、可逆復号部62により符号化ストリームから復号されるインター予測に関する情報を取得する。エンハンスメントレイヤについてのインター予測に関する情報は、マージ情報及び動きベクトル情報を含み得る。マージ情報は、例えば、図15A〜図15Cを用いて説明したMergeFlag、MergeBaseFlag及びMergeLeftFlagを含み、複数のマージモードの候補のうち符号化の際に各予測単位について選択されたマージモードを示し得る。動きベクトル設定部492は、情報取得部491により取得されたマージ情報に従って、各予測単位に動きベクトルを設定する。なお、動きベクトル設定部492は、レイヤ間で予測単位がマージされる場合には、上述した式(9)のように、バッファリングされている動きベクトルをレイヤ間の空間解像度の比率に応じて拡大した上で、拡大した動きベクトルを設定してよい。その際、動きベクトル設定部492は、拡大された動きベクトルを動きベクトル精度に応じて丸めてもよい。動きベクトル設定部492により各予測単位に設定された動きベクトルは、補償部495へ出力されると共に、動きベクトルバッファ494に記憶される。動きベクトル設定部492は、他の予測単位とマージされない予測単位については、動きベクトル情報を復号することにより再構築される動きベクトルを当該予測単位に設定してよい。補償部495は、動きベクトル設定部492により各予測単位に設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、各予測単位の予測画像データを生成する。そして、補償部495は、生成した予測画像データをスイッチ71を介して加算部65へ出力する。   First, the information acquisition unit 491 acquires information related to inter prediction decoded from the encoded stream by the lossless decoding unit 62. Information regarding inter prediction for the enhancement layer may include merge information and motion vector information. The merge information includes, for example, MergeFlag, MergeBaseFlag, and MergeLeftFlag described with reference to FIGS. 15A to 15C, and may indicate the merge mode selected for each prediction unit during encoding from among a plurality of merge mode candidates. The motion vector setting unit 492 sets a motion vector for each prediction unit according to the merge information acquired by the information acquisition unit 491. Note that, when prediction units are merged between layers, the motion vector setting unit 492 converts the buffered motion vector according to the spatial resolution ratio between layers as in Equation (9) described above. After enlarging, an enlarged motion vector may be set. At this time, the motion vector setting unit 492 may round the enlarged motion vector according to the motion vector accuracy. The motion vector set for each prediction unit by the motion vector setting unit 492 is output to the compensation unit 495 and stored in the motion vector buffer 494. For a prediction unit that is not merged with another prediction unit, the motion vector setting unit 492 may set a motion vector reconstructed by decoding the motion vector information as the prediction unit. The compensation unit 495 generates predicted image data for each prediction unit using the motion vector set for each prediction unit by the motion vector setting unit 492 and the reference image data input from the frame memory 69. Then, the compensating unit 495 outputs the generated predicted image data to the adding unit 65 via the switch 71.

(3)処理の流れ
図25は、本実施例に係る動き補償部90による動き補償処理の流れの一例を示すフローチャートである。図25を参照すると。まず、動き補償部90は、ベースレイヤの動き補償処理を行う(ステップS240)。その際、動きベクトルバッファ494は、各予測単位に設定された動きベクトルをバッファリングする。
(3) Processing Flow FIG. 25 is a flowchart illustrating an example of the flow of motion compensation processing by the motion compensation unit 90 according to the present embodiment. Referring to FIG. First, the motion compensation unit 90 performs base layer motion compensation processing (step S240). At that time, the motion vector buffer 494 buffers the motion vector set for each prediction unit.

ステップS241〜S248の処理は、エンハンスメントレイヤの動き補償処理である。これら処理のうちステップS241〜S247の処理は、各エンハンスメントレイヤの各注目PUについて繰り返される。なお、以下の説明において、「上位レイヤ」は予測対象のレイヤであり、「下位レイヤ」は予測対象のレイヤの下位のレイヤである。   The processing in steps S241 to S248 is enhancement layer motion compensation processing. Among these processes, the processes of steps S241 to S247 are repeated for each attention PU of each enhancement layer. In the following description, “upper layer” is a prediction target layer, and “lower layer” is a lower layer of the prediction target layer.

まず、情報取得部491は、上位レイヤの1つの注目PUについてのマージ情報を取得する(ステップS241)。次に、情報取得部491は、取得したマージ情報から、注目PUを他のPUとマージするか否かを判定する(ステップS242)。例えば、注目PUは、下位レイヤ内の対応するPU又は上位レイヤ内の隣接PUとマージされ得る。注目PUが他のPUとマージされる場合、処理はステップS243へ進む。一方、注目PUが他のPUとマージされない場合、処理はステップS244へ進む。   First, the information acquisition unit 491 acquires merge information for one attention PU of an upper layer (step S241). Next, the information acquisition unit 491 determines whether or not to merge the attention PU with another PU from the acquired merge information (step S242). For example, the attention PU may be merged with a corresponding PU in a lower layer or a neighboring PU in an upper layer. If the attention PU is merged with another PU, the process proceeds to step S243. On the other hand, when the attention PU is not merged with another PU, the process proceeds to step S244.

ステップS243では、動きベクトル設定部492は、マージ情報に応じて特定される動きベクトルを動きベクトルバッファ494から取得し、取得した動きベクトルを注目PUに設定する(ステップS243)。一方、ステップS244では、情報取得部491により、注目PUについての動きベクトル情報が取得される(ステップS244)。そして、動きベクトル設定部492は、取得された動きベクトル情報から動きベクトルを復号し、復号した動きベクトルを注目PUに設定する(ステップS245)。   In step S243, the motion vector setting unit 492 acquires the motion vector specified according to the merge information from the motion vector buffer 494, and sets the acquired motion vector as the attention PU (step S243). On the other hand, in step S244, the information acquisition unit 491 acquires motion vector information about the attention PU (step S244). Then, the motion vector setting unit 492 decodes the motion vector from the acquired motion vector information, and sets the decoded motion vector as the attention PU (step S245).

次に、補償部495は、動きベクトル設定部492により注目PUに設定された動きベクトルとフレームメモリ69から入力される参照画像データとを用いて、注目PUの予測画像データを生成する(ステップS246)。   Next, the compensation unit 495 generates predicted image data of the attention PU using the motion vector set to the attention PU by the motion vector setting unit 492 and the reference image data input from the frame memory 69 (step S246). ).

その後、予測対象のレイヤ内に未処理のPUが残っている場合には、処理はステップS241に戻る(ステップS247)。一方、未処理のPUが残っていない場合には、さらに残りのレイヤ(より上位のレイヤ)が存在するかが判定される(ステップS248)。ここで、残りのレイヤが存在する場合には、それまでの予測対象のレイヤを下位レイヤ、次のレイヤを上位レイヤとして、ステップS241以降の処理が繰り返される。下位レイヤの各予測単位に設定された動きベクトルは、動きベクトルバッファ494によりバッファリングされる。残りのレイヤが存在しない場合には、図25の動き補償処理は終了する。ここで生成された予測画像データは、スイッチ71を介して、加算部65へ出力され得る。   Thereafter, when an unprocessed PU remains in the prediction target layer, the process returns to step S241 (step S247). On the other hand, if no unprocessed PU remains, it is determined whether or not there is a remaining layer (higher layer) (step S248). Here, if there are remaining layers, the processes after step S241 are repeated with the previous prediction target layer as the lower layer and the next layer as the upper layer. The motion vector set for each prediction unit of the lower layer is buffered by the motion vector buffer 494. If there are no remaining layers, the motion compensation process in FIG. 25 ends. The predicted image data generated here can be output to the adding unit 65 via the switch 71.

このように、第4の実施例では、レイヤ間での予測単位のマージを含む複数のマージモードの候補から選択されたマージモードを示すマージ情報を用いて、エンハンスメントレイヤの各予測単位に動きベクトルが設定される。従って、動きの相関の顕著な下位レイヤ内の対応する予測単位とマージされる上位レイヤ内の予測単位については動きベクトルが符号化されないため、符号量を効果的に削減することができる。   Thus, in the fourth embodiment, a motion vector is used for each prediction unit of the enhancement layer using merge information indicating a merge mode selected from a plurality of merge mode candidates including a merge of prediction units between layers. Is set. Therefore, since the motion vector is not encoded for the prediction unit in the upper layer merged with the corresponding prediction unit in the lower layer where the correlation of the motion is significant, the code amount can be effectively reduced.

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

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

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

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

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

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

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

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

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

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

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

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

このように構成されたテレビジョン装置900において、デコーダ904は、上述した実施形態に係る画像復号装置60の機能を有する。従って、テレビジョン装置900での画像のスケーラブル復号に際してレイヤ間の動きの相関を活用することにより、符号化効率を一層高めることができる。   In the television device 900 configured as described above, the decoder 904 has the function of the image decoding device 60 according to the above-described embodiment. Therefore, encoding efficiency can be further improved by utilizing the correlation of motion between layers in scalable decoding of an image in the television apparatus 900.

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

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

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

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

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

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

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

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

このように構成された携帯電話機920において、画像処理部927は、上述した実施形態に係る画像符号化装置10及び画像復号装置60の機能を有する。従って、携帯電話機920での画像のスケーラブル符号化及び復号に際してレイヤ間の動きの相関を活用することにより、符号化効率を一層高めることができる。   In the mobile phone 920 configured as described above, the image processing unit 927 has the functions of the image encoding device 10 and the image decoding device 60 according to the above-described embodiment. Therefore, encoding efficiency can be further improved by utilizing the correlation of motion between layers in scalable encoding and decoding of an image with the mobile phone 920.

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

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

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

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

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

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

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

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

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

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

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

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

このように構成された記録再生装置940において、エンコーダ943は、上述した実施形態に係る画像符号化装置10の機能を有する。また、デコーダ947は、上述した実施形態に係る画像復号装置60の機能を有する。従って、記録再生装置940での画像のスケーラブル符号化及び復号に際してレイヤ間の動きの相関を活用することにより、符号化効率を一層高めることができる。   In the recording / reproducing apparatus 940 configured as described above, the encoder 943 has the function of the image encoding apparatus 10 according to the above-described embodiment. The decoder 947 has the function of the image decoding device 60 according to the above-described embodiment. Therefore, encoding efficiency can be further improved by utilizing the correlation of motion between layers in scalable encoding and decoding of an image in the recording / reproducing apparatus 940.

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

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

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

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

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

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

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

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

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

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

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

このように構成された撮像装置960において、画像処理部964は、上述した実施形態に係る画像符号化装置10及び画像復号装置60の機能を有する。従って、撮像装置960での画像のスケーラブル符号化及び復号に際してレイヤ間の動きの相関を活用することにより、符号化効率を一層高めることができる。   In the imaging device 960 configured as described above, the image processing unit 964 has the functions of the image encoding device 10 and the image decoding device 60 according to the above-described embodiment. Therefore, encoding efficiency can be further improved by utilizing the correlation of motion between layers in scalable encoding and decoding of an image in the imaging device 960.

<6.まとめ>
ここまで、図1〜図29を用いて、一実施形態に係る画像符号化装置10及び画像復号装置60の4つの実施例について説明した。これら実施例によれば、画像のスケーラブル符号化及び復号に際して、下位レイヤ内の第1の予測単位に対応する上位レイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、上記第1の予測単位に設定された動きベクトルに関連する設定情報を用いて、上記第2の予測単位に動きベクトルが設定される。従って、レイヤ間の動きの相関を活用して上位レイヤの各予測単位に動きベクトルを設定することが可能となる。よって、動きベクトル情報、差分動きベクトル情報、プレディクタ情報又はマージ情報の冗長な符号化が回避されるため、符号化効率を高めることができる。
<6. Summary>
Up to this point, the four examples of the image encoding device 10 and the image decoding device 60 according to an embodiment have been described with reference to FIGS. According to these embodiments, setting information for setting a motion vector in a second prediction unit in an upper layer corresponding to a first prediction unit in a lower layer upon scalable coding and decoding of an image is provided. A motion vector is set in the second prediction unit using setting information related to the motion vector set in the first prediction unit. Therefore, it is possible to set a motion vector for each prediction unit of the upper layer by utilizing the correlation of motion between layers. Therefore, since redundant encoding of motion vector information, difference motion vector information, predictor information, or merge information is avoided, encoding efficiency can be improved.

例えば、第1の実施例によれば、下位レイヤ内の予測単位の動きベクトルの予測の際に用いられるプレディクタを示すプレディクタ情報が、上位レイヤ内の予測単位の動きベクトルの予測の際に再利用される。従って、プレディクタ情報の冗長な符号化を回避することができる。   For example, according to the first embodiment, the predictor information indicating the predictor used when predicting the motion vector of the prediction unit in the lower layer is reused when the motion vector of the prediction unit in the upper layer is predicted. Is done. Therefore, redundant encoding of predictor information can be avoided.

また、例えば、第2の実施例によれば、上位レイヤ内の予測単位のための、下位レイヤ内の対応する予測単位に設定された動きベクトルに基づくレイヤ間プレディクタが、新たなプレディクタ候補として導入される。従って、上位レイヤ内の予測単位について動きベクトルの予測の精度を向上させ、差分動きベクトル情報の符号化に要する符号量を低減することができる。   Also, for example, according to the second embodiment, an inter-layer predictor based on a motion vector set for a corresponding prediction unit in the lower layer for a prediction unit in the upper layer is introduced as a new predictor candidate. Is done. Therefore, it is possible to improve the accuracy of motion vector prediction for the prediction unit in the upper layer, and to reduce the amount of code required for encoding the difference motion vector information.

また、例えば、第3の実施例によれば、下位レイヤ内の予測単位について選択されたマージモードを示すマージ情報が、上位レイヤ内の予測単位について再利用される。従って、マージ情報の冗長な符号化を回避することができる。   For example, according to the third embodiment, the merge information indicating the merge mode selected for the prediction unit in the lower layer is reused for the prediction unit in the upper layer. Therefore, redundant encoding of merge information can be avoided.

また、例えば、第4の実施例によれば、下位レイヤ内の対応する予測単位と上位レイヤ内の予測単位とをマージする新たなマージモードが導入される。従って、上位レイヤ内の予測単位について動きベクトル情報の冗長な符号化を回避することができる。   Further, for example, according to the fourth embodiment, a new merge mode for merging the corresponding prediction unit in the lower layer and the prediction unit in the upper layer is introduced. Therefore, redundant encoding of motion vector information can be avoided for prediction units in the upper layer.

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

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

なお、以下のような構成も本開示の技術的範囲に属する。
(1)
第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を取得する情報取得部と、
前記情報取得部により取得される前記設定情報を用いて、前記第2の予測単位に動きベクトルを設定する動きベクトル設定部と、
を備える画像処理装置。
(2)
前記設定情報は、前記第1の予測単位の動きベクトルの予測の際に用いられるプレディクタを示すプレディクタ情報を含み、
前記動きベクトル設定部は、前記プレディクタ情報により示される前記プレディクタを用いて、前記第2の予測単位に設定される動きベクトルを予測する、
前記(1)に記載の画像処理装置。
(3)
前記設定情報は、前記第2の予測単位の動きベクトルの予測の際に用いられるプレディクタを示すプレディクタ情報を含み、
前記プレディクタは、前記第1の予測単位に設定された動きベクトルに基づくプレディクタ候補を含む複数のプレディクタ候補から選択される、
前記(1)に記載の画像処理装置。
(4)
前記第1の予測単位に設定された動きベクトルに基づくプレディクタ候補には、前記複数のプレディクタ候補の中で最小の符号番号が割り当てられる、前記(3)に記載の画像処理装置。
(5)
前記情報取得部は、前記第2の予測単位に設定される動きベクトルと予測動きベクトルとの差分を示す差分動きベクトル情報をさらに取得し、
前記動きベクトル設定部は、前記プレディクタを用いて予測した前記予測動きベクトルに前記差分動きベクトル情報により示される差分を加算することにより生成される動きベクトルを、前記第2の予測単位に設定する、
前記(2)〜(4)のいずれか1項に記載の画像処理装置。
(6)
前記設定情報は、前記第1の予測単位と前記第1の予測単位に隣接する予測単位とに共通する動きベクトルが設定されるかを示すマージ情報を含み、
前記動きベクトル設定部は、前記マージ情報に従って、前記第2の予測単位と前記第2の予測単位に隣接する予測単位とに共通の動きベクトルを設定する、
前記(1)に記載の画像処理装置。
(7)
前記設定情報は、前記第1の予測単位と前記第2の予測単位とに共通する動きベクトルが設定されるかを示すマージ情報を含み、
前記動きベクトル設定部は、前記第1の予測単位と前記第2の予測単位とに共通する動きベクトルが設定されることを前記マージ情報が示している場合には、前記第1の予測単位と共通の動きベクトルを前記第2の予測単位に設定する、
前記(1)に記載の画像処理装置。
(8)
前記動きベクトル設定部は、前記第1のレイヤと前記第2のレイヤとの間の空間解像度の比率に応じて前記第1の予測単位に設定された動きベクトルを拡大した上で、前記第2の予測単位について動きベクトル設定処理を行う、前記(3)、4及び7のいずれか1項に記載の画像処理装置。
(9)
前記動きベクトル設定部は、前記第1の予測単位に設定された動きベクトルの拡大に際して、拡大された動きベクトルを動きベクトル精度に応じて丸める、前記(8)に記載の画像処理装置。
(10)
前記第1のレイヤ及び前記第2のレイヤは、空間解像度の互いに異なるレイヤである、前記(1)〜(7)のいずれか1項に記載の画像処理装置。
(11)
前記第1のレイヤ及び前記第2のレイヤは、雑音比率の互いに異なるレイヤである、前記(1)〜(7)のいずれか1項に記載の画像処理装置。
(12)
前記第1の予測単位は、前記第2の予測単位内の所定の位置の画素に対応する画素を有する、前記第1のレイヤ内の予測単位である、前記(1)〜(11)のいずれか1項に記載の画像処理装置。
(13)
前記第1の予測単位は、前記第2の予測単位と重なる前記第1のレイヤ内の予測単位のうち重なりの最も大きい予測単位である、前記(1)〜(11)のいずれか1項に記載の画像処理装置。
(14)
第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を取得することと、
取得された前記設定情報を用いて、前記第2の予測単位に動きベクトルを設定することと、
を含む画像処理方法。
(15)
第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を生成する情報生成部と、
前記情報生成部により生成される前記設定情報を符号化する符号化部と、
を備える画像処理装置。
(16)
第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を生成することと、
生成された前記設定情報を符号化することと、
を含む画像処理方法。
The following configurations also belong to the technical scope of the present disclosure.
(1)
A second in the second layer corresponding to a first prediction unit in the first layer of a scalable decoded image including a first layer and a second layer higher than the first layer. Setting information for setting a motion vector in the prediction unit, an information acquisition unit for acquiring the setting information related to the motion vector set in the first prediction unit;
A motion vector setting unit for setting a motion vector in the second prediction unit using the setting information acquired by the information acquisition unit;
An image processing apparatus comprising:
(2)
The setting information includes predictor information indicating a predictor used when predicting a motion vector of the first prediction unit,
The motion vector setting unit predicts a motion vector set in the second prediction unit using the predictor indicated by the predictor information.
The image processing apparatus according to (1).
(3)
The setting information includes predictor information indicating a predictor used when predicting a motion vector of the second prediction unit,
The predictor is selected from a plurality of predictor candidates including a predictor candidate based on a motion vector set in the first prediction unit.
The image processing apparatus according to (1).
(4)
The image processing apparatus according to (3), wherein a predictor candidate based on a motion vector set as the first prediction unit is assigned a minimum code number among the plurality of predictor candidates.
(5)
The information acquisition unit further acquires differential motion vector information indicating a difference between a motion vector set in the second prediction unit and a predicted motion vector;
The motion vector setting unit sets a motion vector generated by adding a difference indicated by the difference motion vector information to the predicted motion vector predicted using the predictor as the second prediction unit.
The image processing apparatus according to any one of (2) to (4).
(6)
The setting information includes merge information indicating whether a motion vector common to the first prediction unit and a prediction unit adjacent to the first prediction unit is set,
The motion vector setting unit sets a common motion vector for the second prediction unit and a prediction unit adjacent to the second prediction unit according to the merge information.
The image processing apparatus according to (1).
(7)
The setting information includes merge information indicating whether a motion vector common to the first prediction unit and the second prediction unit is set,
The motion vector setting unit, when the merge information indicates that a motion vector common to the first prediction unit and the second prediction unit is set, Setting a common motion vector as the second prediction unit;
The image processing apparatus according to (1).
(8)
The motion vector setting unit expands the motion vector set in the first prediction unit according to a spatial resolution ratio between the first layer and the second layer, and then The image processing apparatus according to any one of (3), 4 and 7, wherein a motion vector setting process is performed for each prediction unit.
(9)
The image processing device according to (8), wherein the motion vector setting unit rounds the expanded motion vector according to motion vector accuracy when the motion vector set in the first prediction unit is expanded.
(10)
The image processing apparatus according to any one of (1) to (7), wherein the first layer and the second layer are layers having different spatial resolutions.
(11)
The image processing device according to any one of (1) to (7), wherein the first layer and the second layer are layers having different noise ratios.
(12)
Any of (1) to (11), wherein the first prediction unit is a prediction unit in the first layer having a pixel corresponding to a pixel at a predetermined position in the second prediction unit. The image processing apparatus according to claim 1.
(13)
In any one of (1) to (11), the first prediction unit is a prediction unit having the largest overlap among prediction units in the first layer overlapping the second prediction unit. The image processing apparatus described.
(14)
A second in the second layer corresponding to a first prediction unit in the first layer of a scalable decoded image including a first layer and a second layer higher than the first layer. Setting information for setting a motion vector in the prediction unit, and acquiring the setting information related to the motion vector set in the first prediction unit;
Using the acquired setting information to set a motion vector in the second prediction unit;
An image processing method including:
(15)
A second in the second layer corresponding to a first prediction unit in the first layer of a scalable decoded image including a first layer and a second layer higher than the first layer. Setting information for setting a motion vector in the prediction unit, and an information generation unit that generates the setting information related to the motion vector set in the first prediction unit;
An encoding unit that encodes the setting information generated by the information generation unit;
An image processing apparatus comprising:
(16)
A second in the second layer corresponding to a first prediction unit in the first layer of a scalable decoded image including a first layer and a second layer higher than the first layer. Generating setting information related to the motion vector set in the first prediction unit, which is setting information for setting a motion vector in the prediction unit of
Encoding the generated setting information;
An image processing method including:

10 画像符号化装置(画像処理装置)
146,246,346,446 情報生成部
16 符号化部
60 画像復号装置(画像処理装置)
191,291,391,491 情報取得部
192,246,392,492 動きベクトル設定部
10 Image encoding device (image processing device)
146, 246, 346, 446 Information generation unit 16 Encoding unit 60 Image decoding device (image processing device)
191,291,391,491 Information acquisition unit 192,246,392,492 Motion vector setting unit

Claims (16)

第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を取得する情報取得部と、
前記情報取得部により取得される前記設定情報を用いて、前記第2の予測単位に動きベクトルを設定する動きベクトル設定部と、
を備える画像処理装置。
A second in the second layer corresponding to a first prediction unit in the first layer of a scalable decoded image including a first layer and a second layer higher than the first layer. Setting information for setting a motion vector in the prediction unit, an information acquisition unit for acquiring the setting information related to the motion vector set in the first prediction unit;
A motion vector setting unit for setting a motion vector in the second prediction unit using the setting information acquired by the information acquisition unit;
An image processing apparatus comprising:
前記設定情報は、前記第1の予測単位の動きベクトルの予測の際に用いられるプレディクタを示すプレディクタ情報を含み、
前記動きベクトル設定部は、前記プレディクタ情報により示される前記プレディクタを用いて、前記第2の予測単位に設定される動きベクトルを予測する、
請求項1に記載の画像処理装置。
The setting information includes predictor information indicating a predictor used when predicting a motion vector of the first prediction unit,
The motion vector setting unit predicts a motion vector set in the second prediction unit using the predictor indicated by the predictor information.
The image processing apparatus according to claim 1.
前記設定情報は、前記第2の予測単位の動きベクトルの予測の際に用いられるプレディクタを示すプレディクタ情報を含み、
前記プレディクタは、前記第1の予測単位に設定された動きベクトルに基づくプレディクタ候補を含む複数のプレディクタ候補から選択される、
請求項1に記載の画像処理装置。
The setting information includes predictor information indicating a predictor used when predicting a motion vector of the second prediction unit,
The predictor is selected from a plurality of predictor candidates including a predictor candidate based on a motion vector set in the first prediction unit.
The image processing apparatus according to claim 1.
前記第1の予測単位に設定された動きベクトルに基づくプレディクタ候補には、前記複数のプレディクタ候補の中で最小の符号番号が割り当てられる、請求項3に記載の画像処理装置。   The image processing apparatus according to claim 3, wherein a predictor candidate based on a motion vector set as the first prediction unit is assigned a minimum code number among the plurality of predictor candidates. 前記情報取得部は、前記第2の予測単位に設定される動きベクトルと予測動きベクトルとの差分を示す差分動きベクトル情報をさらに取得し、
前記動きベクトル設定部は、前記プレディクタを用いて予測した前記予測動きベクトルに前記差分動きベクトル情報により示される差分を加算することにより生成される動きベクトルを、前記第2の予測単位に設定する、
請求項2に記載の画像処理装置。
The information acquisition unit further acquires differential motion vector information indicating a difference between a motion vector set in the second prediction unit and a predicted motion vector;
The motion vector setting unit sets a motion vector generated by adding a difference indicated by the difference motion vector information to the predicted motion vector predicted using the predictor as the second prediction unit.
The image processing apparatus according to claim 2.
前記設定情報は、前記第1の予測単位と前記第1の予測単位に隣接する予測単位とに共通する動きベクトルが設定されるかを示すマージ情報を含み、
前記動きベクトル設定部は、前記マージ情報に従って、前記第2の予測単位と前記第2の予測単位に隣接する予測単位とに共通の動きベクトルを設定する、
請求項1に記載の画像処理装置。
The setting information includes merge information indicating whether a motion vector common to the first prediction unit and a prediction unit adjacent to the first prediction unit is set,
The motion vector setting unit sets a common motion vector for the second prediction unit and a prediction unit adjacent to the second prediction unit according to the merge information.
The image processing apparatus according to claim 1.
前記設定情報は、前記第1の予測単位と前記第2の予測単位とに共通する動きベクトルが設定されるかを示すマージ情報を含み、
前記動きベクトル設定部は、前記第1の予測単位と前記第2の予測単位とに共通する動きベクトルが設定されることを前記マージ情報が示している場合には、前記第1の予測単位と共通の動きベクトルを前記第2の予測単位に設定する、
請求項1に記載の画像処理装置。
The setting information includes merge information indicating whether a motion vector common to the first prediction unit and the second prediction unit is set,
The motion vector setting unit, when the merge information indicates that a motion vector common to the first prediction unit and the second prediction unit is set, Setting a common motion vector as the second prediction unit;
The image processing apparatus according to claim 1.
前記動きベクトル設定部は、前記第1のレイヤと前記第2のレイヤとの間の空間解像度の比率に応じて前記第1の予測単位に設定された動きベクトルを拡大した上で、前記第2の予測単位について動きベクトル設定処理を行う、請求項3に記載の画像処理装置。   The motion vector setting unit expands the motion vector set in the first prediction unit according to a spatial resolution ratio between the first layer and the second layer, and then The image processing apparatus according to claim 3, wherein a motion vector setting process is performed for each prediction unit. 前記動きベクトル設定部は、前記第1の予測単位に設定された動きベクトルの拡大に際して、拡大された動きベクトルを動きベクトル精度に応じて丸める、請求項8に記載の画像処理装置。   The image processing apparatus according to claim 8, wherein the motion vector setting unit rounds the expanded motion vector according to motion vector accuracy when the motion vector set in the first prediction unit is expanded. 前記第1のレイヤ及び前記第2のレイヤは、空間解像度の互いに異なるレイヤである、請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the first layer and the second layer are layers having different spatial resolutions. 前記第1のレイヤ及び前記第2のレイヤは、雑音比率の互いに異なるレイヤである、請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the first layer and the second layer are layers having different noise ratios. 前記第1の予測単位は、前記第2の予測単位内の所定の位置の画素に対応する画素を有する、前記第1のレイヤ内の予測単位である、請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the first prediction unit is a prediction unit in the first layer having a pixel corresponding to a pixel at a predetermined position in the second prediction unit. 前記第1の予測単位は、前記第2の予測単位と重なる前記第1のレイヤ内の予測単位のうち重なりの最も大きい予測単位である、請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the first prediction unit is a prediction unit having the largest overlap among prediction units in the first layer that overlap with the second prediction unit. 第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を取得することと、
取得された前記設定情報を用いて、前記第2の予測単位に動きベクトルを設定することと、
を含む画像処理方法。
A second in the second layer corresponding to a first prediction unit in the first layer of a scalable decoded image including a first layer and a second layer higher than the first layer. Setting information for setting a motion vector in the prediction unit, and acquiring the setting information related to the motion vector set in the first prediction unit;
Using the acquired setting information to set a motion vector in the second prediction unit;
An image processing method including:
第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を生成する情報生成部と、
前記情報生成部により生成される前記設定情報を符号化する符号化部と、
を備える画像処理装置。
A second in the second layer corresponding to a first prediction unit in the first layer of a scalable decoded image including a first layer and a second layer higher than the first layer. Setting information for setting a motion vector in the prediction unit, and an information generation unit that generates the setting information related to the motion vector set in the first prediction unit;
An encoding unit that encodes the setting information generated by the information generation unit;
An image processing apparatus comprising:
第1のレイヤ及び前記第1のレイヤよりも上位の第2のレイヤを含むスケーラブル復号される画像の前記第1のレイヤ内の第1の予測単位に対応する前記第2のレイヤ内の第2の予測単位に動きベクトルを設定するための設定情報であって、前記第1の予測単位に設定された動きベクトルに関連する前記設定情報を生成することと、
生成された前記設定情報を符号化することと、
を含む画像処理方法。
A second in the second layer corresponding to a first prediction unit in the first layer of a scalable decoded image including a first layer and a second layer higher than the first layer. Generating setting information related to the motion vector set in the first prediction unit, which is setting information for setting a motion vector in the prediction unit of
Encoding the generated setting information;
An image processing method including:
JP2015212445A 2015-10-29 2015-10-29 Image processing apparatus and image processing method Active JP6048564B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015212445A JP6048564B2 (en) 2015-10-29 2015-10-29 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015212445A JP6048564B2 (en) 2015-10-29 2015-10-29 Image processing apparatus and image processing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2011155414A Division JP5830993B2 (en) 2011-07-14 2011-07-14 Image processing apparatus and image processing method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2016226631A Division JP6265249B2 (en) 2016-11-22 2016-11-22 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2016042717A true JP2016042717A (en) 2016-03-31
JP6048564B2 JP6048564B2 (en) 2016-12-21

Family

ID=55592250

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015212445A Active JP6048564B2 (en) 2015-10-29 2015-10-29 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP6048564B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060088101A1 (en) * 2004-10-21 2006-04-27 Samsung Electronics Co., Ltd. Method and apparatus for effectively compressing motion vectors in video coder based on multi-layer
JP2006121701A (en) * 2004-10-21 2006-05-11 Samsung Electronics Co Ltd Method and device for efficiently compressing motion vector with video coder of multilayer base
US20060153300A1 (en) * 2005-01-12 2006-07-13 Nokia Corporation Method and system for motion vector prediction in scalable video coding
JP2007174569A (en) * 2005-12-26 2007-07-05 Sanyo Electric Co Ltd Encoding method
JP2008535424A (en) * 2005-04-06 2008-08-28 トムソン ライセンシング Method and apparatus for encoding enhancement layer video data
JP2008536440A (en) * 2005-04-15 2008-09-04 エルジー エレクトロニクス インコーポレーテッド Scalable encoding and decoding methods for video signals
WO2012167712A1 (en) * 2011-06-10 2012-12-13 Mediatek Inc. Method and apparatus of scalable video coding

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060088101A1 (en) * 2004-10-21 2006-04-27 Samsung Electronics Co., Ltd. Method and apparatus for effectively compressing motion vectors in video coder based on multi-layer
JP2006121701A (en) * 2004-10-21 2006-05-11 Samsung Electronics Co Ltd Method and device for efficiently compressing motion vector with video coder of multilayer base
US20060153300A1 (en) * 2005-01-12 2006-07-13 Nokia Corporation Method and system for motion vector prediction in scalable video coding
JP2008535424A (en) * 2005-04-06 2008-08-28 トムソン ライセンシング Method and apparatus for encoding enhancement layer video data
JP2008536440A (en) * 2005-04-15 2008-09-04 エルジー エレクトロニクス インコーポレーテッド Scalable encoding and decoding methods for video signals
JP2007174569A (en) * 2005-12-26 2007-07-05 Sanyo Electric Co Ltd Encoding method
WO2012167712A1 (en) * 2011-06-10 2012-12-13 Mediatek Inc. Method and apparatus of scalable video coding

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JPN6013044365; Danny Hong et al.: 'Scalability Support in HEVC' Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11 JCTVC-F290r1, 201107, pp.1-15, 6th Meeting: Torino, IT *

Also Published As

Publication number Publication date
JP6048564B2 (en) 2016-12-21

Similar Documents

Publication Publication Date Title
JP5830993B2 (en) Image processing apparatus and image processing method
US10499057B2 (en) Image processing device and image processing method
TWI620433B (en) Image processing device and method
JP5810700B2 (en) Image processing apparatus and image processing method
WO2012008270A1 (en) Image processing apparatus and image processing method
JP2013141187A (en) Image processing apparatus and image processing method
WO2017094298A1 (en) Image processing apparatus, image processing method, and program
WO2013164922A1 (en) Image processing device and image processing method
US20130259129A1 (en) Image processing device and method
WO2013001939A1 (en) Image processing device and image processing method
WO2013088833A1 (en) Image processing device and image processing method
US20130279586A1 (en) Image processing device and image processing method
WO2014038330A1 (en) Image processing device and image processing method
JP6265249B2 (en) Image processing apparatus and image processing method
JP6048564B2 (en) Image processing apparatus and image processing method
WO2014097703A1 (en) Image processing device and image processing method
US20160037184A1 (en) Image processing device and method
JP2012195815A (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161019

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161107

R151 Written notification of patent or utility model registration

Ref document number: 6048564

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250