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
JP6882564B2 - Encoding device, decoding method - Google Patents
[go: Go Back, main page]

JP6882564B2 - Encoding device, decoding method - Google Patents

Encoding device, decoding method Download PDF

Info

Publication number
JP6882564B2
JP6882564B2 JP2020040364A JP2020040364A JP6882564B2 JP 6882564 B2 JP6882564 B2 JP 6882564B2 JP 2020040364 A JP2020040364 A JP 2020040364A JP 2020040364 A JP2020040364 A JP 2020040364A JP 6882564 B2 JP6882564 B2 JP 6882564B2
Authority
JP
Japan
Prior art keywords
motion vector
unit
block
layer
coding
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
JP2020040364A
Other languages
Japanese (ja)
Other versions
JP2020102869A (en
Inventor
前田 充
充 前田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2020040364A priority Critical patent/JP6882564B2/en
Publication of JP2020102869A publication Critical patent/JP2020102869A/en
Application granted granted Critical
Publication of JP6882564B2 publication Critical patent/JP6882564B2/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 a process of encoding a block included in an image using motion compensation.

動画像の圧縮記録の符号化方式として、H.264/MPEG−4 AVC(以下H.264と略す)が知られている(非特許文献1)。H.264においては従来の符号化方式と同様に他のピクチャを参照して動き補償を行うことによって符号化効率を向上させている。マクロブロック(16画素×16画素)単位またはブロック(8画素×8画素等)単位に動きベクトルを符号化することできる。動きベクトルの符号化においては周囲のブロック(左、上、右上)の動きベクトルの中央値を用いて予測動きベクトルを算出し、これと符号化対象の動きベクトルとの誤差を符号化している。また、H.264では階層符号化を行うことができる。非特許文献1のAnnex G Scalable videocodingの章に記載されている。空間スケーラビリティの場合、拡張レイヤの動きベクトルの符号化時に通常の動きベクトルの中央値の代わりに、基本レイヤのブロックの動きベクトルを拡大して予測動きベクトル(以後、レイヤ間予測動きベクトルと呼ぶ)とすることができる。すなわち、motion_prediction_flagを用いて、この値が真であれば拡大して得られた動きベクトルを用いることができる。 As a coding method for compressed recording of moving images, H.I. 264 / MPEG-4 AVC (hereinafter abbreviated as H.264) is known (Non-Patent Document 1). H. In 264, the coding efficiency is improved by performing motion compensation with reference to other pictures as in the conventional coding method. The motion vector can be encoded in units of macroblocks (16 pixels × 16 pixels) or blocks (8 pixels × 8 pixels, etc.). In the coding of the motion vector, the predicted motion vector is calculated using the median value of the motion vector of the surrounding blocks (left, top, upper right), and the error between this and the motion vector to be encoded is encoded. In addition, H. In 264, hierarchical coding can be performed. It is described in the chapter of Annex G Scalable video coding in Non-Patent Document 1. In the case of spatial scalability, instead of the median of the normal motion vector when encoding the motion vector of the extension layer, the motion vector of the block of the base layer is expanded to be the predicted motion vector (hereinafter referred to as the interlayer predicted motion vector). Can be. That is, using motion_prescription_flag, if this value is true, the motion vector obtained by enlarging can be used.

また、近年、H.264の後継としてさらに高効率な符号化方式の国際標準化を行う活動が開始された。このために、JCT−VC(Joint CollaborativeTeam on Video Coding)がISO/IECとITU−Tの間で設立された。ここではHigh Efficiency Video Coding符号化方式(以下、HEVCと略す)として標準化が進められている。HEVCでは動きベクトルの新しい符号化方式として、Advanced Motion Vector Prediction(以下、AMVP)が提案されている(非特許文献2)。AMVPでは周囲のブロックの動きベクトルの中央値を参照動きベクトルとするだけではなく、周囲のブロックの動きベクトル自体も参照動きベクトルとなる。また、周囲のブロックの動きベクトルだけではなく、符号化順で前のピクチャの同じ位置のブロックの動きベクトル(以後、時間方向予測動きベクトル)も含めて予測動きベクトルとする。これらの予測動きベクトルから同じ成分の動きベクトルをまとめることで対象となる動きベクトルを削減し、この中から最も近い動きベクトルを選択する。選択された動きベクトルを識別する符号(以下、予測ベクトルインデックス符号)と予測の結果の予測誤差を符号化する。これにより、符号化効率の向上を図っている。 In recent years, H. As a successor to 264, activities to carry out international standardization of more efficient coding methods have started. To this end, JCT-VC (Joint Collaborative Team on Video Coding) was established between ISO / IEC and ITU-T. Here, standardization is being promoted as a High Efficiency Video Coding coding method (hereinafter, abbreviated as HEVC). HEVC has proposed Advanced Motion Vector Prediction (hereinafter referred to as AMVP) as a new coding method for motion vectors (Non-Patent Document 2). In AMVP, not only the median value of the motion vector of the surrounding block is used as the reference motion vector, but also the motion vector of the surrounding block itself is used as the reference motion vector. Further, not only the motion vector of the surrounding blocks but also the motion vector of the block at the same position in the previous picture in the coding order (hereinafter referred to as the time direction predicted motion vector) is included in the predicted motion vector. By collecting motion vectors of the same component from these predicted motion vectors, the target motion vector is reduced, and the closest motion vector is selected from these. A code for identifying the selected motion vector (hereinafter referred to as a prediction vector index code) and a prediction error of the prediction result are encoded. As a result, the coding efficiency is improved.

ISO/IEC14496−10:2010 Information technology−−Coding of audio−visual objects−−Part10:Advanced Video CodingISO / IEC14496-10: 2010 Information technology --- Coding of audio-visual objects --Part 10: Advanced Video Coding JCT−VC 寄書 JCTVC−A124_r2.doc インターネット< http://wftp3.itu.int/av−arch/jctvc−site/2010_04_A_Dresden/>JCT-VC Contribution JCTVC-A124_r2. doc Internet <http://wfttp3. itu. int / av-arch / jctvc-site / 2010_04_A_Dresden />

HEVCにおいて、階層符号化を実現しようとした時、H.264のように拡張レイヤの動きベクトルまたは基本レイヤの動きベクトルを参照するかを選択することになる。しかしながら、H.264のように参照動きベクトルを選択するのであれば前述の方式でも構わないが、AMVPによる予測ベクトルインデックス符号とレイヤ間動きベクトルの予測を選択するフラグが必要になり符号化効率が向上しないという問題が生じている。 In HEVC, when trying to realize hierarchical coding, H.M. You will have to choose whether to refer to the motion vector of the extension layer or the motion vector of the base layer as in 264. However, H. If the reference motion vector is selected as in 264, the above method may be used, but there is a problem that the coding efficiency is not improved because a flag for selecting the prediction vector index code by AMVP and the prediction of the inter-layer motion vector is required. Is occurring.

したがって、本発明は上述した課題を解決するためになされたものであり、階層符号化の拡張レイヤでの動きベクトルの符号化をより簡易な構成で行い、符号化効率の向上を図ることを目的としている。 Therefore, the present invention has been made to solve the above-mentioned problems, and an object of the present invention is to perform coding of a motion vector in an extended layer of hierarchical coding with a simpler configuration and to improve coding efficiency. It is supposed to be.

前述の問題点を解決するため、本発明の符号化装置は以下の構成を有する。 In order to solve the above-mentioned problems, the coding apparatus of the present invention has the following configuration.

複数のレイヤを用いて画像を階層符号化する符号化装置であって、
符号化対象の画像が属する第1レイヤにおける、符号化対象のブロックが属する画像より前に符号化済みである画像に含まれ、当該符号化対象のブロックに対応する位置にあるブロックの動きベクトルである第1ベクトルと、
前記符号化対象の画像が属する第1レイヤとは異なる第2レイヤにおける画像に含まれ、符号化対象のブロックに対応する位置にあるブロックの動きベクトルである第2ベクトルと、
前記符号化対象の画像が属する第1レイヤにおける画像に含まれ、復号対象のブロックの周囲のブロックの動きベクトルである第3ベクトルと、を取得する取得手段と、
前記第1ベクトル、前記第2ベクトル、及び前記第3ベクトルから、前記取得手段によって取得すべき候補となる動きベクトル群を決定し、当該決定に基づいて取得された候補となる動きベクトル群のうち、動きベクトルを符号化対象のブロックの動きベクトルの予測に用いる予測動きベクトルとして決定する決定手段と、
前記決定手段によって決定された動きベクトルの識別情報を符号化する符号化手段と、
前記決定手段は、前記第2ベクトルが前記候補となる動きベクトル群に存在する場合に、前記第1ベクトルを前記候補となる動きベクトル群として含めずに、前記第2ベクトルと、前記第3ベクトルとのうちの少なくともいずれか一つを、前記候補となる動きベクトル群として決定し、
前記決定手段は、前記第2のベクトルを前記候補となる動きベクトル群の所定の順番に配置し、それ以外のベクトルの順番をブロックの位置に基づいて決定することを特徴とする符号化装置。
A coding device that hierarchically encodes an image using multiple layers.
In the first layer to which the image to be encoded belongs, the motion vector of the block included in the image that has been encoded before the image to which the block to be encoded belongs and at the position corresponding to the block to be encoded. With a first vector
A second vector, which is a motion vector of a block included in an image in a second layer different from the first layer to which the image to be encoded belongs and at a position corresponding to the block to be encoded,
An acquisition means for acquiring a third vector, which is included in the image in the first layer to which the image to be encoded belongs and is a motion vector of a block around the block to be decoded.
From the first vector, the second vector, and the third vector, a candidate motion vector group to be acquired by the acquisition means is determined, and among the candidate motion vector groups acquired based on the determination. , A determinant that determines the motion vector as the predicted motion vector used to predict the motion vector of the block to be encoded,
A coding means that encodes the identification information of the motion vector determined by the determination means, and
When the second vector exists in the candidate motion vector group, the determining means does not include the first vector as the candidate motion vector group, but instead includes the second vector and the third vector. At least one of the above is determined as the candidate motion vector group, and the motion vector group is determined.
The determining means is a coding device, characterized in that the second vector is arranged in a predetermined order of the candidate motion vector group, and the order of other vectors is determined based on the position of a block.

本発明により、符号化効率が向上したデータを処理するための符号化装置および方法を提供することができる。 INDUSTRIAL APPLICABILITY According to the present invention, it is possible to provide a coding device and a method for processing data having improved coding efficiency.

実施形態1における画像符号化装置の構成を示すブロック図The block diagram which shows the structure of the image coding apparatus in Embodiment 1. 実施形態1に係る画像符号化装置における動きベクトル符号化部102の詳細なブロック図Detailed block diagram of the motion vector coding unit 102 in the image coding device according to the first embodiment. 実施形態1に係る画像符号化装置における動きベクトル符号化部105の詳細なブロック図Detailed block diagram of the motion vector coding unit 105 in the image coding device according to the first embodiment. 実施形態1に係る画像符号化装置における基本レイヤ動きベクトル符号化処理を示すフローチャートA flowchart showing a basic layer motion vector coding process in the image coding apparatus according to the first embodiment. 実施形態1に係る画像符号化装置における拡張レイヤ動きベクトル符号化処理を示すフローチャートA flowchart showing an extended layer motion vector coding process in the image coding apparatus according to the first embodiment. ブロックと動きベクトルの一例を示す図Diagram showing an example of blocks and motion vectors 実施形態2に係る画像復号装置の構成を示すブロック図The block diagram which shows the structure of the image decoding apparatus which concerns on Embodiment 2. 実施形態2に係る動きベクトル復号部701の詳細なブロック図Detailed block diagram of the motion vector decoding unit 701 according to the second embodiment 実施形態2に係る動きベクトル復号部704の詳細なブロック図Detailed block diagram of the motion vector decoding unit 704 according to the second embodiment 実施形態2における画像復号装置における基本レイヤ動きベクトル復号処理を示すフローチャートA flowchart showing a basic layer motion vector decoding process in the image decoding apparatus according to the second embodiment. 実施形態2における画像復号装置における拡張レイヤ動きベクトル復号処理を示すフローチャートA flowchart showing an extended layer motion vector decoding process in the image decoding apparatus according to the second embodiment. 実施形態3に係る画像符号化装置における動きベクトル符号化部105の詳細なブロック図Detailed block diagram of the motion vector coding unit 105 in the image coding device according to the third embodiment. 実施形態3に係る画像符号化装置における拡張レイヤ動きベクトル符号化処理を示すフローチャートA flowchart showing an extended layer motion vector coding process in the image coding apparatus according to the third embodiment. 実施形態4に係る動きベクトル復号部704の詳細なブロック図Detailed block diagram of the motion vector decoding unit 704 according to the fourth embodiment 実施形態4に係る画像符号化装置における拡張レイヤ動きベクトル符号化処理を示すフローチャートA flowchart showing an extended layer motion vector coding process in the image coding apparatus according to the fourth embodiment. ブロックと動きベクトルの一例を示す図Diagram showing an example of blocks and motion vectors 本発明の画像符号化装置、復号装置に適用可能なコンピュータのハードウェアの構成例を示すブロック図A block diagram showing a configuration example of computer hardware applicable to the image encoding device and decoding device of the present invention.

以下、添付の図面を参照して、本願発明をその好適な実施形態に基づいて詳細に説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。 Hereinafter, the present invention will be described in detail with reference to the accompanying drawings, based on its preferred embodiments. The configuration shown in the following embodiments is only an example, and the present invention is not limited to the illustrated configuration.

<実施形態1>
以下、本発明の実施形態を、図面を用いて説明する。図1は本実施形態の画像符号化装置を示すブロック図である。図1において、106は画像データを入力する端子である。107は入力された画像データをピクチャ毎に格納するフレームメモリである。113は変倍部であり、入力された画像データを倍率n/m(n、mは正の数)で変倍する。114は変倍された画像データをピクチャ単位で格納するフレームメモリである。108、115は予測部であり、画像データを複数のブロックに切り出し、フレーム内予測であるイントラ予測や、動き補償によるインター予測等を行い、予測画像データを生成する。但し、予測の方法についてはこれらに限定されない。さらに入力された画像データと前記予測画像データから予測誤差を算出し、出力する。インター予測を行う場合は符号化済みの他のピクチャを参照し、動きベクトルを算出し、出力する。また予測に必要な情報、例えば、イントラ予測モード等の情報も予測誤差と併せて出力される。109、116は前記予測誤差をブロック単位で直交変換して変換係数を得て、さらに量子化を行い、量子化係数を得る変換・量子化部である。112、119は再生された画像データを格納しておくフレームメモリである。111、118は画像再生部である。ブロック単位で量子化係数を入力し、逆量子化を行って、変換係数を得て、さらに逆直交変換を行い、予測誤差を再生する。予測部108、115から動きベクトルや予測に関する情報からフレームメモリ112、119を適宜参照して予測画像データを生成し、これと再生された予測誤差から再生画像データを生成し、出力する。110、117は変換・量子化部109、116から出力された量子化係数を符号化して量子化係数符号データを生成する係数符号化部である。
<Embodiment 1>
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an image coding apparatus of this embodiment. In FIG. 1, 106 is a terminal for inputting image data. Reference numeral 107 denotes a frame memory for storing the input image data for each picture. Reference numeral 113 denotes a scaling unit, which scales the input image data at a magnification of n / m (n and m are positive numbers). Reference numeral 114 denotes a frame memory for storing scaled image data in picture units. Reference numerals 108 and 115 are prediction units, which cut out image data into a plurality of blocks, perform intra-frame prediction, intra-prediction, inter-prediction by motion compensation, and the like to generate predicted image data. However, the prediction method is not limited to these. Further, the prediction error is calculated from the input image data and the predicted image data and output. When performing inter-prediction, the motion vector is calculated and output by referring to another encoded picture. In addition, information necessary for prediction, for example, information such as an intra prediction mode is also output together with a prediction error. Reference numerals 109 and 116 are conversion / quantization units for obtaining a conversion coefficient by orthogonally converting the prediction error in block units and further performing quantization to obtain a quantization coefficient. 112 and 119 are frame memories for storing the reproduced image data. Reference numerals 111 and 118 are image reproduction units. The quantization coefficient is input in block units, inverse quantization is performed, the conversion coefficient is obtained, and the inverse orthogonal transformation is further performed to reproduce the prediction error. The prediction units 108 and 115 appropriately refer to the frame memory 112 and 119 from the motion vector and the information related to the prediction to generate the predicted image data, and generate and output the reproduced image data from this and the reproduced prediction error. Reference numerals 110 and 117 are coefficient coding units that encode the quantization coefficients output from the conversion / quantization units 109 and 116 to generate quantization coefficient code data.

100は本発明に関する動きベクトル符号化装置である。101、104はブロック単位で動きベクトルを保持する動きベクトル保持部である。動きベクトル保持部104は予測部108で生成された動きベクトルを、動きベクトル保持部101は予測部115で生成された動きベクトルを、保持しておく。102、105は予測部108、115で生成したブロックの動きベクトルを符号化して動きベクトル符号データを生成する動きベクトル符号化部である。103は変倍部113の変倍率に応じて動きベクトルを変倍する動きベクトル変倍部である。120は変倍部であり、変倍部113と逆の変倍率(m/n)でフレームメモリ119の画像データを変倍する。 Reference numeral 100 denotes a motion vector coding device according to the present invention. Reference numerals 101 and 104 are motion vector holding units that hold motion vectors in block units. The motion vector holding unit 104 holds the motion vector generated by the prediction unit 108, and the motion vector holding unit 101 holds the motion vector generated by the prediction unit 115. Reference numerals 102 and 105 are motion vector coding units that encode the motion vectors of the blocks generated by the prediction units 108 and 115 to generate motion vector code data. Reference numeral 103 denotes a motion vector scaling section that changes the motion vector according to the scaling factor of the scaling section 113. Reference numeral 120 denotes a scaling portion, which scales the image data of the frame memory 119 at a scaling factor (m / n) opposite to that of the scaling portion 113.

121、122は統合符号化部である。ヘッダ情報や予測に関する情報の符号データを生成するとともに、動きベクトル符号化部102、105で生成された動きベクトル符号データおよび係数符号化部110、117で生成された量子化係数符号データを統合する。 Reference numerals 121 and 122 are integrated coding units. In addition to generating code data of header information and information related to prediction, the motion vector code data generated by the motion vector coding units 102 and 105 and the quantization coefficient code data generated by the coefficient coding units 110 and 117 are integrated. ..

ここで、フレームメモリ114、119、予測部115、変換・量子化部116、係数符号化部117、画像再生部118、動きベクトル保持部101、動きベクトル符号化部102は基本レイヤの画像データを符号化する。また、フレームメモリ107、112、予測部108、変換・量子化部109、係数符号化部110、画像再生部111、動きベクトル保持部104、動きベクトル符号化部105は拡張レイヤの画像データを符号化する。 Here, the frame memory 114, 119, the prediction unit 115, the conversion / quantization unit 116, the coefficient coding unit 117, the image reproduction unit 118, the motion vector holding unit 101, and the motion vector coding unit 102 use the image data of the basic layer. Encode. Further, the frame memories 107 and 112, the prediction unit 108, the conversion / quantization unit 109, the coefficient coding unit 110, the image reproduction unit 111, the motion vector holding unit 104, and the motion vector coding unit 105 code the image data of the expansion layer. To be.

123はこれらの基本レイヤの符号データと拡張レイヤの符号データを多重化してビットストリームを形成する多重化部である。124は端子であり、多重化部123で生成されたビットストリームを外部に出力する端子である。 Reference numeral 123 denotes a multiplexing unit that multiplexes the code data of these basic layers and the code data of the extension layer to form a bit stream. Reference numeral 124 denotes a terminal, which is a terminal for outputting the bit stream generated by the multiplexing unit 123 to the outside.

上記画像符号化装置における画像の符号化動作を以下に説明する。最初に基本レイヤの符号化動作について説明する。 The image coding operation in the image coding apparatus will be described below. First, the coding operation of the basic layer will be described.

端子106から入力された1フレーム分の画像データはフレームメモリ107に格納される。変倍部113ではフレームメモリ107に格納された画像データを所定の倍率n/mで変倍する。空間スケーラビリティの場合、n/mは1未満の値となる。変倍された画像データはフレームメモリ114に格納される。また、変倍率は変倍部120、動きベクトル変倍部103に入力される。 The image data for one frame input from the terminal 106 is stored in the frame memory 107. The scaling unit 113 scales the image data stored in the frame memory 107 at a predetermined magnification of n / m. In the case of spatial scalability, n / m is a value less than 1. The scaled image data is stored in the frame memory 114. Further, the scaling factor is input to the scaling unit 120 and the motion vector scaling unit 103.

予測部115はイントラ予測または動き補償によるインター予測を行う。変倍部120はフレームメモリ119の基本レイヤの画像データをm/n倍に変倍して基本レイヤの参照画像データを生成する。インター予測の場合はフレームメモリ119に格納されている符号化済みのピクチャと基本レイヤの参照画像データを参照し、動きベクトルを算出する。算出された動きベクトルは画像再生部118、動きベクトル保持部101に入力される。動きベクトル保持部101はブロック単位で動きベクトルを保持する。また、予測部115は生成した予測誤差を変換・量子化部116に入力する。変換・量子化部116で生成された量子化係数は係数符号化部117に入力され、エントロピー符号化され量子化係数符号データを生成する。エントロピー符号化の方法は特に限定しないが、ゴロム符号化、算術符号化、ハフマン符号化などを用いることができる。また、量子化係数、動きベクトル及び予測に関する情報が画像再生部118に入力され、符号化対象のブロックの再生画像を生成し、フレームメモリ119に格納される。 The prediction unit 115 performs intra-prediction or inter-prediction by motion compensation. The scaling unit 120 scales the image data of the basic layer of the frame memory 119 to m / n times to generate the reference image data of the basic layer. In the case of inter-prediction, the motion vector is calculated by referring to the encoded picture stored in the frame memory 119 and the reference image data of the basic layer. The calculated motion vector is input to the image reproduction unit 118 and the motion vector holding unit 101. The motion vector holding unit 101 holds a motion vector in block units. Further, the prediction unit 115 inputs the generated prediction error to the conversion / quantization unit 116. The quantization coefficient generated by the conversion / quantization unit 116 is input to the coefficient coding unit 117, entropy-coded, and the quantization coefficient code data is generated. The method of entropy coding is not particularly limited, but Golomb coding, arithmetic coding, Huffman coding and the like can be used. In addition, information on the quantization coefficient, motion vector, and prediction is input to the image reproduction unit 118, a reproduction image of the block to be encoded is generated, and the information is stored in the frame memory 119.

予測部115で生成された動きベクトルは動きベクトル符号化部102で符号化され、動きベクトル符号データを生成する。図2に動きベクトル符号化部102の詳細なブロック図を示す。図2において、201は端子であり、動きベクトル保持部101から動きベクトルを入力する。202は端子であり、予測部115から符号化対象ブロックの動きベクトルを入力する。203は動きベクトル抽出部であり、端子201を通じて符号化対象ブロックの周囲の動きベクトルないし前に符号化されたピクチャの動きベクトルを抽出する。204は動きベクトル統合部であり、同じ成分の動きベクトルをまとめ、参照動きベクトル群を生成する。また、参照動きベクトル群ではまとめられた動きベクトルを所定の順に並べられている。並べ方に関しては特に限定しないが、成分の大きさ順、発生確率の高い順、抽出されたブロックの位置等に基づいて並べられる。並べ方は復号側と同じ方法をとればいずれの方法でも構わない。 The motion vector generated by the prediction unit 115 is encoded by the motion vector coding unit 102 to generate motion vector code data. FIG. 2 shows a detailed block diagram of the motion vector coding unit 102. In FIG. 2, 201 is a terminal, and a motion vector is input from the motion vector holding unit 101. Reference numeral 202 denotes a terminal, and the motion vector of the coded block is input from the prediction unit 115. Reference numeral 203 denotes a motion vector extraction unit, which extracts a motion vector around the block to be encoded or a motion vector of a previously encoded picture through the terminal 201. Reference numeral 204 denotes a motion vector integration unit, which collects motion vectors having the same components and generates a reference motion vector group. Further, in the reference motion vector group, the grouped motion vectors are arranged in a predetermined order. The arrangement method is not particularly limited, but the arrangement is based on the order of the size of the components, the order of the highest probability of occurrence, the position of the extracted blocks, and the like. Any method may be used as long as the same method as that used on the decoding side is used.

205は予測動きベクトル選択部であり、端子202から符号化対象のブロックの動きベクトルを、動きベクトル統合部204から参照動きベクトル群を入力する。入力された参照動きベクトル群から符号化対象のブロックの動きベクトルに最も近い動きベクトルを予測動きベクトルとして選択する。選択された予測動きベクトルを参照動きベクトル群で識別するための識別番号と、選択された予測動きベクトルを出力する。206はインデックス符号化部であり、出力された識別番号を符号化して識別情報符号データを生成する。識別番号の符号化の方法は特に限定しないが、ゴロム符号化、算術符号化、ハフマン符号化などを用いることができる。207は予測部であり、入力された予測動きベクトルで符号化対象のブロックの動きベクトルを予測した時の予測誤差を出力する。208は動きベクトルの予測誤差を符号化して動きベクトル予測誤差符号データを生成する動きベクトル誤差符号化部である。動きベクトルの予測誤差を符号化する方法は特に限定しないが、ゴロム符号化、算術符号化、ハフマン符号化などを用いることができる。209は符号形成部であり、識別情報符号データと動きベクトル予測誤差符号データを成形して動きベクトル符号データを生成する。210は端子であり、生成された動きベクトル符号データを図1の統合符号化部122に出力する。 Reference numeral 205 denotes a prediction motion vector selection unit, in which the motion vector of the block to be encoded is input from the terminal 202, and the reference motion vector group is input from the motion vector integration unit 204. From the input reference motion vector group, the motion vector closest to the motion vector of the block to be encoded is selected as the predicted motion vector. The identification number for identifying the selected predicted motion vector in the reference motion vector group and the selected predicted motion vector are output. Reference numeral 206 denotes an index coding unit, which encodes the output identification number to generate identification information code data. The method of coding the identification number is not particularly limited, but Golomb coding, arithmetic coding, Huffman coding, or the like can be used. Reference numeral 207 is a prediction unit, which outputs a prediction error when the motion vector of the block to be encoded is predicted by the input predicted motion vector. Reference numeral 208 denotes a motion vector error coding unit that encodes the motion vector prediction error and generates motion vector prediction error code data. The method of encoding the prediction error of the motion vector is not particularly limited, but Golomb coding, arithmetic coding, Huffman coding, or the like can be used. Reference numeral 209 denotes a code forming unit, which forms the identification information code data and the motion vector prediction error code data to generate the motion vector code data. Reference numeral 210 denotes a terminal, which outputs the generated motion vector code code data to the integrated coding unit 122 of FIG.

上記の構成で基本レイヤの動きベクトルの符号化動作を以下に説明する。 The motion vector coding operation of the basic layer with the above configuration will be described below.

動きベクトル抽出部203は符号化する基本レイヤのブロックの周囲のブロックの動きベクトル、時間方向予測動きベクトルを、端子201を介して入力する。これらの動きベクトルは動きベクトル統合部204に入力され、動きベクトルの成分を比較し、同じものをまとめて参照動きベクトル群を生成する。図6に動きベクトルの抽出・統合の様子を示す。600は第n番目の拡張レイヤのピクチャを表し、601は第n−1番目の拡張レイヤのピクチャを表す。603は符号化対象のブロックであり、604、605、606は符号化対象ブロックに隣接するブロックを表す。607は第n−1番目の拡張レイヤのピクチャでブロック603と同じ位置のブロックを表す。609は符号化対象ブロックの動きベクトルを表し、610、611、612、613は各ブロックの動きベクトルを表す。ここで、動きベクトル611と612が同じ成分だった場合に参照動きベクトル群は動きベクトル613、612、610となる。 The motion vector extraction unit 203 inputs the motion vector of the block around the block of the basic layer to be encoded and the motion vector predicted in the time direction via the terminal 201. These motion vectors are input to the motion vector integration unit 204, the components of the motion vectors are compared, and the same motion vectors are put together to generate a reference motion vector group. FIG. 6 shows the state of extraction and integration of motion vectors. 600 represents the picture of the nth extension layer, and 601 represents the picture of the n-1st extension layer. Reference numeral 603 is a block to be encoded, and 604, 605, and 606 are blocks adjacent to the block to be encoded. 607 is a picture of the n-1st expansion layer and represents a block at the same position as block 603. 609 represents the motion vector of the block to be encoded, and 610, 611, 612, and 613 represent the motion vector of each block. Here, when the motion vectors 611 and 612 have the same component, the reference motion vector group becomes the motion vectors 613, 612, and 610.

生成された参照動きベクトル群は予測動きベクトル選択部205に入力される。端子202から入力された符号化対象のブロックの動きベクトルは予測動きベクトル選択部205で参照動きベクトル群の動きベクトルと比較される。参照動きベクトル群の中から符号化対象のブロックの動きベクトルと最も近い成分の動きベクトルを予測動きベクトルとして選択する。選択された動きベクトルを参照動きベクトル群で識別するために順番を表す識別番号を生成し、インデックス符号化部206で符号化し、識別情報符号データを生成する。また、予測動きベクトルは予測部207に入力され、符号化対象のブロックの動きベクトルを予測して予測誤差を算出し、動きベクトル誤差符号化部208に出力する。動きベクトル誤差符号化部208では予測誤差を符号化し、動きベクトル予測誤差符号データを生成する。識別情報符号データと動きベクトル予測誤差符号データは符号成形部209で成形され動きベクトル符号データとして端子210から出力される。 The generated reference motion vector group is input to the predicted motion vector selection unit 205. The motion vector of the block to be encoded input from the terminal 202 is compared with the motion vector of the reference motion vector group by the predicted motion vector selection unit 205. From the reference motion vector group, the motion vector of the component closest to the motion vector of the block to be encoded is selected as the predicted motion vector. An identification number indicating the order is generated in order to identify the selected motion vector by the reference motion vector group, and the identification number is encoded by the index coding unit 206 to generate the identification information code data. Further, the predicted motion vector is input to the prediction unit 207, predicts the motion vector of the block to be encoded, calculates the prediction error, and outputs the prediction error to the motion vector error coding unit 208. The motion vector error coding unit 208 encodes the prediction error and generates motion vector prediction error code data. The identification information code data and the motion vector prediction error code data are molded by the code forming unit 209 and output from the terminal 210 as motion vector code data.

図1に戻り、生成された動きベクトル符号データと係数符号化部117で生成された量子化係数符号データは統合符号化部122に入力され、ブロック単位の符号データを生成する。生成された符号データは多重化部123に入力される。 Returning to FIG. 1, the generated motion vector code data and the quantization coefficient code data generated by the coefficient coding unit 117 are input to the integrated coding unit 122 to generate block unit code data. The generated code data is input to the multiplexing unit 123.

続いて、拡張レイヤの画像データの符号化動作について説明する。 Subsequently, the coding operation of the image data of the expansion layer will be described.

予測部108はフレームメモリ107に格納された画像データに対して、ブロック分割を行い、ブロック単位でイントラ予測または動き補償によるインター予測を行う。インター予測の場合はフレームメモリ112に格納されている符号化済みのピクチャを参照し、動きベクトルを算出する。算出された動きベクトルは画像再生部111、動きベクトル保持部104に入力される。動きベクトル保持部104はブロック単位で動きベクトルを保持する。また、予測部108は生成した予測誤差を変換・量子化部109に入力する。変換・量子化部109で生成された量子化係数は係数符号化部110に入力され、係数符号化部117と同様にエントロピー符号化され量子化係数符号データを生成する。また、量子化係数、動きベクトル及び予測に関する情報が画像再生部111に入力され、画像再生部118と同様に符号化対象のブロックの再生画像を生成し、フレームメモリ112に格納される。 The prediction unit 108 divides the image data stored in the frame memory 107 into blocks, and performs intra-prediction or inter-prediction by motion compensation in block units. In the case of inter-prediction, the motion vector is calculated by referring to the encoded picture stored in the frame memory 112. The calculated motion vector is input to the image reproduction unit 111 and the motion vector holding unit 104. The motion vector holding unit 104 holds the motion vector in block units. Further, the prediction unit 108 inputs the generated prediction error to the conversion / quantization unit 109. The quantization coefficient generated by the conversion / quantization unit 109 is input to the coefficient coding unit 110, and is entropy-encoded in the same manner as the coefficient coding unit 117 to generate the quantization coefficient code data. Further, information on the quantization coefficient, motion vector, and prediction is input to the image reproduction unit 111, a reproduced image of the block to be encoded is generated in the same manner as the image reproduction unit 118, and is stored in the frame memory 112.

予測部108で生成された動きベクトルは動きベクトル符号化部105で符号化され、動きベクトル符号データを生成する。動きベクトル符号化部105での動きベクトルの符号化に先立ち、動きベクトル変倍部103は符号化対象の拡張レイヤのブロックに対応する基本レイヤのブロックの位置の動きベクトルを動きベクトル保持部101から抽出する。抽出された動きベクトルは変倍部113から出力された変倍率(n/m)に応じてm/n倍され、レイヤ間予測動きベクトルとして動きベクトル符号化部105に出力される。図6で動きベクトルの抽出・統合の様子を示す。602は第n番目の拡張レイヤの対応する基本レイヤのピクチャを表す。608は拡張レイヤの符号化対象のブロックに対応する位置のブロックを表す。614は基本レイヤのブロック608の動きベクトルを表す。動きベクトル614は変倍されて、拡張レイヤの解像度と同じ精度のレイヤ間予測動きベクトルとなる。ここで、動きベクトル611と612及びレイヤ間予測動きベクトルが同じ成分だった場合に参照動きベクトル群はレイヤ間予測動きベクトル、動きベクトル613、610となる。 The motion vector generated by the prediction unit 108 is encoded by the motion vector coding unit 105 to generate motion vector code data. Prior to coding the motion vector in the motion vector coding unit 105, the motion vector scaling unit 103 transfers the motion vector at the position of the block of the basic layer corresponding to the block of the expansion layer to be encoded from the motion vector holding unit 101. Extract. The extracted motion vector is multiplied by m / n according to the scaling factor (n / m) output from the scaling unit 113, and is output to the motion vector coding unit 105 as an inter-layer predicted motion vector. FIG. 6 shows the state of extraction and integration of motion vectors. 602 represents a picture of the corresponding base layer of the nth extension layer. 608 represents a block at a position corresponding to the block to be encoded in the expansion layer. 614 represents the motion vector of block 608 of the base layer. The motion vector 614 is scaled to a inter-layer predicted motion vector with the same accuracy as the resolution of the extended layer. Here, when the motion vectors 611 and 612 and the inter-layer predicted motion vector have the same component, the reference motion vector group becomes the inter-layer predicted motion vector, the motion vector 613, 610.

図3に動きベクトル符号化部105の詳細なブロック図を示す。図3において、図2のブロックと同様の機能を実現するブロックについては同じ番号を付し、説明を省略する。301は端子であり、動きベクトル変倍部103からレイヤ間予測動きベクトルを入力する。303は動きベクトル抽出部であり、端子201を通じて拡張レイヤの符号化対象ブロックの周囲の動きベクトルないし前に符号化されたピクチャの動きベクトルを抽出し、端子301からレイヤ間予測動きベクトルを入力する。304は動きベクトル統合部であり、同じ成分の動きベクトルをまとめ、参照動きベクトル群を生成する。また、参照動きベクトル群ではまとめられた動きベクトルを所定の順に並べられている。並べ方に関しては特に限定しないが、先頭にレイヤ間予測動きベクトルを配置する。それ以外は成分の大きさ順、発生確率の高い順、抽出されたブロックの位置等に基づいて並べても良い。なお、端子201は動きベクトル保持部104に接続され、端子202は予測部108に接続され、端子210は統合符号化部121に接続されている。 FIG. 3 shows a detailed block diagram of the motion vector coding unit 105. In FIG. 3, blocks that realize the same functions as the blocks of FIG. 2 are given the same numbers, and the description thereof will be omitted. Reference numeral 301 denotes a terminal, and an inter-layer predicted motion vector is input from the motion vector scaling unit 103. Reference numeral 303 denotes a motion vector extraction unit, which extracts the motion vector around the coded block of the expansion layer or the motion vector of the previously encoded picture through the terminal 201, and inputs the inter-layer predicted motion vector from the terminal 301. .. Reference numeral 304 denotes a motion vector integration unit, which collects motion vectors having the same components and generates a reference motion vector group. Further, in the reference motion vector group, the grouped motion vectors are arranged in a predetermined order. The arrangement is not particularly limited, but the inter-layer predicted motion vector is placed at the beginning. Other than that, they may be arranged based on the order of the size of the components, the order of the highest probability of occurrence, the position of the extracted blocks, and the like. The terminal 201 is connected to the motion vector holding unit 104, the terminal 202 is connected to the prediction unit 108, and the terminal 210 is connected to the integrated coding unit 121.

上記の構成で拡張レイヤの動きベクトルの符号化動作を以下に説明する。 The motion vector coding operation of the expansion layer with the above configuration will be described below.

動きベクトル抽出部303は符号化する基本レイヤのブロックの周囲のブロックの動きベクトル、時間方向予測動きベクトル、レイヤ間予測動きベクトルを入力する。これらの動きベクトルは動きベクトル統合部304で動きベクトルの成分を比較し、同じものをまとめて参照動きベクトル群を生成する。参照動きベクトル群ではまとめられた動きベクトルを所定の順に並べる。生成された参照動きベクトル群は予測動きベクトル選択部205に入力される。以下、基本レイヤの動きベクトル符号化部102と同様に、符号化対象のブロックの動きベクトルと参照動きベクトル群の動きベクトルと比較をし、予測動きベクトルを選択し、識別番号を生成し、符号化して、識別情報符号データを生成する。符号化対象のブロックの動きベクトルの予測誤差を算出し、符号化し、動きベクトル予測誤差符号データを生成する。識別情報符号データと動きベクトル予測誤差符号データは符号成形部209で成形され動きベクトル符号データとして端子210から出力される。 The motion vector extraction unit 303 inputs the motion vector of the block around the block of the basic layer to be encoded, the time direction predicted motion vector, and the inter-layer predicted motion vector. These motion vectors are compared with each other by the motion vector integration unit 304, and the same motion vectors are put together to generate a reference motion vector group. In the reference motion vector group, the grouped motion vectors are arranged in a predetermined order. The generated reference motion vector group is input to the predicted motion vector selection unit 205. Hereinafter, similarly to the motion vector coding unit 102 of the basic layer, the motion vector of the block to be encoded is compared with the motion vector of the reference motion vector group, the predicted motion vector is selected, the identification number is generated, and the code is used. To generate identification information code data. The prediction error of the motion vector of the block to be encoded is calculated, encoded, and the motion vector prediction error code data is generated. The identification information code data and the motion vector prediction error code data are molded by the code forming unit 209 and output from the terminal 210 as motion vector code data.

図1に戻り、生成された動きベクトル符号データは係数符号化部110で生成された量子化係数符号データは統合符号化部121に入力され、ブロック単位の符号データを生成する。生成された符号データは多重化部123に入力される。 Returning to FIG. 1, the generated motion vector code data is input to the integrated coding unit 121 for the quantization coefficient code data generated by the coefficient coding unit 110, and the code data for each block is generated. The generated code data is input to the multiplexing unit 123.

多重化部123では所定の書式にしたがってこれらの符号データを多重化し、ビットストリームとして端子124から外部に出力する。 The multiplexing unit 123 multiplexes these code data according to a predetermined format and outputs the code data as a bit stream to the outside from the terminal 124.

図4は、実施形態1に係る画像符号化装置における基本レイヤの動きベクトル符号化処理を示すフローチャートである。まず、ステップS401にて、基本レイヤの符号化対象のブロックの動きベクトルが入力され、後段での参照のため、保持される。ステップS402にて、基本レイヤの符号化対象のブロックの周囲のブロックまたは基本レイヤの符号化済みのピクチャの同一位置のブロックの動きベクトルを保持された符号化済みの基本レイヤの動きベクトルの中から抽出する。ステップS403にて、ステップS402で抽出された動きベクトルで同じ成分の動きベクトルをまとめ、所定の順番に並べ替え、参照動きベクトル群を生成する。ステップS404にて、ステップS403で生成された参照動きベクトル群と基本レイヤの符号化対象ブロックの動きベクトルを比較し、最も近い動きベクトルを基本レイヤの予測動きベクトルとして選択し、識別情報を生成する。ステップS405にて、符号化対象の動きベクトルを予測動きベクトルから予測誤差を算出する。ステップS406にて、ステップS404で生成された識別情報を符号化する。ステップS407にて、基本レイヤの動きベクトルの予測誤差を符号化する。 FIG. 4 is a flowchart showing a motion vector coding process of the basic layer in the image coding apparatus according to the first embodiment. First, in step S401, the motion vector of the block to be encoded in the basic layer is input and held for reference in the subsequent stage. In step S402, among the motion vectors of the coded base layer in which the motion vectors of the blocks surrounding the block to be encoded in the base layer or the blocks at the same position of the coded picture of the base layer are held. Extract. In step S403, the motion vectors of the same component are grouped by the motion vectors extracted in step S402 and rearranged in a predetermined order to generate a reference motion vector group. In step S404, the reference motion vector group generated in step S403 and the motion vector of the coded target block of the basic layer are compared, the closest motion vector is selected as the predicted motion vector of the basic layer, and identification information is generated. .. In step S405, the motion vector to be encoded is predicted. The prediction error is calculated from the motion vector. In step S406, the identification information generated in step S404 is encoded. In step S407, the prediction error of the motion vector of the basic layer is encoded.

また、図5は、実施形態1に係る画像符号化装置における拡張レイヤの動きベクトル符号化処理を示すフローチャートである。図5において、図4のブロックと同様の機能を実現するステップについては同じ番号を付し、説明を省略する。まず、ステップS501にて、拡張レイヤの符号化対象のブロックの動きベクトルが入力され、後段での参照のため、保持される。ステップS502にて、拡張レイヤの符号化対象のブロックの周囲のブロックまたは符号化済みの拡張レイヤのピクチャの同一位置のブロックの動きベクトルを保持された拡張レイヤの動きベクトルの中から抽出する。ステップS503にて、拡張レイヤの符号化対象ブロックの位置に該当する基本レイヤのブロックの動きベクトルを抽出する。ステップS504にて、抽出された基本レイヤの動きベクトルを変倍し、レイヤ間予測動きベクトルを算出する。ステップS505にて、ステップS502で抽出された動きベクトル、及びレイヤ間予測動きベクトルで同じ成分の動きベクトルをまとめ、所定の順番に並べ替え、参照動きベクトル群を生成する。以下、図4の基本レイヤの動きベクトル符号化と同様に、ステップS504からステップS506にて、予測動きベクトルを決定し、識別情報を生成する。さらに、予測動きベクトルから予測誤差を算出する。生成された識別情報と動きベクトルの予測誤差を符号化する。 Further, FIG. 5 is a flowchart showing a motion vector coding process of the expansion layer in the image coding apparatus according to the first embodiment. In FIG. 5, the steps for realizing the same function as the block of FIG. 4 are numbered the same, and the description thereof will be omitted. First, in step S501, the motion vector of the block to be encoded in the expansion layer is input and held for reference in the subsequent stage. In step S502, the motion vector of the block around the block to be encoded in the expansion layer or the block at the same position in the picture of the encoded expansion layer is extracted from the motion vector of the retained expansion layer. In step S503, the motion vector of the block of the basic layer corresponding to the position of the coded block of the extended layer is extracted. In step S504, the motion vector of the extracted basic layer is scaled to calculate the inter-layer predicted motion vector. In step S505, the motion vectors of the same components are grouped by the motion vector extracted in step S502 and the inter-layer predicted motion vector, rearranged in a predetermined order, and a reference motion vector group is generated. Hereinafter, similarly to the motion vector coding of the basic layer of FIG. 4, the predicted motion vector is determined and the identification information is generated in steps S504 to S506. Further, the prediction error is calculated from the predicted motion vector. The generated identification information and the prediction error of the motion vector are encoded.

以上の構成と動作により、拡張レイヤの動きベクトル符号化において、基本レイヤの動きベクトルを用いて効率的な符号化を行うことができる。なお、変倍の倍率が1である場合、変倍部113、120、動きベクトル変倍部103は省略が可能である。 With the above configuration and operation, in the motion vector coding of the extended layer, efficient coding can be performed using the motion vector of the basic layer. When the magnification of the scaling is 1, the scaling portions 113 and 120 and the motion vector scaling portion 103 can be omitted.

なお、動きベクトル統合部204でレイヤ間予測動きベクトルを必ず参照動きベクトル群の先頭に割り当てることも可能である。これにより、参照される可能性の非常に高いレイヤ間予測動きベクトルに短い符号が割当たりやすくすることでさらに符号化効率の向上が可能である。 It is also possible for the motion vector integration unit 204 to always assign the inter-layer predicted motion vector to the beginning of the reference motion vector group. As a result, it is possible to further improve the coding efficiency by making it easy to assign a short code to the inter-layer predicted motion vector that is very likely to be referred to.

なお、動きベクトル抽出部203は時間方向予測動きベクトル符号化済みのピクチャの同じ位置のブロックの動きベクトルを入力したが、これに限定されない。例えばレイヤ間予測動きベクトルが存在する場合は時間方向予測動きベクトルの入力を省略しても構わない。 Note that the motion vector extraction unit 203 inputs the motion vector of the block at the same position of the time-direction predicted motion vector-encoded picture, but the present invention is not limited to this. For example, when the inter-layer predicted motion vector exists, the input of the time direction predicted motion vector may be omitted.

なお、動きベクトル統合部304はレイヤ間予測動きベクトルを先頭に配置する場合について説明したが、時間方向予測動きベクトルに続く順番でも構わない。さらには動きベクトル統合部204と同様に特に配置を決めなくても構わない。 Although the motion vector integration unit 304 has described the case where the inter-layer predicted motion vector is arranged at the head, the order following the time direction predicted motion vector may be used. Further, it is not necessary to determine the arrangement in the same manner as the motion vector integration unit 204.

なお、符号化効率向上のため、動きベクトル統合部で同じ成分を持つ動きベクトルをまとめることを行ったが、これに限定されず、固定の数の動きベクトルを選択しても良い。さらには動きベクトル統合部を省略しても構わない。 In order to improve the coding efficiency, the motion vector integration unit collects motion vectors having the same components, but the present invention is not limited to this, and a fixed number of motion vectors may be selected. Furthermore, the motion vector integration unit may be omitted.

また、基本レイヤの符号化装置と拡張レイヤの符号装置が個別にあり、変倍部113、変倍部120が外部にある構成でも構わない。 Further, the basic layer coding device and the expansion layer coding device may be separately provided, and the scaling unit 113 and the scaling unit 120 may be externally provided.

なお、参照動きベクトル群の動きベクトルとして図6に示す位置のブロックを参照したが、これに限定されない。例えばブロック604の右に隣接するブロックの動きベクトルを加えても構わないし、これらの動きベクトルの中央値からなる動きベクトルを加えても構わない。また、基本レイヤから参照される動きベクトルは同一位置に限定されない。図16のようにブロック608の下のブロック1601の動きベクトル1604、右下のブロック1602の動きベクトル1605、右のブロック1603の動きベクトル1606を参照しても構わない。また、さらに他のブロックの動きベクトルを参照しても構わない。 The block at the position shown in FIG. 6 was referred to as the motion vector of the reference motion vector group, but the present invention is not limited to this. For example, a motion vector of a block adjacent to the right of the block 604 may be added, or a motion vector consisting of the median values of these motion vectors may be added. Also, the motion vectors referenced from the base layer are not limited to the same position. As shown in FIG. 16, the motion vector 1604 of the block 1601 below the block 608, the motion vector 1605 of the block 1602 at the lower right, and the motion vector 1606 of the block 1603 on the right may be referred to. Further, the motion vector of another block may be referred to.

<実施形態2>
図7は、本発明の実施形態2に係る画像復号装置の構成を示すブロック図である。本実施形態では、実施形態1で生成された符号化データの復号を例にとって説明する。
<Embodiment 2>
FIG. 7 is a block diagram showing a configuration of an image decoding device according to a second embodiment of the present invention. In this embodiment, decoding of the coded data generated in the first embodiment will be described as an example.

706は符号化されたビットストリームを入力する端子である。707はビットストリームを基本レイヤの符号データと拡張レイヤの符号データに分離する分離部である。分離部707は図1の多重化部123の逆の動作を行う。708と715は統合復号部であり、基本レイヤと拡張レイヤに関してヘッダ情報や予測に関する情報の符号データの復号を行い、量子化係数符号データと動きベクトル符号データを分離し、後段に出力する。709、716は係数復号部であり、図1の係数符号化部117、110と逆の動作を行って、量子化係数を再生する。710、717は逆量子化・逆変換部である。入力された量子化係数に対して、図1の変換・量子化部116、109と逆の動作を行い、逆量子化によって直交変換係数を再生し、逆直交変換によって、予測誤差を生成する。 Reference numeral 706 is a terminal for inputting an encoded bit stream. Reference numeral 707 is a separation unit that separates the bit stream into the code data of the basic layer and the code data of the extension layer. The separation unit 707 performs the reverse operation of the multiplexing unit 123 of FIG. Reference numerals 708 and 715 are integrated decoding units, which decode the code data of the header information and the information related to the prediction for the basic layer and the extended layer, separate the quantization coefficient code data and the motion vector code data, and output them to the subsequent stage. Reference numerals 709 and 716 are coefficient decoding units, which perform operations opposite to those of the coefficient coding units 117 and 110 in FIG. 1 to reproduce the quantization coefficient. Reference numerals 710 and 717 are inverse quantization / inverse transformation units. With respect to the input quantization coefficient, the operation opposite to that of the conversion / quantization units 116 and 109 in FIG. 1 is performed, the orthogonal transformation coefficient is reproduced by inverse quantization, and a prediction error is generated by inverse orthogonal transformation.

700は本発明に関する動きベクトル復号装置である。701、704は動きベクトル符号データを復号し、復号対象ブロックの動きベクトルを再生する動きベクトル復号部である。702、705はブロック単位で動きベクトルを保持する動きベクトル保持部である。706は図1の変倍部113と同じ変倍率に応じて動きベクトルを変倍する動きベクトル変倍部である。変倍率の算出については特に限定しない。基本レイヤの解像度と拡張レイヤの解像度の比を算出しても良いし、所定の値を設定しても構わない。 Reference numeral 700 denotes a motion vector decoding device according to the present invention. Reference numerals 701 and 704 are motion vector decoding units that decode the motion vector code data and reproduce the motion vector of the block to be decoded. Reference numerals 702 and 705 are motion vector holding units that hold motion vectors in block units. Reference numeral 706 is a motion vector scaling section that scales the motion vector according to the same scaling factor as that of the scaling section 113 in FIG. The calculation of the variable magnification is not particularly limited. The ratio of the resolution of the basic layer to the resolution of the extended layer may be calculated, or a predetermined value may be set.

712、713、719、720はフレームメモリであり、再生されたピクチャの画像データを格納しておく。 The 712, 713, 719, and 720 are frame memories, and store the image data of the reproduced picture.

711、718は画像再生部であり、動きベクトルを入力して復号済みのピクチャの画像データを参照して動き補償を行い、復号された予測誤差を用いて画像データを再生する。714は図1の変倍部113と同じ変倍率に応じて基本レイヤの画像データを変倍する変倍部である。なお、変倍率の算出については特に限定しない。基本レイヤの解像度と拡張レイヤの解像度の比を算出しても良いし、所定の値を設定しても構わない。721、722は端子であり、端子721は基本レイヤの画像データを出力し、端子722は拡張レイヤの画像データを出力する。 Reference numerals 711 and 718 are image reproduction units, which input a motion vector, refer to the image data of the decoded picture to perform motion compensation, and reproduce the image data using the decoded prediction error. Reference numeral 714 is a scaling unit that scales the image data of the basic layer according to the same scaling factor as that of the scaling unit 113 in FIG. The calculation of the variable magnification is not particularly limited. The ratio of the resolution of the basic layer to the resolution of the extended layer may be calculated, or a predetermined value may be set. 721 and 722 are terminals, the terminal 721 outputs the image data of the basic layer, and the terminal 722 outputs the image data of the expansion layer.

ここで、統合復号部708、係数復号部709、逆量子化・逆変換部710、動きベクトル復号部701、動きベクトル保持部702、画像再生部711、フレームメモリ712、713は基本レイヤの符号データを復号し、基本レイヤの画像データを再生する。また、統合復号部715、係数復号部716、逆量子化・逆変換部717、動きベクトル復号部704、動きベクトル保持部705、画像再生部718、フレームメモリ719、720は拡張レイヤの符号データを復号し、拡張レイヤの画像データを再生する。 Here, the integrated decoding unit 708, the coefficient decoding unit 709, the inverse quantization / inverse conversion unit 710, the motion vector decoding unit 701, the motion vector holding unit 702, the image reproduction unit 711, the frame memory 712, and 713 are the code data of the basic layer. Is decoded and the image data of the basic layer is reproduced. Further, the integrated decoding unit 715, the coefficient decoding unit 716, the inverse quantization / inverse conversion unit 717, the motion vector decoding unit 704, the motion vector holding unit 705, the image reproduction unit 718, the frame memory 719, and 720 generate the code data of the expansion layer. Decode and reproduce the image data of the expansion layer.

上記画像復号装置における画像の復号動作を以下に説明する。本実施形態では実施形態1で生成されたビットストリームを復号する。 The image decoding operation in the image decoding device will be described below. In this embodiment, the bitstream generated in the first embodiment is decoded.

図7において、端子706から入力されたビットストリームは分離部707に入力され、基本レイヤの符号データと拡張レイヤの符号データに分離され、前者は統合復号部708に、後者は統合復号部715に入力される。 In FIG. 7, the bit stream input from the terminal 706 is input to the separation unit 707 and separated into the code data of the basic layer and the code data of the extension layer, the former to the integrated decoding unit 708 and the latter to the integrated decoding unit 715. Entered.

最初に基本レイヤの符号データの復号動作について説明する。基本レイヤの符号化データは統合復号部708に入力される。統合復号部708はヘッダ情報や予測に関する情報の符号データの復号を行い、量子化係数符号データと動きベクトル符号データを分離し、動きベクトル符号データを動きベクトル復号部701に入力し、量子化係数符号データを係数復号部709に入力する。 First, the operation of decoding the code data of the basic layer will be described. The coded data of the basic layer is input to the integrated decoding unit 708. The integrated decoding unit 708 decodes the code data of the header information and the information related to the prediction, separates the quantization coefficient code data and the motion vector code data, inputs the motion vector code data to the motion vector decoding unit 701, and inputs the quantization coefficient. The code data is input to the coefficient decoding unit 709.

係数復号部709は量子化係数符号データを復号し、量子化係数を再生する。再生された量子化係数は逆量子化・逆変換部710に入力され、逆量子化を行って直交変換係数を生成し、更に逆直交変換を施して予測誤差を再生する。再生された予測誤差は画像再生部711に入力される。 The coefficient decoding unit 709 decodes the quantization coefficient code data and reproduces the quantization coefficient. The regenerated quantization coefficient is input to the inverse quantization / inverse transformation unit 710, the inverse quantization is performed to generate the orthogonal transformation coefficient, and the inverse orthogonal transformation is further performed to reproduce the prediction error. The reproduced prediction error is input to the image reproduction unit 711.

動きベクトル復号部701は動きベクトル符号データを復号し、基本レイヤの復号対象のブロックの動きベクトルを復号する。図8に動きベクトル復号部701の詳細なブロック図を示す。図8において、801は端子であり、統合復号部708から復号対象ブロックの動きベクトル符号データを入力する。802は端子であり、動きベクトル保持部702から動きベクトルを入力する。803は動きベクトル抽出部であり、端子802を通じて基本レイヤの復号対象ブロックの周囲の動きベクトルないし前に復号されたピクチャの動きベクトルを抽出する。804は動きベクトル統合部であり、図2の動きベクトル統合部204と同様な動作を行い、同じ成分の動きベクトルをまとめ、参照動きベクトル群を生成する。805は符号分離部であり、動きベクトル符号データから識別情報符号データと動きベクトル予測誤差符号データを分離する。806はインデックス復号部であり、識別情報符号データを復号し、識別情報を再生する。インデックス復号部806は図2のインデックス符号化部206の逆の動作を行って復号する。807は動きベクトル誤差復号部であり、動きベクトル予測誤差符号データを復号し、復号対象のブロックの動きベクトルの予測誤差を再生する。動きベクトル誤差復号部807は図2の動きベクトル誤差符号化部208と逆の動作を行って復号する。808は予測動きベクトル選択部である。再生された識別情報を用いて参照動きベクトル群から予測動きベクトルを選択する。809は動きベクトル再生部であり、選択された予測動きベクトルと再生された動きベクトルの予測誤差から基本レイヤの復号対象ブロックの動きベクトルを再生する。810は端子であり、再生された動きベクトルを図7の画像再生部711及び動きベクトル保持部702に出力する。 The motion vector decoding unit 701 decodes the motion vector code data and decodes the motion vector of the block to be decoded in the basic layer. FIG. 8 shows a detailed block diagram of the motion vector decoding unit 701. In FIG. 8, 801 is a terminal, and motion vector code data of the block to be decoded is input from the integrated decoding unit 708. Reference numeral 802 is a terminal, and a motion vector is input from the motion vector holding unit 702. Reference numeral 803 is a motion vector extraction unit, which extracts the motion vector around the decoding target block of the basic layer or the motion vector of the previously decoded picture through the terminal 802. Reference numeral 804 is a motion vector integration unit, which performs the same operation as the motion vector integration unit 204 of FIG. 2, collects motion vectors having the same components, and generates a reference motion vector group. Reference numeral 805 is a code separation unit, which separates the identification information code data and the motion vector prediction error code data from the motion vector code data. Reference numeral 806 is an index decoding unit, which decodes the identification information code data and reproduces the identification information. The index decoding unit 806 performs the reverse operation of the index coding unit 206 of FIG. 2 to perform decoding. Reference numeral 807 is a motion vector error decoding unit, which decodes the motion vector prediction error code data and reproduces the motion vector prediction error of the block to be decoded. The motion vector error decoding unit 807 decodes by performing the reverse operation of the motion vector error coding unit 208 of FIG. Reference numeral 808 is a predicted motion vector selection unit. A predicted motion vector is selected from the reference motion vector group using the reproduced identification information. Reference numeral 809 is a motion vector reproduction unit, which reproduces the motion vector of the decoding target block of the basic layer from the prediction error between the selected predicted motion vector and the reproduced motion vector. Reference numeral 810 is a terminal, and the reproduced motion vector is output to the image reproduction unit 711 and the motion vector holding unit 702 in FIG. 7.

上記の構成で基本レイヤの動きベクトルの復号動作を以下に説明する。端子801から入力された基本レイヤの復号対象ブロックの動きベクトル符号データは符号分離部805に入力され識別情報符号データと動きベクトル予測誤差符号データに分離される。前者はインデックス復号部806に入力され、後者は動きベクトル誤差復号部807に入力される。インデックス復号部806は識別情報符号データを復号し、識別情報を再生する。また、動きベクトル誤差復号部807は動きベクトル予測誤差符号データを復号し、基本レイヤの復号対象ブロックの動きベクトルの予測誤差を再生する。また、図6に示したように動きベクトル抽出部803は復号する基本レイヤのブロックの周囲のブロックの動きベクトル、時間方向予測動きベクトルを、端子802を介して動きベクトル保持部702から抽出する。抽出された動きベクトルは動きベクトル統合部804に入力され、図2の動きベクトル統合部204と同等に参照動きベクトル群を生成する。 The decoding operation of the motion vector of the basic layer with the above configuration will be described below. The motion vector code data of the decoding target block of the basic layer input from the terminal 801 is input to the code separation unit 805 and separated into the identification information code data and the motion vector prediction error code data. The former is input to the index decoding unit 806, and the latter is input to the motion vector error decoding unit 807. The index decoding unit 806 decodes the identification information code data and reproduces the identification information. Further, the motion vector error decoding unit 807 decodes the motion vector prediction error code data and reproduces the motion vector prediction error of the decoding target block of the basic layer. Further, as shown in FIG. 6, the motion vector extraction unit 803 extracts the motion vector of the block around the block of the basic layer to be decoded and the time direction prediction motion vector from the motion vector holding unit 702 via the terminal 802. The extracted motion vector is input to the motion vector integration unit 804, and a reference motion vector group is generated in the same manner as the motion vector integration unit 204 of FIG.

予測動きベクトル選択部808はインデックス復号部806から識別情報を入力し、参照動きベクトル群から予測動きベクトルを選択する。選択された予測動きベクトルは再生された基本レイヤの復号対象ブロックの動きベクトルの予測誤差とともに動きベクトル再生部809に入力される。動きベクトル再生部809は再生された予測誤差と予測動きベクトルから復号対象ブロックの動きベクトルを再生する。再生された動きベクトルは端子810を介して出力される。 The predicted motion vector selection unit 808 inputs identification information from the index decoding unit 806, and selects a predicted motion vector from the reference motion vector group. The selected predicted motion vector is input to the motion vector reproduction unit 809 together with the prediction error of the motion vector of the decoding target block of the reproduced basic layer. The motion vector reproduction unit 809 reproduces the motion vector of the block to be decoded from the reproduced prediction error and the predicted motion vector. The reproduced motion vector is output via the terminal 810.

図7に戻り、再生された動きベクトルは画像再生部711と動きベクトル保持部702に入力される。動きベクトル保持部702ではブロック単位で動きベクトルを格納しておく。画像再生部711は再生された動きベクトルを用いてフレームメモリ713から基本レイヤの復号対象ブロックの予測画像データを算出する。さらに逆量子化・逆変換部710で再生された予測誤差を入力し、予測画像データを用いて基本レイヤの画像データを再生する。再生された基本レイヤの画像データはフレームメモリ712及びフレームメモリ713に格納され、参照に用いられる。再生された基本レイヤの画像データは端子721から出力される。 Returning to FIG. 7, the reproduced motion vector is input to the image reproduction unit 711 and the motion vector holding unit 702. The motion vector holding unit 702 stores the motion vector in block units. The image reproduction unit 711 calculates the predicted image data of the decoding target block of the basic layer from the frame memory 713 using the reproduced motion vector. Further, the prediction error reproduced by the inverse quantization / inverse transformation unit 710 is input, and the image data of the basic layer is reproduced using the predicted image data. The reproduced image data of the basic layer is stored in the frame memory 712 and the frame memory 713 and used for reference. The reproduced image data of the basic layer is output from the terminal 721.

続いて、拡張レイヤの符号データの復号動作について説明する。動きベクトル復号部704での動きベクトルの復号に先立ち、動きベクトル変倍部703は復号対象の拡張レイヤのブロックに対応する基本レイヤのブロックの位置の動きベクトルを動きベクトル保持部702から抽出する。抽出された動きベクトルは変倍率(n/m)に応じてm/n倍され、レイヤ間予測動きベクトルとして動きベクトル復号部704に出力される。 Subsequently, the operation of decoding the code data of the expansion layer will be described. Prior to decoding the motion vector by the motion vector decoding unit 704, the motion vector scaling unit 703 extracts the motion vector at the position of the block of the basic layer corresponding to the block of the expansion layer to be decoded from the motion vector holding unit 702. The extracted motion vector is multiplied by m / n according to the variable magnification (n / m), and is output to the motion vector decoding unit 704 as an inter-layer predicted motion vector.

拡張レイヤの符号化データは統合復号部715に入力される。統合復号部715はヘッダ情報や予測に関する情報の符号データの復号を行い、量子化係数符号データと動きベクトル符号データを分離し、動きベクトル符号データを動きベクトル復号部704に入力し、量子化係数符号データを係数復号部716に入力する。 The coded data of the expansion layer is input to the integrated decoding unit 715. The integrated decoding unit 715 decodes the code data of the header information and the information related to the prediction, separates the quantization coefficient code data and the motion vector code data, inputs the motion vector code data to the motion vector decoding unit 704, and inputs the quantization coefficient. The code data is input to the coefficient decoding unit 716.

係数復号部716は量子化係数符号データを復号し、量子化係数を再生する。再生された量子化係数は逆量子化・逆変換部717に入力され、逆量子化を行って直交変換係数を生成し、更に逆直交変換を施して予測誤差を再生する。再生された予測誤差は画像再生部718に入力される。 The coefficient decoding unit 716 decodes the quantization coefficient code data and reproduces the quantization coefficient. The regenerated quantization coefficient is input to the inverse quantization / inverse transformation unit 717, the inverse quantization is performed to generate the orthogonal transformation coefficient, and the inverse orthogonal transformation is further performed to reproduce the prediction error. The reproduced prediction error is input to the image reproduction unit 718.

動きベクトル復号部704は動きベクトル符号データを復号し、拡張レイヤの復号対象のブロックの動きベクトルを復号する。図9に動きベクトル復号部704の詳細なブロック図を示す。図9において、図8のブロックと同様の機能を実現するブロックについては同じ番号を付し、説明を省略する。図9において、901は端子であり、動きベクトル変倍部703から動きベクトルを入力する。903は動きベクトル抽出部であり、端子901を通じて図6に示したように、拡張レイヤの復号対象ブロックの周囲の動きベクトルないし前に符号化されたピクチャの動きベクトルを入力する。また、端子901から入力されたレイヤ間予測動きベクトルを入力する。904は動きベクトル統合部であり、図8の動きベクトル統合部904と同様な動作を行い、同じ成分の動きベクトルをまとめ、参照動きベクトル群を生成する。参照動きベクトル群ではまとめられた動きベクトルを所定の順に並べられている。並べ方に関しては特に限定しないが、先頭にレイヤ間予測動きベクトルを配置する。それ以外は成分の大きさ順、発生確率の高い順、抽出されたブロックの位置等に基づいて並べても良い。なお、端子801は統合復号部715に接続され、端子802は動きベクトル保持部705に接続され、端子810は動きベクトル保持部705と画像再生部718に接続されている。 The motion vector decoding unit 704 decodes the motion vector code data and decodes the motion vector of the block to be decoded in the expansion layer. FIG. 9 shows a detailed block diagram of the motion vector decoding unit 704. In FIG. 9, blocks that realize the same functions as the blocks of FIG. 8 are given the same numbers, and description thereof will be omitted. In FIG. 9, 901 is a terminal, and a motion vector is input from the motion vector scaling unit 703. Reference numeral 903 is a motion vector extraction unit, which inputs a motion vector around the decoding target block of the expansion layer or a motion vector of a previously encoded picture through the terminal 901 as shown in FIG. Further, the inter-layer predicted motion vector input from the terminal 901 is input. Reference numeral 904 is a motion vector integration unit, which performs the same operation as the motion vector integration unit 904 of FIG. 8, collects motion vectors having the same components, and generates a reference motion vector group. In the reference motion vector group, the grouped motion vectors are arranged in a predetermined order. The arrangement is not particularly limited, but the inter-layer predicted motion vector is placed at the beginning. Other than that, they may be arranged based on the order of the size of the components, the order of the highest probability of occurrence, the position of the extracted blocks, and the like. The terminal 801 is connected to the integrated decoding unit 715, the terminal 802 is connected to the motion vector holding unit 705, and the terminal 810 is connected to the motion vector holding unit 705 and the image reproduction unit 718.

上記の構成で拡張レイヤの動きベクトルの復号動作を以下に説明する。動きベクトル抽出部903は復号する拡張レイヤのブロックの周囲のブロックの動きベクトル、時間方向予測動きベクトルを、端子802を介して動きベクトル保持部705から入力する。さらに、レイヤ間予測動きベクトルを、端子901をから入力する。これらの動きベクトルは動きベクトル統合部904に入力され、図8の動きベクトル統合部804と同等に参照動きベクトル群を生成する。以下、基本レイヤの動きベクトル復号部701と同様に、識別情報と参照動きベクトル群から予測動きベクトルを選択する。選択された予測動きベクトルと再生された拡張レイヤの復号対象ブロックの動きベクトルの予測誤差によって拡張レイヤの復号対象ブロックの動きベクトルを再生する。再生された動きベクトルは端子810を介して出力される。 The decoding operation of the motion vector of the expansion layer with the above configuration will be described below. The motion vector extraction unit 903 inputs the motion vector of the block around the block of the expansion layer to be decoded and the time direction prediction motion vector from the motion vector holding unit 705 via the terminal 802. Further, the inter-layer predicted motion vector is input from the terminal 901. These motion vectors are input to the motion vector integration unit 904, and a reference motion vector group is generated in the same manner as the motion vector integration unit 804 of FIG. Hereinafter, similarly to the motion vector decoding unit 701 of the basic layer, the predicted motion vector is selected from the identification information and the reference motion vector group. The motion vector of the decoding target block of the expansion layer is reproduced by the prediction error of the selected predicted motion vector and the motion vector of the decoding target block of the reproduced expansion layer. The reproduced motion vector is output via the terminal 810.

図7に戻り、再生された動きベクトルは画像再生部718と動きベクトル保持部705に入力される。動きベクトル保持部705ではブロック単位で動きベクトルを格納しておく。画像再生部718は再生された動きベクトルを用いてフレームメモリ720またはフレームメモリ713から対応する画像データを読み出して変倍部714で変倍された画像データを入力する。これらの画像データから拡張レイヤの復号対象ブロックの予測画像データを算出する。さらに逆量子化・逆変換部717で再生された予測誤差を入力し、予測画像データを用いて拡張レイヤの画像データを再生する。再生された拡張レイヤの画像データはフレームメモリ719及びフレームメモリ720に格納され、参照に用いられる。再生された拡張レイヤの画像データは端子722から出力される。 Returning to FIG. 7, the reproduced motion vector is input to the image reproduction unit 718 and the motion vector holding unit 705. The motion vector holding unit 705 stores the motion vector in block units. The image reproduction unit 718 reads the corresponding image data from the frame memory 720 or the frame memory 713 using the reproduced motion vector, and inputs the image data scaled by the scaling unit 714. From these image data, the predicted image data of the decoding target block of the expansion layer is calculated. Further, the prediction error reproduced by the inverse quantization / inverse transformation unit 717 is input, and the image data of the expansion layer is reproduced using the predicted image data. The reproduced image data of the expansion layer is stored in the frame memory 719 and the frame memory 720 and used for reference. The reproduced image data of the expansion layer is output from the terminal 722.

図10は、実施形態2に係る画像復号装置における基本レイヤの動きベクトル復号処理を示すフローチャートである。まず、ステップS1001にて、基本レイヤの復号対象のブロックの周囲のブロックの動きベクトルと時間方向予測動きベクトルを保持した動きベクトルから抽出する。ステップS1002にて、ステップS1001で抽出された動きベクトルで同じ成分の動きベクトルをまとめ、所定の順番に並べ替え、参照動きベクトル群を生成する。ステップS1003にて、識別情報符号データを復号し識別情報を再生する。ステップS1004にて、ステップS1003で再生された識別情報によって、ステップS1002で生成された参照動きベクトル群から予測動きベクトルを選択する。ステップS1005にて、動きベクトル予測誤差符号データを復号し、基本レイヤの復号対象のブロックの動きベクトルの予測誤差を再生する。ステップS1006にて、ステップS1004で選択された予測動きベクトルとステップS1005で再生された動きベクトルの予測誤差から基本レイヤの復号対象ブロックの動きベクトルを再生する。ステップS1007にて、再生された動きベクトルを出力し、さらに後段での参照のため、保持する。 FIG. 10 is a flowchart showing a motion vector decoding process of the basic layer in the image decoding apparatus according to the second embodiment. First, in step S1001, the motion vector of the blocks around the block to be decoded in the basic layer and the motion vector holding the predicted motion vector in the time direction are extracted. In step S1002, the motion vectors of the same component are grouped by the motion vectors extracted in step S1001 and rearranged in a predetermined order to generate a reference motion vector group. In step S1003, the identification information code data is decoded and the identification information is reproduced. In step S1004, the predicted motion vector is selected from the reference motion vector group generated in step S1002 based on the identification information reproduced in step S1003. In step S1005, the motion vector prediction error code data is decoded, and the motion vector prediction error of the block to be decoded in the basic layer is reproduced. In step S1006, the motion vector of the decoding target block of the basic layer is reproduced from the prediction error of the predicted motion vector selected in step S1004 and the motion vector reproduced in step S1005. In step S1007, the reproduced motion vector is output and further retained for reference in a later stage.

また、図11は、実施形態2に係る画像符号化装置における拡張レイヤの動きベクトル復号処理を示すフローチャートである。図11において、図10のブロックと同様の機能を実現するステップについては同じ番号を付し、説明を省略する。まず、ステップS1101にて、拡張レイヤの復号対象のブロックの周囲のブロックまたは拡張レイヤの時間方向予測動きベクトルを保持された復号済みの拡張レイヤの動きベクトルの中から抽出する。ステップS1102にて、拡張レイヤの復号対象ブロックの位置に対応する基本レイヤのブロックの動きベクトルを抽出する。ステップS1103にて、抽出された基本レイヤの動きベクトルを変倍し、レイヤ間予測動きベクトルを算出する。ステップS1104にて、ステップS1102で抽出された動きベクトル、及びレイヤ間予測動きベクトルで同じ成分の動きベクトルをまとめ、所定の順番に並べ替え、参照動きベクトル群を生成する。ステップS1105にて、識別情報符号データを復号し識別情報を再生する。ステップS1106にて、再生された識別情報によって、ステップS1104で生成された参照動きベクトル群から予測動きベクトルを選択する。以下、図10の基本レイヤの動きベクトル復号と同様に、動きベクトル予測誤差符号データを復号し、動きベクトルの予測誤差を再生する。選択された予測動きベクトルと動きベクトルの予測誤差から拡張レイヤの復号対象ブロックの動きベクトルを再生して出力、保持する。 Further, FIG. 11 is a flowchart showing a motion vector decoding process of the expansion layer in the image coding apparatus according to the second embodiment. In FIG. 11, the steps for realizing the same function as the block of FIG. 10 are numbered the same, and the description thereof will be omitted. First, in step S1101, the block around the block to be decoded of the expansion layer or the time-direction predicted motion vector of the expansion layer is extracted from the motion vector of the decoded expansion layer held. In step S1102, the motion vector of the block of the basic layer corresponding to the position of the block to be decoded of the expansion layer is extracted. In step S1103, the motion vector of the extracted basic layer is scaled to calculate the inter-layer predicted motion vector. In step S1104, the motion vectors of the same components are grouped by the motion vector extracted in step S1102 and the inter-layer predicted motion vector, rearranged in a predetermined order, and a reference motion vector group is generated. In step S1105, the identification information code data is decoded and the identification information is reproduced. In step S1106, the predicted motion vector is selected from the reference motion vector group generated in step S1104 based on the reproduced identification information. Hereinafter, the motion vector prediction error code data is decoded and the motion vector prediction error is reproduced in the same manner as in the motion vector decoding of the basic layer of FIG. The motion vector of the decoding target block of the expansion layer is reproduced, output, and held from the selected predicted motion vector and the prediction error of the motion vector.

以上の構成と動作により、実施形態1で生成された、基本レイヤの動きベクトルを用いて効率的に符号化されたビットストリームの復号を行い、再生画像を得ることができる。なお、変倍の倍率が1である場合、変倍部714、動きベクトル変倍部703は省略が可能である。 With the above configuration and operation, it is possible to efficiently decode the encoded bit stream using the motion vector of the basic layer generated in the first embodiment and obtain a reproduced image. When the magnification of the scaling is 1, the scaling section 714 and the motion vector scaling section 703 can be omitted.

なお、動きベクトル統合部904でレイヤ間予測動きベクトルを必ず参照動きベクトル群の先頭に割り当てることも可能である。これにより、参照される可能性の最も高いレイヤ間予測動きベクトルに短い符号が割当たりやすくすることでさらに符号化効率の向上が可能である。 It is also possible for the motion vector integration unit 904 to always assign the inter-layer predicted motion vector to the beginning of the reference motion vector group. This makes it easier to assign a short code to the inter-layer predicted motion vector that is most likely to be referenced, which makes it possible to further improve the coding efficiency.

なお、動きベクトル抽出部903は時間方向予測動きベクトルを入力したが、これに限定されない。例えばレイヤ間予測動きベクトルが存在する場合は時間方向予測動きベクトルの入力を省略しても構わない。 The motion vector extraction unit 903 has input the time-direction predicted motion vector, but the present invention is not limited to this. For example, when the inter-layer predicted motion vector exists, the input of the time direction predicted motion vector may be omitted.

なお、動きベクトル統合部904はレイヤ間予測動きベクトルを先頭に配置する場合について説明したが、時間方向予測動きベクトルに続く順番でも構わない。さらには動きベクトル統合部204と同様に特に配置を決めなくても構わない。 Although the motion vector integration unit 904 has described the case where the inter-layer predicted motion vector is arranged at the head, the order following the time direction predicted motion vector may be used. Further, it is not necessary to determine the arrangement in the same manner as the motion vector integration unit 204.

本実施形態において動きベクトル変倍部703から変倍率を入力しているが、これに限定されず、個別に基本レイヤの解像度と拡張レイヤの解像度の比を算出しても良いし、所定の値を設定しても構わない。 In the present embodiment, the scaling factor is input from the motion vector scaling unit 703, but the ratio is not limited to this, and the ratio of the resolution of the basic layer and the resolution of the extended layer may be calculated individually, or a predetermined value. May be set.

なお、符号化効率向上のため、動きベクトル統合部で同じ成分を持つ動きベクトルをまとめることを行ったが、これに限定されず、固定の数の動きベクトルを選択しても良い。さらには動きベクトル統合部を省略しても構わない。 In order to improve the coding efficiency, the motion vector integration unit collects motion vectors having the same components, but the present invention is not limited to this, and a fixed number of motion vectors may be selected. Furthermore, the motion vector integration unit may be omitted.

また、基本レイヤの復号装置と拡張レイヤの復号装置が個別にあり、変倍部714が外部にある構成でも構わない。 Further, the decoding device of the basic layer and the decoding device of the extended layer may be separately provided, and the scaling unit 714 may be externally provided.

なお、参照動きベクトル群の動きベクトルとして図6に示す位置のブロックを参照したが、これに限定されない。例えばブロック604の右に隣接するブロックの動きベクトルを加えても構わないし、これらの動きベクトルの中央値からなる動きベクトルを加えても構わない。また、基本レイヤから参照される動きベクトルは同一位置に限定されない。図16のようにブロック608の下のブロック1601の動きベクトル1604、右下のブロック1602の動きベクトル1605、右のブロック1603の動きベクトル1606を参照しても構わない。また、さらに他のブロックの動きベクトルを参照しても構わない。 The block at the position shown in FIG. 6 was referred to as the motion vector of the reference motion vector group, but the present invention is not limited to this. For example, a motion vector of a block adjacent to the right of the block 604 may be added, or a motion vector consisting of the median values of these motion vectors may be added. Also, the motion vectors referenced from the base layer are not limited to the same position. As shown in FIG. 16, the motion vector 1604 of the block 1601 below the block 608, the motion vector 1605 of the block 1602 at the lower right, and the motion vector 1606 of the block 1603 on the right may be referred to. Further, the motion vector of another block may be referred to.

<実施形態3>
本実施形態では画像符号化装置は実施形態1の図1と同じ構成をとる。ただし、拡張レイヤの動きベクトル符号化部105の構成が異なる。したがって、基本レイヤに関する符号化及び、拡張レイヤの量子化係数の符号化に関しては実施形態1と同様であり、説明を省略する。
<Embodiment 3>
In the present embodiment, the image coding apparatus has the same configuration as that of FIG. 1 of the first embodiment. However, the configuration of the motion vector coding unit 105 of the expansion layer is different. Therefore, the coding related to the basic layer and the coding of the quantization coefficient of the extended layer are the same as those in the first embodiment, and the description thereof will be omitted.

図12は本実施形態の動きベクトル符号化部105の詳細な構成を示すブロック図である。図12において、実施形態1の図3と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。1201は端子であり、図3の端子301と同様に動きベクトル変倍部103からレイヤ間予測動きベクトルを入力する。1203は動きベクトル抽出部であり、端子201から入力される拡張レイヤの符号化対象ブロックの周囲の動きベクトルないし前に符号化されたピクチャの動きベクトルを抽出する。1205は予測動きベクトル選択部である。端子202から拡張レイヤの符号化対象のブロックの動きベクトルを、動きベクトル統合部204から参照動きベクトル群を、端子1201からレイヤ間予測動きベクトルを入力する。入力された参照動きベクトル群から符号化対象のブロックの動きベクトルに最も近い動きベクトルを予測動きベクトルとして選択する。 FIG. 12 is a block diagram showing a detailed configuration of the motion vector coding unit 105 of the present embodiment. In FIG. 12, the same numbers are assigned to the parts that perform the same functions as those in FIG. 3 of the first embodiment, and the description thereof will be omitted. Reference numeral 1201 is a terminal, and an inter-layer predicted motion vector is input from the motion vector scaling unit 103 in the same manner as the terminal 301 in FIG. Reference numeral 1203 is a motion vector extraction unit, which extracts the motion vector around the coded block of the expansion layer input from the terminal 201 or the motion vector of the previously encoded picture. Reference numeral 1205 is a predicted motion vector selection unit. The motion vector of the block to be encoded in the expansion layer is input from the terminal 202, the reference motion vector group is input from the motion vector integration unit 204, and the inter-layer predicted motion vector is input from the terminal 1201. From the input reference motion vector group, the motion vector closest to the motion vector of the block to be encoded is selected as the predicted motion vector.

上記の構成で拡張レイヤの動きベクトルの符号化動作を以下に説明する。 The motion vector coding operation of the expansion layer with the above configuration will be described below.

動きベクトル抽出部1203は図6に示す拡張レイヤの符号化対象ブロックの周囲の動きベクトルないし前に符号化されたピクチャの動きベクトルを抽出する。抽出された動きベクトルは動きベクトル統合部304に入力される。動きベクトル統合部304は実施形態1と同様に入力された動きベクトルで同じ成分を持つ動きベクトルをまとめ、参照動きベクトル群を生成する。予測動きベクトル選択部1205は入力された参照動きベクトル群、レイヤ間予測動きベクトルから符号化対象ブロックの動きベクトルに最も類似した動きベクトルを予測動きベクトルをとして選択する。選択された予測動きベクトルを識別する識別情報と予測動きベクトルを出力する。 The motion vector extraction unit 1203 extracts the motion vector around the coded block of the expansion layer shown in FIG. 6 or the motion vector of the previously encoded picture. The extracted motion vector is input to the motion vector integration unit 304. The motion vector integration unit 304 collects motion vectors having the same components with the input motion vectors in the same manner as in the first embodiment, and generates a reference motion vector group. The predicted motion vector selection unit 1205 selects a motion vector most similar to the motion vector of the coded block as the predicted motion vector from the input reference motion vector group and the inter-layer predicted motion vector. Outputs identification information that identifies the selected predicted motion vector and the predicted motion vector.

ここで、実施形態1との相違はレイヤ間予測動きベクトルは参照動きベクトル群とは独立して選択の候補となることである。したがって、参照動きベクトル群の中に同じ成分を持つ動きベクトルが存在する可能性がある。この場合、予測動きベクトル選択部1205は予測動きベクトルとしてレイヤ間予測動きベクトルと参照動きベクトル群の中のベクトルが選べる時、レイヤ間予測動きベクトルを選択することとする。 Here, the difference from the first embodiment is that the inter-layer predicted motion vector is a candidate for selection independently of the reference motion vector group. Therefore, there may be motion vectors having the same component in the reference motion vector group. In this case, the predicted motion vector selection unit 1205 selects the inter-layer predicted motion vector when the inter-layer predicted motion vector and the vector in the reference motion vector group can be selected as the predicted motion vector.

以下、実施形態1と同様に識別情報はインデックス符号化部206で符号化される。また、予測部207は符号化対象ブロックの動きベクトルと予測動きベクトルから予測誤差を算出し、動きベクトル誤差符号化部208で符号化する。 Hereinafter, the identification information is encoded by the index coding unit 206 as in the first embodiment. Further, the prediction unit 207 calculates a prediction error from the motion vector of the coded block and the predicted motion vector, and the motion vector error coding unit 208 encodes the prediction error.

図13は、実施形態3に係る画像符号化装置における拡張レイヤの動きベクトル符号化処理を示すフローチャートである。図13において、図4のブロックと同様の機能を実現するステップについては同じ番号を付し、説明を省略する。まず、ステップS501からステップS504については実施形態1と同様である。すなわち、拡張レイヤの符号化対象ブロックの周囲の動きベクトルないし前に符号化されたピクチャの動きベクトルとレイヤ間予測動きベクトルの算出が行われる。ステップS1301にて、拡張レイヤの符号化対象ブロックの周囲の動きベクトルないし前に符号化されたピクチャの動きベクトルについて同じ成分の動きベクトルをまとめ、所定の順番に並べ替え、参照動きベクトル群を生成する。ステップS1302にて、レイヤ間予測動きベクトルを生成された参照動きベクトル群の先頭に追加する。ステップS404にて、実施形態1と同様に参照動きベクトル群から予測動きベクトルを選択する。ステップS1303にて、予測動きベクトルがレイヤ間予測動きベクトルと同じ成分であった場合、ステップS1304に進む。そうでなければステップS405に進む。ステップS1304にて、レイヤ間予測動きベクトルを予測動きベクトルとして選択する。これにより、同じ成分を持つ他の動きベクトルが選択されることを防ぐ。以下、実施形態1の図3の拡張レイヤの動きベクトル符号化処理と同様にステップS405からステップS407にて動きベクトル予測誤差の算出、識別情報の符号化、動きベクトル予測誤差の符号化を行う。 FIG. 13 is a flowchart showing a motion vector coding process of the expansion layer in the image coding apparatus according to the third embodiment. In FIG. 13, the steps for realizing the same function as the block of FIG. 4 are numbered the same, and the description thereof will be omitted. First, steps S501 to S504 are the same as those in the first embodiment. That is, the motion vector around the coded block of the extension layer or the motion vector of the previously encoded picture and the inter-layer predicted motion vector are calculated. In step S1301, the motion vectors of the same components for the motion vectors around the coded block of the expansion layer or the motion vectors of the previously encoded picture are grouped and rearranged in a predetermined order to generate a reference motion vector group. To do. In step S1302, the inter-layer predicted motion vector is added to the beginning of the generated reference motion vector group. In step S404, the predicted motion vector is selected from the reference motion vector group as in the first embodiment. If the predicted motion vector has the same component as the inter-layer predicted motion vector in step S1303, the process proceeds to step S1304. If not, the process proceeds to step S405. In step S1304, the inter-layer predicted motion vector is selected as the predicted motion vector. This prevents other motion vectors with the same component from being selected. Hereinafter, the motion vector prediction error is calculated, the identification information is coded, and the motion vector prediction error is coded in steps S405 to S407 in the same manner as in the motion vector coding process of the expansion layer of FIG. 3 of the first embodiment.

以上の構成と動作により、拡張レイヤの動きベクトル符号化において、基本レイヤの動きベクトルを他の動きベクトルより優先的に用いて効率的な符号化を行うことができる。これはレイヤ間予測動きベクトルが拡張レイヤのブロックの動きベクトルと非常に相関が高いためである。 With the above configuration and operation, in the motion vector coding of the extended layer, the motion vector of the basic layer can be used preferentially over other motion vectors for efficient coding. This is because the inter-layer predicted motion vector has a very high correlation with the motion vector of the block of the expansion layer.

なお、参照動きベクトル群の動きベクトルとして図6に示す位置のブロックを参照したが、これに限定されない。例えばブロック604の右に隣接するブロックの動きベクトルを加えても構わないし、これらの動きベクトルの中央値からなる動きベクトルを加えても構わない。 The block at the position shown in FIG. 6 was referred to as the motion vector of the reference motion vector group, but the present invention is not limited to this. For example, a motion vector of a block adjacent to the right of the block 604 may be added, or a motion vector consisting of the median values of these motion vectors may be added.

なお、符号化効率向上のため、動きベクトル統合部で同じ成分を持つ動きベクトルをまとめることを行ったが、これに限定されず、固定の数の動きベクトルを選択しても良い。さらには動きベクトル統合部を省略しても構わない。 In order to improve the coding efficiency, the motion vector integration unit collects motion vectors having the same components, but the present invention is not limited to this, and a fixed number of motion vectors may be selected. Furthermore, the motion vector integration unit may be omitted.

なお、参照動きベクトル群の動きベクトルとして図6に示す位置のブロックを参照したが、これに限定されない。 The block at the position shown in FIG. 6 was referred to as the motion vector of the reference motion vector group, but the present invention is not limited to this.

<実施形態4>
本実施形態では画像符号化装置は実施形態2の図7と同じ構成をとる。ただし、拡張レイヤの動きベクトル復号部704の構成が異なる。したがって、基本レイヤに関する復号及び、拡張レイヤの量子化係数の復号に関しては実施形態2と同様であり、説明を省略する。また、本実施形態では実施形態3で生成された符号化データの復号を例にとって説明する。
<Embodiment 4>
In the present embodiment, the image coding apparatus has the same configuration as that of FIG. 7 of the second embodiment. However, the configuration of the motion vector decoding unit 704 of the expansion layer is different. Therefore, the decoding related to the basic layer and the decoding of the quantization coefficient of the extended layer are the same as those in the second embodiment, and the description thereof will be omitted. Further, in the present embodiment, decoding of the coded data generated in the third embodiment will be described as an example.

図14は本実施形態の動きベクトル復号部704の詳細な構成を示すブロック図である。図14において、実施形態2の図9と同様の機能を果たす部分に関しては同じ番号を付与し、説明を省略する。端子1401は図9の端子901と同様に動きベクトル変倍部703からレイヤ間予測動きベクトルを入力する。1403は動きベクトル抽出部であり、実施形態3の動きベクトル抽出部1203と同様に図6に示す拡張レイヤの符号化対象ブロックの周囲の動きベクトルないし前に符号化されたピクチャの動きベクトルを抽出する。1405は予測動きベクトル選択部であり、レイヤ間予測動きベクトルと参照動きベクトル群から予測動きベクトルから識別情報に従って予測動きベクトルを選択する。 FIG. 14 is a block diagram showing a detailed configuration of the motion vector decoding unit 704 of the present embodiment. In FIG. 14, the same numbers are assigned to the parts that perform the same functions as those in FIG. 9 of the second embodiment, and the description thereof will be omitted. Similar to the terminal 901 of FIG. 9, the terminal 1401 inputs the inter-layer predicted motion vector from the motion vector scaling unit 703. Reference numeral 1403 is a motion vector extraction unit, which extracts a motion vector around the coded block of the expansion layer shown in FIG. 6 or a motion vector of a previously encoded picture in the same manner as the motion vector extraction unit 1203 of the third embodiment. To do. Reference numeral 1405 is a predicted motion vector selection unit, which selects a predicted motion vector from the inter-layer predicted motion vector and the reference motion vector group according to the identification information from the predicted motion vector.

上記の構成で拡張レイヤの動きベクトルの符号化動作を以下に説明する。 The motion vector coding operation of the expansion layer with the above configuration will be described below.

動きベクトル抽出部1403は図6に示す拡張レイヤの復号対象ブロックの周囲の動きベクトルないし前に符号化されたピクチャの動きベクトルを抽出する。抽出された動きベクトルは動きベクトル統合部804に入力される。動きベクトル統合部804は実施形態2と同様に入力された動きベクトルで同じ成分を持つ動きベクトルをまとめ、参照動きベクトル群を生成する。また、実施形態2と同様にインデックス復号部806は識別情報符号データを復号し、識別情報を再生する。予測動きベクトル選択部1405は識別情報に従って、レイヤ間予測動きベクトルか参照動きベクトル群から予測動きベクトルを選択する。以下、実施形態2と同様に動きベクトルの予測誤差と選択された予測動きベクトルから拡張レイヤの復号対象の動きベクトルを再生する。 The motion vector extraction unit 1403 extracts the motion vector around the decoding target block of the expansion layer shown in FIG. 6 or the motion vector of the previously encoded picture. The extracted motion vector is input to the motion vector integration unit 804. The motion vector integration unit 804 collects motion vectors having the same components with the input motion vectors in the same manner as in the second embodiment, and generates a reference motion vector group. Further, as in the second embodiment, the index decoding unit 806 decodes the identification information code data and reproduces the identification information. The predicted motion vector selection unit 1405 selects a predicted motion vector from the inter-layer predicted motion vector or the reference motion vector group according to the identification information. Hereinafter, as in the second embodiment, the motion vector to be decoded in the expansion layer is reproduced from the prediction error of the motion vector and the selected predicted motion vector.

図15は、実施形態4に係る画像復号装置における拡張レイヤの動きベクトル復号処理を示すフローチャートである。図15において、図11のブロックと同様の機能を実現するステップについては同じ番号を付し、説明を省略する。まず、ステップS1101からステップS1103については実施形態2と同様である。すなわち、拡張レイヤの復号対象ブロックの周囲の動きベクトルないし前に復号されたピクチャの動きベクトルとレイヤ間予測動きベクトルの算出が行われる。ステップS1501にて、拡張レイヤの復号対象ブロックの周囲の動きベクトルないし前に復号されたピクチャの動きベクトルについて同じ成分の動きベクトルをまとめ、所定の順番に並べ替え、参照動きベクトル群を生成する。ステップS1502にて、レイヤ間予測動きベクトルを生成された参照動きベクトル群の先頭に追加する。以下、実施形態2の図11の拡張レイヤの動きベクトル復号処理と同様にステップS1105からステップS1007の処理が行われる。すなわち、識別情報の復号、予測動きベクトルの選択、動きベクトル予測誤差の再生、拡張レイヤの復号対象ブロックの動きベクトルの再生を行う。 FIG. 15 is a flowchart showing a motion vector decoding process of the expansion layer in the image decoding apparatus according to the fourth embodiment. In FIG. 15, the steps for realizing the same function as the block of FIG. 11 are numbered the same, and the description thereof will be omitted. First, steps S1101 to S1103 are the same as those in the second embodiment. That is, the motion vector around the decoding target block of the expansion layer or the motion vector of the previously decoded picture and the inter-layer predicted motion vector are calculated. In step S1501, the motion vectors having the same components for the motion vector around the decoding target block of the expansion layer or the motion vector of the previously decoded picture are put together and rearranged in a predetermined order to generate a reference motion vector group. In step S1502, the inter-layer predicted motion vector is added to the beginning of the generated reference motion vector group. Hereinafter, the processes of steps S1105 to S1007 are performed in the same manner as the motion vector decoding process of the expansion layer of FIG. 11 of the second embodiment. That is, the identification information is decoded, the predicted motion vector is selected, the motion vector prediction error is reproduced, and the motion vector of the decoding target block of the expansion layer is reproduced.

以上の構成と動作により、拡張レイヤの動きベクトル復号において、基本レイヤの動きベクトルを他の動きベクトルより積極的に用いてより少ない符号量で符号化された符号データの復号を行うことができる。これはレイヤ間予測動きベクトルが拡張レイヤのブロックの動きベクトルと非常に相関が高いためである。 With the above configuration and operation, in the motion vector decoding of the extended layer, the motion vector of the basic layer can be used more positively than the other motion vectors to decode the code data encoded with a smaller amount of code. This is because the inter-layer predicted motion vector has a very high correlation with the motion vector of the block of the expansion layer.

なお、符号化効率向上のため、動きベクトル統合部で同じ成分を持つ動きベクトルをまとめることを行ったが、これに限定されず、固定の数の動きベクトルを選択しても良い。さらには動きベクトル統合部を省略しても構わない。 In order to improve the coding efficiency, the motion vector integration unit collects motion vectors having the same components, but the present invention is not limited to this, and a fixed number of motion vectors may be selected. Furthermore, the motion vector integration unit may be omitted.

なお、参照動きベクトル群の動きベクトルとして図6に示す位置のブロックを参照したが、これに限定されない。 The block at the position shown in FIG. 6 was referred to as the motion vector of the reference motion vector group, but the present invention is not limited to this.

<実施形態5>
図1、図2、図3、図7、図8、図9、図12、図14に示した各処理部はハードウェアでもって構成しているものとして上記実施形態では説明した。しかし、これらの図に示した各処理部で行なう処理をコンピュータプログラムでもって構成しても良い。
<Embodiment 5>
In the above embodiment, each processing unit shown in FIGS. 1, 2, 3, 7, 7, 8, 9, 12, and 14 has been described as being configured by hardware. However, the processing performed by each processing unit shown in these figures may be configured by a computer program.

図17は、上記各実施形態に係る画像表示装置に適用可能なコンピュータのハードウェアの構成例を示すブロック図である。 FIG. 17 is a block diagram showing a configuration example of computer hardware applicable to the image display device according to each of the above embodiments.

CPU1701は、RAM1702やROM1703に格納されているコンピュータプログラムやデータを用いてコンピュータ全体の制御を行うと共に、上記各実施形態に係る画像処理装置が行うものとして上述した各処理を実行する。即ち、CPU1701は、図1、図2、図3、図7、図8、図9、図12、図14に示した各処理部として機能することになる。 The CPU 1701 controls the entire computer by using the computer programs and data stored in the RAM 1702 and the ROM 1703, and also executes the above-described processes as those performed by the image processing apparatus according to each of the above embodiments. That is, the CPU 1701 functions as each processing unit shown in FIGS. 1, 2, 3, 7, 8, 9, 9, 12, and 14.

RAM1702は、外部記憶装置1706からロードされたコンピュータプログラムやデータ、I/F(インターフェース)1709を介して外部から取得したデータなどを一時的に記憶するためのエリアを有する。更に、RAM1702は、CPU1701が各種の処理を実行する際に用いるワークエリアを有する。即ち、RAM1702は、例えば、フレームメモリとして割当てたり、その他の各種のエリアを適宜提供することができる。 The RAM 1702 has an area for temporarily storing computer programs and data loaded from the external storage device 1706, data acquired from the outside via the I / F (interface) 1709, and the like. Further, the RAM 1702 has a work area used by the CPU 1701 to execute various processes. That is, the RAM 1702 can be allocated as a frame memory, for example, and various other areas can be provided as appropriate.

ROM1703には、本コンピュータの設定データや、ブートプログラムなどが格納されている。操作部1704は、キーボードやマウスなどにより構成されており、本コンピュータのユーザが操作することで、各種の指示をCPU1701に対して入力することができる。表示部1705は、CPU1701による処理結果を表示する。また表示部1705は例えば液晶ディスプレイで構成される。 The ROM 1703 stores the setting data of the computer, the boot program, and the like. The operation unit 1704 is composed of a keyboard, a mouse, and the like, and various instructions can be input to the CPU 1701 by being operated by a user of the computer. The display unit 1705 displays the processing result by the CPU 1701. The display unit 1705 is composed of, for example, a liquid crystal display.

外部記憶装置1706は、ハードディスクドライブ装置に代表される、大容量情報記憶装置である。外部記憶装置1706には、OS(オペレーティングシステム)や、図1、図2、図3、図7、図8、図9、図12、図14に示した各部の機能をCPU1701に実現させるためのコンピュータプログラムが保存されている。更には、外部記憶装置1706には、処理対象としての各画像データが保存されていても良い。 The external storage device 1706 is a large-capacity information storage device represented by a hard disk drive device. The external storage device 1706 is used to enable the CPU 1701 to realize the functions of the OS (operating system) and the parts shown in FIGS. 1, 2, 3, 7, 7, 8, 9, 12, and 14. The computer program is saved. Further, each image data as a processing target may be stored in the external storage device 1706.

外部記憶装置1706に保存されているコンピュータプログラムやデータは、CPU1701による制御に従って適宜、RAM1702にロードされ、CPU1701による処理対象となる。I/F1707には、LANやインターネット等のネットワーク、投影装置や表示装置などの他の機器を接続することができ、本コンピュータはこのI/F1707を介して様々な情報を取得したり、送出したりすることができる。1708は上述の各部を繋ぐバスである。 The computer programs and data stored in the external storage device 1706 are appropriately loaded into the RAM 1702 according to the control by the CPU 1701 and become the processing target by the CPU 1701. A network such as a LAN or the Internet, or other devices such as a projection device or a display device can be connected to the I / F 1707, and the computer acquires and sends various information via the I / F 1707. Can be done. 1708 is a bus connecting the above-mentioned parts.

上述の構成からなる作動は前述のフローチャートで説明した作動をCPU1701が中心となってその制御を行う。 The CPU 1701 plays a central role in controlling the operation described in the above-mentioned flowchart for the operation having the above configuration.

<その他の実施形態>
本発明の目的は、前述した機能を実現するコンピュータプログラムのコードを記録した記憶媒体を、システムに供給し、そのシステムがコンピュータプログラムのコードを読み出し実行することによっても達成される。この場合、記憶媒体から読み出されたコンピュータプログラムのコード自体が前述した実施形態の機能を実現し、そのコンピュータプログラムのコードを記憶した記憶媒体は本発明を構成する。また、そのプログラムのコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した機能が実現される場合も含まれる。
<Other Embodiments>
An object of the present invention is also achieved by supplying a storage medium in which a computer program code that realizes the above-mentioned functions is recorded to a system, and the system reads and executes the computer program code. In this case, the computer program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the computer program code constitutes the present invention. It also includes cases where the operating system (OS) running on the computer performs part or all of the actual processing based on the instructions in the code of the program, and the processing realizes the above-mentioned functions. ..

さらに、以下の形態で実現しても構わない。すなわち、記憶媒体から読み出されたコンピュータプログラムコードを、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込む。そして、そのコンピュータプログラムのコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行って、前述した機能が実現される場合も含まれる。 Further, it may be realized in the following form. That is, the computer program code read from the storage medium is written to the memory provided in the function expansion card inserted in the computer or the function expansion unit connected to the computer. Then, based on the instruction of the code of the computer program, the function expansion card, the CPU provided in the function expansion unit, or the like performs a part or all of the actual processing to realize the above-mentioned function.

本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応するコンピュータプログラムのコードが格納されることになる。 When the present invention is applied to the storage medium, the storage medium stores the code of the computer program corresponding to the flowchart described above.

Claims (1)

複数のレイヤを用いて画像を階層符号化する符号化装置であって、
符号化対象の画像が属する第1レイヤにおける、符号化対象のブロックが属する画像より前に符号化済みである画像に含まれ、当該符号化対象のブロックに対応する位置にあるブロックの動きベクトルである第1ベクトルと、
前記符号化対象の画像が属する第1レイヤとは異なる第2レイヤにおける画像に含まれ、符号化対象のブロックに対応する位置にあるブロックの動きベクトルである第2ベクトルと、
前記符号化対象の画像が属する第1レイヤにおける画像に含まれ、復号対象のブロックの周囲のブロックの動きベクトルである第3ベクトルと、を取得する取得手段と、
前記第1ベクトル、前記第2ベクトル、及び前記第3ベクトルから、前記取得手段によって取得すべき候補となる動きベクトル群を決定し、当該決定に基づいて取得された候補となる動きベクトル群のうち、動きベクトルを符号化対象のブロックの動きベクトルの予測に用いる予測動きベクトルとして決定する決定手段と、
前記決定手段によって決定された動きベクトルの識別情報を符号化する符号化手段と、
前記決定手段は、前記第2ベクトルが前記候補となる動きベクトル群に存在する場合に、前記第1ベクトルを前記候補となる動きベクトル群として含めずに、前記第2ベクトルと、前記第3ベクトルとのうちの少なくともいずれか一つを、前記候補となる動きベクトル群として決定し、
前記決定手段は、前記第2のベクトルを前記候補となる動きベクトル群の所定の順番に配置し、それ以外のベクトルの順番をブロックの位置に基づいて決定することを特徴とする符号化装置。
A coding device that hierarchically encodes an image using multiple layers.
In the first layer to which the image to be encoded belongs, the motion vector of the block included in the image that has been encoded before the image to which the block to be encoded belongs and at the position corresponding to the block to be encoded. With a first vector
A second vector, which is a motion vector of a block included in an image in a second layer different from the first layer to which the image to be encoded belongs and at a position corresponding to the block to be encoded,
An acquisition means for acquiring a third vector, which is included in the image in the first layer to which the image to be encoded belongs and is a motion vector of a block around the block to be decoded.
From the first vector, the second vector, and the third vector, a candidate motion vector group to be acquired by the acquisition means is determined, and among the candidate motion vector groups acquired based on the determination. , A determinant that determines the motion vector as the predicted motion vector used to predict the motion vector of the block to be encoded,
A coding means that encodes the identification information of the motion vector determined by the determination means, and
When the second vector exists in the candidate motion vector group, the determining means does not include the first vector as the candidate motion vector group, but instead includes the second vector and the third vector. At least one of the above is determined as the candidate motion vector group, and the motion vector group is determined.
The determining means is a coding device, characterized in that the second vector is arranged in a predetermined order of the candidate motion vector group, and the order of other vectors is determined based on the position of a block.
JP2020040364A 2020-03-09 2020-03-09 Encoding device, decoding method Active JP6882564B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020040364A JP6882564B2 (en) 2020-03-09 2020-03-09 Encoding device, decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020040364A JP6882564B2 (en) 2020-03-09 2020-03-09 Encoding device, decoding method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018150570A Division JP6704962B2 (en) 2018-08-09 2018-08-09 Decoding device and decoding method

Publications (2)

Publication Number Publication Date
JP2020102869A JP2020102869A (en) 2020-07-02
JP6882564B2 true JP6882564B2 (en) 2021-06-02

Family

ID=71140047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020040364A Active JP6882564B2 (en) 2020-03-09 2020-03-09 Encoding device, decoding method

Country Status (1)

Country Link
JP (1) JP6882564B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060153300A1 (en) * 2005-01-12 2006-07-13 Nokia Corporation Method and system for motion vector prediction in scalable video coding
EP2266318B1 (en) * 2008-03-19 2020-04-22 Nokia Technologies Oy Combined motion vector and reference index prediction for video coding
KR20140005296A (en) * 2011-06-10 2014-01-14 미디어텍 인크. Method and apparatus of scalable video coding
US20130003847A1 (en) * 2011-06-30 2013-01-03 Danny Hong Motion Prediction in Scalable Video Coding
JP5830993B2 (en) * 2011-07-14 2015-12-09 ソニー株式会社 Image processing apparatus and image processing method

Also Published As

Publication number Publication date
JP2020102869A (en) 2020-07-02

Similar Documents

Publication Publication Date Title
JP5950541B2 (en) Motion vector encoding device, motion vector encoding method and program, motion vector decoding device, motion vector decoding method and program
KR101906686B1 (en) Image encoding apparatus, image encoding method, image decoding apparatus, image decoding method, and computer-readable storage medium
JP2013219727A (en) Image coding apparatus, image coding method and program, image decoding apparatus, image decoding method and program
JP2013038758A (en) Image encoder, image encoding method, program, image decoder, image decoding method and program
JP2013123201A (en) Image encoder, image encoding method, program, image decoder, image decoding method and program
JP2013146038A (en) Image quantization apparatus, image quantization method, and program, and image inverse quantization apparatus, image inverse quantization method, and program
JP6184558B2 (en) Encoding device, encoding method and program, decoding device, decoding method and program
JP6882564B2 (en) Encoding device, decoding method
JP6704962B2 (en) Decoding device and decoding method
JP6387159B2 (en) Decoding device, decoding method and program
JP6656335B2 (en) Image encoding device, image encoding method, image decoding device, image decoding method, and program
JP6679778B2 (en) Image coding device, image coding method and program, image decoding device, image decoding method and program
JP2013110517A (en) Motion vector encoding device, motion vector encoding method and program, motion vector decoding device, motion vector decoding method and program
JP6419297B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
CN107071481A (en) Video coding and decoding method and device
JP4577292B2 (en) Motion information conversion apparatus and motion information conversion program for moving picture encoding
JP2020092436A (en) IMAGE ENCODING DEVICE, IMAGE ENCODING METHOD, IMAGE DECODING DEVICE, IMAGE DECODING METHOD, AND PROGRAM
JP2014036281A (en) Low delay image coding apparatus and predictive image control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200331

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210326

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210406

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210506

R151 Written notification of patent or utility model registration

Ref document number: 6882564

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151