Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7664546B2 - Image decoding device, image encoding device, and bitstream generating device - Google Patents
[go: Go Back, main page]

JP7664546B2 - Image decoding device, image encoding device, and bitstream generating device - Google Patents

Image decoding device, image encoding device, and bitstream generating device Download PDF

Info

Publication number
JP7664546B2
JP7664546B2 JP2024029938A JP2024029938A JP7664546B2 JP 7664546 B2 JP7664546 B2 JP 7664546B2 JP 2024029938 A JP2024029938 A JP 2024029938A JP 2024029938 A JP2024029938 A JP 2024029938A JP 7664546 B2 JP7664546 B2 JP 7664546B2
Authority
JP
Japan
Prior art keywords
unit
component
information
motion information
image
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.)
Active
Application number
JP2024029938A
Other languages
Japanese (ja)
Other versions
JP2024059908A (en
Inventor
哲史 吉川
寿郎 笹井
健吾 寺田
Original Assignee
サン パテント トラスト
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
Priority claimed from JP2019193580A external-priority patent/JP6910019B2/en
Application filed by サン パテント トラスト filed Critical サン パテント トラスト
Publication of JP2024059908A publication Critical patent/JP2024059908A/en
Priority to JP2025051129A priority Critical patent/JP2025102849A/en
Application granted granted Critical
Publication of JP7664546B2 publication Critical patent/JP7664546B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、画像符号化方法及び画像復号方法に関する。 The present invention relates to an image encoding method and an image decoding method.

最新の動画像符号化標準規格であるHEVC(High Efficiency Video Coding)規格では、符号化効率を向上させるために様々な検討がされている(例えば、非特許文献1参照)。この方式は、従来H.26xで示されるITU-T(国際電気通信連合電気通信標準化部門)規格、及び、MPEG-xで示されるISO/IEC規格であり、H.264/AVC、又はMPEG-4 AVCで示される規格の次の映像符号化規格として検討された。 In the latest video coding standard, the High Efficiency Video Coding (HEVC) standard, various studies have been conducted to improve coding efficiency (for example, see Non-Patent Document 1). This method is an ITU-T (International Telecommunication Union Telecommunication Standardization Sector) standard previously designated H.26x, and an ISO/IEC standard designated MPEG-x, and was considered as the next video coding standard after the standard designated H.264/AVC or MPEG-4 AVC.

特許第3654664号公報Patent No. 3654664

Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 12th Meeting: Geneva, CH, 14-23 Jan. 2013 JCTVC-L1003_v34 Title: High Efficiency Video Coding (HEVC) text specification draft 10 (for FDIS & Last Call) http://phenix.int-evry.fr/jct/doc_end_user/documents/12_Geneva/wg11/JCTVC-L1003-v34.zipJoint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 12th Meeting: Geneva, CH, 14-23 Jan. 2013 JCTVC-L1003_v34 Title: High Efficiency Video Coding (HEVC) text specification draft 10 (for FDIS & Last Call) http://phenix. int-evry. fr/jct/doc_end_user/documents/12_Geneva/wg11/JCTVC-L1003-v34. zip 荒川拓ら著、「アフィン変換を用いた動き補償予測の高速化」映像メディア学会誌:映像情報メディアVol.51 No.7、1997年7月20日、P.1114-1117"High-speed motion compensation prediction using affine transformation" by Taku Arakawa et al., Journal of the Institute of Visual Media: Visual Information Media Vol. 51, No. 7, July 20, 1997, pp. 1114-1117

このような、画像符号化方法及び画像復号方法では、符号化効率を向上することが望まれている。 In such image encoding and decoding methods, it is desirable to improve the encoding efficiency.

そこで本発明は、符号化効率を向上できる画像符号化方法又は画像復号方法を提供することを目的とする。 The present invention aims to provide an image encoding method or image decoding method that can improve encoding efficiency.

本発明の一態様に係る画像復号装置は、処理回路と、前記処理回路からアクセス可能な記憶装置とを備え、前記処理回路は、前記記憶装置を用いて、シーケンスに含まれる複数のブロックに適用される情報であって、アフィン変換に基づく予測において、予測に用いられるパラメータの数の決定に用いられる情報をビットストリームから復号し、前記情報に基づいて選択された数のパラメータを用いたアフィン変換に基づく予測を行うことで、前記シーケンスに含まれる前記複数のブロックのそれぞれの予測画像を生成し、前記予測に用いられるパラメータの数の候補は、4と6を含む。 An image decoding device according to one aspect of the present invention includes a processing circuit and a storage device accessible from the processing circuit, and the processing circuit uses the storage device to decode, from a bitstream, information that is applied to a plurality of blocks included in a sequence and is used to determine the number of parameters to be used in prediction based on an affine transformation, and generates a predicted image for each of the plurality of blocks included in the sequence by performing prediction based on an affine transformation using a number of parameters selected based on the information, and candidates for the number of parameters to be used in the prediction include 4 and 6.

また、本発明の一態様に係る画像符号化装置は、処理回路と、前記処理回路からアクセス可能な記憶装置とを備え、前記処理回路は、前記記憶装置を用いて、アフィン変換に基づく予測において、予測に用いられるパラメータの数を決定し、決定した数のパラメータを用いたアフィン変換に基づく予測を行うことで、シーケンスに含まれる複数のブロックのそれぞれの予測画像を生成し、前記シーケンスに含まれる前記複数のブロックに適用される情報であって、前記パラメータの数の決定に用いられる情報を符号化し、前記予測に用いられるパラメータの数の候補は、4と6を含む。 An image coding device according to one aspect of the present invention includes a processing circuit and a storage device accessible from the processing circuit, the processing circuit uses the storage device to determine the number of parameters to be used in prediction based on an affine transformation, and generates a predicted image for each of a plurality of blocks included in a sequence by performing prediction based on an affine transformation using the determined number of parameters, and encodes information to be applied to the plurality of blocks included in the sequence and used to determine the number of parameters, and candidates for the number of parameters to be used in the prediction include 4 and 6.

なお、これらの全般的または具体的な態様は、システム、方法、集積回路、コンピュータプログラムまたはコンピュータ読み取り可能なCD-ROM(Compact Disc Read Only Memory)などの記録媒体で実現されてもよく、システム、方法、集積回路、コンピュータプログラム及び記録媒体の任意な組み合わせで実現されてもよい。 These general or specific aspects may be realized by a system, a method, an integrated circuit, a computer program, or a computer-readable recording medium such as a compact disc read-only memory (CD-ROM), or by any combination of a system, a method, an integrated circuit, a computer program, and a recording medium.

本発明は、符号化効率を向上できる画像符号化方法又は画像復号方法を提供できる。 The present invention provides an image encoding method or image decoding method that can improve encoding efficiency.

図1は、実施の形態1における画像符号化装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of an image coding device according to a first embodiment. 図2は、実施の形態1における画像符号化装置の処理動作を示すフローチャートである。FIG. 2 is a flowchart showing the processing operation of the image coding apparatus according to the first embodiment. 図3は、実施の形態1における予測ブロック生成処理の一例を示すフローチャートである。FIG. 3 is a flowchart showing an example of the predicted block generation process according to the first embodiment. 図4は、実施の形態1におけるインター予測部の構成の一例を示すブロック図である。FIG. 4 is a block diagram showing an example of a configuration of the inter prediction unit in the first embodiment. 図5は、実施の形態1におけるインター予測処理の一例を示すフローチャートである。FIG. 5 is a flowchart showing an example of the inter prediction process according to the first embodiment. 図6は、実施の形態1における、非平行移動モデルを用いた動き情報を説明するための図である。FIG. 6 is a diagram for explaining motion information using a non-translation model in the first embodiment. 図7は、実施の形態1における動き情報の変換成分選択処理の一例を示すフローチャートである。FIG. 7 is a flowchart showing an example of a transformation component selection process for motion information according to the first embodiment. 図8は、実施の形態1における動き成分を利用した変換成分選択処理の一例を示すフローチャートである。FIG. 8 is a flowchart showing an example of a transformation component selection process using a movement component according to the first embodiment. 図9は、実施の形態1における予測ブロックサイズを利用した変換成分選択処理の一例を示すフローチャートである。FIG. 9 is a flowchart showing an example of a transform component selection process using a prediction block size according to the first embodiment. 図10は、実施の形態1における差分動き情報算出処理の一例を示すフローチャートである。FIG. 10 is a flowchart showing an example of the residual motion information calculation process according to the first embodiment. 図11は、実施の形態1における差分平行移動成分の算出処理の一例を示すフローチャートである。FIG. 11 is a flowchart illustrating an example of a process for calculating a residual translation component according to the first embodiment. 図12は、実施の形態1における差分回転成分の算出処理の一例を示すフローチャートである。FIG. 12 is a flowchart illustrating an example of a process for calculating a residual rotation component according to the first embodiment. 図13は、実施の形態1における差分拡大縮小成分の算出処理の一例を示すフローチャートである。FIG. 13 is a flowchart illustrating an example of a process for calculating residual scaling components according to the first embodiment. 図14は、実施の形態1における差分せん断成分の算出処理の一例を示すフローチャートである。FIG. 14 is a flowchart illustrating an example of a process for calculating a differential shear component according to the first embodiment. 図15は、実施の形態1における動き情報の一例を示す図である。FIG. 15 is a diagram showing an example of motion information according to the first embodiment. 図16は、実施の形態1における動き情報の一例を示す図である。FIG. 16 is a diagram showing an example of motion information according to the first embodiment. 図17は、実施の形態2における符号レベルの一例を示す図である。FIG. 17 is a diagram showing an example of code levels according to the second embodiment. In FIG. 図18は、実施の形態2における動き情報の一例を示す図である。FIG. 18 is a diagram showing an example of motion information according to the second embodiment. 図19は、実施の形態2における動き情報の一例を示す図である。FIG. 19 is a diagram showing an example of motion information according to the second embodiment. 図20は、実施の形態4における画像復号装置の構成を示すブロック図である。FIG. 20 is a block diagram showing a configuration of an image decoding apparatus in the fourth embodiment. 図21は、実施の形態4における画像復号装置の処理動作を示すフローチャートである。FIG. 21 is a flowchart showing the processing operation of the image decoding apparatus in the fourth embodiment. 図22は、実施の形態4における動き情報復号処理の一例を示すフローチャートである。FIG. 22 is a flowchart showing an example of the motion information decoding process according to the fourth embodiment. 図23は、実施の形態4における差分動き情報の復号処理の一例を示すフローチャートである。FIG. 23 is a flowchart showing an example of a process of decoding residual motion information in the fourth embodiment. 図24は、実施の形態4における動き情報の生成処理の一例を示すフローチャートである。FIG. 24 is a flowchart showing an example of a motion information generation process according to the fourth embodiment. 図25は、実施の形態4における平行移動成分の生成処理の一例を示すフローチャートである。FIG. 25 is a flowchart illustrating an example of a process for generating translation components according to the fourth embodiment. 図26は、実施の形態4における回転成分の生成処理の一例を示すフローチャートである。FIG. 26 is a flowchart illustrating an example of a rotation component generation process according to the fourth embodiment. 図27は、実施の形態4における拡大縮小成分の生成処理の一例を示すフローチャートである。FIG. 27 is a flowchart showing an example of a process of generating scaling components according to the fourth embodiment. 図28は、実施の形態4におけるせん断成分の生成処理の一例を示すフローチャートである。FIG. 28 is a flowchart showing an example of a process for generating a shear component according to the fourth embodiment. 図29は、実施の形態5におけるイントラ予測処理を説明するための図である。FIG. 29 is a diagram for explaining the intra prediction process in the fifth embodiment. 図30は、実施の形態5におけるイントラ予測処理を説明するための図である。FIG. 30 is a diagram for explaining the intra prediction process in the fifth embodiment. 図31は、実施の形態における画像符号化方法のフローチャートである。FIG. 31 is a flowchart of an image coding method according to an embodiment. 図32は、実施の形態における画像復号方法のフローチャートである。FIG. 32 is a flowchart of an image decoding method according to an embodiment. 図33は、コンテンツ配信サービスを実現するコンテンツ供給システムの全体構成図である。FIG. 33 is a diagram showing the overall configuration of a content supply system that realizes a content distribution service. 図34は、デジタル放送用システムの全体構成図である。FIG. 34 is a diagram showing the overall configuration of a digital broadcasting system. 図35は、テレビの構成例を示すブロック図である。FIG. 35 is a block diagram showing an example of the configuration of a television. 図36は、光ディスクである記録メディアに情報の読み書きを行う情報再生/記録部の構成例を示すブロック図である。FIG. 36 is a block diagram showing an example of the configuration of an information reproducing/recording unit that reads and writes information from and to a recording medium that is an optical disk. 図37は、光ディスクである記録メディアの構造例を示す図である。FIG. 37 is a diagram showing an example of the structure of a recording medium which is an optical disc. 図38Aは、携帯電話の一例を示す図である。FIG. 38A is a diagram showing an example of a mobile phone. 図38Bは、携帯電話の構成例を示すブロック図である。FIG. 38B is a block diagram showing an example of the configuration of a mobile phone. 図39は、多重化データの構成を示す図である。FIG. 39 is a diagram showing a structure of multiplexed data. 図40は、各ストリームが多重化データにおいてどのように多重化されているかを模式的に示す図である。FIG. 40 is a diagram showing a schematic diagram of how each stream is multiplexed in multiplexed data. 図41は、PESパケット列に、ビデオストリームがどのように格納されるかを更に詳しく示した図である。FIG. 41 is a diagram showing in more detail how a video stream is stored in a PES packet sequence. 図42は、多重化データにおけるTSパケットとソースパケットの構造を示す図である。FIG. 42 shows the structure of TS packets and source packets in multiplexed data. 図43は、PMTのデータ構成を示す図である。FIG. 43 shows the data structure of a PMT. 図44は、多重化データ情報の内部構成を示す図である。FIG. 44 is a diagram showing the internal structure of the multiplexed data information. 図45は、ストリーム属性情報の内部構成を示す図である。FIG. 45 shows the internal structure of the stream attribute information. 図46は、映像データを識別するステップを示す図である。FIG. 46 shows the steps of identifying video data. 図47は、各実施の形態の動画像符号化方法および動画像復号化方法を実現する集積回路の構成例を示すブロック図である。FIG. 47 is a block diagram showing an example of the configuration of an integrated circuit that realizes the moving picture coding method and the moving picture decoding method according to each embodiment. 図48は、駆動周波数を切り替える構成を示す図である。FIG. 48 is a diagram showing a configuration for switching the drive frequency. 図49は、映像データを識別し、駆動周波数を切り替えるステップを示す図である。FIG. 49 is a diagram showing steps of identifying video data and switching the drive frequency. 図50は、映像データの規格と駆動周波数を対応づけたルックアップテーブルの一例を示す図である。FIG. 50 is a diagram showing an example of a lookup table in which video data standards correspond to drive frequencies. 図51Aは、信号処理部のモジュールを共有化する構成の一例を示す図である。FIG. 51A is a diagram showing an example of a configuration in which modules of a signal processing unit are shared. 図51Bは、信号処理部のモジュールを共有化する構成の他の一例を示す図である。FIG. 51B is a diagram showing another example of a configuration in which modules of a signal processing unit are shared.

(発明の基礎となった知見)
従来の画像符号化方式においては、動き情報として平行移動に関する情報のみが利用されている。
(Knowledge that formed the basis of the invention)
In conventional image coding methods, only information relating to translation is used as motion information.

しかし撮影された動画像において、カメラのズーム操作による拡大縮小又は被写体の回転などの動きが存在する場合に、平行移動のみでは動きを適切に表現できない。そのため、符号化時においては、予測ブロックのサイズを小さくすることにより予測精度を向上する方法が用いられている。 However, when motion such as zooming in and out of a captured video image or rotation of a subject occurs, translation alone cannot adequately represent the motion. For this reason, a method is used during encoding to improve prediction accuracy by reducing the size of the prediction block.

一方、動き情報としてアフィン変換などの高次な動き情報を利用する手法も検討されている。例えば、アフィン変換は、平行移動に加えて、拡大縮小、回転及びせん断の3種類の変換も表現することができ、前述した被写体の回転などの変換を表現できる。これにより、生成される予測画像の品質が向上する。また、予測単位を大きくできるので符号化効率を向上できる。 Meanwhile, methods that use higher-level motion information such as affine transformations as motion information are also being considered. For example, in addition to translation, affine transformations can also express three types of transformations - scaling, rotation, and shearing - and can express transformations such as the rotation of the object mentioned above. This improves the quality of the generated predicted image. Also, the prediction unit can be made larger, improving coding efficiency.

しかしながら、平行移動が2次元の情報で表現できる一方、アフィン変換では、平行移動に加え上記3種類の変換を表現するために少なくとも6次元の情報が必要である。このように動き情報に必要な次元数が増加することにより、符号化される動き情報が増加するという問題、及び動き情報の推定処理に必要な計算量が増加するという問題が生じる。 However, while translation can be expressed with two-dimensional information, affine transformation requires at least six-dimensional information to express the above three types of transformation in addition to translation. This increase in the number of dimensions required for motion information causes problems such as an increase in the amount of motion information to be coded and an increase in the amount of calculations required for the motion information estimation process.

このような課題に対して、先行技術(特許文献1)には以下の手法が開示されている。符号化時に各予測ブロックにおいて、平行移動のみに関する動き情報の推定と、アフィン変換などの高次な動き情報の推定とが行われる。これらのうち、より符号化効率が高くなると判断された手法が選択される。動き情報が平行移動かアフィン変換かを示すフラグとそのフラグに対応した動き情報とが符号化される。これにより、高次な動き情報を用いた際の利点を生かしつつ、情報量を削減できるので、符号化効率が向上される。しかし、この手法では、高次な動き情報を表現した際の符号量を十分には削減できないという課題がある。 In response to this problem, the following method is disclosed in the prior art (Patent Document 1). During encoding, for each prediction block, estimation of motion information related only to translation and estimation of higher-order motion information such as affine transformation are performed. Of these, the method determined to have higher encoding efficiency is selected. A flag indicating whether the motion information is translation or affine transformation and the motion information corresponding to that flag are encoded. This makes it possible to reduce the amount of information while taking advantage of the advantages of using higher-order motion information, thereby improving encoding efficiency. However, this method has the problem that it is not possible to sufficiently reduce the amount of code when expressing higher-order motion information.

この課題に対し、本発明の一態様に係る画像符号化方法は、画像を符号化する画像符号化方法であって、符号化対象であるカレントブロックの参照先を示す参照情報として、平行移動成分と複数の非平行移動成分とを含む複数の変換成分のうち2以上の変換成分を選択する選択ステップと、前記参照情報を用いて予測画像を生成する予測ステップと、前記カレントブロックを、前記予測画像を用いて符号化する画像符号化ステップと、前記複数の変換成分の中から、選択された前記2以上の変換成分を特定するための選択情報を符号化する選択情報符号化ステップと、前記カレントブロックとは異なる符号化済みブロックの参照情報を用いて、前記カレントブロックの前記参照情報を符号化する参照情報符号化ステップとを含む。 In response to this problem, an image coding method according to one aspect of the present invention is an image coding method for coding an image, and includes a selection step of selecting two or more transform components from among a plurality of transform components including a translation component and a plurality of non-translation components as reference information indicating a reference destination of a current block to be coded, a prediction step of generating a predicted image using the reference information, an image coding step of coding the current block using the predicted image, a selection information coding step of coding selection information for identifying the two or more transform components selected from among the plurality of transform components, and a reference information coding step of coding the reference information of the current block using reference information of a coded block different from the current block.

これにより、当該画像符号化方法は、平行移動及び複数の非平行移動を含む複数の変換成分のうち、任意の変換成分を選択できる。よって、当該画像符号化方法は、高次な動き情報を用いた符号化方式において、符号化効率が改善できる。 As a result, the image coding method can select any transform component from among multiple transform components including translation and multiple non-translation. Therefore, the image coding method can improve coding efficiency in a coding scheme that uses high-level motion information.

例えば、前記複数の非平行移動成分は、回転成分、拡大縮小成分及びせん断成分を含んでもよい。 For example, the multiple non-translation components may include a rotation component, a scaling component, and a shear component.

例えば、前記選択情報は、前記複数の変換成分のそれぞれに対応し、対応する変換成分が選択されたか否かを示すフラグを含んでもよい。 For example, the selection information may include a flag corresponding to each of the multiple transformation components and indicating whether the corresponding transformation component has been selected.

これにより、当該画像符号化方法は、アフィン行列を複数の変換成分に分割し、それぞれに対して選択及び非選択を指定することができるので、情報量を削減できる。 As a result, this image coding method can divide the affine matrix into multiple transformation components and specify whether each component is selected or not, thereby reducing the amount of information.

例えば、前記選択ステップでは、前記複数の変換成分の一部又は全てを含む組であって、互いに異なる組を示す複数の符号化レベルから1つの符号化レベルを選択し、選択された符号化レベルで示される組に含まれる前記2以上の変換成分を選択し、前記選択情報は、選択された前記符号化レベルを示してもよい。 For example, in the selection step, one coding level may be selected from a plurality of coding levels indicating mutually different sets including some or all of the plurality of transformation components, and the two or more transformation components included in the set indicated by the selected coding level may be selected, and the selection information may indicate the selected coding level.

これにより、当該画像符号化方法は、さらに情報量を削減できる。また、当該画像符号化方法は、選択のための処理負荷を低減できる。 This allows the image coding method to further reduce the amount of information. In addition, the image coding method can reduce the processing load for selection.

例えば、前記選択情報符号化ステップでは、前記カレントブロックを含む画像に対して共通に用いられる一つの前記選択情報を符号化してもよい。 For example, the selection information encoding step may encode one selection information that is commonly used for an image including the current block.

これにより、当該画像符号化方法は、さらに情報量を削減できる。また、当該画像符号化方法は、選択のための処理負荷を低減できる。 This allows the image coding method to further reduce the amount of information. In addition, the image coding method can reduce the processing load for selection.

例えば、前記選択ステップでは、前記カレントブロックのサイズに応じて前記2以上の変換成分を選択し、前記選択情報は、前記サイズを示してもよい。 For example, the selection step may select the two or more transform components according to the size of the current block, and the selection information may indicate the size.

これにより、当該画像符号化方法は、さらに情報量を削減できる。 This allows the image encoding method to further reduce the amount of information.

例えば、前記複数の非平行移動成分は、回転成分、拡大縮小成分及びせん断成分を含み、前記選択ステップでは、前記カレントブロックのサイズが第1閾値未満である場合には前記せん断成分を選択しなくてもよい。 For example, the non-translation components may include a rotation component, a scaling component, and a shear component, and in the selection step, the shear component may not be selected if the size of the current block is less than a first threshold value.

これにより、当該画像符号化方法は、予測精度の向上に寄与しにくい変換成分を制限することでより処理負荷を低減できる。 As a result, the image coding method can further reduce the processing load by limiting transformation components that are unlikely to contribute to improving prediction accuracy.

例えば、前記選択ステップでは、前記平行移動成分、前記回転成分、前記拡大縮小成分、前記せん断成分の順に優先して前記2以上の変換成分を選択してもよい。 For example, in the selection step, the two or more transformation components may be selected in the following order of priority: the translation component, the rotation component, the scaling component, and the shear component.

これにより、当該画像符号化方法は、予測精度の向上に寄与する変換成分の優先度を高めることで、より効率的な処理を実現できる。 As a result, the image coding method can achieve more efficient processing by increasing the priority of transformation components that contribute to improving prediction accuracy.

また、本発明の一態様に係る画像復号方法は、画像が符号化されることにより得られたビットストリームを復号する画像復号方法であって、平行移動成分と複数の非平行移動成分とを含む複数の変換成分の中から2以上の変換成分を特定するための選択情報を、前記ビットストリームから復号する選択情報復号ステップと、復号対象であるカレントブロックの参照先を示す参照情報として、前記復号された前記選択情報で特定される前記2以上の変換成分を選択する選択ステップと、前記カレントブロックとは異なる復号済みブロックの参照情報を用いて、前記カレントブロックの前記参照情報を前記ビットストリームから復号する参照情報復号ステップと、前記参照情報を用いて予測画像を生成する予測ステップと、前記ビットストリームから前記カレントブロックを、前記予測画像を用いて復号する画像復号ステップとを含む。 An image decoding method according to one aspect of the present invention is an image decoding method for decoding a bit stream obtained by encoding an image, and includes a selection information decoding step of decoding, from the bit stream, selection information for identifying two or more transformation components from among a plurality of transformation components including a translation component and a plurality of non-translation components; a selection step of selecting, as reference information indicating a reference destination of a current block to be decoded, the two or more transformation components identified by the decoded selection information; a reference information decoding step of decoding, from the bit stream, the reference information of the current block using reference information of a decoded block different from the current block; a prediction step of generating a predicted image using the reference information; and an image decoding step of decoding the current block from the bit stream using the predicted image.

これにより、当該画像復号方法は、符号化効率が改善されたビットストリームを復号できる。 This allows the image decoding method to decode a bitstream with improved coding efficiency.

例えば、前記複数の非平行移動成分は、回転成分、拡大縮小成分及びせん断成分の4つの変換成分を含んでもよい。 For example, the multiple non-translation components may include four transformation components: a rotation component, a scaling component, and a shear component.

例えば、前記選択情報は、前記複数の変換成分のそれぞれに対応し、対応する変換成分が選択されたか否かを示すフラグを含んでもよい。 For example, the selection information may include a flag corresponding to each of the multiple transformation components and indicating whether the corresponding transformation component has been selected.

例えば、前記選択情報は、前記複数の変換成分の一部又は全てを含む組であって、互いに異なる組を示す複数の符号化レベルの1つを示し、前記選択ステップでは、前記選択情報で示される前記符号化レベルで示される組に含まれる前記2以上の変換成分を選択してもよい。 For example, the selection information may indicate one of a plurality of encoding levels indicating mutually different sets that include some or all of the plurality of transformation components, and the selection step may select the two or more transformation components included in the set indicated by the encoding level indicated by the selection information.

例えば、前記選択情報復号ステップでは、前記カレントブロックを含む画像に対して共通に用いられる一つの前記選択情報を復号してもよい。 For example, in the selection information decoding step, one selection information that is commonly used for an image including the current block may be decoded.

例えば、前記選択情報は、前記カレントブロックのサイズを示し、前記選択ステップでは、前記カレントブロックのサイズに応じて前記2以上の変換成分を選択してもよい。 For example, the selection information may indicate the size of the current block, and in the selection step, the two or more transform components may be selected according to the size of the current block.

例えば、前記複数の非平行移動成分は、回転成分、拡大縮小成分及びせん断成分を含み、前記選択ステップでは、前記カレントブロックのサイズが第1閾値以下である場合には、前記せん断成分を選択しなくてもよい。 For example, the multiple non-translation components may include a rotation component, a scaling component, and a shear component, and in the selection step, if the size of the current block is equal to or smaller than a first threshold, the shear component may not be selected.

例えば、前記複数の非平行移動成分は、回転成分、拡大縮小成分及びせん断成分を含み、前記選択ステップでは、前記平行移動成分、前記回転成分、前記拡大縮小成分、前記せん断成分の順に優先して前記2以上の変換成分を選択してもよい。 For example, the multiple non-translation components may include a rotation component, a scaling component, and a shear component, and in the selection step, the two or more transformation components may be selected in the following order of priority: the translation component, the rotation component, the scaling component, and the shear component.

また、本発明の一態様に係る画像符号化装置は、画像を符号化する画像符号化装置であって、処理回路と、前記処理回路からアクセス可能な記憶装置とを備え、前記処理回路は、前記記憶装置を用いて、前記画像符号化方法を実行する。 An image coding device according to one aspect of the present invention is an image coding device that codes an image, and includes a processing circuit and a storage device accessible from the processing circuit, and the processing circuit executes the image coding method using the storage device.

これにより、当該画像符号化装置は、平行移動及び複数の非平行移動を含む複数の変換成分のうち、任意の変換成分を選択できる。よって、当該画像符号化装置は、高次な動き情報を用いた符号化方式において、符号化効率が改善できる。 This allows the image coding device to select any transform component from among multiple transform components including translation and multiple non-translation. Therefore, the image coding device can improve coding efficiency in a coding method that uses high-order motion information.

また、本発明の一態様に係る画像復号装置は、画像が符号化されることにより得られたビットストリームを復号する画像復号装置であって、処理回路と、前記処理回路からアクセス可能な記憶装置とを備え、前記処理回路は、前記記憶装置を用いて、前記画像復号方法を実行する。 An image decoding device according to one aspect of the present invention is an image decoding device that decodes a bitstream obtained by encoding an image, and includes a processing circuit and a storage device accessible from the processing circuit, and the processing circuit executes the image decoding method using the storage device.

これにより、当該画像復号装置は、符号化効率が改善されたビットストリームを復号できる。 This allows the image decoding device to decode a bitstream with improved coding efficiency.

なお、これらの全般的または具体的な態様は、システム、方法、集積回路、コンピュータプログラムまたはコンピュータ読み取り可能なCD-ROMなどの記録媒体で実現されてもよく、システム、方法、集積回路、コンピュータプログラムおよび記録媒体の任意な組み合わせで実現されてもよい。 These general or specific aspects may be realized as a system, method, integrated circuit, computer program, or computer-readable recording medium such as a CD-ROM, or as any combination of a system, method, integrated circuit, computer program, and recording medium.

以下、適宜図面を参照しながら、実施の形態を詳細に説明する。但し、既によく知られた事項の詳細な説明、及び実質的に同一の構成に対する重複する説明を省略する場合がある。これは、以下の説明が不必要に冗長になるのを避け、当業者の理解を容易にするためである。 Below, the embodiments will be described in detail with reference to the drawings as appropriate. However, detailed descriptions of matters that are already well known and duplicate descriptions of substantially identical configurations may be omitted. This is to avoid the following description becoming unnecessarily redundant and to facilitate understanding by those skilled in the art.

なお、以下で説明する実施の形態は、いずれも本発明の一具体例を示すものである。以下の実施の形態で示される数値、形状、材料、構成要素、構成要素の配置位置及び接続形態、ステップ、ステップの順序などは、一例であり、本発明を限定する主旨ではない。また、以下の実施の形態における構成要素のうち、最上位概念を示す独立請求項に記載されていない構成要素については、任意の構成要素として説明される。 The embodiments described below each show a specific example of the present invention. The numerical values, shapes, materials, components, component placement and connection forms, steps, and order of steps shown in the following embodiments are merely examples and are not intended to limit the present invention. Furthermore, among the components in the following embodiments, components that are not described in an independent claim that shows the highest concept are described as optional components.

(実施の形態1)
本実施の形態に係る画像符号化方式を用いた画像符号化装置の実施の形態の一つに関して説明する。本実施の形態に係る画像符号化装置は、アフィン変換で表現される複数の変換成分のうち、任意の変換成分を選択し、選択した変換成分を動き情報を用いて予測画像を生成する。また、選択された変換成分を示す情報を含むビットストリームを生成する。これにより、当該画像符号化装置は、符号化効率を改善できる。
(Embodiment 1)
An embodiment of an image coding device using an image coding method according to the present embodiment will be described. The image coding device according to the present embodiment selects an arbitrary transformation component from among a plurality of transformation components expressed by an affine transformation, and generates a predicted image from the selected transformation component using motion information. Also, a bit stream including information indicating the selected transformation component is generated. This allows the image coding device to improve coding efficiency.

図1は、本実施の形態に係る画像符号化装置100のブロック図である。画像符号化装置100は、ブロック分割部101、減算部102、周波数変換部103、量子化部104、エントロピー符号化部105、逆量子化部106、逆周波数変換部107、加算部108、イントラ予測部109、ループフィルタ110、フレームメモリ111、インター予測部112、及び切替部113を含む。 Fig. 1 is a block diagram of an image coding device 100 according to this embodiment. The image coding device 100 includes a block division unit 101, a subtraction unit 102, a frequency transformation unit 103, a quantization unit 104, an entropy coding unit 105, an inverse quantization unit 106, an inverse frequency transformation unit 107, an addition unit 108, an intra prediction unit 109, a loop filter 110, a frame memory 111, an inter prediction unit 112, and a switching unit 113.

画像符号化装置100は、入力画像121を符号化することでビットストリーム126を生成する。 The image encoding device 100 generates a bitstream 126 by encoding the input image 121.

図2は、本実施の形態における画像符号化装置100による符号化処理のフローチャートである。 Figure 2 is a flowchart of the encoding process by the image encoding device 100 in this embodiment.

まず、ブロック分割部101は、1以上のピクチャを含む静止画又は動画である入力画像121を符号化処理単位である符号ブロック122に分割する(S101)。 First, the block division unit 101 divides an input image 121, which is a still image or a video including one or more pictures, into code blocks 122, which are units of encoding processing (S101).

次に、イントラ予測部109又はインター予測部112は、符号ブロック122ごとに復号ブロック129又は復号画像131を利用して予測ブロック134を生成する(S102)。なお、この処理の詳細は後述する。 Next, the intra prediction unit 109 or the inter prediction unit 112 generates a prediction block 134 for each code block 122 using the decoded block 129 or the decoded image 131 (S102). This process will be described in detail later.

次に、減算部102は、符号ブロック122と予測ブロック134との差分である差分ブロック123を生成する(S103)。周波数変換部103は、差分ブロック123を周波数変換することで係数ブロック124を生成する。量子化部104は係数ブロック124を量子化することで係数ブロック125を生成する(S104)。 Next, the subtraction unit 102 generates a difference block 123, which is the difference between the code block 122 and the prediction block 134 (S103). The frequency transformation unit 103 performs frequency transformation on the difference block 123 to generate a coefficient block 124. The quantization unit 104 quantizes the coefficient block 124 to generate a coefficient block 125 (S104).

次に、エントロピー符号化部105は、係数ブロック125をエントロピー符号化することでビットストリーム126を生成する(S105)。 Next, the entropy coding unit 105 generates a bit stream 126 by entropy coding the coefficient block 125 (S105).

一方で、後続のブロック又はピクチャの予測ブロック134の生成に利用する復号ブロック129及び復号画像131を生成するために、逆量子化部106は、係数ブロック125を逆量子化することで係数ブロック127を生成する。逆周波数変換部107は、係数ブロック127を逆周波数変換することで差分ブロック128を復元する(S106)。 On the other hand, in order to generate a decoded block 129 and a decoded image 131 to be used in generating a prediction block 134 of a subsequent block or picture, the inverse quantization unit 106 generates a coefficient block 127 by inverse quantizing the coefficient block 125. The inverse frequency transform unit 107 reconstructs a difference block 128 by inverse frequency transforming the coefficient block 127 (S106).

次に、加算部108は、ステップS102で利用された予測ブロック134と、差分ブロック128とを加算することで、復号ブロック129(再構築画像)を生成する(S107)。この復号ブロック129は、イントラ予測部109によるイントラ予測処理に利用される。また、ループフィルタ110は、復号ブロック129にループフィルタ処理を行うことで復号画像131を生成する。フレームメモリ111は、復号画像131を格納する。この復号画像131は、インター予測部112によるインター予測処理に用いられる。 Next, the adder 108 generates a decoded block 129 (reconstructed image) by adding the predicted block 134 used in step S102 and the difference block 128 (S107). This decoded block 129 is used for intra prediction processing by the intra prediction unit 109. Furthermore, the loop filter 110 generates a decoded image 131 by performing loop filter processing on the decoded block 129. The frame memory 111 stores the decoded image 131. This decoded image 131 is used for inter prediction processing by the inter prediction unit 112.

これら一連の処理が、入力画像121全体に対する符号化処理が完了するまで繰り返し行われる(S108)。 This series of processes is repeated until the encoding process for the entire input image 121 is completed (S108).

なお、ステップS104の周波数変換及び量子化と、ステップS106の逆量子化及び逆周波数変換は、それぞれが別処理として逐次行われても良いし、一括して行われてもよい。また量子化とは、予め定められた間隔でサンプリングした値を予め定められたレベルに対応づけてデジタル化する処理である。逆量子化とは、量子化で得られた値を元の区間の値に戻す処理である。データ圧縮分野では、量子化は、値をオリジナルよりも粗い区間に分ける処理を意味し、逆量子化は粗い区間をオリジナルの細かい区間に分けなおす処理を意味する。コーデック技術分野では、量子化及び逆量子化を、丸め、ラウンディング、又はスケーリングと呼ぶ場合もある。 The frequency conversion and quantization in step S104 and the inverse quantization and inverse frequency conversion in step S106 may be performed sequentially as separate processes, or may be performed together. Quantization is a process of digitizing values sampled at predetermined intervals by associating them with predetermined levels. Inverse quantization is a process of returning the values obtained by quantization to the values in the original intervals. In the field of data compression, quantization refers to a process of dividing values into intervals that are coarser than the original, and inverse quantization refers to a process of redividing the coarse intervals into finer intervals of the original. In the field of codec technology, quantization and inverse quantization are sometimes called rounding, rounding, or scaling.

次に、ステップS102の予測ブロック生成処理に関して、図3を用いて説明を行う。図3は、本実施の形態に係る予測ブロック生成処理(S102)のフローチャートである。 Next, the predicted block generation process in step S102 will be described with reference to FIG. 3. FIG. 3 is a flowchart of the predicted block generation process (S102) according to this embodiment.

まず、画像符号化装置100は、処理対象の予測ブロックに行う予測処理方法がイントラ予測なのかインター予測なのかを判定する(S121)。 First, the image encoding device 100 determines whether the prediction processing method to be performed on the prediction block to be processed is intra prediction or inter prediction (S121).

予測処理方法がイントラ予測の場合(S121で「イントラ予測」)、イントラ予測部109は、イントラ予測処理により予測ブロック130を生成する(S122)。また、切替部113は、生成された予測ブロック130を予測ブロック134として出力する。 When the prediction processing method is intra prediction ("intra prediction" in S121), the intra prediction unit 109 generates a prediction block 130 by intra prediction processing (S122). In addition, the switching unit 113 outputs the generated prediction block 130 as a prediction block 134.

一方、予測処理方法がインター予測の場合(S121で「インター予測」)、インター予測部112はインター予測処理により予測ブロック132を生成する(S123)。また、切替部113は、生成された予測ブロック132を予測ブロック134として出力する。 On the other hand, when the prediction processing method is inter prediction ("inter prediction" in S121), the inter prediction unit 112 generates a prediction block 132 by inter prediction processing (S123). In addition, the switching unit 113 outputs the generated prediction block 132 as a prediction block 134.

なお、画像符号化装置100は、ステップS121を行わず、ステップS122及びS123の処理を両方とも行い、得られたそれぞれの予測ブロックに対してR-D最適化モデル(下記(式1))などを用いてコスト計算を行い、コストの小さい、つまり符号化効率の高い手法を選択してもよい。 In addition, the image coding device 100 may perform both steps S122 and S123 without performing step S121, and may perform cost calculations for each of the obtained prediction blocks using an R-D optimization model (Equation 1 below) or the like, and select a method with low cost, i.e., high coding efficiency.

Figure 0007664546000001
Figure 0007664546000001

(式1)において、Dは符号化歪を表し、例えば、符号化対象ブロックの元の画素値と、生成された予測画像との差分絶対値和である。また、Rは発生符号量を表し、例えば、予測ブロックを生成するための動き情報などを符号化するのに必要な符号量である。また、λはラグランジュの未定乗数である。これにより、イントラ予測及びインター予測から適切な予測モードを選ぶことが可能となり、符号化効率を向上できる。 In (Equation 1), D represents the coding distortion, and is, for example, the sum of absolute differences between the original pixel values of the block to be coded and the generated predicted image. R represents the amount of generated code, and is, for example, the amount of code required to code motion information for generating a predicted block. λ is the Lagrange undetermined multiplier. This makes it possible to select an appropriate prediction mode from intra prediction and inter prediction, improving coding efficiency.

続いて、ステップS123のインター予測処理に関して、図4及び図5を用いて説明を行う。 Next, the inter prediction process of step S123 will be explained using Figures 4 and 5.

図4は、インター予測部112の構成例を示すブロック図である。インター予測部112は、符号化情報選択部141、動き推定部142、動き補償部143、及び動き情報計算部144を備える。 FIG. 4 is a block diagram showing an example configuration of the inter prediction unit 112. The inter prediction unit 112 includes a coding information selection unit 141, a motion estimation unit 142, a motion compensation unit 143, and a motion information calculation unit 144.

図5は、本実施の形態に係るインター予測処理(S123)のフローチャートである。 Figure 5 is a flowchart of the inter prediction process (S123) according to this embodiment.

まず、符号化情報選択部141は、入力画像(符号ブロック122)などを利用して、使用する動き情報の変換成分(変形成分)を選択する(S141)。ここで、変換成分とは、各種変換(変形)(例えば、平行移動、回転、拡大縮小及びせん断)を示す情報であり、各種変換における係数等である。図6に示すように、本実施の形態では、動き情報に、平行移動に加え、回転、拡大縮小及びせん断等の複数の非平行移動が用いられる。 First, the coding information selection unit 141 selects the transformation components (deformation components) of the motion information to be used by using the input image (code block 122) etc. (S141). Here, the transformation components are information indicating various transformations (deformations) (for example, translation, rotation, scaling, and shearing) and are coefficients in various transformations etc. As shown in FIG. 6, in this embodiment, in addition to translation, multiple non-translation transformations such as rotation, scaling, and shearing are used for the motion information.

次に、動き推定部142は、ステップS141で選択された動き情報の変換成分に関する動き推定処理を入力画像(符号ブロック122)及び復号画像131を用いて行うことで動き情報151を生成する(S142)。 Next, the motion estimation unit 142 generates motion information 151 by performing motion estimation processing on the transformation components of the motion information selected in step S141 using the input image (code block 122) and the decoded image 131 (S142).

次に、動き補償部143は、ステップS142で得られた動き情報151及び復号画像131を用いて動き補償処理を行うことで、予測ブロック132を生成する(S143)。 Next, the motion compensation unit 143 performs motion compensation processing using the motion information 151 obtained in step S142 and the decoded image 131 to generate a prediction block 132 (S143).

次に、動き情報計算部144は、ステップS142で得られた動き情報151と、符号化対象であるカレントブロックに空間的又は時間的に隣接する符号化済ブロックの動き情報との差分である差分動き情報を算出する(S144)。 Next, the motion information calculation unit 144 calculates differential motion information, which is the difference between the motion information 151 obtained in step S142 and the motion information of an encoded block that is spatially or temporally adjacent to the current block to be encoded (S144).

以上により、インター予測処理が終了する。なお、ステップS144で算出された差分動き情報は動き情報133としてエントロピー符号化部105に出力される。エントロピー符号化部105は、動き情報133を符号化し、ビットストリーム126に含めて出力する。 This completes the inter prediction process. The differential motion information calculated in step S144 is output to the entropy coding unit 105 as motion information 133. The entropy coding unit 105 codes the motion information 133 and outputs it as part of the bitstream 126.

次に動き情報の変換成分の選択(S141)に関して、図7を用いて詳細に説明を行う。図7は、本実施の形態に係る動き情報の変換成分の選択(S141)のフローチャートである。 Next, the selection of the transformation components of the motion information (S141) will be described in detail with reference to FIG. 7. FIG. 7 is a flowchart showing the selection of the transformation components of the motion information (S141) according to this embodiment.

まず、符号化情報選択部141は、入力画像(符号ブロック122)と復号画像131との画像間の動き成分を取得する(S161)。例えば、符号化情報選択部141は、入力画像及び復号画像131の両方のSIFT(Scale-Invariant Feature Transform)の特徴量を抽出する。符号化情報選択部141は、入力画像の特徴量と復号画像131の特徴量とから、各種変換を表現するホモグラフィー行列を推定し、それを画像間の動き成分として設定する。なお、ここでは動き成分として設定される特徴量としてSIFTの特徴量を使う例を示したが、これに限るものではない。 First, the coding information selection unit 141 acquires the motion components between the input image (code block 122) and the decoded image 131 (S161). For example, the coding information selection unit 141 extracts SIFT (Scale-Invariant Feature Transform) features of both the input image and the decoded image 131. The coding information selection unit 141 estimates homography matrices expressing various transformations from the features of the input image and the features of the decoded image 131, and sets them as the motion components between the images. Note that, although an example has been shown here in which SIFT features are used as the features set as the motion components, the present invention is not limited to this.

次に、符号化情報選択部141は、ステップS161で取得された動き成分に応じて、符号化に用いる動き情報の変換成分を選択する(S162)。また、符号化情報選択部141は、予測ブロックのサイズに応じて、符号化に用いる動き情報の変換成分を選択する(S163)。以上の一連の処理によって、ステップS141の処理が終わる。 Next, the coding information selection unit 141 selects the transform component of the motion information to be used for coding according to the motion component acquired in step S161 (S162). The coding information selection unit 141 also selects the transform component of the motion information to be used for coding according to the size of the prediction block (S163). The above series of processes completes the process of step S141.

なお、ステップS162及びステップS163は、両方をこの順序で行われてもよいし、逆の順序で行われてもよいし、並列に行われてもよいし、どちらか一方のみが行われてもよい。 Note that steps S162 and S163 may both be performed in this order, or in the reverse order, or in parallel, or only one of them may be performed.

なお、本実施の形態では、「動き成分」は画像を所定の解析手法を用いて解析して得られる特徴量(画像間の動き)を示すものとし、「動き情報」は、動き成分に基づいて決定される、符号化に用いられる行列、ベクトル、又はそれらを構成する係数等を示すものとして説明する。 In this embodiment, the "motion component" refers to a feature (motion between images) obtained by analyzing an image using a specified analysis method, and the "motion information" refers to a matrix, vector, or coefficients that make up the matrix, vectors, or coefficients that are used for encoding and are determined based on the motion component.

以下、動き成分を利用した変換成分の選択(ステップS162)と予測ブロックのサイズを利用した変換成分の選択(ステップS163)に関して、詳細を述べる。 The selection of transform components using the motion components (step S162) and the selection of transform components using the size of the prediction block (step S163) are described in detail below.

図8は、本実施の形態に係る動き成分を利用した変換成分の選択(ステップS162)のフローチャートである。 Figure 8 is a flowchart showing the selection of transformation components using motion components (step S162) according to this embodiment.

まず、符号化情報選択部141は、動き成分から平行移動、回転、拡大縮小及びせん断の変換成分を抽出する(S181)。 First, the coding information selection unit 141 extracts the translation, rotation, scaling, and shear transformation components from the motion components (S181).

ここで、アフィン行列aは下記(式2)のように表現できる。下記(式2)に示すように、アフィン行列aは、拡大率k(x方向にk、y方向にk)の拡大縮小を表す行列、回転角θの回転を表す行列、及びせん断角φのせん断をそれぞれ表す行列の積と、x方向にc、y方向にfだけ平行移動することを表す行列との和で表現される。 Here, the affine matrix a can be expressed as in the following (Equation 2): As shown in the following (Equation 2), the affine matrix a is expressed as the sum of the product of a matrix representing a scaling factor k (k x in the x direction, k y in the y direction), a matrix representing a rotation with a rotation angle θ, and a matrix representing a shear with a shear angle φ, and a matrix representing a translation by c in the x direction and f in the y direction.

Figure 0007664546000002
Figure 0007664546000002

上記(式2)のように表現されたアフィン行列aからは、拡大率k、回転角θ、せん断角φ及び平行移動成分を抽出することが可能である。動き情報は、上記4つの変換成分を有する情報として記載され、例えば、(c、f、θ、k、k、φ)と表現される。 From the affine matrix a expressed as in (Equation 2), it is possible to extract the magnification ratio k, the rotation angle θ, the shear angle φ, and the translation component. The motion information is described as information having the above four transformation components, and is expressed as (c, f, θ, kx , ky , φ), for example.

平行移動成分であるc及びfがともに0である場合、動き情報に平行移動成分が存在せず、それ以外の場合は動き情報に平行移動成分が存在する。拡大率kが1であった場合、動き情報に拡大縮小成分が存在せず、それ以外の場合は動き情報に拡大縮小成分が存在する。回転角θが0であった場合は動き情報に回転成分が存在せず、それ以外の場合は動き情報に回転成分が存在する。せん断角φが0であった場合は動き情報にせん断成分が存在せず、それ以外の場合は動き情報にせん断成分が存在する。 If the translation components c and f are both 0, the motion information does not contain a translation component, otherwise it contains a translation component. If the magnification ratio k is 1, the motion information does not contain a scaling component, otherwise it contains a scaling component. If the rotation angle θ is 0, the motion information does not contain a rotation component, otherwise it contains a rotation component. If the shear angle φ is 0, the motion information does not contain a shear component, otherwise it contains a shear component.

なお、ここでは、平行移動、回転、拡大縮小及びせん断の、それぞれの変換成分の閾値が(0、0)、0、(1、1)、0である例を示したが、これに限るものではない。これらの閾値は、画像の特徴又は撮像装置の精度等を考慮した値であってもよい。また、拡大縮小をx方向とy方向に分解せず、x方向及びy方向で同一の拡大率が用いられてもよい。これにより、符号量及び処理量を削減できる。 Note that, although an example has been shown here in which the thresholds for the respective transformation components of translation, rotation, scaling, and shear are (0,0), 0, (1,1), 0, this is not limiting. These thresholds may be values that take into consideration the characteristics of the image or the accuracy of the imaging device. Furthermore, instead of decomposing scaling into the x and y directions, the same magnification ratio may be used in the x and y directions. This allows the amount of code and processing to be reduced.

このようにして、ステップS181において、符号化情報選択部141は、動き情報から各種変換成分を抽出する。なお、ここでは、動き情報を、アフィン行列を用いて示す場合の説明をおこなったが、利用できる動き情報はこの限りではない。以降、各種変換成分は、回転角が回転成分、拡大率が拡大縮小成分、せん断角がせん断成分、平行移動ベクトルが平行移動を表現しているものとする。 In this way, in step S181, the coding information selection unit 141 extracts various transformation components from the motion information. Note that, although the motion information has been described here as being represented using an affine matrix, the usable motion information is not limited to this. Hereinafter, the various transformation components are defined as the rotation angle representing the rotation component, the enlargement ratio representing the enlargement/reduction component, the shear angle representing the shear component, and the translation vector representing the translation.

続いて、符号化情報選択部141は、平行移動を使用するか否かを決定する選択処理を行う。まず、符号化情報選択部141は、ステップS181で、動きベクトルなどで示される平行移動成分が、動き成分から抽出されたかを判定する(S182)。 Then, the coding information selection unit 141 performs a selection process to determine whether or not to use translation. First, in step S181, the coding information selection unit 141 determines whether a translation component indicated by a motion vector or the like has been extracted from the motion component (S182).

動き成分に平行移動成分が存在する場合(S182でYes)、符号化情報選択部141は、平行移動を選択する(S183)。一方、動き成分に平行移動成分が存在しない場合(S182でNo)、符号化情報選択部141は、平行移動を選択しない(S184)。 If the motion components include a translation component (Yes in S182), the coding information selection unit 141 selects translation (S183). On the other hand, if the motion components do not include a translation component (No in S182), the coding information selection unit 141 does not select translation (S184).

次に、符号化情報選択部141は、回転を使用するか否かを決定する。符号化情報選択部141は、ステップS181で、回転角θなどで示される回転成分が、動き成分から抽出されたかを判定する(S185)。 Next, the coding information selection unit 141 decides whether or not to use rotation. In step S181, the coding information selection unit 141 determines whether a rotation component indicated by the rotation angle θ or the like has been extracted from the motion component (S185).

動き成分に回転成分が存在する場合(S185でYes)、符号化情報選択部141は、回転を選択する(S186)。動き成分に回転成分が存在しない場合(S185でNo)、符号化情報選択部141は、回転を選択しない(S187)。 If the movement component includes a rotation component (Yes in S185), the coding information selection unit 141 selects rotation (S186). If the movement component does not include a rotation component (No in S185), the coding information selection unit 141 does not select rotation (S187).

次に、符号化情報選択部141は、拡大縮小を使用するか否かを決定する。符号化情報選択部141は、ステップS181で、拡大率kなどで示される拡大縮小成分が、動き成分から抽出されたかを判定する(S188)。動き成分に拡大縮小成分が存在する場合(S188でYes)、符号化情報選択部141は、拡大縮小を選択する(S189)。動き成分に拡大縮小成分が存在しない場合(S188でNo)、符号化情報選択部141は、拡大縮小を選択しない(S190)。 Next, the coding information selection unit 141 decides whether or not to use scaling. In step S181, the coding information selection unit 141 determines whether a scaling component indicated by the scaling factor k or the like has been extracted from the movement component (S188). If a scaling component is present in the movement component (Yes in S188), the coding information selection unit 141 selects scaling (S189). If a scaling component is not present in the movement component (No in S188), the coding information selection unit 141 does not select scaling (S190).

最後に、符号化情報選択部141は、せん断を使用するか否かを決定する。符号化情報選択部141は、ステップS181で、せん断角φなどで示されるせん断成分が、動き成分から抽出されたかを判定する(S191)。 Finally, the coding information selection unit 141 decides whether or not to use shear. In step S181, the coding information selection unit 141 determines whether a shear component indicated by the shear angle φ or the like has been extracted from the motion component (S191).

動き成分にせん断成分が存在する場合(S191でYes)、符号化情報選択部141は、せん断を選択する(S192)。動き成分にせん断成分が存在しない場合(S191でNo)、符号化情報選択部141は、せん断を選択しない(S193)。以上の一連の処理によって、ステップS162の処理が終わる。 If the motion component includes a shear component (Yes in S191), the coding information selection unit 141 selects shear (S192). If the motion component does not include a shear component (No in S191), the coding information selection unit 141 does not select shear (S193). The above series of processes completes the process of step S162.

次に、図7に示すステップS163に関して図9を用いて説明を行う。図9は、本実施の形態に係るブロックサイズを利用した変換成分の選択(ステップS163)のフローチャートである。 Next, step S163 shown in FIG. 7 will be described with reference to FIG. 9. FIG. 9 is a flowchart showing the selection of transform components using block size (step S163) according to this embodiment.

まず、符号化情報選択部141は、予測ブロックのブロックサイズを取得する(S201)。 First, the coding information selection unit 141 obtains the block size of the prediction block (S201).

最初に、符号化情報選択部141は、平行移動を使用するか否かを決定する。符号化情報選択部141は、ステップS201で取得されたブロックサイズが4×4ブロック以下かを判定する(S202)。 First, the coding information selection unit 141 determines whether or not to use parallel translation. The coding information selection unit 141 determines whether the block size obtained in step S201 is 4x4 blocks or less (S202).

ブロックサイズが4×4ブロックより大きい場合(S202でNo)、符号化情報選択部141は、平行移動を選択する(S203)。一方、ブロックサイズが4×4ブロック以下である場合(S202でYes)、符号化情報選択部141は、平行移動を選択しない(S204)。 If the block size is larger than 4x4 blocks (No in S202), the coding information selection unit 141 selects translation (S203). On the other hand, if the block size is equal to or smaller than 4x4 blocks (Yes in S202), the coding information selection unit 141 does not select translation (S204).

続いて、符号化情報選択部141は、回転を使用するか否かを決定する。符号化情報選択部141は、ステップS201で取得されたブロックサイズが8×8ブロック以下かを判定する(S205)。 Then, the coding information selection unit 141 decides whether or not to use rotation. The coding information selection unit 141 determines whether the block size obtained in step S201 is equal to or smaller than 8x8 blocks (S205).

ブロックサイズが8×8ブロックより大きい場合(S205でNo)、符号化情報選択部141は、回転を選択する(S206)。一方、ブロックサイズが8×8ブロック以下である場合(S205でYes)、符号化情報選択部141は、回転を選択しない(S207)。 If the block size is larger than 8x8 blocks (No in S205), the coding information selection unit 141 selects rotation (S206). On the other hand, if the block size is equal to or smaller than 8x8 blocks (Yes in S205), the coding information selection unit 141 does not select rotation (S207).

次に、符号化情報選択部141は、拡大縮小を使用するか否かを決定する。符号化情報選択部141は、ステップS201で取得されたブロックサイズが16×16ブロック以下かを判定する(S208)。ブロックサイズが16×16ブロックより大きい場合(S208でNo)、符号化情報選択部141は、拡大縮小を選択する(S209)。一方、ブロックサイズが16×16ブロック以下である場合(S208でYes)、符号化情報選択部141は、拡大縮小を選択しない(S210)。 Next, the coding information selection unit 141 decides whether or not to use scaling. The coding information selection unit 141 determines whether the block size obtained in step S201 is 16x16 blocks or less (S208). If the block size is larger than 16x16 blocks (No in S208), the coding information selection unit 141 selects scaling (S209). On the other hand, if the block size is 16x16 blocks or less (Yes in S208), the coding information selection unit 141 does not select scaling (S210).

最後に、符号化情報選択部141は、せん断を使用するか否かを決定する。符号化情報選択部141は、ステップS201で取得されたブロックサイズが32×32ブロック以下かを判定する(S211)。 Finally, the coding information selection unit 141 decides whether or not to use shearing. The coding information selection unit 141 determines whether the block size obtained in step S201 is equal to or smaller than 32x32 blocks (S211).

ブロックサイズが32×32ブロックより大きい場合(S211でNo)、符号化情報選択部141は、せん断を選択する(S212)。一方、ブロックサイズが32×32ブロック以下である場合(S211でYes)、符号化情報選択部141は、せん断を選択しない(S213)。以上、一連の処理を経て、ステップS163の処理が終了する。 If the block size is larger than 32x32 blocks (No in S211), the coding information selection unit 141 selects shearing (S212). On the other hand, if the block size is equal to or smaller than 32x32 blocks (Yes in S211), the coding information selection unit 141 does not select shearing (S213). After going through the above series of processes, the processing of step S163 ends.

ここで、ステップS202、S205、S208及びS211において、ブロックサイズの閾値の一例としてそれぞれ4×4、8×8、16×16及び32×32を用いる場合を説明したが、ブロックサイズの閾値は、この限りではなく、任意のサイズでよい。また、符号化情報選択部141は、画像の特性に合わせて閾値を切り替えてもよい。これにより、符号化効率を向上できる。 Here, in steps S202, S205, S208, and S211, 4x4, 8x8, 16x16, and 32x32 are used as examples of block size thresholds, respectively, but the block size thresholds are not limited to these and may be any size. Furthermore, the coding information selection unit 141 may switch the thresholds according to the characteristics of the image. This can improve coding efficiency.

また、ここでは、ステップS162とステップS163とをこの順に逐次に行う例を説明したが、順序は逆であってもよいし、これらの処理の一部又は全てが同時に行われてもよい。また、ステップS162及びステップS163の一方のみが行われてもよい。 Although an example in which steps S162 and S163 are performed sequentially in this order has been described, the order may be reversed, or some or all of these processes may be performed simultaneously. Also, only one of steps S162 and S163 may be performed.

ステップS162とステップS163との両方が行われる場合、例えば、符号化情報選択部141は、変換成分が存在し、かつ、ブロックサイズが閾値より大きい場合に、当該変換を選択し、それ以外の場合には、当該変換を選択しない。言い換えると、符号化情報選択部141は、ステップS162及びステップS163の両方において、選択すると判定された変換を選択し、ステップS162及びステップS163の少なくとも一方において選択しないと判定された変換を選択しない。 When both step S162 and step S163 are performed, for example, the coding information selection unit 141 selects the transformation if a transformation component exists and the block size is greater than a threshold, and does not select the transformation in other cases. In other words, the coding information selection unit 141 selects the transformation determined to be selected in both step S162 and step S163, and does not select the transformation determined not to be selected in at least one of step S162 and step S163.

また、符号化情報選択部141は、ステップS163におけるサイズの比較を先に行って、選択すると決定した変換に対してのみ、変換成分の有無(S162)を判定してもよい。または、符号化情報選択部141は、ステップS162における変換成分の有無の判定を先に行って、変換成分が存在する変換に対してのみ、ブロックサイズの比較(S163)を行ってもよい。 The coding information selection unit 141 may first perform the size comparison in step S163, and determine whether or not a transform component exists (S162) only for the transform that has been decided to be selected. Alternatively, the coding information selection unit 141 may first perform the determination of whether or not a transform component exists in step S162, and perform the block size comparison (S163) only for the transform that has a transform component.

さらに、図8に示すステップS182~S193の順序は任意でよく、一部又は全てが並列に行われてもよい。同様に、図9に示すS202~S213の順序は任意でよく、一部又は全てが並列に行われてもよい。 Furthermore, the order of steps S182 to S193 shown in FIG. 8 may be arbitrary, and some or all of them may be performed in parallel. Similarly, the order of steps S202 to S213 shown in FIG. 9 may be arbitrary, and some or all of them may be performed in parallel.

ただし、発明者らが検証したところ、せん断成分はその他の変換成分と比較し、有効な画像が少ないため、予測精度の向上に寄与しにくかった。そのため、せん断成分の優先度を、その他の変換成分と比べて低く設定してもよい。例えば、判定処理の順番を他の成分の判定処理より後にする、又は、ブロックサイズの閾値を、他の成分の閾値より大きくすることにより、優先度を低くすることができる。 However, the inventors' verification revealed that the shear component has fewer valid images than the other transform components, and therefore is less likely to contribute to improving prediction accuracy. Therefore, the priority of the shear component may be set lower than that of the other transform components. For example, the priority can be lowered by placing the determination process after the determination process of the other components, or by setting the block size threshold larger than the threshold of the other components.

図5に示すステップS141に続くステップS142では、動き推定部142は、ステップS141で選択された変換成分に関して動き推定を行う。例えば、動き推定部142は、平行移動の大きさ、及び拡大率等である複数の変換成分の各々を一定値ずつ変化させながら、残差信号(差分ブロック)を算出する。そして、動き推定部142は、得られた複数の残差信号のうち最も小さい残差信号に対応する変換成分の組み合わせを動き情報151に決定する。 In step S142 following step S141 shown in FIG. 5, the motion estimation unit 142 performs motion estimation on the transformation components selected in step S141. For example, the motion estimation unit 142 calculates a residual signal (difference block) while changing each of a plurality of transformation components, such as the magnitude of translation and the magnification ratio, by a constant value. Then, the motion estimation unit 142 determines, as the motion information 151, the combination of transformation components corresponding to the smallest residual signal among the obtained plurality of residual signals.

次に、ステップS143では、動き補償部143は、ステップS142で得られた動き情報151を用いて、復号画像131から予測画像(予測ブロック132)を生成する。 Next, in step S143, the motion compensation unit 143 generates a predicted image (prediction block 132) from the decoded image 131 using the motion information 151 obtained in step S142.

最後のステップS144に関しては、図10~図14を用いて詳細を述べる。 The final step S144 will be described in detail using Figures 10 to 14.

図10は、本実施の形態に係る差分動き情報算出処理(S144)のフローチャートである。 Figure 10 is a flowchart of the differential motion information calculation process (S144) according to this embodiment.

まず、動き情報計算部144は、符号化対象であるカレントブロックに空間的または時間的に隣接する1以上の符号化済ブロックで用いられている動き情報から予測動き情報を導出する(S221)。なお、予測動き情報は、動き情報と同様に、平行移動成分、回転成分、拡大縮小成分及びせん断成分を含む。なお、以下では予測動き情報に含まれる各種変換成分を、予測変換成分とも呼ぶ。また、予測動き情報に含まれる平行移動成分、回転成分、拡大縮小成分及びせん断成分を、予測平行移動成分、予測回転成分、予測拡大縮小成分及び予測せん断成分とも呼ぶ。 First, the motion information calculation unit 144 derives predictive motion information from motion information used in one or more encoded blocks spatially or temporally adjacent to the current block to be encoded (S221). Note that the predictive motion information includes a translation component, a rotation component, a scaling component, and a shear component, just like the motion information. Note that, hereinafter, the various transformation components included in the predictive motion information are also referred to as predicted transformation components. Also, the translation component, rotation component, scaling component, and shear component included in the predictive motion information are also referred to as predicted translation component, predicted rotation component, predicted scaling component, and predicted shear component.

例えば、動き情報計算部144は、予測変換成分の種別ごとに、複数の符号化済みブロックの複数の動き情報に含まれる当該種別の複数の変換成分を取得し、取得された複数の変換成分から当該種別の予測変換成分を導出する。例えば、動き情報計算部144は、同じ参照ピクチャを参照する複数の符号化済みブロックそれぞれの変換成分の平均値を予測変換成分として導出する。なお、予測変換成分の導出方法として、その他、HEVC等で用いられるような全ての算出方法を適用できる。 For example, the motion information calculation unit 144 acquires, for each type of predictive transformation component, multiple transformation components of that type included in multiple motion information of multiple coded blocks, and derives the predictive transformation component of that type from the multiple acquired transformation components. For example, the motion information calculation unit 144 derives the average value of the transformation components of each of multiple coded blocks that refer to the same reference picture as the predictive transformation component. Note that any other calculation method such as that used in HEVC, etc. can be applied as a method of deriving the predictive transformation component.

最初に、動き情報計算部144は、平行移動成分の差分動き情報である差分平行移動成分を算出する(S222)。 First, the motion information calculation unit 144 calculates the differential translation component, which is the differential motion information of the translation component (S222).

図11は、この差分平行移動成分の算出処理(S222)のフローチャートである。 Figure 11 is a flowchart of the process of calculating this differential translation component (S222).

まず、動き情報計算部144は、ステップS142で推定された動き情報151に平行移動成分が存在するかを判定する(S241)。例えば、動き情報計算部144は、平行移動成分に含まれるx方向及びy方向の成分が共にゼロである場合に、平行移動成分が存在しないと判定し、x方向及びy方向の成分の少なくとも一方がゼロでない場合に、平行移動成分が存在すると判定する。なお、動き情報計算部144は、平行移動成分の大きさがある所定値より小さい場合に、平行移動成分が存在しないと判定してもよい。また、動き情報計算部144は、画像の特徴に応じて、その所定値を切り替えてもよい。また、動き情報計算部144は、画像の特徴が所定の条件を満たす場合に、常に平行移動成分が存在する(又は常に平行移動成分が存在しない)と判定してもよい。 First, the motion information calculation unit 144 determines whether a translation component is present in the motion information 151 estimated in step S142 (S241). For example, the motion information calculation unit 144 determines that a translation component is not present when both the x-direction and y-direction components included in the translation component are zero, and determines that a translation component is present when at least one of the x-direction and y-direction components is not zero. The motion information calculation unit 144 may determine that a translation component is not present when the magnitude of the translation component is smaller than a certain predetermined value. The motion information calculation unit 144 may also switch the predetermined value according to the image features. The motion information calculation unit 144 may also determine that a translation component is always present (or that a translation component is always absent) when the image features satisfy a certain condition.

また、動き情報計算部144は、図8のステップS184又は図9のステップS204において、平行移動を選択しないと判定されている場合に、平行移動成分が存在しないと判定してもよい。 In addition, the motion information calculation unit 144 may determine that no translation component is present if it is determined in step S184 of FIG. 8 or step S204 of FIG. 9 that translation is not selected.

動き情報151に平行移動成分が存在しない場合(S241でNo)、動き情報計算部144は、“平行移動が存在する”ことを示す平行移動フラグをOFFに設定し、当該平行移動フラグを、符号化される動き情報133に付与する(S242)。 If there is no translation component in the motion information 151 (No in S241), the motion information calculation unit 144 sets the translation flag indicating that "translation exists" to OFF, and assigns the translation flag to the motion information 133 to be encoded (S242).

動き情報151に平行移動成分が存在する場合(S241でYes)、動き情報計算部144は、平行移動フラグをONに設定し、当該平行移動フラグを動き情報133に付与する(S243)。 If a translation component is present in the motion information 151 (Yes in S241), the motion information calculation unit 144 sets the translation flag to ON and assigns the translation flag to the motion information 133 (S243).

次に、動き情報計算部144は、ステップS221で導出された予測動き情報に平行移動成分が存在するかを判定する(S244)。予測動き情報に平行移動成分が存在しない場合(S244でNo)、動き情報計算部144は、予測平行移動成分を0に設定する(S245)。 Next, the motion information calculation unit 144 determines whether the predicted motion information derived in step S221 contains a translation component (S244). If the predicted motion information does not contain a translation component (No in S244), the motion information calculation unit 144 sets the predicted translation component to 0 (S245).

一方、予測動き情報に平行移動成分が存在する場合(S244でYes)、動き情報計算部144は、予測動き情報の平行移動成分を予測平行移動成分として設定する(S246)。 On the other hand, if a translation component is present in the predictive motion information (Yes in S244), the motion information calculation unit 144 sets the translation component of the predictive motion information as the predicted translation component (S246).

次に、動き情報計算部144は、ステップS245又はS246で得られた予測平行移動成分を、ステップS142で得られた動き情報151の平行移動成分から減算することで差分平行移動成分を算出し、算出された差分平行移動成分を動き情報133に追加する(S247)。 Next, the motion information calculation unit 144 calculates a differential translation component by subtracting the predicted translation component obtained in step S245 or S246 from the translation component of the motion information 151 obtained in step S142, and adds the calculated differential translation component to the motion information 133 (S247).

続いて、動き情報計算部144は、回転成分の差分動き情報である差分平行移動成分を算出する(S223)。 Next, the motion information calculation unit 144 calculates the differential translation component, which is the differential motion information of the rotation component (S223).

図12は、この差分回転成分の算出処理(S223)のフローチャートである。 Figure 12 is a flowchart of the process of calculating this differential rotation component (S223).

まず、動き情報計算部144は、ステップS142で推定された動き情報151に回転成分が存在するかを判定する(S261)。例えば、動き情報計算部144は、平行移動の判定(S241)と同様に、回転成分がゼロであるかを判定してもよいし、回転角の大きさとある所定値とを比較してもよい。また、動き情報計算部144は、画像の特徴に応じて所定値を切り替えてもよい。例えば、動き情報計算部144は、回転が予測精度の向上に寄与しそうな特徴を有する画像であれば、常に回転成分が存在すると判定し、そうではない場合には常に回転成分が存在しないと判定してもよい。常に存在すると判定された場合には、例えば、回転中心からの角度の時間変換に基づいて予め回転角θが定められており、動き情報計算部144は、常にその値を使用してもよい。 First, the motion information calculation unit 144 determines whether a rotation component exists in the motion information 151 estimated in step S142 (S261). For example, the motion information calculation unit 144 may determine whether the rotation component is zero, as in the case of judging the translation (S241), or may compare the magnitude of the rotation angle with a certain predetermined value. The motion information calculation unit 144 may also switch the predetermined value according to the characteristics of the image. For example, the motion information calculation unit 144 may always determine that a rotation component exists if the image has characteristics that are likely to contribute to improving the prediction accuracy of the rotation, and may always determine that a rotation component does not exist if the image does not have such characteristics. If it is determined that a rotation component always exists, for example, the rotation angle θ may be determined in advance based on the time transformation of the angle from the center of rotation, and the motion information calculation unit 144 may always use that value.

また、動き情報計算部144は、図8のステップS187又は図9のステップS207において、回転を選択しないと判定されている場合に、回転成分が存在しないと判定してもよい。 In addition, the motion information calculation unit 144 may determine that no rotation component is present if it is determined in step S187 of FIG. 8 or step S207 of FIG. 9 that rotation is not selected.

動き情報151に回転成分が存在しない場合(S261でNo)、動き情報計算部144は、“回転が存在する”ことを示す回転フラグをOFFに設定し、当該回転フラグを、符号化される動き情報133に付与する(S262)。 If the motion information 151 does not contain a rotation component (No in S261), the motion information calculation unit 144 sets the rotation flag indicating that "rotation exists" to OFF, and assigns the rotation flag to the motion information 133 to be encoded (S262).

動き情報151に回転成分が存在する場合(S261でYes)、動き情報計算部144は、回転フラグをONに設定し、当該回転フラグを動き情報133に付与する(S263)。 If a rotation component is present in the motion information 151 (Yes in S261), the motion information calculation unit 144 sets the rotation flag to ON and assigns the rotation flag to the motion information 133 (S263).

次に、動き情報計算部144は、ステップS221で取得された予測動き情報に回転成分が存在するかを判定する(S264)。 Next, the motion information calculation unit 144 determines whether a rotation component is present in the predicted motion information obtained in step S221 (S264).

予測動き情報に回転成分が存在しない場合(S264でNo)、動き情報計算部144は、予測回転成分を0に設定する(S265)。予測動き情報に回転成分が存在する場合(S264でYes)、動き情報計算部144は、予測動き情報の回転成分を予測回転成分として設定する(S266)。 If the predictive motion information does not contain a rotation component (No in S264), the motion information calculation unit 144 sets the predicted rotation component to 0 (S265). If the predictive motion information contains a rotation component (Yes in S264), the motion information calculation unit 144 sets the rotation component of the predictive motion information as the predicted rotation component (S266).

動き情報計算部144は、ステップS265又はS266で得られた予測回転成分を、ステップS142で得られた動き情報の回転成分から減算することで差分回転成分を算出し、算出された差分回転成分を動き情報133に追加する(S267)。 The motion information calculation unit 144 calculates a differential rotation component by subtracting the predicted rotation component obtained in step S265 or S266 from the rotation component of the motion information obtained in step S142, and adds the calculated differential rotation component to the motion information 133 (S267).

次に、動き情報計算部144は、拡大縮小成分の差分動き情報である差分拡大縮小成分を算出する(S224)。 Next, the motion information calculation unit 144 calculates the differential scaling components, which are the differential motion information of the scaling components (S224).

図13は、この差分拡大縮小成分の算出処理(S224)のフローチャートである。 Figure 13 is a flowchart of the process of calculating the differential scaling components (S224).

まず、動き情報計算部144は、ステップS142で推定された動き情報151に拡大縮小成分が存在するかを判定する(S281)。例えば、動き情報計算部144は、ステップS241又はS261と同様に、拡大縮小成分がゼロ(値が1)であるかを判定してもよいし、拡大縮小成分の大きさとある所定値とを比較してもよい。また、動き情報計算部144は、画像の特徴に応じて所定値を切り替えてもよい。例えば、動き情報計算部144は、ズームイン、又はズームアウトを行った際の映像などの場合に、その画角の時間変化に基づいて所定値を設定してもよい。 First, the motion information calculation unit 144 determines whether a scaling component is present in the motion information 151 estimated in step S142 (S281). For example, the motion information calculation unit 144 may determine whether the scaling component is zero (value is 1) as in step S241 or S261, or may compare the magnitude of the scaling component with a certain predetermined value. The motion information calculation unit 144 may also switch the predetermined value depending on the characteristics of the image. For example, in the case of an image obtained by zooming in or out, the motion information calculation unit 144 may set the predetermined value based on the change in the angle of view over time.

また、動き情報計算部144は、拡大縮小成分が予測精度に大きく寄与しそうな特徴を有する画像であれば、常に拡大縮小成分が存在すると判定し、そうではない場合には常に拡大縮小成分が存在しないと判定してもよい。例えば、動き情報計算部144は、入力画像121が、ズームイン、又はズームアウトを行った際の映像などである場合に、常に拡大縮小成分が存在すると判定してもよい。常に存在すると判定する場合には、例えば、画角の時間変化に基づいて予め拡大縮小成分の値が定められており、動き情報計算部144は、常にその値を使用してもよい。 Moreover, the motion information calculation unit 144 may determine that a scaling component is always present if the image has characteristics that are likely to contribute significantly to prediction accuracy, and may always determine that a scaling component is not present if this is not the case. For example, the motion information calculation unit 144 may determine that a scaling component is always present if the input image 121 is an image obtained by zooming in or out. When determining that a scaling component is always present, for example, the value of the scaling component may be determined in advance based on the change in the angle of view over time, and the motion information calculation unit 144 may always use that value.

また、動き情報計算部144は、図8のステップS190又は図9のステップS210において、拡大縮小を選択しないと判定されている場合に、拡大縮小成分が存在しないと判定してもよい。 In addition, the motion information calculation unit 144 may determine that no scaling component is present if it is determined in step S190 of FIG. 8 or step S210 of FIG. 9 that scaling is not selected.

動き情報151に拡大縮小成分が存在しない場合(S281でNo)、動き情報計算部144は、“拡大縮小が存在する”ことを示す拡大縮小フラグをOFFに設定し、当該拡大縮小フラグを、符号化される動き情報133に付与する(S282)。 If there is no scaling component in the motion information 151 (No in S281), the motion information calculation unit 144 sets the scaling flag indicating that "scaling is present" to OFF, and assigns the scaling flag to the motion information 133 to be encoded (S282).

動き情報151に拡大縮小成分が存在する場合(S281でYes)、動き情報計算部144は、拡大縮小フラグをONに設定し、当該拡大縮小フラグを動き情報133に付与する(S283)。 If the motion information 151 contains a scaling component (Yes in S281), the motion information calculation unit 144 sets the scaling flag to ON and assigns the scaling flag to the motion information 133 (S283).

次に、動き情報計算部144は、ステップS221で取得された予測動き情報に拡大縮小成分が存在するかを判定する(S284)。 Next, the motion information calculation unit 144 determines whether the predicted motion information obtained in step S221 contains a scaling component (S284).

予測動き情報に拡大縮小成分が存在しない場合(S284でNo)、動き情報計算部144は、予測拡大縮小成分を1に設定する(S285)。予測動き情報に拡大縮小成分が存在する場合(S284でYes)、動き情報計算部144は、予測動き情報の拡大縮小成分を予測拡大縮小成分として設定する(S286)。 If the predictive motion information does not contain a scaling component (No in S284), the motion information calculation unit 144 sets the predicted scaling component to 1 (S285). If the predictive motion information contains a scaling component (Yes in S284), the motion information calculation unit 144 sets the scaling component of the predictive motion information as the predicted scaling component (S286).

動き情報計算部144は、ステップS284又はS285で得られた予測拡大縮小成分を、ステップS142で得られた動き情報の拡大縮小成分から減算することで差分拡大縮小成分を算出し、算出された差分拡大縮小成分を動き情報133に追加する(S287)。 The motion information calculation unit 144 calculates a differential scaling component by subtracting the predicted scaling component obtained in step S284 or S285 from the scaling component of the motion information obtained in step S142, and adds the calculated differential scaling component to the motion information 133 (S287).

最後に、動き情報計算部144は、せん断成分の差分動き情報である差分せん断成分を算出する(S225)。 Finally, the motion information calculation unit 144 calculates the differential shear component, which is the differential motion information of the shear component (S225).

図14は、この差分せん断成分の算出処理(S225)のフローチャートである。 Figure 14 is a flowchart of the process for calculating this differential shear component (S225).

まず、動き情報計算部144は、ステップS142で推定された動き情報151にせん断成分が存在するかを判定する(S301)。例えば、動き情報計算部144は、ステップS241、S261、又はS281と同様に、せん断成分がゼロであるかを判定してもよいし、せん断成分の大きさとある所定値とを比較してもよい。また、動き情報計算部144は、画像の特徴に応じて所定値を切り替えてもよい。また、動き情報計算部144は、画像の特徴が所定の条件を満たす場合に、常にせん断成分が存在する(又は常にせん断成分が存在しない)と判定してもよい。 First, the motion information calculation unit 144 determines whether a shear component is present in the motion information 151 estimated in step S142 (S301). For example, the motion information calculation unit 144 may determine whether the shear component is zero, as in steps S241, S261, or S281, or may compare the magnitude of the shear component with a certain predetermined value. The motion information calculation unit 144 may also switch the predetermined value depending on the image features. The motion information calculation unit 144 may also determine that a shear component is always present (or that a shear component is always absent) when the image features satisfy a predetermined condition.

また、動き情報計算部144は、図8のステップS193又は図9のステップS213において、せん断を選択しないと判定されている場合に、せん断成分が存在しないと判定してもよい。 In addition, the motion information calculation unit 144 may determine that no shear component is present if it is determined in step S193 of FIG. 8 or step S213 of FIG. 9 that shear is not to be selected.

動き情報151にせん断成分が存在しない場合(S301でNo)、動き情報計算部144は、“せん断が存在する”ことを示すせん断フラグをOFFに設定し、当該せん断フラグを、符号化される動き情報133に付与する(S302)。 If no shear component is present in the motion information 151 (No in S301), the motion information calculation unit 144 sets the shear flag indicating that "shear is present" to OFF, and assigns the shear flag to the motion information 133 to be encoded (S302).

動き情報151にせん断成分が存在する場合(S301でYes)、動き情報計算部144は、せん断フラグをオンに設定し、当該せん断フラグを動き情報133に付与する(S303)。 If a shear component is present in the motion information 151 (Yes in S301), the motion information calculation unit 144 sets the shear flag to on and assigns the shear flag to the motion information 133 (S303).

次に、動き情報計算部144は、ステップS221で取得された予測動き情報にせん断成分が存在するかを判定する(S304)。 Next, the motion information calculation unit 144 determines whether a shear component is present in the predicted motion information obtained in step S221 (S304).

予測動き情報にせん断成分が存在しない場合(S304でNo)、動き情報計算部144は、予測せん断成分を0に設定する(S305)。予測動き情報にせん断成分が存在する場合(S304でYes)、動き情報計算部144は、予測動き情報のせん断成分を予測せん断成分として設定する(S306)。 If the predicted motion information does not contain a shear component (No in S304), the motion information calculation unit 144 sets the predicted shear component to 0 (S305). If the predicted motion information contains a shear component (Yes in S304), the motion information calculation unit 144 sets the shear component of the predicted motion information as the predicted shear component (S306).

動き情報計算部144は、ステップS305又はS306で得られた予測せん断成分を、ステップS142で得られた動き情報のせん断成分から減算することで差分せん断成分を算出し、算出された差分せん断成分を動き情報133に追加する(S307)。 The motion information calculation unit 144 calculates a differential shear component by subtracting the predicted shear component obtained in step S305 or S306 from the shear component of the motion information obtained in step S142, and adds the calculated differential shear component to the motion information 133 (S307).

以上の処理を経て、ステップS144の処理が終了する。 After the above processing, processing in step S144 ends.

なお、ステップS222~S225の処理順は、この順に限らず任意の順序でよい。また、これらの処理の一部又は全てが並列に行われてもよい。また先に述べたとおり、カレントブロックのサイズ等により、符号化に用いることが可能な変換成分が制限される場合には、動き情報計算部144は、許容された変換成分についての処理のみを行ってもよい。 The processing order of steps S222 to S225 is not limited to this order and may be any order. Furthermore, some or all of these processes may be performed in parallel. Furthermore, as mentioned above, if the transform components that can be used for encoding are limited due to the size of the current block, etc., the motion information calculation unit 144 may only process the allowed transform components.

図15及び図16は、符号化される動き情報133の一例を示す図である。図15に示すように、動き情報133は、平行移動フラグ161と、回転フラグ162と、拡大縮小フラグ163と、せん断フラグ164と、差分平行移動成分171と、差分回転成分172と、差分拡大縮小成分173と、差分せん断成分174とを含む。なお、各情報の意味は上述した通りである。 Figures 15 and 16 are diagrams showing an example of motion information 133 to be encoded. As shown in Figure 15, the motion information 133 includes a translation flag 161, a rotation flag 162, a scaling flag 163, a shear flag 164, a differential translation component 171, a differential rotation component 172, a differential scaling component 173, and a differential shear component 174. The meaning of each piece of information is as described above.

また、各フラグがオンの場合にのみ、動き情報133に、当該フラグに対応する差分動き成分が含まれる。例えば、図16に示すように、平行移動フラグ161及び回転フラグ162がONであり、拡大縮小フラグ163及びせん断フラグ164がOFFの場合には、動き情報133に、差分平行移動成分171及び差分回転成分172が含まれ、差分拡大縮小成分173及び差分せん断成分174は含まれない。 Moreover, only when each flag is ON does the motion information 133 include the differential motion component corresponding to that flag. For example, as shown in FIG. 16, when the translation flag 161 and the rotation flag 162 are ON and the scaling flag 163 and the shear flag 164 are OFF, the motion information 133 includes the differential translation component 171 and the differential rotation component 172, but does not include the differential scaling component 173 or the differential shear component 174.

(効果)
以上より、本実施の形態に係る画像符号化装置100は、画像の特徴などを利用して必要な変換成分のみを選択し、選択された変換成分を示す情報(平行移動フラグ、回転フラグ、拡大縮小フラグ及びせん断フラグ)と、選択された変換成分とを符号化する。これにより、画像符号化装置100は、有効な変換成分のみを選択的に用いることができるので、符号化効率を向上させることが可能である。このように、画像符号化装置100は、各種変換を柔軟に選択できるとともに、予測画像を生成するために必要な動き情報を削減できるので、符号化効率を向上できる。
(effect)
As described above, the image coding device 100 according to this embodiment selects only the necessary transform components by utilizing the characteristics of the image, and codes the information indicating the selected transform components (translation flag, rotation flag, scaling flag, and shear flag) and the selected transform components. This allows the image coding device 100 to selectively use only valid transform components, thereby improving coding efficiency. In this way, the image coding device 100 can flexibly select various transforms and reduce the motion information required to generate a predicted image, thereby improving coding efficiency.

また、画像符号化装置100は、符号化中の画像に存在する変換の種類の推定結果、又は予測ブロックのサイズなどを用いて変換成分を選択する。これにより、画像符号化装置100は、予測処理の際に探索する動き情報の種類を制限できるので、処理の高速化を図ることができる。 In addition, the image coding device 100 selects the transform components using the estimated results of the type of transform present in the image being coded, the size of the prediction block, or the like. This allows the image coding device 100 to limit the types of motion information to be searched for during prediction processing, thereby speeding up processing.

なお、本実施の形態では、動き情報としてアフィン変換を利用し、変換の種類として平行移動、回転、拡大縮小及びせん断を利用しているが、使用する変換の種類はこの限りではない。 In this embodiment, affine transformation is used as the motion information, and translation, rotation, scaling, and shearing are used as the types of transformation, but the types of transformation used are not limited to these.

例えば、アフィン行列の代わりに、射影変換を表現可能な射影変換行列が用いられてもよい。この場合、動き情報として台形変換を利用できる。これにより、さらに予測ブロックの品質を向上できるとともに、符号化効率の向上が期待できる。 For example, instead of an affine matrix, a projective transformation matrix capable of expressing a projective transformation may be used. In this case, a trapezoidal transformation can be used as motion information. This can be expected to further improve the quality of the predicted block and to improve the coding efficiency.

つまり、本実施の形態に係る画像符号化装置100は、動き成分を複数の変換成分に分割し、変換成分毎に使用の有無を判定できればよい。つまり、画像符号化装置100は、上記以外の行列又は変換を用いてもよいし、動き情報を上記とは異なる変換成分に分割してもよい。 In other words, the image coding device 100 according to this embodiment is only required to divide the motion component into multiple transform components and determine whether or not to use each transform component. In other words, the image coding device 100 may use a matrix or transform other than those described above, or may divide the motion information into transform components other than those described above.

また、上記説明では、各変換成分について、ステップS242、S243、S261、S263、S282、S283、S302及びS303において、インター予測の際にブロック単位でフラグを付与する例を示したが、これらのフラグを画像単位、シーケンス単位、または画像が分割された領域単位で指定してもよい。例えば、この領域とは、画像が4分割された領域である。これにより、インター予測を行う前に予め指定された画像又はシーケンスに含まれるブロックは全て同じ種別の変換成分を用いて符号化される。よって、ブロック単位での判定処理を省略できるため、より符号化効率を向上させることができる。また、ビットストリーム中のフラグの数を減らすことができるので、より符号化効率を向上させることができる。 In the above description, an example was given in which a flag is assigned to each transform component on a block-by-block basis during inter prediction in steps S242, S243, S261, S263, S282, S283, S302, and S303. However, these flags may be specified on an image-by-image, sequence-by-sequence, or area-by-area basis. For example, the area is an area into which an image is divided into four. As a result, all blocks included in an image or sequence that are specified in advance before inter prediction are coded using the same type of transform component. This makes it possible to omit the determination process on a block-by-block basis, thereby further improving coding efficiency. Also, the number of flags in the bitstream can be reduced, thereby further improving coding efficiency.

また、予測動き情報に各種変換成分が存在しなかった場合に、ステップS245、S265、S285及びS305において、予測変換成分として、それぞれ0、0、1、0を代入しているが、代入する値はこの限りではない。例えば、画面全体が回転している場合には、画像の特徴に応じて決定される角度が、予測回転成分として代入されてもよい。さらに、0のような所定角度を予測変換成分に代入する処理と、画像の特徴に応じて決定される角度等を予測変換成分に代入する処理とが、所定の条件に応じて切り替えられてもよい。このように動き情報には変換成分が存在するが、予測動き情報にはその変換成分が存在しない場合に、代入値を切り替えながら予測を行うことで、差分動き情報の値を小さくすることが可能である。これにより、さらに符号化効率を向上ができる。 In addition, in the case where various transformation components are not present in the predicted motion information, 0, 0, 1, and 0 are respectively substituted as the predicted transformation components in steps S245, S265, S285, and S305, but the values substituted are not limited to these. For example, when the entire screen is rotating, an angle determined according to the characteristics of the image may be substituted as the predicted rotation component. Furthermore, a process of substituting a predetermined angle such as 0 for the predicted transformation component and a process of substituting an angle determined according to the characteristics of the image for the predicted transformation component may be switched according to a predetermined condition. In this way, when a transformation component exists in the motion information but does not exist in the predicted motion information, it is possible to reduce the value of the differential motion information by performing prediction while switching the substituted value. This can further improve the coding efficiency.

(実施の形態2)
上記実施の形態1では、各種変換の各々が用いられているかを示す情報として、複数の変換の各々に対応するフラグを用いる例を述べた。本実施の形態では、各種変換成分の組み合わせに対して順位(符号化レベル)を対応付ける。そして、上記情報として、この符号化レベルを指定する情報が用いられる。
(Embodiment 2)
In the above-mentioned first embodiment, a flag corresponding to each of a plurality of transforms is used as information indicating whether each of the transforms is used. In the present embodiment, a rank (coding level) is associated with each combination of various transform components. Then, information specifying this coding level is used as the above-mentioned information.

本実施の形態では、上述したステップS162及びS163の処理に変えて、例えば、下記のような処理が行われる。 In this embodiment, instead of the above-mentioned steps S162 and S163, for example, the following process is performed.

図17は、符号レベルと変換成分との関係の一例を示す図である。図17に示すように、例えば、符号化レベル1は平行移動を含み、符号化レベル2は回転及び拡大縮小を含み、符号化レベル3はせん断を含む。 Figure 17 is a diagram showing an example of the relationship between the coding level and the transformation component. As shown in Figure 17, for example, coding level 1 includes translation, coding level 2 includes rotation and scaling, and coding level 3 includes shearing.

符号化情報選択部141は、画像の特徴又は許容される帯域幅などの条件に応じて、符号化レベルを選択する。 The encoding information selection unit 141 selects the encoding level depending on conditions such as image characteristics or allowable bandwidth.

次に、符号化情報選択部141は、選択された符号化レベル以下の符号化レベルに含まれる変換成分を選択する。例えば、符号化レベル2の場合、符号化レベル2及び符号化レベル1に含まれる平行移動、回転、及び拡大縮小の3種の変換成分が選択される。 Next, the coding information selection unit 141 selects transformation components included in the coding levels equal to or lower than the selected coding level. For example, in the case of coding level 2, three transformation components, translation, rotation, and scaling, included in coding level 2 and coding level 1, are selected.

また、選択された符号化レベルを示す符号化レベル情報181が、符号化される動き情報133に付加される。 In addition, encoding level information 181 indicating the selected encoding level is added to the motion information 133 to be encoded.

図18及び図19は、符号化される動き情報133の一例を示す図である。図18に示すように、動き情報133は、符号化レベル情報181と、差分平行移動成分171と、差分回転成分172と、差分拡大縮小成分173と、差分せん断成分174とを含む。 Figures 18 and 19 are diagrams showing an example of the motion information 133 to be encoded. As shown in Figure 18, the motion information 133 includes encoding level information 181, a differential translation component 171, a differential rotation component 172, a differential scaling component 173, and a differential shear component 174.

また、符号化レベル情報181で示される符号化レベル以下の符号化レベルに含まれる変換成分に対応する差分動き成分が動き情報133に含まれる。例えば、図19に示すように、符号化レベル情報181が符号化レベル2を示す場合、動き情報133は、符号化レベル1及び2の差分平行移動成分171、差分回転成分172及び差分拡大縮小成分173を含み、符号化レベル3の差分せん断成分174を含まない。 In addition, the motion information 133 includes differential motion components corresponding to transformation components included in coding levels equal to or lower than the coding level indicated by the coding level information 181. For example, as shown in FIG. 19, when the coding level information 181 indicates coding level 2, the motion information 133 includes differential translation components 171, differential rotation components 172, and differential scaling components 173 of coding levels 1 and 2, but does not include differential shear component 174 of coding level 3.

以上より、本実施の形態では、符号化に必要な情報量をさらに減らすことができるので、符号化効率を向上できる。なお、ここでは、各種変換のレベルを用いる例を述べたが、これに限定されず、変換成分の組み合わせを示す情報が用いられればよい。例えば、上記では、選択されたレベル以下に含まれる変換成分の全てが指定される例を説明したが、以下のような情報を用いてもよい。例えば、レベル0なら全ての変換成分が用いられず、レベル1なら平行移動のみが用いられ、レベル2なら平行移動と回転とが用いられ、レベル3なら平行移動及び拡大縮小が用いられ、レベル4なら回転及び拡大縮小が用いられ、レベル5なら平行移動、回転及び拡大縮小が用いられ、レベル6なら平行移動及びせん断が用いられ、レベル7なら平行移動、回転、拡大縮小及びせん断が用いられてもよい。このように、レベル毎に変換成分の組み合わせを指定し、各レベルに対応づけられた変換成分が選択されてもよい。 As described above, in this embodiment, the amount of information required for encoding can be further reduced, and therefore the encoding efficiency can be improved. Note that, although an example using various transformation levels has been described here, this is not limiting, and information indicating a combination of transformation components may be used. For example, in the above, an example in which all transformation components included in the selected level or lower are specified has been described, but the following information may be used. For example, at level 0, all transformation components are not used, at level 1, only translation is used, at level 2, translation and rotation are used, at level 3, translation and scaling are used, at level 4, rotation and scaling are used, at level 5, translation, rotation and scaling are used, at level 6, translation and shear are used, and at level 7, translation, rotation, scaling and shear may be used. In this way, a combination of transformation components may be specified for each level, and a transformation component associated with each level may be selected.

(実施の形態3)
発明者らが検証したところ、平行移動、回転、拡大縮小、及びせん断のうち、せん断は、その他の変換に比べて、予測精度の向上に寄与しにくいことが分かった。そこで、本実施の形態では、複数の変換成分に優先度をつける例を説明する。
(Embodiment 3)
The inventors have verified that, among translation, rotation, enlargement/reduction, and shearing, shearing is less likely to contribute to improving prediction accuracy than other transformations. Therefore, in this embodiment, an example of prioritizing multiple transformation components will be described.

複数の変換成分に優先度をつける第1の方法として、上述した図9に示すステップS163の処理のように、ブロックサイズの閾値を変更する。具体的には、せん断の閾値を、回転などの予測精度を大きく向上しうる他の変換に比べて、大きく設定する。これにより、ブロックサイズが小さい場合には、予測精度を向上させにくい変換成分の利用を制限できるので、符号化効率が低下することを抑制できる。同様に、拡大縮小も、小さいブロックサイズではあまり予測精度の向上に寄与しないので、平行移動及び回転に比べて大きい閾値を設定する。 As a first method for prioritizing multiple transform components, the block size threshold is changed as in the process of step S163 shown in FIG. 9 described above. Specifically, the shear threshold is set to be larger than other transforms such as rotation that can significantly improve prediction accuracy. This makes it possible to limit the use of transform components that do not improve prediction accuracy when the block size is small, thereby preventing a decrease in coding efficiency. Similarly, since scaling does not contribute much to improving prediction accuracy with small block sizes, a larger threshold is set for it than for translation and rotation.

発明者らが一般的な動画像で検証したところ、画像の特徴により、順位は異なるが、平行移動、回転、拡大縮小、せん断の順で予測精度を向上させやすいことが分かった。よって、この順で優先度を設定する。これにより、画像の特徴やサイズ又は帯域などの状態に応じて、優先度の低い変換成分が選択されることを制限できる。 The inventors conducted verification using general video images and found that, although the order differs depending on the image features, the order of transformations that tend to improve prediction accuracy is translation, rotation, scaling, and shearing. Therefore, the priorities are set in this order. This makes it possible to restrict the selection of transformation components with low priority depending on the image features, size, bandwidth, and other conditions.

以下、複数の変換成分に優先度をつける第2の方法を説明する。ここでは、せん断を制限する方法の一例について説明する。 Below, we explain a second method for prioritizing multiple transformation components. Here, we explain one example of a method for limiting shear.

まず、アフィン変換の係数の設定の仕方について簡単に説明する。非特許文献2に記載されているように、下記(式3)に示す、アフィン行列aを変数とする評価関数E(a)を設定し、最小化問題を解くことで、アフィン行列の係数を設定する。つまり、評価関数E(a)が最も小さくなる係数(動き情報)が導出される。 First, we will briefly explain how to set the coefficients of the affine transformation. As described in Non-Patent Document 2, the coefficients of the affine matrix are set by setting an evaluation function E(a) with the affine matrix a as a variable, as shown in the following (Equation 3), and solving a minimization problem. In other words, the coefficients (motion information) that minimize the evaluation function E(a) are derived.

Figure 0007664546000003
Figure 0007664546000003

せん断が制限される場合には、アフィン変換前後でx方向とy方向の軸の直交性が保たれる。つまり上記(式2)に示したアフィン変換の係数が、下記(式4)の制約条件を満たす必要がある。 When shear is limited, the orthogonality of the x- and y-axes is maintained before and after the affine transformation. In other words, the coefficients of the affine transformation shown in (Equation 2) above must satisfy the constraints in (Equation 4) below.

Figure 0007664546000004
Figure 0007664546000004

そこで、下記(式5)のように上記(式3)の評価関数に制約条件を追加する。この制約条件により、せん断成分が大きいほど評価関数E(a)の値は大きくなるので、せん断成分が含まれる係数は選択され難くなる。この方法は、ペナルティ法と呼ばれる。また、正の定数μを大きくすることで制約条件の影響が大きくなる。このように下記(式5)の評価関数E(a)が最も小さくなるアフィン行列の係数を求めることで、せん断成分を制限した係数を算出することが可能になる。 Therefore, a constraint is added to the evaluation function of (Equation 3) above, as shown in (Equation 5) below. Due to this constraint, the value of the evaluation function E(a) increases as the shear component increases, making it difficult to select coefficients that include a shear component. This method is called the penalty method. Also, by making the positive constant μ larger, the influence of the constraint increases. In this way, by finding the coefficient of the affine matrix that minimizes the evaluation function E(a) of (Equation 5) below, it becomes possible to calculate the coefficients that limit the shear component.

Figure 0007664546000005
Figure 0007664546000005

発明者らは、小さいμを設定し最小化問題を解き、一定回数探索を繰り返した結果における、その時点での最適解を新しい初期値とし、μの値を大きくした状態で再度最小化問題を解くという処理を予め定められた大きさにμが達するまで繰り返すことにより、係数を算出した。なお、係数を求める方法は、この方法に限るものではない。 The inventors set a small μ and solved the minimization problem, and after repeating the search a certain number of times, used the optimal solution at that point as the new initial value, and then solved the minimization problem again with a larger μ value. This process was repeated until μ reached a predetermined value, and the coefficient was calculated. Note that the method for calculating the coefficient is not limited to this method.

また、ここでは、せん断を制限する(優先度を下げる)方法を説明したが、他の変換に対しても同様の手法を適用できる。 Also, while we've explained how to limit shear (lower priority), similar techniques can be applied to other transformations.

(その他変形例)
上記実施の形態1~3では、動き情報と予測動き情報の差分である差分動き情報を符号化する方法を説明したが、これに限らない。
(Other Modifications)
In the above first to third embodiments, a method for encoding differential motion information, which is the difference between motion information and predictive motion information, has been described, but the present invention is not limited to this.

例えば、HEVCではマージモードと呼ばれる動き予測方法がある。このマージモードでは、差分情報は符号化されず、複数の予測動きベクトル候補から選択された予測動きベクトルがカレントブロックの動きベクトルとして用いられる。そして、選択された予測動きベクトル候補を示す選択情報が符号化される。このような場合にも、上記実施の形態1~3と同様に、画像符号化装置は、複数の変換成分から1以上の変換成分を選択し、選択した変換成分を用いて予測画像を生成してもよい。また、画像符号化装置は、選択された(使用される)変換成分を示す情報(上記フラグ又は符号化レベル情報)を符号化してもよい。 For example, HEVC has a motion prediction method called merge mode. In this merge mode, the difference information is not coded, and a predicted motion vector selected from a plurality of predicted motion vector candidates is used as the motion vector of the current block. Then, selection information indicating the selected predicted motion vector candidate is coded. In such a case, as in the above-mentioned first to third embodiments, the image coding device may select one or more transform components from a plurality of transform components and generate a predicted image using the selected transform components. In addition, the image coding device may code information indicating the selected (used) transform components (the above-mentioned flag or coding level information).

例えば、画像符号化装置は、選択された変換成分を、カレントブロックに空間的または時間的に隣接するブロックの動き情報から予測された予測情報に各種変換成分があるか否かに基づいて、符号化する。この場合、画像符号化装置は、複数の隣接ブロックの動き情報の全てに回転成分が含まれる場合は、その回転成分の平均値を当該カレントブロックの回転成分として用いてもよい。また、画像符号化装置は、複数の隣接ブロックの動き情報の1つだけに回転成分が含まれ、かつ、その回転成分が所定値未満の場合、カレントブロックに回転成分を用いないと決定してもよい。または、画像符号化装置は、その他の隣接する複数のブロックの回転成分をゼロとして、複数の回転成分の平均値を算出し、算出した平均値を回転成分として用いてもよい。 For example, the image coding device codes the selected transformation component based on whether or not various transformation components are present in prediction information predicted from motion information of blocks spatially or temporally adjacent to the current block. In this case, if the motion information of the adjacent blocks all contain a rotation component, the image coding device may use the average value of the rotation components as the rotation component of the current block. Also, if only one of the motion information of the adjacent blocks contains a rotation component and the rotation component is less than a predetermined value, the image coding device may decide not to use a rotation component for the current block. Alternatively, the image coding device may set the rotation components of the other adjacent blocks to zero, calculate the average value of the multiple rotation components, and use the calculated average value as the rotation component.

このような平均値を用いる方法、及び、時間的なスケーリング処理を用いる方法などが知られており、本実施の形態にこれらの変形を適用してもよい。 Methods using such average values and methods using temporal scaling processing are known, and these variations may be applied to this embodiment.

(実施の形態4)
本実施の形態では、上記実施の形態1に係る画像符号化装置により生成されたビットストリームを復号する画像復号装置の実施の形態の一つに関して説明する。
(Embodiment 4)
In this embodiment, an embodiment of an image decoding device that decodes a bit stream generated by the image coding device according to the first embodiment will be described.

図20は、本実施の形態に係る画像復号装置200のブロック図である。画像復号装置200は、エントロピー復号部201、逆量子化部202、逆周波数変換部203、加算部204、イントラ予測部205、ループフィルタ206、フレームメモリ207、インター予測部208、及び切替部209を含む。 Fig. 20 is a block diagram of an image decoding device 200 according to this embodiment. The image decoding device 200 includes an entropy decoding unit 201, an inverse quantization unit 202, an inverse frequency transform unit 203, an addition unit 204, an intra prediction unit 205, a loop filter 206, a frame memory 207, an inter prediction unit 208, and a switching unit 209.

画像復号装置200は、ビットストリーム221を復号することで復号画像227を生成する。例えば、ビットストリーム221は、上記画像符号化装置100により生成される。 The image decoding device 200 generates a decoded image 227 by decoding the bit stream 221. For example, the bit stream 221 is generated by the image encoding device 100.

図21は、本実施の形態に係る画像復号処理のフローチャートである。 Figure 21 is a flowchart of the image decoding process according to this embodiment.

まず、エントロピー復号部201は、1以上のピクチャを含む静止画又は動画が符号化されることで得られたビットストリーム221から動き情報228を復号する(S401)。また、エントロピー復号部201は、ビットストリーム221から係数ブロック222を復号する(S402)。 First, the entropy decoding unit 201 decodes the motion information 228 from the bit stream 221 obtained by encoding a still image or video including one or more pictures (S401). The entropy decoding unit 201 also decodes the coefficient block 222 from the bit stream 221 (S402).

逆量子化部202は、係数ブロック222を逆量子化することで係数ブロック223を生成する。逆周波数変換部203は、係数ブロック223を逆周波数変換することで差分ブロック224を復元する(S403)。 The inverse quantization unit 202 generates a coefficient block 223 by inverse quantizing the coefficient block 222. The inverse frequency transformation unit 203 reconstructs a difference block 224 by inverse frequency transforming the coefficient block 223 (S403).

次に、イントラ予測部205又はインター予測部208は、ステップS401で復号された動き情報228と復号済の復号ブロックとを利用して、予測ブロック230を生成する(S404)。具体的には、イントラ予測部205は、イントラ予測処理により予測ブロック226を生成する。インター予測部208はインター予測処理により予測ブロック229を生成する。切替部209は、予測ブロック226及び229の一方を予測ブロック230として出力する。 Next, the intra prediction unit 205 or the inter prediction unit 208 generates a prediction block 230 using the motion information 228 decoded in step S401 and the decoded block that has already been decoded (S404). Specifically, the intra prediction unit 205 generates a prediction block 226 by an intra prediction process. The inter prediction unit 208 generates a prediction block 229 by an inter prediction process. The switching unit 209 outputs one of the prediction blocks 226 and 229 as the prediction block 230.

次に、加算部204は、差分ブロック224と予測ブロック230とを加算することで復号ブロック225を生成する(S405)。この復号ブロック225は、イントラ予測部205によるイントラ予測処理に利用される。 Next, the adder 204 generates a decoded block 225 by adding the difference block 224 and the predicted block 230 (S405). This decoded block 225 is used for intra prediction processing by the intra prediction unit 205.

次に、画像復号装置200は、ビットストリーム221に含まれる全ブロックが復号されたかを判定する(S406)。例えば、画像復号装置200は、入力されるビットストリーム221が終了したかに応じて、この判定を行う。全ブロックの復号が完了していない場合(S406でNo)、次のブロックに対してステップS401以降の処理が行われる。ビットストリーム221に含まれる全ブロックの復号が終了した場合(S406でYes)、ループフィルタ206は、全復号ブロックを結合するとともにループフィルタ処理を行うことで復号画像227(再構築画像)を生成する(S407)。フレームメモリ207は、復号画像227を格納する。この復号画像227は、インター予測部208によるインター予測処理に用いられる。 Next, the image decoding device 200 determines whether all blocks included in the bit stream 221 have been decoded (S406). For example, the image decoding device 200 makes this determination depending on whether the input bit stream 221 has been completed. If the decoding of all blocks has not been completed (No in S406), the processing from step S401 onwards is performed on the next block. If the decoding of all blocks included in the bit stream 221 has been completed (Yes in S406), the loop filter 206 generates a decoded image 227 (reconstructed image) by combining all the decoded blocks and performing loop filter processing (S407). The frame memory 207 stores the decoded image 227. This decoded image 227 is used for inter prediction processing by the inter prediction unit 208.

なお、ステップS403の逆量子化及び逆周波数変換は、それぞれが別処理として逐次行われても良いし、一括して行われてもよい。なお、HEVCなどの現在主流のコーディング規格では、逆量子化及び逆周波数変換は、一括して行われる。また、復号側においても、符号化側(実施の形態1)と同様に、スケーリング等の表現が用いられる場合がある。 The inverse quantization and inverse frequency transform in step S403 may be performed sequentially as separate processes, or may be performed together. In the currently mainstream coding standards such as HEVC, the inverse quantization and inverse frequency transform are performed together. Also, on the decoding side, as on the encoding side (embodiment 1), expressions such as scaling may be used.

次に、動き情報復号処理(S401)に関して、図22を用いて説明を行う。図22は、本実施の形態に係る動き情報復号処理(S401)のフローチャートである。 Next, the motion information decoding process (S401) will be described with reference to FIG. 22. FIG. 22 is a flowchart of the motion information decoding process (S401) according to this embodiment.

まず、エントロピー復号部201は、ビットストリーム221から差分動き情報を復号する(S421)。また、エントロピー復号部201は、予測動き情報を導出するための情報を復号する(S422)。なお、予測動き情報を導出するための情報、及び差分動き情報は、動き情報228に含まれる。次に、インター予測部208は、ステップS422で取得された情報から予測動き情報を導出し、導出された予測動き情報と、ステップS421で取得された差分動き情報とから動き情報を生成する(S423)。 First, the entropy decoding unit 201 decodes the differential motion information from the bitstream 221 (S421). The entropy decoding unit 201 also decodes information for deriving predictive motion information (S422). Note that the information for deriving predictive motion information and the differential motion information are included in the motion information 228. Next, the inter prediction unit 208 derives predictive motion information from the information obtained in step S422, and generates motion information from the derived predictive motion information and the differential motion information obtained in step S421 (S423).

以下、差分動き情報復号(S421)と動き情報生成(S423)に関して詳細を述べる。 The differential motion information decoding (S421) and motion information generation (S423) are described in detail below.

差分動き情報の復号処理(S421)に関して、図23を用いて説明を行う。図23は、本実施の形態に係る差分動き情報の復号処理(S421)のフローチャートである。 The process of decoding the residual motion information (S421) will be described with reference to FIG. 23. FIG. 23 is a flowchart of the process of decoding the residual motion information (S421) according to this embodiment.

最初に、エントロピー復号部201は、差分平行移動成分の復号処理を行う(S441~S443)。まず、エントロピー復号部201は、ビットストリーム221から、平行移動が存在するかを示す(動き情報228に差分平行移動成分が含まれているかを示す)平行移動フラグを復号する(S441)。なお、動き情報228の構成及び動き情報228に含まれる各種情報の意味は、実施の形態1の動き情報133の構成及び動き情報133に含まれる各種情報の意味と同様である。次に、エントロピー復号部201は、平行移動フラグを用いて、平行移動が存在するかを判定する(S442)。 First, the entropy decoding unit 201 performs a decoding process of the differential translation component (S441 to S443). First, the entropy decoding unit 201 decodes a translation flag indicating whether a translation exists (indicating whether the motion information 228 includes a differential translation component) from the bit stream 221 (S441). Note that the structure of the motion information 228 and the meanings of the various information included in the motion information 228 are similar to the structure of the motion information 133 and the meanings of the various information included in the motion information 133 in the first embodiment. Next, the entropy decoding unit 201 uses the translation flag to determine whether a translation exists (S442).

平行移動フラグにより平行移動が存在することが示される場合(S442でYes)、エントロピー復号部201は、ビットストリーム221から差分平行移動成分を復号する(S443)。平行移動フラグにより平行移動が存在しないことが示される場合(S442でNo)、エントロピー復号部201は、差分平行移動成分を復号せず、次の処理ステップ(S444)を行う。 If the translation flag indicates that translation is present (Yes in S442), the entropy decoding unit 201 decodes the residual translation component from the bit stream 221 (S443). If the translation flag indicates that no translation is present (No in S442), the entropy decoding unit 201 does not decode the residual translation component and performs the next processing step (S444).

続いて、エントロピー復号部201は、差分回転成分の復号処理を行う(S444~S446)。エントロピー復号部201は、ビットストリーム221から、回転が存在するかを示す(動き情報228に差分回転成分が含まれているかを示す)回転フラグを復号する(S444)。エントロピー復号部201は、回転フラグを用いて、回転が存在するかを判定する(S445)。 Then, the entropy decoding unit 201 performs a decoding process of the residual rotation component (S444 to S446). The entropy decoding unit 201 decodes a rotation flag from the bit stream 221 indicating whether rotation is present (indicating whether the motion information 228 includes a residual rotation component) (S444). The entropy decoding unit 201 uses the rotation flag to determine whether rotation is present (S445).

回転フラグにより回転が存在することが示される場合(S445でYes)、エントロピー復号部201は、ビットストリーム221から差分回転成分を復号する(S446)。回転フラグにより回転が存在しないことが示される場合(S445でNo)、エントロピー復号部201は、次の処理ステップ(S447)を行う。 If the rotation flag indicates that rotation is present (Yes in S445), the entropy decoding unit 201 decodes the residual rotation component from the bit stream 221 (S446). If the rotation flag indicates that no rotation is present (No in S445), the entropy decoding unit 201 performs the next processing step (S447).

次に、エントロピー復号部201は、差分拡大縮小成分の復号処理を行う(S447~S449)。エントロピー復号部201は、ビットストリーム221から、拡大縮小が存在するかを示す(動き情報228に差分拡大縮小成分が含まれているかを示す)拡大縮小フラグを復号する(S447)。エントロピー復号部201は、拡大縮小フラグを用いて、拡大縮小が存在するかを判定する(S448)。 Next, the entropy decoding unit 201 performs a decoding process of the residual scaling component (S447 to S449). The entropy decoding unit 201 decodes a scaling flag from the bit stream 221 indicating whether scaling is present (indicating whether the motion information 228 includes a residual scaling component) (S447). The entropy decoding unit 201 uses the scaling flag to determine whether scaling is present (S448).

拡大縮小フラグにより拡大縮小が存在することが示される場合(S448でYes)、エントロピー復号部201は、ビットストリーム221から差分拡大縮小成分を復号する(S449)。拡大縮小フラグにより拡大縮小が存在しないことが示される場合(S448でNo)、エントロピー復号部201は、次の処理ステップ(S450)を行う。 If the scaling flag indicates that scaling is present (Yes in S448), the entropy decoding unit 201 decodes the differential scaling components from the bitstream 221 (S449). If the scaling flag indicates that scaling is not present (No in S448), the entropy decoding unit 201 performs the next processing step (S450).

最後に、エントロピー復号部201は、差分せん断成分の復号処理を行う(S450~S452)。エントロピー復号部201は、ビットストリーム221から、せん断成分が存在するかを示す(動き情報228に差分せん断成分が含まれているかを示す)せん断フラグを復号する(S450)。エントロピー復号部201は、せん断フラグを用いて、せん断成分が存在するかを判定する(S451)。 Finally, the entropy decoding unit 201 performs a decoding process of the differential shear component (S450 to S452). The entropy decoding unit 201 decodes a shear flag indicating whether a shear component is present (indicating whether the motion information 228 includes a differential shear component) from the bit stream 221 (S450). The entropy decoding unit 201 uses the shear flag to determine whether a shear component is present (S451).

せん断フラグによりせん断が存在することが示される場合(S451でYes)、エントロピー復号部201は、ビットストリーム221から差分せん断成分を復号する(S452)。その後、エントロピー復号部201は、差分動き情報復号処理(S421)を終了する。せん断フラグにより回転が存在しないことが示される場合(S451でNo)、エントロピー復号部201は、差分動き情報復号処理(S421)を終了する。 If the shear flag indicates that shear is present (Yes in S451), the entropy decoding unit 201 decodes the differential shear component from the bitstream 221 (S452). The entropy decoding unit 201 then terminates the differential motion information decoding process (S421). If the shear flag indicates that no rotation is present (No in S451), the entropy decoding unit 201 terminates the differential motion information decoding process (S421).

続いて、動き情報生成処理(S423)に関して図24~図28を用いて説明する。 Next, the motion information generation process (S423) will be explained using Figures 24 to 28.

図24は、本実施の形態に係る動き情報生成処理(S423)のフローチャートである。 Figure 24 is a flowchart of the motion information generation process (S423) according to this embodiment.

まず、インター予測部208は、ステップS422で取得した情報を用いて予測動き情報を導出する。具体的には、インター予測部208は、復号対象であるカレントブロックに空間的又は時間的に隣接する復号済ブロックの動き情報を取得し、取得した動き情報を用いて予測動き情報を導出する(S461)。 First, the inter prediction unit 208 derives predictive motion information using the information acquired in step S422. Specifically, the inter prediction unit 208 acquires motion information of a decoded block that is spatially or temporally adjacent to the current block to be decoded, and derives predictive motion information using the acquired motion information (S461).

最初に、インター予測部208は、差分動き情報及び予測動き情報から平行移動成分を生成する(S462)。図25は、この平行移動成分の生成処理(S462)のフローチャートである。 First, the inter prediction unit 208 generates a translation component from the differential motion information and the predicted motion information (S462). FIG. 25 is a flowchart of the process of generating this translation component (S462).

まず、インター予測部208は、ステップS421で差分平行移動成分が取得されたかを判定する(S481)。 First, the inter prediction unit 208 determines whether the residual translation component was obtained in step S421 (S481).

差分平行移動成分が取得されている場合(S481でYes)、インター予測部208は、ステップS461で取得された予測動き情報に、平行移動成分が存在するかを判定する(S482)。 If a residual translation component has been acquired (Yes in S481), the inter prediction unit 208 determines whether a translation component is present in the predicted motion information acquired in step S461 (S482).

予測動き情報に平行移動が存在しない場合(S482でNo)、インター予測部208は、予測平行移動成分を0に設定する(S483)。予測動き情報に平行移動成分が存在する場合(S482でYes)、インター予測部208は、予測動き情報の平行移動成分を予測平行移動成分として設定する(S484)。 If the predictive motion information does not include a translation component (No in S482), the inter prediction unit 208 sets the predicted translation component to 0 (S483). If the predictive motion information includes a translation component (Yes in S482), the inter prediction unit 208 sets the translation component of the predictive motion information as the predicted translation component (S484).

インター予測部208は、ステップS483又はS484で取得された予測平行移動成分を、差分平行移動成分に加算することで平行移動成分を生成する(S485)。 The inter prediction unit 208 generates a translation component by adding the predicted translation component obtained in step S483 or S484 to the residual translation component (S485).

差分平行移動成分が存在しない場合(S482でNo)、インター予測部208は、平行移動成分に関する処理(S462)を終了する。 If there are no residual translation components (No in S482), the inter prediction unit 208 ends the processing related to the translation components (S462).

次に、インター予測部208は、差分動き情報及び予測動き情報から回転成分を生成する(S463)。図26は、この回転成分の生成処理(S463)のフローチャートである。 Next, the inter prediction unit 208 generates a rotation component from the differential motion information and the predictive motion information (S463). FIG. 26 is a flowchart of this rotation component generation process (S463).

まず、インター予測部208は、ステップS421で差分回転成分が取得されたかを判定する(S501)。 First, the inter prediction unit 208 determines whether the residual rotation components have been obtained in step S421 (S501).

差分回転成分が取得されている場合(S501でYes)、インター予測部208は、ステップS461で取得された予測動き情報に、回転成分が存在するかを判定する(S502)。 If a differential rotation component has been acquired (Yes in S501), the inter prediction unit 208 determines whether a rotation component is present in the predicted motion information acquired in step S461 (S502).

予測動き情報に回転が存在しない場合(S502でNo)、インター予測部208は、予測回転成分を0に設定する(S503)。予測動き情報に回転成分が存在する場合(S502でYes)、インター予測部208は、予測動き情報の回転成分を予測回転成分として設定する(S504)。 If the predictive motion information does not include rotation (No in S502), the inter prediction unit 208 sets the predicted rotation component to 0 (S503). If the predictive motion information includes a rotation component (Yes in S502), the inter prediction unit 208 sets the rotation component of the predictive motion information as the predicted rotation component (S504).

インター予測部208は、ステップS503又はS504で取得された予測回転成分を、差分回転成分に加算することで回転成分を生成する(S505)。 The inter prediction unit 208 generates a rotation component by adding the predicted rotation component obtained in step S503 or S504 to the residual rotation component (S505).

差分回転成分が存在しない場合(S501でNo)、インター予測部208は、回転成分に関する処理(S463)を終了する。 If there are no residual rotation components (No in S501), the inter prediction unit 208 ends the processing related to the rotation components (S463).

続いて、インター予測部208は、差分動き情報及び予測動き情報から拡大縮小成分を生成する(S464)。図27は、この拡大縮小成分の生成処理(S464)のフローチャートである。 Next, the inter prediction unit 208 generates scaling components from the differential motion information and the predictive motion information (S464). FIG. 27 is a flowchart of the process of generating the scaling components (S464).

まず、インター予測部208は、ステップS421で差分拡大縮小成分が取得されたかを判定する(S521)。 First, the inter prediction unit 208 determines whether the residual scaling component was obtained in step S421 (S521).

差分拡大縮小成分が取得されている場合(S521でYes)、インター予測部208は、ステップS461で取得された予測動き情報に、拡大縮小成分が存在するかを判定する(S522)。 If a differential scaling component has been acquired (Yes in S521), the inter prediction unit 208 determines whether a scaling component is present in the prediction motion information acquired in step S461 (S522).

予測動き情報に拡大縮小が存在しない場合(S522でNo)、インター予測部208は、予測拡大縮小成分を1に設定する(S523)。予測動き情報に拡大縮小成分が存在する場合(S523でYes)、インター予測部208は、予測動き情報の拡大縮小成分を予測拡大縮小成分として設定する(S524)。 If the predictive motion information does not include scaling (No in S522), the inter prediction unit 208 sets the predicted scaling component to 1 (S523). If the predictive motion information includes a scaling component (Yes in S523), the inter prediction unit 208 sets the scaling component of the predictive motion information as the predicted scaling component (S524).

インター予測部208は、ステップS523及びS524で取得された予測拡大縮小成分を、差分拡大縮小成分に加算することで拡大縮小成分を生成する(S525)。 The inter prediction unit 208 generates the scaling components by adding the predicted scaling components obtained in steps S523 and S524 to the residual scaling components (S525).

差分拡大縮小成分が存在しない場合(S521でNo)、インター予測部208は、拡大縮小成分に関する処理(S464)を終了する。 If no residual scaling components exist (No in S521), the inter prediction unit 208 ends the processing related to the scaling components (S464).

最後に、インター予測部208は、差分動き情報及び予測動き情報からせん断成分を生成する(S465)。図28は、このせん断成分の生成処理(S465)のフローチャートである。 Finally, the inter prediction unit 208 generates a shearing component from the differential motion information and the predictive motion information (S465). FIG. 28 is a flowchart of the shearing component generation process (S465).

まず、インター予測部208は、ステップS421で差分せん断成分が取得されたかを判定する(S541)。 First, the inter prediction unit 208 determines whether a differential shear component has been obtained in step S421 (S541).

差分せん断成分が取得されている場合(S541でYes)、インター予測部208は、ステップS461で取得された予測動き情報に、せん断成分が存在するかを判定する(S542)。 If a differential shear component has been acquired (Yes in S541), the inter prediction unit 208 determines whether a shear component is present in the predicted motion information acquired in step S461 (S542).

予測動き情報にせん断が存在しない場合(S542でNo)、インター予測部208は、予測せん断成分を0に設定する(S543)。予測動き情報にせん断成分が存在する場合(S542でYes)、インター予測部208は、予測動き情報のせん断成分を予測せん断成分として設定する(S544)。 If no shear is present in the predictive motion information (No in S542), the inter prediction unit 208 sets the predicted shear component to 0 (S543). If a shear component is present in the predictive motion information (Yes in S542), the inter prediction unit 208 sets the shear component of the predictive motion information as the predicted shear component (S544).

インター予測部208は、ステップS543及びS544で取得された予測せん断成分を差分せん断成分に加算することでせん断成分を生成する(S545)。 The inter prediction unit 208 generates a shear component by adding the predicted shear component obtained in steps S543 and S544 to the differential shear component (S545).

差分せん断成分が存在しない場合(S541でNo)、インター予測部208は、せん断成分に関する処理(S465)を終了する。 If no differential shear component exists (No in S541), the inter prediction unit 208 ends the processing related to the shear component (S465).

インター予測部208は、ブロック毎にこれら一連の処理を行った後に、動き情報生成処理(S423)を終了する。 After performing this series of processes for each block, the inter prediction unit 208 ends the motion information generation process (S423).

なお、実施の形態1で説明したとおり、各フラグは、ブロック毎に設けられていてもよいし、画像単位、シーケンス単位、又は画像が分割された領域単位で設けられていてもよい。ブロック単位以外の単位でフラグが設けられ、当該フラグにより変換成分が指定される場合には、画像復号装置は、その指定された単位に含まれる全ブロックに対して、同じ種別の変換成分を用いて復号処理を行う。これにより、画像復号装置は、判定ステップ等を省略でき、少ない情報量かつ少ない処理負荷で、予測精度の高い復号処理を実行できる。 As described in the first embodiment, each flag may be provided for each block, or may be provided for each image, sequence, or region into which an image is divided. When a flag is provided for a unit other than a block and a transform component is specified by the flag, the image decoding device performs a decoding process using the same type of transform component for all blocks included in the specified unit. This allows the image decoding device to omit a determination step, etc., and to perform a decoding process with high prediction accuracy with a small amount of information and a small processing load.

また、実施の形態1と同様に、各種変換成分の生成処理(S462~S465)の順序は、図24に示す順序に限らない。また、ステップS462~S465の処理の一部又は全てが並列に行われてもよい。または、これらの処理に優劣が設定され、優先度が高い処理から順番に行われてもよい。 As in the first embodiment, the order of the processes for generating various transformation components (S462 to S465) is not limited to the order shown in FIG. 24. Some or all of the processes in steps S462 to S465 may be performed in parallel. Alternatively, an order of priority may be assigned to these processes, and they may be performed in order starting from the process with the highest priority.

また、実施の形態2のように、各種フラグの代わりに符号化レベルを示す符号化レベル情報が用いられる場合には、画像復号装置200は、上述した各種フラグの代わりに符号化レベル情報をビットストリーム221から復号する。また、画像復号装置は、各種フラグの代わりに、符号化レベル情報で示される情報を用いて、変換成分の有無を判定する。 When encoding level information indicating the encoding level is used instead of the various flags as in the second embodiment, the image decoding device 200 decodes the encoding level information from the bit stream 221 instead of the various flags described above. The image decoding device also uses the information indicated by the encoding level information instead of the various flags to determine the presence or absence of a transformation component.

また、実施の形態1で説明したように、ブロックサイズにより、各種変換成分の有無が指定されている場合には、画像復号装置200は、ブロックサイズをビットストリーム221から復号し、当該ブロックサイズを用いて、各種変換成分の有無を判定する。 Also, as described in embodiment 1, when the presence or absence of various transform components is specified by the block size, the image decoding device 200 decodes the block size from the bit stream 221 and uses the block size to determine the presence or absence of various transform components.

(効果)
以上より、本実施の形態に係る画像復号装置200は、予測ブロック生成するために必要な変換成分のみが符号化されたビットストリーム221を復号できる。また、画像復号装置200は、符号量が少なくなるように生成されたビットストリーム221を、高次元の動き予測を用いて復号できるので、より高画質な画像を再生できる。
(effect)
As described above, the image decoding device 200 according to this embodiment can decode the bit stream 221 in which only the transform components necessary for generating a predictive block are coded. Furthermore, the image decoding device 200 can decode the bit stream 221 generated so as to reduce the amount of code by using high-dimensional motion prediction, and can therefore reproduce higher quality images.

なお、本実施の形態では、変換成分として、平行移動、回転、拡大縮小、及びせん断が動き情報に含まれる例を述べたが、利用できる変換はこの限りではない。例えば、台形変換が利用されてもよい。これにより、複雑な変換を表現することができるため、画像復号装置は、より高精度な予測画像を生成できる。 In the present embodiment, an example has been described in which the motion information includes translation, rotation, scaling, and shear as transformation components, but the transformations that can be used are not limited to these. For example, a trapezoidal transformation may also be used. This allows complex transformations to be expressed, enabling the image decoding device to generate a more accurate predicted image.

つまり、本実施の形態に係る画像復号装置200は、動き情報が複数の変換成分に分割し、変換成分毎に復号するかしないかを決定できればよい。つまり、画像復号装置200は、上記以外の変換成分を用いてもよい。 In other words, the image decoding device 200 according to this embodiment is only required to divide the motion information into multiple transform components and determine whether or not to decode each transform component. In other words, the image decoding device 200 may use transform components other than those described above.

また、動き情報と予測動き情報との差分である差分動き情報を復号する場合に限らず、例えばマージモードなどにも本実施の形態の手法を応用できる。 In addition, the method of this embodiment can be applied not only to the case of decoding differential motion information, which is the difference between motion information and predictive motion information, but also to merge modes, for example.

(実施の形態5)
上記実施の形態1~4では、アフィン変換をインター予測に用いる例を述べたが、本実施の形態ではアフィン変換をイントラ予測に用いる例を述べる。
(Embodiment 5)
In the above first to fourth embodiments, the affine transformation is used for inter prediction, but in the present embodiment, the affine transformation is used for intra prediction.

本実施の形態に係る画像符号化装置(又は画像復号装置)は、図29に示すように、カレントブロックと同一ピクチャ内の既に処理済み(符号化済み又は復号済み)のブロックの画素値を、カレントブロックの画素値として用いる。つまり、処理済みのブロックの画素値がカレントブロックにコピーされる。さらに、本実施に形態では、図30に示すように、このコピーの際に、平行移動だけでなく、回転、拡大縮小及びせん断等の各種変換が用いられる。 As shown in FIG. 29, the image coding device (or image decoding device) according to this embodiment uses the pixel values of a block that has already been processed (already coded or decoded) in the same picture as the current block as the pixel values of the current block. In other words, the pixel values of the processed block are copied to the current block. Furthermore, in this embodiment, as shown in FIG. 30, various transformations such as rotation, scaling, shearing, and not just translation are used during this copying.

つまり、本実施の形態では、イントラ予測部109(又は205)は、処理済みのブロックを示す参照情報を用いて予測ブロックを生成する。この参照情報は、平行移動成分、回転成分、拡大縮小成分及びせん断成分等の各種変換成分を含む。 In other words, in this embodiment, the intra prediction unit 109 (or 205) generates a prediction block using reference information indicating a processed block. This reference information includes various transformation components such as a translation component, a rotation component, a scaling component, and a shear component.

このような場合において、上記実施の形態1~4と同様に、各種変換成分の各々が使用されるか否かを示す情報(各種フラグ又は符号化レベル)を符号化(又は復号)することで、任意の変換成分を選択的に使用できる。 In such a case, as in the above-mentioned embodiments 1 to 4, any transform component can be selectively used by encoding (or decoding) information (various flags or encoding levels) indicating whether each of the various transform components is to be used or not.

なお、イントラ予測では、回転、拡大縮小及びせん断のうち、拡大縮小、回転、せん断の順に、予測精度の向上に寄与しやすい。よって、この順に、優先度を付けることが好ましい。なお、複数の変換に優先度つける方法は、実施の形態3で説明した方法を用いることができる。 In intra prediction, among rotation, scaling, and shearing, scaling is most likely to contribute to improving prediction accuracy, followed by rotation and shearing in that order. Therefore, it is preferable to prioritize in this order. The method of prioritizing multiple transformations can be the method described in embodiment 3.

また、画像の種別等に応じて、この優先度を変更してもよい。例えば、自然画等では、上記の拡大縮小、回転、せん断の順に、優先度を付け、地図情報などのスクリーンコンテンツでは、回転、拡大縮小、せん断の順に、優先度を付けてもよい。 The priority may be changed depending on the type of image. For example, for natural images, the priority may be set in the order of zoom, rotation, and shear, while for screen content such as map information, the priority may be set in the order of rotation, zoom, and shear.

以上、実施の形態1~3、5で説明したように、実施の形態に係る画像符号化装置は、画像符号化する画像符号化装置であって、図31に示す処理を行う。 As described above in the first to third and fifth embodiments, the image coding device according to the embodiment is an image coding device that codes images and performs the process shown in FIG. 31.

まず、画像符号化装置は、符号化対象であるカレントブロックの参照先を示す参照情報として、平行移動成分と複数の非平行移動成分とを含む複数の変換成分のうち2以上の変換成分を選択する(S601)。ここで、参照情報とは、インター予測における動き情報、又は、イントラ予測における、参照先の処理済みのブロックを示す情報である。また、複数の非平行移動成分は、例えば、回転成分、拡大縮小成分及びせん断成分を含む。 First, the image coding device selects two or more transform components, including a translation component and multiple non-translation components, as reference information indicating the reference destination of the current block to be coded (S601). Here, the reference information is motion information in inter prediction, or information indicating a processed block to be referenced in intra prediction. The multiple non-translation components include, for example, a rotation component, a scaling component, and a shear component.

次に、画像符号化装置は、参照情報を用いて予測画像を生成する(S602)。次に、画像符号化装置は、カレントブロックを、予測画像を用いて符号化する(S603)。 Next, the image encoding device generates a predicted image using the reference information (S602). Next, the image encoding device encodes the current block using the predicted image (S603).

また、画像符号化装置は、複数の変換成分の中から、選択された2以上の変換成分を特定するための選択情報を符号化する(S604)。例えば、選択情報は、複数の変換成分のそれぞれに対応し、対応する変換成分が選択されたか否かを示すフラグ(平行移動フラグ、回転フラグ、拡大縮小フラグ及びせん断フラグ)を含む。または、選択情報は、複数の変換成分の一部又は全てを含む組であって、互いに異なる組を示す複数の符号化レベルから1つの符号化レベルを示す。この場合、ステップS601において、選択情報で示される符号化レベルで示される組に含まれる2以上の変換成分が選択される。 The image encoding device also encodes selection information for identifying two or more selected transform components from among the multiple transform components (S604). For example, the selection information includes flags (translation flag, rotation flag, scaling flag, and shear flag) corresponding to each of the multiple transform components and indicating whether the corresponding transform component has been selected. Alternatively, the selection information is a set including some or all of the multiple transform components, and indicates one encoding level from multiple encoding levels indicating mutually different sets. In this case, in step S601, two or more transform components included in the set indicated by the encoding level indicated by the selection information are selected.

また、画像符号化装置は、選択情報を、ブロック毎に符号化してもよいし、ピクチャ単位で符号化してもよいし、シーケンス単位で符号化してもよいし、ピクチャが分割された領域単位で符号化してもよい。つまり、画像符号化装置は、カレントブロックを含む画像に対して共通に用いられる一つの選択情報を符号化してもよいし、カレントブロックを含むシーケンスに対して共通に用いられる一つの選択情報を符号化してもよいし、カレントブロックを含む領域に対して共通に用いられる一つの選択情報を符号化してもよい。 The image coding device may code the selection information for each block, for each picture, for each sequence, or for each area into which a picture is divided. In other words, the image coding device may code one selection information commonly used for images including the current block, may code one selection information commonly used for sequences including the current block, or may code one selection information commonly used for areas including the current block.

次に、画像符号化装置は、カレントブロックとは異なる符号化済みブロックの参照情報を用いて、カレントブロックの参照情報を符号化する(S605)。例えば、画像符号化装置は、符号化済みブロックの参照情報とカレントブロックの参照情報との差分である差分参照情報を符号化する。 Next, the image encoding device encodes the reference information of the current block using the reference information of a previously encoded block that is different from the current block (S605). For example, the image encoding device encodes differential reference information that is the difference between the reference information of the previously encoded block and the reference information of the current block.

なお、ステップS601において、画像符号化装置は、カレントブロックのサイズに応じて2以上の変換成分を選択してもよい。この場合、選択情報は、カレントブロックのサイズを示す。例えば、選択情報は、最大符号化単位(CU)のサイズを示す情報と、各符号化単位をさらに分割するか否かを示す情報とを含む。 In step S601, the image coding device may select two or more transform components depending on the size of the current block. In this case, the selection information indicates the size of the current block. For example, the selection information includes information indicating the size of the maximum coding unit (CU) and information indicating whether each coding unit is to be further divided.

また、例えば、画像符号装置は、カレントブロックのサイズが第1閾値未満である場合にはせん断成分を選択しない。 Also, for example, the image coding device does not select a shear component if the size of the current block is less than the first threshold.

また、ステップS601において、画像符号化装置は、平行移動成分、回転成分、拡大縮小成分、せん断成分の順に優先して2以上の変換成分を選択してもよい。例えば、実施の形態3で説明した手法を用いて優先度を設定できる。 In addition, in step S601, the image coding device may select two or more transformation components by prioritizing them in the following order: translation component, rotation component, scaling component, and shear component. For example, the priorities can be set using the method described in embodiment 3.

また、実施の形態4及び5で説明したように、実施の形態に係る画像復号装置は、画像が符号化されることにより得られたビットストリームを復号する画像復号装置であって、図32に示す処理を行う。 As described in the fourth and fifth embodiments, the image decoding device according to the embodiment is an image decoding device that decodes a bit stream obtained by encoding an image, and performs the process shown in FIG. 32.

まず、画像復号装置は、平行移動成分と複数の非平行移動成分とを含む複数の変換成分の中から2以上の変換成分を特定するための選択情報を、ビットストリームから復号する(S611)。ここで、複数の非平行移動成分は、例えば、回転成分、拡大縮小成分及びせん断成分を含む。また、選択情報は、例えば、複数の変換成分のそれぞれに対応し、対応する変換成分が選択されたか否かを示すフラグ(平行移動フラグ、回転フラグ、拡大縮小フラグ及びせん断フラグ)を含む。または、選択情報は、複数の変換成分の一部又は全てを含む組であって、互いに異なる組を示す複数の符号化レベルから1つの符号化レベルを示す。 First, the image decoding device decodes, from the bitstream, selection information for identifying two or more transformation components from among a plurality of transformation components including a translation component and a plurality of non-translation components (S611). Here, the plurality of non-translation components include, for example, a rotation component, a scaling component, and a shear component. The selection information also includes, for example, flags (translation flag, rotation flag, scaling flag, and shear flag) corresponding to each of the plurality of transformation components and indicating whether the corresponding transformation component has been selected. Alternatively, the selection information indicates one coding level from a plurality of coding levels indicating a set including some or all of the plurality of transformation components and different sets.

また、画像復号装置は、選択情報を、ブロック毎に復号してもよいし、ピクチャ単位で復号してもよいし、シーケンス単位で復号してもよいし、ピクチャが分割された領域単位で復号してもよい。つまり、画像復号装置は、カレントブロックを含む画像に対して共通に用いられる一つの選択情報を復号してもよいし、カレントブロックを含むシーケンスに対して共通に用いられる一つの選択情報を復号してもよいし、カレントブロックを含む領域に対して共通に用いられる一つの選択情報を復号してもよい。 The image decoding device may decode the selection information for each block, for each picture, for each sequence, or for each region into which a picture is divided. In other words, the image decoding device may decode one selection information commonly used for an image including the current block, may decode one selection information commonly used for a sequence including the current block, or may decode one selection information commonly used for a region including the current block.

また、画像復号装置は、復号対象であるカレントブロックの参照先を示す参照情報として、復号された選択情報で特定される2以上の変換成分を選択する(S612)。ここで、参照情報とは、インター予測における動き情報、又は、イントラ予測における、参照先の処理済みのブロックを示す情報である。なお、選択情報が符号化レベルを示す場合には、画像復号装置は、選択情報で示される符号化レベルで示される組に含まれる2以上の変換成分を選択する。 The image decoding device also selects two or more transform components identified by the decoded selection information as reference information indicating the reference destination of the current block to be decoded (S612). Here, the reference information is motion information in inter prediction, or information indicating a processed block to be referenced in intra prediction. Note that, if the selection information indicates an encoding level, the image decoding device selects two or more transform components included in a set indicated by the encoding level indicated by the selection information.

次に、画像復号装置は、カレントブロックとは異なる復号済みブロックの参照情報を用いて、カレントブロックの参照情報をビットストリームから復号する(S613)。具体的には、画像復号装置は、ビットストリームから、選択された変換成分の差分参照情報を復号する。次に、画像復号装置は、選択された変換成分毎に、得られた差分復号情報と、復号済みブロックの参照情報とを加算することで、参照情報を生成する。 Next, the image decoding device decodes the reference information of the current block from the bit stream using the reference information of a decoded block different from the current block (S613). Specifically, the image decoding device decodes the differential reference information of the selected transform component from the bit stream. Next, the image decoding device generates reference information for each selected transform component by adding the obtained differential decoding information and the reference information of the decoded block.

次に、画像復号装置は、参照情報を用いて予測画像を生成する(S614)。次に、画像復号装置は、ビットストリームからカレントブロックを、予測画像を用いて復号する(S615)。 Next, the image decoding device generates a predicted image using the reference information (S614). Next, the image decoding device decodes the current block from the bitstream using the predicted image (S615).

なお、選択情報は、カレントブロックのサイズを示し、ステップS612では、画像復号装置は、カレントブロックのサイズに応じて2以上の変換成分を選択してもよい。例えば、選択情報は、最大符号化単位(CU)のサイズを示す情報と、各符号化単位をさらに分割するか否かを示す情報とを含む。画像復号装置は、これらの情報を用いて、カレントブロックサイズを判定する。 The selection information indicates the size of the current block, and in step S612, the image decoding device may select two or more transform components depending on the size of the current block. For example, the selection information includes information indicating the size of the maximum coding unit (CU) and information indicating whether each coding unit is to be further divided. The image decoding device uses this information to determine the current block size.

また、例えば、画像復号装置は、カレントブロックのサイズが第1閾値以下である場合には、せん断成分を選択しない。 Also, for example, the image decoding device does not select a shear component if the size of the current block is equal to or smaller than the first threshold.

また、ステップS612において、画像符号化装置は、平行移動成分、回転成分、拡大縮小成分、せん断成分の順に優先して2以上の変換成分を選択してもよい。例えば、実施の形態3で説明した手法を用いて優先度を設定できる。 In addition, in step S612, the image encoding device may select two or more transformation components by prioritizing them in the following order: translation component, rotation component, scaling component, and shear component. For example, the priorities can be set using the method described in embodiment 3.

以上、実施の形態に係る画像符号化方法に及び画像復号方法ついて説明したが、本発明は、この実施の形態に限定されるものではない。 The image encoding method and image decoding method according to the embodiment have been described above, but the present invention is not limited to this embodiment.

また、上記実施の形態に係る画像符号化装置及び画像復号装置に含まれる各処理部は典型的には集積回路であるLSIとして実現される。これらは個別に1チップ化されてもよいし、一部又は全てを含むように1チップ化されてもよい。 Furthermore, each processing unit included in the image encoding device and image decoding device according to the above embodiments is typically realized as an LSI, which is an integrated circuit. These may be individually implemented as single chips, or may be integrated into a single chip to include some or all of them.

また、集積回路化はLSIに限るものではなく、専用回路又は汎用プロセッサで実現してもよい。LSI製造後にプログラムすることが可能なFPGA(Field Programmable Gate Array)、又はLSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用してもよい。 In addition, the integrated circuit is not limited to LSI, but may be realized by a dedicated circuit or a general-purpose processor. It is also possible to use an FPGA (Field Programmable Gate Array) that can be programmed after LSI manufacturing, or a reconfigurable processor that can reconfigure the connections and settings of circuit cells inside the LSI.

上記各実施の形態において、各構成要素は、専用のハードウェアで構成されるか、各構成要素に適したソフトウェアプログラムを実行することによって実現されてもよい。各構成要素は、CPU又はプロセッサなどのプログラム実行部が、ハードディスク又は半導体メモリなどの記録媒体に記録されたソフトウェアプログラムを読み出して実行することによって実現されてもよい。 In each of the above embodiments, each component may be configured with dedicated hardware, or may be realized by executing a software program suitable for each component. Each component may be realized by a program execution unit such as a CPU or processor reading and executing a software program recorded on a recording medium such as a hard disk or semiconductor memory.

言い換えると、画像符号化装置及び画像復号装置は、処理回路(processing circuitry)と、当該処理回路に電気的に接続された(当該制御回路からアクセス可能な)記憶装置(storage)とを備える。処理回路は、専用のハードウェア及びプログラム実行部の少なくとも一方を含む。また、記憶装置は、処理回路がプログラム実行部を含む場合には、当該プログラム実行部により実行されるソフトウェアプログラムを記憶する。処理回路は、記憶装置を用いて、上記実施の形態に係る符号化方法又は復号方法を実行する。 In other words, the image encoding device and the image decoding device include a processing circuitry and a storage device electrically connected to the processing circuitry (accessible from the processing circuitry). The processing circuitry includes at least one of dedicated hardware and a program execution unit. Furthermore, when the processing circuitry includes a program execution unit, the storage device stores a software program to be executed by the program execution unit. The processing circuitry uses the storage device to execute the encoding method or the decoding method according to the above embodiment.

さらに、本発明は上記ソフトウェアプログラムであってもよいし、上記プログラムが記録された非一時的なコンピュータ読み取り可能な記録媒体であってもよい。また、上記プログラムは、インターネット等の伝送媒体を介して流通させることができるのは言うまでもない。 Furthermore, the present invention may be the above software program, or a non-transitory computer-readable recording medium on which the above program is recorded. Needless to say, the above program can be distributed via a transmission medium such as the Internet.

また、上記で用いた数字は、全て本発明を具体的に説明するために例示するものであり、本発明は例示された数字に制限されない。 Furthermore, all the numbers used above are examples to specifically explain the present invention, and the present invention is not limited to the exemplified numbers.

また、ブロック図における機能ブロックの分割は一例であり、複数の機能ブロックを一つの機能ブロックとして実現したり、一つの機能ブロックを複数に分割したり、一部の機能を他の機能ブロックに移してもよい。また、類似する機能を有する複数の機能ブロックの機能を単一のハードウェア又はソフトウェアが並列又は時分割に処理してもよい。 The division of functional blocks in the block diagram is one example, and multiple functional blocks may be realized as one functional block, one functional block may be divided into multiple blocks, or some functions may be transferred to other functional blocks. In addition, the functions of multiple functional blocks having similar functions may be processed in parallel or in a time-sharing manner by a single piece of hardware or software.

また、上記の符号化方法又は復号方法に含まれるステップが実行される順序は、本発明を具体的に説明するために例示するためのものであり、上記以外の順序であってもよい。また、上記ステップの一部が、他のステップと同時(並列)に実行されてもよい。 The order in which the steps included in the encoding method or decoding method are executed is merely an example to specifically explain the present invention, and the steps may be executed in an order other than the above. Also, some of the steps may be executed simultaneously (in parallel) with other steps.

以上、本発明の一つ又は複数の態様に係る符号化装置及び復号装置について、実施の形態に基づいて説明したが、本発明は、この実施の形態に限定されるものではない。本発明の趣旨を逸脱しない限り、当業者が思いつく各種変形を本実施の形態に施したものや、異なる実施の形態における構成要素を組み合わせて構築される形態も、本発明の一つ又は複数の態様の範囲内に含まれてもよい。 The encoding device and the decoding device according to one or more aspects of the present invention have been described above based on the embodiments, but the present invention is not limited to these embodiments. As long as they do not deviate from the spirit of the present invention, various modifications conceived by those skilled in the art to the present embodiments and forms constructed by combining components of different embodiments may also be included within the scope of one or more aspects of the present invention.

(実施の形態6)
上記各実施の形態で示した動画像符号化方法(画像符号化方法)または動画像復号化方法(画像復号方法)の構成を実現するためのプログラムを記憶メディアに記録することにより、上記各実施の形態で示した処理を独立したコンピュータシステムにおいて簡単に実施することが可能となる。記憶メディアは、磁気ディスク、光ディスク、光磁気ディスク、ICカード、半導体メモリ等、プログラムを記録できるものであればよい。
(Embodiment 6)
By recording a program for implementing the configuration of the video coding method (image coding method) or video decoding method (image decoding method) shown in each of the above embodiments on a storage medium, it becomes possible to easily implement the processes shown in each of the above embodiments on an independent computer system. The storage medium may be a magnetic disk, an optical disk, a magneto-optical disk, an IC card, a semiconductor memory, or any other medium capable of recording a program.

さらにここで、上記各実施の形態で示した動画像符号化方法(画像符号化方法)や動画像復号化方法(画像復号方法)の応用例とそれを用いたシステムを説明する。当該システムは、画像符号化方法を用いた画像符号化装置、及び画像復号方法を用いた画像復号装置からなる画像符号化復号装置を有することを特徴とする。システムにおける他の構成について、場合に応じて適切に変更することができる。 Furthermore, here, we will explain application examples of the video encoding method (image encoding method) and video decoding method (image decoding method) shown in each of the above embodiments, and a system using the same. The system is characterized by having an image encoding/decoding device consisting of an image encoding device using the image encoding method, and an image decoding device using the image decoding method. Other components of the system can be appropriately changed depending on the case.

図33は、コンテンツ配信サービスを実現するコンテンツ供給システムex100の全体構成を示す図である。通信サービスの提供エリアを所望の大きさに分割し、各セル内にそれぞれ固定無線局である基地局ex106、ex107、ex108、ex109、ex110が設置されている。 Figure 33 shows the overall configuration of a content supply system ex100 that realizes a content distribution service. The area in which communication services are provided is divided into cells of a desired size, and base stations ex106, ex107, ex108, ex109, and ex110, which are fixed wireless stations, are installed in each cell.

このコンテンツ供給システムex100は、インターネットex101にインターネットサービスプロバイダex102および電話網ex104、および基地局ex106からex110を介して、コンピュータex111、PDA(Personal Digital Assistant)ex112、カメラex113、携帯電話ex114、ゲーム機ex115などの各機器が接続される。 This content supply system ex100 is connected to the Internet ex101 via an Internet service provider ex102, a telephone network ex104, and base stations ex106 to ex110, and various devices such as a computer ex111, a PDA (Personal Digital Assistant) ex112, a camera ex113, a mobile phone ex114, and a game console ex115.

しかし、コンテンツ供給システムex100は図33のような構成に限定されず、いずれかの要素を組合せて接続するようにしてもよい。また、固定無線局である基地局ex106からex110を介さずに、各機器が電話網ex104に直接接続されてもよい。また、各機器が近距離無線等を介して直接相互に接続されていてもよい。 However, the content supply system ex100 is not limited to the configuration shown in FIG. 33, and any combination of elements may be connected. In addition, each device may be directly connected to the telephone network ex104 without going through the base stations ex106 to ex110, which are fixed wireless stations. In addition, each device may be directly connected to each other via short-range wireless communication, etc.

カメラex113はデジタルビデオカメラ等の動画撮影が可能な機器であり、カメラex116はデジタルカメラ等の静止画撮影、動画撮影が可能な機器である。また、携帯電話ex114は、GSM(登録商標)(Global System for Mobile Communications)方式、CDMA(Code Division Multiple Access)方式、W-CDMA(Wideband-Code Division Multiple Access)方式、若しくはLTE(Long Term Evolution)方式、HSPA(High Speed Packet Access)の携帯電話機、またはPHS(Personal Handyphone System)等であり、いずれでも構わない。 Camera ex113 is a device capable of shooting moving images, such as a digital video camera, and camera ex116 is a device capable of shooting still images and moving images, such as a digital camera. Furthermore, mobile phone ex114 can be any of the following: a GSM (registered trademark) (Global System for Mobile Communications) type, a CDMA (Code Division Multiple Access) type, a W-CDMA (Wideband-Code Division Multiple Access) type, an LTE (Long Term Evolution) type, a HSPA (High Speed Packet Access) mobile phone, or a PHS (Personal Handyphone System).

コンテンツ供給システムex100では、カメラex113等が基地局ex109、電話網ex104を通じてストリーミングサーバex103に接続されることで、ライブ配信等が可能になる。ライブ配信では、ユーザがカメラex113を用いて撮影するコンテンツ(例えば、音楽ライブの映像等)に対して上記各実施の形態で説明したように符号化処理を行い(即ち、本発明の一態様に係る画像符号化装置として機能する)、ストリーミングサーバex103に送信する。一方、ストリーミングサーバex103は要求のあったクライアントに対して送信されたコンテンツデータをストリーム配信する。クライアントとしては、上記符号化処理されたデータを復号化することが可能な、コンピュータex111、PDAex112、カメラex113、携帯電話ex114、ゲーム機ex115等がある。配信されたデータを受信した各機器では、受信したデータを復号化処理して再生する(即ち、本発明の一態様に係る画像復号装置として機能する)。 In the content supply system ex100, a camera ex113 and the like are connected to a streaming server ex103 via a base station ex109 and a telephone network ex104, thereby enabling live distribution and the like. In live distribution, a user shoots content (e.g., a video of a live music performance, etc.) using the camera ex113, and performs encoding processing as described in each of the above embodiments (i.e., functions as an image encoding device according to one aspect of the present invention), and transmits the content to the streaming server ex103. Meanwhile, the streaming server ex103 streams the transmitted content data to a client that has made a request. Examples of clients include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, a game machine ex115, and the like that are capable of decoding the encoded data. Each device that receives the distributed data decodes the received data and plays it back (i.e., functions as an image decoding device according to one aspect of the present invention).

なお、撮影したデータの符号化処理はカメラex113で行っても、データの送信処理をするストリーミングサーバex103で行ってもよいし、互いに分担して行ってもよい。同様に配信されたデータの復号化処理はクライアントで行っても、ストリーミングサーバex103で行ってもよいし、互いに分担して行ってもよい。また、カメラex113に限らず、カメラex116で撮影した静止画像および/または動画像データを、コンピュータex111を介してストリーミングサーバex103に送信してもよい。この場合の符号化処理はカメラex116、コンピュータex111、ストリーミングサーバex103のいずれで行ってもよいし、互いに分担して行ってもよい。 The encoding process of the captured data may be performed by the camera ex113, by the streaming server ex103 which processes the data transmission, or the two may share the same role. Similarly, the decoding process of the distributed data may be performed by the client, by the streaming server ex103, or the two may share the same role. Furthermore, still images and/or video data captured by the camera ex116, not limited to the camera ex113, may be transmitted to the streaming server ex103 via the computer ex111. In this case, the encoding process may be performed by the camera ex116, the computer ex111, or the streaming server ex103, or the two may share the same role.

また、これら符号化・復号化処理は、一般的にコンピュータex111や各機器が有するLSIex500において処理する。LSIex500は、ワンチップであっても複数チップからなる構成であってもよい。なお、動画像符号化・復号化用のソフトウェアをコンピュータex111等で読み取り可能な何らかの記録メディア(CD-ROM、フレキシブルディスク、ハードディスクなど)に組み込み、そのソフトウェアを用いて符号化・復号化処理を行ってもよい。さらに、携帯電話ex114がカメラ付きである場合には、そのカメラで取得した動画データを送信してもよい。このときの動画データは携帯電話ex114が有するLSIex500で符号化処理されたデータである。 These encoding and decoding processes are generally performed in an LSI ex500 possessed by computer ex111 or each device. The LSI ex500 may be a single chip or may be configured with multiple chips. Software for encoding and decoding moving images may be embedded in some kind of recording medium (CD-ROM, flexible disk, hard disk, etc.) that can be read by computer ex111 or the like, and the encoding and decoding processes may be performed using that software. Furthermore, if mobile phone ex114 is equipped with a camera, video data captured by the camera may be transmitted. The video data in this case is data that has been encoded and processed by the LSI ex500 possessed by mobile phone ex114.

また、ストリーミングサーバex103は複数のサーバや複数のコンピュータであって、データを分散して処理したり記録したり配信するものであってもよい。 In addition, the streaming server ex103 may be multiple servers or multiple computers that process, record, and distribute data in a distributed manner.

以上のようにして、コンテンツ供給システムex100では、符号化されたデータをクライアントが受信して再生することができる。このようにコンテンツ供給システムex100では、ユーザが送信した情報をリアルタイムでクライアントが受信して復号化し、再生することができ、特別な権利や設備を有さないユーザでも個人放送を実現できる。 In this way, the content supply system ex100 allows the client to receive and play back encoded data. In this way, the content supply system ex100 allows the client to receive, decode, and play back information sent by the user in real time, making it possible for even users without special rights or equipment to realize personal broadcasting.

なお、コンテンツ供給システムex100の例に限らず、図34に示すように、デジタル放送用システムex200にも、上記各実施の形態の少なくとも動画像符号化装置(画像符号化装置)または動画像復号化装置(画像復号装置)のいずれかを組み込むことができる。具体的には、放送局ex201では映像データに音楽データなどが多重化された多重化データが電波を介して通信または衛星ex202に伝送される。この映像データは上記各実施の形態で説明した動画像符号化方法により符号化されたデータである(即ち、本発明の一態様に係る画像符号化装置によって符号化されたデータである)。これを受けた放送衛星ex202は、放送用の電波を発信し、この電波を衛星放送の受信が可能な家庭のアンテナex204が受信する。受信した多重化データを、テレビ(受信機)ex300またはセットトップボックス(STB)ex217等の装置が復号化して再生する(即ち、本発明の一態様に係る画像復号装置として機能する)。 In addition, as shown in FIG. 34, the digital broadcasting system ex200 can also incorporate at least one of the video encoding device (image encoding device) or video decoding device (image decoding device) of each of the above embodiments. Specifically, in the broadcasting station ex201, multiplexed data in which music data and the like are multiplexed with video data is transmitted to the satellite ex202 via radio waves. This video data is data encoded by the video encoding method described in each of the above embodiments (i.e., data encoded by the image encoding device according to one aspect of the present invention). The broadcasting satellite ex202 then transmits radio waves for broadcasting, which are received by a home antenna ex204 capable of receiving satellite broadcasts. The received multiplexed data is decoded and played by a device such as a television (receiver) ex300 or a set-top box (STB) ex217 (i.e., functions as an image decoding device according to one aspect of the present invention).

また、DVD、BD等の記録メディアex215に記録した多重化データを読み取り復号化する、または記録メディアex215に映像信号を符号化し、さらに場合によっては音楽信号と多重化して書き込むリーダ/レコーダex218にも上記各実施の形態で示した動画像復号化装置または動画像符号化装置を実装することが可能である。この場合、再生された映像信号はモニタex219に表示され、多重化データが記録された記録メディアex215により他の装置やシステムにおいて映像信号を再生することができる。また、ケーブルテレビ用のケーブルex203または衛星/地上波放送のアンテナex204に接続されたセットトップボックスex217内に動画像復号化装置を実装し、これをテレビのモニタex219で表示してもよい。このときセットトップボックスではなく、テレビ内に動画像復号化装置を組み込んでもよい。 The video decoding device or video encoding device shown in each of the above embodiments can also be implemented in a reader/recorder ex218 that reads and decodes multiplexed data recorded on a recording medium ex215 such as a DVD or BD, or encodes a video signal on the recording medium ex215, and in some cases multiplexes it with a music signal and writes it. In this case, the reproduced video signal is displayed on a monitor ex219, and the video signal can be reproduced in another device or system using the recording medium ex215 on which the multiplexed data is recorded. Also, a video decoding device may be implemented in a set-top box ex217 connected to a cable ex203 for cable television or an antenna ex204 for satellite/terrestrial broadcasting, and this may be displayed on the television monitor ex219. In this case, the video decoding device may be built into the television, not the set-top box.

図35は、上記各実施の形態で説明した動画像復号化方法および動画像符号化方法を用いたテレビ(受信機)ex300を示す図である。テレビex300は、上記放送を受信するアンテナex204またはケーブルex203等を介して映像データに音声データが多重化された多重化データを取得、または出力するチューナex301と、受信した多重化データを復調する、または外部に送信する多重化データに変調する変調/復調部ex302と、復調した多重化データを映像データと、音声データとに分離する、または信号処理部ex306で符号化された映像データ、音声データを多重化する多重/分離部ex303を備える。 Figure 35 is a diagram showing a television (receiver) ex300 that uses the video decoding method and video encoding method described in each of the above embodiments. The television ex300 includes a tuner ex301 that acquires or outputs multiplexed data in which audio data is multiplexed onto video data via an antenna ex204 or cable ex203 that receives the above broadcasts, a modulation/demodulation unit ex302 that demodulates the received multiplexed data or modulates it into multiplexed data to be transmitted externally, and a multiplexing/separation unit ex303 that separates the demodulated multiplexed data into video data and audio data or multiplexes the video data and audio data encoded by a signal processing unit ex306.

また、テレビex300は、音声データ、映像データそれぞれを復号化する、またはそれぞれの情報を符号化する音声信号処理部ex304、映像信号処理部ex305(本発明の一態様に係る画像符号化装置または画像復号装置として機能する)を有する信号処理部ex306と、復号化した音声信号を出力するスピーカex307、復号化した映像信号を表示するディスプレイ等の表示部ex308を有する出力部ex309とを有する。さらに、テレビex300は、ユーザ操作の入力を受け付ける操作入力部ex312等を有するインタフェース部ex317を有する。さらに、テレビex300は、各部を統括的に制御する制御部ex310、各部に電力を供給する電源回路部ex311を有する。インタフェース部ex317は、操作入力部ex312以外に、リーダ/レコーダex218等の外部機器と接続されるブリッジex313、SDカード等の記録メディアex216を装着可能とするためのスロット部ex314、ハードディスク等の外部記録メディアと接続するためのドライバex315、電話網と接続するモデムex316等を有していてもよい。なお記録メディアex216は、格納する不揮発性/揮発性の半導体メモリ素子により電気的に情報の記録を可能としたものである。テレビex300の各部は同期バスを介して互いに接続されている。 The television ex300 also has a signal processing unit ex306 having an audio signal processing unit ex304 and a video signal processing unit ex305 (functioning as an image encoding device or image decoding device according to one embodiment of the present invention) that decode the audio data and the video data, respectively, or encode the respective information, and an output unit ex309 having a speaker ex307 that outputs the decoded audio signal and a display unit ex308 such as a display that displays the decoded video signal. The television ex300 also has an interface unit ex317 having an operation input unit ex312 that accepts input of user operations. The television ex300 also has a control unit ex310 that controls each unit in an integrated manner, and a power supply circuit unit ex311 that supplies power to each unit. In addition to the operation input unit ex312, the interface unit ex317 may have a bridge ex313 connected to an external device such as a reader/recorder ex218, a slot unit ex314 for mounting a recording medium ex216 such as an SD card, a driver ex315 for connecting to an external recording medium such as a hard disk, a modem ex316 for connecting to a telephone network, etc. The recording medium ex216 is a non-volatile/volatile semiconductor memory element that allows information to be electrically recorded. Each unit of the television ex300 is connected to each other via a synchronous bus.

まず、テレビex300がアンテナex204等により外部から取得した多重化データを復号化し、再生する構成について説明する。テレビex300は、リモートコントローラex220等からのユーザ操作を受け、CPU等を有する制御部ex310の制御に基づいて、変調/復調部ex302で復調した多重化データを多重/分離部ex303で分離する。さらにテレビex300は、分離した音声データを音声信号処理部ex304で復号化し、分離した映像データを映像信号処理部ex305で上記各実施の形態で説明した復号化方法を用いて復号化する。復号化した音声信号、映像信号は、それぞれ出力部ex309から外部に向けて出力される。出力する際には、音声信号と映像信号が同期して再生するよう、バッファex318、ex319等に一旦これらの信号を蓄積するとよい。また、テレビex300は、放送等からではなく、磁気/光ディスク、SDカード等の記録メディアex215、ex216から多重化データを読み出してもよい。次に、テレビex300が音声信号や映像信号を符号化し、外部に送信または記録メディア等に書き込む構成について説明する。テレビex300は、リモートコントローラex220等からのユーザ操作を受け、制御部ex310の制御に基づいて、音声信号処理部ex304で音声信号を符号化し、映像信号処理部ex305で映像信号を上記各実施の形態で説明した符号化方法を用いて符号化する。符号化した音声信号、映像信号は多重/分離部ex303で多重化され外部に出力される。多重化する際には、音声信号と映像信号が同期するように、バッファex320、ex321等に一旦これらの信号を蓄積するとよい。なお、バッファex318、ex319、ex320、ex321は図示しているように複数備えていてもよいし、1つ以上のバッファを共有する構成であってもよい。さらに、図示している以外に、例えば変調/復調部ex302や多重/分離部ex303の間等でもシステムのオーバフロー、アンダーフローを避ける緩衝材としてバッファにデータを蓄積することとしてもよい。 First, a configuration in which the television ex300 decodes and plays back multiplexed data acquired from the outside via the antenna ex204 or the like will be described. The television ex300 receives user operations from a remote controller ex220 or the like, and based on the control of a control unit ex310 having a CPU or the like, separates the multiplexed data demodulated by the modulation/demodulation unit ex302 in the multiplexing/separation unit ex303. Furthermore, the television ex300 decodes the separated audio data in the audio signal processing unit ex304, and decodes the separated video data in the video signal processing unit ex305 using the decoding method described in each of the above embodiments. The decoded audio signal and video signal are output to the outside from the output unit ex309, respectively. When outputting, it is preferable to temporarily store these signals in buffers ex318, ex319, etc. so that the audio signal and the video signal are played back in synchronization. The television ex300 may also read out the multiplexed data not from broadcasting, etc., but from recording media ex215, ex216 such as magnetic/optical disks and SD cards. Next, a configuration in which the television ex300 encodes an audio signal and a video signal and transmits them to the outside or writes them to a recording medium or the like will be described. The television ex300 receives user operations from the remote controller ex220 or the like, and, based on the control of the control unit ex310, encodes the audio signal in the audio signal processing unit ex304 and encodes the video signal in the video signal processing unit ex305 using the encoding method described in each of the above embodiments. The encoded audio signal and video signal are multiplexed in the multiplexing/separation unit ex303 and output to the outside. When multiplexing, it is preferable to temporarily store these signals in buffers ex320, ex321, etc. so that the audio signal and the video signal are synchronized. Note that the buffers ex318, ex319, ex320, and ex321 may be provided in multiple units as shown in the figure, or one or more buffers may be shared. Furthermore, in addition to those shown in the figure, data may be stored in a buffer as a buffer to avoid system overflow and underflow, for example, between the modulation/demodulation unit ex302 and the multiplexing/separation unit ex303.

また、テレビex300は、放送等や記録メディア等から音声データ、映像データを取得する以外に、マイクやカメラのAV入力を受け付ける構成を備え、それらから取得したデータに対して符号化処理を行ってもよい。なお、ここではテレビex300は上記の符号化処理、多重化、および外部出力ができる構成として説明したが、これらの処理を行うことはできず、上記受信、復号化処理、外部出力のみが可能な構成であってもよい。 In addition to acquiring audio data and video data from broadcasts, recording media, etc., the television ex300 may also be configured to accept AV input from a microphone or camera and perform encoding processing on the data acquired from them. Note that while the television ex300 has been described here as being configured to be capable of the above encoding processing, multiplexing, and external output, it may also be configured not to be able to perform these processes and only be capable of the above reception, decoding processing, and external output.

また、リーダ/レコーダex218で記録メディアから多重化データを読み出す、または書き込む場合には、上記復号化処理または符号化処理はテレビex300、リーダ/レコーダex218のいずれで行ってもよいし、テレビex300とリーダ/レコーダex218が互いに分担して行ってもよい。 In addition, when the reader/recorder ex218 reads or writes multiplexed data from a recording medium, the above-mentioned decoding or encoding process may be performed by either the television ex300 or the reader/recorder ex218, or the television ex300 and the reader/recorder ex218 may share the same role.

一例として、光ディスクからデータの読み込みまたは書き込みをする場合の情報再生/記録部ex400の構成を図36に示す。情報再生/記録部ex400は、以下に説明する要素ex401、ex402、ex403、ex404、ex405、ex406、ex407を備える。光ヘッドex401は、光ディスクである記録メディアex215の記録面にレーザスポットを照射して情報を書き込み、記録メディアex215の記録面からの反射光を検出して情報を読み込む。変調記録部ex402は、光ヘッドex401に内蔵された半導体レーザを電気的に駆動し記録データに応じてレーザ光の変調を行う。再生復調部ex403は、光ヘッドex401に内蔵されたフォトディテクタにより記録面からの反射光を電気的に検出した再生信号を増幅し、記録メディアex215に記録された信号成分を分離して復調し、必要な情報を再生する。バッファex404は、記録メディアex215に記録するための情報および記録メディアex215から再生した情報を一時的に保持する。ディスクモータex405は記録メディアex215を回転させる。サーボ制御部ex406は、ディスクモータex405の回転駆動を制御しながら光ヘッドex401を所定の情報トラックに移動させ、レーザスポットの追従処理を行う。システム制御部ex407は、情報再生/記録部ex400全体の制御を行う。上記の読み出しや書き込みの処理はシステム制御部ex407が、バッファex404に保持された各種情報を利用し、また必要に応じて新たな情報の生成・追加を行うと共に、変調記録部ex402、再生復調部ex403、サーボ制御部ex406を協調動作させながら、光ヘッドex401を通して、情報の記録再生を行うことにより実現される。システム制御部ex407は例えばマイクロプロセッサで構成され、読み出し書き込みのプログラムを実行することでそれらの処理を実行する。 As an example, the configuration of the information reproducing/recording unit ex400 when reading or writing data from an optical disk is shown in FIG. 36. The information reproducing/recording unit ex400 includes elements ex401, ex402, ex403, ex404, ex405, ex406, and ex407, which will be described below. The optical head ex401 irradiates a laser spot onto the recording surface of the recording medium ex215, which is an optical disk, to write information, and detects the reflected light from the recording surface of the recording medium ex215 to read the information. The modulation recording unit ex402 electrically drives the semiconductor laser built into the optical head ex401 and modulates the laser light according to the recording data. The reproduction demodulation unit ex403 amplifies the reproduction signal obtained by electrically detecting the reflected light from the recording surface using a photodetector built into the optical head ex401, separates and demodulates the signal components recorded on the recording medium ex215, and reproduces the necessary information. The buffer ex404 temporarily holds information to be recorded on the recording medium ex215 and information reproduced from the recording medium ex215. The disk motor ex405 rotates the recording medium ex215. The servo control unit ex406 controls the rotational drive of the disk motor ex405 while moving the optical head ex401 to a predetermined information track, and performs a laser spot tracking process. The system control unit ex407 controls the entire information reproduction/recording unit ex400. The above read and write processes are realized by the system control unit ex407 using various information held in the buffer ex404, generating and adding new information as necessary, and recording and reproducing information through the optical head ex401 while causing the modulation recording unit ex402, the reproduction demodulation unit ex403, and the servo control unit ex406 to operate in cooperation. The system control unit ex407 is composed of, for example, a microprocessor, and executes these processes by executing a read and write program.

以上では、光ヘッドex401はレーザスポットを照射するとして説明したが、近接場光を用いてより高密度な記録を行う構成であってもよい。 In the above, the optical head ex401 has been described as irradiating a laser spot, but it may also be configured to perform higher density recording using near-field light.

図37に光ディスクである記録メディアex215の模式図を示す。記録メディアex215の記録面には案内溝(グルーブ)がスパイラル状に形成され、情報トラックex230には、予めグルーブの形状の変化によってディスク上の絶対位置を示す番地情報が記録されている。この番地情報はデータを記録する単位である記録ブロックex231の位置を特定するための情報を含み、記録や再生を行う装置において情報トラックex230を再生し番地情報を読み取ることで記録ブロックを特定することができる。また、記録メディアex215は、データ記録領域ex233、内周領域ex232、外周領域ex234を含んでいる。ユーザデータを記録するために用いる領域がデータ記録領域ex233であり、データ記録領域ex233より内周または外周に配置されている内周領域ex232と外周領域ex234は、ユーザデータの記録以外の特定用途に用いられる。情報再生/記録部ex400は、このような記録メディアex215のデータ記録領域ex233に対して、符号化された音声データ、映像データまたはそれらのデータを多重化した多重化データの読み書きを行う。 Figure 37 shows a schematic diagram of a recording medium ex215, which is an optical disk. A guide groove (groove) is formed in a spiral shape on the recording surface of the recording medium ex215, and address information indicating an absolute position on the disk is recorded in advance on the information track ex230 by changing the shape of the groove. This address information includes information for identifying the position of a recording block ex231, which is a unit for recording data, and a recording block can be identified by reproducing the information track ex230 and reading the address information in a recording and reproducing device. The recording medium ex215 also includes a data recording area ex233, an inner peripheral area ex232, and an outer peripheral area ex234. The area used for recording user data is the data recording area ex233, and the inner peripheral area ex232 and the outer peripheral area ex234, which are located on the inner or outer periphery of the data recording area ex233, are used for specific purposes other than recording user data. The information playback/recording unit ex400 reads and writes encoded audio data, video data, or multiplexed data obtained by multiplexing these data, to the data recording area ex233 of such recording media ex215.

以上では、1層のDVD、BD等の光ディスクを例に挙げ説明したが、これらに限ったものではなく、多層構造であって表面以外にも記録可能な光ディスクであってもよい。また、ディスクの同じ場所にさまざまな異なる波長の色の光を用いて情報を記録したり、さまざまな角度から異なる情報の層を記録したりなど、多次元的な記録/再生を行う構造の光ディスクであってもよい。 The above explanation has been given using examples of optical discs such as single-layer DVDs and BDs, but the present invention is not limited to these and may be an optical disc with a multi-layer structure that allows recording on more than just the surface. In addition, the present invention may be an optical disc with a structure that allows multi-dimensional recording/playback, such as recording information on the same location on the disc using light of various different wavelengths of different colors, or recording different layers of information from various angles.

また、デジタル放送用システムex200において、アンテナex205を有する車ex210で衛星ex202等からデータを受信し、車ex210が有するカーナビゲーションex211等の表示装置に動画を再生することも可能である。なお、カーナビゲーションex211の構成は例えば図35に示す構成のうち、GPS受信部を加えた構成が考えられ、同様なことがコンピュータex111や携帯電話ex114等でも考えられる。 In addition, in the digital broadcasting system ex200, a car ex210 having an antenna ex205 can receive data from a satellite ex202, etc., and can play video on a display device such as a car navigation system ex211 that the car ex210 has. Note that the configuration of the car navigation system ex211 can be, for example, the configuration shown in FIG. 35 with a GPS receiver added, and the same can be considered for the computer ex111, mobile phone ex114, etc.

図38Aは、上記実施の形態で説明した動画像復号化方法および動画像符号化方法を用いた携帯電話ex114を示す図である。携帯電話ex114は、基地局ex110との間で電波を送受信するためのアンテナex350、映像、静止画を撮ることが可能なカメラ部ex365、カメラ部ex365で撮像した映像、アンテナex350で受信した映像等が復号化されたデータを表示する液晶ディスプレイ等の表示部ex358を備える。携帯電話ex114は、さらに、操作キー部ex366を有する本体部、音声を出力するためのスピーカ等である音声出力部ex357、音声を入力するためのマイク等である音声入力部ex356、撮影した映像、静止画、録音した音声、または受信した映像、静止画、メール等の符号化されたデータもしくは復号化されたデータを保存するメモリ部ex367、又は同様にデータを保存する記録メディアとのインタフェース部であるスロット部ex364を備える。 Figure 38A is a diagram showing a mobile phone ex114 using the video decoding method and video encoding method described in the above embodiment. The mobile phone ex114 includes an antenna ex350 for transmitting and receiving radio waves to and from the base station ex110, a camera unit ex365 capable of taking videos and still images, and a display unit ex358 such as a liquid crystal display that displays decoded data of videos captured by the camera unit ex365 and videos received by the antenna ex350. The mobile phone ex114 further includes a main body unit having an operation key unit ex366, an audio output unit ex357 such as a speaker for outputting audio, an audio input unit ex356 such as a microphone for inputting audio, a memory unit ex367 for storing captured videos, still images, recorded audio, or encoded or decoded data such as received videos, still images, and emails, or a slot unit ex364 that is an interface unit with a recording medium for similarly storing data.

さらに、携帯電話ex114の構成例について、図38Bを用いて説明する。携帯電話ex114は、表示部ex358及び操作キー部ex366を備えた本体部の各部を統括的に制御する主制御部ex360に対して、電源回路部ex361、操作入力制御部ex362、映像信号処理部ex355、カメラインタフェース部ex363、LCD(Liquid Crystal Display)制御部ex359、変調/復調部ex352、多重/分離部ex353、音声信号処理部ex354、スロット部ex364、メモリ部ex367がバスex370を介して互いに接続されている。 Furthermore, a configuration example of the mobile phone ex114 will be described with reference to FIG. 38B. The mobile phone ex114 has a main control unit ex360 that comprehensively controls each unit of the main body having a display unit ex358 and an operation key unit ex366, and a power circuit unit ex361, an operation input control unit ex362, a video signal processing unit ex355, a camera interface unit ex363, an LCD (Liquid Crystal Display) control unit ex359, a modulation/demodulation unit ex352, a multiplexing/separation unit ex353, an audio signal processing unit ex354, a slot unit ex364, and a memory unit ex367 that are all connected to each other via a bus ex370.

電源回路部ex361は、ユーザの操作により終話及び電源キーがオン状態にされると、バッテリパックから各部に対して電力を供給することにより携帯電話ex114を動作可能な状態に起動する。 When the end call and power keys are turned on by the user, the power supply circuit unit ex361 starts up the mobile phone ex114 into an operational state by supplying power to each unit from the battery pack.

携帯電話ex114は、CPU、ROM、RAM等を有する主制御部ex360の制御に基づいて、音声通話モード時に音声入力部ex356で収音した音声信号を音声信号処理部ex354でデジタル音声信号に変換し、これを変調/復調部ex352でスペクトラム拡散処理し、送信/受信部ex351でデジタルアナログ変換処理および周波数変換処理を施した後にアンテナex350を介して送信する。また携帯電話ex114は、音声通話モード時にアンテナex350を介して受信した受信データを増幅して周波数変換処理およびアナログデジタル変換処理を施し、変調/復調部ex352でスペクトラム逆拡散処理し、音声信号処理部ex354でアナログ音声信号に変換した後、これを音声出力部ex357から出力する。 Based on the control of the main control unit ex360 having a CPU, ROM, RAM, etc., the mobile phone ex114 converts the voice signal picked up by the voice input unit ex356 in the voice call mode into a digital voice signal in the voice signal processing unit ex354, which is then subjected to spectrum spreading processing in the modulation/demodulation unit ex352, digital-to-analog conversion processing and frequency conversion processing in the transmission/reception unit ex351, and then transmitted via the antenna ex350. In addition, the mobile phone ex114 amplifies the received data received via the antenna ex350 in the voice call mode, and performs frequency conversion processing and analog-to-digital conversion processing, performs spectrum despreading processing in the modulation/demodulation unit ex352, converts the data into an analog voice signal in the voice signal processing unit ex354, and outputs the data from the voice output unit ex357.

さらにデータ通信モード時に電子メールを送信する場合、本体部の操作キー部ex366等の操作によって入力された電子メールのテキストデータは操作入力制御部ex362を介して主制御部ex360に送出される。主制御部ex360は、テキストデータを変調/復調部ex352でスペクトラム拡散処理をし、送信/受信部ex351でデジタルアナログ変換処理および周波数変換処理を施した後にアンテナex350を介して基地局ex110へ送信する。電子メールを受信する場合は、受信したデータに対してこのほぼ逆の処理が行われ、表示部ex358に出力される。 Furthermore, when sending e-mail in data communication mode, the text data of the e-mail input by operating the operation key unit ex366 of the main unit, etc. is sent to the main control unit ex360 via the operation input control unit ex362. The main control unit ex360 performs spectrum spreading processing on the text data in the modulation/demodulation unit ex352, performs digital-to-analog conversion processing and frequency conversion processing in the transmission/reception unit ex351, and then transmits it to the base station ex110 via the antenna ex350. When receiving e-mail, the received data is subjected to roughly the reverse processing, and is output to the display unit ex358.

データ通信モード時に映像、静止画、または映像と音声を送信する場合、映像信号処理部ex355は、カメラ部ex365から供給された映像信号を上記各実施の形態で示した動画像符号化方法によって圧縮符号化し(即ち、本発明の一態様に係る画像符号化装置として機能する)、符号化された映像データを多重/分離部ex353に送出する。また、音声信号処理部ex354は、映像、静止画等をカメラ部ex365で撮像中に音声入力部ex356で収音した音声信号を符号化し、符号化された音声データを多重/分離部ex353に送出する。 When transmitting video, still images, or video and audio in data communication mode, the video signal processing unit ex355 compresses and encodes the video signal supplied from the camera unit ex365 using the video encoding method described in each of the above embodiments (i.e., functions as an image encoding device according to one aspect of the present invention), and sends the encoded video data to the multiplexing/separation unit ex353. In addition, the audio signal processing unit ex354 encodes the audio signal picked up by the audio input unit ex356 while the camera unit ex365 is capturing video, still images, etc., and sends the encoded audio data to the multiplexing/separation unit ex353.

多重/分離部ex353は、映像信号処理部ex355から供給された符号化された映像データと音声信号処理部ex354から供給された符号化された音声データを所定の方式で多重化し、その結果得られる多重化データを変調/復調部(変調/復調回路部)ex352でスペクトラム拡散処理をし、送信/受信部ex351でデジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex350を介して送信する。 The multiplexing/separation unit ex353 multiplexes the encoded video data supplied from the video signal processing unit ex355 and the encoded audio data supplied from the audio signal processing unit ex354 using a predetermined method, and the resulting multiplexed data is subjected to spectrum spreading processing in the modulation/demodulation unit (modulation/demodulation circuit unit) ex352, and then digital-to-analog conversion processing and frequency conversion processing in the transmission/reception unit ex351, before being transmitted via the antenna ex350.

データ通信モード時にホームページ等にリンクされた動画像ファイルのデータを受信する場合、または映像およびもしくは音声が添付された電子メールを受信する場合、アンテナex350を介して受信された多重化データを復号化するために、多重/分離部ex353は、多重化データを分離することにより映像データのビットストリームと音声データのビットストリームとに分け、同期バスex370を介して符号化された映像データを映像信号処理部ex355に供給するとともに、符号化された音声データを音声信号処理部ex354に供給する。映像信号処理部ex355は、上記各実施の形態で示した動画像符号化方法に対応した動画像復号化方法によって復号化することにより映像信号を復号し(即ち、本発明の一態様に係る画像復号装置として機能する)、LCD制御部ex359を介して表示部ex358から、例えばホームページにリンクされた動画像ファイルに含まれる映像、静止画が表示される。また音声信号処理部ex354は、音声信号を復号し、音声出力部ex357から音声が出力される。 When receiving data of a video file linked to a homepage or the like in the data communication mode, or when receiving an e-mail with video and/or audio attached, in order to decode the multiplexed data received via the antenna ex350, the multiplexing/separation unit ex353 separates the multiplexed data into a bit stream of video data and a bit stream of audio data, and supplies the encoded video data to the video signal processing unit ex355 via the synchronization bus ex370, and supplies the encoded audio data to the audio signal processing unit ex354. The video signal processing unit ex355 decodes the video signal by decoding using a video decoding method corresponding to the video encoding method shown in each of the above embodiments (i.e., functions as an image decoding device according to one aspect of the present invention), and the video and still images included in the video file linked to the homepage, for example, are displayed on the display unit ex358 via the LCD control unit ex359. The audio signal processing unit ex354 also decodes the audio signal, and audio is output from the audio output unit ex357.

また、上記携帯電話ex114等の端末は、テレビex300と同様に、符号化器・復号化器を両方持つ送受信型端末の他に、符号化器のみの送信端末、復号化器のみの受信端末という3通りの実装形式が考えられる。さらに、デジタル放送用システムex200において、映像データに音楽データなどが多重化された多重化データを受信、送信するとして説明したが、音声データ以外に映像に関連する文字データなどが多重化されたデータであってもよいし、多重化データではなく映像データ自体であってもよい。 Furthermore, like the television ex300, the above-mentioned mobile phone ex114 and other terminals can be implemented in three different ways: a transmitting terminal with both an encoder and a decoder, a transmitting terminal with only an encoder, and a receiving terminal with only a decoder. Furthermore, in the digital broadcasting system ex200, multiplexed data in which music data and the like are multiplexed onto video data is received and transmitted, but data in which text data related to the video is multiplexed in addition to audio data, or the video data itself may be used instead of multiplexed data.

このように、上記各実施の形態で示した動画像符号化方法あるいは動画像復号化方法を上述したいずれの機器・システムに用いることは可能であり、そうすることで、上記各実施の形態で説明した効果を得ることができる。 In this way, it is possible to use the video encoding method or video decoding method shown in each of the above embodiments in any of the above devices and systems, and by doing so, it is possible to obtain the effects described in each of the above embodiments.

また、本発明はかかる上記実施の形態に限定されるものではなく、本発明の範囲を逸脱することなく種々の変形または修正が可能である。 Furthermore, the present invention is not limited to the above-described embodiment, and various modifications and alterations are possible without departing from the scope of the present invention.

(実施の形態7)
上記各実施の形態で示した動画像符号化方法または装置と、MPEG-2、MPEG4-AVC、VC-1など異なる規格に準拠した動画像符号化方法または装置とを、必要に応じて適宜切替えることにより、映像データを生成することも可能である。
(Seventh embodiment)
It is also possible to generate video data by appropriately switching between the video encoding method or device shown in each of the above embodiments and a video encoding method or device conforming to a different standard, such as MPEG-2, MPEG4-AVC, or VC-1, as necessary.

ここで、それぞれ異なる規格に準拠する複数の映像データを生成した場合、復号する際に、それぞれの規格に対応した復号方法を選択する必要がある。しかしながら、復号する映像データが、どの規格に準拠するものであるか識別できないため、適切な復号方法を選択することができないという課題を生じる。 When multiple pieces of video data that comply with different standards are generated, it is necessary to select a decoding method that corresponds to each standard when decoding. However, because it is not possible to identify which standard the video data to be decoded complies with, a problem arises in that it is not possible to select an appropriate decoding method.

この課題を解決するために、映像データに音声データなどを多重化した多重化データは、映像データがどの規格に準拠するものであるかを示す識別情報を含む構成とする。上記各実施の形態で示す動画像符号化方法または装置によって生成された映像データを含む多重化データの具体的な構成を以下説明する。多重化データは、MPEG-2トランスポートストリーム形式のデジタルストリームである。 To solve this problem, multiplexed data, which is video data multiplexed with audio data, etc., is configured to include identification information indicating which standard the video data complies with. A specific configuration of multiplexed data including video data generated by the video encoding methods or devices shown in each of the above embodiments is described below. The multiplexed data is a digital stream in the MPEG-2 transport stream format.

図39は、多重化データの構成を示す図である。図39に示すように多重化データは、ビデオストリーム、オーディオストリーム、プレゼンテーショングラフィックスストリーム(PG)、インタラクティブグラフィックスストリームのうち、1つ以上を多重化することで得られる。ビデオストリームは映画の主映像および副映像を、オーディオストリーム(IG)は映画の主音声部分とその主音声とミキシングする副音声を、プレゼンテーショングラフィックスストリームは、映画の字幕をそれぞれ示している。ここで主映像とは画面に表示される通常の映像を示し、副映像とは主映像の中に小さな画面で表示する映像のことである。また、インタラクティブグラフィックスストリームは、画面上にGUI部品を配置することにより作成される対話画面を示している。ビデオストリームは、上記各実施の形態で示した動画像符号化方法または装置、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠した動画像符号化方法または装置によって符号化されている。オーディオストリームは、ドルビーAC-3、Dolby Digital Plus、MLP、DTS、DTS-HD、または、リニアPCMのなどの方式で符号化されている。 Figure 39 is a diagram showing the structure of multiplexed data. As shown in Figure 39, the multiplexed data is obtained by multiplexing one or more of a video stream, an audio stream, a presentation graphics stream (PG), and an interactive graphics stream. The video stream indicates the main video and sub-video of a movie, the audio stream (IG) indicates the main audio part of the movie and the sub-audio mixed with the main audio, and the presentation graphics stream indicates the subtitles of the movie. Here, the main video indicates a normal video displayed on a screen, and the sub-video indicates a video displayed on a small screen within the main video. The interactive graphics stream indicates an interactive screen created by arranging GUI parts on a screen. The video stream is encoded by the moving image encoding method or device shown in each of the above embodiments, or a moving image encoding method or device conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. The audio stream is encoded by a method such as Dolby AC-3, Dolby Digital Plus, MLP, DTS, DTS-HD, or linear PCM.

多重化データに含まれる各ストリームはPIDによって識別される。例えば、映画の映像に利用するビデオストリームには0x1011が、オーディオストリームには0x1100から0x111Fまでが、プレゼンテーショングラフィックスには0x1200から0x121Fまでが、インタラクティブグラフィックスストリームには0x1400から0x141Fまでが、映画の副映像に利用するビデオストリームには0x1B00から0x1B1Fまで、主音声とミキシングする副音声に利用するオーディオストリームには0x1A00から0x1A1Fが、それぞれ割り当てられている。 Each stream included in the multiplexed data is identified by a PID. For example, 0x1011 is assigned to the video stream used for movie images, 0x1100 to 0x111F to the audio stream, 0x1200 to 0x121F to the presentation graphics, 0x1400 to 0x141F to the interactive graphics stream, 0x1B00 to 0x1B1F to the video stream used for the movie's secondary video, and 0x1A00 to 0x1A1F to the audio stream used for secondary audio to be mixed with the main audio.

図40は、多重化データがどのように多重化されるかを模式的に示す図である。まず、複数のビデオフレームからなるビデオストリームex235、複数のオーディオフレームからなるオーディオストリームex238を、それぞれPESパケット列ex236およびex239に変換し、TSパケットex237およびex240に変換する。同じくプレゼンテーショングラフィックスストリームex241およびインタラクティブグラフィックスex244のデータをそれぞれPESパケット列ex242およびex245に変換し、さらにTSパケットex243およびex246に変換する。多重化データex247はこれらのTSパケットを1本のストリームに多重化することで構成される。 Figure 40 is a diagram showing a schematic diagram of how multiplexed data is multiplexed. First, a video stream ex235 consisting of multiple video frames, and an audio stream ex238 consisting of multiple audio frames are converted into PES packet sequences ex236 and ex239, respectively, and then converted into TS packets ex237 and ex240. Similarly, the data of a presentation graphics stream ex241 and interactive graphics ex244 are converted into PES packet sequences ex242 and ex245, respectively, and then further converted into TS packets ex243 and ex246. The multiplexed data ex247 is constructed by multiplexing these TS packets into a single stream.

図41は、PESパケット列に、ビデオストリームがどのように格納されるかをさらに詳しく示している。図41における第1段目はビデオストリームのビデオフレーム列を示す。第2段目は、PESパケット列を示す。図41の矢印yy1,yy2,yy3,yy4に示すように、ビデオストリームにおける複数のVideo Presentation UnitであるIピクチャ、Bピクチャ、Pピクチャは、ピクチャ毎に分割され、PESパケットのペイロードに格納される。各PESパケットはPESヘッダを持ち、PESヘッダには、ピクチャの表示時刻であるPTS(Presentation Time-Stamp)やピクチャの復号時刻であるDTS(Decoding Time-Stamp)が格納される。 Figure 41 shows in more detail how a video stream is stored in a PES packet sequence. The first row in Figure 41 shows a video frame sequence of a video stream. The second row shows a PES packet sequence. As indicated by arrows yy1, yy2, yy3, and yy4 in Figure 41, I pictures, B pictures, and P pictures, which are multiple Video Presentation Units in a video stream, are divided into individual pictures and stored in the payload of a PES packet. Each PES packet has a PES header, and the PES header stores a Presentation Time-Stamp (PTS), which is the display time of the picture, and a Decoding Time-Stamp (DTS), which is the decoding time of the picture.

図42は、多重化データに最終的に書き込まれるTSパケットの形式を示している。TSパケットは、ストリームを識別するPIDなどの情報を持つ4ByteのTSヘッダとデータを格納する184ByteのTSペイロードから構成される188Byte固定長のパケットであり、上記PESパケットは分割されTSペイロードに格納される。BD-ROMの場合、TSパケットには、4ByteのTP_Extra_Headerが付与され、192Byteのソースパケットを構成し、多重化データに書き込まれる。TP_Extra_HeaderにはATS(Arrival_Time_Stamp)などの情報が記載される。ATSは当該TSパケットのデコーダのPIDフィルタへの転送開始時刻を示す。多重化データには図42下段に示すようにソースパケットが並ぶこととなり、多重化データの先頭からインクリメントする番号はSPN(ソースパケットナンバー)と呼ばれる。 Figure 42 shows the format of the TS packet that is finally written to the multiplexed data. The TS packet is a fixed-length packet of 188 bytes consisting of a 4-byte TS header that has information such as a PID that identifies the stream, and a 184-byte TS payload that stores the data, and the PES packet is divided and stored in the TS payload. In the case of BD-ROM, a 4-byte TP_Extra_Header is added to the TS packet, forming a 192-byte source packet that is written to the multiplexed data. The TP_Extra_Header contains information such as ATS (Arrival_Time_Stamp). The ATS indicates the start time of transfer of the TS packet to the PID filter of the decoder. The multiplexed data will have source packets lined up as shown in the lower part of Figure 42, and the number that increments from the beginning of the multiplexed data is called the SPN (Source Packet Number).

また、多重化データに含まれるTSパケットには、映像・音声・字幕などの各ストリーム以外にもPAT(Program Association Table)、PMT(Program Map Table)、PCR(Program Clock Reference)などがある。PATは多重化データ中に利用されるPMTのPIDが何であるかを示し、PAT自身のPIDは0で登録される。PMTは、多重化データ中に含まれる映像・音声・字幕などの各ストリームのPIDと各PIDに対応するストリームの属性情報を持ち、また多重化データに関する各種ディスクリプタを持つ。ディスクリプタには多重化データのコピーを許可・不許可を指示するコピーコントロール情報などがある。PCRは、ATSの時間軸であるATC(Arrival Time Clock)とPTS・DTSの時間軸であるSTC(System Time Clock)の同期を取るために、そのPCRパケットがデコーダに転送されるATSに対応するSTC時間の情報を持つ。 In addition to the various streams such as video, audio, and subtitles, the TS packets contained in the multiplexed data also include a Program Association Table (PAT), Program Map Table (PMT), and Program Clock Reference (PCR). The PAT indicates the PID of the PMT used in the multiplexed data, and the PID of the PAT itself is registered as 0. The PMT has the PIDs of each stream such as video, audio, and subtitles contained in the multiplexed data, as well as attribute information for the streams corresponding to each PID, and also has various descriptors related to the multiplexed data. The descriptors include copy control information that indicates whether copying of the multiplexed data is permitted or not permitted. In order to synchronize the ATC (Arrival Time Clock), which is the time axis of the ATS, with the STC (System Time Clock), which is the time axis of the PTS and DTS, the PCR contains information about the STC time corresponding to the ATS at which the PCR packet is transferred to the decoder.

図43はPMTのデータ構造を詳しく説明する図である。PMTの先頭には、そのPMTに含まれるデータの長さなどを記したPMTヘッダが配置される。その後ろには、多重化データに関するディスクリプタが複数配置される。上記コピーコントロール情報などが、ディスクリプタとして記載される。ディスクリプタの後には、多重化データに含まれる各ストリームに関するストリーム情報が複数配置される。ストリーム情報は、ストリームの圧縮コーデックなどを識別するためストリームタイプ、ストリームのPID、ストリームの属性情報(フレームレート、アスペクト比など)が記載されたストリームディスクリプタから構成される。ストリームディスクリプタは多重化データに存在するストリームの数だけ存在する。 Figure 43 is a diagram explaining the data structure of a PMT in detail. At the beginning of a PMT, there is a PMT header that describes the length of the data contained in the PMT, etc. After that, there are multiple descriptors related to the multiplexed data. The above-mentioned copy control information and the like are written as descriptors. After the descriptors, there are multiple pieces of stream information related to each stream included in the multiplexed data. The stream information consists of stream descriptors that describe the stream type to identify the compression codec of the stream, the PID of the stream, and stream attribute information (frame rate, aspect ratio, etc.). There are as many stream descriptors as there are streams in the multiplexed data.

記録媒体などに記録する場合には、上記多重化データは、多重化データ情報ファイルと共に記録される。 When recording on a recording medium, the multiplexed data is recorded together with the multiplexed data information file.

多重化データ情報ファイルは、図44に示すように多重化データの管理情報であり、多重化データと1対1に対応し、多重化データ情報、ストリーム属性情報とエントリマップから構成される。 As shown in Figure 44, the multiplexed data information file is management information for multiplexed data, has a one-to-one correspondence with the multiplexed data, and is composed of multiplexed data information, stream attribute information, and an entry map.

多重化データ情報は図44に示すようにシステムレート、再生開始時刻、再生終了時刻から構成されている。システムレートは多重化データの、後述するシステムターゲットデコーダのPIDフィルタへの最大転送レートを示す。多重化データ中に含まれるATSの間隔はシステムレート以下になるように設定されている。再生開始時刻は多重化データの先頭のビデオフレームのPTSであり、再生終了時刻は多重化データの終端のビデオフレームのPTSに1フレーム分の再生間隔を足したものが設定される。 As shown in Figure 44, the multiplexed data information consists of a system rate, a playback start time, and a playback end time. The system rate indicates the maximum transfer rate of the multiplexed data to the PID filter of the system target decoder described later. The interval of the ATS contained in the multiplexed data is set to be equal to or less than the system rate. The playback start time is the PTS of the first video frame of the multiplexed data, and the playback end time is set to the PTS of the last video frame of the multiplexed data plus the playback interval of one frame.

ストリーム属性情報は図45に示すように、多重化データに含まれる各ストリームについての属性情報が、PID毎に登録される。属性情報はビデオストリーム、オーディオストリーム、プレゼンテーショングラフィックスストリーム、インタラクティブグラフィックスストリーム毎に異なる情報を持つ。ビデオストリーム属性情報は、そのビデオストリームがどのような圧縮コーデックで圧縮されたか、ビデオストリームを構成する個々のピクチャデータの解像度がどれだけであるか、アスペクト比はどれだけであるか、フレームレートはどれだけであるかなどの情報を持つ。オーディオストリーム属性情報は、そのオーディオストリームがどのような圧縮コーデックで圧縮されたか、そのオーディオストリームに含まれるチャンネル数は何であるか、何の言語に対応するか、サンプリング周波数がどれだけであるかなどの情報を持つ。これらの情報は、プレーヤが再生する前のデコーダの初期化などに利用される。 As shown in Figure 45, the stream attribute information for each stream included in the multiplexed data is registered for each PID. The attribute information has different information for each video stream, audio stream, presentation graphics stream, and interactive graphics stream. The video stream attribute information has information such as what compression codec was used to compress the video stream, the resolution of the individual picture data that makes up the video stream, the aspect ratio, and the frame rate. The audio stream attribute information has information such as what compression codec was used to compress the audio stream, the number of channels included in the audio stream, what language it corresponds to, and the sampling frequency. This information is used to initialize the decoder before the player starts playing.

本実施の形態においては、上記多重化データのうち、PMTに含まれるストリームタイプを利用する。また、記録媒体に多重化データが記録されている場合には、多重化データ情報に含まれる、ビデオストリーム属性情報を利用する。具体的には、上記各実施の形態で示した動画像符号化方法または装置において、PMTに含まれるストリームタイプ、または、ビデオストリーム属性情報に対し、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示す固有の情報を設定するステップまたは手段を設ける。この構成により、上記各実施の形態で示した動画像符号化方法または装置によって生成した映像データと、他の規格に準拠する映像データとを識別することが可能になる。 In this embodiment, the stream type included in the PMT of the multiplexed data is used. Also, when multiplexed data is recorded on the recording medium, the video stream attribute information included in the multiplexed data information is used. Specifically, in the video encoding method or device shown in each of the above embodiments, a step or means is provided for setting unique information indicating that the video data is generated by the video encoding method or device shown in each of the above embodiments for the stream type included in the PMT or the video stream attribute information. This configuration makes it possible to distinguish between video data generated by the video encoding method or device shown in each of the above embodiments and video data that conforms to other standards.

また、本実施の形態における動画像復号化方法のステップを図46に示す。ステップexS100において、多重化データからPMTに含まれるストリームタイプ、または、多重化データ情報に含まれるビデオストリーム属性情報を取得する。次に、ステップexS101において、ストリームタイプ、または、ビデオストリーム属性情報が上記各実施の形態で示した動画像符号化方法または装置によって生成された多重化データであることを示しているか否かを判断する。そして、ストリームタイプ、または、ビデオストリーム属性情報が上記各実施の形態で示した動画像符号化方法または装置によって生成されたものであると判断された場合には、ステップexS102において、上記各実施の形態で示した動画像復号方法により復号を行う。また、ストリームタイプ、または、ビデオストリーム属性情報が、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠するものであることを示している場合には、ステップexS103において、従来の規格に準拠した動画像復号方法により復号を行う。 The steps of the video decoding method in this embodiment are shown in FIG. 46. In step exS100, the stream type included in the PMT or the video stream attribute information included in the multiplexed data information is obtained from the multiplexed data. Next, in step exS101, it is determined whether the stream type or the video stream attribute information indicates that the multiplexed data is generated by the video encoding method or device shown in each of the above embodiments. If it is determined that the stream type or the video stream attribute information is generated by the video encoding method or device shown in each of the above embodiments, in step exS102, decoding is performed by the video decoding method shown in each of the above embodiments. In addition, if the stream type or the video stream attribute information indicates that the data conforms to conventional standards such as MPEG-2, MPEG4-AVC, VC-1, etc., in step exS103, decoding is performed by the video decoding method conforming to the conventional standard.

このように、ストリームタイプ、または、ビデオストリーム属性情報に新たな固有値を設定することにより、復号する際に、上記各実施の形態で示した動画像復号化方法または装置で復号可能であるかを判断することができる。従って、異なる規格に準拠する多重化データが入力された場合であっても、適切な復号化方法または装置を選択することができるため、エラーを生じることなく復号することが可能となる。また、本実施の形態で示した動画像符号化方法または装置、または、動画像復号方法または装置を、上述したいずれの機器・システムに用いることも可能である。 In this way, by setting a new unique value in the stream type or video stream attribute information, it is possible to determine whether the video decoding method or device shown in each of the above embodiments is capable of decoding the data when decoding. Therefore, even when multiplexed data conforming to a different standard is input, an appropriate decoding method or device can be selected, making it possible to decode the data without errors. Furthermore, the video encoding method or device, or video decoding method or device shown in this embodiment can be used in any of the above-mentioned devices and systems.

(実施の形態8)
上記各実施の形態で示した動画像符号化方法および装置、動画像復号化方法および装置は、典型的には集積回路であるLSIで実現される。一例として、図47に1チップ化されたLSIex500の構成を示す。LSIex500は、以下に説明する要素ex501、ex502、ex503、ex504、ex505、ex506、ex507、ex508、ex509を備え、各要素はバスex510を介して接続している。電源回路部ex505は電源がオン状態の場合に各部に対して電力を供給することで動作可能な状態に起動する。
(Embodiment 8)
The video coding method and device, and video decoding method and device shown in each of the above embodiments are typically realized by an LSI, which is an integrated circuit. As an example, FIG. 47 shows the configuration of a single-chip LSI ex500. The LSI ex500 includes elements ex501, ex502, ex503, ex504, ex505, ex506, ex507, ex508, and ex509, which will be described below, and each element is connected via a bus ex510. When the power supply is on, the power supply circuit unit ex505 supplies power to each unit to start it up in an operable state.

例えば符号化処理を行う場合には、LSIex500は、CPUex502、メモリコントローラex503、ストリームコントローラex504、駆動周波数制御部ex512等を有する制御部ex501の制御に基づいて、AV I/Oex509によりマイクex117やカメラex113等からAV信号を入力する。入力されたAV信号は、一旦SDRAM等の外部のメモリex511に蓄積される。制御部ex501の制御に基づいて、蓄積したデータは処理量や処理速度に応じて適宜複数回に分けるなどされ信号処理部ex507に送られ、信号処理部ex507において音声信号の符号化および/または映像信号の符号化が行われる。ここで映像信号の符号化処理は上記各実施の形態で説明した符号化処理である。信号処理部ex507ではさらに、場合により符号化された音声データと符号化された映像データを多重化するなどの処理を行い、ストリームI/Oex506から外部に出力する。この出力された多重化データは、基地局ex107に向けて送信されたり、または記録メディアex215に書き込まれたりする。なお、多重化する際には同期するよう、一旦バッファex508にデータを蓄積するとよい。 For example, when performing encoding processing, the LSI ex500 inputs AV signals from the microphone ex117, the camera ex113, etc. through the AV I/O ex509 based on the control of the control unit ex501 having the CPU ex502, the memory controller ex503, the stream controller ex504, the drive frequency control unit ex512, etc. The input AV signals are temporarily stored in an external memory ex511 such as an SDRAM. Based on the control of the control unit ex501, the stored data is divided into multiple times as appropriate depending on the processing amount and processing speed and sent to the signal processing unit ex507, where the audio signal is encoded and/or the video signal is encoded. Here, the video signal encoding process is the encoding process described in each of the above embodiments. The signal processing unit ex507 further performs processing such as multiplexing the encoded audio data and the encoded video data in some cases, and outputs the data to the outside from the stream I/O ex506. This output multiplexed data is transmitted to the base station ex107 or written to the recording medium ex215. In addition, when multiplexing, it is a good idea to first store the data in buffer ex508 to ensure synchronization.

なお、上記では、メモリex511がLSIex500の外部の構成として説明したが、LSIex500の内部に含まれる構成であってもよい。バッファex508も1つに限ったものではなく、複数のバッファを備えていてもよい。また、LSIex500は1チップ化されてもよいし、複数チップ化されてもよい。 In the above, the memory ex511 is described as being configured externally to the LSI ex500, but it may be configured as being included inside the LSI ex500. The buffer ex508 is not limited to one, and may include multiple buffers. In addition, the LSI ex500 may be formed as a single chip or multiple chips.

また、上記では、制御部ex501が、CPUex502、メモリコントローラex503、ストリームコントローラex504、駆動周波数制御部ex512等を有するとしているが、制御部ex501の構成は、この構成に限らない。例えば、信号処理部ex507がさらにCPUを備える構成であってもよい。信号処理部ex507の内部にもCPUを設けることにより、処理速度をより向上させることが可能になる。また、他の例として、CPUex502が信号処理部ex507、または信号処理部ex507の一部である例えば音声信号処理部を備える構成であってもよい。このような場合には、制御部ex501は、信号処理部ex507、またはその一部を有するCPUex502を備える構成となる。 In the above, the control unit ex501 is described as having a CPU ex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc., but the configuration of the control unit ex501 is not limited to this configuration. For example, the signal processing unit ex507 may further include a CPU. By providing a CPU inside the signal processing unit ex507, it is possible to further improve the processing speed. As another example, the CPU ex502 may include the signal processing unit ex507, or a part of the signal processing unit ex507, such as an audio signal processing unit. In such a case, the control unit ex501 is configured to include a CPU ex502 that has the signal processing unit ex507, or a part of it.

なお、ここでは、LSIとしたが、集積度の違いにより、IC、システムLSI、スーパーLSI、ウルトラLSIと呼称されることもある。 Note that although we refer to it as an LSI here, it may also be called an IC, system LSI, super LSI, or ultra LSI depending on the level of integration.

また、集積回路化の手法はLSIに限るものではなく、専用回路または汎用プロセッサで実現してもよい。LSI製造後に、プログラムすることが可能なFPGA(Field Programmable Gate Array)や、LSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用してもよい。このようなプログラマブル・ロジック・デバイスは、典型的には、ソフトウェア又はファームウェアを構成するプログラムを、ロードする又はメモリ等から読み込むことで、上記各実施の形態で示した動画像符号化方法、又は動画像復号化方法を実行することができる。 In addition, the method of integration is not limited to LSI, but may be realized by a dedicated circuit or a general-purpose processor. A field programmable gate array (FPGA) that can be programmed after LSI manufacture, or a reconfigurable processor that can reconfigure the connections and settings of circuit cells inside the LSI, may also be used. Such a programmable logic device can typically execute the video encoding method or video decoding method shown in each of the above embodiments by loading or reading from a memory or the like a program that constitutes the software or firmware.

さらには、半導体技術の進歩または派生する別技術によりLSIに置き換わる集積回路化の技術が登場すれば、当然、その技術を用いて機能ブロックの集積化を行ってもよい。バイオ技術の適応等が可能性としてありえる。 Furthermore, if an integrated circuit technology that can replace LSI emerges due to advances in semiconductor technology or other derived technologies, it is natural that such technology can be used to integrate functional blocks. The application of biotechnology, etc. is also a possibility.

(実施の形態9)
上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データを復号する場合、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する映像データを復号する場合に比べ、処理量が増加することが考えられる。そのため、LSIex500において、従来の規格に準拠する映像データを復号する際のCPUex502の駆動周波数よりも高い駆動周波数に設定する必要がある。しかし、駆動周波数を高くすると、消費電力が高くなるという課題が生じる。
(Embodiment 9)
When decoding video data generated by the video encoding method or device shown in each of the above embodiments, the amount of processing is expected to increase compared to when decoding video data conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. Therefore, in the LSI ex500, it is necessary to set a driving frequency higher than the driving frequency of the CPU ex502 when decoding video data conforming to conventional standards. However, when the driving frequency is increased, a problem occurs in that power consumption increases.

この課題を解決するために、テレビex300、LSIex500などの動画像復号化装置は、映像データがどの規格に準拠するものであるかを識別し、規格に応じて駆動周波数を切替える構成とする。図48は、本実施の形態における構成ex800を示している。駆動周波数切替え部ex803は、映像データが、上記各実施の形態で示した動画像符号化方法または装置によって生成されたものである場合には、駆動周波数を高く設定する。そして、上記各実施の形態で示した動画像復号化方法を実行する復号処理部ex801に対し、映像データを復号するよう指示する。一方、映像データが、従来の規格に準拠する映像データである場合には、映像データが、上記各実施の形態で示した動画像符号化方法または装置によって生成されたものである場合に比べ、駆動周波数を低く設定する。そして、従来の規格に準拠する復号処理部ex802に対し、映像データを復号するよう指示する。 To solve this problem, a video decoding device such as a television ex300 or an LSI ex500 is configured to identify which standard the video data complies with and switch the drive frequency according to the standard. FIG. 48 shows a configuration ex800 in this embodiment. If the video data is generated by the video encoding method or device shown in each of the above embodiments, the drive frequency switching unit ex803 sets the drive frequency high. Then, it instructs the decoding processing unit ex801 that executes the video decoding method shown in each of the above embodiments to decode the video data. On the other hand, if the video data is video data that complies with a conventional standard, it sets the drive frequency lower than when the video data is generated by the video encoding method or device shown in each of the above embodiments. Then, it instructs the decoding processing unit ex802 that complies with the conventional standard to decode the video data.

より具体的には、駆動周波数切替え部ex803は、図47のCPUex502と駆動周波数制御部ex512から構成される。また、上記各実施の形態で示した動画像復号化方法を実行する復号処理部ex801、および、従来の規格に準拠する復号処理部ex802は、図47の信号処理部ex507に該当する。CPUex502は、映像データがどの規格に準拠するものであるかを識別する。そして、CPUex502からの信号に基づいて、駆動周波数制御部ex512は、駆動周波数を設定する。また、CPUex502からの信号に基づいて、信号処理部ex507は、映像データの復号を行う。ここで、映像データの識別には、例えば、実施の形態7で記載した識別情報を利用することが考えられる。識別情報に関しては、実施の形態7で記載したものに限られず、映像データがどの規格に準拠するか識別できる情報であればよい。例えば、映像データがテレビに利用されるものであるか、ディスクに利用されるものであるかなどを識別する外部信号に基づいて、映像データがどの規格に準拠するものであるか識別可能である場合には、このような外部信号に基づいて識別してもよい。また、CPUex502における駆動周波数の選択は、例えば、図50のような映像データの規格と、駆動周波数とを対応付けたルックアップテーブルに基づいて行うことが考えられる。ルックアップテーブルを、バッファex508や、LSIの内部メモリに格納しておき、CPUex502がこのルックアップテーブルを参照することにより、駆動周波数を選択することが可能である。 More specifically, the drive frequency switching unit ex803 is composed of the CPU ex502 and the drive frequency control unit ex512 in FIG. 47. The decoding processing unit ex801 that executes the video decoding method shown in each of the above embodiments, and the decoding processing unit ex802 that complies with the conventional standard correspond to the signal processing unit ex507 in FIG. 47. The CPU ex502 identifies which standard the video data complies with. Then, based on the signal from the CPU ex502, the drive frequency control unit ex512 sets the drive frequency. Also, based on the signal from the CPU ex502, the signal processing unit ex507 decodes the video data. Here, for example, the identification information described in the seventh embodiment can be used to identify the video data. The identification information is not limited to that described in the seventh embodiment, and may be any information that can identify which standard the video data complies with. For example, if it is possible to identify which standard the video data complies with based on an external signal that identifies whether the video data is used for a television or a disk, the identification may be based on such an external signal. Also, the selection of the drive frequency in the CPUex502 can be based on a lookup table that associates the video data standard with the drive frequency, as shown in FIG. 50. The lookup table is stored in the bufferex508 or the internal memory of the LSI, and the CPUex502 can select the drive frequency by referring to this lookup table.

図49は、本実施の形態の方法を実施するステップを示している。まず、ステップexS200では、信号処理部ex507において、多重化データから識別情報を取得する。次に、ステップexS201では、CPUex502において、識別情報に基づいて映像データが上記各実施の形態で示した符号化方法または装置によって生成されたものであるか否かを識別する。映像データが上記各実施の形態で示した符号化方法または装置によって生成されたものである場合には、ステップexS202において、駆動周波数を高く設定する信号を、CPUex502が駆動周波数制御部ex512に送る。そして、駆動周波数制御部ex512において、高い駆動周波数に設定される。一方、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する映像データであることを示している場合には、ステップexS203において、駆動周波数を低く設定する信号を、CPUex502が駆動周波数制御部ex512に送る。そして、駆動周波数制御部ex512において、映像データが上記各実施の形態で示した符号化方法または装置によって生成されたものである場合に比べ、低い駆動周波数に設定される。 Figure 49 shows the steps of implementing the method of this embodiment. First, in step exS200, the signal processing unit ex507 acquires identification information from the multiplexed data. Next, in step exS201, the CPU ex502 identifies whether the video data was generated by the encoding method or device shown in each of the above embodiments based on the identification information. If the video data was generated by the encoding method or device shown in each of the above embodiments, in step exS202, the CPU ex502 sends a signal to the driving frequency control unit ex512 to set the driving frequency high. Then, the driving frequency control unit ex512 sets the driving frequency to a high frequency. On the other hand, if the video data indicates that it is video data that complies with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, in step exS203, the CPU ex502 sends a signal to the driving frequency control unit ex512 to set the driving frequency low. Then, in the driving frequency control unit ex512, the driving frequency is set to a lower frequency than when the video data was generated by the encoding method or device shown in each of the above embodiments.

さらに、駆動周波数の切替えに連動して、LSIex500またはLSIex500を含む装置に与える電圧を変更することにより、省電力効果をより高めることが可能である。例えば、駆動周波数を低く設定する場合には、これに伴い、駆動周波数を高く設定している場合に比べ、LSIex500またはLSIex500を含む装置に与える電圧を低く設定することが考えられる。 Furthermore, by changing the voltage applied to the LSIex500 or a device including the LSIex500 in conjunction with switching the drive frequency, it is possible to further enhance the power saving effect. For example, when the drive frequency is set low, it is conceivable to set the voltage applied to the LSIex500 or a device including the LSIex500 lower in response to this, compared to when the drive frequency is set high.

また、駆動周波数の設定方法は、復号する際の処理量が大きい場合に、駆動周波数を高く設定し、復号する際の処理量が小さい場合に、駆動周波数を低く設定すればよく、上述した設定方法に限らない。例えば、MPEG4-AVC規格に準拠する映像データを復号する処理量の方が、上記各実施の形態で示した動画像符号化方法または装置により生成された映像データを復号する処理量よりも大きい場合には、駆動周波数の設定を上述した場合の逆にすることが考えられる。 The method of setting the drive frequency is not limited to the above-mentioned setting method; if the processing volume during decoding is large, the drive frequency is set high, and if the processing volume during decoding is small, the drive frequency is set low. For example, if the processing volume required to decode video data conforming to the MPEG4-AVC standard is larger than the processing volume required to decode video data generated by the video encoding method or device shown in each of the above embodiments, the drive frequency may be set in the opposite manner to that described above.

さらに、駆動周波数の設定方法は、駆動周波数を低くする構成に限らない。例えば、識別情報が、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示している場合には、LSIex500またはLSIex500を含む装置に与える電圧を高く設定し、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する映像データであることを示している場合には、LSIex500またはLSIex500を含む装置に与える電圧を低く設定することも考えられる。また、他の例としては、識別情報が、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示している場合には、CPUex502の駆動を停止させることなく、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する映像データであることを示している場合には、処理に余裕があるため、CPUex502の駆動を一時停止させることも考えられる。識別情報が、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示している場合であっても、処理に余裕があれば、CPUex502の駆動を一時停止させることも考えられる。この場合は、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する映像データであることを示している場合に比べて、停止時間を短く設定することが考えられる。 Furthermore, the method of setting the drive frequency is not limited to the configuration of lowering the drive frequency. For example, if the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the voltage to be applied to the LSIex500 or the device including the LSIex500 can be set high, and if the identification information indicates that the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, VC-1, the voltage to be applied to the LSIex500 or the device including the LSIex500 can be set low. As another example, if the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the drive of the CPUex502 can be suspended without stopping the drive of the CPUex502, and if the identification information indicates that the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, VC-1, there is a margin for processing. Even if the identification information indicates that the video data was generated by the video encoding method or device described in each of the above embodiments, if there is processing capacity available, it is possible to temporarily halt the operation of the CPUex502. In this case, it is possible to set a shorter stop time compared to when the identification information indicates that the video data complies with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1.

このように、映像データが準拠する規格に応じて、駆動周波数を切替えることにより、省電力化を図ることが可能になる。また、電池を用いてLSIex500またはLSIex500を含む装置を駆動している場合には、省電力化に伴い、電池の寿命を長くすることが可能である。 In this way, by switching the drive frequency depending on the standard to which the video data conforms, it is possible to achieve power saving. Furthermore, when the LSIex500 or a device including the LSIex500 is driven using a battery, the power saving can also extend the battery life.

(実施の形態10)
テレビや、携帯電話など、上述した機器・システムには、異なる規格に準拠する複数の映像データが入力される場合がある。このように、異なる規格に準拠する複数の映像データが入力された場合にも復号できるようにするために、LSIex500の信号処理部ex507が複数の規格に対応している必要がある。しかし、それぞれの規格に対応する信号処理部ex507を個別に用いると、LSIex500の回路規模が大きくなり、また、コストが増加するという課題が生じる。
(Embodiment 10)
In the above-mentioned devices and systems, such as televisions and mobile phones, multiple video data conforming to different standards may be input. In order to be able to decode multiple video data conforming to different standards, the signal processing unit ex507 of the LSI ex500 must support multiple standards. However, if the signal processing units ex507 corresponding to each standard are used individually, the circuit size of the LSI ex500 becomes large and the cost increases.

この課題を解決するために、上記各実施の形態で示した動画像復号方法を実行するための復号処理部と、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する復号処理部とを一部共有化する構成とする。この構成例を図51Aのex900に示す。例えば、上記各実施の形態で示した動画像復号方法と、MPEG4-AVC規格に準拠する動画像復号方法とは、エントロピー符号化、逆量子化、デブロッキング・フィルタ、動き補償などの処理において処理内容が一部共通する。共通する処理内容については、MPEG4-AVC規格に対応する復号処理部ex902を共有し、MPEG4-AVC規格に対応しない、本発明の一態様に特有の他の処理内容については、専用の復号処理部ex901を用いるという構成が考えられる。特に、本発明の一態様は、動き補償に特徴を有していることから、例えば、動き補償については専用の復号処理部ex901を用い、それ以外の逆量子化、エントロピー復号、デブロッキング・フィルタのいずれか、または、全ての処理については、復号処理部を共有することが考えられる。復号処理部の共有化に関しては、共通する処理内容については、上記各実施の形態で示した動画像復号化方法を実行するための復号処理部を共有し、MPEG4-AVC規格に特有の処理内容については、専用の復号処理部を用いる構成であってもよい。 In order to solve this problem, a configuration is adopted in which a decoding processing unit for executing the video decoding method shown in each of the above embodiments is partially shared with a decoding processing unit conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. An example of this configuration is shown in ex900 in FIG. 51A. For example, the video decoding method shown in each of the above embodiments and the video decoding method conforming to the MPEG4-AVC standard share some of the processing contents in processes such as entropy coding, inverse quantization, deblocking filter, and motion compensation. For the common processing contents, a decoding processing unit ex902 corresponding to the MPEG4-AVC standard is shared, and a dedicated decoding processing unit ex901 is used for other processing contents specific to one aspect of the present invention that do not conform to the MPEG4-AVC standard. In particular, since one aspect of the present invention is characterized by motion compensation, for example, a dedicated decoding processing unit ex901 is used for motion compensation, and a decoding processing unit is shared for any or all of the other processing such as inverse quantization, entropy decoding, and deblocking filter. Regarding sharing of the decoding processing unit, for common processing content, a decoding processing unit for executing the video decoding method shown in each of the above embodiments may be shared, and for processing content specific to the MPEG4-AVC standard, a dedicated decoding processing unit may be used.

また、処理を一部共有化する他の例を図51Bのex1000に示す。この例では、本発明の一態様に特有の処理内容に対応した専用の復号処理部ex1001と、他の従来規格に特有の処理内容に対応した専用の復号処理部ex1002と、本発明の一態様に係る動画像復号方法と他の従来規格の動画像復号方法とに共通する処理内容に対応した共用の復号処理部ex1003とを用いる構成としている。ここで、専用の復号処理部ex1001、ex1002は、必ずしも本発明の一態様、または、他の従来規格に特有の処理内容に特化したものではなく、他の汎用処理を実行できるものであってもよい。また、本実施の形態の構成を、LSIex500で実装することも可能である。 Another example of partially sharing processing is shown in ex1000 in FIG. 51B. In this example, a dedicated decoding processing unit ex1001 corresponding to processing content specific to one aspect of the present invention, a dedicated decoding processing unit ex1002 corresponding to processing content specific to other conventional standards, and a shared decoding processing unit ex1003 corresponding to processing content common to the video decoding method according to one aspect of the present invention and the video decoding method of other conventional standards are used. Here, the dedicated decoding processing units ex1001 and ex1002 are not necessarily specialized for processing content specific to one aspect of the present invention or other conventional standards, and may be capable of executing other general-purpose processing. The configuration of this embodiment can also be implemented in an LSI ex500.

このように、本発明の一態様に係る動画像復号方法と、従来の規格の動画像復号方法とで共通する処理内容について、復号処理部を共有することにより、LSIの回路規模を小さくし、かつ、コストを低減することが可能である。 In this way, by sharing a decoding processing unit for processing content common to the video decoding method according to one aspect of the present invention and the video decoding method of the conventional standard, it is possible to reduce the circuit size of the LSI and reduce costs.

本発明は、画像処理装置、画像の撮像装置及び画像の再生装置に適用可能である。具体的には、デジタルスチルカメラ、ムービー、カメラ機能付き携帯電話機、及びスマートフォンなどに、本発明は適用可能である。 The present invention is applicable to image processing devices, image capture devices, and image playback devices. Specifically, the present invention is applicable to digital still cameras, movie cameras, mobile phones with camera functions, smartphones, etc.

100 画像符号化装置
101 ブロック分割部
102 減算部
103 周波数変換部
104 量子化部
105 エントロピー符号化部
106、202 逆量子化部
107、203 逆周波数変換部
108、204 加算部
109、205 イントラ予測部
110、206 ループフィルタ
111、207 フレームメモリ
112、208 インター予測部
113、209 切替部
121 入力画像
122 符号ブロック
123、128、224 差分ブロック
124、125、127、222、223 係数ブロック
126、221 ビットストリーム
129、225 復号ブロック
130、132、134、226、229、230 予測ブロック
131、227 復号画像
133、151、228 動き情報
141 符号化情報選択部
142 動き推定部
143 動き補償部
144 動き情報計算部
161 平行移動フラグ
162 回転フラグ
163 拡大縮小フラグ
164 せん断フラグ
171 差分平行移動成分
172 差分回転成分
173 差分拡大縮小成分
174 差分せん断成分
181 符号化レベル情報
200 画像復号装置
201 エントロピー復号部
REFERENCE SIGNS LIST 100 Image encoding device 101 Block division unit 102 Subtraction unit 103 Frequency conversion unit 104 Quantization unit 105 Entropy encoding unit 106, 202 Inverse quantization unit 107, 203 Inverse frequency conversion unit 108, 204 Addition unit 109, 205 Intra prediction unit 110, 206 Loop filter 111, 207 Frame memory 112, 208 Inter prediction unit 113, 209 Switching unit 121 Input image 122 Code block 123, 128, 224 Difference block 124, 125, 127, 222, 223 Coefficient block 126, 221 Bit stream 129, 225 Decoded block 130, 132, 134, 226, 229, 230 Prediction block 131, 227 Decoded image 133, 151, 228 Motion information 141 Encoding information selection unit 142 Motion estimation unit 143 Motion compensation unit 144 Motion information calculation unit 161 Translation flag 162 Rotation flag 163 Scaling flag 164 Shear flag 171 Residual translation component 172 Residual rotation component 173 Residual scaling component 174 Residual shear component 181 Encoding level information 200 Image decoding device 201 Entropy decoding unit

Claims (3)

処理回路と、
前記処理回路からアクセス可能な記憶装置とを備え、
前記処理回路は、前記記憶装置を用いて、
シーケンスに含まれる複数のブロックに適用される情報であって、アフィン変換に基づく予測において、予測に用いられるパラメータの数の決定に用いられる情報をビットストリームから復号し、
前記情報に基づいて選択された数のパラメータを用いたアフィン変換に基づく予測を行うことで、前記シーケンスに含まれる前記複数のブロックのそれぞれの予測画像を生成し、
前記予測に用いられるパラメータの数の候補は、4と6を含む、
画像復号装置。
A processing circuit;
a storage device accessible by the processing circuitry;
The processing circuitry uses the storage device to:
Decoding information from the bitstream that is applied to a number of blocks included in the sequence and that is used to determine the number of parameters used in a prediction based on an affine transformation;
generating a predicted image for each of the plurality of blocks included in the sequence by performing a prediction based on an affine transformation using a number of parameters selected based on the information;
Candidates for the number of parameters used in the prediction include 4 and 6.
Image decoding device.
処理回路と、
前記処理回路からアクセス可能な記憶装置とを備え、
前記処理回路は、前記記憶装置を用いて、
アフィン変換に基づく予測において、予測に用いられるパラメータの数を決定し、
決定した数のパラメータを用いたアフィン変換に基づく予測を行うことで、シーケンスに含まれる複数のブロックのそれぞれの予測画像を生成し、
前記シーケンスに含まれる前記複数のブロックに適用される情報であって、前記パラメータの数の決定に用いられる情報を符号化し、
前記予測に用いられるパラメータの数の候補は、4と6を含む、
画像符号化装置。
A processing circuit;
a storage device accessible by the processing circuitry;
The processing circuitry uses the storage device to:
determining the number of parameters used in the prediction based on the affine transformation;
generating a predicted image for each of a plurality of blocks included in the sequence by performing prediction based on an affine transformation using the determined number of parameters;
encoding information that is applied to the blocks in the sequence and that is used to determine the number of parameters;
Candidates for the number of parameters used in the prediction include 4 and 6.
Image encoding device.
処理回路と、
前記処理回路からアクセス可能な記憶装置とを備え、
前記処理回路は、前記記憶装置を用いて、
シーケンスに含まれる複数のブロックに適用される情報であって、アフィン変換に基づく予測処理において、予測に用いられるパラメータの数の決定に用いられる情報を生成し、
前記情報をビットストリームに含め、
前記予測処理は、
前記情報に基づいて選択された数のパラメータを用いたアフィン変換に基づく予測を行うことで、前記シーケンスに含まれる前記複数のブロックのそれぞれの予測画像を生成する処理を含み、
前記予測に用いられるパラメータの数の候補は、4と6を含む、
ビットストリーム生成装置。
A processing circuit;
a storage device accessible by the processing circuitry;
The processing circuitry uses the storage device to:
generating information to be applied to a plurality of blocks included in the sequence, the information being used to determine the number of parameters to be used in a prediction process based on an affine transformation;
including said information in a bitstream;
The prediction process includes:
generating a prediction image for each of the plurality of blocks included in the sequence by performing prediction based on an affine transformation using a number of parameters selected based on the information;
Candidates for the number of parameters used in the prediction include 4 and 6.
Bitstream generator.
JP2024029938A 2013-09-30 2024-02-29 Image decoding device, image encoding device, and bitstream generating device Active JP7664546B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2025051129A JP2025102849A (en) 2013-09-30 2025-03-26 Image decoding device, image encoding device, and bitstream generating device

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP2013205619 2013-09-30
JP2013205619 2013-09-30
JP2019193580A JP6910019B2 (en) 2013-09-30 2019-10-24 Image coding method, image decoding method, image coding device and image decoding device
JP2021103274A JP7233027B2 (en) 2013-09-30 2021-06-22 Image decoding device and image encoding device
JP2023018114A JP7457929B2 (en) 2013-09-30 2023-02-09 Image decoding device and image encoding device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2023018114A Division JP7457929B2 (en) 2013-09-30 2023-02-09 Image decoding device and image encoding device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2025051129A Division JP2025102849A (en) 2013-09-30 2025-03-26 Image decoding device, image encoding device, and bitstream generating device

Publications (2)

Publication Number Publication Date
JP2024059908A JP2024059908A (en) 2024-05-01
JP7664546B2 true JP7664546B2 (en) 2025-04-18

Family

ID=77918535

Family Applications (4)

Application Number Title Priority Date Filing Date
JP2021103274A Active JP7233027B2 (en) 2013-09-30 2021-06-22 Image decoding device and image encoding device
JP2023018114A Active JP7457929B2 (en) 2013-09-30 2023-02-09 Image decoding device and image encoding device
JP2024029938A Active JP7664546B2 (en) 2013-09-30 2024-02-29 Image decoding device, image encoding device, and bitstream generating device
JP2025051129A Pending JP2025102849A (en) 2013-09-30 2025-03-26 Image decoding device, image encoding device, and bitstream generating device

Family Applications Before (2)

Application Number Title Priority Date Filing Date
JP2021103274A Active JP7233027B2 (en) 2013-09-30 2021-06-22 Image decoding device and image encoding device
JP2023018114A Active JP7457929B2 (en) 2013-09-30 2023-02-09 Image decoding device and image encoding device

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2025051129A Pending JP2025102849A (en) 2013-09-30 2025-03-26 Image decoding device, image encoding device, and bitstream generating device

Country Status (1)

Country Link
JP (4) JP7233027B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2025102849A (en) * 2013-09-30 2025-07-08 サン パテント トラスト Image decoding device, image encoding device, and bitstream generating device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004007804A (en) 1996-01-22 2004-01-08 Matsushita Electric Ind Co Ltd Digital image encoding / decoding method and digital image encoding / decoding apparatus using the same
JP2004159132A (en) 2002-11-07 2004-06-03 Nippon Telegr & Teleph Corp <Ntt> Image encoding method, image decoding method, image encoding device, image decoding device, image encoding program, image decoding program, and recording medium storing the program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3654664B2 (en) * 1994-08-23 2005-06-02 シャープ株式会社 Image encoding apparatus and image decoding apparatus
JPH09224252A (en) * 1996-02-16 1997-08-26 Nippon Telegr & Teleph Corp <Ntt> MOTION COMPENSATION PREDICTING ENCODING METHOD / DECODING METHOD, AND ENCODING DEVICE / DECODING DEVICE
US20070076796A1 (en) 2005-09-27 2007-04-05 Fang Shi Frame interpolation using more accurate motion information
JP7233027B2 (en) * 2013-09-30 2023-03-06 サン パテント トラスト Image decoding device and image encoding device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004007804A (en) 1996-01-22 2004-01-08 Matsushita Electric Ind Co Ltd Digital image encoding / decoding method and digital image encoding / decoding apparatus using the same
JP2004159132A (en) 2002-11-07 2004-06-03 Nippon Telegr & Teleph Corp <Ntt> Image encoding method, image decoding method, image encoding device, image decoding device, image encoding program, image decoding program, and recording medium storing the program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2025102849A (en) * 2013-09-30 2025-07-08 サン パテント トラスト Image decoding device, image encoding device, and bitstream generating device

Also Published As

Publication number Publication date
JP2025102849A (en) 2025-07-08
JP7233027B2 (en) 2023-03-06
JP2023053089A (en) 2023-04-12
JP7457929B2 (en) 2024-03-29
JP2021158682A (en) 2021-10-07
JP2024059908A (en) 2024-05-01

Similar Documents

Publication Publication Date Title
JP6910019B2 (en) Image coding method, image decoding method, image coding device and image decoding device
JP7825168B2 (en) Streaming server and method for transmitting bitstreams
JP6008263B2 (en) Reproduction method and reproduction apparatus
JP6145832B2 (en) Image encoding method and image encoding apparatus
JP6327435B2 (en) Image encoding method, image decoding method, image encoding device, and image decoding device
JP6587046B2 (en) Image encoding method, image decoding method, image encoding device, and image decoding device
JP6610853B2 (en) Predicted image generation method, image encoding method, image decoding method, and predicted image generation apparatus
KR20170035832A (en) Image encoding method, image decoding method, image encoding apparatus, image decoding apparatus, and content delivery method
JP5694447B2 (en) Image encoding / decoding device
TW201415903A (en) Image coding method, image decoding method, image coding apparatus, image decoding apparatus, and image coding and decoding apparaus
WO2012023281A1 (en) Video image decoding method, video image encoding method, video image decoding apparatus, and video image encoding apparatus
JPWO2011129090A1 (en) Coding distortion removing method, coding method, decoding method, coding distortion removing apparatus, coding apparatus, and decoding apparatus
JP2025102849A (en) Image decoding device, image encoding device, and bitstream generating device
JP7236667B2 (en) Image decoding device, image encoding device and recording medium
WO2011135841A1 (en) Image encoding method, image decoding method, image encoding apparatus and image decoding apparatus
WO2015004884A1 (en) Image coding method, image decoding method, image coding device, and image decoding device
CN105284110A (en) Image coding method, and image coding device
WO2012081225A1 (en) Image encoding method and image decoding method
WO2011135829A1 (en) Encoding method and decoding method
WO2012086166A1 (en) Image encoding method and image decoding method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240229

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20250218

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250326

R150 Certificate of patent or registration of utility model

Ref document number: 7664546

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150