JP6656335B2 - Image encoding device, image encoding method, image decoding device, image decoding method, and program - Google Patents

Image encoding device, image encoding method, image decoding device, image decoding method, and program Download PDF

Info

Publication number
JP6656335B2
JP6656335B2 JP2018192307A JP2018192307A JP6656335B2 JP 6656335 B2 JP6656335 B2 JP 6656335B2 JP 2018192307 A JP2018192307 A JP 2018192307A JP 2018192307 A JP2018192307 A JP 2018192307A JP 6656335 B2 JP6656335 B2 JP 6656335B2
Authority
JP
Japan
Prior art keywords
image
tile
decoding
layer
encoding
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
JP2018192307A
Other languages
Japanese (ja)
Other versions
JP2019024246A (en
JP2019024246A5 (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 JP2018192307A priority Critical patent/JP6656335B2/en
Publication of JP2019024246A publication Critical patent/JP2019024246A/en
Publication of JP2019024246A5 publication Critical patent/JP2019024246A5/ja
Application granted granted Critical
Publication of JP6656335B2 publication Critical patent/JP6656335B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は空間解像度や画質が異なるレイヤの符号化及び復号に関する。特に動画像において、画像を複数の領域に分割し、分割した領域ごとに符号化及び復号を行う画像符号化及び復号技術に関する。   The present invention relates to encoding and decoding of layers having different spatial resolutions and image qualities. In particular, the present invention relates to an image encoding and decoding technique for dividing an image into a plurality of regions in a moving image and performing encoding and decoding for each of the divided regions.

動画像の圧縮記録の符号化方式として、H.264/MPEG−4 AVC(以下H.264)が知らされている。   As an encoding method of compression recording of a moving image, H.264 is used. H.264 / MPEG-4 AVC (hereinafter H.264) is known.

近年、H.264の後継として、さらに高効率な符号化方式の国際標準化を行う活動が開始され、JCT−VC(Joint Collaborative Team on Video Coding)がISO/IECとITU−Tの間で設立された。このJCT−VCでは、High Efficiency Video Coding符号化方式(以下、HEVC)の標準化が進められている(非特許文献1)。   In recent years, H.S. As a successor to H.264, activities for international standardization of a more efficient coding method have started, and JCT-VC (Joint Collaborative Team on Video Coding) has been established between ISO / IEC and ITU-T. In this JCT-VC, the standardization of High Efficiency Video Coding (hereinafter referred to as HEVC) is being advanced (Non-Patent Document 1).

HEVCでは、画像を矩形領域(タイル)に分割し、各領域を独立に符号化及び復号する、タイル分割方式という技術が採用されている。さらに、タイル分割方式において、1つ以上のタイルからなるMotion Constrained Tile Sets(以下、MCTS)を用いて、当該MCTSを、他のタイルに依存せずに独立に符号化及び復号することが提案された(非特許文献2)。そして、非特許文献2に記載の提案では、シーケンス単位でMCTSを設定可能であることが定義されている。即ち、同一のシーケンスであれば、各フレームにおけるMCTSの位置は相対的に等しい。そして、上記の提案では、処理対象のフレーム内のMCTSを符号化及び復号する場合に、他のフレーム内にある、当該MCTSと相対的に等しい位置の画素群をフレーム間予測の対象とする。即ち、当該画素群以外の画素を動きベクトル探索において参照する参照画素としない。これにより、MCTSにおける符号化及び復号の独立性を確保することができる。尚、画像におけるMCTSに含まれるタイルの位置は、SEI(Supplemental Enhancement Information)メッセージに含めて符号化される。   In the HEVC, a technique called a tile division method is adopted in which an image is divided into rectangular regions (tiles), and each region is independently encoded and decoded. Furthermore, in the tile division method, it is proposed to use a Motion Constrained Tile Sets (hereinafter, MCTS) composed of one or more tiles to independently encode and decode the MCTS without depending on other tiles. (Non-Patent Document 2). The proposal described in Non-Patent Document 2 defines that the MCTS can be set in sequence units. That is, if the sequence is the same, the position of the MCTS in each frame is relatively equal. Then, in the above proposal, when encoding and decoding the MCTS in the frame to be processed, a group of pixels in another frame that is relatively equal to the MCTS is set as a target of inter-frame prediction. That is, pixels other than the pixel group are not set as reference pixels to be referred to in the motion vector search. As a result, independence of encoding and decoding in the MCTS can be ensured. Note that the position of the tile included in the MCTS in the image is encoded by being included in an SEI (Supplemental Enhancement Information) message.

一方で、HEVCの標準化においては、階層符号化への拡張も検討されている。階層符号化では、基本レイヤと拡張レイヤにおいて符号化対象のタイルをそれぞれ符号化する。そして、各レイヤで符号化されたタイルを多重化してビットストリームを生成する。上記のような階層符号化では、基本レイヤのタイルの境界位置と拡張レイヤのタイルの境界位置とは独立に設定することが可能である。そして、拡張レイヤの符号化対象のタイルを符号化する場合に、基本レイヤの対応するタイルを参照する必要があるため、基本レイヤにおける当該タイルの位置を特定する必要がある。そこで、拡張レイヤのVUI(Video Usability Information)パラメータ(vui_parameters)としてtile_boundaries_aligned_flag符号を用いること提案されている(非特許文献3)。当該符号は、各レイヤ間でタイルの相対的な位置が一致しているか否かを表す、一致情報を符号化したものである。当該符号が1の場合、拡張レイヤのタイルの境界の位置が基本レイヤの対応するタイルの境界の位置と一致することを保証する。これにより、拡張レイヤのタイルの符号化及び復号において呼び出される基本レイヤのタイルの位置が特定できるため、拡張レイヤのタイルを独立に符号化及び復号することができ、高速な符号化及び復号を可能にする。尚、基本レイヤが最も上位のレイヤとなり、続く拡張レイヤが順に下位のレイヤとなる。   On the other hand, in standardization of HEVC, extension to hierarchical coding is also being studied. In hierarchical coding, tiles to be coded are respectively coded in a base layer and an enhancement layer. Then, the tiles encoded in each layer are multiplexed to generate a bit stream. In the above-described hierarchical coding, the boundary positions of the tiles of the base layer and the boundary positions of the tiles of the enhancement layer can be set independently. Then, when encoding a tile to be encoded in the enhancement layer, it is necessary to refer to the corresponding tile in the base layer, and thus it is necessary to specify the position of the tile in the base layer. Therefore, it has been proposed to use a tile_boundaries_aligned_flag code as a VUI (Video Usability Information) parameter (vui_parameters) of the enhancement layer (Non-Patent Document 3). The code is obtained by encoding match information indicating whether or not the relative positions of the tiles match in each layer. When the code is 1, it is guaranteed that the position of the boundary of the tile of the enhancement layer matches the position of the boundary of the corresponding tile of the base layer. Thereby, since the position of the tile of the base layer called in encoding and decoding of the tile of the enhancement layer can be specified, the tile of the enhancement layer can be encoded and decoded independently, and high-speed encoding and decoding can be performed. To Note that the base layer is the highest layer, and the subsequent enhancement layers are sequentially lower layers.

ITU−T H.265(04/2013) High efficiency video codingITU-TH. 265 (04/2013) High efficiency video coding JCT−VC 寄書 JCTVC−M0235 インターネット<http://phenix.int−evry.fr/jct/doc_end_user/documents/13_Incheon/wg11/>JCT-VC Contributions JCTVC-M0235 Internet <http: // phenix. int-every. fr / jct / doc_end_user / documents / 13_Incheon / wg11 / >> JCT−VC 寄書 JCTVC−M0202 インターネット<http://phenix.int−evry.fr/jct/doc_end_user/documents/13_Incheon/wg11/>JCT-VC Contributions JCTVC-M0202 Internet <http: // phenix. int-every. fr / jct / doc_end_user / documents / 13_Incheon / wg11 / >>

しかしながら、上記の非特許文献2に記載のMCTSでは、階層符号化に関して考慮されていない。即ち、タイルの境界及びMCTSの位置をレイヤ毎に設定できる場合に、各レイヤにおけるタイルの相対的な位置は不一致であることが考えられる。例えば、拡張レイヤの所定のタイルがMCTSに含まれる場合であって、基本レイヤの当該所定のタイルに対応する位置のタイルがMCTSに含まれない場合に、基本レイヤでは当該所定のタイルに対応する位置以外の、周囲のタイルも復号する必要がある。   However, the MCTS described in Non-Patent Document 2 does not consider hierarchical coding. That is, when the boundaries of the tiles and the position of the MCTS can be set for each layer, the relative positions of the tiles in each layer may not match. For example, when a predetermined tile of the enhancement layer is included in the MCTS and a tile at a position corresponding to the predetermined tile of the base layer is not included in the MCTS, the base layer corresponds to the predetermined tile. The surrounding tiles other than the position also need to be decoded.

ここで、図13を用いて具体的に説明する。図13はタイル分割の様子を表している。1301〜1310は、それぞれフレームを表す。各フレーム1301〜1310は、タイル番号0〜11の12個のタイルでそれぞれ構成される。以下、タイル番号1のタイルをタイル1と称す。番号が変化しても同様である。また、説明のため、基本レイヤでは各フレームのタイル分割は水平方向に2分割し、垂直方向に分割はしないものとする。さらに、拡張レイヤでは各フレームのタイル分割は、フレームを水平方向に4分割、垂直方向に3分割するものとする。また、図中の細枠はタイルの境界を表す。   Here, a specific description will be given with reference to FIG. FIG. 13 shows a state of tile division. 1301 to 1310 each represent a frame. Each of the frames 1301 to 1310 is configured by twelve tiles having tile numbers 0 to 11, respectively. Hereinafter, the tile of tile number 1 is referred to as tile 1. The same applies even if the number changes. Further, for the sake of explanation, it is assumed that the tile division of each frame is divided into two in the horizontal direction and not divided in the vertical direction in the base layer. Further, in the enhancement layer, the tile division of each frame is such that the frame is divided into four in the horizontal direction and three in the vertical direction. The thin frame in the figure represents the boundary of the tile.

各フレーム1301、1303、1305、1307は、時刻tにおける各レイヤのフレームを表す。フレーム1301は時刻tの基本レイヤのフレームを表す。フレーム1305は時刻tの拡張第1階層(第1拡張レイヤ)のフレームを表す。フレーム1303はフレーム1301を局所復号した再構成画像を第1拡張レイヤの解像度に拡大したフレームを表す。フレーム1309は時刻tの拡張第2階層(第2拡張レイヤ)のフレームを表す。フレーム1307はフレーム1305の復号画像を第2拡張レイヤの解像度に拡大したフレームを表す。   Each of frames 1301, 1303, 1305, and 1307 represents a frame of each layer at time t. Frame 1301 represents the frame of the base layer at time t. A frame 1305 represents a frame of the first extended layer (first extended layer) at time t. A frame 1303 represents a frame obtained by enlarging the reconstructed image obtained by locally decoding the frame 1301 to the resolution of the first enhancement layer. A frame 1309 represents a frame of the second extended layer (second extended layer) at time t. A frame 1307 represents a frame obtained by enlarging the decoded image of the frame 1305 to the resolution of the second enhancement layer.

さらに、各フレーム1302、1304、1306、1308は、時刻t+δにおける各レイヤのフレームを表す。フレーム1302は時刻t+δの基本レイヤのフレームを表す。フレーム1306は時刻t+δの第1拡張レイヤのフレームを表す。フレーム1304はフレーム1302の復号画像を第1拡張レイヤの解像度に拡大したフレームを表す。フレーム1310は時刻t+δの第2拡張レイヤのフレームを表す。フレーム1308はフレーム1306の復号画像を第2拡張レイヤの解像度に拡大したフレームを表す。   Furthermore, frames 1302, 1304, 1306, and 1308 represent frames of each layer at time t + δ. Frame 1302 represents the frame of the base layer at time t + δ. Frame 1306 represents the frame of the first enhancement layer at time t + δ. A frame 1304 represents a frame obtained by enlarging the decoded image of the frame 1302 to the resolution of the first enhancement layer. Frame 1310 represents the frame of the second enhancement layer at time t + δ. A frame 1308 represents a frame obtained by enlarging the decoded image of the frame 1306 to the resolution of the second enhancement layer.

以下、拡張レイヤの各フレーム(フレーム1305、1306、1309、1310)のタイル5をMCTSのタイルとして説明する。図13において、太枠はMCTSに属するタイル乃至はその対応位置を表す。   Hereinafter, the tile 5 of each frame (frames 1305, 1306, 1309, 1310) of the enhancement layer will be described as an MCTS tile. In FIG. 13, the thick frames indicate tiles belonging to MCTS or their corresponding positions.

図13において、第2拡張レイヤのフレーム1310のMCTS(タイル5)を復号するためには、第1拡張レイヤのフレーム1306のタイル5が復号されている必要がある。さらに、第1拡張レイヤのフレーム1306のタイル5を復号するためには、基本レイヤのフレーム1302のタイル0が復号されている必要がある。さらに、基本レイヤのフレーム1302のタイル0を復号するためには、フレーム1301を参照してフレーム間予測を行う必要があり、フレーム1301の全てのタイルを復号する必要がある。   In FIG. 13, to decode the MCTS (tile 5) of the frame 1310 of the second enhancement layer, the tile 5 of the frame 1306 of the first enhancement layer needs to be decoded. Furthermore, in order to decode tile 5 of frame 1306 of the first enhancement layer, tile 0 of frame 1302 of the base layer needs to be decoded. Furthermore, in order to decode the tile 0 of the frame 1302 of the base layer, it is necessary to perform inter-frame prediction with reference to the frame 1301, and it is necessary to decode all the tiles of the frame 1301.

即ち、従来技術において、時刻t+δにおける第2拡張レイヤのMCTSを復号する場合に、時刻tにおける基本レイヤのフレーム1302のタイル5の位置を示す領域(フレーム1302の点線部分)以外の領域を復号する必要がある。このため、階層符号化において、MCTS等を用いて所定のタイルを符号化及び復号する場合に、当該MCTSの位置に対応するタイルだけを、独立して符号化及び復号するということができないという課題がある。   That is, in the related art, when decoding the MCTS of the second enhancement layer at time t + δ, an area other than the area indicating the position of the tile 5 of the frame 1302 of the base layer at time t (the dotted line part of the frame 1302) is decoded. There is a need. Therefore, when encoding and decoding a predetermined tile using MCTS or the like in hierarchical encoding, it is not possible to independently encode and decode only the tile corresponding to the position of the MCTS. There is.

本発明は上述した課題を解決するためになされたものであり、階層符号化において、所定のタイルを他のタイルに依存せずに独立に符号化及び復号することを可能とすることを目的としている。   The present invention has been made in order to solve the above-described problem, and has an object to enable a predetermined tile to be independently coded and decoded without depending on other tiles in hierarchical coding. I have.

本発明の画像符号化装置は、例えば、下記の構成を有する。すなわち、動画像を構成する画像を複数の階層で階層符号化する画像符号化装置であって、第1のレイヤに対応する第1の画像とは階層が異なる、第2のレイヤに対応する第2の画像を生成する生成手段と、前記第1の画像における、1又は複数のタイルから構成される第1のタイルセットと、前記第2の画像における、1又は複数のタイルから構成される第2のタイルセットとを符号化する符号化手段と、情報符号化手段と、フラグ設定手段とを有し、前記第2のタイルセットは、前記第2の画像における、前記第1のタイルセットに対応する位置にあり、前記符号化手段は、前記第1の画像においては前記第1のタイルセット以外を参照せずに前記第1のタイルセットを符号化するとともに、前記第2の画像においては前記第2のタイルセット以外を参照せずに前記第2のタイルセットを符号化し、前記符号化手段は、前記第2の画像の少なくとも一部の領域を参照して前記第1のタイルセットを符号化する場合、前記第2の画像においては前記第2のタイルセットのみを参照するよう制限して前記第1のタイルセットを符号化し、前記情報符号化手段は、前記第1のタイルセット及び前記第2タイルセットの復号処理に関する制限を示すSEIメッセージを符号化し、前記フラグ設定手段は、前記情報符号化手段によって、前記第1のタイルセット及び前記第2タイルセットの復号処理に関する制限を示す前記SEIメッセージが符号化される場合、少なくとも、前記第1の画像における前記第1のタイルセットの位置と、前記第2の画像における前記第2のタイルセットの位置とが対応することを示すtile_boundaries_aligned_flagを1に設定する。 The image encoding device of the present invention has, for example, the following configuration. That is, an image encoding apparatus that hierarchically encodes an image forming a moving image in a plurality of layers, wherein the layer is different from the first image corresponding to the first layer and corresponds to a second layer corresponding to a second layer. Generating means for generating two images, a first tile set including one or a plurality of tiles in the first image, and a first tile set including one or a plurality of tiles in the second image. Encoding means for encoding the second tile set, information encoding means, and flag setting means , wherein the second tile set corresponds to the first tile set in the second image. At a corresponding position, the encoding unit encodes the first tile set without referring to anything other than the first tile set in the first image, and encodes the first tile set in the second image. The second tile Encoding the first tile set by referring to at least a partial area of the second image, wherein the encoding unit encodes the second tile set without referring to other than the first tile set. the in the second image by encoding the first tile set limits to see only the second set of tiles, the information encoding means, said first set of tiles and the second The SEI message indicating the restriction on the decoding process of the tile set is encoded, and the flag setting unit uses the information encoding unit to execute the SEI message indicating the restriction on the decoding process of the first tile set and the second tile set. If the message is encoded, at least the position of the first tileset in the first image and the second tileset in the second image Position and sets the tile_boundaries_aligned_flag indicating that corresponding to 1.

本発明の画像復号装置は、例えば、下記の構成を有する。すなわち、動画像を構成する画像を複数の階層で階層符号化して生成された符号化データを復号する画像復号装置であって、1又は複数のタイルから構成されるタイルセットの復号処理に関する制限を示すSEIメッセージを復号する情報復号手段と、前記SEIメッセージに従って、第1のレイヤに対応する第1の画像における第1のタイルセットと、前記第1のレイヤとは異なる第2のレイヤに対応する第2の画像における第2のタイルセットとを復号する復号手段とを有し、前記SEIメッセージが前記情報復号手段によって復号された場合、前記第2のタイルセットは、前記第2の画像における、前記第1のタイルセットに対応する位置にあり、前記復号手段は、前記第1の画像においては前記第1のタイルセット以外を参照せずに前記第1のタイルセットを復号するとともに、前記第2の画像においては前記第2のタイルセット以外を参照せずに前記第2のタイルセットを復号し、前記復号手段は、前記SEIメッセージが前記情報復号手段によって復号された場合であって、前記第2の画像の少なくとも一部の領域を参照して前記第1のタイルセットを復号する場合、前記第2の画像においては前記第2のタイルセットのみを参照するよう制限して前記第1のタイルセットを復号し、前記情報復号手段において前記SEIメッセージが復号される場合において、少なくとも、前記第1の画像における前記第1のタイルセットの位置と、前記第2の画像における前記第2のタイルセットの位置とが対応することを示すtile_boundaries_aligned_flagは1となる。 The image decoding device of the present invention has, for example, the following configuration. That is, an image decoding apparatus that decodes encoded data generated by hierarchically encoding images forming a moving image in a plurality of layers, and restricts a decoding process of a tile set including one or a plurality of tiles. information decoding means for decoding the SEI message indicating, according to the SEI message, a first set of tiles in the first image that corresponds to the first layer, corresponding to the different second layer between the first layer and a decoding means for decoding the second set of tiles in the second image you, if the SEI message is decoded by the information decoding device, the second tile set, the second image At a position corresponding to the first tile set, and the decoding unit does not refer to anything other than the first tile set in the first image. Decoding the first tile set and decoding the second tile set without referring to anything other than the second tile set in the second image, wherein the decoding means determines that the SEI message is When the first tile set is decoded by referring to at least a part of the area of the second image, the second tile is used in the second image. When the first tile set is decoded with reference to only the set, and the information decoding means decodes the SEI message, at least the position of the first tile set in the first image And tile_boundaries_aligned_ indicating that the position of the second tile set in the second image corresponds to lag is 1.

本発明により、階層符号化において、独立に符号化及び復号が可能なタイルを設定することを可能にする。   According to the present invention, it is possible to set tiles that can be independently coded and decoded in hierarchical coding.

実施形態1における画像符号化装置100の構成を示すブロック図1 is a block diagram illustrating a configuration of an image encoding device 100 according to a first embodiment. タイルの構成の一例を示す図Diagram showing an example of the configuration of a tile 実施形態1の画像符号化装置100における画像符号化処理を表すフローチャート4 is a flowchart illustrating image encoding processing in the image encoding device 100 according to the first embodiment. 実施形態1における画像符号化装置400の構成を示すブロック図FIG. 2 is a block diagram illustrating a configuration of an image encoding device 400 according to the first embodiment. 実施形態1の画像符号化装置400における画像符号化処理を表すフローチャート5 is a flowchart illustrating an image encoding process in the image encoding device 400 according to the first embodiment. 実施形態2における画像表示装置600の構成を示すブロック図FIG. 4 is a block diagram illustrating a configuration of an image display device 600 according to a second embodiment. 実施形態2における画像復号部605の構成を示すブロック図FIG. 14 is a block diagram illustrating a configuration of an image decoding unit 605 according to the second embodiment. 実施形態2の画像復号部605における画像復号処理を表すフローチャート11 is a flowchart illustrating image decoding processing in the image decoding unit 605 according to the second embodiment. 実施形態2における画像復号部605装置の別な構成を示すブロック図FIG. 14 is a block diagram illustrating another configuration of the image decoding unit 605 according to the second embodiment. 実施形態2の画像復号部605の別な形態における画像復号処理を表すフローチャート17 is a flowchart illustrating image decoding processing in another mode of the image decoding unit 605 according to the second embodiment. 本発明の画像符号化装置、又は画像復号装置に適用可能なコンピュータのハードウェアの構成例を示すブロック図FIG. 1 is a block diagram illustrating a configuration example of hardware of a computer applicable to an image encoding device or an image decoding device of the present invention. ビットストリームのvui_parametersに関するシンタックスを表す図FIG. 6 is a diagram illustrating syntax relating to vui_parameters of a bitstream. タイルの構成の従来例の一例を示す図Diagram showing an example of a conventional example of a tile configuration

以下、添付の図面を参照して、本願発明をその好適な実施形態に基づいて詳細に説明する。尚、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。
以下、MCTSに含まれる各タイルのように、独立に符号化及び復号できるタイルを独立タイルと呼び、MCTSのような独立タイルの集まりを独立タイルセットと呼ぶことにする。
Hereinafter, the present invention will be described in detail based on preferred embodiments with reference to the accompanying drawings. Note that the configurations shown in the following embodiments are merely examples, and the present invention is not limited to the illustrated configurations.
Hereinafter, a tile that can be independently encoded and decoded, such as each tile included in the MCTS, is referred to as an independent tile, and a group of independent tiles such as the MCTS is referred to as an independent tile set.

<実施形態1>
以下、図1を用いて本実施形態に係る画像符号化装置を構成する各処理部の概要を説明する。図1は、本実施形態の画像符号化装置100を示すブロック図である。
<First embodiment>
Hereinafter, an outline of each processing unit included in the image encoding device according to the present embodiment will be described with reference to FIG. FIG. 1 is a block diagram illustrating an image encoding device 100 according to the present embodiment.

図1における101は、画像(入力画像)を入力する端子(入力手段)である。入力画像は1フレームずつ入力されるものとする。102は1フレーム内の垂直方向及び水平方向のタイル分割の数、及び各タイルの位置を決定するタイル設定部である。さらに、タイル設定部102は分割されたタイルのうちいずれかを独立タイルとして符号化するか否かを決定する。以下、タイル設定部102によって設定される、水平方向タイルの分割数、垂直方向タイルの分割数、及び分割の位置を表す情報を、タイル分割情報と称す。また、当該タイル分割情報に関しては、非特許文献1において、ピクチャのヘッダデータであるPicture Parameter Set(PPS)の記載部分に説明されているのでここでは説明を省略する。   Reference numeral 101 in FIG. 1 denotes a terminal (input means) for inputting an image (input image). It is assumed that the input image is input one frame at a time. A tile setting unit 102 determines the number of tile divisions in one frame in the vertical direction and the horizontal direction, and determines the position of each tile. Further, the tile setting unit 102 determines whether any of the divided tiles is to be encoded as an independent tile. Hereinafter, information indicating the number of divisions of the horizontal direction tile, the number of divisions of the vertical direction tile, and the position of division set by the tile setting unit 102 is referred to as tile division information. The tile division information is described in Non-Patent Literature 1 in the description part of Picture Parameter Set (PPS) which is header data of a picture, and thus the description thereof is omitted here.

ここで、本実施形態におけるタイル分割の例を、図2を用いて説明する。本実施形態の図2において、1フレームを4K2K(水平方向4096画素×垂直方向2160画素)とする。以下、本実施形態では、水平方向4096画素×垂直方向2160画素を、4096×2160画素と表記する。画素数が変化しても同様である。さらに、図2における201〜206はそれぞれフレームを表す。各フレーム201〜206は、水平方向に4分割、垂直方向に3分割することにより、タイル番号0〜11の12個のタイルで構成される。即ち、1タイルのサイズは1024×720画素となる。但し、分割数はこれに限定されない。さらに、図2に示すフレーム201〜206の中の太枠で示されたタイル5及びタイル6をそれぞれ独立タイルとし、タイル5とタイル6とからなる領域を独立タイルセットとする。また、図2に示すフレーム201〜206中の細枠は、各タイルの境界を表す。また、図2に示す拡大画像における太枠はこれらの独立タイルセットに対応する位置を表す。さらに、図2から明らかなように、各レイヤにおいて、水平方向及び垂直方向のタイルの分割数、及び各タイルの相対的な位置はそれぞれ一致している。   Here, an example of tile division in the present embodiment will be described with reference to FIG. In FIG. 2 of the present embodiment, one frame is 4K2K (4096 pixels in the horizontal direction × 2160 pixels in the vertical direction). Hereinafter, in this embodiment, 4096 pixels in the horizontal direction × 2160 pixels in the vertical direction are referred to as 4096 × 2160 pixels. The same is true even if the number of pixels changes. Further, reference numerals 201 to 206 in FIG. 2 each indicate a frame. Each of the frames 201 to 206 is configured by twelve tiles having tile numbers 0 to 11 by dividing the frame into four in the horizontal direction and into three in the vertical direction. That is, the size of one tile is 1024 × 720 pixels. However, the number of divisions is not limited to this. Further, the tiles 5 and 6 indicated by thick frames in the frames 201 to 206 shown in FIG. 2 are each set as an independent tile, and an area including the tiles 5 and 6 is set as an independent tile set. In addition, the thin frames in the frames 201 to 206 shown in FIG. 2 represent boundaries of each tile. The thick frame in the enlarged image shown in FIG. 2 indicates a position corresponding to these independent tile sets. Further, as is apparent from FIG. 2, the number of divisions of the tiles in the horizontal direction and the vertical direction and the relative positions of the tiles are the same in each layer.

図2におけるフレーム201は、時刻tに入力された基本レイヤのフレームを表す。フレーム202は、時刻t+δに入力された基本レイヤのフレームを表す。時刻t+δにおいてフレーム201は符号化及び局所復号(逆量子化及び逆変換)済みであり、フレーム202を符号化する際には局所復号されたフレーム201を参照フレームとして用いることができる。   A frame 201 in FIG. 2 represents a frame of the base layer input at time t. Frame 202 represents the frame of the base layer input at time t + δ. At time t + δ, the frame 201 has been coded and locally decoded (inverse quantization and inverse transform), and when the frame 202 is coded, the locally decoded frame 201 can be used as a reference frame.

フレーム203は、フレーム201を符号化した後に、局所復号を行うことで再構成画像の生成を行い、さらに当該再構成画像を拡張レイヤと同等のサイズに拡大した拡大画像である。フレーム204は、フレーム202を符号化した後に、局所復号を行うことで再構成画像の生成を行い、さらに当該再構成画像を拡張レイヤと同等のサイズに拡大した拡大画像である。   The frame 203 is an enlarged image obtained by generating a reconstructed image by performing local decoding after encoding the frame 201 and further enlarging the reconstructed image to the same size as the enhancement layer. The frame 204 is an enlarged image obtained by generating a reconstructed image by performing local decoding after encoding the frame 202, and further enlarging the reconstructed image to the same size as the enhancement layer.

フレーム205は、時刻tに入力された拡張レイヤのフレームを表す。フレーム206は、時刻t+δに入力された拡張レイヤのフレームを表す。   Frame 205 represents the frame of the enhancement layer input at time t. Frame 206 represents the frame of the enhancement layer input at time t + δ.

再び、図1の各処理部の説明に戻る。以下、時刻t+δのフレームを符号化対象のフレームとして説明する。   Returning to the description of each processing unit in FIG. 1 again. Hereinafter, the frame at time t + δ will be described as a frame to be encoded.

タイル設定部102は、シーケンス単位で独立タイルを含むか否かの情報を表す独立タイルフラグを生成する。タイル設定部102は、符号化対象のフレームに独立タイルが含まれる場合に独立タイルフラグの値を1とし、符号化対象のフレームに独立タイルが含まれない場合に独立タイルフラグの値を0とする。さらに、タイル設定部102は、符号化対象のフレームに独立タイルが含まれる(独立タイルフラグの値が1)場合、当該独立タイルの位置を表す独立タイル位置情報を生成する。一般的に、独立タイル位置情報は、画像内のタイル番号で表されるが、本発明はこれに限定されない。そして、タイル設定部102は、生成した独立タイルフラグ及び独立タイル位置情報をタイル分割情報として後段へ出力する。本実施形態において、タイル設定部102から出力されたタイル分割情報は、拡張レイヤ分割部104、基本レイヤ分割部105、独立タイル判定部106、及びヘッダ符号化部114に入力される。   The tile setting unit 102 generates an independent tile flag indicating information on whether or not an independent tile is included for each sequence. The tile setting unit 102 sets the value of the independent tile flag to 1 when the encoding target frame includes the independent tile, and sets the value of the independent tile flag to 0 when the encoding target frame does not include the independent tile. I do. Further, when the frame to be encoded includes an independent tile (the value of the independent tile flag is 1), the tile setting unit 102 generates independent tile position information indicating the position of the independent tile. Generally, independent tile position information is represented by a tile number in an image, but the present invention is not limited to this. Then, the tile setting unit 102 outputs the generated independent tile flag and the independent tile position information to the subsequent stage as tile division information. In the present embodiment, the tile division information output from the tile setting unit 102 is input to the enhancement layer division unit 104, the base layer division unit 105, the independent tile determination unit 106, and the header encoding unit 114.

103は縮小部である。縮小部103は、端子101から入力した入力画像を予め決められたフィルタ等を用いて縮小し、解像度を低下させた縮小画像(基本レイヤ画像)を生成する。   103 is a reduction unit. The reduction unit 103 reduces the input image input from the terminal 101 using a predetermined filter or the like, and generates a reduced image (basic layer image) with reduced resolution.

104は拡張レイヤ分割部である。拡張レイヤ分割部104は、端子101から入力した入力画像を拡張レイヤの画像(拡張レイヤ画像)とし、タイル設定部102によって出力されたタイル分割情報に基づいて、当該拡張レイヤ画像を1つ以上のタイルに分割する。ここで、拡張レイヤ分割部104は、図2に示すように、入力されたフレーム206をタイル0〜11の12個のタイルに分割する。さらに、拡張レイヤ分割部104は、分割した各タイルを、タイル番号の順番(0、1、2、・・・、11の順)で後段にそれぞれ出力する。   104 is an enhancement layer division unit. The enhancement layer division unit 104 sets an input image input from the terminal 101 as an image of an enhancement layer (enhancement layer image), and based on the tile division information output by the tile setting unit 102, converts the enhancement layer image into one or more Divide into tiles. Here, the enhancement layer division unit 104 divides the input frame 206 into twelve tiles 0 to 11 as shown in FIG. Further, the enhancement layer division unit 104 outputs each of the divided tiles to the subsequent stage in the order of the tile numbers (0, 1, 2,..., 11).

114はヘッダ符号化部である。シーケンス単位及びピクチャ単位のヘッダ符号データを生成する。特に、ヘッダ符号化部114は、タイル設定部102で生成された独立タイルフラグと独立タイル位置情報とを入力し、MCTS SEI(SEIメッセージ)を生成し、VUIパラメータ(vui_parameters)を符号化する。   Reference numeral 114 denotes a header encoding unit. It generates header code data in sequence units and picture units. In particular, the header encoding unit 114 receives the independent tile flag and the independent tile position information generated by the tile setting unit 102, generates an MCTS SEI (SEI message), and encodes VUI parameters (vui_parameters).

105は基本レイヤ分割部である。基本レイヤ分割部105は、縮小部103によって生成された基本レイヤ画像を、タイル設定部102によって出力されたタイル分割情報に基づいて、1つ以上のタイルに分割する。即ち、基本レイヤ分割部105は、当該タイル分割情報に基づく各タイルの位置が縮小部103によって生成された基本レイヤ画像において相対的に等しい位置になるように、当該基本レイヤ画像をタイルに分割する。本実施形態において、基本レイヤ分割部105は、図2に示すように入力されたフレーム202をタイル0〜11の12個のタイルに分割する。さらに、基本レイヤ分割部105は、分割した各タイルを、タイル番号の順番で後段にそれぞれ出力する。また、基本レイヤ分割部105は、出力するタイル(符号化対象のタイル)の番号を独立タイル判定部106に通達する。   Reference numeral 105 denotes a basic layer division unit. The base layer division unit 105 divides the base layer image generated by the reduction unit 103 into one or more tiles based on the tile division information output by the tile setting unit 102. That is, the basic layer dividing unit 105 divides the basic layer image into tiles such that the position of each tile based on the tile division information is relatively equal in the basic layer image generated by the reducing unit 103. . In the present embodiment, the base layer division unit 105 divides the input frame 202 into twelve tiles 0 to 11 as shown in FIG. Further, the base layer division unit 105 outputs the divided tiles to the subsequent stages in the order of the tile numbers. Further, the base layer division unit 105 notifies the independent tile determination unit 106 of the number of the tile (tile to be encoded) to be output.

106は、符号化対象のタイル(符号化対象タイル)が独立タイルであるか否かを判定する、独立タイル判定部である。独立タイル判定部106は、タイル設定部102で生成された独立タイルフラグ及び独立タイル位置情報と、基本レイヤ分割部105から入力された符号化対象タイルの番号とに基づいて、符号化対象タイルが独立タイルであるか否かを判定する。ここで、独立タイルフラグが1であり、独立タイル位置情報によって独立タイルの位置がタイル5であり、符号化対象タイルがタイル5である場合に、独立タイル判定部106は、符号化対象タイルが独立タイルであると判定することができる。さらに、独立タイル判定部106は、判定結果を独立タイル符号化フラグとして後段に出力する。ここで、独立タイル判定部106は、符号化対象タイルが独立タイルである場合に当該独立タイル符号化フラグの値を1とし、符号化対象タイルが独立タイルではない場合に当該独立タイル符号化フラグの値を0とする。   Reference numeral 106 denotes an independent tile determination unit that determines whether a tile to be coded (a tile to be coded) is an independent tile. The independent tile determination unit 106 determines the tile to be encoded based on the independent tile flag and the independent tile position information generated by the tile setting unit 102 and the number of the tile to be encoded input from the base layer division unit 105. It is determined whether the tile is an independent tile. Here, when the independent tile flag is 1, the position of the independent tile is tile 5 according to the independent tile position information, and the tile to be encoded is tile 5, the independent tile determination unit 106 determines that the tile to be encoded is It can be determined that the tile is an independent tile. Further, the independent tile determination unit 106 outputs the determination result as an independent tile encoding flag to a subsequent stage. Here, the independent tile determination unit 106 sets the value of the independent tile encoding flag to 1 when the encoding target tile is an independent tile, and sets the value of the independent tile encoding flag when the encoding target tile is not an independent tile. Is set to 0.

107は、基本レイヤ分割部105から入力された、基本レイヤ画像の符号化対象タイルの画像を符号化する基本レイヤ符号化部である。基本レイヤ符号化部107は、独立タイル判定部106から入力された独立タイル符号化フラグに基づいて、符号化対象タイルを符号化し、基本レイヤ符号データを生成する。   Reference numeral 107 denotes a basic layer encoding unit that encodes the image of the encoding target tile of the basic layer image input from the basic layer dividing unit 105. Base layer coding section 107 codes the tile to be coded based on the independent tile coding flag input from independent tile determination section 106 and generates base layer code data.

ここで、独立タイル符号化フラグが、符号化対象タイルが独立タイルであることを示す場合の基本レイヤ符号化部107における符号化処理について説明する。この場合、基本レイヤ符号化部107は局所復号済みの基本レイヤの再構成画像のうち当該符号化対象タイルを含む独立タイルセットの位置と相対的に等しい位置の画素のみを参照して予測及び符号化を行う。さらに、図2を例にとって説明すれば、フレーム202のタイル5を符号化対象とする場合、基本レイヤ符号化部107はフレーム201の独立タイルセット内のタイル5及びタイル6のみを参照して予測及び符号化を行う。一方、独立タイル符号化フラグが、符号化対象タイルが独立タイルでないことを示す場合、基本レイヤ符号化部107は局所復号済みの基本レイヤの再構成画像の全ての画素を参照して予測及び予測誤差等の符号化を行う。図2を用いて説明すれば、フレーム202のタイル2を符号化対象とする場合、基本レイヤ符号化部107はフレーム201の全てのタイル(タイル0〜11)を参照して予測及び符号化を行う。   Here, the encoding process in the base layer encoding unit 107 when the independent tile encoding flag indicates that the encoding target tile is an independent tile will be described. In this case, the base layer coding unit 107 performs prediction and coding with reference to only pixels at positions relatively equal to the position of the independent tile set including the coding target tile in the locally decoded reconstructed image of the base layer. Perform the conversion. Further, referring to FIG. 2 as an example, when tile 5 of frame 202 is to be encoded, base layer encoding section 107 performs prediction with reference to only tile 5 and tile 6 in the independent tile set of frame 201. And encoding. On the other hand, when the independent tile encoding flag indicates that the tile to be encoded is not an independent tile, the base layer coding unit 107 performs prediction and prediction with reference to all the pixels of the locally decoded reconstructed image of the base layer. Encode errors and the like. Referring to FIG. 2, when tile 2 of frame 202 is to be encoded, base layer encoding section 107 performs prediction and encoding with reference to all tiles (tiles 0 to 11) of frame 201. Do.

さらに、基本レイヤ符号化部107は、予測のために用いられた予測モード、予測によって生成された予測誤差、当該予測誤差を符号化して生成した基本レイヤ符号データ等を後段に出力する。   Further, base layer coding section 107 outputs, to the subsequent stage, a prediction mode used for prediction, a prediction error generated by prediction, base layer coded data generated by coding the prediction error, and the like.

108は基本レイヤ符号化部107で生成された係数(予測モード及び予測誤差)等を入力し、当該予測誤差を局所復号して基本レイヤの再構成画像を生成する基本レイヤ再構成部である。さらに、基本レイヤ再構成部108は、生成した再構成画像を保持する。これは、基本レイヤ符号化部107及び拡張レイヤ符号化部112において、当該再構成画像を用いて予測を行うためである。   Reference numeral 108 denotes a base layer reconstructing unit that inputs coefficients (prediction mode and prediction error) generated by the base layer encoding unit 107 and locally decodes the prediction error to generate a reconstructed image of the base layer. Further, the base layer reconstruction unit 108 holds the generated reconstructed image. This is because the base layer coding section 107 and the enhancement layer coding section 112 perform prediction using the reconstructed image.

109は拡大部であり、基本レイヤの再構成画像を拡張レイヤのサイズに拡大する。図2において、拡大部109はフレーム201及びフレーム202の各々の再構成画像に対して拡大を行い、フレーム203及びフレーム204を生成する。   An enlargement unit 109 enlarges the reconstructed image of the base layer to the size of the enhancement layer. In FIG. 2, an enlargement unit 109 enlarges each reconstructed image of a frame 201 and a frame 202 to generate a frame 203 and a frame 204.

112は、拡張レイヤ分割部104から入力されたタイルの画像を符号化する拡張レイヤ符号化部である。拡張レイヤ符号化部112は、独立タイル判定部106から入力された独立タイル符号化フラグに基づいて参照画像を選択し、符号化対象タイルを符号化し、拡張レイヤ符号データを生成する。   Reference numeral 112 denotes an enhancement layer encoding unit that encodes an image of a tile input from the enhancement layer division unit 104. The enhancement layer encoding unit 112 selects a reference image based on the independent tile encoding flag input from the independent tile determination unit 106, encodes the encoding target tile, and generates enhancement layer encoded data.

ここで、独立タイル符号化フラグが1(符号化対象タイルが独立タイルである)の場合、拡張レイヤ符号化部112は基本レイヤの局所復号済みの再構成画像を拡大した拡大画像と、局所復号済みの拡張レイヤの再構成画像とを参照する。そして、拡張レイヤ符号化部112は、当該拡大画像及び当該再構成画像の各画像の独立タイルセットに含まれる画像を参照して予測及び符号化を行う。さらに、図2を例にとって説明すれば、フレーム206のタイル5を符号化対象とする場合、拡張レイヤ符号化部112は、フレーム204のタイル5及びタイル6とフレーム206のタイル5のうち局所復号済みの再構成画像とを参照して予測及び符号化を行う。一方、独立タイル符号化フラグが0(符号化対象タイルが独立タイルでない)の場合、拡張レイヤ符号化部112は、局所復号済みの基本レイヤの拡大画像及び局所復号済みの拡張レイヤの再構成画像を参照して独立タイルに限定せずに予測を行う。そして、拡張レイヤ符号化部112は、予測して生成された予測誤差等を符号化する。   Here, when the independent tile encoding flag is 1 (the encoding target tile is an independent tile), the enhancement layer encoding unit 112 enlarges the locally decoded reconstructed image of the base layer with the enlarged image. And the reconstructed image of the enhancement layer that has already been used. Then, the enhancement layer coding unit 112 performs prediction and coding with reference to the images included in the independent tile set of each of the enlarged image and the reconstructed image. Further, referring to FIG. 2 as an example, when tile 5 of frame 206 is to be encoded, enhancement layer encoding section 112 performs local decoding of tile 5 and tile 6 of frame 204 and tile 5 of frame 206. The prediction and the encoding are performed with reference to the already-constructed reconstructed image. On the other hand, when the independent tile encoding flag is 0 (the encoding target tile is not an independent tile), the enhancement layer encoding unit 112 enlarges the locally decoded base layer enlarged image and the locally decoded enhancement layer reconstructed image. And making predictions without limiting to independent tiles. Then, enhancement layer encoding section 112 encodes a prediction error or the like generated by prediction.

さらに、拡張レイヤ符号化部112は、基本レイヤ符号化部107と同様に、予測のために用いられた予測モード、予測によって生成された予測誤差、当該予測誤差を符号化して生成した拡張レイヤ符号データ等を後段に出力する。   Further, enhancement layer coding section 112 performs, similarly to base layer coding section 107, a prediction mode used for prediction, a prediction error generated by prediction, and an enhancement layer code generated by coding the prediction error. Data and the like are output to the subsequent stage.

113は拡張レイヤ符号化部112によって符号化の途中で生成された係数(予測モード及び予測誤差)等を用いて局所復号を行い、拡張レイヤの再構成画像を生成する拡張レイヤ再構成部である。さらに、拡張レイヤ再構成部113は、拡張レイヤ符号化部112における符号化処理で用いるために、生成した再構成画像を保持する。   Reference numeral 113 denotes an enhancement layer reconstructing unit that performs local decoding using a coefficient (prediction mode and prediction error) generated during the encoding by the enhancement layer encoding unit 112 and generates a reconstructed image of the enhancement layer. . Further, enhancement layer reconstructing section 113 holds the generated reconstructed image for use in the encoding process in enhancement layer encoding section 112.

110は基本レイヤ符号化部107で生成された基本レイヤ符号データ、拡張レイヤ符号化部112で生成された拡張レイヤ符号データ、ヘッダ符号化部114で生成されたヘッダ符号データを統合し、ビットストリームを生成する統合部である。また、111は、統合部110によって生成されたビットストリームを外部に出力する端子である。   Numeral 110 integrates the base layer code data generated by the base layer coding unit 107, the enhancement layer code data generated by the enhancement layer coding unit 112, and the header code data generated by the header coding unit 114, and forms a bit stream. Is an integration unit that generates Reference numeral 111 denotes a terminal that outputs the bit stream generated by the integration unit 110 to the outside.

全体制御部115は、画像符号化装置内の各処理部の制御、及び各処理部間のパラメータ伝達を行う。尚、図1において、全体制御部115と画像符号化装置内の各処理部との間の結線を省略している。そして、全体制御部115は画像符号化装置内の各処理部の制御、及び各処理部間のパラメータの読み書きを、パラメータ信号線またはレジスタバスのいずれかを通じて行うことが可能である。また、本実施形態において、図1の全体制御部115は、画像符号化装置内に設置されているが、本発明はこれに限定されない。即ち、全体制御部115は、当該画像符号化装置外に設置され、当該画像符号化装置内の各処理部の制御、及び各処理部間のパラメータの読み書きを、パラメータ信号線またはレジスタバスのいずれかを通じて行ってもよい。   The overall control unit 115 controls each processing unit in the image encoding device and transmits parameters between the processing units. In FIG. 1, the connection between the overall control unit 115 and each processing unit in the image encoding device is omitted. The overall control unit 115 can control each processing unit in the image encoding device and read and write parameters between the processing units through either the parameter signal line or the register bus. Further, in the present embodiment, the overall control unit 115 in FIG. 1 is installed in the image encoding device, but the present invention is not limited to this. That is, the overall control unit 115 is installed outside the image encoding apparatus, and controls each processing unit in the image encoding apparatus and reads / writes parameters between the processing units by using any one of the parameter signal line and the register bus. You may go through or.

上述した画像符号化装置100における、画像の符号化動作を図3に示したフローチャートを用いて以下に説明する。   The image encoding operation in the image encoding device 100 described above will be described below with reference to the flowchart shown in FIG.

ステップS301にて、画像符号化装置100は、ユーザによって指示された階層符号化の階層数を取得する。本実施形態では、拡張レイヤを1階層とし、全体で2階層(基本レイヤと1つの拡張レイヤ)の階層符号化を行うものとする。   In step S301, the image coding device 100 acquires the number of layers of the layer coding specified by the user. In the present embodiment, it is assumed that the enhancement layer is one layer, and the layer coding of two layers (a base layer and one enhancement layer) is performed as a whole.

ステップS302にて、タイル設定部102は符号化対象のフレーム内のタイル分割の数及び分割の位置を決定し、さらに当該符号化対象のフレーム内のいずれかのタイルを独立タイルとするか否かを決定する。また、本実施形態ではタイル5及びタイル6を独立タイルとし、タイル5とタイル6とを合わせて1つの独立タイルセットを構成する。従って本実施形態では、独立タイル判定部106は独立タイルフラグを1とする。ちなみに、符号化対象のフレーム内に独立タイルが含まれていない場合には、独立タイル判定部106は独立タイルフラグを0とする。さらに、独立タイル判定部106は、決定した独立タイルフラグを拡張レイヤ分割部104、基本レイヤ分割部105、独立タイル判定部106、及びヘッダ符号化部114に入力する。   In step S302, the tile setting unit 102 determines the number of tile divisions and the position of division in the encoding target frame, and further determines whether any tile in the encoding target frame is an independent tile. To determine. In this embodiment, the tiles 5 and 6 are independent tiles, and the tiles 5 and 6 are combined to form one independent tile set. Therefore, in the present embodiment, the independent tile determination unit 106 sets the independent tile flag to 1. Incidentally, when the independent tile is not included in the encoding target frame, the independent tile determination unit 106 sets the independent tile flag to 0. Further, the independent tile determination unit 106 inputs the determined independent tile flag to the enhancement layer division unit 104, the base layer division unit 105, the independent tile determination unit 106, and the header encoding unit 114.

ステップS303にて、ヘッダ符号化部114は独立タイル判定部106から入力される独立タイルフラグを判定する。ヘッダ符号化部114が、独立タイルフラグが1であると判定した場合はステップS304の処理へ進み、独立タイルフラグが0であると判定した場合はステップS305の処理へ進む。   In step S303, header encoding section 114 determines an independent tile flag input from independent tile determination section 106. If the header encoding unit 114 determines that the independent tile flag is 1, the process proceeds to step S304. If the header encoding unit 114 determines that the independent tile flag is 0, the process proceeds to step S305.

ステップS304にて、ヘッダ符号化部114は、各タイルの位置の一致情報を表すvui_parametersのtile_boundaries_aligned_flag符号を1に設定する。尚、当該vui_parametersのtile_boundaries_aligned_flag符号は、各レイヤ間でタイルの相対的な位置が一致しているか否かを表す、一致情報を符号化したものである。   In step S304, the header encoding unit 114 sets the tile_boundaries_aligned_flag code of vui_parameters representing the coincidence information of the position of each tile to 1. Note that the tile_boundaries_aligned_flag code of the vui_parameters is obtained by encoding match information indicating whether or not the relative positions of tiles match between the layers.

ステップS305にて、ヘッダ符号化部114は、シーケンスヘッダの1つであるvideo_parameter_setを符号化する。当該video_parameter_set符号には、階層符号化の階層数を表すvps_max_layers_minus1符号が含まれる。尚、本実施形態において、vps_max_layers_minus1は1となる。続いて、ヘッダ符号化部114は、Sequence parameter set(非特許文献1に7.3.2.2に記載)を符号化する。Sequence parameter set符号にはvui_parametersも含まれる。vui_parametersにはステップS304で設定されたtile_boundaries_aligned_flag符号が含まれる。統合部110は、これらの符号データ(video_parameter_set符号及びSequence parameter set符号)を入力し、ビットストリームを生成する。さらに、統合部110は、生成した当該ビットストリームを、端子111を介して画像符号化装置100の外へ出力する。   In step S305, header encoding section 114 encodes video_parameter_set, which is one of the sequence headers. The video_parameter_set code includes a vps_max_layers_minus1 code indicating the number of layers of the hierarchical coding. In this embodiment, vps_max_layers_minus1 is 1. Subsequently, the header encoding unit 114 encodes the Sequence parameter set (described in 7.3.2.2 in Non-Patent Document 1). The Sequence parameter set code also includes vui_parameters. vui_parameters includes the tile_boundaries_aligned_flag code set in step S304. The integration unit 110 receives the code data (video_parameter_set code and Sequence parameter set code) and generates a bit stream. Further, the integrating unit 110 outputs the generated bit stream to the outside of the image encoding device 100 via the terminal 111.

ステップS306にて、ヘッダ符号化部114はピクチャヘッダであるPicture parameter set(非特許文献1に7.4.3.3に記載)を符号化する。統合部110は、ピクチャヘッダの符号データ(Picture parameter set符号)を入力し、ビットストリームを生成する。さらに、統合部110は、生成した当該ビットストリームを、端子111を介して画像符号化装置100の外へ出力する。   In step S306, the header encoding unit 114 encodes a picture parameter set (described in 7.4.3.3 in Non-Patent Document 1), which is a picture header. The integrating unit 110 receives the code data (Picture parameter set code) of the picture header and generates a bit stream. Further, the integrating unit 110 outputs the generated bit stream to the outside of the image encoding device 100 via the terminal 111.

ステップS307にて、ヘッダ符号化部114は独立タイル判定部106から入力される独立タイルフラグを判定する。ヘッダ符号化部114が、独立タイルフラグが1であると判定した場合はステップS308の処理へ進み、独立タイルフラグが0であると判定した場合はステップS309の処理へ進む。   In step S307, header encoding section 114 determines an independent tile flag input from independent tile determination section 106. If the header encoding unit 114 determines that the independent tile flag is 1, the process proceeds to step S308. If the header encoding unit 114 determines that the independent tile flag is 0, the process proceeds to step S309.

ステップS308にて、符号化対象のシーケンスは独立タイルを含んでいるので、ヘッダ符号化部114はMCTS SEIを符号化する。MCTS SEI符号については非特許文献2の第2章に記載されている通りである。本実施形態において、1フレームに含まれる独立タイルセットは1つであるため、num_sets_in_message_minus1符号は0となる。また、mcts_id符号は0とする。さらに、num_tile_rects_in_set_minus1符号は1となる。尚、num_tile_rects_in_set_minus1符号はMCTSに属する独立タイルの数を表す。本実施形態では独立タイルセットの中にタイル5とタイル6の2つのタイルが独立タイルとして含まれるので、num_tile_rects_in_set_minus1符号の値は1となる。また、top_left_tile_index符号及びbottom_right_tile_index符号は独立タイルの位置を表すもので、本実施形態では前者の値は5であり、後者の値は6となる。ヘッダ符号化部114は、上記のように各ヘッダ情報を符号化して、MCTS SEIの符号を生成する。さらに、統合部110は、ヘッダ符号化部114で生成されたMCTS SEI符号を入力してビットストリームを生成し、当該ビットストリームを、端子111を介して画像符号化装置100の外へ出力する。   In step S308, since the encoding target sequence includes the independent tile, the header encoding unit 114 encodes the MCTS SEI. The MCTS SEI code is as described in Chapter 2 of Non-Patent Document 2. In the present embodiment, since one frame includes one independent tile set, the num_sets_in_message_minus1 code is 0. The mcts_id code is 0. Further, the code of num_tile_rects_in_set_minus1 is 1. The num_tile_rects_in_set_minus1 code represents the number of independent tiles belonging to the MCTS. In the present embodiment, since two tiles, tile 5 and tile 6, are included as independent tiles in the independent tile set, the value of the num_tile_rects_in_set_minus1 code is 1. Further, the top_left_tile_index code and the bottom_right_tile_index code represent the position of the independent tile. In the present embodiment, the former value is 5 and the latter value is 6. The header encoding unit 114 encodes each piece of header information as described above to generate an MCTS SEI code. Further, integrating section 110 receives the MCTS SEI code generated by header coding section 114 to generate a bit stream, and outputs the bit stream to outside of image coding apparatus 100 via terminal 111.

ステップS309にて、縮小部103は入力画像を縮小し、基本レイヤ画像を生成する。尚、本実施形態では拡張レイヤが1階層であるため、縮小部103によって基本レイヤを生成するが、本発明はこれに限定されない。拡張レイヤが2階層以上(全体で3階層以上)の階層符号化の場合、縮小部103を複数設けてもよいし、1つの縮小部103で必要な階層数の画像を生成してもよい。   In step S309, reduction section 103 reduces the input image to generate a base layer image. In the present embodiment, the base layer is generated by the reduction unit 103 because the enhancement layer is one layer, but the present invention is not limited to this. In the case of hierarchical coding with two or more enhancement layers (three or more layers in total), a plurality of reduction units 103 may be provided, or one reduction unit 103 may generate an image of the required number of layers.

ステップS310にて、基本レイヤ分割部105は画像の左上からタイル番号順で、符号化する基本レイヤのタイルの画像を抽出する。基本レイヤ分割部105は抽出した基本レイヤのタイルの画像を基本レイヤ符号化部107へ出力する。   In step S310, base layer dividing section 105 extracts a base layer tile image to be encoded in order of tile number from the upper left of the image. The base layer division unit 105 outputs the extracted base layer tile image to the base layer encoding unit 107.

ステップS311にて、独立タイル判定部106は、基本レイヤ分割部105から符号化対象タイルのタイル番号を入力する。さらに、独立タイル判定部106は、タイル設定部102から当該符号化対象タイルの独立タイル位置情報を入力する。尚、本実施形態において独立タイル位置情報は5と6である。独立タイル判定部106は入力された符号化対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。符号化対象タイルのタイル番号と独立タイル位置情報のタイル番号とが一致する場合、独立タイル判定部106は、符号化対象タイルが独立タイルであると判定し、独立タイル符号化フラグを1とし、ステップS312へ進む。一方、符号化対象タイルのタイル番号と独立タイル位置情報のタイル番号とが一致しない場合、独立タイル判定部106は、符号化対象タイルが独立タイルではないと判定し、独立タイル符号化フラグを0とし、ステップS313へ進む。   In step S311, the independent tile determination unit 106 inputs the tile number of the encoding target tile from the base layer division unit 105. Further, the independent tile determination unit 106 inputs the independent tile position information of the encoding target tile from the tile setting unit 102. In this embodiment, the independent tile position information is 5 and 6. The independent tile determination unit 106 compares the input tile number of the encoding target tile with the tile number of the independent tile position information. When the tile number of the encoding target tile matches the tile number of the independent tile position information, the independent tile determination unit 106 determines that the encoding target tile is an independent tile, sets the independent tile encoding flag to 1, Proceed to step S312. On the other hand, if the tile number of the tile to be encoded does not match the tile number of the independent tile position information, the independent tile determination unit 106 determines that the tile to be encoded is not an independent tile, and sets the independent tile encoding flag to 0. And the process proceeds to step S313.

ステップS312にて、符号化対象タイルは基本レイヤの符号化対象のフレームにおける独立タイルである。このため、基本レイヤ符号化部107は、局所復号済みの基本レイヤの他のフレームにおける、当該符号化対象タイルの位置と相対的に等しい位置の独立タイルセットに含まれる再構成画像を参照してフレーム間予測及び符号化を行う。また、基本レイヤ符号化部107は、符号化対象のフレームの符号化対象タイル内の局所復号済みの再構成画像を参照してイントラ予測及び符号化を行う。図2において、フレーム202のタイル5を符号化する場合について説明する。基本レイヤ符号化部107は、基本レイヤ再構成部108に格納されているフレーム201のタイル5とタイル6、及びフレーム202のタイル5の局所復号済みの再構成画像を参照して予測及び符号化を行う。さらに、基本レイヤ符号化部107は、符号化して得られた基本レイヤの符号化対象タイルの符号データを基本レイヤ符号データとして統合部110に出力する。統合部110は基本レイヤ符号化部107から出力される基本レイヤ符号データと、ヘッダ符号化部114及び拡張レイヤ符号化部112から出力されるその他の符号データとを統合し、ビットストリームを生成する。そして、統合部110は、生成したビットストリームを、端子111を介して出力する。また、基本レイヤ再構成部108は、基本レイヤ符号化部107で符号化の途中で生成された係数(予測モード及び予測残差)等を用いて、基本レイヤの再構成画像を順次生成し、保持する。   In step S312, the encoding target tile is an independent tile in the encoding target frame of the base layer. For this reason, the base layer encoding unit 107 refers to the reconstructed image included in the independent tile set at a position relatively equal to the position of the encoding target tile in another frame of the base layer that has been locally decoded. Perform inter-frame prediction and encoding. In addition, the base layer encoding unit 107 performs intra prediction and encoding with reference to the locally decoded reconstructed image in the encoding target tile of the encoding target frame. In FIG. 2, the case where the tile 5 of the frame 202 is encoded will be described. The base layer coding unit 107 performs prediction and coding with reference to the locally decoded reconstructed images of the tiles 5 and 6 of the frame 201 and the tile 5 of the frame 202 stored in the base layer reconstructing unit 108. I do. Further, base layer coding section 107 outputs the code data of the coding target tile of the base layer obtained by coding to base section coding data as base layer code data. The integration unit 110 integrates the base layer code data output from the base layer coding unit 107 with other code data output from the header coding unit 114 and the enhancement layer coding unit 112 to generate a bit stream. . Then, the integrating unit 110 outputs the generated bit stream via the terminal 111. Further, the base layer reconstructing unit 108 sequentially generates reconstructed images of the base layer using the coefficients (prediction mode and prediction residual) generated during the coding by the base layer coding unit 107, and the like. Hold.

ステップS313にて、符号化対象タイルは基本レイヤの符号化対象のフレームにおける独立タイルではない。このため、基本レイヤ符号化部107は、局所復号済みの基本レイヤの他のフレームの画像全体を参照して、符号化対象タイルをフレーム間予測及び符号化する。図2において、フレーム202のタイル5を符号化する場合に、基本レイヤ符号化部107は、基本レイヤ再構成部108に格納されているフレーム201の全てのタイル及びフレーム202のタイル5の局所復号済みの再構成画像を参照して予測及び符号化する。さらに、基本レイヤ符号化部107は、生成した基本レイヤ符号データを統合部110に出力する。統合部110は、ステップS312における説明と同様に、基本レイヤ符号データとその他の符号データとを統合してビットストリームを生成し、当該ビットストリームを、端子111を介して出力する。さらに、基本レイヤ再構成部108は、基本レイヤ符号化部107で符号化の途中で生成された係数等を用いて、基本レイヤの再構成画像を順次生成し、保持する。   In step S313, the encoding target tile is not an independent tile in the encoding target frame of the base layer. Therefore, the base layer coding unit 107 performs inter-frame prediction and coding of the tile to be coded with reference to the entire image of another frame of the base layer that has been locally decoded. In FIG. 2, when encoding tile 5 of frame 202, base layer encoding section 107 locally decodes all tiles of frame 201 and tile 5 of frame 202 stored in base layer reconstructing section 108. Prediction and encoding are performed with reference to the already-constructed reconstructed image. Further, base layer coding section 107 outputs the generated base layer code data to integrating section 110. The integration unit 110 integrates the base layer code data and other code data to generate a bit stream, and outputs the bit stream via the terminal 111, as described in step S312. Further, the base layer reconstructing unit 108 sequentially generates and holds reconstructed images of the base layer using the coefficients and the like generated during the coding by the base layer coding unit 107.

ステップS314にて、全体制御部115は、基本レイヤの全てのタイルを符号化し終わったか否かを判定する。基本レイヤの全てのタイルの符号化処理が終わっていないと判定された場合(ステップS314のNO)、ステップS310に戻り、基本レイヤ分割部105は次のタイル番号のタイルを抽出及び出力し、処理を続行する。一方、基本レイヤの全てのタイルの画像の符号化処理が終了していると判定された場合(ステップS314のYES)、ステップS315に進む。   In step S314, overall control section 115 determines whether or not all tiles of the base layer have been encoded. If it is determined that the encoding process for all the tiles of the base layer has not been completed (NO in step S314), the process returns to step S310, and the base layer division unit 105 extracts and outputs the tile of the next tile number, and performs processing. To continue. On the other hand, when it is determined that the encoding processing of the images of all the tiles of the base layer has been completed (YES in step S314), the process proceeds to step S315.

ステップS315にて、拡張レイヤ分割部104は画像の左上からタイル番号順で、符号化する拡張レイヤのタイルの画像を抽出する。拡張レイヤ分割部104は抽出した拡張レイヤのタイルの画像を拡張レイヤ符号化部112へ出力する。   In step S315, enhancement layer division section 104 extracts an image of the tile of the enhancement layer to be coded in order of tile number from the upper left of the image. The enhancement layer dividing unit 104 outputs the extracted image of the tile of the enhancement layer to the enhancement layer encoding unit 112.

ステップS316にて、独立タイル判定部106はステップS311における処理と同様に、入力された符号化対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。符号化対象タイルのタイル番号と独立タイル位置情報のタイル番号とが一致する場合、独立タイル判定部106は、符号化対象タイルが独立タイルであると判定し、独立タイル符号化フラグを1とし、ステップS317へ進む。一方、符号化対象タイルのタイル番号と独立タイル位置情報のタイル番号とが一致しない場合、独立タイル判定部106は、符号化対象タイルが独立タイルではないと判定し、独立タイル符号化フラグを0とし、ステップS319へ進む。   In step S316, the independent tile determination unit 106 compares the input tile number of the encoding target tile with the tile number of the independent tile position information, as in the process in step S311. When the tile number of the encoding target tile matches the tile number of the independent tile position information, the independent tile determination unit 106 determines that the encoding target tile is an independent tile, sets the independent tile encoding flag to 1, Proceed to step S317. On the other hand, if the tile number of the tile to be encoded does not match the tile number of the independent tile position information, the independent tile determination unit 106 determines that the tile to be encoded is not an independent tile, and sets the independent tile encoding flag to 0. Then, the process proceeds to step S319.

ステップS317にて、符号化対象タイルは拡張レイヤの符号化対象のフレームにおける独立タイルである。このため、拡大部109は、基本レイヤ再構成部108に格納されている、局所復号済みの基本レイヤの再構成画像から、符号化対象タイルの位置と相対的に等しい位置の独立タイルセットに含まれる再構成画像を入力する。拡大部109は、入力された再構成画像のみを用いて、フィルタリング等で拡大して拡大画像を生成し、当該拡大画像を拡張レイヤ符号化部112に出力する。   In step S317, the encoding target tile is an independent tile in the encoding target frame of the enhancement layer. For this reason, the enlargement unit 109 includes, from the locally decoded base layer reconstructed image stored in the base layer reconstructing unit 108, an independent tile set at a position relatively equal to the position of the encoding target tile. The reconstructed image to be input. The enlarging unit 109 generates an enlarged image by enlarging by filtering or the like using only the input reconstructed image, and outputs the enlarged image to the enhancement layer encoding unit 112.

ステップS318にて、拡張レイヤ符号化部112は、拡張レイヤ分割部104から入力された符号化対象タイルの画像を、基本レイヤの局所復号済みの再構成画像を参照対象として予測及び符号化する。即ち、拡張レイヤ符号化部112は、ステップS317で生成された拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ符号化部112は、拡張レイヤ再構成部113に格納されている局所復号済みの拡張レイヤのうち、符号化対象タイルの位置と相対的に等しい位置の独立タイルセットの再構成画像を参照対象として、符号化対象タイルのフレーム間予測を行う。さらに、拡張レイヤ符号化部112は、符号化対象タイル内の局所復号済みの再構成画像を参照対象としてイントラ予測を行う。拡張レイヤ符号化部112は、これらの予測によって得られた予測に関する情報(フレーム間予測によって得られた動きベクトル等)及び予測誤差を符号化する。さらに、拡張レイヤ再構成部113は、拡張レイヤ符号化部112による符号化の途中で生成された係数(予測モード及び予測残差)等を用いて、拡張レイヤの再構成画像を順次生成し、保持する。   In step S318, enhancement layer encoding section 112 predicts and encodes the image of the encoding target tile input from enhancement layer division section 104, using the locally decoded reconstructed image of the base layer as a reference. That is, the enhancement layer encoding unit 112 performs inter-layer prediction with reference to the enlarged image generated in step S317. Further, enhancement layer encoding section 112 is a reconstructed image of an independent tile set at a position relatively equal to the position of the encoding target tile among the locally decoded enhancement layers stored in enhancement layer reconstruction section 113. , The inter-frame prediction of the encoding target tile is performed. Further, enhancement layer coding section 112 performs intra prediction with reference to a locally decoded reconstructed image in the current tile. The enhancement layer encoding unit 112 encodes information (such as a motion vector obtained by inter-frame prediction) related to prediction obtained by these predictions and a prediction error. Further, the enhancement layer reconstructing unit 113 sequentially generates reconstructed images of the enhancement layer using the coefficients (prediction mode and prediction residual) generated during the encoding by the enhancement layer encoding unit 112, and the like. Hold.

ステップS319にて、符号化対象タイルは拡張レイヤの符号化対象のフレームにおける独立タイルではない。このため、拡大部109は、基本レイヤ再構成部108に格納されている基本レイヤの再構成画像の全体を用いて、フィルタリング等で拡大して拡大画像を生成し、当該拡大画像を拡張レイヤ符号化部112に出力する。   In step S319, the encoding target tile is not an independent tile in the encoding target frame of the enhancement layer. For this reason, the enlarging unit 109 generates an enlarged image by performing filtering or the like on the entire reconstructed image of the base layer stored in the base layer reconstructing unit 108, and generates the enlarged image using the enhanced layer code. Output to the conversion unit 112.

ステップS320にて、拡張レイヤ符号化部112は、拡張レイヤ分割部104から入力された符号化対象タイルの画像を、基本レイヤの局所復号済みの再構成画像を参照して符号化する。即ち、拡張レイヤ符号化部112は、ステップS319で生成された拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ符号化部112は、拡張レイヤ再構成部113に格納されている局所復号済みの拡張レイヤの再構成画像を参照して、符号化対象タイルのフレーム間予測を行う。さらに、拡張レイヤ符号化部112は、符号化対象タイル内の局所復号済みの再構成画像を参照して、符号化対象タイルのイントラ予測を行う。拡張レイヤ符号化部112は、これらの予測によって得られた予測に関する情報及び予測誤差を符号化する。さらに、拡張レイヤ再構成部113は、拡張レイヤ符号化部112で符号化の途中で生成された係数等を用いて、拡張レイヤ再構成画像を順次生成し、保持する。   In step S320, enhancement layer encoding section 112 encodes the image of the encoding target tile input from enhancement layer division section 104 with reference to the locally decoded reconstructed image of the base layer. That is, the enhancement layer encoding unit 112 performs inter-layer prediction with reference to the enlarged image generated in step S319. In addition, the enhancement layer encoding unit 112 performs inter-frame prediction of the encoding target tile with reference to the reconstructed image of the locally decoded enhancement layer stored in the enhancement layer reconstructing unit 113. Furthermore, the enhancement layer encoding unit 112 performs intra prediction of the tile to be encoded with reference to the reconstructed image that has been locally decoded in the tile to be encoded. The enhancement layer encoding unit 112 encodes information and prediction errors related to prediction obtained by these predictions. Further, the enhancement layer reconstructing unit 113 sequentially generates and retains enhancement layer reconstructed images using the coefficients and the like generated during the encoding by the enhancement layer encoding unit 112.

ステップS321にて、全体制御部115は、拡張レイヤの全てのタイルを符号化し終わったか否かを判定する。拡張レイヤの全てのタイルの符号化処理が終わっていないと判定した場合(ステップS321のNO)、ステップS315に戻り、拡張レイヤ分割部104は次のタイル番号のタイルを抽出及び出力し、処理を続行する。一方、拡張レイヤの全てのタイルの画像の符号化処理が終了していると判定した場合(ステップS321のYES)、ステップS322に進む。   In step S321, overall control section 115 determines whether or not encoding of all tiles in the enhancement layer has been completed. If it is determined that the encoding processing for all tiles in the enhancement layer has not been completed (NO in step S321), the process returns to step S315, and the enhancement layer division unit 104 extracts and outputs the tile with the next tile number, and performs the processing. continue. On the other hand, when it is determined that the encoding processing of the images of all the tiles in the enhancement layer has been completed (YES in step S321), the process proceeds to step S322.

ステップS322にて、全体制御部115は、端子101から入力されるシーケンスに含まれる全てのフレームの画像の符号化処理が終了したか否かを判定する。符号化処理を行っていないフレームが存在する場合は(ステップS322のNO)、ステップS309に進み、次のフレームの処理を行う。符号化処理を行っていないフレームが存在しない場合は(ステップS322のYES)、符号化処理を終了する。   In step S322, overall control unit 115 determines whether or not the encoding processing of the images of all the frames included in the sequence input from terminal 101 has been completed. If there is a frame that has not been subjected to the encoding process (NO in step S322), the process advances to step S309 to process the next frame. If there is no frame that has not been subjected to the encoding process (YES in step S322), the encoding process ends.

以上の構成と動作により、独立タイル及び独立タイルセットを使用する場合において、拡張レイヤと基本レイヤの各タイルの相対的な位置を一致させることができる。即ち、基本レイヤで設定された独立タイルセットに含まれるタイルが、各拡張レイヤにおいて当該独立タイルセットと相対的に等しい位置の独立タイルセットに含まれるように設定する。これにより、階層符号化のいずれの階層においても、独立タイルの予測及び復号のために参照する画素を制限することができ、予測処理を高速化することができる。特に、注目領域等を独立タイルに設定することで、独立タイルは基本レイヤから拡張レイヤまで他のタイルを参照せずに、独立に符号化できるため、必要な部分を従来よりも高速に処理することが可能になる。   With the above configuration and operation, when using the independent tile and the independent tile set, the relative positions of the tiles of the enhancement layer and the base layer can be matched. That is, the tiles included in the independent tile set set in the base layer are set so as to be included in the independent tile set at a position relatively equal to the independent tile set in each enhancement layer. This makes it possible to limit the pixels to be referred to for prediction and decoding of an independent tile in any layer of the hierarchical coding, and to speed up the prediction processing. In particular, by setting a region of interest or the like as an independent tile, the independent tile can be independently coded from the base layer to the enhancement layer without referring to other tiles, so that necessary parts are processed faster than before. It becomes possible.

尚、本実施形態において、図2のように、符号化対象のフレームより時間的に前のフレームのみを参照フレームとして予測及び符号化する例を示したが、これに限定されない。即ち、複数フレームを参照して予測及び符号化する場合においても同様に参照されることは上記の説明から明白である。   Note that, in the present embodiment, as shown in FIG. 2, an example has been described in which only a frame temporally earlier than the encoding target frame is predicted and encoded as a reference frame, but the present invention is not limited to this. That is, it is apparent from the above description that the same reference is made in the case of performing prediction and encoding with reference to a plurality of frames.

また、本実施形態において、縮小部103及び拡大部109を用いた画像符号化装置100について説明したが、本発明はこれに限定されない。即ち、縮小部103及び拡大部109を省略してもよい。または、縮小率及び拡大率を1として基本レイヤ符号化部107で設定される量子化パラメータよりも拡張レイヤ符号化部112で設定される量子化パラメータを小さくするようにしてもよい。これによって、SNR階層符号化を行うことが可能になる。   Further, in the present embodiment, the image encoding device 100 using the reduction unit 103 and the enlargement unit 109 has been described, but the present invention is not limited to this. That is, the reduction unit 103 and the enlargement unit 109 may be omitted. Alternatively, the quantization parameter set by enhancement layer coding section 112 may be made smaller than the quantization parameter set by base layer coding section 107, where the reduction rate and the enlargement rate are set to 1. This makes it possible to perform SNR hierarchical coding.

また、本実施形態において、拡張レイヤの独立タイルセットのタイルを予測する場合に参照する拡大画像を、当該独立タイルセットと相対的に等しい位置の基本レイヤのタイルの画像だけで生成を行ったが、本発明はこれに限定されない。即ち、ステップS319のように基本レイヤの独立タイルの周辺の画素も参照対象としても構わない。   Further, in the present embodiment, the enlarged image referred to when predicting the tile of the independent tile set of the enhancement layer is generated only by the image of the tile of the base layer at a position relatively equal to the independent tile set. However, the present invention is not limited to this. That is, as in step S319, pixels around the independent tile in the base layer may be referred to.

また、本実施形態において、基本レイヤと1階層の拡張レイヤの階層符号化(全体で2階層の階層符号化)を行うものとして説明したが、本発明はこれに限定されず、全体で3階層以上の階層符号化であっても構わない。この場合、縮小部103、拡張レイヤ分割部104、拡張レイヤ符号化部112、拡張レイヤ再構成部113、及び拡大部109を1つのセットとして、当該セットを拡張レイヤの階層数分だけ設けることにより、より多くの階層に対応することができる。また、図4に示すように、拡張レイヤ符号化部112、拡張レイヤ再構成部413、拡大部409、及び縮小部403を1つずつ有し、各拡張レイヤの符号化において、兼用で使用しても構わない。   Further, in the present embodiment, it has been described that the base layer and the one-layer enhancement layer are subjected to hierarchical coding (two-layer hierarchical coding as a whole). However, the present invention is not limited to this, and three-layer coding The above hierarchical coding may be used. In this case, reduction section 103, enhancement layer division section 104, enhancement layer coding section 112, enhancement layer reconstruction section 113, and expansion section 109 are provided as one set, and the set is provided by the number of layers of the enhancement layer. , And can correspond to more layers. Also, as shown in FIG. 4, it has one enhancement layer coding unit 112, one enhancement layer reconstructing unit 413, one expansion unit 409, and one reduction unit 403. It does not matter.

図4は、複数の階層の拡張レイヤを符号化可能な画像符号化装置であって、拡張レイヤ符号化部112、拡張レイヤ再構成部413、拡大部409、及び縮小部403を1つずつ有する画像符号化装置のブロック図である。図4において、図1の画像符号化装置100の各処理部と同じ機能を果たすものについては同じ番号を付し、説明を省略する。401は階層符号化の階層数を設定する階層数設定部である。403は縮小部である。図1の縮小部103が端子101から入力した入力画像を縮小して1つの縮小画像を生成するのに対し、縮小部403は、階層数設定部401から入力した階層数に基づいて、入力画像を縮小して複数の階層の縮小画像を生成する。402はフレームメモリであり、縮小部403で生成された各階層の縮小画像を格納する。409は拡大部である。図1の拡大部109が基本レイヤの再構成画像を拡張レイヤのサイズに拡大して1つの拡大画像を生成するのに対し、拡大部109は階層数設定部401から入力した階層数に基づいて、当該再構成画像を拡大して複数の異なる解像度の階層の拡大画像を生成する。413は拡張レイヤ再構成部である。拡張レイヤ再構成部413は、階層数設定部401から階層数を入力し、拡張レイヤ符号化部112で生成された係数等を用いて拡張レイヤの再構成画像を生成し、当該再構成画像を拡大部409及び拡張レイヤ符号化部112へ出力する。410は統合部であり、階層数設定部401から階層数を入力し、当該階層数分の符号データをビットストリームに統合する。   FIG. 4 is an image encoding device capable of encoding a plurality of enhancement layers, and includes one enhancement layer encoding unit 112, one enhancement layer reconstructing unit 413, one enlargement unit 409, and one reduction unit 403. It is a block diagram of an image encoding device. 4, components having the same functions as those of the processing units of the image encoding device 100 of FIG. 1 are denoted by the same reference numerals, and description thereof will be omitted. Reference numeral 401 denotes a layer number setting unit that sets the number of layers for layer coding. 403 is a reduction unit. While the reducing unit 103 in FIG. 1 reduces the input image input from the terminal 101 to generate one reduced image, the reducing unit 403 determines the input image based on the number of layers input from the number-of-layers setting unit 401. Is reduced to generate reduced images of a plurality of layers. Reference numeral 402 denotes a frame memory, which stores reduced images of each layer generated by the reduction unit 403. Reference numeral 409 denotes an enlarged portion. The enlargement unit 109 in FIG. 1 enlarges the reconstructed image of the base layer to the size of the enhancement layer to generate one enlarged image, whereas the enlargement unit 109 generates a single enlarged image based on the number of layers input from the layer number setting unit 401. Then, the reconstructed image is enlarged to generate enlarged images of a plurality of hierarchies having different resolutions. 413 is an enhancement layer reconfiguration unit. The enhancement layer reconstructing unit 413 receives the number of layers from the number-of-layers setting unit 401, generates a reconstructed image of the enhancement layer using the coefficients and the like generated by the enhancement layer encoding unit 112, and generates the reconstructed image. Output to expansion section 409 and enhancement layer coding section 112. Reference numeral 410 denotes an integration unit that inputs the number of layers from the number-of-layers setting unit 401 and integrates the code data for the number of layers into a bit stream.

図4に示す画像符号化装置400を用いて符号化を行う場合の、各処理部の動作を図5に示したフローチャートを用いて以下に説明する。図5は、図3のステップS309からステップS320の間を変更した部分のみを示している。図5において、図3のステップと同様の機能を果たすステップに関しては図3と同じ番号を付与し、説明を省略する。また、図3のステップS301にて、階層数設定部401は階層数を3に設定するとして、以下に説明する。尚、本発明において階層数は特に限定されない。また、ステップS305にて、vps_max_layers_minus1符号を2としてヘッダ符号データの生成が行われるとする。   The operation of each processing unit when encoding is performed using the image encoding device 400 illustrated in FIG. 4 will be described below with reference to the flowchart illustrated in FIG. FIG. 5 shows only the part that has been changed from step S309 to step S320 in FIG. 5, steps that perform the same functions as those in FIG. 3 are assigned the same numbers as in FIG. 3, and descriptions thereof will be omitted. Also, the following description will be given assuming that the number-of-layers setting unit 401 sets the number of layers to 3 in step S301 in FIG. In the present invention, the number of layers is not particularly limited. Also, it is assumed that in step S305, header code data is generated with the vps_max_layers_minus1 code set to 2.

ステップS501にて、縮小部403は1フレームの階層数分の縮小画像を生成する。本実施形態ではステップS301で階層数が3に設定されるため、縮小部403は1つの基本レイヤ画像と2つの拡張レイヤ画像とを生成する。即ち、縮小部403は、入力画像を縦横1/2にした拡張第1階層(第1拡張レイヤ)画像と、第1拡張レイヤ画像をさらに縦横1/2にした基本レイヤ画像とを生成する。ここで、縮小部403は、入力された解像度の画像を拡張第2階層(第2拡張レイヤ)画像とする。さらに、縮小部403は、基本レイヤ画像、第1拡張レイヤ画像、及び第2拡張レイヤ画像をそれぞれフレームメモリ402に出力する。   In step S501, the reduction unit 403 generates reduced images for the number of layers of one frame. In the present embodiment, since the number of layers is set to 3 in step S301, the reduction unit 403 generates one base layer image and two enhancement layer images. That is, the reduction unit 403 generates an enhanced first hierarchical (first enhanced layer) image in which the input image is reduced in height and width by 1 /, and a base layer image in which the first enhanced layer image is further reduced in height and width by 1 /. Here, the reduction unit 403 sets the input resolution image as an extended second hierarchical (second extended layer) image. Further, the reduction unit 403 outputs the base layer image, the first enhancement layer image, and the second enhancement layer image to the frame memory 402, respectively.

尚、ステップS312からステップS314にて、前述の通り、全体制御部115は、フレームメモリ402から出力された基本レイヤ画像を符号化する。基本レイヤ再構成部108は符号化された画像を局所復号して再構成画像を生成する、これを保持しておく。   As described above, in steps S312 to S314, the overall control unit 115 encodes the base layer image output from the frame memory 402. The base layer reconstruction unit 108 locally decodes the encoded image to generate a reconstructed image, which is stored.

ステップS502にて、階層数設定部401は、ステップS312乃至ステップS313で符号化された基本レイヤ、又は後述するステップS518乃至ステップS520で符号化された階層の拡張レイヤを上位レイヤとする。さらに、階層数設定部401は、そのレイヤに続く符号化対象の拡張レイヤを下位レイヤとする。ここでは、まず、ステップS312乃至ステップS313で符号化された基本レイヤを上位レイヤとし、第1拡張レイヤを下位レイヤとして設定する。   In step S502, the number-of-layers setting unit 401 sets the base layer encoded in steps S312 to S313 or the enhancement layer of the layer encoded in steps S518 to S520 described later as an upper layer. Further, the number-of-layers setting unit 401 sets an enhancement layer to be encoded following that layer as a lower layer. Here, first, the base layer encoded in steps S312 to S313 is set as an upper layer, and the first enhancement layer is set as a lower layer.

ステップS515にて、拡張レイヤ分割部104は符号化対象の階層の画像の左上からタイル番号順で、符号化する拡張レイヤのタイルの画像を抽出する。拡張レイヤ分割部104は抽出した拡張レイヤのタイルの画像を拡張レイヤ符号化部112へ出力する。ここでは、第1拡張レイヤ画像における符号化対象タイルの画像を抽出し、拡張レイヤ符号化部112に入力する。   In step S515, the enhancement layer dividing unit 104 extracts tile images of the enhancement layer to be coded in order of tile number from the upper left of the image of the layer to be coded. The enhancement layer dividing unit 104 outputs the extracted image of the tile of the enhancement layer to the enhancement layer encoding unit 112. Here, an image of the tile to be encoded in the first enhancement layer image is extracted and input to the enhancement layer encoding unit 112.

ステップS517にて、符号化対象タイルは符号化対象のフレームにおける独立タイルである。このため、拡大部409は、基本レイヤ再構成部108又は拡張レイヤ再構成部413に格納されている上位レイヤの再構成画像から、符号化対象タイルの位置と相対的に等しい位置の独立タイルセットに含まれる再構成画像を入力する。拡大部409は、入力された再構成画像のみを用いて、フィルタリング等で拡大して拡大画像を生成し、当該拡大画像を拡張レイヤ符号化部112に入力する。ここでは、拡大部409は、基本レイヤ再構成部108に格納されている再構成画像から拡大画像を生成し、当該拡大画像を拡張レイヤ符号化部112に入力する。   In step S517, the encoding target tile is an independent tile in the encoding target frame. For this reason, the enlargement unit 409 obtains an independent tile set at a position relatively equal to the position of the encoding target tile from the reconstructed image of the upper layer stored in the base layer reconstruction unit 108 or the enhancement layer reconstruction unit 413. Is input. The enlargement unit 409 enlarges the image by filtering or the like using only the input reconstructed image to generate an enlarged image, and inputs the enlarged image to the enhancement layer encoding unit 112. Here, enlargement section 409 generates an enlarged image from the reconstructed image stored in base layer reconstruction section 108, and inputs the enlarged image to enhancement layer encoding section 112.

ステップS518にて、拡張レイヤ符号化部112は、拡張レイヤ分割部104から入力された符号化対象タイルの画像を、局所復号済みの再構成画像を参照して予測及び符号化する。即ち、拡張レイヤ符号化部112は、ステップS517で生成された拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ符号化部112は、拡張レイヤ再構成部413に格納されている局所復号済みの拡張レイヤの他のフレームにおいて符号化対象タイルの位置と相対的に等しい位置の独立タイルセットの再構成画像を参照して、フレーム間予測を行う。さらに、拡張レイヤ符号化部112は、符号化対象タイル内の局所復号済みの再構成画像を参照してイントラ予測を行う。拡張レイヤ符号化部112は、これらの予測によって得られた予測に関する情報(フレーム間予測によって得られた動きベクトル等)及び予測誤差を符号化する。さらに、拡張レイヤ再構成部413は、拡張レイヤ符号化部112による符号化の途中で生成された係数(予測モード及び予測残差)等を用いて、拡張レイヤの再構成画像を順次生成し、保持する。   In step S518, enhancement layer encoding section 112 predicts and encodes the image of the encoding target tile input from enhancement layer division section 104 with reference to the locally decoded reconstructed image. That is, the enhancement layer encoding unit 112 performs inter-layer prediction with reference to the enlarged image generated in step S517. Further, enhancement layer coding section 112 reconstructs an independent tile set at a position relatively equal to the position of the encoding target tile in another frame of the locally decoded enhancement layer stored in enhancement layer reconstructing section 413. Inter-frame prediction is performed with reference to the constituent images. Further, enhancement layer coding section 112 performs intra prediction with reference to the locally decoded reconstructed image in the tile to be coded. The enhancement layer encoding unit 112 encodes information (such as a motion vector obtained by inter-frame prediction) related to prediction obtained by these predictions and a prediction error. Further, the enhancement layer reconstructing unit 413 sequentially generates reconstructed images of the enhancement layer using the coefficients (prediction mode and prediction residual) generated during the encoding by the enhancement layer encoding unit 112, and the like. Hold.

ステップS519にて、符号化対象タイルは符号化対象のフレームにおける独立タイルではない。このため、拡大部409は、基本レイヤ再構成部108に格納されている基本レイヤの再構成画像の全体又は拡張レイヤ再構成部413に格納されている上位の拡張レイヤの再構成画像の全体を用いてフィルタリング等で拡大して拡大画像を生成する。さらに、拡大部409は、生成した拡大画像を拡張レイヤ符号化部112に出力する。ここでは、拡大部409は、基本レイヤ再構成部108に格納されている再構成画像から拡大画像を生成する。   In step S519, the encoding target tile is not an independent tile in the encoding target frame. For this reason, the enlargement unit 409 transmits the entire reconstructed image of the base layer stored in the base layer reconstructing unit 108 or the entire reconstructed image of the higher enhancement layer stored in the enhancement layer reconstructing unit 413. The image is enlarged by filtering or the like to generate an enlarged image. Further, enlargement section 409 outputs the generated enlarged image to enhancement layer encoding section 112. Here, the enlargement unit 409 generates an enlarged image from the reconstructed image stored in the base layer reconstruction unit 108.

ステップS520にて、拡張レイヤ符号化部112は、拡張レイヤ分割部104から入力された符号化対象タイルの画像を、局所復号済みの再構成画像を参照して符号化する。即ち、拡張レイヤ符号化部112は、ステップS519で生成された拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ符号化部112は、拡張レイヤ再構成部413に格納されている局所復号済みの拡張レイヤの再構成画像を参照して、符号化対象タイルのフレーム間予測を行う。さらに、拡張レイヤ符号化部112は、符号化対象タイル内の局所復号済みの再構成画像を参照して、符号化対象タイルのイントラ予測を行う。拡張レイヤ符号化部112は、これらの予測によって得られた予測に関する情報及び予測誤差を符号化する。さらに、拡張レイヤ再構成部413は、拡張レイヤ符号化部112で符号化の途中で生成された係数等を用いて、拡張レイヤの再構成画像を順次生成し、保持する。   In step S520, enhancement layer encoding section 112 encodes the image of the encoding target tile input from enhancement layer division section 104, with reference to the locally decoded reconstructed image. That is, the enhancement layer encoding unit 112 performs inter-layer prediction with reference to the enlarged image generated in step S519. Also, the enhancement layer encoding unit 112 performs inter-frame prediction of the encoding target tile with reference to the reconstructed image of the locally decoded enhancement layer stored in the enhancement layer reconstruction unit 413. Furthermore, the enhancement layer encoding unit 112 performs intra prediction of the tile to be encoded with reference to the reconstructed image that has been locally decoded in the tile to be encoded. The enhancement layer encoding unit 112 encodes information and prediction errors related to prediction obtained by these predictions. Further, the enhancement layer reconstructing unit 413 sequentially generates and retains a reconstructed image of the enhancement layer using the coefficients and the like generated during the encoding by the enhancement layer encoding unit 112.

ステップS503にて、全体制御部115は、階層数設定部401で設定された全ての階層について符号化が終了したか否かを判定する。全ての階層のタイルの符号化処理が終わっていないと判定した場合(ステップS521のNO)、ステップS502に戻り、階層数設定部401は次の階層を下位レイヤに設定し、処理を続行する。一方、拡張レイヤの全てのタイルの画像の符号化処理が終了していると判定した場合(ステップS521のYES)、ステップS523に進む。ここでは、第2拡張レイヤの符号化が終了していないと判定し、ステップS502に戻る。   In step S503, overall control section 115 determines whether or not encoding has been completed for all layers set by number-of-layers setting section 401. If it is determined that the encoding process for all the tiles has not been completed (NO in step S521), the process returns to step S502, and the number-of-layers setting unit 401 sets the next layer as a lower layer, and continues the process. On the other hand, if it is determined that the encoding processing of the images of all tiles in the enhancement layer has been completed (YES in step S521), the process proceeds to step S523. Here, it is determined that the encoding of the second enhancement layer has not been completed, and the process returns to step S502.

ステップS522にて、全体制御部115は、端子101から入力されるシーケンスに含まれる全てのフレームの画像の符号化処理が終了したか否かを判定する。符号化処理を行っていないフレームが存在する場合は(ステップS522のNO)、ステップS501に進み、次のフレームの処理を行う。符号化処理を行っていないフレームが存在しない場合は(ステップS522のYES)、符号化処理を終了する。   In step S522, overall control unit 115 determines whether or not the encoding processing of the images of all the frames included in the sequence input from terminal 101 has been completed. If there is a frame that has not been subjected to the encoding process (NO in step S522), the process advances to step S501 to process the next frame. If there is no frame that has not been subjected to the encoding process (YES in step S522), the encoding process ends.

以下、第2拡張レイヤ画像の符号化処理について説明する。即ち、ステップS502にて、階層数設定部401は、ステップS518乃至ステップS520で符号化された第1拡張レイヤ階層を上位レイヤとし、第2拡張レイヤを下位レイヤとして設定する。ステップS515にて、拡張レイヤ分割部104は第2拡張レイヤ画像における符号化対象タイルの画像を抽出し、拡張レイヤ符号化部112に入力する。   Hereinafter, the encoding process of the second enhancement layer image will be described. That is, in step S502, the layer number setting unit 401 sets the first enhancement layer encoded in steps S518 to S520 as an upper layer and sets the second enhancement layer as a lower layer. In step S515, enhancement layer division section 104 extracts an image of the encoding target tile in the second enhancement layer image, and inputs the image to enhancement layer encoding section 112.

ステップS517にて、符号化対象タイルは符号化対象のフレームにおける独立タイルである。このため、拡大部409は、拡張レイヤ再構成部413に格納されている上位レイヤ(第1拡張レイヤ)の再構成画像から、符号化対象タイルの位置と相対的に等しい位置の独立タイルセットに含まれる再構成画像を入力する。拡大部409は、入力された独立タイルセットの再構成画像のみを用いて、フィルタリング等で拡大して上位レイヤ(第1拡張レイヤ)の拡大画像を生成し、当該拡大画像を拡張レイヤ符号化部112に入力する。ステップS518にて、拡張レイヤ符号化部112は、拡張レイヤ分割部104から入力された符号化対象の下位レイヤ(第2拡張レイヤ)のタイルの画像を、局所復号済みの再構成画像を参照して予測及び符号化する。即ち、拡張レイヤ符号化部112は、ステップS517で生成された上位レイヤ(第1拡張レイヤ)の拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ符号化部112は、拡張レイヤ再構成部413に格納されている局所復号済みの下位レイヤ(第2拡張レイヤ)において符号化対象タイルの位置と相対的に等しい位置の独立タイルセットの画像を参照してフレーム間予測を行う。さらに、拡張レイヤ符号化部112は、符号化対象タイル内の下位レイヤ(第2拡張レイヤ)の局所復号済みの再構成画像を参照してイントラ予測を行う。拡張レイヤ符号化部112は、これらの予測によって得られた予測に関する情報(フレーム間予測によって得られた動きベクトル等)及び予測誤差を符号化する。さらに、拡張レイヤ再構成部413は、拡張レイヤ符号化部112で符号化の途中で生成された係数等を用いて、下位レイヤ(第2拡張レイヤ)の再構成画像を順次生成し、保持する。   In step S517, the encoding target tile is an independent tile in the encoding target frame. For this reason, the enlargement unit 409 converts the reconstructed image of the upper layer (first enhancement layer) stored in the enhancement layer reconstruction unit 413 into an independent tile set at a position relatively equal to the position of the encoding target tile. Enter the included reconstructed image. The enlargement unit 409 generates an enlarged image of an upper layer (first enhancement layer) by performing enlargement by filtering or the like using only the input reconstructed image of the independent tile set, and encodes the enlarged image into an enhancement layer encoding unit. Input to 112. In step S518, enhancement layer coding section 112 refers to the locally decoded reconstructed image of the tile image of the encoding target lower layer (second enhancement layer) input from enhancement layer division section 104. Prediction and encoding. That is, the enhancement layer encoding unit 112 performs inter-layer prediction with reference to the enlarged image of the upper layer (first enhancement layer) generated in step S517. Enhancement layer encoding section 112 also generates an independent tile set at a position relatively equal to the position of the encoding target tile in the locally decoded lower layer (second enhancement layer) stored in enhancement layer reconstructing section 413. Is performed with reference to the image of FIG. Further, enhancement layer encoding section 112 performs intra prediction with reference to a locally decoded reconstructed image of a lower layer (second enhancement layer) in the tile to be encoded. The enhancement layer encoding unit 112 encodes information (such as a motion vector obtained by inter-frame prediction) related to prediction obtained by these predictions and a prediction error. Further, enhancement layer reconstructing section 413 sequentially generates and retains a reconstructed image of a lower layer (second enhancement layer) by using a coefficient or the like generated in the course of encoding by enhancement layer encoding section 112. .

一方、ステップS519にて、符号化対象タイルは符号化対象のフレームにおける独立タイルではない。このため、拡大部409は、拡張レイヤ再構成部413に格納されている上位の拡張レイヤ(第1拡張レイヤ)の再構成画像を用いてフィルタリング等で拡大して上位レイヤ(第1拡張レイヤ)の拡大画像を生成する。さらに、拡大部409は、生成した拡大画像を拡張レイヤ符号化部112に出力する。   On the other hand, in step S519, the encoding target tile is not an independent tile in the encoding target frame. For this reason, the enlargement unit 409 enlarges the reconstructed image of the upper enhancement layer (first enhancement layer) stored in the enhancement layer reconstructing unit 413 by filtering or the like, and enlarges the upper layer (first enhancement layer). Generates an enlarged image of. Further, enlargement section 409 outputs the generated enlarged image to enhancement layer encoding section 112.

ステップS520にて、拡張レイヤ符号化部112は、拡張レイヤ分割部104から入力された符号化対象タイルの画像を局所復号済みの再構成画像を参照して符号化する。即ち、拡張レイヤ符号化部112は、ステップS519で生成された上位レイヤ(第1拡張レイヤ)の拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ符号化部112は、拡張レイヤ再構成部413に格納されている局所復号済みの下位レイヤ(第2拡張レイヤ階層)の再構成画像を参照してフレーム間予測を行う。さらに拡張レイヤ符号化部112は、下位レイヤ(第2拡張レイヤ)の符号化対象タイル内の局所復号済みの再構成画像を参照してイントラ予測を行う。拡張レイヤ符号化部112は、これらの予測によって得られた予測に関する情報及び予測誤差を符号化する。さらに、拡張レイヤ再構成部413は、拡張レイヤ符号化部112で符号化の途中で生成された係数等を用いて、下位レイヤ(第2拡張レイヤ)の再構成生画像を順次生成し、保持する。   In step S520, enhancement layer encoding section 112 encodes the image of the encoding target tile input from enhancement layer division section 104 with reference to the locally decoded reconstructed image. That is, the enhancement layer coding unit 112 performs inter-layer prediction with reference to the enlarged image of the upper layer (first enhancement layer) generated in step S519. Further, enhancement layer coding section 112 performs inter-frame prediction with reference to the locally decoded reconstructed image of the lower layer (second enhancement layer layer) stored in enhancement layer reconstructing section 413. Further, enhancement layer encoding section 112 performs intra prediction with reference to a locally decoded reconstructed image in the encoding target tile of the lower layer (second enhancement layer). The enhancement layer encoding unit 112 encodes information and prediction errors related to prediction obtained by these predictions. Further, the enhancement layer reconstructing unit 413 sequentially generates and stores a reconstructed raw image of a lower layer (second enhancement layer) using the coefficients and the like generated during the encoding by the enhancement layer encoding unit 112. I do.

ステップS503にて、全体制御部115は、階層数設定部401で設定された全ての階層について符号化が終了したか否かを判定し、終了していると判定した場合はステップS522へ進み、終了していないと判定した場合はステップS502に戻る。ここでは、第2拡張レイヤまでの符号化が終了しているため、ステップS522に進む。ステップS522にて、全てのフレームの符号化が終了すれば、符号化処理を終了する。   In step S503, the overall control unit 115 determines whether or not encoding has been completed for all layers set by the number-of-layers setting unit 401. If it is determined that coding has been completed, the process proceeds to step S522. If it is determined that the processing has not been completed, the process returns to step S502. Here, since the encoding up to the second enhancement layer has been completed, the process proceeds to step S522. If encoding of all frames is completed in step S522, the encoding process ends.

以上の動作によって、拡張レイヤが複数階層存在する場合においても、独立タイルセットを必要な符号データだけを復号し、最小の画像の参照のみで復号画像を再生できる符号データを生成できる。   With the above operation, even when there are a plurality of layers of enhancement layers, it is possible to decode only the necessary code data for the independent tile set and generate code data capable of reproducing the decoded image only by referring to the minimum image.

また、MCTS SEI符号がビットストリームに存在する場合、タイル位置一致情報であるvui_parametersのtile_boundaries_aligned_flag符号は1に必ずセットされる。即ち、vui_parametersにおいて、MCTS SEI符号がビットストリームに存在する場合、符号データとしてのtile_boundaries_aligned_flag符号を省略することもできる。もし、MCTS SEI符号がビットストリームに無ければ、tile_boundaries_aligned_flag符号の値を符号化し、その符号データがビットストリームに含まれる。MCTS SEI符号がビットストリームにあれば、tile_boundaries_aligned_flag符号の値は符号化されず、復号側で必ず1の値が設定される。このようにすることで、冗長となるtile_boundaries_aligned_flag符号を削減することが可能になる。   When the MCTS SEI code exists in the bit stream, the tile_boundaries_aligned_flag code of vui_parameters, which is tile position matching information, is always set to 1. That is, in the vui_parameters, when the MCTS SEI code exists in the bit stream, the tile_boundaries_aligned_flag code as the code data can be omitted. If the MCTS SEI code does not exist in the bit stream, the value of the tile_boundaries_aligned_flag code is encoded, and the code data is included in the bit stream. If the MCTS SEI code is in the bit stream, the value of the tile_boundaries_aligned_flag code is not encoded, and a value of 1 is always set on the decoding side. By doing so, it becomes possible to reduce redundant tile_boundaries_aligned_flag codes.

また、階層符号化において、重要な領域を切り出し、その切り出された領域に独立タイルセットを適応させて符号化することで、重要な領域を高速に読み出せる符号データを生成することができる。   Also, in hierarchical coding, an important area is cut out, and an independent tile set is applied to the cut-out area and coding is performed, so that code data from which the important area can be read at high speed can be generated.

<実施形態2>
以下、図6を用いて本実施形態に係る画像復号装置を構成する各処理部の概要を説明する。図6は、本実施形態の画像復号部605を有する画像表示装置600を示すブロック図である。本実施形態では、実施形態1で生成されたビットストリームを復号する場合を例にとり説明を行う。
<Embodiment 2>
Hereinafter, an overview of each processing unit included in the image decoding device according to the present embodiment will be described with reference to FIG. FIG. 6 is a block diagram illustrating an image display device 600 including the image decoding unit 605 according to the present embodiment. In the present embodiment, a case where the bit stream generated in the first embodiment is decoded will be described as an example.

601は通信等によってビットストリームを入力するインターフェースである。602はインターフェース601から入力されたビットストリームや予め記録されていたビットストリームを格納する記憶部である。603はユーザによって指示されたビットストリームを表示するための、表示方法を指定する表示制御部である。表示制御部603は復号する階層(レイヤ)と復号する領域(表示領域)とを表示制御信号として画像復号部605に出力する。本実施形態において、復号する階層は階層数で表され、表示領域は表示するタイルの位置で表されるものとするが、本発明はこれに限定されない。604はセレクタであり、入力するビットストリームの入力先を指定する。605は本実施形態に係る画像復号部である。606は表示部であり、画像復号部605で生成された復号画像を表示する。   An interface 601 inputs a bit stream through communication or the like. A storage unit 602 stores a bit stream input from the interface 601 or a previously recorded bit stream. A display control unit 603 specifies a display method for displaying the bit stream specified by the user. The display control unit 603 outputs the layer to be decoded (layer) and the area to be decoded (display area) to the image decoding unit 605 as a display control signal. In the present embodiment, the layer to be decoded is represented by the number of layers, and the display area is represented by the position of the tile to be displayed. However, the present invention is not limited to this. A selector 604 specifies an input destination of a bit stream to be input. Reference numeral 605 denotes an image decoding unit according to the present embodiment. A display unit 606 displays the decoded image generated by the image decoding unit 605.

次に、画像表示装置600における画像の表示動作を以下に説明する。尚、表示制御部603が、ユーザによってビットストリームの基本レイヤ画像を復号及び表示すること指示された場合について説明する。これは監視カメラ等によって撮像された画像を符号化したビットストリームを入力して、当該撮像された画像の全体をモニタリングする場合に相当する。インターフェース601は、監視カメラ等からフレーム単位で入力されるビットストリーム(入力ビットストリーム)を受信し、記憶部602及びセレクタ604に出力する。記憶部602は、入力ビットストリームを記録し、セレクタ604は表示制御部603による指示によって、入力ビットストリームを画像復号部605に出力する。画像復号部605は、表示制御部603から表示制御信号として表示するレイヤ、及び表示するタイル等の情報を入力する。即ち、表示制御部603はビットストリームの基本レイヤの復号及び表示をユーザによって指示されるため、画像復号部605には、復号するレイヤが基本レイヤであることを示す情報と、表示領域が全てのタイルであることを示す情報とが入力される。   Next, an image display operation in the image display device 600 will be described below. The case where the display control unit 603 is instructed by the user to decode and display the base layer image of the bit stream will be described. This corresponds to a case where a bit stream obtained by encoding an image captured by a monitoring camera or the like is input and the entire captured image is monitored. The interface 601 receives a bit stream (input bit stream) input in units of frames from a monitoring camera or the like, and outputs the bit stream to the storage unit 602 and the selector 604. The storage unit 602 records the input bit stream, and the selector 604 outputs the input bit stream to the image decoding unit 605 according to an instruction from the display control unit 603. The image decoding unit 605 inputs information such as a layer to be displayed and a tile to be displayed from the display control unit 603 as a display control signal. That is, since the display control unit 603 is instructed by the user to decode and display the base layer of the bit stream, the image decoding unit 605 includes information indicating that the layer to be decoded is the base layer, Information indicating a tile is input.

以下、図7を用いて本実施形態に係る画像復号部605を構成する各処理部の概要を説明する。図7は、本実施形態の画像復号部605を示すブロック図である。   Hereinafter, an overview of each processing unit included in the image decoding unit 605 according to the present embodiment will be described with reference to FIG. FIG. 7 is a block diagram illustrating the image decoding unit 605 according to the present embodiment.

図7における701は、セレクタ604から出力されたビットストリームを入力する端子である。説明を容易にするため、ビットストリームは、ヘッダデータや1フレームずつの符号データが入力されるものとする。本実施形態において、このフレーム単位の符号データには、1フレームを構成する全ての階層符号データが含まれているものとするが、本発明はこれに限定されず、スライス等の単位で入力されても構わない。また、フレームのデータ構成もこれに限定されない。   Reference numeral 701 in FIG. 7 denotes a terminal for inputting the bit stream output from the selector 604. For ease of explanation, it is assumed that header data and code data for each frame are input to the bit stream. In the present embodiment, it is assumed that the code data in frame units includes all the hierarchical code data constituting one frame. However, the present invention is not limited to this, and input data is input in units such as slices. It does not matter. Further, the data configuration of the frame is not limited to this.

702は図6の表示制御部603から出力された復号に関する表示制御信号を入力する端子である。表示制御信号としては、復号するレイヤ及び復号するタイルの位置情報が入力される。さらに、端子702に入力された表示制御信号は、分離部704、基本レイヤ復号部707、拡張レイヤ復号部710に入力される。703はバッファであり、端子701から入力された1フレーム分の階層符号データを格納する。   Reference numeral 702 denotes a terminal for inputting a display control signal regarding decoding output from the display control unit 603 in FIG. As the display control signal, a layer to be decoded and position information of a tile to be decoded are input. Further, the display control signal input to terminal 702 is input to separation section 704, base layer decoding section 707, and enhancement layer decoding section 710. A buffer 703 stores one frame of hierarchical code data input from the terminal 701.

704は分離部である。分離部704は、バッファ703から入力された階層符号データからヘッダ符号データ、基本レイヤ符号データ、各拡張レイヤ符号データを分離する。さらに、分離部704は、レイヤ毎に分離した階層符号データ(基本レイヤ符号データ及び各拡張レイヤ符号データ)を、タイル毎の符号データにそれぞれ分割して出力する。そして、分離されたそれぞれの符号データは、ヘッダ復号部705、基本レイヤ復号部707、拡張レイヤ復号部710に出力される。また、分離部704は、タイル毎に分離した符号データを各処理部へ出力する場合に、出力するタイル(復号対象のタイル)の番号をタイルの位置情報として独立タイル判定部706に出力する。   Reference numeral 704 denotes a separation unit. The separation unit 704 separates header code data, base layer code data, and each enhancement layer code data from the hierarchical code data input from the buffer 703. Further, separation section 704 divides the hierarchical code data (base layer code data and each enhancement layer code data) separated for each layer into code data for each tile and outputs the code data. The separated code data is output to header decoding section 705, base layer decoding section 707, and enhancement layer decoding section 710. When outputting the code data separated for each tile to each processing unit, the separation unit 704 outputs the number of the output tile (the tile to be decoded) to the independent tile determination unit 706 as tile position information.

705はヘッダ復号部である。ヘッダ復号部705は、シーケンス単位及びピクチャ単位のヘッダ符号データを復号し、復号に必要なパラメータを再生する。特に、ヘッダ符号データにMCTS SEI符号が存在する場合、ヘッダ復号部705はこれも復号する。特に、ヘッダ復号部705は、独立タイルフラグと独立タイル位置情報とを復号し、再生する。706は、復号対象のタイル(復号対象タイル)が独立タイルであるか否かを判定する独立タイル判定部である。独立タイル判定部706は、ヘッダ復号部705から入力した独立タイルフラグ及び独立タイル位置情報と、分離部704から入力した復号対象タイルの位置情報とに基づいて、復号対象タイルが独立タイルであるか否かを判定する。さらに、独立タイル判定部706は、判定結果を基本レイヤ復号部707及び拡張レイヤ復号部710に入力する。   705 is a header decoding unit. The header decoding unit 705 decodes header code data in sequence units and picture units, and reproduces parameters necessary for decoding. In particular, when the MCTS SEI code exists in the header code data, the header decoding unit 705 also decodes the MCTS SEI code. In particular, the header decoding unit 705 decodes and reproduces the independent tile flag and the independent tile position information. Reference numeral 706 denotes an independent tile determination unit that determines whether a tile to be decoded (a tile to be decoded) is an independent tile. The independent tile determination unit 706 determines whether the decoding target tile is an independent tile based on the independent tile flag and the independent tile position information input from the header decoding unit 705 and the position information of the decoding target tile input from the separation unit 704. Determine whether or not. Further, independent tile determination section 706 inputs the determination result to base layer decoding section 707 and enhancement layer decoding section 710.

707は基本レイヤ復号部である。基本レイヤ復号部707は、分離部704で分離された基本レイヤのタイルの符号データを復号し、基本レイヤの復号画像を生成する。708はフレームメモリであり、基本レイヤ復号部707で生成された基本レイヤの各タイルの復号画像を保持する。709は拡大部であり、基本レイヤの復号画像を拡張レイヤの解像度に拡大して拡大画像を生成する。720はセレクタであり、基本レイヤの復号画像又は拡張レイヤの復号画のうち所望の復号画像を選択し、選択した復号画像を端子712に出力する。712は端子であり、セレクタ720から入力された復号画像を画像復号部605の外部に出力する。   Reference numeral 707 denotes a base layer decoding unit. The base layer decoding unit 707 decodes the code data of the tile of the base layer separated by the separation unit 704, and generates a decoded image of the base layer. Reference numeral 708 denotes a frame memory which holds a decoded image of each tile of the base layer generated by the base layer decoding unit 707. An enlargement unit 709 enlarges the decoded image of the base layer to the resolution of the enhancement layer to generate an enlarged image. A selector 720 selects a desired decoded image from the decoded image of the base layer or the decoded image of the enhancement layer, and outputs the selected decoded image to the terminal 712. A terminal 712 outputs the decoded image input from the selector 720 to the outside of the image decoding unit 605.

710は拡張レイヤ復号部である。拡張レイヤ復号部710は、分離部704で分離された拡張レイヤのタイルの符号データを復号し、拡張レイヤの復号画像を生成する。711はフレームメモリであり、拡張レイヤ復号部710で生成された拡張レイヤの各タイルの復号画像を保持する。   710 is an enhancement layer decoding unit. The enhancement layer decoding unit 710 decodes the code data of the tile of the enhancement layer separated by the separation unit 704, and generates a decoded image of the enhancement layer. A frame memory 711 holds a decoded image of each tile of the enhancement layer generated by the enhancement layer decoding unit 710.

全体制御部714は、画像復号部605の各処理部の制御、及び各処理部間のパラメータ伝達を行う。尚、図1において、全体制御部714と画像復号部605内の各処理部との間の結線を省略している。そして、全体制御部714は画像復号部605内の各処理部の制御、及び各処理部間のパラメータの読み書きを、パラメータ信号線またはレジスタバスのいずれかを通じて行うことが可能である。また、本実施形態において、図1の全体制御部714は、画像復号部605内に設置されているが、本発明はこれに限定されない。即ち、全体制御部714は、当該画像復号部605外に設置され、当該画像復号部605内の各処理部の制御、及び各処理部間のパラメータの読み書きを、パラメータ信号線またはレジスタバスのいずれかを通じて行ってもよい。   The overall control unit 714 controls each processing unit of the image decoding unit 605 and transmits parameters between the processing units. In FIG. 1, the connection between the overall control unit 714 and each processing unit in the image decoding unit 605 is omitted. Then, the overall control unit 714 can control each processing unit in the image decoding unit 605 and read and write parameters between the processing units through either the parameter signal line or the register bus. Further, in the present embodiment, the overall control unit 714 in FIG. 1 is installed in the image decoding unit 605, but the present invention is not limited to this. That is, the overall control unit 714 is provided outside the image decoding unit 605, and controls each processing unit in the image decoding unit 605, and reads and writes parameters between the processing units, using either a parameter signal line or a register bus. You may go through or.

上述した画像復号部605における、画像の復号動作を図8に示したフローチャートを用いて以下に説明する。   The image decoding operation of the image decoding unit 605 will be described below with reference to the flowchart shown in FIG.

まず、復号対象のレイヤ(復号対象レイヤ)が基本レイヤのみの場合について述べる。ここでは、ユーザが表示制御部603に、インターフェース601から入力されるビットストリームにおいて基本レイヤの、復号及び表示を指示するとする。   First, the case where the decoding target layer (decoding target layer) is only the base layer will be described. Here, it is assumed that the user instructs the display control unit 603 to decode and display the base layer in the bit stream input from the interface 601.

ステップS801にて、端子701から入力された、ビットストリームの先頭に存在するヘッダ符号データは、バッファ703及び分離部704による処理を経てヘッダ復号部705に入力される。ヘッダ復号部705は、シーケンスヘッダの1つであるvideo_parameter_setを復号する。このvideo_parameter_setには階層符号化の階層数を表すvps_max_layers_minus1符号が含まれる。本実施形態において、vps_max_layers_minus1符号は1である。続いてヘッダ復号部705は、Sequence parameter set符号を復号する。Sequence parameter set符号にはvui_parametersも含まれる。vui_parametersにはタイル位置一致情報であるtile_boundaries_aligned_flag符号が含まれている。本実施形態において、tile_boundaries_aligned_flag符号は1である。   In step S801, the header code data existing at the head of the bit stream input from the terminal 701 is input to the header decoding unit 705 through the processing by the buffer 703 and the separation unit 704. The header decoding unit 705 decodes video_parameter_set, which is one of the sequence headers. The video_parameter_set includes a vps_max_layers_minus1 code indicating the number of layers of the hierarchical coding. In the present embodiment, the code of vps_max_layers_minus1 is 1. Subsequently, the header decoding unit 705 decodes the Sequence parameter set code. The Sequence parameter set code also includes vui_parameters. vui_parameters includes a tile_boundaries_aligned_flag code that is tile position matching information. In the present embodiment, the tile_boundaries_aligned_flag code is 1.

ステップS802にて、ヘッダ復号部705は、Picture parameter set符号を復号する。これらのヘッダ符号データの復号については非特許文献1に詳細に記載されているのでここでは説明を省略する。   In step S802, the header decoding unit 705 decodes the Picture parameter set code. Since the decoding of the header code data is described in detail in Non-Patent Document 1, the description is omitted here.

ステップS803にて、独立タイル判定部706は、復号対象のフレーム内に独立タイルがあるか否かを判定する。そして、判定結果を、独立タイルフラグとする。尚、実際には〜にMCTS SEIの有無を判定する。ヘッダ符号データにMCTS SEIが存在するのであれば、独立タイルフラグを1とし、ステップS804に進む。ヘッダ符号データにMCTS SEIが存在しないのであれば、独立タイル可否フラグを0とし、ステップS805に進む。本実施形態では、ヘッダ符号データにMCTS SEIが存在すると判断して、独立タイルフラグを1とし、ステップS804に進む。尚、復号対象のフレーム内に独立タイルが存在する場合、タイル位置一致情報であるvui_parametersのtile_boundaries_aligned_flag符号は1となっている必要がある。もし、vui_parametersのtile_boundaries_aligned_flag符号が1でなければ、ヘッダ復号部705は、エラーを返して復号を停止するようにしても構わない。さらに、ヘッダ復号部705は、独立タイルフラグを独立タイル判定部706、基本レイヤ復号部707、及び拡張レイヤ復号部710に入力さする。   In step S803, the independent tile determination unit 706 determines whether there is an independent tile in the decoding target frame. Then, the determination result is set as an independent tile flag. In practice, the presence or absence of MCTS SEI is determined. If MCTS SEI exists in the header code data, the independent tile flag is set to 1 and the process proceeds to step S804. If the MCTS SEI does not exist in the header code data, the independent tile availability flag is set to 0, and the process proceeds to step S805. In the present embodiment, it is determined that MCTS SEI exists in the header code data, the independent tile flag is set to 1, and the process proceeds to step S804. When an independent tile exists in the frame to be decoded, the tile_boundaries_aligned_flag code of vui_parameters, which is tile position matching information, needs to be 1. If the tile_boundaries_aligned_flag code of vui_parameters is not 1, the header decoding unit 705 may return an error and stop decoding. Further, the header decoding unit 705 inputs the independent tile flag to the independent tile determination unit 706, the base layer decoding unit 707, and the enhancement layer decoding unit 710.

ステップS804にて、ヘッダ復号部705はMCTS SEI符号を復号し、独立タイルフラグと独立タイル位置情報を取得する。   In step S804, the header decoding unit 705 decodes the MCTS SEI code and acquires the independent tile flag and the independent tile position information.

ステップS805にて、分離部704は端子702から入力された表示部分にかかるタイルの位置情報を入力する。本実施形態において、基本レイヤ全体の表示が指示されている。このため、表示部分にかかるタイルは基本レイヤの全てのタイルとなる。即ち、分離部704は、基本レイヤの復号対象タイルの符号データを、タイル0からタイル番号順でバッファ703から抽出し、基本レイヤ復号部707に出力する。   In step S805, the separation unit 704 inputs the position information of the tile related to the display portion input from the terminal 702. In the present embodiment, display of the entire base layer is instructed. Therefore, the tiles on the display portion are all the tiles of the base layer. That is, the separation unit 704 extracts the code data of the tile to be decoded of the base layer from the buffer 703 in tile order from tile 0 and outputs the code data to the base layer decoding unit 707.

ステップS806にて、独立タイル判定部706は、分離部704から復号対象タイルの番号を入力する。また、独立タイル判定部706は、ヘッダ復号部705から独立タイル位置情報を入力する。本実施形態では、独立タイルセットは1つであり、独立タイル位置情報は5と6である。独立タイル判定部706は、復号対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。そして、復号対象タイルのタイル番号が独立タイル位置情報のタイル番号と一致する場合(ステップS806のYES)、独立タイル判定部706は復号対象タイルが独立タイルであると判定し、ステップS807に進む。復号対象タイルのタイル番号が独立タイル位置情報のタイル番号と一致しない場合(ステップS806のNO)、復号対象タイルが独立タイルセットのタイルではないと判定し、ステップS808に進む。   In step S806, the independent tile determination unit 706 inputs the number of the tile to be decoded from the separation unit 704. Further, the independent tile determination unit 706 inputs the independent tile position information from the header decoding unit 705. In the present embodiment, there is one independent tile set, and the independent tile position information is 5 and 6. The independent tile determination unit 706 compares the tile number of the decoding target tile with the tile number of the independent tile position information. If the tile number of the decoding target tile matches the tile number of the independent tile position information (YES in step S806), the independent tile determination unit 706 determines that the decoding target tile is an independent tile, and proceeds to step S807. If the tile number of the decoding target tile does not match the tile number of the independent tile position information (NO in step S806), it is determined that the decoding target tile is not a tile of the independent tile set, and the process proceeds to step S808.

ステップS807にて、復号対象タイルは基本レイヤの復号対象のフレームにおける独立タイルである。このため、基本レイヤ復号部707は、復号済みの基本レイヤの他のフレームにおける、当該復号対象タイルの位置と相対的に等しい位置の独立タイルセット内の独立タイルと、復号対象タイル内の復号済み画素のみを参照して復号を行う。即ち、基本レイヤ復号部707は、フレームメモリ708に格納されている、復号対象タイルの位置と相対的に等しい位置の独立タイルセット内の独立タイルの復号画像を参照してフレーム間予測を行う。さらに、基本レイヤ復号部707は、フレームメモリ708に格納されている復号対象タイル内の復号画像を参照してイントラ予測を行う。そして、基本レイヤ復号部707は、復号した基本レイヤの復号対象タイルの復号画像をフレームメモリ708に格納する。尚、当該復号画像は以後のタイルの復号時に参照される。また、基本レイヤ復号部707は、当該基本レイヤのタイルの復号画像をセレクタ720及び端子712を介して図6の表示部606へ出力する。   In step S807, the decoding target tile is an independent tile in the decoding target frame of the base layer. For this reason, the base layer decoding unit 707 outputs the independent tile in the independent tile set at a position relatively equal to the position of the decoding target tile in another frame of the decoded base layer and the decoded tile in the decoding target tile. Decoding is performed with reference to only pixels. That is, the base layer decoding unit 707 performs the inter-frame prediction with reference to the decoded image of the independent tile in the independent tile set at a position relatively equal to the position of the decoding target tile stored in the frame memory 708. Further, the base layer decoding unit 707 performs intra prediction with reference to the decoded image in the decoding target tile stored in the frame memory 708. Then, the base layer decoding unit 707 stores the decoded image of the decoding target tile of the decoded base layer in the frame memory 708. Note that the decoded image is referred to when decoding tiles thereafter. Further, the base layer decoding unit 707 outputs the decoded image of the tile of the base layer to the display unit 606 of FIG. 6 via the selector 720 and the terminal 712.

ステップS808にて、復号対象タイルは基本レイヤの復号対象のフレームにおける独立タイルではない。このため、基本レイヤ復号部707は、復号済みのフレームの基本レイヤの復号画像と復号対象のフレームの基本レイヤの復号済み画素を参照して復号を行う。即ち基本レイヤ復号部707は、フレームメモリ708に格納されている復号画像を参照してフレーム間予測を行う。さらに、基本レイヤ復号部707は、復号対象タイル内の復号済みの復号画像を参照してイントラ予測を行う。そして、基本レイヤ復号部707は、復号した基本レイヤの復号対象タイルの復号画像をフレームメモリ708に格納する。尚、当該復号画像は以降のタイルの復号時に参照される。また、基本レイヤ復号部707は、当該基本レイヤのタイルの復号画像をセレクタ720及び端子712を介して図6の表示部606へ出力する。   In step S808, the decoding target tile is not an independent tile in the decoding target frame of the base layer. Therefore, the base layer decoding unit 707 performs decoding with reference to the decoded image of the base layer of the decoded frame and the decoded pixels of the base layer of the decoding target frame. That is, the base layer decoding unit 707 performs inter-frame prediction with reference to the decoded image stored in the frame memory 708. Furthermore, the base layer decoding unit 707 performs intra prediction with reference to the decoded image within the tile to be decoded. Then, the base layer decoding unit 707 stores the decoded image of the decoding target tile of the decoded base layer in the frame memory 708. Note that the decoded image is referred to when decoding the subsequent tiles. Further, the base layer decoding unit 707 outputs the decoded image of the tile of the base layer to the display unit 606 of FIG. 6 via the selector 720 and the terminal 712.

ステップS809にて、全体制御部714は、基本レイヤの1フレーム分の全てのタイルの符号データを復号したか否かを判定する。基本レイヤの1フレーム分の全てのタイルの符号データの復号処理が終わっていないと判定された場合(ステップS809のNO)、ステップS805に戻り、分離部704は次のタイルを抽出して出力し、処理を続行する。一方、基本レイヤの1フレーム分の全てのタイルの符号データの復号処理が終了していると判定された場合(ステップS809のYES)、ステップS810に進む。   In step S809, the overall control unit 714 determines whether or not code data of all tiles for one frame of the base layer has been decoded. If it is determined that the decoding process of the code data of all tiles for one frame of the base layer has not been completed (NO in step S809), the process returns to step S805, and the separating unit 704 extracts and outputs the next tile. ,continue processing. On the other hand, when it is determined that the decoding process of the code data of all tiles for one frame of the base layer has been completed (YES in step S809), the process proceeds to step S810.

ステップS810にて、分離部704は、図6の表示制御部603から端子702を介して入力された表示制御信号に基づいて、復号及び表示するレイヤに拡張レイヤが含まれているか否かを判定する。拡張レイヤの復号及び表示が指示されている場合(ステップS810におけるYES)はステップS811に進み、そうでない場合(ステップS810におけるNO)はステップS818に進む。ここでは、基本レイヤのみの復号であることからステップS818に進み、拡張レイヤ復号部710は復号処理を行わない。   In step S810, separation section 704 determines whether or not a layer to be decoded and displayed includes an enhancement layer based on a display control signal input from display control section 603 in FIG. 6 via terminal 702. I do. If decoding and display of the enhancement layer has been instructed (YES in step S810), the process proceeds to step S811; otherwise (NO in step S810), the process proceeds to step S818. Here, since the decoding is performed only for the base layer, the process proceeds to step S818, and the enhancement layer decoding unit 710 does not perform the decoding process.

ステップS818にて、全体制御部714は、端子701から入力されるシーケンスに含まれる全てのフレームの基本レイヤの符号データ又は拡張レイヤの符号データの復号処理が終了したか否かを判定する。ここでは、全体制御部714が全てのフレームの基本レイヤの符号データの復号を終了したか否かを判定する。復号処理を行っていない基本レイヤ又は拡張レイヤの符号データが存在する場合は(ステップS818のNO)、ステップS805に進み、次のフレームの処理を行う。復号処理を行っていないフレームの符号データが存在しない場合は(ステップS818のYES)、復号処理を終了する。   In step S818, overall control unit 714 determines whether or not decoding processing of base layer code data or enhancement layer code data of all frames included in the sequence input from terminal 701 has been completed. Here, it is determined whether or not the overall control unit 714 has finished decoding the code data of the base layer of all frames. If there is code data of the base layer or the enhancement layer that has not been subjected to the decoding process (NO in step S818), the process proceeds to step S805, and the process of the next frame is performed. If there is no code data of the frame on which the decoding process has not been performed (YES in step S818), the decoding process ends.

尚、画像復号部605によって復号された画像は、図6の表示部606に出力される。表示部606は、表示制御部603から基本レイヤの画像の表示が指示されることにより、画像復号部605から出力された基本レイヤの復号画像全体を表示する。   Note that the image decoded by the image decoding unit 605 is output to the display unit 606 in FIG. The display unit 606 displays the entire decoded image of the base layer output from the image decoding unit 605 in response to an instruction to display an image of the base layer from the display control unit 603.

また、ユーザの指示によって表示制御部603から記録されている映像の基本レイヤの表示が指示された場合、セレクタ604の入力を記憶部602とする。そして、表示制御部603は記憶部602から必要なビットストリームを選択し、セレクタ604に出力するよう制御する。   When the display control unit 603 instructs the display of the basic layer of the recorded video from the user, the input of the selector 604 is set to the storage unit 602. Then, the display control unit 603 selects a necessary bit stream from the storage unit 602 and controls to output the selected bit stream to the selector 604.

続いて、復号対象レイヤが拡張レイヤの場合について述べる。ユーザから表示制御部603に、インターフェース601から入力されるビットストリームの拡張レイヤの、復号と一部の表示を指示された場合の復号処理について説明する。これは、監視カメラ等によって撮影された画像の一部を詳細にモニタリングする場合に相当する。画像復号部605は、基本レイヤと拡張レイヤの、復号及び表示する領域に含まれるタイルの番号を表示制御部603から指示される。本実施形態では説明を簡単にするために、表示する領域に含まれるタイルを図2のタイル5とタイル6の領域とする。以下、画像復号部605における、拡張レイヤの画像の復号動作を、基本レイヤのみの復号及び表示を指示された場合と同様に、図8に示したフローチャートに基づいて説明する。また、基本レイヤのみの復号と同じ動作を行う部分は説明を簡略化する。   Subsequently, a case where the decoding target layer is the enhancement layer will be described. The decoding process when the user instructs the display control unit 603 to decode and partially display the enhancement layer of the bit stream input from the interface 601 will be described. This corresponds to a case where a part of an image captured by a monitoring camera or the like is monitored in detail. The image decoding unit 605 is instructed by the display control unit 603 on the tile numbers included in the decoding and displaying areas of the base layer and the enhancement layer. In the present embodiment, for simplicity of description, the tiles included in the display area are the areas of the tiles 5 and 6 in FIG. Hereinafter, the decoding operation of the image of the enhancement layer in the image decoding unit 605 will be described with reference to the flowchart shown in FIG. Also, the description of the part that performs the same operation as the decoding of only the base layer will be simplified.

ステップS801にて、基本レイヤのみの表示を指示された場合と同様に、ヘッダ復号部705は、video_parameter_set及びSequence parameter setを復号する。そして、ヘッダ復号部705はこれらの中のvps_max_layers_minus1符号及び、tile_boundaries_aligned_flag符号を復号する。   In step S801, the header decoding unit 705 decodes the video_parameter_set and the Sequence parameter set as in the case where the display of only the base layer is instructed. Then, the header decoding unit 705 decodes the vps_max_layers_minus1 code and the tile_boundaries_aligned_flag code among them.

ステップS802にて、基本レイヤのみの表示時と同様に、ヘッダ復号部705は、Picture parameter set符号を復号する。   In step S802, the header decoding unit 705 decodes the Picture parameter set code as in the case of displaying only the base layer.

ステップS803にて、基本レイヤのみの表示時と同様に、ヘッダ復号部705はヘッダ符号データに独立タイルがあるか否かを判定する。   In step S803, the header decoding unit 705 determines whether or not there is an independent tile in the header code data, as in the case of displaying only the base layer.

ステップS804にて、基本レイヤのみの表示時と同様に、ヘッダ復号部705はMCTS SEI符号を復号し、独立タイルフラグと独立タイル位置情報を取得する。   In step S804, the header decoding unit 705 decodes the MCTS SEI code and obtains the independent tile flag and the independent tile position information as in the case of displaying only the base layer.

ステップS805にて、分離部704は端子702から入力された表示部分にかかるタイルの位置情報を入力する。本説明では、表示を指示されているタイルの位置はタイル5とタイル6である。ここではまず、分離部704は、端子702から入力された、表示を指示されているタイルの位置情報に基づいて復号対象タイルをタイル5とし、当該タイル5の基本レイヤの符号データを抽出し、抽出した符号データを基本レイヤ復号部707に出力する。また、表示を指示されているタイル位置情報を独立タイル判定部706に入力する。   In step S805, the separation unit 704 inputs the position information of the tile related to the display portion input from the terminal 702. In this description, the positions of the tiles instructed to be displayed are the tiles 5 and 6. Here, first, the separation unit 704 sets the tile to be decoded to the tile 5 based on the position information of the tile instructed to be displayed, which is input from the terminal 702, and extracts the code data of the base layer of the tile 5; The extracted code data is output to base layer decoding section 707. Also, the tile position information instructed to be displayed is input to the independent tile determination unit 706.

ステップS806にて、独立タイル判定部706は、復号対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。ここで、復号対象タイルであるタイル5は独立タイルであるので、ステップ807に進む。   In step S806, the independent tile determination unit 706 compares the tile number of the decoding target tile with the tile number of the independent tile position information. Here, since the tile 5 which is the tile to be decoded is an independent tile, the process proceeds to step 807.

ステップS807にて、復号対象タイルは独立タイルである。基本レイヤのみの表示時と同様に、基本レイヤ復号部707は、基本レイヤのタイル5の符号データを復号して復号画像を生成し、当該復号画像をフレームメモリ708へ格納する。尚、ここでは拡張レイヤの表示を行うので、基本レイヤ復号部707は、生成した復号画像の、端子712からの出力は行わない。但し、本発明はこれに限定されず、基本レイヤ復号部707が復号画像を出力することも可能である。その場合、基本レイヤ復号部707で生成される復号画像と、拡張レイヤ復号部710で生成される復号画像の両方を出力し、表示部606で選択して表示することも可能である。   In step S807, the decoding target tile is an independent tile. As in the case of displaying only the base layer, the base layer decoding unit 707 decodes the code data of the tile 5 of the base layer to generate a decoded image, and stores the decoded image in the frame memory 708. Since the enhancement layer is displayed here, the base layer decoding unit 707 does not output the generated decoded image from the terminal 712. However, the present invention is not limited to this, and the base layer decoding unit 707 can output a decoded image. In that case, it is also possible to output both the decoded image generated by the base layer decoding unit 707 and the decoded image generated by the enhancement layer decoding unit 710, and select and display them on the display unit 606.

ステップS809にて、全体制御部714は、分離部704から入力された表示部分にかかる基本レイヤの全てのタイルの符号データを復号したか否かを判定する。ここでは、タイル6の符号データの復号が終わっていないため、ステップS806に戻り、タイル6の基本レイヤの符号データの復号を行う。   In step S809, overall control unit 714 determines whether or not code data of all tiles of the base layer for the display portion input from separation unit 704 has been decoded. Here, since the decoding of the code data of the tile 6 has not been completed, the process returns to step S806 to decode the code data of the base layer of the tile 6.

以下、タイル6の基本レイヤの符号データの復号について説明する。   Hereinafter, decoding of the code data of the base layer of the tile 6 will be described.

ステップS805にて、分離部704は、タイル6の基本レイヤの符号データを抽出する。ステップS806にて、独立タイル判定部706は復号対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較し、復号対象タイルであるタイル6は独立タイルであるため、ステップS807に進む。ステップS807にて、基本レイヤ復号部707は、タイル6の基本レイヤの符号データを復号し、復号画像をフレームメモリ708へ格納する。   In step S805, separation section 704 extracts code data of the base layer of tile 6. In step S806, the independent tile determination unit 706 compares the tile number of the decoding target tile with the tile number of the independent tile position information. Since the tile 6 being the decoding target tile is an independent tile, the process proceeds to step S807. In step S807, base layer decoding section 707 decodes the code data of the base layer of tile 6, and stores the decoded image in frame memory 708.

ステップS809にて、全体制御部714は、分離部704から入力された表示部分にかかる基本レイヤの全てのタイルの符号データを復号したと判定し、ステップS810に進む。   In step S809, the overall control unit 714 determines that the code data of all tiles of the base layer for the display portion input from the separation unit 704 has been decoded, and proceeds to step S810.

ステップS810にて、分離部704は、図6の表示制御部603から端子702を介して入力された表示制御信号に基づいて、表示するレイヤに拡張レイヤが含まれているか否かを判定する。ここでは、拡張レイヤまで表示するので、ステップS811に進む。   In step S810, separation section 704 determines whether or not a layer to be displayed includes an enhancement layer based on a display control signal input via terminal 702 from display control section 603 in FIG. Here, the process proceeds to step S811 because the display is performed up to the enhancement layer.

ステップS811にて、ステップS805と同様に、分離部704は端子702から入力された表示部分にかかるタイルの位置情報を入力する。ここでは、表示を指示されているタイルの位置はタイル5とタイル6である。分離部704は、入力された、表示を指示されているタイルの位置情報に基づいて、復号対象タイルであるタイル5の拡張レイヤの符号データを抽出し、抽出した符号データを拡張レイヤ復号部710に出力する。また、表示を指示されているタイル位置情報を独立タイル判定部706に入力する。   In step S811, similarly to step S805, the separating unit 704 inputs the position information of the tile corresponding to the display portion input from the terminal 702. Here, the positions of the tiles instructed to be displayed are the tiles 5 and 6. The separation unit 704 extracts the code data of the enhancement layer of the tile 5 that is the decoding target tile based on the input position information of the tile instructed to be displayed, and extracts the extracted code data from the enhancement layer decoding unit 710. Output to Also, the tile position information instructed to be displayed is input to the independent tile determination unit 706.

ステップS812にて、ステップS806と同様に、独立タイル判定部706は復号対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。各タイル番号が一致すればステップS813に進み、一致しなければステップS815に進む。ここでは、独立タイル位置情報は5と6である。したがって、独立タイル判定部706は、復号対象タイルであるタイル5は独立タイルセットのタイルであると判定し、ステップS813に進む。   In step S812, as in step S806, the independent tile determination unit 706 compares the tile number of the decoding target tile with the tile number of the independent tile position information. If the tile numbers match, the process proceeds to step S813; otherwise, the process proceeds to step S815. Here, the independent tile position information is 5 and 6. Therefore, the independent tile determination unit 706 determines that the tile 5 that is the decoding target tile is a tile of the independent tile set, and proceeds to step S813.

ステップS813にて、復号対象タイルは拡張レイヤの復号対象のフレームにおける独立タイルである。拡大部709は、フレームメモリ708に格納されている、復号済みの基本レイヤの復号画像から復号対象タイルの位置と相対的に等しい位置の独立タイルセットに含まれる復号画像を入力する。拡大部709は、入力された独立タイルの復号画像のみを用いて、フィルタリング等で拡大して拡大画像を生成し、当該拡大画像を拡張レイヤ復号部710に出力する。   In step S813, the decoding target tile is an independent tile in the decoding target frame of the enhancement layer. The enlargement unit 709 inputs the decoded image included in the independent tile set at a position relatively equal to the position of the decoding target tile from the decoded base layer decoded image stored in the frame memory 708. The enlarging unit 709 generates an enlarged image by enlarging by filtering or the like using only the input decoded image of the independent tile, and outputs the enlarged image to the enhancement layer decoding unit 710.

ステップS814にて、拡張レイヤ復号部710は、分離部704から入力された復号対象タイルの拡張レイヤ符号データを復号する。拡張レイヤ復号部710は、拡大部709から入力される拡大画像と、フレームメモリ711に格納された復号済みの拡張レイヤの復号画像と、復号対象タイルの復号済みの画素とを参照して復号画像を生成する。即ち、拡張レイヤ復号部710は、ステップS813で生成された基本レイヤの拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ復号部710は、フレームメモリ711に格納されている拡張レイヤの復号画像のうち復号対象タイルの位置と相対的に等しい位置の独立タイルセット内の復号画像を参照してフレーム間予測を行う。さらに、拡張レイヤ復号部710は、復号対象タイル内の復号画像を参照してイントラ予測を行う。図2を用いて具体的に説明すると、フレーム206のタイル5の復号を行う際に、フレーム204の拡大画像、復号済みのフレーム205のタイル5とタイル6の復号画像、及びフレーム206のタイル5の復号済み画素を参照して復号を行う。拡張レイヤ復号部710によって生成された拡張レイヤのタイルの復号画像はフレームメモリ711に出力され、フレームメモリ711で保持される。また、拡張レイヤ復号部710で生成された拡張レイヤの復号画像は、セレクタ720及び端子712を介して図6の表示部606に出力される。   In step S814, enhancement layer decoding section 710 decodes the enhancement layer code data of the decoding target tile input from separation section 704. The enhancement layer decoding unit 710 refers to the enlarged image input from the enlargement unit 709, the decoded enhancement layer decoded image stored in the frame memory 711, and the decoded pixel of the decoding target tile. Generate That is, the enhancement layer decoding unit 710 performs inter-layer prediction with reference to the enlarged image of the base layer generated in step S813. Also, the enhancement layer decoding unit 710 refers to the decoded image in the independent tile set at a position relatively equal to the position of the decoding target tile among the decoded images of the enhancement layer stored in the frame memory 711 to perform inter-frame prediction. I do. Further, enhancement layer decoding section 710 performs intra prediction with reference to the decoded image in the tile to be decoded. More specifically, with reference to FIG. 2, when decoding the tile 5 of the frame 206, the enlarged image of the frame 204, the decoded image of the tiles 5 and 6 of the decoded frame 205, and the tile 5 of the frame 206 are decoded. The decoding is performed with reference to the already decoded pixel. The decoded image of the tile of the enhancement layer generated by the enhancement layer decoding unit 710 is output to the frame memory 711 and held in the frame memory 711. The decoded image of the enhancement layer generated by enhancement layer decoding section 710 is output to display section 606 in FIG. 6 via selector 720 and terminal 712.

ステップS817にて、全体制御部714は、分離部704から入力された表示部分にかかる拡張レイヤの全てのタイルの符号データを復号したか否かを判定する。ここでは、タイル6の拡張レイヤの符号データの復号が終わっていないため、ステップS811に戻り、タイル6の拡張レイヤの符号データの復号を行う。   In step S817, overall control unit 714 determines whether or not code data of all tiles of the enhancement layer for the display portion input from separation unit 704 has been decoded. Here, since decoding of the code data of the enhancement layer of the tile 6 has not been completed, the process returns to step S811 to decode the code data of the enhancement layer of the tile 6.

以下、タイル6の拡張レイヤの符号データの復号について説明する。   Hereinafter, decoding of the code data of the enhancement layer of the tile 6 will be described.

ステップS811にて、タイル6の拡張レイヤの符号データを抽出する。ステップS812にて、独立タイル判定部706は復号対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。ここで、復号対象タイルであるタイル6は独立タイルであるため、ステップS813に進む。   In step S811, the code data of the enhancement layer of tile 6 is extracted. In step S812, the independent tile determination unit 706 compares the tile number of the decoding target tile with the tile number of the independent tile position information. Here, since the tile 6 as the decoding target tile is an independent tile, the process proceeds to step S813.

ステップS813にて、拡大部709は、入力された独立タイルの復号画像のみを用いて、拡大画像を生成する。   In step S813, enlargement section 709 generates an enlarged image using only the decoded image of the input independent tile.

ステップS814にて、拡張レイヤ復号部710は、タイル6の拡張レイヤの符号データを復号して復号画像を生成し、当該復号画像をフレームメモリ711へ格納する。拡張レイヤ復号部710は、タイル6の拡張レイヤの符号データの復号において、拡大部709から入力される拡大画像と、フレームメモリ711に格納された復号済みの拡張レイヤの復号画像と、復号対象タイルの復号済みの画素とを参照する。即ち、拡張レイヤ復号部710は、ステップS813で生成された基本レイヤの拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ復号部710は、フレームメモリ711に格納されている拡張レイヤにおいて復号対象タイルの位置と相対的に等しい位置の独立タイルセット内の復号画像を参照してフレーム間予測を行う。さらに、拡張レイヤ復号部710は、復号対象タイル内の復号画像を参照してイントラ予測を行う。図2を用いて具体的に説明すると、フレーム206のタイル6の復号を行う際に、フレーム204の拡大画像、復号済みのフレーム205のタイル5とタイル6の復号画像、及びフレーム206のタイル6の復号済み画素を参照して復号を行う。拡張レイヤ復号部710によって生成された拡張レイヤのタイルの復号画像はフレームメモリ711に出力され、フレームメモリ711で保持される。また、拡張レイヤ復号部710で生成された拡張レイヤの復号画像は、セレクタ720及び端子712を介して図6の表示部606に出力される。   In step S814, enhancement layer decoding section 710 decodes the code data of the enhancement layer of tile 6 to generate a decoded image, and stores the decoded image in frame memory 711. When decoding the code data of the enhancement layer of the tile 6, the enhancement layer decoding unit 710 includes the enlarged image input from the enlargement unit 709, the decoded image of the decoded enhancement layer stored in the frame memory 711, and the decoding target tile. And the decoded pixel of. That is, the enhancement layer decoding unit 710 performs inter-layer prediction with reference to the enlarged image of the base layer generated in step S813. Also, the enhancement layer decoding unit 710 performs inter-frame prediction with reference to a decoded image in an independent tile set at a position relatively equal to the position of the tile to be decoded in the enhancement layer stored in the frame memory 711. Further, enhancement layer decoding section 710 performs intra prediction with reference to the decoded image in the tile to be decoded. More specifically, with reference to FIG. 2, when decoding the tile 6 of the frame 206, an enlarged image of the frame 204, a decoded image of the tiles 5 and 6 of the decoded frame 205, and a tile 6 of the frame 206 The decoding is performed with reference to the already decoded pixel. The decoded image of the tile of the enhancement layer generated by the enhancement layer decoding unit 710 is output to the frame memory 711 and held in the frame memory 711. The decoded image of the enhancement layer generated by enhancement layer decoding section 710 is output to display section 606 in FIG. 6 via selector 720 and terminal 712.

ステップS817にて、全体制御部714は、表示部分にかかる拡張レイヤの全てのタイルの符号データを復号したと判定し、ステップS818に進む。   In step S817, the overall control unit 714 determines that the code data of all tiles of the enhancement layer for the display portion has been decoded, and proceeds to step S818.

ステップS818にて、全体制御部714は、端子701から入力されるシーケンスに含まれる全てのフレームの、表示部分にかかるタイルの符号データの復号処理が終了したか否かを判定する。復号処理を行っていないフレームが存在する場合は(ステップS818のNO)、ステップS805に進み、次のフレームの処理を行う。復号処理を行っていないフレームが存在しない場合は(ステップS818のYES)、復号処理を終了する。   In step S818, overall control unit 714 determines whether or not decoding processing of code data of tiles related to a display portion of all frames included in the sequence input from terminal 701 has been completed. If there is a frame that has not been decrypted (NO in step S818), the process advances to step S805 to process the next frame. If there is no frame for which the decoding process has not been performed (YES in step S818), the decoding process ends.

以上、表示領域(復号対象タイル)が独立タイルセットで構成されている場合について述べたが、独立タイルで構成されない場合について述べる。ステップS805までは前述のとおりである。   As described above, the case where the display area (the tile to be decoded) is configured with the independent tile set has been described. The processing up to step S805 is as described above.

ステップS806にて、独立タイル判定部706は、復号対象タイルが独立タイルではないと判定し、ステップS808に進む。ステップS808にて、復号対象レイヤが基本レイヤのみの場合と同様に、基本レイヤ復号部707は、基本レイヤのタイルを復号して復号画像を生成し、当該復号画像をフレームメモリ708に格納する。尚、ここでは拡張レイヤの表示を行うので、基本レイヤ復号部707は、生成した復号画像の、端子712からの出力は行わない。   In step S806, the independent tile determination unit 706 determines that the decoding target tile is not an independent tile, and proceeds to step S808. In step S808, similarly to the case where the decoding target layer is only the base layer, base layer decoding section 707 decodes the tile of the base layer to generate a decoded image, and stores the decoded image in frame memory 708. Since the enhancement layer is displayed here, the base layer decoding unit 707 does not output the generated decoded image from the terminal 712.

ステップS809にて、全体制御部714は、基本レイヤの1フレーム分の全てのタイルの符号データを復号したか否かを判定する。ここでは、全体制御部714は基本レイヤの1フレーム分の全てのタイルの符号化データを復号したと判定して、ステップS810へ進む。ステップS810にて、分離部704は、入力された表示制御信号に基づいて拡張レイヤまで表示することが指示されていると判定し、ステップS811に進む。ステップS811にて、分離部704は、表示部分にかかるタイルの位置情報を端子702から入力する。分離部704は入力された位置情報に基づいて、復号対象タイルであるタイルの拡張レイヤの符号データを抽出する。ステップS812にて、独立タイル判定部706は、復号対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。ここでは、独立タイル判定部706は、復号対象タイルが独立タイルセットのタイルではない(復号対象タイルのタイル番号は独立タイル位置情報のタイル番号と一致しない)と判定し、ステップS815に進む。   In step S809, the overall control unit 714 determines whether or not code data of all tiles for one frame of the base layer has been decoded. Here, the overall control unit 714 determines that the encoded data of all tiles for one frame of the base layer has been decoded, and proceeds to step S810. In step S810, separation section 704 determines that display to the enhancement layer has been instructed based on the input display control signal, and proceeds to step S811. In step S811, the separation unit 704 inputs, from the terminal 702, the position information of the tile related to the display portion. The separation unit 704 extracts the code data of the enhancement layer of the tile to be decoded based on the input position information. In step S812, the independent tile determination unit 706 compares the tile number of the decoding target tile with the tile number of the independent tile position information. Here, the independent tile determination unit 706 determines that the decoding target tile is not a tile of the independent tile set (the tile number of the decoding target tile does not match the tile number of the independent tile position information), and proceeds to step S815.

ステップS815にて、復号対象タイルは独立タイルではない。拡大部709はフレームメモリ708に格納されている、復号済みの基本レイヤの復号画像から、復号対象タイルの位置と相対的に等しい位置の基本レイヤのタイルと、当該タイルの周辺の復号画像とを入力する。拡大部709は、入力された基本レイヤの復号画像を用いて、フィルタリング等で拡大して拡大画像を生成し、当該拡大画像を拡張レイヤ復号部710に出力する。   In step S815, the decoding target tile is not an independent tile. The enlarging unit 709 extracts, from the decoded base layer decoded image stored in the frame memory 708, a base layer tile at a position relatively equal to the position of the decoding target tile and a decoded image around the tile. input. The enlargement unit 709 generates an enlarged image by performing an enlargement by filtering or the like using the input decoded image of the base layer, and outputs the enlarged image to the enhancement layer decoding unit 710.

ステップS816にて、拡張レイヤ復号部710は、分離部704から入力された復号対象タイルの拡張レイヤ符号データを復号する。拡張レイヤ復号部710は、拡大部709から入力される拡大画像と、フレームメモリ711に格納された復号済みの拡張レイヤの復号画像と、復号対象タイルの復号済みの画素とを参照して復号画像を生成する。即ち、拡張レイヤ復号部710は、ステップS815で生成された基本レイヤの拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ復号部710は、フレームメモリ711に格納されている拡張レイヤの復号画像を参照してフレーム間予測を行う。さらに、拡張レイヤ復号部710は、復号対象タイル内の復号画像を参照してイントラ予測を行う。拡張レイヤ復号部710によって生成された拡張レイヤのタイルの復号画像はフレームメモリ711に出力され、フレームメモリ711で保持される。また、拡張レイヤ復号部710で生成された拡張レイヤの復号画像は、端子712を介して図6の表示部606に出力される。   In step S816, enhancement layer decoding section 710 decodes the enhancement layer code data of the decoding target tile input from separation section 704. The enhancement layer decoding unit 710 refers to the enlarged image input from the enlargement unit 709, the decoded enhancement layer decoded image stored in the frame memory 711, and the decoded pixel of the decoding target tile. Generate That is, the enhancement layer decoding unit 710 performs inter-layer prediction with reference to the enlarged image of the base layer generated in step S815. Further, the enhancement layer decoding unit 710 performs inter-frame prediction with reference to the decoded image of the enhancement layer stored in the frame memory 711. Further, enhancement layer decoding section 710 performs intra prediction with reference to the decoded image in the tile to be decoded. The decoded image of the tile of the enhancement layer generated by the enhancement layer decoding unit 710 is output to the frame memory 711 and held in the frame memory 711. The decoded image of the enhancement layer generated by enhancement layer decoding section 710 is output to display section 606 of FIG.

ステップS817にて、全体制御部714は、端子702から分離部704に入力された表示部分にかかるタイルの位置情報に基づく関係する全てのタイルが復号されたか否かを判定する。全てのタイルの復号処理が終わっていなければ(ステップS817のNO)、ステップS811に戻り、分離部704は次のタイルを抽出して出力し、処理を続行する。表示部分にかかる全てのタイルの符号データの復号処理が終了していれば(ステップS817のYES)、ステップS818に進む。   In step S817, the overall control unit 714 determines whether all the related tiles have been decoded based on the tile position information on the display portion input to the separation unit 704 from the terminal 702. If decoding of all tiles has not been completed (NO in step S817), the process returns to step S811, and the separating unit 704 extracts and outputs the next tile, and continues the processing. If the decoding process of the code data of all the tiles related to the display portion has been completed (YES in step S817), the process proceeds to step S818.

ステップS818にて、全体制御部714は、全てのフレーム分の符号データの復号処理が終了したか否かを判定する。復号処理を行っていない符号データが存在する場合は(ステップS818のNO)、ステップS805に進み、次のフレームの処理を行う。復号処理を行っていない符号データが存在しない場合は(ステップS818のYES)、復号処理を終了する。   In step S818, overall control unit 714 determines whether or not decoding processing of code data for all frames has been completed. If there is code data for which decoding processing has not been performed (NO in step S818), the process advances to step S805 to process the next frame. If there is no code data for which the decoding process has not been performed (YES in step S818), the decoding process ends.

図6に戻り、表示部606は表示制御部603から拡張レイヤの画像の表示を指示されている。このため、表示部606は、画像復号部605によって復号された拡張レイヤの復号画像を表示する。尚、拡張レイヤは基本レイヤよりも高解像度であるため、拡張レイヤの復号画像を表示することにより、表示部606は基本レイヤの画像の一部分を拡大表示したような効果が得ることができる。   Returning to FIG. 6, the display unit 606 is instructed by the display control unit 603 to display an image of the enhancement layer. For this reason, the display unit 606 displays the decoded image of the enhancement layer decoded by the image decoding unit 605. Since the enhancement layer has a higher resolution than the base layer, by displaying the decoded image of the enhancement layer, the display unit 606 can obtain the effect of enlarging and displaying a part of the image of the base layer.

また、ユーザの指示によって表示制御部603から記録されている映像の基本レイヤの表示が指示された場合、セレクタ604の入力を記憶部602とする。そして、表示制御部603は記憶部602から必要なビットストリームを選択し、セレクタ604に出力するよう制御する。   When the display control unit 603 instructs the display of the basic layer of the recorded video from the user, the input of the selector 604 is set to the storage unit 602. Then, the display control unit 603 selects a necessary bit stream from the storage unit 602 and controls to output the selected bit stream to the selector 604.

以上の構成と動作により、独立タイル及び独立タイルセットを使用する場合において、拡張レイヤと基本レイヤの各タイルの相対的な位置を一致させることができる。即ち、基本レイヤで独立復号タイルセットのタイルであれば、全ての拡張レイヤで当該タイルの位置と相対的に等しい位置のタイルは独立復号タイルセットのタイルとすることができる。これにより、階層符号化されたビットストリームを復号する場合に、いずれの階層においても独立タイルを最小の画像データの参照のみで復号できる。このように、予測において参照する画像データを減らすことにより、データの転送量を抑えたり、演算量を削減したり、低消費電力を実現することが可能となる。また、独立タイルの復号処理において基本レイヤから拡張レイヤまで各階層で、当該独立タイル以外のタイルを参照せずに独立に復号することにより、高速処理が可能となる。特に、符号化側で重要な領域に独立タイルセットを適応するように符号化してビットストリームを生成することで、当該ビットストリームを復号する場合において、当該重要な領域を高速に復号することができる。   With the above configuration and operation, when using the independent tile and the independent tile set, the relative positions of the tiles of the enhancement layer and the base layer can be matched. That is, if the tiles of the base layer are the tiles of the independent decoding tile set, the tiles at positions relatively equal to the positions of the tiles in all the enhancement layers can be the tiles of the independent decoding tile set. Thus, when decoding a layer-encoded bit stream, independent tiles can be decoded only by referring to the minimum image data in any layer. As described above, by reducing the image data to be referred to in the prediction, it is possible to suppress the data transfer amount, reduce the calculation amount, and realize low power consumption. In addition, in the independent tile decoding processing, high-speed processing can be performed by independently decoding tiles other than the independent tile in each layer from the base layer to the enhancement layer without referring to tiles other than the independent tile. In particular, when the bit stream is generated by performing encoding so as to adapt the independent tile set to the important area on the encoding side, the important area can be decoded at high speed when decoding the bit stream. .

尚、本実施形態において、図2のように、復号対象のフレームより時間的に前のフレームのみを参照フレームとして予測及び復号する例を示したが、これに限定されない。即ち、複数フレームを参照して予測及び復号する場合においても同様に参照されることは上記の説明から明白である。   Note that, in the present embodiment, as shown in FIG. 2, an example is shown in which prediction and decoding are performed only on a frame temporally earlier than the decoding target frame as a reference frame, but the present invention is not limited to this. That is, it is obvious from the above description that the same reference is made in the case of prediction and decoding with reference to a plurality of frames.

また、本実施形態において、拡大部709を用いた画像復号部605について説明したが、本発明はこれに限定されない。即ち、拡大部709を省略してもよい。または、拡大率を1とし、基本レイヤ復号部707で復号される量子化パラメータよりも拡張レイヤ復号部710で復号される量子化パラメータを小さくするようにしてもよい。これによって、SNR階層データの復号を行うことが可能になる。   Further, in the present embodiment, the image decoding unit 605 using the enlargement unit 709 has been described, but the present invention is not limited to this. That is, the enlargement unit 709 may be omitted. Alternatively, the enlargement ratio may be set to 1, and the quantization parameter decoded by the enhancement layer decoding unit 710 may be smaller than the quantization parameter decoded by the base layer decoding unit 707. This makes it possible to decode the SNR hierarchical data.

また、本実施形態において1フレームの符号データに全ての階層の符号データを含む例を取って説明したが、これに限定されず、レイヤ毎に入力されても構わない。例えば、記憶部602にレイヤ毎に符号データをまとめて格納しておき、拡張レイヤに関しては必要に応じてそこから符号データを切り出して読み出してももちろん構わない。   Further, in the present embodiment, an example has been described in which the code data of one frame includes the code data of all the hierarchies, but the present invention is not limited to this, and may be input for each layer. For example, the code data may be collectively stored for each layer in the storage unit 602, and the code data may be cut out and read from the enhancement layer as needed.

また、本実施形態において、基本レイヤと1階層の拡張レイヤ(全体で2階層)のある場合で説明したが、本発明はこれに限定されず、全体で3階層以上あっても構わない。この場合、拡張レイヤ復号部710、フレームメモリ711、及び拡大部709を1つのセットとして、当該セットを拡張レイヤの階層数分だけ設けることにより、より多くの階層に対応することができる。また、図9に示すように、拡張レイヤ復号部710、フレームメモリ911、及び拡大部909を1つずつ有し、各階層の復号において兼用で使用しても構わない。図9は、複数の階層の拡張レイヤを復号可能な画像復号装置であって、拡張レイヤ復号部710、フレームメモリ911、及び拡大部909を1つずつ有する画像復号装置のブロック図である。図9において、図7の画像復号部605の各処理部と同じ機能を果たすものについては同じ番号を付し、説明を省略する。908はフレームメモリであり、基本レイヤ復号部707で生成された復号画像を保持している。フレームメモリ908は、図7のフレームメモリ708とはセレクタ920への出力を行う機能が追加されていることが異なる。909は拡大部であり、図7の拡大部709とは、フレームメモリ911からの入力とフレームメモリ908からの入力を選択して入力が可能になっていることが異なる。911はフレームメモリであり、図7のフレームメモリ711とは、所望のタイルの符号データを拡大部909及びセレクタ920に出力する機能を付与されていることが異なる。920はセレクタであり、フレームメモリ908又はフレームメモリ911から所望の復号画像を選択して入力し、選択した復号画像を端子912に出力する。912は端子であり、セレクタ920から入力された復号画像を画像復号部605の外部に出力する。   Further, in the present embodiment, a case has been described in which there is a base layer and one enhancement layer (two layers in total). However, the present invention is not limited to this, and there may be three or more layers in total. In this case, by providing the enhancement layer decoding unit 710, the frame memory 711, and the enlargement unit 709 as one set and providing the set by the number of layers of the enhancement layer, it is possible to handle more layers. As shown in FIG. 9, an enhancement layer decoding unit 710, a frame memory 911, and an enlargement unit 909 may be provided one by one, and may be used for decoding of each layer. FIG. 9 is a block diagram of an image decoding device capable of decoding the enhancement layers of a plurality of layers, and having one enhancement layer decoding unit 710, one frame memory 911, and one enlargement unit 909. In FIG. 9, the components having the same functions as those of the respective processing units of the image decoding unit 605 in FIG. A frame memory 908 holds the decoded image generated by the base layer decoding unit 707. The frame memory 908 differs from the frame memory 708 of FIG. 7 in that a function of outputting to the selector 920 is added. An enlargement unit 909 is different from the enlargement unit 709 in FIG. 7 in that an input from the frame memory 911 and an input from the frame memory 908 can be selected and input. Reference numeral 911 denotes a frame memory, which is different from the frame memory 711 in FIG. 7 in that a function of outputting code data of a desired tile to the enlargement unit 909 and the selector 920 is provided. A selector 920 selects and inputs a desired decoded image from the frame memory 908 or the frame memory 911, and outputs the selected decoded image to the terminal 912. A terminal 912 outputs the decoded image input from the selector 920 to the outside of the image decoding unit 605.

図9に示す画像復号部605を用いて復号処理を行う場合に、各処理部の動作を図10に示したフローチャートを用いて以下に説明する。図10は、図8のステップS805からステップS818を変更した部分のみを示している。図10において、図8のステップと同様の機能を果たすステップに関しては図8と同じ番号を付与し、説明を省略する。また、本実施形態では実施形態1の図4に記載の画像符号化装置400によって、図5の符号化方法で生成されたビットストリームであって、階層数が3であるビットストリームを復号する一例につて説明する。図8のステップS801からステップS804にて、前述の通り、ヘッダ復号部705はヘッダ符号データを復号する。ここではvps_max_layers_minus1符号は2である。   When the decoding process is performed using the image decoding unit 605 illustrated in FIG. 9, the operation of each processing unit will be described below with reference to the flowchart illustrated in FIG. FIG. 10 shows only the part obtained by changing step S818 from step S805 in FIG. In FIG. 10, steps that perform the same functions as the steps in FIG. 8 are given the same numbers as in FIG. 8, and descriptions thereof will be omitted. Further, in the present embodiment, an example in which the image coding apparatus 400 illustrated in FIG. 4 of the first embodiment decodes a bit stream generated by the coding method in FIG. Will be described. In steps S801 to S804 in FIG. 8, as described above, the header decoding unit 705 decodes the header code data. Here, the code of vps_max_layers_minus1 is 2.

まず、復号対象レイヤが基本レイヤのみの場合について述べる。ここでは、ユーザが表示制御部603に、インターフェース601から入力されるビットストリームにおいて基本レイヤの全体の復号及び表示の開始を指示するとする。以下、前述の基本レイヤのみの表示時と同様に、図8のステップS805からステップS809によって、基本レイヤの1フレーム分の復号が終了しているとする。但し、基本レイヤ復号部707で生成された復号画像は全てフレームメモリ908に格納される。   First, a case where the decoding target layer is only the base layer will be described. Here, it is assumed that the user instructs the display control unit 603 to start decoding and displaying the entire base layer in the bit stream input from the interface 601. Hereinafter, it is assumed that the decoding of one frame of the base layer has been completed by steps S805 to S809 in FIG. 8 as in the case of displaying only the base layer described above. However, all the decoded images generated by the base layer decoding unit 707 are stored in the frame memory 908.

ステップS1010にて、基本レイヤ復号部707又は拡張レイヤ復号部710は、復号済みの階層の階層数と表示制御部603が指示する表示する階層とを比較し、表示する階層が復号済みであるか否かを判定する。復号済みの階層数が表示する階層に達している場合(ステップS1010のYES)、ステップS1003に進み、達していない場合(ステップS1010のNO)、ステップS1001に進む。ここでは、分離部704が、端子702から入力される表示制御信号に基づいて、表示する階層は基本レイヤのみであると判定したとする。このため、基本レイヤ復号部707は、ステップS1010において表示する階層に達したと判断し、ステップS1003に進む。   In step S1010, base layer decoding section 707 or enhancement layer decoding section 710 compares the number of layers of the decoded layers with the layer indicated by display control section 603, and determines whether the displayed layer has been decoded. Determine whether or not. If the number of decoded layers has reached the displayed layer (YES in step S1010), the process proceeds to step S1003, and if not (NO in step S1010), the process proceeds to step S1001. Here, it is assumed that separation section 704 has determined that the hierarchy to be displayed is only the base layer based on the display control signal input from terminal 702. Therefore, base layer decoding section 707 determines that the layer to be displayed has been reached in step S1010, and proceeds to step S1003.

ステップS1003にて、セレクタ920は、復号された階層のうち、最下位の階層の復号画像を選択する。この場合、最下位の階層は基本レイヤであるので、セレクタ920は、フレームメモリ908から復号された基本レイヤの復号画像を読み出し、読み出した復号画像を端子912を介して図6の表示部606に出力する。そして、表示部606は、表示制御部603から基本レイヤの画像の表示が指示されることにより、画像復号部605から出力された基本レイヤの復号画像全体を表示する。   In step S1003, selector 920 selects the decoded image of the lowest layer among the decoded layers. In this case, since the lowest layer is the base layer, the selector 920 reads the decoded image of the base layer decoded from the frame memory 908 and sends the read decoded image to the display unit 606 of FIG. Output. Then, the display unit 606 displays the entire decoded image of the base layer output from the image decoding unit 605 in response to an instruction to display the image of the base layer from the display control unit 603.

続いて、復号対象レイヤが拡張レイヤの場合について述べる。ここでは、ユーザが表示制御部603に、インターフェース601から入力されるビットストリームにおいて拡張レイヤの復号と、拡張レイヤの復号画像の一部の表示を指示した場合の、復号について説明する。また、例として、表示する階層は第2拡張レイヤ(階層数は3)として説明を行う。さらに、本実施形態では説明を簡単にするために、表示する領域に含まれるタイルを図2のタイル5とタイル6の領域とする。復号動作については基本レイヤのみの復号及び表示が指示された場合と同様に、図10に示したフローチャートに基づいて説明する。また、基本レイヤのみの復号と同じ動作を行う部分は説明を簡略化する。   Subsequently, a case where the decoding target layer is the enhancement layer will be described. Here, decoding when the user instructs the display control unit 603 to decode the enhancement layer in the bit stream input from the interface 601 and to display a part of the decoded image of the enhancement layer will be described. Further, as an example, the description will be made assuming that the displayed hierarchy is the second enhancement layer (the number of layers is three). Further, in the present embodiment, for simplicity of description, the tiles included in the display area are the tiles 5 and 6 in FIG. The decoding operation will be described based on the flowchart shown in FIG. 10, as in the case where the decoding and display of only the base layer is instructed. Also, the description of the part that performs the same operation as the decoding of only the base layer will be simplified.

ステップS806にて、独立タイル判定部706は、復号対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。ここでは、復号対象タイルであるタイル5は独立タイルであるので、ステップ807に進む。ステップS807にて、基本レイヤ復号部707は、基本レイヤのタイル5の復号データを復号して復号画像を生成し、当該復号画像をフレームメモリ908へ格納する。ステップS809にて、全体制御部714は、分離部704から入力された表示部分にかかる基本レイヤの全てのタイルの符号データを復号したか否かを判定する。   In step S806, the independent tile determination unit 706 compares the tile number of the decoding target tile with the tile number of the independent tile position information. Here, since the tile 5 which is the tile to be decoded is an independent tile, the process proceeds to step 807. In step S807, base layer decoding section 707 decodes the decoded data of tile 5 of the base layer to generate a decoded image, and stores the decoded image in frame memory 908. In step S809, overall control unit 714 determines whether or not code data of all tiles of the base layer for the display portion input from separation unit 704 has been decoded.

ステップS1010にて、基本レイヤ復号部707又は拡張レイヤ復号部710は、復号済みの階層の階層数と表示制御部603が指示する表示する階層とを比較し、表示する階層が復号済みであるか否かを判定する。ここでは、端子702から入力される表示制御信号によれば、表示する階層は第2拡張レイヤ(階層数は3)である。したがって、拡張レイヤ復号部710は、表示する階層が復号済みでないと判断し、ステップS1001に進む。   In step S1010, base layer decoding section 707 or enhancement layer decoding section 710 compares the number of layers of the decoded layers with the layer indicated by display control section 603, and determines whether the displayed layer has been decoded. Determine whether or not. Here, according to the display control signal input from the terminal 702, the displayed hierarchy is the second enhancement layer (the number of hierarchy is three). Therefore, enhancement layer decoding section 710 determines that the layer to be displayed has not been decoded, and proceeds to step S1001.

ステップS1001にて、拡張レイヤ復号部710は、ステップS807乃至ステップS808で復号された基本レイヤ、又は後述するステップS1014乃至ステップS1016で復号された階層の拡張レイヤを上位レイヤとする。さらに、続く復号対象の拡張レイヤを下位レイヤとする。最初はステップS807乃至ステップS808で符号化された基本レイヤを上位レイヤとし、第1拡張レイヤを下位レイヤとして設定する。   In step S1001, enhancement layer decoding section 710 sets the base layer decoded in steps S807 to S808 or the enhancement layer of the layer decoded in steps S1014 to S1016 described later as an upper layer. Further, the subsequent enhancement layer to be decoded is defined as a lower layer. First, the base layer encoded in steps S807 to S808 is set as an upper layer, and the first enhancement layer is set as a lower layer.

ステップS1011にて、分離部704は、端子702から入力された表示部分にかかるタイルの位置情報を入力する。本説明では、当該表示部分にかかるタイルの位置はタイル5とタイル6である。そして、分離部704は、端子702から入力された位置情報に基づいて、バッファ703に格納された階層符号データのうち復号対象タイルであるタイル5の下位レイヤ(第1拡張レイヤ)の符号データを抽出する。さらに、分離部704は、抽出した符号データを拡張レイヤ復号部710に出力する。また、分離部704は、そのタイル位置情報を独立タイル判定部706に入力する。   In step S1011, the separation unit 704 inputs the position information of the tile corresponding to the display portion input from the terminal 702. In this description, the positions of the tiles related to the display portion are the tile 5 and the tile 6. Then, based on the position information input from the terminal 702, the separation unit 704 converts the code data of the lower layer (first enhancement layer) of the tile 5 which is the tile to be decoded among the hierarchical code data stored in the buffer 703. Extract. Further, separation section 704 outputs the extracted code data to enhancement layer decoding section 710. Further, the separation unit 704 inputs the tile position information to the independent tile determination unit 706.

ステップS812にて、独立タイル判定部706は、復号対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。タイル番号が一致すればステップS1013に進み、一致しなければステップS1015に進む。ここでは、独立タイル位置情報は5と6であり、復号対象タイルであるタイル5は独立タイル位置情報のタイル番号と一致する。したがって、独立タイル判定部706は、復号対象タイルが独立タイルセットのタイルであると判定し、ステップS1013に進む。   In step S812, the independent tile determination unit 706 compares the tile number of the decoding target tile with the tile number of the independent tile position information. If the tile numbers match, the process proceeds to step S1013; otherwise, the process proceeds to step S1015. Here, the independent tile position information is 5 and 6, and the tile 5 which is the tile to be decoded matches the tile number of the independent tile position information. Therefore, the independent tile determination unit 706 determines that the tile to be decoded is a tile of the independent tile set, and proceeds to step S1013.

ステップS1013にて、復号対象タイルは独立タイルである。拡大部909は、上位レイヤが基本レイヤであることから、フレームメモリ908に格納されている基本レイヤの復号画像から復号対象タイルの位置と相対的に等しい位置の独立タイルセットに含まれる独立タイルの復号画像を入力する。拡大部909は、入力された独立タイルの復号画像のみを用いて、フィルタリング等で拡大して拡大画像を生成し、当該拡大画像を拡張レイヤ復号部710へ出力する。   In step S1013, the decoding target tile is an independent tile. Since the upper layer is the base layer, the enlargement unit 909 determines whether or not the independent tile set included in the independent tile set at a position relatively equal to the position of the decoding target tile from the decoded image of the base layer stored in the frame memory 908. Input the decoded image. The enlarging unit 909 generates an enlarged image by enlarging by filtering or the like using only the input decoded image of the independent tile, and outputs the enlarged image to the enhancement layer decoding unit 710.

ステップS1014にて、ステップS814と同様に、拡張レイヤ復号部710は分離部704から入力された復号対象タイルの下位レイヤ(第1拡張レイヤ)の符号データを復号する。拡張レイヤ復号部710は、拡大部909から入力される拡大画像と、フレームメモリ911に格納された復号済みの拡張レイヤ(第1拡張レイヤ)の復号画像と、復号対象タイルの復号済みの画素とを参照して復号画像を生成する。即ち、拡張レイヤ復号部710は、ステップS1013で生成された上位レイヤ(基本レイヤ)の拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ復号部710は、フレームメモリ911に格納されている下位レイヤ(第1拡張レイヤ)の復号画像のうち復号対象タイルの位置と相対的に等しい位置の独立タイルセット内の復号画像を参照してフレーム間予測を行う。さらに、拡張レイヤ復号部710は、復号対象タイル内の復号画像を参照してイントラ予測を行う。拡張レイヤ復号部710で復号された下位レイヤ(第1拡張レイヤ)のタイルの復号画像はフレームメモリ911に出力され、フレームメモリ911で保持される。   In step S1014, similarly to step S814, enhancement layer decoding section 710 decodes the code data of the lower layer (first enhancement layer) of the decoding target tile input from separation section 704. The enhancement layer decoding unit 710 includes an enlarged image input from the enlargement unit 909, a decoded image of the decoded enhancement layer (first enhancement layer) stored in the frame memory 911, and a decoded pixel of the decoding target tile. To generate a decoded image. That is, the enhancement layer decoding unit 710 performs inter-layer prediction with reference to the enlarged image of the upper layer (base layer) generated in step S1013. Also, the enhancement layer decoding unit 710 converts the decoded image in the independent tile set at a position relatively equal to the position of the decoding target tile among the decoded images of the lower layer (first enhancement layer) stored in the frame memory 911. Reference is made to inter-frame prediction. Further, enhancement layer decoding section 710 performs intra prediction with reference to the decoded image in the tile to be decoded. The decoded image of the tile of the lower layer (first enhancement layer) decoded by the enhancement layer decoding unit 710 is output to the frame memory 911 and held in the frame memory 911.

ステップS1017にて、全体制御部714は、分離部704から入力された表示部分にかかる下位レイヤ(第1拡張レイヤ)の全てのタイルの符号データを復号したか否かを判定する。ここでは、タイル6の拡張レイヤの符号データの復号が終わっていないため、ステップS1011に戻り、タイル6の下位レイヤ(第1拡張レイヤ)の符号データの復号を行う。   In step S1017, overall control unit 714 determines whether or not code data of all tiles of the lower layer (first enhancement layer) relating to the display portion input from separation unit 704 has been decoded. Here, since the decoding of the code data of the enhancement layer of the tile 6 has not been completed, the process returns to step S1011 to decode the code data of the lower layer (first enhancement layer) of the tile 6.

以下、タイル6の下位レイヤ(第1拡張レイヤ)の符号データの復号について説明する。   Hereinafter, decoding of the code data of the lower layer (first enhancement layer) of the tile 6 will be described.

ステップS1011にて、分離部704は、バッファ703に格納された階層符号データのうち復号対象タイルであるタイル6の下位レイヤ(第1拡張レイヤ)の符号データを抽出する。ステップS812にて、独立タイル判定部706は、復号対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。ここでは、独立タイル判定部706は、復号対象タイルであるタイル6が独立タイルであると判定し、ステップS1013に進む。   In step S1011, the separation unit 704 extracts code data of a lower layer (first enhancement layer) of the tile 6 that is a decoding target tile from among the hierarchical code data stored in the buffer 703. In step S812, the independent tile determination unit 706 compares the tile number of the decoding target tile with the tile number of the independent tile position information. Here, the independent tile determination unit 706 determines that the tile 6 to be decoded is an independent tile, and proceeds to step S1013.

ステップS1013にて、拡大部909は、入力された上位レイヤ(基本レイヤ)の独立タイルの復号画像のみを用いて、拡大画像を生成する。即ち、拡大部909はフレームメモリ908から復号画像を入力して、フィルタリング等で拡大して拡大画像を生成する。   In step S1013, the enlargement unit 909 generates an enlarged image using only the input decoded image of the independent tile of the upper layer (base layer). That is, the enlargement unit 909 receives the decoded image from the frame memory 908 and enlarges the image by filtering or the like to generate an enlarged image.

ステップS1014にて、拡張レイヤ復号部710は、タイル6の下位レイヤ(第1拡張レイヤ)の符号データを復号して復号画像を生成し、当該復号画像をフレームメモリ911へ格納する。拡張レイヤ復号部710は、タイル6の下位レイヤ(第1拡張レイヤ)の符号データの復号において、拡大部909から入力される拡大画像とフレームメモリ911に格納された復号済みの拡張レイヤの復号画像と復号対象タイルの復号済みの画素とを参照する。即ち、拡張レイヤ復号部710は、ステップS1013で生成された上位レイヤ(基本レイヤ)の拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ復号部710は、フレームメモリ911に格納されている下位レイヤ(第1拡張レイヤ)の復号画像のうち復号対象タイルの位置と相対的に等しい位置の独立タイルセット内の復号画像を参照してフレーム間予測を行う。さらに、拡張レイヤ復号部710は、復号対象タイル内の復号画像を参照してイントラ予測を行う。さらに、拡張レイヤ復号部710で復号された下位レイヤ(第1拡張レイヤ)のタイルの復号画像はフレームメモリ911に出力され、フレームメモリ911で保持される。   In step S1014, enhancement layer decoding section 710 decodes the code data of the lower layer (first enhancement layer) of tile 6, generates a decoded image, and stores the decoded image in frame memory 911. When decoding the code data of the lower layer (first enhancement layer) of tile 6, enhancement layer decoding section 710 increases the decoded image input from expansion section 909 and the decoded image of the decoded enhancement layer stored in frame memory 911. And the decoded pixel of the tile to be decoded. That is, the enhancement layer decoding unit 710 performs inter-layer prediction with reference to the enlarged image of the upper layer (base layer) generated in step S1013. Also, the enhancement layer decoding unit 710 converts the decoded image in the independent tile set at a position relatively equal to the position of the decoding target tile among the decoded images of the lower layer (first enhancement layer) stored in the frame memory 911. Reference is made to inter-frame prediction. Further, enhancement layer decoding section 710 performs intra prediction with reference to the decoded image in the tile to be decoded. Further, the decoded image of the tile of the lower layer (first enhancement layer) decoded by the enhancement layer decoding unit 710 is output to the frame memory 911 and held in the frame memory 911.

ステップS1017にて、全体制御部714は、表示部分にかかる下位レイヤ(第1拡張レイヤ)の全てのタイルの符号データを復号したと判定し、ステップS1002に進む。   In step S1017, the overall control unit 714 determines that the code data of all tiles in the lower layer (first enhancement layer) relating to the display portion has been decoded, and proceeds to step S1002.

ステップS1002にて、全体制御部714は、復号されたvps_max_layers_minus1符号で表される全ての階層について符号化が終了したか否かを判定する。全ての階層のタイルの復号処理が終わっていなければ(ステップS1002のNO)、ステップS1010に戻り、表示の判定を行う。全ての階層のタイルの復号処理が終了していれば(ステップS1002のYES)、ステップS1003に進む。ここでは、拡張レイヤの復号処理が終了していないため、拡張レイヤ復号部710は、全ての階層のタイルの復号処理が終了していないと判定し、ステップS1010に戻る。   In step S1002, the overall control unit 714 determines whether or not encoding has been completed for all layers represented by the decoded vps_max_layers_minus1 code. If decoding of tiles of all layers has not been completed (NO in step S1002), the process returns to step S1010 to determine display. If decoding of tiles of all layers has been completed (YES in step S1002), the flow advances to step S1003. Here, since the decoding processing of the enhancement layer has not been completed, the enhancement layer decoding unit 710 determines that the decoding processing of the tiles of all the layers has not been completed, and returns to step S1010.

以下、第2拡張レイヤの復号を行う。即ち、ステップS1010にて、拡張レイヤ復号部710は、表示する階層が復号済みであるか否かを判定する。端子702から入力される表示制御信号によれば、表示する階層は第2拡張レイヤである。ここでは、拡張レイヤ復号部710は、第1拡張レイヤまでしか復号していない(第2拡張レイヤは復号済みでない)と判定するため、ステップS1001に進む。ステップS1001にて、拡張レイヤ復号部710は、ステップS1014乃至ステップS1016で復号された第1拡張レイヤを上位レイヤとし、第2拡張レイヤを下位レイヤとして設定する。   Hereinafter, decoding of the second enhancement layer is performed. That is, in step S1010, enhancement layer decoding section 710 determines whether or not the layer to be displayed has been decoded. According to the display control signal input from the terminal 702, the layer to be displayed is the second enhancement layer. Here, enhancement layer decoding section 710 proceeds to step S1001 to determine that decoding has been performed only up to the first enhancement layer (the second enhancement layer has not been decoded). In step S1001, enhancement layer decoding section 710 sets the first enhancement layer decoded in steps S1014 to S1016 as an upper layer and sets the second enhancement layer as a lower layer.

ステップS1011にて、分離部704は、バッファ703に格納された階層符号データのうち下位レイヤ(第2拡張レイヤ)のタイルの符号データを抽出し、拡張レイヤ復号部710に入力する。ここではまず、分離部704は、タイル5の下位レイヤ(第2拡張レイヤ)の符号データを抽出し、抽出した符号データを拡張レイヤ復号部710に入力する。ステップS812にて、独立タイル判定部706は、復号対象タイルであるタイル5が独立タイルであると判定し、ステップS1013に進む。ステップS1013にて、拡大部909は、上位レイヤが拡張レイヤ(第1拡張レイヤ)である。このため、拡大部909は、フレームメモリ908に格納されている上位レイヤ(第1拡張レイヤ)の復号画像から復号対象タイルの位置と相対的に等しい位置の独立タイルセットに含まれる独立タイルの復号画像を入力する。即ち、拡大部909は入力された上位レイヤ(第1拡張レイヤ)の独立タイルの復号画像のみを用いて、フィルタリング等で拡大して拡大画像を生成し、当該拡大画像を拡張レイヤ復号部710に入力する。   In step S1011, separation section 704 extracts the code data of the tile of the lower layer (second enhancement layer) from the hierarchical code data stored in buffer 703 and inputs the code data to enhancement layer decoding section 710. Here, first, separation section 704 extracts code data of a lower layer (second enhancement layer) of tile 5, and inputs the extracted code data to enhancement layer decoding section 710. In step S812, the independent tile determination unit 706 determines that the tile 5 to be decoded is an independent tile, and proceeds to step S1013. In step S1013, enlargement section 909 has an upper layer as an enhancement layer (first enhancement layer). For this reason, the enlargement unit 909 decodes the independent tile included in the independent tile set at a position relatively equal to the position of the decoding target tile from the decoded image of the upper layer (first enhancement layer) stored in the frame memory 908. Enter an image. That is, the enlargement unit 909 generates an enlarged image by enlarging by filtering or the like using only the input decoded image of the independent tile of the upper layer (first enhancement layer), and sends the enlarged image to the enhancement layer decoding unit 710. input.

ステップS1014にて、拡張レイヤ復号部710は、分離部704から入力された復号対象タイルの下位レイヤ(第2拡張レイヤ)の符号データを復号する。拡張レイヤ復号部710は、次の画像を参照して復号画像を生成する。即ち、拡張レイヤ復号部710は、拡大部909から入力される上位レイヤ(第1拡張レイヤ階層)の拡大画像と、フレームメモリ911に格納された復号済みの拡張レイヤ(第2拡張レイヤ)の復号画像と、復号対象タイルの復号済みの画素とを参照する。即ち、拡張レイヤ復号部710は、ステップS1013で生成された上位レイヤ(第1拡張レイヤ)の拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ復号部710は、フレームメモリ911に格納されている下位レイヤ(第1拡張レイヤ)の復号画像のうち復号対象タイルの位置と相対的に等しい位置の独立タイルセット内の復号画像を参照してフレーム間予測を行う。さらに、拡張レイヤ復号部710は、復号対象タイル内の復号画像を参照してイントラ予測を行う。さらに、拡張レイヤ復号部710で復号された下位レイヤ(第2拡張レイヤ)のタイルの復号画像はフレームメモリ911に出力され、フレームメモリ911で保持される。   In step S1014, enhancement layer decoding section 710 decodes the code data of the lower layer (second enhancement layer) of the decoding target tile input from separation section 704. Enhancement layer decoding section 710 generates a decoded image with reference to the next image. That is, enhancement layer decoding section 710 decodes the enlarged image of the upper layer (first enhancement layer hierarchy) input from enlargement section 909 and the decoded enhancement layer (second enhancement layer) stored in frame memory 911. The image and the decoded pixel of the decoding target tile are referred to. That is, the enhancement layer decoding unit 710 performs inter-layer prediction with reference to the enlarged image of the upper layer (first enhancement layer) generated in step S1013. Also, the enhancement layer decoding unit 710 converts the decoded image in the independent tile set at a position relatively equal to the position of the decoding target tile among the decoded images of the lower layer (first enhancement layer) stored in the frame memory 911. Reference is made to inter-frame prediction. Further, enhancement layer decoding section 710 performs intra prediction with reference to the decoded image in the tile to be decoded. Further, the decoded image of the tile of the lower layer (second enhancement layer) decoded by the enhancement layer decoding unit 710 is output to the frame memory 911 and held in the frame memory 911.

ステップS1017にて、全体制御部714は、分離部704から入力された表示部分にかかる下位レイヤ(第2拡張レイヤ)の全てのタイルの符号データを復号したか否かを判定する。ここでは、タイル6の拡張レイヤの符号データの復号が終わっていないため、ステップS1011に戻り、タイル6の下位レイヤ(第2拡張レイヤ)の符号データの復号を行う。タイル6の下位レイヤの復号については、上位レイヤを第1拡張レイヤ階層とし、下位レイヤを第2拡張レイヤとすれば、前述のとおりタイル5の第2拡張レイヤの符号データの復号処理と同様であるので、説明を省略する。   In step S1017, overall control unit 714 determines whether or not code data of all tiles of the lower layer (second enhancement layer) relating to the display portion input from separation unit 704 has been decoded. Here, since the decoding of the code data of the enhancement layer of the tile 6 has not been completed, the process returns to step S1011 to decode the code data of the lower layer (second enhancement layer) of the tile 6. The decoding of the lower layer of the tile 6 is the same as the decoding process of the code data of the second enhancement layer of the tile 5 as described above, provided that the upper layer is the first enhancement layer and the lower layer is the second enhancement layer. Since there is, description is omitted.

ステップS1002にて、全体制御部714は、第2拡張レイヤまで復号したので、全ての階層のタイルの復号処理が終わったと判定し、ステップS1003に進む。ステップS1003にて、セレクタ920は、復号された階層のうち、最下位の階層の復号画像を選択する。この場合、最下位の階層は第2拡張レイヤであるので、セレクタ920はフレームメモリ911から第2拡張レイヤの復号画像を読み出し、当該第2拡張レイヤの復号画像を端子912を介して図6の表示部606に出力する。そして、表示部606は、表示制御部603から第2拡張レイヤの画像の表示が指示されることにより、画像復号部605から出力された第2拡張レイヤの復号画像全体を表示部606は表示する。   In step S1002, the overall control unit 714 determines that decoding of tiles of all layers has been completed, since decoding has been performed up to the second enhancement layer, and proceeds to step S1003. In step S1003, selector 920 selects the decoded image of the lowest layer among the decoded layers. In this case, since the lowest layer is the second enhancement layer, the selector 920 reads the decoded image of the second enhancement layer from the frame memory 911, and outputs the decoded image of the second enhancement layer via the terminal 912 in FIG. Output to the display unit 606. The display unit 606 displays the entire decoded image of the second enhancement layer output from the image decoding unit 605 when the display control unit 603 instructs the display of the image of the second enhancement layer. .

尚、上記において、表示する階層を第2拡張レイヤ(階層数は3)として説明を行った。しかしながら、階層符号化の符号データの階層数が3以上であり、表示する階層を第1拡張レイヤ(階層数は2)とした場合、第1拡張レイヤの復号が終了した(ステップS1002にてNO)後に、スタップS1010にてステップS1003に進む。このため、第2拡張レイヤより上位の階層の符号データの復号の復号は行われない。   In the above description, the layer to be displayed has been described as the second enhancement layer (the number of layers is three). However, when the number of layers of the coded data of the layer coding is three or more and the displayed layer is the first enhancement layer (the number of layers is two), decoding of the first enhancement layer is completed (NO in step S1002). Then, in step S1010, the process proceeds to step S1003. For this reason, decoding of code data of a layer higher than the second enhancement layer is not performed.

以上、表示領域(復号対象タイル)が独立タイルセットで構成されている場合について述べたが、独立タイルで構成されない場合について述べる。ステップS805までは前述のとおりである。   As described above, the case where the display area (the tile to be decoded) is configured with the independent tile set has been described. The processing up to step S805 is as described above.

ステップS806にて、独立タイル判定部706は、復号対象タイルが独立タイルではないと判定し、ステップS808に進む。ステップS808にて、復号対象レイヤが基本レイヤのみの場合と同様に、基本レイヤ復号部707は、基本レイヤのタイルを復号して復号画像を生成し、当該復号画像をフレームメモリ908に格納する。   In step S806, the independent tile determination unit 706 determines that the decoding target tile is not an independent tile, and proceeds to step S808. In step S808, similarly to the case where the decoding target layer is only the base layer, base layer decoding section 707 decodes the tile of the base layer to generate a decoded image, and stores the decoded image in frame memory 908.

ステップS809にて、全体制御部714は、基本レイヤの1フレーム分の全てのタイルの符号データを復号したか否かを判定する。ここでは、基本レイヤ復号部707は基本レイヤの1フレーム分の全てのタイルの符号化データを復号したと判定して、ステップS1010へ進む。ステップS1010にて、基本レイヤ復号部707又は拡張レイヤ復号部710は、第2拡張レイヤまで表示するので、表示する階層が復号済みでないと判定し、ステップS1001に進む。   In step S809, the overall control unit 714 determines whether or not code data of all tiles for one frame of the base layer has been decoded. Here, the base layer decoding unit 707 determines that the encoded data of all the tiles for one frame of the base layer has been decoded, and proceeds to step S1010. In step S1010, since base layer decoding section 707 or enhancement layer decoding section 710 displays up to the second enhancement layer, it determines that the layer to be displayed has not been decoded, and proceeds to step S1001.

ステップS1001にて、拡張レイヤ復号部710は、ステップS808で復号された基本レイヤを上位レイヤとし、続く復号対象の拡張レイヤ(第1拡張レイヤ)を下位レイヤとする。ステップS1011にて、分離部704は、端子702から入力された表示部分にかかるタイルの位置情報を入力する。そして、分離部704は、入力された位置情報に基づいて、バッファ703に格納された階層符号データのうち復号対象タイルの下位レイヤ(第1拡張レイヤ)の符号データを抽出する。ステップS812にて、独立タイル判定部706は、復号対象タイルのタイル番号と独立タイル位置情報のタイル番号とを比較する。ここでは、復号対象タイルであるタイル5は独立タイル位置情報のタイル番号と一致しない。従って、独立タイル判定部706は、復号対象タイルが独立タイルセットのタイルではないと判定し、ステップS1015に進む。   In step S1001, enhancement layer decoding section 710 sets the base layer decoded in step S808 as the upper layer, and sets the subsequent enhancement layer (first enhancement layer) to be decoded as the lower layer. In step S1011, the separation unit 704 inputs the position information of the tile corresponding to the display portion input from the terminal 702. Then, the separating unit 704 extracts the code data of the lower layer (first enhancement layer) of the decoding target tile from the hierarchical code data stored in the buffer 703 based on the input position information. In step S812, the independent tile determination unit 706 compares the tile number of the decoding target tile with the tile number of the independent tile position information. Here, the tile 5 that is the decoding target tile does not match the tile number of the independent tile position information. Therefore, the independent tile determination unit 706 determines that the tile to be decoded is not a tile of the independent tile set, and proceeds to step S1015.

ステップS1015にて、拡大部909はフレームメモリ908に格納されている上位レイヤ(基本レイヤ)の復号画像から、復号対象タイルの位置と相対的に等しい位置の基本レイヤのタイルと、当該タイルの周辺の復号画像とを入力する。拡大部909は、入力された基本レイヤのタイルの復号画像のみを用いて、フィルタリング等で拡大して拡大画像を生成し、当該拡大画像を拡張レイヤ復号部710に出力する。   In step S1015, the enlarging unit 909 calculates, from the decoded image of the upper layer (base layer) stored in the frame memory 908, the tile of the base layer at a position relatively equal to the position of the tile to be decoded and the periphery of the tile. Is input. The enlarging unit 909 generates an enlarged image by enlarging by filtering or the like using only the input decoded image of the tile of the base layer, and outputs the enlarged image to the enhancement layer decoding unit 710.

ステップS1016にて、拡張レイヤ復号部710は、分離部704から入力された復号対象タイルの下位レイヤ(第1拡張レイヤ)の符号データを復号する。拡張レイヤ復号部710は、以下を参照して予測画像を生成する。即ち、拡大部909から入力される上位レイヤ(基本レイヤ)の拡大画像と、フレームメモリ911に格納された復号済みの下位レイヤ(第1拡張レイヤ)の復号画像と、復号対象タイルの下位レイヤ(第1拡張レイヤ)の復号済みの画素とを参照する。さらに、拡張レイヤ復号部710は、参照により生成した予測画像と復号した予測誤差から復号画像を生成する。即ち、拡張レイヤ復号部710は、ステップS1015で生成された上位レイヤ(基本レイヤ)の拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ復号部710は、フレームメモリ711に格納されている下位レイヤ(第1拡張レイヤ)の復号画像を参照してフレーム間予測を行う。さらに、拡張レイヤ復号部710は、下位レイヤ(第1拡張レイヤ)の復号対象タイル内の復号画像を参照してイントラ予測を行う。拡張レイヤ復号部710によって生成された下位レイヤ(第1拡張レイヤ)のタイルの復号画像はフレームメモリ911に出力され、フレームメモリ911で保持される。   In step S1016, enhancement layer decoding section 710 decodes the code data of the lower layer (first enhancement layer) of the decoding target tile input from separation section 704. The enhancement layer decoding unit 710 generates a predicted image by referring to the following. That is, the enlarged image of the upper layer (base layer) input from the enlargement unit 909, the decoded image of the decoded lower layer (first enhancement layer) stored in the frame memory 911, and the lower layer ( The decoded pixel of the first enhancement layer is referred to. Further, enhancement layer decoding section 710 generates a decoded image from the predicted image generated by reference and the decoded prediction error. That is, the enhancement layer decoding unit 710 performs inter-layer prediction with reference to the enlarged image of the upper layer (base layer) generated in step S1015. Further, enhancement layer decoding section 710 performs inter-frame prediction with reference to a decoded image of a lower layer (first enhancement layer) stored in frame memory 711. Further, enhancement layer decoding section 710 performs intra prediction with reference to a decoded image in a decoding target tile of a lower layer (first enhancement layer). The decoded image of the tile of the lower layer (first enhancement layer) generated by the enhancement layer decoding unit 710 is output to the frame memory 911 and held in the frame memory 911.

ステップS1017にて、全体制御部714は、表示部分にかかる下位レイヤ(第1拡張レイヤ)の全てのタイルの符号データの復号処理を終了したか否かを判定する。ここでは拡張レイヤ復号部710は、第1拡張レイヤの全てのタイルの符号データの復号処理を終了したと判定し、ステップS1002に進む。ステップS1002にて、全体制御部714は、全ての階層について復号処理が終了したか否かを判定する。ここでは、拡張レイヤ復号部710は、第2拡張レイヤの復号処理が終了していないと判定し、ステップS1010に戻る。   In step S1017, overall control unit 714 determines whether or not decoding processing of code data of all tiles of the lower layer (first enhancement layer) for the display portion has been completed. Here, enhancement layer decoding section 710 determines that decoding processing of code data of all tiles of the first enhancement layer has been completed, and proceeds to step S1002. In step S1002, overall control section 714 determines whether or not decoding processing has been completed for all layers. Here, enhancement layer decoding section 710 determines that the decoding processing of the second enhancement layer has not ended, and returns to step S1010.

以下、第2拡張レイヤの復号を行う。ステップS1010にて、拡張レイヤ復号部710は、表示する階層である第2拡張レイヤ階層の復号が終わっていないと判定し、ステップS1001に進む。ステップS1001にて、拡張レイヤ復号部710は、ステップS1016で復号された第1拡張レイヤを上位レイヤとし、第2拡張レイヤを下位レイヤとして設定する。ステップS1011にて、分離部704は、下位レイヤ(第2拡張レイヤ)の復号対象タイルの符号データを抽出し、当該符号データを拡張レイヤ復号部710へ出力する。ステップS812にて、独立タイル判定部706は、復号対象タイルが独立タイルセットのタイルではないと判定し、ステップS1015に進む。ステップS1015にて、拡大部909は、上位レイヤが拡張レイヤ(第1拡張レイヤ)であることから、フレームメモリ908に格納されている拡張レイヤ(第1拡張レイヤ)レイヤの復号画像を入力する。そして、拡大部909は、入力された上位レイヤ(第1拡張レイヤ)の復号画像を用いて、フィルタリング等で拡大して拡大画像を生成する。この時、復号対象タイルの位置と相対的に等しい位置のタイルと、当該タイルの周囲の画素を用いて拡大画像を生成してもよい。さらに、拡大部909は、生成した拡大画像を拡張レイヤ復号部710に入力する。   Hereinafter, decoding of the second enhancement layer is performed. In step S1010, enhancement layer decoding section 710 determines that decoding of the second enhancement layer, which is the layer to be displayed, has not been completed, and proceeds to step S1001. In step S1001, enhancement layer decoding section 710 sets the first enhancement layer decoded in step S1016 as an upper layer and sets the second enhancement layer as a lower layer. In step S1011, separation section 704 extracts code data of a decoding target tile of a lower layer (second enhancement layer) and outputs the code data to enhancement layer decoding section 710. In step S812, the independent tile determination unit 706 determines that the decoding target tile is not a tile of the independent tile set, and proceeds to step S1015. In step S1015, enlargement section 909 inputs the decoded image of the enhancement layer (first enhancement layer) stored in frame memory 908 because the upper layer is the enhancement layer (first enhancement layer). The enlargement unit 909 enlarges the input decoded image of the upper layer (first enhancement layer) by filtering or the like to generate an enlarged image. At this time, an enlarged image may be generated using a tile at a position relatively equal to the position of the decoding target tile and pixels around the tile. Further, the enlargement unit 909 inputs the generated enlarged image to the enhancement layer decoding unit 710.

ステップS1014にて、拡張レイヤ復号部710は、分離部704から入力された復号対象タイルの下位レイヤ(第2拡張レイヤ)の符号データを復号する。拡張レイヤ復号部710は拡大部909から入力される上位レイヤ(第1拡張レイヤ)の拡大画像と、フレームメモリ911に格納された復号済みの拡張レイヤ(第2拡張レイヤ)の復号画像と、復号対象タイルの復号済みの画素とを参照して復号画像を生成する。即ち、拡張レイヤ復号部710はステップS1015で生成された上位レイヤ(第1拡張レイヤ)の拡大画像を参照してレイヤ間予測を行う。また、拡張レイヤ復号部710は、フレームメモリ911に格納されている下位レイヤ(第1拡張レイヤ)の復号画像を参照してフレーム間予測を行う。さらに、拡張レイヤ復号部710は、復号対象タイル内の復号画像を参照してイントラ予測を行う。拡張レイヤ復号部710で復号された下位レイヤ(第2拡張レイヤ)のタイルの復号画像はフレームメモリ911に出力され、フレームメモリ911で保持される。   In step S1014, enhancement layer decoding section 710 decodes the code data of the lower layer (second enhancement layer) of the decoding target tile input from separation section 704. Enhancement layer decoding section 710 includes an enlarged image of an upper layer (first enhancement layer) input from enlargement section 909, a decoded image of a decoded enhancement layer (second enhancement layer) stored in frame memory 911, and decoding A decoded image is generated with reference to the decoded pixel of the target tile. That is, the enhancement layer decoding unit 710 performs inter-layer prediction with reference to the enlarged image of the upper layer (first enhancement layer) generated in step S1015. Further, enhancement layer decoding section 710 performs inter-frame prediction with reference to a decoded image of a lower layer (first enhancement layer) stored in frame memory 911. Further, enhancement layer decoding section 710 performs intra prediction with reference to the decoded image in the tile to be decoded. The decoded image of the tile of the lower layer (second enhancement layer) decoded by the enhancement layer decoding unit 710 is output to the frame memory 911 and held in the frame memory 911.

ステップS1017にて、全体制御部714は、分離部704から入力された表示部分にかかる下位レイヤ(第2拡張レイヤ)の全てのタイルの符号データを復号したか否かを判定する。ここでは、拡張レイヤ復号部710は、第2拡張レイヤの全てのタイルの符号データの復号を終了したと判定し、ステップS1002へ進む。ステップS1002にて、全体制御部714は、第2拡張レイヤまで復号したので、全ての階層のタイルの復号処理が終わったと判定し、ステップS1003に進む。ステップS1003にて、セレクタ920は、復号された階層のうち、最下位の階層の復号画像を選択する。この場合、最下位の階層は第2拡張レイヤであるので、セレクタ920は、フレームメモリ911から復号画像を読み出し、読み出した復号画像を端子912を介して図6の表示部606に出力する。そして、表示部606は、表示制御部603から第2拡張レイヤの画像の表示が指示されることにより、画像復号部605から出力された第2拡張レイヤの復号画像を表示する。   In step S1017, overall control unit 714 determines whether or not code data of all tiles of the lower layer (second enhancement layer) relating to the display portion input from separation unit 704 has been decoded. Here, enhancement layer decoding section 710 determines that decoding of code data of all tiles of the second enhancement layer has been completed, and proceeds to step S1002. In step S1002, the overall control unit 714 determines that decoding of tiles of all layers has been completed, since decoding has been performed up to the second enhancement layer, and proceeds to step S1003. In step S1003, selector 920 selects the decoded image of the lowest layer among the decoded layers. In this case, since the lowest layer is the second enhancement layer, the selector 920 reads the decoded image from the frame memory 911 and outputs the read decoded image to the display unit 606 of FIG. Then, the display unit 606 displays the decoded image of the second enhancement layer output from the image decoding unit 605 when the display control unit 603 is instructed to display the image of the second enhancement layer.

尚、上記において、表示する階層は第2拡張レイヤ(階層数は3)として説明を行った。しかしながら、階層符号化の符号データの階層数が3以上であり、表示する階層を第1拡張レイヤ(階層数は2)とした場合、第1拡張レイヤの復号が終了した(ステップS1002にてNO)後に、スタップS1010にてステップS1003に進む。このため、第2拡張レイヤより上位の階層の符号データの復号は行われない。   In the above description, the layer to be displayed has been described as the second enhancement layer (the number of layers is three). However, when the number of layers of the coded data of the layer coding is three or more and the displayed layer is the first enhancement layer (the number of layers is two), decoding of the first enhancement layer is completed (NO in step S1002). Then, in step S1010, the process proceeds to step S1003. For this reason, decoding of the code data of the hierarchy higher than the second enhancement layer is not performed.

以上の構成と動作により、各拡張レイヤと基本レイヤの各レイヤにおいて独立復号タイルの相対的な位置を一致させることができる。即ち、基本レイヤで所定のタイルを独立タイルを設定した場合、各拡張レイヤにおいて、当該基本レイヤの独立タイルの位置と相対的に等しい位置のタイルは独立タイルとすることができる。これにより、階層符号化のいずれの階層においても、独立タイルの符号データの予測及び復号のために参照する画素を制限することができる。特に、図6において、表示制御部603によって表示を指示されたタイルが独立タイルであれば、記憶部602から必要な符号データを読み出し、画像復号部605は当該符号データのみを復号すれば良い。このため、従来よりも高速に処理することが可能になる。   With the above configuration and operation, the relative positions of the independent decoding tiles can be matched in each of the enhancement layer and the base layer. That is, when a predetermined tile is set as an independent tile in the base layer, in each enhancement layer, a tile at a position relatively equal to the position of the independent tile in the base layer can be set as an independent tile. This makes it possible to limit the pixels to be referred to for predicting and decoding the code data of the independent tile in any layer of the hierarchical coding. In particular, in FIG. 6, if the tile instructed to be displayed by the display control unit 603 is an independent tile, necessary code data may be read from the storage unit 602, and the image decoding unit 605 may decode only the code data. For this reason, processing can be performed at a higher speed than before.

さらに、MCTS SEI符号がビットストリームに存在する場合、タイル位置一致情報であるvui_parametersのtile_boundaries_aligned_flag符号は1に必ずセットされる。即ち、vui_parametersにおいて、MCTS SEI符号がビットストリームに存在する場合、符号データとしてのtile_boundaries_aligned_flag符号を省略することができる。もし、MCTS SEI符号がビットストリームに無ければ、tile_boundaries_aligned_flag符号を復号し、後段の復号で参照される。MCTS SEI符号がビットストリームにあれば、tile_boundaries_aligned_flag符号は符号化されていないので、復号側で必ず1の値を設定する。このようにすることで、tile_boundaries_aligned_flag符号が無くても同様に復号することが可能になる。   Further, when the MCTS SEI code exists in the bit stream, the tile_boundaries_aligned_flag code of vui_parameters, which is tile position matching information, is always set to 1. That is, in the vui_parameters, when the MCTS SEI code exists in the bit stream, the tile_boundaries_aligned_flag code as the code data can be omitted. If the MCTS SEI code does not exist in the bit stream, the tile_boundaries_aligned_flag code is decoded, and is referred to in the subsequent decoding. If the MCTS SEI code is present in the bit stream, the tile_boundaries_aligned_flag code is not coded, so that a value of 1 is always set on the decoding side. By doing so, it becomes possible to perform decoding similarly without the tile_boundaries_aligned_flag code.

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

図11は、上記実施形態1及び実施形態2に係る画像符号化装置及び画像復号装置の各処理部が行う処理を実行するコンピュータのハードウェアの構成例を示すブロック図である。   FIG. 11 is a block diagram illustrating a configuration example of hardware of a computer that executes processing performed by each processing unit of the image encoding device and the image decoding device according to the first and second embodiments.

CPU1101は、RAM1102やROM1103に格納されているコンピュータプログラムやデータを用いてコンピュータ全体の制御を行うと共に、上術した各実施形態に係る画像符号化装置及び画像復号装置が行うものとして上述した各処理を実行する。即ち、CPU1101は、図1、図4、図6、図7、及び図9に示した各処理部として機能することになる。   The CPU 1101 controls the entire computer using the computer programs and data stored in the RAM 1102 and the ROM 1103, and performs the processing described above as being performed by the image encoding device and the image decoding device according to each of the above-described embodiments. Execute That is, the CPU 1101 functions as each processing unit shown in FIGS. 1, 4, 6, 7, and 9.

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

ROM1103は、本コンピュータの設定データや、ブートプログラム等を格納する。操作部1104は、キーボードやマウス等により構成されており、本コンピュータをユーザが操作することで、各種の指示をCPU1101に対して入力することができる。出力部1105は、CPU1101による処理結果を表示させるための制御を行う。また、出力部1105は、例えば液晶ディスプレイで構成される表示部(不図示)において、CPU1601による処理結果を表示するための制御を行う。   The ROM 1103 stores setting data of the computer, a boot program, and the like. The operation unit 1104 is configured by a keyboard, a mouse, and the like, and can input various instructions to the CPU 1101 when the user operates the computer. The output unit 1105 performs control for displaying a processing result by the CPU 1101. Further, the output unit 1105 performs control for displaying a processing result by the CPU 1601 on a display unit (not illustrated) including, for example, a liquid crystal display.

外部記憶装置1106は、ハードディスクドライブ装置に代表される、大容量情報記憶装置である。外部記憶装置1106には、オペレーティングシステム(OS)や、図1、図4、図6、図7、及び図9に示した各部の機能をCPU1101に実現させるためのコンピュータプログラムが保存されている。さらには、外部記憶装置1106には、処理対象としての各画像データが保存されていても良い。   The external storage device 1106 is a large-capacity information storage device represented by a hard disk drive. The external storage device 1106 stores an operating system (OS) and a computer program for causing the CPU 1101 to realize the functions of the respective units illustrated in FIGS. 1, 4, 6, 7, and 9. Further, each image data to be processed may be stored in the external storage device 1106.

外部記憶装置1106に保存されているコンピュータプログラムやデータは、CPU1101による制御に従って適宜、RAM1102にロードされ、CPU1101による処理対象となる。I/F1107には、LANやインターネット等のネットワーク、投影装置や表示装置等の他の機器を接続することができ、本コンピュータはこのI/F1107を介して様々な情報を取得したり、送出したりすることができる。バス1108は上述の各部を繋ぐ。   The computer programs and data stored in the external storage device 1106 are appropriately loaded into the RAM 1102 under the control of the CPU 1101, and are processed by the CPU 1101. 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 1107, and the computer acquires or sends various information via the I / F 1107. Or you can. A bus 1108 connects the above-described units.

上述の構成における作動は、前述のフローチャートで説明した作動をCPU1101が中心となってその制御を行う。   In the operation in the above-described configuration, the operation described in the above-described flowchart is controlled mainly by the CPU 1101.

<その他の実施形態>
尚、本発明を容易に実現するために、ビットストリームの先頭に近いレベルで独立タイルの有無を明示することは有用である。例えば、vui_parametersを利用する方法について図12を用いて説明する。図12はvui_parametersのシンタックスを表す図である。vui_parametersの中には、ビットストリームに必ず独立タイルが存在することを表すmotion_constrained_tile_sets_flag符号が含まれている。この符号の値が1であれば、MCTS SEIを含み、ビットストリームに独立タイルが存在し、基本レイヤと拡張レイヤの各タイルの相対的な位置が一致することを示す。即ち、必ずtile_boundaries_aligned_flag符号が1で固定なので、tile_boundaries_aligned_flag符号の符号化を行う必要が無い。一方、tile_boundaries_aligned_flag符号が0であれば、MCTS SEIを含まず、ビットストリームに独立タイルが存在しない。そのため、tile_boundaries_aligned_flag符号を符号化する必要がある。このようなビットストリームを復号する画像復号装置は、ビットストリームに独立タイルが含まれるという情報を各タイルの復号処理を行う前に取得することができる。このため、特定の領域を復号する場合に、画像復号装置は独立タイルを用いて高速に復号処理をすることが可能である。さらに、その結果、部分拡大表示のようなアプリケーションが有効かどうかを、各タイルの復号処理を行う前に判断することができるようになる。
<Other embodiments>
In order to easily realize the present invention, it is useful to specify the presence or absence of an independent tile at a level near the head of the bit stream. For example, a method using vui_parameters will be described with reference to FIG. FIG. 12 is a diagram illustrating the syntax of vui_parameters. The vui_parameters includes a motion_constrained_tile_sets_flag code indicating that an independent tile always exists in the bit stream. If the value of this code is 1, it indicates that there is an independent tile in the bitstream including the MCTS SEI, and the relative positions of the tiles of the base layer and the enhancement layer match. That is, since the tile_boundaries_aligned_flag code is always fixed to 1, it is not necessary to encode the tile_boundaries_aligned_flag code. On the other hand, if the tile_boundaries_aligned_flag code is 0, no MCTS SEI is included and no independent tile exists in the bitstream. Therefore, the tile_boundaries_aligned_flag code needs to be encoded. An image decoding device that decodes such a bit stream can obtain information indicating that an independent tile is included in the bit stream before performing decoding processing on each tile. For this reason, when decoding a specific area, the image decoding apparatus can perform high-speed decoding processing using the independent tile. Further, as a result, it is possible to determine whether or not an application such as partial enlarged display is valid before performing decoding processing of each tile.

尚、画像のサイズ、タイルの分割数、独立タイルの1フレームにおける位置は上記に示した各実施形態に限定されない。   Note that the size of the image, the number of divisions of the tile, and the position of the independent tile in one frame are not limited to the above embodiments.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program and reads the program. This is the process to be performed.

Claims (14)

動画像を構成する画像を複数の階層で階層符号化する画像符号化装置であって、
第1のレイヤに対応する第1の画像とは階層が異なる、第2のレイヤに対応する第2の画像を生成する生成手段と、
前記第1の画像における、1又は複数のタイルから構成される第1のタイルセットと、前記第2の画像における、1又は複数のタイルから構成される第2のタイルセットとを符号化する符号化手段と、
情報符号化手段と
フラグ設定手段と
を有し、
前記第2のタイルセットは、前記第2の画像における、前記第1のタイルセットに対応する位置にあり、
前記符号化手段は、
前記第1の画像においては前記第1のタイルセット以外を参照せずに前記第1のタイルセットを符号化するとともに、前記第2の画像においては前記第2のタイルセット以外を参照せずに前記第2のタイルセットを符号化し、
前記符号化手段は、前記第2の画像の少なくとも一部の領域を参照して前記第1のタイルセットを符号化する場合、前記第2の画像においては前記第2のタイルセットのみを参照するよう制限して前記第1のタイルセットを符号化し、
前記情報符号化手段は、前記第1のタイルセット及び前記第2タイルセットの復号処理に関する制限を示すSEIメッセージを符号化し、
前記フラグ設定手段は、
前記情報符号化手段によって、前記第1のタイルセット及び前記第2タイルセットの復号処理に関する制限を示す前記SEIメッセージが符号化される場合、
少なくとも、前記第1の画像における前記第1のタイルセットの位置と、前記第2の画像における前記第2のタイルセットの位置とが対応することを示すtile_boundaries_aligned_flagを1に設定する
ことを特徴とする画像符号化装置。
An image encoding apparatus that hierarchically encodes an image forming a moving image in a plurality of layers,
Generating means for generating a second image corresponding to the second layer, which is different in hierarchy from the first image corresponding to the first layer;
A code for encoding a first tile set composed of one or more tiles in the first image and a second tile set composed of one or more tiles in the second image Means,
Information encoding means ;
Flag setting means ,
The second tile set is at a position in the second image corresponding to the first tile set;
The encoding means,
In the first image, the first tile set is encoded without referring to the other than the first tile set, and in the second image, the first tile set is encoded without referring to the other than the second tile set. Encoding the second set of tiles;
The encoding unit refers to only the second tile set in the second image when encoding the first tile set with reference to at least a partial region of the second image. Encoding the first set of tiles with
The information encoding means encodes the SEI message indicating restrictions on decoding of said first set of tiles and the second tile set,
The flag setting means includes:
When the information encoding means encodes the SEI message indicating a restriction on decoding processing of the first tile set and the second tile set,
At least tile_boundaries_aligned_flag indicating that the position of the first tile set in the first image corresponds to the position of the second tile set in the second image is set to 1. Image coding device.
前記第1の画像と前記第2の画像とは、解像度又は画質が互いに異なる
ことを特徴とする請求項1に記載の画像符号化装置。
The image encoding device according to claim 1, wherein the first image and the second image have different resolutions or image qualities.
前記第1のレイヤは拡張レイヤであり、
前記第2のレイヤは基本レイヤである
ことを特徴とする請求項1又は2に記載の画像符号化装置。
The first layer is an enhancement layer;
The image encoding device according to claim 1, wherein the second layer is a base layer.
前記第1の画像における前記第1のタイルセットと、前記第2の画像における前記第2のタイルセットとは各画像において同一の位置に存在する
ことを特徴とする請求項1〜3のいずれか1項に記載の画像符号化装置。
The said 1st tile set in the said 1st image, and the said 2nd tile set in the said 2nd image exist in the same position in each image. 2. The image encoding device according to claim 1.
前記SEIメッセージは、少なくとも前記第1のタイルセットの位置を示す情報を含む
ことを特徴とする請求項1〜4のいずれか1項に記載の画像符号化装置。
The image encoding device according to any one of claims 1 to 4, wherein the SEI message includes at least information indicating a position of the first tile set.
動画像を構成する画像を複数の階層で階層符号化して生成された符号化データを復号する画像復号装置であって、
1又は複数のタイルから構成されるタイルセットの復号処理に関する制限を示すSEIメッセージを復号する情報復号手段と、
前記SEIメッセージに従って、第1のレイヤに対応する第1の画像における第1のタイルセットと、前記第1のレイヤとは異なる第2のレイヤに対応する第2の画像における第2のタイルセットとを復号する復号手段と
を有し、
前記SEIメッセージが前記情報復号手段によって復号された場合、前記第2のタイルセットは、前記第2の画像における、前記第1のタイルセットに対応する位置にあり、
前記復号手段は、前記第1の画像においては前記第1のタイルセット以外を参照せずに前記第1のタイルセットを復号するとともに、前記第2の画像においては前記第2のタイルセット以外を参照せずに前記第2のタイルセットを復号し、
前記復号手段は、前記SEIメッセージが前記情報復号手段によって復号された場合であって、前記第2の画像の少なくとも一部の領域を参照して前記第1のタイルセットを復号する場合、前記第2の画像においては前記第2のタイルセットのみを参照するよう制限して前記第1のタイルセットを復号し、
前記情報復号手段において前記SEIメッセージが復号される場合において、少なくとも、前記第1の画像における前記第1のタイルセットの位置と、前記第2の画像における前記第2のタイルセットの位置とが対応することを示すtile_boundaries_aligned_flagは1となる
ことを特徴とする画像復号装置。
An image decoding apparatus that decodes encoded data generated by hierarchically encoding images constituting a moving image in a plurality of layers,
Information decoding means for decoding an SEI message indicating a restriction on decoding processing of a tile set composed of one or a plurality of tiles;
The following SEI message, a first set of tiles in the first image that corresponds to the first layer, the first second tile in the second image that corresponds to the different second layer a layer Decoding means for decoding the set and
When the SEI message is decoded by the information decoding means, the second tile set is located at a position corresponding to the first tile set in the second image;
The decoding unit decodes the first tile set in the first image without referring to the other than the first tile set, and decodes other than the second tile set in the second image. Decoding the second set of tiles without reference;
The decoding means, when the SEI message is decoded by the information decoding means, and when decoding the first tile set with reference to at least a partial area of the second image, In the second image, the first tile set is decoded by restricting to refer to only the second tile set ,
When the information decoding means decodes the SEI message, at least the position of the first tile set in the first image and the position of the second tile set in the second image correspond to each other. An image decoding apparatus characterized in that tile_boundaries_aligned_flag indicating that the image decoding is to be performed is 1 .
前記第1の画像と前記第2の画像とは、解像度又は画質が互いに異なる
ことを特徴とする請求項6に記載の画像復号装置。
The image decoding device according to claim 6, wherein the first image and the second image have different resolutions or image qualities.
前記第1のレイヤは拡張レイヤであり、
前記第2のレイヤは基本レイヤである
ことを特徴とする請求項6又は7に記載の画像復号装置。
The first layer is an enhancement layer;
The image decoding apparatus according to claim 6, wherein the second layer is a base layer.
前記第1の画像における前記第1のタイルセットと、前記第2の画像における前記第2のタイルセットとは各画像において同一の位置に存在する
ことを特徴とする請求項6〜8のいずれか1項に記載の画像復号装置。
The said 1st tile set in the said 1st image, and the said 2nd tile set in the said 2nd image exist in the same position in each image. The method of Claim 6 characterized by the above-mentioned. 2. The image decoding device according to claim 1.
前記SEIメッセージは、少なくとも前記第1のタイルセットの位置を示す情報を含む
ことを特徴とする請求項6〜9のいずれか1項に記載の画像復号装置。
The image decoding device according to any one of claims 6 to 9, wherein the SEI message includes at least information indicating a position of the first tile set.
動画像を構成する画像を複数の階層で階層符号化する画像符号化方法であって、
第1のレイヤに対応する第1の画像とは階層が異なる、第2のレイヤに対応する第2の画像を生成する生成工程と、
前記第1の画像における、1又は複数のタイルから構成される第1のタイルセットと、前記第2の画像における、1又は複数のタイルから構成される第2のタイルセットとを符号化する符号化工程と、
情報符号化工程と
フラグ設定工程と
を有し、
前記第2のタイルセットは、前記第2の画像における、前記第1のタイルセットに対応する位置にあり、
前記符号化工程において、前記第1の画像においては前記第1のタイルセット以外を参照せずに前記第1のタイルセットを符号化するとともに、前記第2の画像においては前記第2のタイルセット以外を参照せずに前記第2のタイルセットを符号化し、
前記符号化工程において、前記第2の画像の少なくとも一部の領域を参照して前記第1のタイルセットを符号化する場合、前記第2の画像においては前記第2のタイルセットのみを参照するよう制限して前記第1のタイルセットを符号化し、
前記情報符号化工程において、前記第1のタイルセット及び前記第2タイルセットの復号処理に関する制限を示すSEIメッセージを符号化し、
前記情報符号化工程において、前記第1のタイルセット及び前記第2タイルセットの復号処理に関する制限を示す前記SEIメッセージを符号化する場合、
前記フラグ設定工程において、少なくとも、前記第1の画像における前記第1のタイルセットの位置と、前記第2の画像における前記第2のタイルセットの位置とが対応することを示すtile_boundaries_aligned_flagを1に設定する
ことを特徴とする画像符号化方法。
An image encoding method for hierarchically encoding images constituting a moving image in a plurality of layers,
A generation step of generating a second image corresponding to the second layer, which is different in hierarchy from the first image corresponding to the first layer;
A code for encoding a first tile set composed of one or more tiles in the first image and a second tile set composed of one or more tiles in the second image Process,
An information encoding step ;
A flag setting step ,
The second tile set is at a position in the second image corresponding to the first tile set;
In the encoding step, the first tile set is encoded without referring to anything other than the first tile set in the first image, and the second tile set is encoded in the second image. Encoding the second set of tiles without reference to
In the encoding step, when encoding the first tile set with reference to at least a part of the area of the second image, the second image refers only to the second tile set. Encoding the first set of tiles with
In the information encoding step, a SEI message indicating restrictions on decoding of said first set of tiles and the second tile set encoding,
In the information encoding step, when encoding the SEI message indicating a restriction on decoding processing of the first tile set and the second tile set,
In the flag setting step, at least tile_boundaries_aligned_flag indicating that the position of the first tile set in the first image corresponds to the position of the second tile set in the second image is set to 1. image coding method, characterized by.
動画像を構成する画像を複数の階層で階層符号化して生成された符号化データを復号する画像復号方法であって、
1又は複数のタイルから構成されるタイルセットの復号処理に関する制限を示すSEIメッセージを復号する情報復号工程と、
前記SEIメッセージに従って、第1のレイヤに対応する第1の画像における第1のタイルセットと、前記第1のレイヤとは異なる第2のレイヤに対応する第2の画像における第2のタイルセットとを復号する復号工程と
を有し、
前記SEIメッセージが前記情報復号工程によって復号された場合、前記第2のタイルセットは、前記第2の画像における前記第1のタイルセットに対応する位置にあり、
前記復号工程において、前記第1の画像においては前記第1のタイルセット以外を参照せずに前記第1のタイルセットを復号するとともに、前記第2の画像においては前記第2のタイルセット以外を参照せずに前記第2のタイルセットを復号し、
前記SEIメッセージが前記情報復号工程によって復号された場合であって、前記第2の画像の少なくとも一部の領域を参照して前記第1のタイルセットを復号する場合、前記復号工程において、前記第2の画像においては前記第2のタイルセットのみを参照するよう制限して前記第1のタイルセットを復号し、
前記情報復号工程において前記SEIメッセージが復号される場合において、少なくとも、前記第1の画像における前記第1のタイルセットの位置と、前記第2の画像における前記第2のタイルセットの位置とが対応することを示すtile_boundaries_aligned_flagは1となる
ことを特徴とする画像復号方法。
An image decoding method for decoding encoded data generated by hierarchically encoding images constituting a moving image in a plurality of layers,
An information decoding step of decoding an SEI message indicating a restriction on decoding processing of a tile set including one or a plurality of tiles;
The following SEI message, a first set of tiles in the first image that corresponds to the first layer, the first second tile in the second image that corresponds to the different second layer a layer And a decoding step of decoding the set and
When the SEI message is decoded by the information decoding step , the second tile set is located at a position corresponding to the first tile set in the second image;
In the decoding step, in the first image, the first tile set is decoded without referring to the other than the first tile set, and in the second image, the other than the second tile set is decoded. Decoding the second set of tiles without reference;
In the case where the SEI message has been decoded in the information decoding step , and the first tile set is decoded with reference to at least a partial area of the second image, in the decoding step, In the second image, the first tile set is decoded by restricting to refer to only the second tile set ,
In the case where the SEI message is decoded in the information decoding step, at least the position of the first tile set in the first image and the position of the second tile set in the second image correspond to each other. Image_decoding method, wherein tile_boundaries_aligned_flag indicating that the image decoding is to be performed is 1 .
請求項1〜5のいずれか1項に記載の画像符号化装置の各手段としてコンピュータを機能させることを特徴とするプログラム。   A program for causing a computer to function as each unit of the image encoding device according to claim 1. 請求項6〜10のいずれか1項に記載の画像復号装置の各手段としてコンピュータを機能させることを特徴とするプログラム。   A program for causing a computer to function as each unit of the image decoding device according to claim 6.
JP2018192307A 2018-10-11 2018-10-11 Image encoding device, image encoding method, image decoding device, image decoding method, and program Active JP6656335B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018192307A JP6656335B2 (en) 2018-10-11 2018-10-11 Image encoding device, image encoding method, image decoding device, image decoding method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018192307A JP6656335B2 (en) 2018-10-11 2018-10-11 Image encoding device, image encoding method, image decoding device, image decoding method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2017238228A Division JP6419297B2 (en) 2017-12-13 2017-12-13 Image encoding device, image encoding method and program, image decoding device, image decoding method and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2020018277A Division JP6834039B2 (en) 2020-02-05 2020-02-05 Image coding device, image coding method, image decoding device, image decoding method, and program

Publications (3)

Publication Number Publication Date
JP2019024246A JP2019024246A (en) 2019-02-14
JP2019024246A5 JP2019024246A5 (en) 2019-06-06
JP6656335B2 true JP6656335B2 (en) 2020-03-04

Family

ID=65368709

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018192307A Active JP6656335B2 (en) 2018-10-11 2018-10-11 Image encoding device, image encoding method, image decoding device, image decoding method, and program

Country Status (1)

Country Link
JP (1) JP6656335B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2516224A (en) * 2013-07-11 2015-01-21 Nokia Corp An apparatus, a method and a computer program for video coding and decoding

Also Published As

Publication number Publication date
JP2019024246A (en) 2019-02-14

Similar Documents

Publication Publication Date Title
JP6261215B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
JP5950541B2 (en) Motion vector encoding device, motion vector encoding method and program, motion vector decoding device, motion vector decoding method and program
JP6271888B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
JP6656335B2 (en) Image encoding device, image encoding method, image decoding device, image decoding method, and program
JP6834039B2 (en) Image coding device, image coding method, image decoding device, image decoding method, and program
JP6419297B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
JP6184558B2 (en) Encoding device, encoding method and program, decoding device, decoding method and program
JP4109777B2 (en) Image processing apparatus and method, and computer-readable memory
JP6882564B2 (en) Encoding device, decoding method
JP6704962B2 (en) Decoding device and decoding method
JP6387159B2 (en) Decoding device, decoding method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181011

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190426

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190819

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190827

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191025

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200204

R151 Written notification of patent or utility model registration

Ref document number: 6656335

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151