Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6475603B2 - Movie data reproducing apparatus and program - Google Patents
[go: Go Back, main page]

JP6475603B2 - Movie data reproducing apparatus and program - Google Patents

Movie data reproducing apparatus and program Download PDF

Info

Publication number
JP6475603B2
JP6475603B2 JP2015227892A JP2015227892A JP6475603B2 JP 6475603 B2 JP6475603 B2 JP 6475603B2 JP 2015227892 A JP2015227892 A JP 2015227892A JP 2015227892 A JP2015227892 A JP 2015227892A JP 6475603 B2 JP6475603 B2 JP 6475603B2
Authority
JP
Japan
Prior art keywords
frame
layer
data
layer data
moving image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015227892A
Other languages
Japanese (ja)
Other versions
JP2017098705A (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.)
SoftBank Corp
Original Assignee
SoftBank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SoftBank Corp filed Critical SoftBank Corp
Priority to JP2015227892A priority Critical patent/JP6475603B2/en
Publication of JP2017098705A publication Critical patent/JP2017098705A/en
Application granted granted Critical
Publication of JP6475603B2 publication Critical patent/JP6475603B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Television Signal Processing For Recording (AREA)

Description

本発明は、動画データ再生装置およびプログラムに関する。   The present invention relates to a moving image data reproducing apparatus and a program.

基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータを受信したフレームについてはこれら両方を用いて高画質なフレームを生成し、基本レイヤのレイヤデータのみを受信したフレームについては基本レイヤのレイヤデータのみを用いて低画質なフレームを生成して、動画データを再生する動画データ再生装置が知られていた(例えば、特許文献1参照)。
[先行技術文献]
[特許文献]
[特許文献1]特開2015−050599号公報
For frames that have received base layer data and enhancement layer data, use both of these to generate high-quality frames, and for frames that have received only base layer data, use only base layer data In addition, there has been known a moving image data reproducing apparatus that generates low-quality frames and reproduces moving image data (see, for example, Patent Document 1).
[Prior art documents]
[Patent Literature]
[Patent Document 1] JP-A-2015-0505599

閲覧者が体感する動画の品質を向上できることが望ましい。   It is desirable to be able to improve the quality of moving images experienced by the viewer.

本発明の第1の態様によれば、複数の階層を含むように符号化された動画データを復号化する動画データ再生装置であって、動画データを一時的に格納するバッファと、動画データを復号化する再生部とを備え、再生部が、バッファに含まれる動画データの複数のフレームのそれぞれに含まれるレイヤデータを確認し、第1フレームにレイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータの両方が格納されており、かつ、第1フレームの次の第2フレームにレイヤID=1のレイヤデータのみが格納されている場合、第2フレーム以降の予め定められた第1の階層維持フレーム数のフレームについて、レイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータの両方が格納されている場合であっても、レイヤID=1のレイヤデータのみを用いて第2フレーム以降の第1の階層維持フレーム数のフレームを復号化し、第1フレームにレイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータの両方が格納されており、かつ、第2フレームにレイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータが格納されている場合、レイヤデータの両方を用いて第2フレームを復号化し、第1フレームにレイヤID=1のレイヤデータのみが格納されている場合、前記第2フレームについて、格納されているレイヤデータを用いて再生可能な最も高いレイヤの動画を再生するように復号化する、動画データ再生装置が提供される。   According to the first aspect of the present invention, there is provided a moving image data reproducing device for decoding moving image data encoded so as to include a plurality of hierarchies, the buffer temporarily storing the moving image data, and the moving image data. A playback unit that decodes the layer data included in each of the plurality of frames of the moving image data included in the buffer, and the layer data of layer ID = 1 and the layer ID = 2 in the first frame In the case where both layer data are stored and only the layer data of layer ID = 1 is stored in the second frame subsequent to the first frame, the predetermined first data after the second frame are stored. Even if both layer data of layer ID = 1 and layer data of layer ID = 2 are stored for frames of the number of hierarchy maintaining frames, layer ID = The first layer-maintaining frame number after the second frame is decoded using only the layer data of the second frame, and both the layer data of layer ID = 1 and the layer data of layer ID = 2 are stored in the first frame. And when the layer data of layer ID = 1 and the layer data of layer ID = 2 are stored in the second frame, the second frame is decoded using both of the layer data, and the layer ID in the first frame When only the layer data of = 1 is stored, a moving image data reproducing apparatus that decodes the second frame so as to reproduce a moving image of the highest layer that can be reproduced using the stored layer data. Provided.

上記動画データ再生装置は、上記動画データを復号化して得られる動画を表示する動画データ表示部をさらに備えてよい。上記動画データ再生装置は、上記第1の階層維持フレーム数を上記動画データに応じて変更してよい。上記再生部は、1つ前のフレームよりも格納されているレイヤデータが多い第3フレームについて、上記レイヤID=1のレイヤデータおよび上記レイヤID=2のレイヤデータが格納されており、かつ、上記第3フレーム以降の予め定められた第1の階層保証フレーム数のフレームのすべてについて、上記レイヤID=1のレイヤデータおよび上記レイヤID=2のレイヤデータの両方が格納されている場合、上記第3フレームの上記レイヤID=1のレイヤデータおよび上記レイヤID=2のレイヤデータの両方を用いて上記第3フレームを復号化し、上記第3フレーム以降の上記第1の階層保証フレーム数のフレームの少なくとも1つについて、上記レイヤID=1のレイヤデータのみが格納されている場合、上記第3フレームの上記レイヤID=1のレイヤデータのみを用いて上記第3フレームを復号化してよい。上記動画データ再生装置は、上記第1の階層保証フレーム数を動画データに応じて変更してよい。   The moving image data reproduction device may further include a moving image data display unit that displays a moving image obtained by decoding the moving image data. The moving image data reproducing apparatus may change the first hierarchy maintaining frame number according to the moving image data. The playback unit stores the layer data of the layer ID = 1 and the layer data of the layer ID = 2 for the third frame in which more layer data is stored than the previous frame, and When both the layer data of the layer ID = 1 and the layer data of the layer ID = 2 are stored for all the frames of the predetermined first layer guaranteed frame number after the third frame, The third frame is decoded using both the layer data of the layer ID = 1 and the layer data of the layer ID = 2 of the third frame, and the frames having the number of first hierarchical guaranteed frames after the third frame are decoded. When only layer data of the layer ID = 1 is stored for at least one of the above, the above-mentioned third frame It may decode the third frame using only layer data of ear ID = 1. The moving image data reproducing device may change the first hierarchical guaranteed frame number according to moving image data.

上記再生部は、上記動画データが3階層以上の複数の階層を含むように符号化されている場合において、上記動画データの複数のフレームのそれぞれについて、格納されているすべてのレイヤデータの少なくとも1つのレイヤデータを用いて上記フレームを復号化してよい。上記再生部は、上記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームよりも格納されているレイヤデータが少ない第4フレームについて、上記第4フレーム以降の予め定められた第2の階層維持フレーム数のフレームについて、上記第4フレームよりも多くのレイヤデータが格納されている場合であっても、上記第4フレームについて格納されているレイヤデータの数と同じ数のレイヤデータを用いて上記第4フレーム以降の上記第2の階層維持フレーム数のフレームを復号化してよい。上記再生部は、上記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームよりも格納されているレイヤデータが多い第5フレームについて、上記第5フレーム以降の予め定められた第2の階層保証フレーム数のフレームのすべてについて、上記第5フレームの1つ前のフレームに格納されているレイヤデータより多くのレイヤデータが格納されている場合、上記第5フレームと上記第5フレーム以降の予め定められた第2の階層保証フレーム数のフレームのそれぞれのレイヤデータ数の中で最も少ないレイヤデータ数と同じ数のレイヤデータを用いて上記第5フレームを復号化し、上記第5フレーム以降の上記第2の階層保証フレーム数のフレームの少なくとも1つについて、上記第5フレームの1つ前のフレームよりも少ないレイヤデータが格納されている場合、上記第5フレームについて、上記第5フレームの1つ前のフレームについて格納されているレイヤデータの数と同じ数のレイヤデータを用いて上記第5フレームを復号化してよい。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more layers, the reproducing unit includes at least one of all stored layer data for each of the plurality of frames of the moving image data. The frame may be decoded using one layer data. In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit performs the above-described processing on the fourth frame in which less layer data is stored than the previous frame. Layers stored for the fourth frame, even if more layer data than the fourth frame is stored for a predetermined number of second layer maintenance frames after the fourth frame The same number of layer data as the number of data may be used to decode the second layer-maintaining frame number after the fourth frame. In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit performs the above processing on the fifth frame in which more layer data is stored than the previous frame. When more layer data than the layer data stored in the frame immediately before the fifth frame is stored for all the frames of the predetermined second layer guaranteed frame number after the fifth frame, Using the same number of layer data as the smallest number of layer data among the number of layer data of the fifth frame and the predetermined number of second layer guaranteed frames after the fifth frame, the fifth frame is used. The fifth frame is decoded and at least one of the frames of the second hierarchy guaranteed number of frames after the fifth frame is decoded. If less layer data than the previous frame is stored, the same number of layer data as the number of layer data stored for the previous frame of the fifth frame is stored for the fifth frame. It may be used to decode the fifth frame.

上記再生部は、上記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ後のフレームよりも格納されているレイヤデータの数が予め定められた低下制限階層数以上多い第6フレームについて、格納されている複数のレイヤデータの一部のみを用いて、上記第6フレームを復号化してよい。上記再生部は、上記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームよりも格納されているレイヤデータの数が予め定められた上昇制限階層数以上多い第7フレームについて、格納されている複数のレイヤデータの一部のみを用いて、第7フレームを復号化してよい。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit has a predetermined reduction limit on the number of layer data stored after the next frame. The sixth frame may be decoded using only a part of the plurality of stored layer data for the sixth frame that is greater than the number of layers. In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit has a predetermined increase limit on the number of layer data stored before the previous frame. For the seventh frame that is greater than the number of layers, the seventh frame may be decoded using only a part of the plurality of stored layer data.

本発明の第2の態様によれば、複数の階層を含むように符号化され、それぞれが複数のフレームを含む複数のフレームグループを有する動画データを復号化する動画データ再生装置であって、動画データを一時的に格納するバッファと、動画データを復号化する再生部とを備え、再生部が、バッファに含まれる動画データの複数のフレームグループのそれぞれに含まれるレイヤデータを確認し、第1のフレームグループのすべてのフレームについてレイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータの両方が格納されており、かつ、第1のフレームグループの次の第2のフレームグループについて、すべてのフレームのうち少なくとも1つのフレームについてレイヤID=1のレイヤデータのみが格納されている場合、第2のフレームグループ以降の予め定められた第1の階層維持フレームグループ数のフレームグループについて、すべてのフレームについてレイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータの両方が格納されている場合であっても、第2のフレームグループのすべてのレイヤID=1のレイヤデータのみを用いて第2のフレームグループを復号化し、第1のフレームグループのすべてのフレームについてレイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータの両方が格納されており、かつ、第2のフレームグループのすべてのフレームについてレイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータの両方が格納されている場合、第2のフレームグループのすべてのレイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータを用いて第2のフレームグループを復号化し、第1のフレームグループについて、すべてのフレームのうち少なくとも1つのフレームについてレイヤID=1のレイヤデータのみが格納されている場合、前記第2のフレームグループについて、格納されているレイヤデータを用いて再生可能な最も高いレイヤの動画を再生するように復号化する、動画データ再生装置が提供される。   According to the second aspect of the present invention, there is provided a moving image data reproducing apparatus for decoding moving image data having a plurality of frame groups each encoded with a plurality of layers and each including a plurality of frames. A buffer that temporarily stores data; and a playback unit that decodes the video data, wherein the playback unit confirms the layer data included in each of the plurality of frame groups of the video data included in the buffer, Layer ID = 1 and layer ID = 2 are stored for all the frames in the frame group, and all the second frame groups subsequent to the first frame group are stored. If only layer data of layer ID = 1 is stored for at least one of the frames, the second This is a case where both the layer data of layer ID = 1 and the layer data of layer ID = 2 are stored for all the frames for the frame group of the first number of first layer maintaining frame groups after the frame group. Even so, the second frame group is decoded using only the layer data of all layer IDs = 1 of the second frame group, and the layer data and layers of layer ID = 1 for all the frames of the first frame group When both layer data of ID = 2 are stored and both layer data of layer ID = 1 and layer data of layer ID = 2 are stored for all frames of the second frame group, All layer data of layer ID = 1 in the second frame group And the second frame group is decoded using the layer data of layer ID = 2, and for the first frame group, only the layer data of layer ID = 1 is stored for at least one of all the frames. In this case, a moving image data reproducing apparatus is provided that decodes the second frame group so as to reproduce the highest layer moving image that can be reproduced using the stored layer data.

上記動画データ再生装置は、上記動画データを復号化して得られる動画を表示する動画データ表示部をさらに備えてよい。上記再生部は、フレームグループに含まれるフレームのうちの少なくとも1つのフレームについてレイヤID=1のレイヤデータのみが格納されているフレームグループの次の第3のフレームグループについて、すべてのフレームについて上記レイヤID=1のレイヤデータおよび上記レイヤID=2のレイヤデータが格納されており、かつ、上記第3のフレームグループ以降の予め定められた第1の階層保証フレームグループ数のフレームグループのすべてについて、すべてのフレームについて上記レイヤID=1のレイヤデータおよび上記レイヤID=2のレイヤデータが格納されている場合、上記第3のフレームグループのすべての上記レイヤID=1のレイヤデータおよび上記レイヤID=1のレイヤデータを用いて上記第3のフレームグループを復号化し、上記第3のフレームグループ以降の上記第1の階層保証フレームグループ数のフレームグループの少なくとも1つについて、すべてのフレームのうち少なくとも1つについて上記レイヤID=1のレイヤデータのみが格納されている場合、上記第3のフレームグループのすべての上記レイヤID=1のレイヤデータのみを用いて上記第3のフレームグループを復号化してよい。   The moving image data reproduction device may further include a moving image data display unit that displays a moving image obtained by decoding the moving image data. The reproducing unit performs the above-described layer processing for all the frames in the third frame group next to the frame group in which only the layer data of layer ID = 1 is stored for at least one of the frames included in the frame group. Layer data of ID = 1 and layer data of the layer ID = 2 are stored, and all of the frame groups of the predetermined number of first hierarchical guaranteed frame groups after the third frame group are as follows: When the layer data of the layer ID = 1 and the layer data of the layer ID = 2 are stored for all the frames, all the layer data of the layer ID = 1 of the third frame group and the layer ID = The third frame is used for the first frame data. Only the layer data of layer ID = 1 for at least one of all the frames for at least one of the first hierarchical guaranteed frame group number after the third frame group. Is stored, the third frame group may be decoded using only the layer data of all the layer IDs = 1 of the third frame group.

上記再生部は、上記動画データが3階層以上の複数の階層を含むように符号化されている場合において、上記動画データの上記複数のフレームグループのそれぞれについて、すべてのフレームについて、上記すべてのフレームのうち格納されているレイヤデータの数が最も少ないフレームのレイヤデータの数であるグループ最少レイヤデータ数以下のレイヤデータを用いて上記フレームグループを復号化してよい。上記再生部は、上記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームグループよりも、グループ最少レイヤデータ数が少ない第4のフレームグループについて、上記第4のフレームグループ以降の予め定められた第2の階層維持フレームグループ数のフレームグループについて、グループ最少レイヤデータ数が上記第4のフレームグループのグループ最少レイヤデータ数よりも多い場合であっても、上記第4のフレームグループのグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、上記第4のフレームグループ以降の上記第2の階層維持フレームグループ数のフレームグループを復号化してよい。上記再生部は、上記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームグループよりもグループ最少レイヤデータ数が多い第5のフレームグループについて、上記第5のフレームグループ以降の予め定められた第2の階層保証フレームグループ数のフレームグループのすべてについて、グループ最少レイヤデータ数が上記第5のフレームグループの1つ前のフレームグループのグループ最少レイヤデータ数より多い場合、上記第5のフレームグループと上記第5のフレームグループ以降の予め定められた第2の階層保証フレームグループ数のフレームグループのすべての中で最も少ないグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、上記第5のフレームグループを復号化し、上記第5のフレームグループ以降の上記第2の階層保証フレームグループ数のフレームグループの少なくとも1つについて、上記第5のフレームグループの1つ前のフレームグループのグループ最少レイヤデータ数より少ない場合、上記第5のフレームグループについて、上記第5のフレームグループの1つ前のフレームグループのグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、前記第5のフレームグループを復号化してよい。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more layers, the reproducing unit performs all the frames for all the frames for each of the plurality of frame groups of the moving image data. The frame group may be decoded using layer data equal to or less than the group minimum layer data number, which is the number of layer data of the frame having the smallest number of stored layer data. In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the reproducing unit performs the fourth frame group having a smaller group minimum layer data number than the previous frame group. This is a case where the number of group minimum layer data is greater than the number of group minimum layer data of the fourth frame group for the frame groups having the predetermined number of second layer maintenance frame groups after the fourth frame group. However, the same number of layer data as the number of group minimum layer data of the fourth frame group may be used to decode the frame groups of the second layer-maintaining frame group number after the fourth frame group. . In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the reproducing unit has a fifth frame group in which the number of group minimum layer data is larger than the previous frame group. For all the frame groups having the predetermined second layer guaranteed frame number after the fifth frame group, the group minimum layer data number is the group minimum layer of the frame group immediately before the fifth frame group. When the number of data is greater than the number of data, it is the same as the number of group minimum layer data that is the smallest among all the frame groups of the fifth frame group and the predetermined number of second layer guaranteed frame groups after the fifth frame group. Decode the fifth frame group using a number of layer data When at least one of the second hierarchically guaranteed frame group number after the fifth frame group is smaller than the group minimum layer data number of the frame group immediately before the fifth frame group, For the fifth frame group, the fifth frame group may be decoded using the same number of layer data as the number of group minimum layer data of the previous frame group of the fifth frame group.

上記再生部は、上記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ後のフレームグループよりも、グループ最少レイヤデータ数が予め定められた低下制限階層数以上多い第6のフレームグループについて、すべてのフレームについて、上記第6のフレームグループのグループ最少レイヤデータ数よりも少ない数のレイヤデータのみを用いて、上記第6のフレームグループを復号化してよい。上記再生部は、上記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームグループよりも、グループ最少レイヤデータ数が予め定められた上昇制限階層数以上多い第7のフレームグループについて、すべてのフレームについて、上記第7のフレームグループのグループ最少レイヤデータ数よりも少ない数のレイヤデータのみを用いて、第7のフレームグループを復号化してよい。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit has a reduction limiting hierarchy in which the number of group minimum layer data is predetermined as compared to the next frame group For the sixth frame group that is greater than or equal to the number, the sixth frame group may be decoded using only a smaller number of layer data than the group minimum layer data number of the sixth frame group for all frames. . In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit has an ascending restriction hierarchy in which the number of group minimum layer data is determined in advance than the previous frame group For the seventh frame group that is greater than or equal to the number, the seventh frame group may be decoded by using only the number of layer data that is smaller than the group minimum layer data number of the seventh frame group for all frames.

本発明の第3の態様によれば、複数の階層を含むように符号化された動画データを復号化する動画データ再生装置であって、動画データを一時的に格納するバッファと、動画データを復号化する再生部とを備え、再生部が、バッファに含まれる動画データの複数のフレームのそれぞれに含まれるレイヤデータを確認し、第1フレームに第1階層の第1のレイヤデータおよび第2階層の第2のレイヤデータの両方が格納されており、かつ、第1フレームの次の第2フレームについて、第1のレイヤデータのみが格納されている場合、第2フレーム以降の予め定められた第1の数のフレームについて、第1のレイヤデータおよび第2のレイヤデータの両方が格納されている場合であっても、第1のレイヤデータのみを用いて第2フレーム以降の第1の数のフレームを復号化し、第1フレームに第1のレイヤデータおよび第2のレイヤデータの両方が格納されており、かつ、第2フレームに第1のレイヤデータおよび第2のレイヤデータの両方が格納されている場合、第2フレームの第1のレイヤデータおよび第2のレイヤデータの両方を用いて第2フレームを復号化し、第1フレームに第1のレイヤデータのみが格納されている場合、第2フレームについて、格納されているレイヤデータを用いて再生可能な最も高いレイヤの動画を再生するように復号化する、動画データ再生装置が提供される。   According to the third aspect of the present invention, there is provided a moving image data reproducing device for decoding moving image data encoded so as to include a plurality of hierarchies, the buffer temporarily storing the moving image data, and the moving image data. A playback unit for decoding, the playback unit confirms the layer data included in each of the plurality of frames of the moving image data included in the buffer, and the first layer data of the first hierarchy and the second layer are included in the first frame. When both of the second layer data of the hierarchy are stored and only the first layer data is stored for the second frame subsequent to the first frame, the second and subsequent frames are predetermined. Even if both the first layer data and the second layer data are stored for the first number of frames, only the first layer data is used for the second and subsequent frames. The first frame data and the second layer data are both stored in the first frame, and both the first layer data and the second layer data are stored in the second frame. Is stored, the second frame is decoded using both the first layer data and the second layer data of the second frame, and only the first layer data is stored in the first frame. There is provided a moving image data reproducing device that decodes the second frame so as to reproduce the moving image of the highest layer that can be reproduced using the stored layer data.

本発明の第4の態様によれば、複数の階層を含むように符号化され、それぞれが複数のフレームを含む複数のフレームグループを有する動画データを復号化する動画データ再生装置であって、動画データを一時的に格納するバッファと、動画データを復号化する再生部とを備え、再生部が、バッファに含まれる動画データの複数のフレームグループのそれぞれに含まれるレイヤデータを確認し、第1のフレームグループのすべてのフレームについて第1階層の第1のレイヤデータおよび第2階層の第2のレイヤデータの両方が格納されており、かつ、第1のフレームグループの次の第2のフレームグループについて、すべてのフレームのうち少なくとも1つのフレームについて第1のレイヤデータのみが格納されている場合、第2のフレームグループ以降の予め定められた第1の数のフレームグループについて、すべてのフレームについて第1のレイヤデータおよび第2のレイヤデータの両方が格納されている場合であっても、第2のフレームグループのすべての第1のレイヤデータのみを用いて第2のフレームグループを復号化し、第1のフレームグループのすべてのフレームについて第1のレイヤデータおよび第2のレイヤデータの両方が格納されており、かつ、第2のフレームグループのすべてのフレームについて第1のレイヤデータおよび第2のレイヤデータの両方が格納されている場合、第2のフレームグループのすべての第1のレイヤデータおよび第2のレイヤデータを用いて第2のフレームグループを復号化し、第1のフレームグループについて、すべてのフレームのうち少なくとも1つのフレームについて第1のレイヤデータのみが格納されている場合、第2のフレームグループについて、格納されているレイヤデータを用いて再生可能な最も高いレイヤの動画を再生するように復号化する、動画データ再生装置が提供される。   According to a fourth aspect of the present invention, there is provided a moving image data reproduction device for decoding moving image data having a plurality of frame groups each encoded with a plurality of layers and each including a plurality of frames. A buffer that temporarily stores data; and a playback unit that decodes the video data, wherein the playback unit confirms the layer data included in each of the plurality of frame groups of the video data included in the buffer, The first layer data of the first layer and the second layer data of the second layer are stored for all the frames of the first frame group, and the second frame group next to the first frame group If only the first layer data is stored for at least one of all the frames, the second frame Even if both the first layer data and the second layer data are stored for all the frames for the predetermined first number of frame groups after the loop, the second frame group Decoding the second frame group using only all the first layer data, storing both the first layer data and the second layer data for all the frames of the first frame group; and When both the first layer data and the second layer data are stored for all the frames in the second frame group, all the first layer data and the second layer data in the second frame group are stored. Is used to decode the second frame group and all frames for the first frame group are decoded. When only the first layer data is stored for at least one of the frames, the second frame group is decoded so as to play back the highest layer video that can be played using the stored layer data. A moving image data reproducing apparatus is provided.

本発明の第5の態様によれば、コンピュータを、上記動画データ再生装置として機能させるためのプログラムが提供される。   According to the fifth aspect of the present invention, there is provided a program for causing a computer to function as the moving image data reproducing device.

なお、上記の発明の概要は、本発明の必要な特徴のすべてを列挙したものではない。また、これらの特徴群のサブコンビネーションもまた、発明となりうる。   The above summary of the invention does not enumerate all necessary features of the present invention. In addition, a sub-combination of these feature groups can also be an invention.

動画データ150の一例を示す。An example of the moving image data 150 is shown. 階層符号化された動画データ160の一例である。3 is an example of hierarchically encoded moving image data 160. 階層符号化された動画データにおいて、拡張レイヤの一部のレイヤデータが欠落した動画データ170の一例である。It is an example of the moving image data 170 in which some layer data of the enhancement layer is missing in the hierarchically encoded moving image data. 動画データ再生装置100の一例を概略的に示す。1 schematically shows an example of a moving image data reproducing apparatus 100. バッファ102が格納している動画データ150の一例を概略的に示す。An example of the moving image data 150 stored in the buffer 102 is schematically shown. 再生部108による復号化制御の一例を概略的に示す。An example of decoding control by the reproduction unit 108 is schematically shown. 動画データ再生装置100による処理の流れの一例を概略的に示す。An example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 動画データ再生装置100による処理の流れの具体例を概略的に示す。A specific example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 再生部108による復号化制御の一例を概略的に示す。An example of decoding control by the reproduction unit 108 is schematically shown. 動画データ再生装置100による処理の流れの一例を概略的に示す。An example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 動画データ再生装置100による処理の流れの一例を概略的に示す。An example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. バッファ102が格納している動画データ150の一例を概略的に示す。An example of the moving image data 150 stored in the buffer 102 is schematically shown. 再生部108による復号化制御の一例を概略的に示す。An example of decoding control by the reproduction unit 108 is schematically shown. 動画データ再生装置100による処理の流れの一例を概略的に示す。An example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 動画データ再生装置100による処理の流れの具体例を概略的に示す。A specific example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 動画データ再生装置100による処理の流れの一例を概略的に示す。An example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 動画データ再生装置100による処理の流れの具体例を概略的に示す。A specific example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 再生部108による復号化制御の一例を概略的に示す。An example of decoding control by the reproduction unit 108 is schematically shown. 動画データ再生装置100による処理の流れの一例を概略的に示す。An example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 動画データ再生装置100による処理の流れの具体例を概略的に示す。A specific example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 動画データ再生装置100による処理の流れの一例を概略的に示す。An example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 動画データ再生装置100による処理の流れの具体例を概略的に示す。A specific example of the flow of processing by the moving image data reproducing apparatus 100 is schematically shown. 複数のフレームでフレームグループを構成するように階層符号化された動画データ180の一例である。It is an example of moving image data 180 that is hierarchically encoded so as to form a frame group with a plurality of frames. 階層符号化方式で符号化されたフレームグループ182を用いて高画質な動画を再生する例である。This is an example of reproducing a high-quality moving image using the frame group 182 encoded by the hierarchical encoding method. 階層符号化方式で符号化されたフレームグループ182を用いて低画質な動画を再生する例である。This is an example of reproducing a low-quality moving image using the frame group 182 encoded by the hierarchical encoding method. 階層符号化方式で符号化されたフレームグループ200を用いて復号化を行う例である。In this example, decoding is performed using the frame group 200 encoded by the hierarchical encoding method. バッファ102が格納している動画データ150の一例を概略的に示す。An example of the moving image data 150 stored in the buffer 102 is schematically shown. バッファ102が格納している動画データ150の一例を概略的に示す。An example of the moving image data 150 stored in the buffer 102 is schematically shown. 外部から動画データを受信可能な動画データ再生装置100の一例を概略的に示す。1 schematically shows an example of a moving image data reproducing apparatus 100 capable of receiving moving image data from the outside.

以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせのすべてが発明の解決手段に必須であるとは限らない。   Hereinafter, the present invention will be described through embodiments of the invention, but the following embodiments do not limit the invention according to the claims. Moreover, not all the combinations of features described in the embodiments are essential for the solution means of the invention.

図1は、動画データ150の一例である。動画データ150は複数のフレーム151により構成される。各フレーム151は再生順序を示すシーケンスID(以下、シーケンスIDをSIDと省略する場合がある。)により識別される。動画データ150は、各フレームをSIDに従って順次表示することで、動画を再生することができる。   FIG. 1 is an example of the moving image data 150. The moving image data 150 is composed of a plurality of frames 151. Each frame 151 is identified by a sequence ID indicating the playback order (hereinafter, the sequence ID may be abbreviated as SID). The moving image data 150 can reproduce a moving image by sequentially displaying each frame according to the SID.

図2は、階層符号化された動画データ160の一例である。動画データ160は複数のフレーム161により構成され、さらに各フレーム161は2つのレイヤデータ162、163から構成される。レイヤデータ162は基本レイヤと呼ばれ、レイヤデータ163は拡張レイヤと呼ばれる。各レイヤデータは再生順序を示すシーケンスIDとレイヤを表すレイヤID(以下、レイヤIDをLIDと省略する場合がある。)により識別することができる。基本レイヤとは、例えば、低画質であるが再生に最低限必要なレイヤデータである。一方、拡張レイヤとは、基本レイヤに加えることによって画質を向上できるレイヤデータである。従って、階層符号化された動画データにおいては、基本レイヤのレイヤデータのみをSIDに従って順次表示することで低画質の動画を再生することができる。また、基本レイヤと拡張レイヤのレイヤデータの両方を合わせ、SIDに従って順次表示することで高画質の動画データを再生することもできる。本実施形態では、基本レイヤのレイヤIDを1とし、拡張レイヤのレイヤIDを2以上として説明する。   FIG. 2 is an example of hierarchically encoded moving image data 160. The moving image data 160 includes a plurality of frames 161, and each frame 161 includes two layer data 162 and 163. The layer data 162 is called a base layer, and the layer data 163 is called an enhancement layer. Each layer data can be identified by a sequence ID indicating the reproduction order and a layer ID indicating the layer (hereinafter, the layer ID may be abbreviated as LID). The basic layer is, for example, layer data that has a low image quality but is necessary for reproduction. On the other hand, the enhancement layer is layer data that can improve image quality by being added to the basic layer. Accordingly, in moving image data that has been hierarchically encoded, a low-quality moving image can be reproduced by sequentially displaying only the layer data of the base layer according to the SID. It is also possible to reproduce high-quality moving image data by combining the layer data of the base layer and the extension layer and sequentially displaying them according to the SID. In this embodiment, it is assumed that the layer ID of the base layer is 1, and the layer ID of the enhancement layer is 2 or more.

階層符号化された動画データを構成するレイヤデータは、様々な要因で欠落する場合がある。例えば、動画データを、ネットワークを介してストリーミング再生する場合、伝送路においてレイヤデータが欠落することがある。また、光学ディスクや磁気ディスクなどから動画データを読み取る際に、レイヤデータが欠落することがある。   The layer data constituting the hierarchically encoded moving image data may be lost due to various factors. For example, when streaming playback of moving image data via a network, layer data may be lost in the transmission path. In addition, layer data may be lost when moving image data is read from an optical disk or a magnetic disk.

図3は、階層符号化された動画データにおいて、拡張レイヤの一部のレイヤデータが欠落した動画データ170の一例である。動画データ170は複数のフレーム171により構成され、さらに各フレームは2つのレイヤデータ172、173から構成される。動画データ170では、SID=1、2、6、7のフレームは基本レイヤと拡張レイヤの両方のレイヤデータを含んでいるが、SID=3、4、5のフレームは拡張レイヤのレイヤデータが欠落しており、基本レイヤのレイヤデータのみを含んでいる。   FIG. 3 is an example of moving image data 170 in which part of the layer data of the enhancement layer is missing from the hierarchically encoded moving image data. The moving image data 170 is composed of a plurality of frames 171, and each frame is composed of two layer data 172 and 173. In the video data 170, SID = 1, 2, 6, and 7 frames include both basic layer and enhancement layer data, but SID = 3, 4, and 5 frames lack enhancement layer data. Only the base layer data is included.

動画データ170を再生する場合、SID=1、2の各フレームでは基本レイヤと拡張レイヤの両方のレイヤデータを用いて高画質の動画を再生できる。しかし、SID=3、4、5の各フレームでは基本レイヤのレイヤデータしかないため、低画質に切り替えて動画を再生する。そして、SID=6、7の各フレームでは基本レイヤと拡張レイヤの両方のレイヤデータを用いて、再び高画質に切り替えて再生する。以上に述べた通り、階層符号化された動画データは、拡張レイヤのレイヤデータが欠落しても、画質を切り替えて再生することが可能である。   When the moving image data 170 is reproduced, a high-quality moving image can be reproduced using the layer data of both the basic layer and the extended layer in each frame of SID = 1,2. However, since each frame of SID = 3, 4, and 5 has only layer data of the basic layer, the moving image is reproduced by switching to low image quality. In each frame of SID = 6 and 7, playback is performed again by switching to high image quality using layer data of both the basic layer and the enhancement layer. As described above, the hierarchically encoded moving image data can be reproduced by switching the image quality even if the layer data of the enhancement layer is missing.

しかし、視聴時に、高画質の映像と低画質の映像が急激かつ頻繁に切替わると、切替時の画質の変化が人間の目に障るため、視聴者の体感品質を劣化させる場合がある。そこで、階層符号化された動画データを再生する際に、高画質の映像と低画質の映像の切替を円滑に行う再生装置が必要となる。   However, if a high-quality video and a low-quality video are switched suddenly and frequently during viewing, the change in the image quality at the time of switching may be obstructive to human eyes, which may degrade the viewer's quality of experience. Therefore, a playback device that smoothly switches between high-quality video and low-quality video is required when playing back hierarchically encoded moving image data.

図4は、階層符号化された動画データを再生することができる動画データ再生装置100の一例を概略的に示す。動画データ再生装置100は、例えば、スケーラブル符号化された動画データを再生する。動画データ再生装置100は、他の符号化方式によって階層符号化された動画データを再生してもよい。   FIG. 4 schematically shows an example of a moving image data reproducing apparatus 100 that can reproduce hierarchically encoded moving image data. The moving image data reproducing device 100 reproduces, for example, scalable encoded moving image data. The moving image data reproducing apparatus 100 may reproduce moving image data that has been hierarchically encoded by another encoding method.

動画データ再生装置100は、バッファ102と再生部108を備える。バッファ102は、再生する動画データを一時的に格納することができる。例えば、通信ネットワークにより伝送された動画データや、光学ディスクや磁気ディスクから読み取った動画データを格納する。従って、バッファ102に格納された動画データにおいては、拡張レイヤの一部が欠落している場合がある。   The moving image data playback device 100 includes a buffer 102 and a playback unit 108. The buffer 102 can temporarily store moving image data to be reproduced. For example, moving image data transmitted from a communication network and moving image data read from an optical disk or a magnetic disk are stored. Accordingly, in the moving image data stored in the buffer 102, a part of the enhancement layer may be missing.

再生部108は、バッファ102に格納されている動画データを復号化し、動画を再生する。例えば、再生部108は、2つの階層を含むように符号化された動画データの複数のフレームのそれぞれについて、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている場合、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方、または基本レイヤのレイヤデータのみを用いてフレームを復号化し、基本レイヤのレイヤデータのみが格納されている場合、基本レイヤのレイヤデータのみを用いてフレームを復号化し、動画データ再生装置100は復号化された各フレームをSIDの順に再生する。   The reproduction unit 108 decodes the moving image data stored in the buffer 102 and reproduces the moving image. For example, when both the base layer data and the enhancement layer layer data are stored for each of a plurality of frames of moving image data encoded to include two layers, the playback unit 108 If the frame is decoded using both the layer data of the enhancement layer and the layer data of the enhancement layer, or only the layer data of the base layer, and only the layer data of the base layer is stored, the frame is formed using only the layer data of the base layer. The moving image data reproducing apparatus 100 reproduces each decoded frame in the order of the SID.

また、例えば、再生部108は、3つ以上の階層を含むように符号化された動画データの複数のフレームのそれぞれについて、バッファ102に格納されているすべてのレイヤデータの少なくとも1つのレイヤデータを用いてフレームを復号化する。具体例として、動画データが4つの階層を含むように符号化されている場合、再生部108は、基本レイヤのレイヤデータのみを用いるか、基本レイヤのレイヤデータおよび第1階層の拡張レイヤのレイヤデータを用いるか、基本レイヤのレイヤデータ、第1階層の拡張レイヤのレイヤデータおよび第2階層の拡張レイヤのレイヤデータを用いるか、すべてのレイヤデータを用いて、動画データを復号化し、動画データ再生装置100は復号化された各フレームをSIDの順に再生する。   In addition, for example, the playback unit 108 obtains at least one layer data of all the layer data stored in the buffer 102 for each of a plurality of frames of moving image data encoded to include three or more layers. To decode the frame. As a specific example, when the moving image data is encoded so as to include four layers, the playback unit 108 uses only the layer data of the base layer or the layer data of the base layer and the layer of the extension layer of the first layer. The video data is decoded by using the data, the layer data of the base layer, the layer data of the extension layer of the first layer and the layer data of the extension layer of the second layer, or using all the layer data. The playback device 100 plays back each decoded frame in the order of the SID.

また、再生部108は、複数の階層を含むように符号化され、それぞれが複数のフレームを含む複数のフレームグループを有する動画データを復号化してよい。例えば、再生部108は、2つの階層を含むように符号化され、それぞれが複数のフレームを含む複数のフレームグループを有する動画データの複数のフレームグループのそれぞれについて、フレームグループに含まれるすべてのフレームについて基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている場合、当該フレームグループのすべての基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータを用いて当該フレームグループを復号化し、フレームグループに含まれるすべてのフレームのうち少なくとも1つのフレームについて基本レイヤのレイヤデータのみが格納されている場合、当該フレームグループのすべての基本レイヤのレイヤデータのみを用いて当該フレームグループを復号化し、動画データ再生装置100は復号化された各フレームをSIDの順に再生する。   Further, the reproduction unit 108 may decode moving image data that is encoded so as to include a plurality of hierarchies and each includes a plurality of frame groups each including a plurality of frames. For example, the reproduction unit 108 is encoded so as to include two layers, and for each of a plurality of frame groups of video data having a plurality of frame groups each including a plurality of frames, all frames included in the frame group If both the base layer layer data and the enhancement layer layer data are stored, the frame group is decoded using all the base layer layer data and the enhancement layer layer data of the frame group, and the frame group If only the base layer layer data is stored for at least one of the frames included in the frame group, the frame group is decoded using only the layer data of all the base layers of the frame group, and the video data Raw device 100 reproduces each frame decoded in the order of SID.

また、例えば、再生部108は、3つ以上の階層を含むように符号化され、それぞれが複数のフレームを含む複数のフレームグループを有する動画データの複数のフレームグループのそれぞれについて、すべてのフレームについて、すべてのフレームのうち格納されているレイヤデータの数が最も少ないフレームのレイヤデータの数であるグループ最少レイヤデータ数以下のレイヤデータを用いて当該フレームグループを復号化し、動画データ再生装置100は復号化された各フレームをSIDの順に再生する。   In addition, for example, the playback unit 108 is encoded so as to include three or more hierarchies, and each of a plurality of frame groups of moving image data having a plurality of frame groups each including a plurality of frames, for all frames. The moving picture data reproducing apparatus 100 decodes the frame group using layer data equal to or less than the group minimum layer data number, which is the number of layer data of the frame having the smallest number of layer data stored among all the frames. Each decoded frame is reproduced in the order of SID.

動画データ表示部110は、複数の階層を含むように符号化された動画データについて、再生部108によって復号化し再生される動画を表示する。また、動画データ表示部110は、複数の階層を含むように符号化され、それぞれが複数のフレームを含む複数のフレームグループを有する動画データについて、再生部108によって復号化された動画を表示する。   The moving image data display unit 110 displays moving images decoded and reproduced by the reproducing unit 108 for moving image data encoded to include a plurality of layers. The moving image data display unit 110 displays the moving image decoded by the reproducing unit 108 for moving image data that is encoded to include a plurality of hierarchies and has a plurality of frame groups each including a plurality of frames.

動画データ表示部110は、動画データ再生装置100が備えるディスプレイであってよい。また、動画データ表示部110は、他の装置が備えるディスプレイであってもよい。動画データ表示部110は、例えば、任意のネットワークを介して接続されてもよい。   The moving image data display unit 110 may be a display included in the moving image data playback device 100. Further, the moving image data display unit 110 may be a display provided in another device. The moving image data display unit 110 may be connected via, for example, an arbitrary network.

動画データ再生装置100は、複数の階層を含むように符号化された動画データを外部から受信してもよい。再生部108は、外部から受信した動画データを復号化してよく、動画データ表示部110は、再生部108によって復号化、及び再生される外部から受信した動画データを表示してよい。   The moving image data reproduction device 100 may receive moving image data encoded so as to include a plurality of hierarchies from the outside. The playback unit 108 may decode the video data received from the outside, and the video data display unit 110 may display the video data received from the outside that is decoded and played back by the playback unit 108.

図5は、バッファ102が格納している動画データ150の一例を概略的に示す。ここでは、基本レイヤおよび拡張レイヤの2つの階層を含むように符号化された動画データ150を示す。基本レイヤおよび拡張レイヤのそれぞれには、複数のレイヤデータ152が含まれる。欠落したレイヤデータ154は、レイヤデータ152が格納されていないことを示す。例えば、図5に示す動画データ150では、1、2、4、6、8、10〜12、および14〜16番目のフレームについて、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータが格納されており、3、5、7、9、および13番目のフレームについて、基本レイヤのレイヤデータのみが格納されている。   FIG. 5 schematically shows an example of the moving image data 150 stored in the buffer 102. Here, moving image data 150 encoded to include two layers of a base layer and an enhancement layer is shown. Each of the base layer and the enhancement layer includes a plurality of layer data 152. The missing layer data 154 indicates that the layer data 152 is not stored. For example, in the moving image data 150 illustrated in FIG. 5, the layer data of the base layer and the layer data of the enhancement layer are stored for the first, second, fourth, sixth, eighth, 10th to 12th, and 14th to 16th frames. For the third, fifth, seventh, ninth and thirteenth frames, only the base layer data is stored.

ここで、基本レイヤのレイヤデータのみが格納されている場合に基本レイヤのレイヤデータのみを用いてフレームを復号化し、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている場合にその両方を用いて復号化した場合、図5に示す動画データ150では、2番目のフレームから9番目のフレームまで、1つのフレーム毎に高画質と低画質とが切り替わることになり、動画を閲覧する閲覧者が体感する動画の品質が低いものとなってしまう場合がある。   Here, when only the base layer data is stored, the frame is decoded using only the base layer data, and both the base layer data and the enhancement layer data are stored. In the case of decoding using both of them, in the moving image data 150 shown in FIG. 5, the high image quality and the low image quality are switched for each frame from the second frame to the ninth frame. In some cases, the quality of the moving image experienced by the viewer is low.

これに対して、本実施形態に係る動画データ再生装置100は、閲覧者が体感する動画の品質を向上させる処理を実行する。動画データ再生装置100が備える再生部108は、例えば、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている一のフレームの次のフレームについて、基本レイヤのレイヤデータのみが格納されている場合、当該次のフレーム以降の予め定められた第1の階層維持フレーム数のフレームについて、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている場合であっても、基本レイヤのレイヤデータのみを用いて当該次のフレーム以降の第1の階層維持フレーム数のフレームを復号化する。第1の階層維持フレーム数は、第1の数の一例であってよい。   On the other hand, the moving image data reproducing device 100 according to the present embodiment executes a process for improving the quality of the moving image experienced by the viewer. The playback unit 108 included in the moving image data playback apparatus 100 stores, for example, only the base layer data for the next frame of one frame in which both base layer data and enhancement layer data are stored. If the basic layer layer data and the enhancement layer layer data are both stored for the predetermined number of first hierarchy maintaining frames after the next frame, Only the layer data of the layer is used to decode the first layer-maintaining frame number after the next frame. The number of first layer maintenance frames may be an example of the first number.

図6は、再生部108による復号化の一例を概略的に示す。ここでは、第1の階層維持フレーム数が3である場合を例示する。再生部108は、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている2番目のフレームの次の3番目のフレームについて、基本レイヤのレイヤデータのみが格納されていることから、3〜5番目のフレームについて、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている場合であっても、基本レイヤのレイヤデータのみを用いて3〜5番目のフレームを復号化する。   FIG. 6 schematically shows an example of decoding by the playback unit 108. Here, a case where the number of first layer maintenance frames is three is illustrated. Since the reproduction unit 108 stores only the base layer layer data for the third frame next to the second frame in which both the base layer layer data and the enhancement layer layer data are stored, Even if both the base layer data and the enhancement layer layer data are stored for the third to fifth frames, the third to fifth frames are decoded using only the base layer data. To do.

廃棄レイヤデータ156は、再生部108によって廃棄されるレイヤデータを示す。図6に示す例では、4、8、14、および15番目の拡張レイヤのレイヤデータが廃棄レイヤデータ156となっている。このように、本実施形態に係る動画データ再生装置100によれば、高画質と低画質との頻繁な切り替えを抑制することができ、閲覧者が体感する動画の品質を向上させることができる。   Discarded layer data 156 indicates layer data discarded by the reproducing unit 108. In the example illustrated in FIG. 6, the layer data of the fourth, eighth, fourteenth, and fifteenth enhancement layers is discard layer data 156. Thus, according to the moving image data reproducing apparatus 100 according to the present embodiment, frequent switching between high image quality and low image quality can be suppressed, and the quality of moving images experienced by the viewer can be improved.

図7は、動画データ再生装置100による処理の流れの一例を概略的に示す。図7に示す処理は、動画データ再生装置100が、2つの階層を含むように符号化された動画データの再生指示を受領した状態を開始状態として説明する。図7に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。フレームを再生可能な最も高いレイヤで再生するとは、当該フレームについて格納されているすべてのレイヤデータを用いて当該フレームを復号化して再生することを示す。   FIG. 7 schematically shows an example of the flow of processing by the moving image data playback apparatus 100. The processing shown in FIG. 7 will be described assuming that the moving image data reproducing apparatus 100 has received a reproduction instruction for moving image data encoded to include two layers. Each process shown in FIG. 7 may be executed entirely within the playback unit 108 of the moving image data playback apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer. Playing back at the highest layer that can be played back means that the frame is decoded and played back using all the layer data stored for the frame.

ステップ(ステップをSと省略して記載する場合がある。)502では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。   In step 502 (step may be abbreviated as S) 502, the first frame and the next second frame stored in the buffer 102 are confirmed.

S504では、1番目のフレームに対して、2番目のフレームのレイヤが下がるか否かを判定する。1番目のフレームに対して2番目のフレームのレイヤが下がるとは、1番目のフレームについて格納されているレイヤデータの数よりも、2番目のフレームについて格納されているレイヤデータの数の方が少ないことを示す。レイヤが下がらないと判定した場合、S506に進み、レイヤが下がると判定した場合、S508に進む。   In S504, it is determined whether or not the layer of the second frame is lowered with respect to the first frame. When the layer of the second frame is lowered with respect to the first frame, the number of layer data stored for the second frame is greater than the number of layer data stored for the first frame. Indicates less. If it is determined that the layer is not lowered, the process proceeds to S506, and if it is determined that the layer is lowered, the process proceeds to S508.

S506では、2番目のフレームを再生可能な最も高いレイヤで再生することを決定する。S508では、次のNフレームを基本レイヤで再生することを決定する。基本レイヤで再生するとは、対象となるフレームについて、複数のレイヤデータが格納されていても、基本レイヤのレイヤデータのみを用いて当該フレームを復号化して再生することを示す。Nは第1の階層維持フレーム数の一例であってよい。Nは予め定められた数であってよく、また、変更可能であってもよい。   In S506, it is determined to reproduce the second frame in the highest reproducible layer. In S508, it is determined to reproduce the next N frames in the base layer. “Playback in the base layer” means that even if a plurality of layer data is stored for the target frame, the frame is decoded and played back using only the layer data of the base layer. N may be an example of the number of first layer maintenance frames. N may be a predetermined number or may be changeable.

S510では、動画データの最終フレームまで処理が完了したか否かを判定する。最終フレームまで処理が完了していないと判定された場合、S502に戻り、さらに次のフレームを確認する。最終フレームまで処理が完了したと判定された場合、処理が終了する。   In S510, it is determined whether or not processing has been completed up to the final frame of the moving image data. If it is determined that the processing has not been completed up to the final frame, the process returns to S502 to confirm the next frame. If it is determined that the process has been completed up to the last frame, the process ends.

S506およびS508において復号方針を決定した場合に、逐次復号化を実行して、動画データ表示部110に復号化が完了したフレームを用いて動画を表示させてよい。また、S502〜S512の処理を繰り返して、動画データに含まれる複数のフレームまたは全フレームについて復号方針を決定した後に復号化を実行して、動画データ表示部110に復号化が完了したフレームを用いて動画を表示させてもよい。   When the decoding policy is determined in steps S506 and S508, sequential decoding may be executed to display a moving image using the frames that have been decoded on the moving image data display unit 110. In addition, the processing of S502 to S512 is repeated to determine the decoding policy for a plurality of frames or all the frames included in the moving image data, and then decoding is performed, and the moving image data display unit 110 uses the decoded frame. Video may be displayed.

図8は、動画データ再生装置100による処理の流れの具体例を概略的に示す。図8に示す処理は、動画データ再生装置100が、2つの階層を含むように符号化された動画データの再生指示を受領した状態を開始状態として説明する。図8に示す各処理は、動画データ再生装置100が備える再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 8 schematically shows a specific example of the flow of processing by the moving image data playback apparatus 100. The process shown in FIG. 8 will be described assuming that the moving image data reproducing apparatus 100 has received a reproduction instruction for moving image data encoded to include two layers. Each process illustrated in FIG. 8 may be executed entirely within the reproduction unit 108 included in the moving image data reproduction apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

図中、Xはフレーム番号を示す。YはXの最大値を示す。Xの初期値は0であり、Yは動画データに含まれるフレームの数である。B[X]は、X番目のフレームについて、バッファ102に格納されているレイヤデータの数を示す。ここでは動画データが2つの階層を含むように符号化された場合を例示するので、B[X]の最小値は1、B[X]の最大値は2である。   In the figure, X indicates a frame number. Y represents the maximum value of X. The initial value of X is 0, and Y is the number of frames included in the moving image data. B [X] indicates the number of layer data stored in the buffer 102 for the Xth frame. Here, a case where the moving image data is encoded so as to include two layers is illustrated, so the minimum value of B [X] is 1, and the maximum value of B [X] is 2.

S602では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S604では、B[X+1]がB[X]よりも小さいか否かを判定する。B[X+1]がB[X]よりも小さくないと判定した場合、S606に進み、小さいと判定した場合、S610に進む。   In S602, the first frame and the next second frame stored in the buffer 102 are confirmed. In S604, it is determined whether B [X + 1] is smaller than B [X]. If it is determined that B [X + 1] is not smaller than B [X], the process proceeds to S606. If it is determined that B [X + 1] is not smaller than B [X], the process proceeds to S610.

S606では、X+1番目のフレームをB[X+1]に従って再生することを決定する。B[X+1]に従って再生するとは、B[X+1]が示す数のレイヤデータを用いてフレームを復号化して再生することを示してよい。S608では、Xに1を加算する。   In S606, it is determined to play back the X + 1th frame according to B [X + 1]. Reproduction according to B [X + 1] may indicate that a frame is decoded and reproduced using the number of layer data indicated by B [X + 1]. In S608, 1 is added to X.

S610では、nに1を代入する。S612では、X+n番目のフレームを基本レイヤで再生することを決定する。S614では、nに1を加算する。S616では、n=Nであるか否かを判定する。n=Nであると判定した場合、S612に戻り、n=Nであると判定した場合、S618に進む。S618では、XにNを加算する。   In S610, 1 is substituted for n. In S612, it is determined that the X + n-th frame is to be reproduced in the base layer. In S614, 1 is added to n. In S616, it is determined whether n = N. If it is determined that n = N, the process returns to S612. If it is determined that n = N, the process proceeds to S618. In S618, N is added to X.

S620では、X=Yであるか否かを判定する。X=Yでないと判定した場合、S602に戻り、X=Yであると判定した場合、処理を終了する。   In S620, it is determined whether X = Y. If it is determined that X = Y is not satisfied, the process returns to S602, and if it is determined that X = Y, the process is terminated.

以上、図5に示す例のように、2つのレイヤを含むように階層符号化された動画データを再生する際に、レイヤデータの欠落による頻繁な画質の切替が発生し、体感品質が劣化することがある。そこで、これを防ぐ方法として、図6に示すように、一度レイヤが下がった後、階層維持フレーム数分のフレームをレイヤを上げずに再生することで、閲覧者が体感する動画の品質を向上させることができる。具体的な実現方法としては、図4に示す動画データ再生装置100において、再生部108で図7及び図8に示す各処理を実行することで実現することができる。   As described above, when reproducing moving image data that is hierarchically encoded so as to include two layers as in the example illustrated in FIG. 5, frequent image quality switching due to lack of layer data occurs, and the quality of experience deteriorates. Sometimes. Therefore, as a method to prevent this, as shown in FIG. 6, after the layer is lowered, the quality of the video that the viewer feels is improved by playing the frames for the number of hierarchy maintaining frames without raising the layer. Can be made. A specific implementation method can be realized by executing each process shown in FIGS. 7 and 8 by the playback unit 108 in the moving image data playback apparatus 100 shown in FIG.

図9は、再生部108による復号化制御の一例を概略的に示す。ここでは、低画質から高画質に切り替わった後にMフレーム連続して高画質が維持できない場合に、拡張レイヤのレイヤデータを廃棄して高画質への切り替えを行わない処理を再生部108が実行する場合について説明する。Mは第1の階層保証フレーム数の一例であってよい。Mは予め定められた数であってよく、また、変更可能であってもよい。ここでは、Mが2である場合を例に挙げて説明する。   FIG. 9 schematically shows an example of decoding control by the playback unit 108. Here, when the high image quality cannot be maintained continuously for M frames after switching from the low image quality to the high image quality, the playback unit 108 performs processing that discards the layer data of the enhancement layer and does not switch to the high image quality. The case will be described. M may be an example of the number of first hierarchical guaranteed frames. M may be a predetermined number or may be changeable. Here, a case where M is 2 will be described as an example.

図9に示す例では、図6において説明した処理によって4、8、14、および15番目の拡張レイヤのレイヤデータが廃棄されて、3〜5、7〜9、および13〜15番目のフレームについて基本レイヤのレイヤデータのみを用いてフレームが復号化される。ここで、6番目のフレームについては、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている。しかし、7番目のフレームについては基本レイヤのレイヤデータのみが格納されていることから、2フレーム連続して高画質を維持できないので、再生部108は、6番目のフレームおよび7番目のフレームについて、基本レイヤのレイヤデータのみを用いて復号化することを決定する。廃棄レイヤデータ158は、再生部108によって廃棄されるレイヤデータを示す。このように、再生部108は、6番目のフレームのように1つ前のフレームよりも格納されているレイヤデータが多いフレームについて、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されており、当該フレーム以降の第1の階層保証フレーム数のフレームのすべてについて基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている場合には、当該フレームについて、基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータを用いて復号化し、当該フレーム以降の第1の階層保証フレーム数のフレームの少なくとも1つについて基本レイヤのレイヤデータのみが格納されている場合、当該フレームについて、基本レイヤのレイヤデータのみを用いて復号化してよい。上述したように、本実施形態に係る動画データ再生装置100によれば、高画質と低画質の頻繁な切り替えをさらに抑制することができ、閲覧者が体感する動画の品質を向上させることができる。   In the example shown in FIG. 9, the layer data of the fourth, eighth, fourteenth, and fifteenth enhancement layers are discarded by the processing described in FIG. 6, and the third to fifth, seventh to ninth, and thirteenth to fifteenth frames are discarded. The frame is decoded using only the base layer data. Here, for the sixth frame, both the base layer data and the enhancement layer data are stored. However, since only the layer data of the base layer is stored for the seventh frame, it is not possible to maintain high image quality for two consecutive frames. Therefore, the playback unit 108 uses the sixth and seventh frames. Decide to decode using only the layer data of the base layer. Discarded layer data 158 indicates layer data discarded by the reproducing unit 108. As described above, the playback unit 108 stores both the base layer data and the enhancement layer layer data for a frame that contains more layer data than the previous frame, such as the sixth frame. If both the basic layer layer data and the enhancement layer layer data are stored for all the frames of the first hierarchy guaranteed frame number after the frame, the base layer data for the frame is stored. When the base layer data is stored for at least one of the frames of the first hierarchical guaranteed number of frames after the frame, the base layer of the base layer is decoded. Decoding may be performed using only layer data. As described above, according to the moving image data reproducing apparatus 100 according to the present embodiment, frequent switching between high image quality and low image quality can be further suppressed, and the quality of moving images experienced by the viewer can be improved. .

図10は、動画データ再生装置100による処理の流れの一例を概略的に示す。図10に示す処理は、動画データ再生装置100が、2つの階層を含むように符号化された動画データの再生指示を受領した状態を開始状態として説明する。図10に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 10 schematically shows an example of the flow of processing by the moving image data playback apparatus 100. The processing shown in FIG. 10 will be described assuming that the moving image data reproducing apparatus 100 has received a reproduction instruction for moving image data encoded to include two layers. Each process shown in FIG. 10 may be executed entirely within the playback unit 108 of the moving image data playback apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

S802では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S804では、1番目のフレームに対して、2番目のフレームのレイヤが上がるか否かを判定する。1番目のフレームに対して2番目のフレームのレイヤが上がるとは、2番目のフレームについて格納されているレイヤデータの数の方が、1番目のフレームについて格納されているレイヤデータの数よりも多いことを示す。   In S802, the first frame and the next second frame stored in the buffer 102 are confirmed. In S804, it is determined whether or not the layer of the second frame goes up with respect to the first frame. When the layer of the second frame goes up with respect to the first frame, the number of layer data stored for the second frame is greater than the number of layer data stored for the first frame. Indicates many.

レイヤが上がらないと判定した場合、S806に進み、レイヤが上がると判定した場合、S808に進む。S806では、2番目のフレームを再生可能な最も高いレイヤで再生することを決定する。   If it is determined that the layer does not rise, the process proceeds to S806, and if it is determined that the layer goes up, the process proceeds to S808. In S806, it is determined to play back the second frame in the highest layer that can be played back.

S808では、次のMフレーム連続して拡張レイヤで再生可能か否かを判定する。再生部108は、次のMフレームのすべてについて基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータが格納されている場合、Mフレーム連続して拡張レイヤで再生可能と判定し、それ以外の場合に再生不可能と判定してよい。再生可能と判定した場合、S810に進み、再生不可能と判定した場合、S812に進む。   In S808, it is determined whether or not the next M frames can be reproduced in the enhancement layer continuously. When the base layer layer data and the enhancement layer layer data are stored for all of the next M frames, the playback unit 108 determines that playback is possible in the enhancement layer continuously for M frames, and otherwise plays back. You may judge it impossible. If it is determined that playback is possible, the process proceeds to S810. If it is determined that playback is not possible, the process proceeds to S812.

S810では、次のMフレームについて拡張レイヤで再生することを決定する。S812では、次のフレームについて基本レイヤで再生することを決定する。   In S810, it is determined that the next M frame is to be reproduced in the enhancement layer. In S812, it is determined that the next frame is to be reproduced in the base layer.

S814では、動画データの最終フレームまで処理が完了したか否かを判定する。最終フレームまで処理が完了していないと判定された場合、S802に戻り、再生部108がさらに次のフレームを確認する。最終フレームまで処理が完了したと判定された場合、処理が終了する。   In S814, it is determined whether or not the processing has been completed up to the final frame of the moving image data. If it is determined that the processing has not been completed up to the final frame, the process returns to S802, and the reproducing unit 108 further confirms the next frame. If it is determined that the process has been completed up to the last frame, the process ends.

図11は、動画データ再生装置100による処理の流れの具体例を概略的に示す。図11に示す処理は、動画データ再生装置100が2つの階層を含むように符号化された動画データの再生指示を受領した状態を開始状態として説明する。図11に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 11 schematically shows a specific example of the flow of processing by the moving image data reproducing apparatus 100. The process shown in FIG. 11 will be described assuming that the moving image data reproducing apparatus 100 has received an instruction to reproduce moving image data encoded to include two layers. Each process shown in FIG. 11 may be executed entirely within the playback unit 108 of the moving image data playback apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

図中、Xはフレーム番号を示す。YはXの最大値を示す。Xの初期値は0であり、Yは動画データに含まれるフレームの数を示す。B[X]は、X番目のフレームについて、バッファ102に格納されているレイヤデータの数を示す。ここでは動画データが2つの階層を含むように符号化された場合を例示するので、B[X]の最小値は1、B[X]の最大値は2である。   In the figure, X indicates a frame number. Y represents the maximum value of X. The initial value of X is 0, and Y indicates the number of frames included in the moving image data. B [X] indicates the number of layer data stored in the buffer 102 for the Xth frame. Here, a case where the moving image data is encoded so as to include two layers is illustrated, so the minimum value of B [X] is 1, and the maximum value of B [X] is 2.

S902では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S904では、B[X+1]がB[X]よりも大きいか否かを判定する。B[X+1]がB[X]よりも大きくないと判定した場合、S906に進み、大きいと判定した場合、S910に進む。   In S902, the first frame and the next second frame stored in the buffer 102 are confirmed. In S904, it is determined whether B [X + 1] is larger than B [X]. When it is determined that B [X + 1] is not larger than B [X], the process proceeds to S906, and when it is determined that B [X + 1] is larger than S [B], the process proceeds to S910.

S906では、X+1番目のフレームをB[X+1]に従って再生することを決定する。S908では、Xに1を加算する。   In S906, it is determined to play back the X + 1th frame according to B [X + 1]. In S908, 1 is added to X.

S910では、X+1番目のフレームからX+M番目のフレームまでのフレームが拡張レイヤで再生可能か否かを判定する。再生可能と判定した場合、S912に進み、再生不可能と判定した場合、S924に進む。   In S910, it is determined whether or not frames from the (X + 1) th frame to the (X + M) th frame can be reproduced in the enhancement layer. If it is determined that playback is possible, the process proceeds to S912. If it is determined that playback is not possible, the process proceeds to S924.

S912では、nに1を代入する。S914では、X+n番目のフレームを拡張レイヤで再生することを決定する。S916では、nに1を加算する。S918では、n=Mであるか否かを判定する。n=Mであると判定しなかった場合、S914に戻り、n=Mであると判定した場合、S920に進む。S920では、B[X+n]に2を代入する。S922では、XにNを加算する。   In S912, 1 is substituted for n. In S914, it is determined that the X + nth frame is to be reproduced in the enhancement layer. In S916, 1 is added to n. In S918, it is determined whether n = M. If it is not determined that n = M, the process returns to S914. If it is determined that n = M, the process proceeds to S920. In S920, 2 is substituted into B [X + n]. In S922, N is added to X.

S924では、X+1番目のフレームを基本レイヤで再生することを決定する。S926では、B[X+1]に1を代入する。S928では、Xに1を加算する。   In S924, it is determined that the X + 1-th frame is to be reproduced in the base layer. In S926, 1 is substituted into B [X + 1]. In S928, 1 is added to X.

S934では、X=Yであるか否かを判定する。X=Yでないと判定した場合、S902に戻り、さらに次のフレームを確認する。X=Yであると判定した場合、処理を終了する。   In S934, it is determined whether X = Y. If it is determined that X = Y is not true, the process returns to S902 to confirm the next frame. If it is determined that X = Y, the process ends.

図12は、バッファ102が格納している動画データ150の一例を概略的に示す。ここでは、基本レイヤおよび拡張レイヤ1〜拡張レイヤ3の4つの階層を含むように符号化された動画データ150を示す。図12に示す例では、3番目のフレームにおける拡張レイヤ2〜3の拡張レイヤのレイヤデータと、6番目のフレームにおける拡張レイヤ3の拡張レイヤのレイヤデータと、8番目のフレームにおける拡張レイヤ3の拡張レイヤのレイヤデータと、11番目のフレームにおける拡張レイヤ1〜3の拡張レイヤのレイヤデータと、13番目のフレームにおける拡張レイヤ2〜3の拡張レイヤのレイヤデータとが、欠落したレイヤデータ154である場合を例示する。   FIG. 12 schematically shows an example of the moving image data 150 stored in the buffer 102. Here, moving image data 150 encoded so as to include four layers of a base layer and enhancement layers 1 to 3 is shown. In the example shown in FIG. 12, the layer data of the enhancement layers 2 to 3 in the third frame, the layer data of the enhancement layer 3 in the sixth frame, and the enhancement layer 3 in the eighth frame Layer data of the enhancement layer, layer data of the enhancement layers 1 to 3 in the 11th frame, and layer data of the enhancement layers 2 to 3 in the 13th frame are the missing layer data 154. An example is given.

ここで、各フレームについて、格納されているすべてのレイヤデータを用いてフレームを復号化した場合、図12に示す動画データ150では、頻繁に画質が切り替わることになり、閲覧者が体感する動画の品質が低いものとなってしまう場合がある。   Here, when a frame is decoded using all the stored layer data for each frame, the image quality is frequently switched in the moving image data 150 shown in FIG. The quality may be low.

これに対して、本実施形態に係る動画データ再生装置100は、閲覧者が体感する動画の品質を向上させる処理を実行する。動画データ再生装置100が備える再生部108は、例えば、1つ前のフレームよりも格納されているレイヤデータが少ない一のフレームについて、当該一のフレーム以降の予め定められた第2の階層維持フレーム数のフレームについて、当該一のフレームよりも多くのレイヤデータが格納されている場合であっても、当該一のフレームについて格納されているレイヤデータの数と同じ数のレイヤデータを用いて当該一のフレーム以降の第2の階層維持フレーム数のフレームを復号化する。   On the other hand, the moving image data reproducing device 100 according to the present embodiment executes a process for improving the quality of the moving image experienced by the viewer. The playback unit 108 included in the moving image data playback apparatus 100, for example, for a frame with less layer data stored than the previous frame, a predetermined second layer maintenance frame after the one frame Even if a larger number of layer data than the one frame is stored for a number of frames, the same number of layer data as the number of layer data stored for the one frame is used. The frames of the second layer maintenance frame number after the first frame are decoded.

図13は、再生部108による復号化制御の一例を概略的に示す。ここでは、第2の階層維持フレーム数が3である場合を例示する。再生部108は、3番目のフレームについて、1つ前の2番目のフレームよりも格納されているレイヤデータが少ないことから、3〜5番目のフレームについて、2番目のフレームよりも多くのレイヤデータが格納されている場合であっても、2番目のフレームについて格納されているレイヤデータの数である2と同じ数のレイヤデータを用いて、3〜5番目のフレームを復号化する。同様に、再生部108は、7番目のフレームについて、6番目のフレームについて格納されているレイヤデータの数である3と同じ数のレイヤデータを用いて、復号化する。また、同様に、再生部108は、12および13番目のフレームについて、11番目のフレームについて格納されているレイヤデータの数である1と同じ数のレイヤデータを用いて、復号化する。   FIG. 13 schematically shows an example of decoding control by the playback unit 108. Here, a case where the number of second layer maintenance frames is three is illustrated. Since the playback unit 108 stores less layer data for the third frame than the second frame immediately before, the playback unit 108 has more layer data for the third to fifth frames than the second frame. Are stored, the third to fifth frames are decoded using the same number of layer data as the number of layer data stored for the second frame. Similarly, the playback unit 108 decodes the seventh frame using the same number of layer data as 3, which is the number of layer data stored for the sixth frame. Similarly, the reproduction unit 108 decodes the twelfth and thirteenth frames using the same number of layer data as the number of layer data stored for the eleventh frame.

このように、図13に示す例では、4番目のフレームにおける拡張レイヤ2〜3の拡張レイヤのレイヤデータと、5番目のフレームにおける拡張レイヤ2〜3の拡張レイヤのレイヤデータと、7番目のフレームにおける拡張レイヤ3の拡張レイヤのレイヤデータと、12番目のフレームにおける拡張レイヤ1〜3の拡張レイヤのレイヤデータと、13番目のフレームにおける拡張レイヤ1の拡張レイヤのレイヤデータとが廃棄レイヤデータ156となる。このように、本実施形態に係る動画データ再生装置100によれば、画質の頻繁な切り替えを抑制することができ、閲覧者が体感する動画の品質を向上させることができる。   As described above, in the example illustrated in FIG. 13, the layer data of the enhancement layers 2 to 3 in the fourth frame, the layer data of the enhancement layers 2 to 3 in the fifth frame, and the seventh layer The enhancement layer 3 layer data in the frame, the enhancement layer 1 to 3 enhancement layer data in the 12th frame, and the enhancement layer 1 enhancement layer data in the 13th frame are discarded layer data. 156. Thus, according to the moving image data reproducing apparatus 100 according to the present embodiment, frequent switching of image quality can be suppressed, and the quality of moving images experienced by the viewer can be improved.

図14は、動画データ再生装置100による処理の流れの一例を概略的に示す。図14に示す処理は、動画データ再生装置100が動画データの再生指示を受領した状態を開始状態として説明する。図14に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 14 schematically shows an example of the flow of processing by the moving image data playback apparatus 100. The processing shown in FIG. 14 will be described assuming that the moving image data reproducing apparatus 100 has received a moving image data reproduction instruction as a start state. Each process shown in FIG. 14 may be executed entirely within the playback unit 108 of the moving image data playback apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

S1202では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S1204では、1番目のフレームに対して、2番目のフレームのレイヤが下がるか否かを判定する。レイヤが下がらないと判定した場合、S1206に進み、レイヤが下がると判定した場合、S1208に進む。   In S1202, the first frame and the next second frame stored in the buffer 102 are confirmed. In step S1204, it is determined whether the layer of the second frame is lowered with respect to the first frame. If it is determined that the layer is not lowered, the process proceeds to S1206. If it is determined that the layer is lowered, the process proceeds to S1208.

S1206では、2番目のフレームを再生可能な最も高いレイヤで再生することを決定する。S1208では、次のNフレームで連続して再生可能な最も高いレイヤLを特定する。S1210では、次のNフレームをレイヤLで再生することを決定する。ここで、Nは第2の階層維持フレーム数の一例であってよい。Nは予め定められた数であってよく、また、変更可能であってもよい。   In S1206, it is determined to play back the second frame in the highest reproducible layer. In S1208, the highest layer L that can be reproduced continuously in the next N frames is specified. In S1210, it is determined that the next N frames are to be reproduced in layer L. Here, N may be an example of the number of second layer maintenance frames. N may be a predetermined number or may be changeable.

S1212では、動画データの最終フレームまで処理が完了したか否かを判定する。最終フレームまで処理が完了していないと判定された場合、S1202に戻り、さらに次のフレームを確認する。最終フレームまで処理が完了したと判定された場合、処理が終了する。   In S1212, it is determined whether or not the processing has been completed up to the final frame of the moving image data. If it is determined that the processing has not been completed up to the final frame, the process returns to S1202 to confirm the next frame. If it is determined that the process has been completed up to the last frame, the process ends.

図15は、動画データ再生装置100による処理の流れの具体例を概略的に示す。図15に示す処理は、動画データ再生装置100が動画データの再生指示を受領した状態を開始状態として説明する。図15に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 15 schematically shows a specific example of the flow of processing by the moving image data reproducing apparatus 100. The process shown in FIG. 15 will be described assuming that the moving image data reproducing apparatus 100 has received a moving image data reproduction instruction as a start state. Each process shown in FIG. 15 may be performed entirely within the playback unit 108 of the moving image data playback apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

図中、Xはフレーム番号を示す。YはXの最大値を示す。Xの初期値は0であり、Yは動画データに含まれるフレームの数を示す。B[X]は、X番目のフレームについて、バッファ102に格納されているレイヤデータの数を示す。Jは、最大レイヤ数、すなわち、動画データの符号化階層数を示す。   In the figure, X indicates a frame number. Y represents the maximum value of X. The initial value of X is 0, and Y indicates the number of frames included in the moving image data. B [X] indicates the number of layer data stored in the buffer 102 for the Xth frame. J indicates the maximum number of layers, that is, the number of encoding layers of moving image data.

S1302では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S1304では、B[X+1]がB[X]よりも小さいか否かを判定する。B[X+1]がB[X]よりも小さくないと判定した場合、S1306に進み、小さいと判定した場合、S1310に進む。   In S1302, the first frame and the next second frame stored in the buffer 102 are confirmed. In S1304, it is determined whether B [X + 1] is smaller than B [X]. If it is determined that B [X + 1] is not smaller than B [X], the process proceeds to S1306. If it is determined that B [X + 1] is smaller than B [X], the process proceeds to S1310.

S1306では、X+1番目のフレームをB[X+1]に従って再生することを決定する。S608では、Xに1を加算する。   In S1306, it is determined to reproduce the X + 1th frame according to B [X + 1]. In S608, 1 is added to X.

S1310では、LにJを代入する。S1312では、X+1番目のフレームからX+N番目のフレームがレイヤLで再生可能か否かを判定する。再生不可能と判定された場合、S1314に進み、再生可能と判定された場合、S1316に進む。S1314では、Lから1を減算して、S1312に戻る。   In S1310, J is substituted for L. In S1312, it is determined whether or not the X + Nth frame to the X + Nth frame can be reproduced in the layer L. If it is determined that reproduction is not possible, the process proceeds to S1314. If it is determined that reproduction is possible, the process proceeds to S1316. In S1314, 1 is subtracted from L, and the process returns to S1312.

S1316では、nに1を代入する。S1318では、X+n番目のフレームをレイヤLで再生することを決定する。S1320では、nに1を加算する。S1322では、n=Nであるか否かを判定する。n=Nでないと判定した場合、S1318に戻り、n=Nであると判定した場合、S1324に進む。S1324では、XにNを加算する。   In S1316, 1 is substituted for n. In S1318, it is determined that the X + n-th frame is to be reproduced in the layer L. In S1320, 1 is added to n. In S1322, it is determined whether n = N. If it is determined that n is not N, the process returns to S1318, and if it is determined that n is N, the process proceeds to S1324. In S1324, N is added to X.

S1326では、X=Yであるか否かを判定する。X=Yでないと判定した場合、S1302に戻り、さらに次のフレームを確認する。X=Yであると判定した場合、処理を終了する。   In S1326, it is determined whether X = Y. If it is determined that X = Y is not true, the process returns to S1302 to confirm the next frame. If it is determined that X = Y, the process ends.

図16は、動画データ再生装置100による処理の流れの一例を概略的に示す。図16に示す処理は、動画データ再生装置100が動画データの再生指示を受領した状態を開始状態として説明する。図16に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 16 schematically shows an example of the flow of processing by the moving image data playback apparatus 100. The process shown in FIG. 16 will be described assuming that the moving image data reproducing apparatus 100 has received a moving image data reproduction instruction as a start state. Each process illustrated in FIG. 16 may be executed entirely within the reproduction unit 108 of the moving image data reproduction apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

S1402では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S1404では、1番目のフレームに対して、2番目のフレームのレイヤが上がるか否かを判定する。レイヤが上がらないと判定した場合、S1406に進み、レイヤが上がると判定した場合、S1408に進む。   In S1402, the first frame and the next second frame stored in the buffer 102 are confirmed. In S1404, it is determined whether or not the layer of the second frame is raised with respect to the first frame. If it is determined that the layer does not rise, the process proceeds to S1406. If it is determined that the layer is raised, the process proceeds to S1408.

S1406では、2番目のフレームを再生可能な最も高いレイヤで再生することを決定する。S1408では、次のMフレームで連続して再生可能な最も高いレイヤLを特定する。S1410では、S1408で決定されたレイヤLが1つ前のフレームのレイヤより高いか否かが判定される。レイヤLが1つ前のフレームのレイヤより高いと判定されなかった場合、S1412に進み、判定された場合、S1414に進む。S1412では、次のフレームを1つ前のフレームと同じレイヤで再生することを決定する。ここで、Mは第2の階層保証フレーム数の一例であってよい。Mは予め定められた数であってよく、また、変更可能であってもよい。S1414では、次のフレームをレイヤLで再生することを決定する。   In S1406, it is determined to reproduce the second frame in the highest reproducible layer. In S1408, the highest layer L that can be reproduced continuously in the next M frame is specified. In S1410, it is determined whether or not the layer L determined in S1408 is higher than the layer of the previous frame. If it is not determined that the layer L is higher than the layer of the previous frame, the process proceeds to S1412. If it is determined, the process proceeds to S1414. In S1412, it is determined that the next frame is to be reproduced in the same layer as the previous frame. Here, M may be an example of the number of second layer guaranteed frames. M may be a predetermined number or may be changeable. In S1414, it is determined to reproduce the next frame in layer L.

S1416では、動画データの最終フレームまで処理が完了したか否かを判定する。最終フレームまで処理が完了していないと判定された場合、S1402に戻り、さらに次のフレームを確認する。最終フレームまで処理が完了したと判定された場合、処理が終了する。   In step S1416, it is determined whether the processing has been completed up to the final frame of the moving image data. If it is determined that the processing has not been completed up to the final frame, the process returns to S1402 to confirm the next frame. If it is determined that the process has been completed up to the last frame, the process ends.

図17は、動画データ再生装置100による処理の流れの具体例を概略的に示す。図17に示す処理は、動画データ再生装置100が動画データの再生指示を受領した状態を開始状態として説明する。図17に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 17 schematically shows a specific example of the flow of processing by the moving image data playback apparatus 100. The processing shown in FIG. 17 will be described assuming that the moving image data reproducing apparatus 100 has received a moving image data reproduction instruction as a start state. Each process shown in FIG. 17 may be executed entirely within the playback unit 108 of the moving image data playback apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

図中、Xはフレーム番号を示す。YはXの最大値を示す。Xの初期値は0であり、Yは動画データに含まれるフレームの数を示す。B[X]は、X番目のフレームについて、バッファ102に格納されているレイヤデータの数を示す。Jは、最大レイヤ数、すなわち、動画データの符号化階層数を示す。   In the figure, X indicates a frame number. Y represents the maximum value of X. The initial value of X is 0, and Y indicates the number of frames included in the moving image data. B [X] indicates the number of layer data stored in the buffer 102 for the Xth frame. J indicates the maximum number of layers, that is, the number of encoding layers of moving image data.

S1502では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S1504では、B[X+1]がB[X]よりも大きいか否かを判定する。B[X+1]がB[X]よりも大きくないと判定した場合、S1506に進み、大きいと判定した場合、S1510に進む。   In S1502, the first frame and the next second frame stored in the buffer 102 are confirmed. In S1504, it is determined whether B [X + 1] is larger than B [X]. If it is determined that B [X + 1] is not greater than B [X], the process proceeds to S1506. If it is determined that B [X + 1] is greater than B [X], the process proceeds to S1510.

S1506では、X+1番目のフレームをB[X+1]に従って再生することを決定する。S1508では、Xに1を加算する。   In S1506, it is determined to play back the X + 1-th frame according to B [X + 1]. In S1508, 1 is added to X.

S1510では、X+1番目のフレームからX+M番目のフレームがB[X]より高いレイヤで再生可能か否かを判定する。再生不可能と判定された場合、S1512に進み、再生可能と判定された場合、S1514に進む。S1512では、X+1番目のフレームをB[X]に従って再生することを決定する。   In S1510, it is determined whether the X + Mth frame from the X + 1th frame can be reproduced in a layer higher than B [X]. If it is determined that reproduction is not possible, the process proceeds to S1512. If it is determined that reproduction is possible, the process proceeds to S1514. In S1512, it is determined to play back the X + 1th frame according to B [X].

S1514では、Lに0を代入する。S1516では、X+1番目のフレームからX+M番目のフレームがレイヤLで再生可能か否かを判定する。再生可能と判定された場合、S1518に進み、再生不可能と判定された場合、S1526に進む。S1518では、Lに1を加算する。S1520では、L=Jであるか否かを判定する。L=Jでないと判定した場合、S1516に戻り、L=Jであると判定した場合、S1522に進む。   In S1514, 0 is substituted into L. In step S1516, it is determined whether the X + Mth frame to the X + Mth frame can be reproduced in the layer L. If it is determined that playback is possible, the process proceeds to S1518. If it is determined that playback is not possible, the process proceeds to S1526. In S1518, 1 is added to L. In S1520, it is determined whether L = J. If it is determined that L = J is not established, the process returns to S1516. If it is determined that L = J is established, the process proceeds to S1522.

S1522では、X+1番目のフレームをレイヤLで再生することを決定する。S1524では、B[X+1]にLを代入する。S1526では、X+1番目のフレームをレイヤL−1で再生することを決定する。S1528では、B[X+1]にL−1を代入する。S1530では、Xに1を加算する。   In S1522, it is determined that the X + 1th frame is to be reproduced in layer L. In S1524, L is substituted into B [X + 1]. In S1526, it is determined that the X + 1-th frame is to be reproduced in the layer L-1. In S1528, L−1 is substituted into B [X + 1]. In S1530, 1 is added to X.

S1532では、X=Yであるか否かを判定する。X=Yでないと判定した場合、S1502に戻り、さらに次のフレームを確認する。X=Yであると判定した場合、処理を終了する。   In S1532, it is determined whether X = Y. If it is determined that X = Y is not true, the process returns to S1502 to confirm the next frame. If it is determined that X = Y, the process ends.

図18は、再生部108による復号化制御の一例を概略的に示す。ここでは、動画データ再生装置100による、複数レイヤを跨ったレイヤの切り替えを抑制する処理について説明する。例えば、4つの階層を含むように符号化された動画データについて、基本レイヤのレイヤデータのみを用いて復号化したフレームの次に、基本レイヤのレイヤデータと拡張レイヤ1〜3のレイヤデータとを用いて復号化したフレームが再生された場合、画質の差が大きく、閲覧者の体感する動画の品質が低いものとなってしまう場合がある。図18は、廃棄レイヤデータ156が廃棄された状態を示しており、例えば、10番目のフレームおよび11番目のフレームのそれぞれについて格納されているレイヤデータの数の差は3である。また、13番目のフレームおよび14番目のフレームのそれぞれについて格納されているレイヤデータの数の差は3である。   FIG. 18 schematically shows an example of decoding control by the playback unit 108. Here, a process of suppressing switching of layers across a plurality of layers by the moving image data reproduction device 100 will be described. For example, with respect to moving image data encoded to include four layers, a base layer data and layer data of enhancement layers 1 to 3 are added to a frame decoded using only base layer data. When a frame decoded using the reproduction is reproduced, there is a case where the difference in image quality is large and the quality of the moving image experienced by the viewer is low. FIG. 18 shows a state in which the discard layer data 156 is discarded. For example, the difference in the number of layer data stored for each of the 10th frame and the 11th frame is 3. Further, the difference in the number of layer data stored for each of the 13th frame and the 14th frame is 3.

これに対して、本実施形態に係る動画データ再生装置100が備える再生部108は、隣接するフレームのそれぞれについて格納されているレイヤデータの数の差が2以上ある場合に、画質が段階的に切り替わるように制御してよい。図18に示す例では、10番目のフレームおよび11番目のフレームのそれぞれについて格納されているレイヤデータの数の差が3であることから、再生部108は、画質が段階的に切り替わるようにすべく、9番目のフレームにおける拡張レイヤ3のレイヤデータと、10番目のフレームにおける拡張レイヤ2、3のレイヤデータとを廃棄レイヤデータ159とする。また、13番目のフレームおよび14番目のフレームのそれぞれについて格納されているレイヤデータの数の差が3であることから、再生部108は、画質が段階的に切り替わるようにすべく、14番目のフレームにおける拡張レイヤ2、3のレイヤデータと、15番目のフレームにおける拡張レイヤ3のレイヤデータとを廃棄レイヤデータ159とする。   On the other hand, the playback unit 108 included in the moving image data playback apparatus 100 according to the present embodiment gradually increases the image quality when the difference in the number of layer data stored for each adjacent frame is 2 or more. You may control to switch. In the example shown in FIG. 18, since the difference in the number of layer data stored for each of the 10th frame and the 11th frame is 3, the playback unit 108 switches the image quality in stages. Accordingly, the layer data of the enhancement layer 3 in the ninth frame and the layer data of the enhancement layers 2 and 3 in the tenth frame are set as discard layer data 159. In addition, since the difference in the number of layer data stored for each of the 13th frame and the 14th frame is 3, the reproduction unit 108 changes the image quality in steps so that the image quality is switched in stages. The layer data of the enhancement layers 2 and 3 in the frame and the layer data of the enhancement layer 3 in the 15th frame are set as discard layer data 159.

また、再生部108は、10番目のフレームおよび11番目のフレームのそれぞれについて格納されているレイヤデータの数の差が3であることから、レイヤデータの数の差が3よりも小さくなるように、10番目のフレームのうちの少なくとも1つのレイヤデータを廃棄してもよい。例えば、再生部108は、10番目のフレームについて格納されている、拡張レイヤ3のレイヤデータ、拡張レイヤ2および拡張レイヤ3のレイヤデータ、または拡張レイヤ1から3のレイヤデータを廃棄する。   Further, since the difference in the number of layer data stored for each of the 10th frame and the 11th frame is 3, the playback unit 108 makes the difference in the number of layer data smaller than 3. At least one layer data of the 10th frame may be discarded. For example, the playback unit 108 discards the layer data of the enhancement layer 3, the layer data of the enhancement layer 2 and the enhancement layer 3, or the layer data of the enhancement layers 1 to 3 stored for the 10th frame.

このように、再生部108は、動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ後のフレームよりも格納されているレイヤデータの数が予め定められた低下制限階層数以上多い一のフレームについて、格納されている複数のレイヤデータの一部のみを用いて当該一のフレームを復号化してよい。   As described above, when the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit 108 determines the number of layer data stored in advance of the next frame. For one frame that is greater than the number of lower limit layers, the one frame may be decoded using only a part of the plurality of stored layer data.

また、再生部108は、動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームよりも格納されているレイヤデータの数が予め定められた上昇制限階層数以上多い一のフレームについて、格納されている複数のレイヤデータの一部のみを用いて当該一のフレームを復号化してよい。   In addition, when the moving image data is encoded to include a plurality of hierarchies of three or more hierarchies, the reproduction unit 108 increases the number of layer data stored in advance of the previous frame. For one frame that is more than the limit number of layers, the one frame may be decoded using only a part of the plurality of stored layer data.

図19は、動画データ再生装置100による処理の流れの一例を概略的に示す。図19に示す処理は、動画データ再生装置100が動画データの再生指示を受領した状態を開始状態として説明する。図19に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 19 schematically shows an example of the flow of processing by the moving image data playback apparatus 100. The process shown in FIG. 19 will be described assuming that the moving image data reproducing apparatus 100 has received a moving image data reproduction instruction as a start state. Each process shown in FIG. 19 may be executed entirely within the playback unit 108 of the moving image data playback apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

S1702では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S1704では、1番目のフレームに対して、2番目のフレームのレイヤがKレイヤ以上下がるか否かを判定する。1番目のフレームに対して2番目のフレームのレイヤがKレイヤ以上下がるとは、1番目のフレームについて格納されているレイヤデータの数が、2番目のフレームについて格納されているレイヤデータの数にKを加算した値以上であることを示してよい。Kは低下制限階層数の一例であってよい。Kは予め定められた数であってよく、また、変更可能であってもよい。Kレイヤ以上下がると判定しなかった場合、S1706に進み、Kレイヤ以上下がると判定した場合、S1708に進む。   In S1702, the first frame and the next second frame stored in the buffer 102 are confirmed. In S1704, it is determined whether or not the layer of the second frame is lowered by K layers or more with respect to the first frame. When the layer of the second frame falls by K layers or more with respect to the first frame, the number of layer data stored for the first frame is equal to the number of layer data stored for the second frame. It may indicate that the value is equal to or greater than the value obtained by adding K. K may be an example of the number of lower limit layers. K may be a predetermined number or may be changeable. If it is not determined that the K layer will be lowered, the process proceeds to S1706, and if it is determined that the K layer is lowered, the process proceeds to S1708.

S1706では、1番目のフレームを、再生可能な最も高いレイヤで再生することを決定する。S1708では、1番目のフレームを、再生可能な最も高いレイヤより1つ低いレイヤで再生することを決定する。   In S1706, it is determined to play back the first frame in the highest playable layer. In S1708, it is determined to play back the first frame in a layer one lower than the highest playable layer.

S1710では、動画データの最終フレームまで処理が完了したか否かを判定する。最終フレームまで処理が完了していないと判定された場合、S1702に戻り、さらに次のフレームを確認する。最終フレームまで処理が完了したと判定された場合、処理が終了する。   In S1710, it is determined whether or not the processing has been completed up to the last frame of the moving image data. If it is determined that the process has not been completed up to the final frame, the process returns to S1702 to confirm the next frame. If it is determined that the process has been completed up to the last frame, the process ends.

図20は、動画データ再生装置100による処理の流れの具体例を概略的に示す。図20に示す処理は、動画データ再生装置100が動画データの再生指示を受領した状態を開始状態として説明する。図20に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 20 schematically shows a specific example of the flow of processing by the moving image data playback apparatus 100. The processing shown in FIG. 20 will be described assuming that the moving image data reproducing apparatus 100 has received a moving image data reproduction instruction as a start state. Each process illustrated in FIG. 20 may be executed entirely within the reproduction unit 108 of the moving image data reproduction apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

図中、Xはフレーム番号を示す。YはXの最大値を示す。Xの初期値は0であり、Yは動画データに含まれるフレームの数を示す。B[X]は、X番目のフレームについて、バッファ102に格納されているレイヤデータの数を示す。Kは、跨って低下してはいけないレイヤ数を示す。   In the figure, X indicates a frame number. Y represents the maximum value of X. The initial value of X is 0, and Y indicates the number of frames included in the moving image data. B [X] indicates the number of layer data stored in the buffer 102 for the Xth frame. K indicates the number of layers that should not be lowered across.

S1802では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S1804では、B[X]が(B[X+1]+K)以上であるか否かを判定する。B[X]が(B[X+1]+K)以上であると判定しなかった場合、S1806に進み、判定した場合、S1808に進む。   In S1802, the first frame and the next second frame stored in the buffer 102 are confirmed. In S1804, it is determined whether B [X] is equal to or greater than (B [X + 1] + K). If it is not determined that B [X] is equal to or greater than (B [X + 1] + K), the process proceeds to S1806. If it is determined, the process proceeds to S1808.

S1806では、X番目のフレームをB[X]に従って再生することを決定する。S1808では、X番目のフレームをB[X]−1のレイヤで再生することを決定する。   In S1806, it is determined to play back the Xth frame according to B [X]. In step S1808, it is determined that the Xth frame is to be reproduced in the layer B [X] -1.

S1810では、X=Yであるか否かを判定する。X=Yでないと判定した場合、S1812に進み、X=Yであると判定した場合、処理を終了する。S1812では、Xに1を加算して、S1802に戻る。S1802では、さらに次のフレームを確認する。   In S1810, it is determined whether X = Y. If it is determined that X = Y is not satisfied, the process proceeds to S1812. If it is determined that X = Y, the process is terminated. In S1812, 1 is added to X, and the process returns to S1802. In S1802, the next frame is further confirmed.

図21は、動画データ再生装置100による処理の流れの一例を概略的に示す。図21に示す処理は、動画データ再生装置100が動画データの再生指示を受領した状態を開始状態として説明する。図21に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 21 schematically shows an example of the flow of processing by the moving image data playback apparatus 100. The process shown in FIG. 21 will be described assuming that the moving image data reproducing apparatus 100 has received a moving image data reproduction instruction as a start state. Each process shown in FIG. 21 may be executed entirely within the playback unit 108 of the moving image data playback apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

S1902では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S1904では、1番目のフレームに対して、2番目のフレームのレイヤがKレイヤ以上上がるか否かを判定する。1番目のフレームに対して2番目のフレームのレイヤがKレイヤ以上上がるとは、2番目のフレームについて格納されているレイヤデータの数が、1番目のフレームについて格納されているレイヤデータの数にKを加算した値以上であることを示してよい。Kは上昇制限階層数の一例であってよ。Kレイヤ以上上がると判定しなかった場合、S1906に進み、Kレイヤ以上上がると判定した場合、S1908に進む。   In S1902, the first frame and the next second frame stored in the buffer 102 are confirmed. In step S1904, it is determined whether the layer of the second frame is higher than the K layer by the first frame. When the layer of the second frame rises by K layers or more with respect to the first frame, the number of layer data stored for the second frame is equal to the number of layer data stored for the first frame. It may indicate that the value is equal to or greater than the value obtained by adding K. K may be an example of the number of rise restriction levels. If it is not determined that the level is higher than the K layer, the process proceeds to S1906. If it is determined that the level is higher than the K layer, the process proceeds to S1908.

S1906では、2番目のフレームを、再生可能な最も高いレイヤで再生することを決定する。S1908では、2番目のフレームを、再生可能な最も高いレイヤより1つ低いレイヤで再生することを決定する。   In S1906, it is determined to play back the second frame in the highest playable layer. In S1908, it is determined to play back the second frame in a layer one lower than the highest playable layer.

S1910では、動画データの最終フレームまで処理が完了したか否かを判定する。最終フレームまで処理が完了していないと判定された場合、S1902に戻り、さらに次のフレームを確認する。最終フレームまで処理が完了したと判定された場合、処理が終了する。   In S1910, it is determined whether or not processing has been completed up to the final frame of the moving image data. If it is determined that the process has not been completed up to the final frame, the process returns to S1902 to confirm the next frame. If it is determined that the process has been completed up to the last frame, the process ends.

図22は、動画データ再生装置100による処理の流れの具体例を概略的に示す。図22に示す処理は、動画データ再生装置100が動画データの再生指示を受領した状態を開始状態として説明する。図22に示す各処理は、動画データ再生装置100の再生部108の内部で全て実行されてよい。なお、ここでは、1番目のフレームについては、再生可能な最も高いレイヤで再生することを前提として説明する。   FIG. 22 schematically shows a specific example of the flow of processing by the moving image data reproducing apparatus 100. The process shown in FIG. 22 will be described assuming that the moving image data reproducing apparatus 100 has received a moving image data reproduction instruction as a start state. Each process illustrated in FIG. 22 may be executed entirely within the reproduction unit 108 of the moving image data reproduction apparatus 100. Here, the first frame will be described on the premise that the first frame is reproduced in the highest reproducible layer.

図中、Xはフレーム番号を示す。YはXの最大値を示す。Xの初期値は0であり、Yは動画データに含まれるフレームの数を示す。B[X]は、X番目のフレームについて、バッファ102に格納されているレイヤデータの数を示す。Kは、跨って上昇してはいけないレイヤ数を示す。   In the figure, X indicates a frame number. Y represents the maximum value of X. The initial value of X is 0, and Y indicates the number of frames included in the moving image data. B [X] indicates the number of layer data stored in the buffer 102 for the Xth frame. K indicates the number of layers that should not rise across.

S2002では、バッファ102に格納されている1番目のフレームおよび次の2番目のフレームを確認する。S2004では、B[X+1]が(B[X]+K)以上であるか否かを判定する。B[X+1]が(B[X]+K)以上であると判定しなかった場合、S2006に進み、判定した場合、S2008に進む。   In S2002, the first frame and the next second frame stored in the buffer 102 are confirmed. In S2004, it is determined whether B [X + 1] is equal to or greater than (B [X] + K). If it is not determined that B [X + 1] is equal to or greater than (B [X] + K), the process proceeds to S2006. If it is determined, the process proceeds to S2008.

S2006では、X+1番目のフレームをB[X+1]に従って再生することを決定する。S2008では、X+1番目のフレームをB[X+1]−1のレイヤで再生することを決定する。   In S2006, it is determined to reproduce the X + 1th frame according to B [X + 1]. In S2008, it is determined that the X + 1th frame is to be reproduced in the layer of B [X + 1] -1.

S2010では、X=Yであるか否かを判定する。X=Yでないと判定した場合、S2012に進み、X=Yであると判定した場合、処理を終了する。S2012では、Xに1を加算して、S2002に戻る。S2002では、さらに次のフレームを確認する。   In S2010, it is determined whether X = Y. If it is determined that X = Y is not satisfied, the process proceeds to S2012. If it is determined that X = Y, the process is terminated. In S2012, 1 is added to X, and the process returns to S2002. In S2002, the next frame is confirmed.

階層符号化方式では、連続した複数のフレームでグループを構成し、同一グループ内のフレーム間の参照関係を利用して符号化する場合がある。参照関係を有する複数のフレームの集合をフレームグループと呼ぶ(なお、ここで述べているフレームグループはGOP(group of picture)と称される場合がある。)。フレームグループを構成する符号化では、フレームグループを構成しない符号化と比較してより高い圧縮効率を実現することができる。   In the hierarchical encoding method, there are cases where a group is formed by a plurality of consecutive frames and encoding is performed using a reference relationship between frames in the same group. A set of a plurality of frames having a reference relationship is referred to as a frame group (note that the frame group described here may be referred to as a GOP (group of picture)). In encoding that constitutes a frame group, higher compression efficiency can be realized compared to encoding that does not constitute a frame group.

図23は、複数のフレームでフレームグループを構成するように階層符号化された動画データ180の一例である。動画データ180は、複数のフレームグループ182、184で構成される。フレームグループはそれぞれ複数のフレーム186、188から構成され、各フレームはLIDとSIDによって識別可能な複数のレイヤデータを含んでいる。   FIG. 23 is an example of moving image data 180 that is hierarchically encoded so as to form a frame group with a plurality of frames. The moving image data 180 is composed of a plurality of frame groups 182 and 184. Each frame group includes a plurality of frames 186 and 188, and each frame includes a plurality of layer data that can be identified by LID and SID.

フレームグループを構成するように階層符号化された動画データを復号化するときは、基本レイヤと拡張レイヤの両方のレイヤデータを用いて復号することで高画質な動画を復号することが可能であり、また、基本レイヤのレイヤデータのみを用いて復号することで低画質な動画を復号することも可能である。図24は、階層符号化方式で符号化されたフレームグループ182を用いて高画質な動画を再生する例である。フレームグループ190において、フレームグループ内の基本レイヤのレイヤデータ192と拡張レイヤのレイヤデータ193の両方を用いて復号化を行う。一方、図25は、階層符号化方式で符号化されたフレームグループ182を用いて低画質な動画を再生する例である。フレームグループ194において、基本レイヤのレイヤデータ196のみを用いて復号化を行う。   When decoding video data that has been hierarchically encoded to form a frame group, it is possible to decode high-quality video by decoding using both layer data of the base layer and the enhancement layer. In addition, it is possible to decode a low-quality moving image by decoding using only the layer data of the base layer. FIG. 24 shows an example in which a high-quality moving image is reproduced using the frame group 182 encoded by the hierarchical encoding method. In frame group 190, decoding is performed using both base layer data 192 and enhancement layer data 193 in the frame group. On the other hand, FIG. 25 is an example in which a low-quality moving image is reproduced using the frame group 182 encoded by the hierarchical encoding method. In the frame group 194, decoding is performed using only the layer data 196 of the base layer.

図26は、階層符号化方式で符号化されたフレームグループ200を用いて復号化を行う例である。フレームグループ200では、SID2のフレームに含まれる拡張レイヤのレイヤデータ202が欠落しており、その他のレイヤデータはすべて揃っている。この場合、フレームグループ206において、基本レイヤのレイヤデータ204のみを用いて復号化を行う。これは、フレームグループ内の拡張レイヤのレイヤデータ間に参照関係があり、フレームグループ206ではレイヤデータ202の欠落により拡張レイヤの復号化ができないためである。   FIG. 26 is an example in which decoding is performed using the frame group 200 encoded by the hierarchical encoding method. In the frame group 200, the layer data 202 of the enhancement layer included in the frame of SID2 is missing, and all other layer data is available. In this case, in the frame group 206, decoding is performed using only the layer data 204 of the base layer. This is because there is a reference relationship between the layer data of the enhancement layer in the frame group, and the enhancement layer cannot be decoded due to the lack of the layer data 202 in the frame group 206.

図23に示したフレームグループを構成するように階層符号化された動画データについても、段落0020で述べた通り、レイヤデータが様々な要因で欠落する場合がある。そこで、フレームグループを構成するように階層符号化された動画データを復号するときも、段落0024〜0117に述べた実施例と同様の処理を適用することで、閲覧者の体感品質を改善することが可能である。以下、その実施例について説明する。   As described in paragraph 0020, layer data may be lost due to various factors in moving image data that is hierarchically encoded so as to form the frame group shown in FIG. Therefore, when decoding moving image data that has been hierarchically encoded so as to form a frame group, by applying the same processing as in the embodiments described in paragraphs 0024 to 0117, the quality of the viewer's experience can be improved. Is possible. Examples thereof will be described below.

図27は、バッファ102が格納している動画データ150の一例を概略的に示す。ここでは、2つの階層を含むように符号化され、それぞれが4つのフレームを含む複数のフレームグループを有する動画データ150を示す。図27に示す例では、2つ目のフレームグループに属する6および8番目のフレームと、4つ目のフレームグループに属する14番目のフレームとにおける拡張レイヤのレイヤデータが、欠落したレイヤデータ154である場合を例示する。   FIG. 27 schematically shows an example of the moving image data 150 stored in the buffer 102. Here, moving image data 150 that is encoded so as to include two layers and has a plurality of frame groups each including four frames is shown. In the example shown in FIG. 27, the layer data of the enhancement layer in the 6th and 8th frames belonging to the second frame group and the 14th frame belonging to the fourth frame group is the missing layer data 154. An example is given.

ここで、動画データ150の複数のフレームグループのそれぞれについて、フレームグループに含まれるすべてのフレームについて基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータが格納されている場合、フレームグループのすべての基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータを用いてフレームグループを復号化し、フレームグループに含まれるすべてのフレームのうち少なくとも1つのフレームについて基本レイヤのレイヤデータのみが格納されている場合、フレームグループのすべての基本レイヤのレイヤデータのみを用いてフレームグループを復号化すると、フレームグループ毎に高画質と低画質とが切り替わることになり、動画を閲覧する閲覧者が体感する動画の品質が低いものとなってしまう場合がある。   Here, for each of the plurality of frame groups of the video data 150, when the layer data of the base layer and the layer data of the enhancement layer are stored for all the frames included in the frame group, all the base layers of the frame group are stored. When the frame data is decoded using the layer data and the layer data of the enhancement layer, and only the base layer data is stored for at least one frame among all the frames included in the frame group, all of the frame groups When a frame group is decoded using only the layer data of the base layer, the high image quality and the low image quality are switched for each frame group, and the quality of the video experienced by the viewer viewing the video becomes low. May end up .

これに対して、本実施形態に係る動画データ再生装置100は、閲覧者が体感する動画の品質を向上させる処理を実行する。動画データ再生装置100が備える再生部108は、例えば、すべてのフレームについて基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている第1のフレームグループの次の第2のフレームグループについて、すべてのフレームのうち少なくとも1つのフレームについて基本レイヤのレイヤデータのみが格納されている場合、第2のフレームグループ以降の予め定められた第1の階層維持フレームグループ数のフレームグループについて、すべてのフレームについて基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータの両方が格納されている場合であっても、第2のフレームグループのすべての基本レイヤのレイヤデータのみを用いて第2のフレームグループを復号化する。これにより、高画質と低画質との頻繁な切り替えを抑制することができ、閲覧者が体感する動画の品質を向上させることができる。第1の階層維持フレームグループ数は、第1の数の一例であってよい。   On the other hand, the moving image data reproducing device 100 according to the present embodiment executes a process for improving the quality of the moving image experienced by the viewer. The playback unit 108 included in the moving image data playback apparatus 100 is, for example, for the second frame group next to the first frame group in which both the layer data of the base layer and the layer data of the enhancement layer are stored for all frames. When only layer data of the base layer is stored for at least one frame among all the frames, all the frame groups of the first number of first layer maintaining frame groups after the second frame group are all Even when both base layer data and enhancement layer layer data are stored for a frame, the second frame group is decoded using only the base layer data of all base layers of the second frame group. Turn into. Thereby, frequent switching between high image quality and low image quality can be suppressed, and the quality of moving images experienced by the viewer can be improved. The number of first layer maintenance frame groups may be an example of the first number.

また、再生部108は、例えば、第2のフレームグループ以降の第1の階層維持フレームグループ数のフレームグループの次の第3のフレームグループについて、すべてのフレームについて基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータが格納されており、かつ、第3のフレームグループ以降の予め定められた第1の階層保証フレームグループ数のフレームグループのすべてについて、すべてのフレームについて基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータが格納されている場合、第3フレームグループのすべての基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータを用いて第3フレームグループを復号化し、第3のフレームグループ以降の第1の階層保証フレームグループ数のフレームグループの少なくとも1つについて、すべてのフレームのうち少なくとも1つについて基本レイヤのレイヤデータのみが格納されている場合、第3のフレームグループのすべての基本レイヤのレイヤデータのみを用いて第3のフレームグループを復号化する。このように、再生部108は、フレームグループに含まれるフレームのうち少なくとも1つのフレームについて基本レイヤのレイヤデータのみが格納されているフレームグループの次の一のフレームグループについて、すべてのフレームについて基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータが格納されており、かつ、当該一のフレームグループ以降の第1の階層保証フレームグループ数のフレームグループのすべてについて、すべてのフレームについて基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータが格納されている場合、当該一のフレームグループのすべての基本レイヤのレイヤデータおよび拡張レイヤのレイヤデータを用いて当該一のフレームグループを復号化し、当該一ののフレームグループ以降の第1の階層保証フレームグループ数のフレームグループの少なくとも1つについて、すべてのフレームのうち少なくとも1つについて基本レイヤのレイヤデータのみが格納されている場合、当該一のフレームグループのすべての基本レイヤのレイヤデータのみを用いて当該一のフレームグループを復号化してよい。これにより、高画質と低画質との頻繁な切り替えをさらに抑制することができ、閲覧者が体感する動画の品質を向上させることができる。   Also, the playback unit 108, for example, for the third frame group following the number of first hierarchically maintained frame groups after the second frame group, for the base layer layer data and the enhancement layer for all frames. Layer data is stored, and for all the frame groups of the first number of first guaranteed layer groups after the third frame group, the basic layer layer data and the enhancement layer layer for all frames When data is stored, the third frame group is decoded using the layer data of all the basic layers and the layer data of the enhancement layer of the third frame group, and the first hierarchical guaranteed frame after the third frame group Small number of frame groups In the case where only the base layer layer data is stored for at least one of all the frames, only the base layer data of all the base layer of the third frame group is used for the third frame group. Decrypt. As described above, the playback unit 108 uses the basic layer for all frames in the next frame group after the frame group in which only the layer data of the basic layer is stored for at least one of the frames included in the frame group. Layer data and enhancement layer layer data are stored, and the base layer layer data and extension for all the frames of the first hierarchy guaranteed frame group number after the one frame group are stored. When layer data of a layer is stored, the one frame group is decoded using the layer data of all the basic layers and the enhancement layer of the one frame group, and after the one frame group First If only layer data of the base layer is stored for at least one of all frames for at least one frame group of the number of layer guaranteed frame groups, only layer data of all base layers of the one frame group May be used to decode the one frame group. Thereby, frequent switching between high image quality and low image quality can be further suppressed, and the quality of moving images experienced by the viewer can be improved.

図28は、バッファ102が格納している動画データ150の一例を概略的に示す。ここでは、4つの階層を含むように符号化され、それぞれが4つのフレームを含む複数のフレームグループを有する動画データ150を示す。図28に示す例では、2つ目のフレームグループに属する6および8番目のフレームと、4つ目のフレームグループに属する15番目のフレームとにおける拡張レイヤのレイヤデータが、欠落したレイヤデータ154である場合を例示する。   FIG. 28 schematically shows an example of the moving image data 150 stored in the buffer 102. Here, the moving image data 150 is encoded to include four layers and each has a plurality of frame groups each including four frames. In the example shown in FIG. 28, the layer data of the enhancement layer in the sixth and eighth frames belonging to the second frame group and the fifteenth frame belonging to the fourth frame group is the missing layer data 154. An example is given.

ここで、動画データ150の複数のフレームグループのそれぞれについて、すべてのフレームについて、すべてのフレームのうち格納されているレイヤデータの数が最も少ないフレームのレイヤデータの数であるグループ最少レイヤデータ数のレイヤデータを用いてフレームグループを復号化すると、1および3番目のフレームグループについては最高画質、2および4番目のフレームグループについては、基本レイヤのレイヤデータおよび拡張レイヤ1のレイヤデータのみを用いた画質となり、1フレームグループ毎に高画質と低画質とが切り替わることになり、動画を閲覧する閲覧者が体感する動画の品質が低いものとなってしまう場合がある。   Here, for each of the plurality of frame groups of the moving image data 150, for all the frames, the number of layer data of the group having the smallest number of layer data stored in all the frames is the minimum number of layer data. When the frame group is decoded using the layer data, the highest image quality is used for the first and third frame groups, and only the base layer data and the enhancement layer 1 layer data are used for the second and fourth frame groups. The image quality is changed, and the high image quality and the low image quality are switched for each frame group, and the quality of the moving image experienced by the viewer viewing the moving image may be low.

これに対して、本実施形態に係る動画データ再生装置100は、閲覧者が体感する動画の品質を向上させる処理を実行する。動画データ再生装置100が備える再生部108は、例えば、1つ前のフレームグループよりも、グループ最少レイヤデータ数が少ない一のフレームグループについて、当該一のフレームグループ以降の予め定められた第2の階層維持フレームグループ数のフレームグループについて、グループ最少レイヤデータ数が当該一のフレームグループのグループ最少レイヤデータ数よりも多い場合であっても、すべてのフレームの当該一のフレームグループのグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、当該一のフレームグループ以降の第2の階層維持フレームグループ数のフレームグループを復号化する、これにより、高画質と低画質との頻繁な切り替えを抑制することができ、閲覧者が体感する動画の品質を向上させることができる。   On the other hand, the moving image data reproducing device 100 according to the present embodiment executes a process for improving the quality of the moving image experienced by the viewer. The playback unit 108 included in the moving image data playback apparatus 100, for example, with respect to one frame group having a group minimum layer data number smaller than that of the previous frame group, a predetermined second after the one frame group. For a frame group with the number of hierarchically maintained frame groups, even if the number of group minimum layer data is larger than the number of group minimum layer data of the one frame group, the group minimum layer data of the one frame group of all frames The same number of layer data is used to decode the frame groups of the number of second layer maintenance frame groups after the one frame group, thereby suppressing frequent switching between high image quality and low image quality. And improve the quality of videos that viewers can experience It can be.

また、再生部108は、当該一のフレームグループ以降の第2の階層維持フレームグループ数のフレームグループの次のフレームグループについて、当該一のフレームグループよりもグループ最少レイヤデータ数が多く、かつ、当該次のフレームグループ以降の予め定められた第2の階層保証フレームグループ数のフレームグループのすべてについて、グループ最少レイヤデータ数が当該次のフレームグループのグループ最少レイヤデータ数と同じ数以上である場合、すべてのフレームの当該次のフレームグループのグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、当該次のフレームグループを復号化し、当該次のフレームグループ以降の第2の階層保証フレームグループ数のフレームグループの少なくとも1つについて、グループ最少レイヤデータ数が当該次のフレームグループのグループ最少レイヤデータ数より少ない場合、当該次のフレームグループについて、すべてのフレームの当該一のフレームグループのグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、当該次のフレームグループを復号化する。これにより、高画質と低画質との頻繁な切り替えをさらに抑制することができ、閲覧者が体感する動画の品質を向上させることができる。   In addition, the playback unit 108 has a group minimum layer data number greater than that of the one frame group for the frame group next to the second hierarchy maintaining frame group number after the one frame group, and When the number of group minimum layer data is equal to or greater than the number of group minimum layer data of the next frame group for all of the frame groups of the predetermined second layer guaranteed frame group number after the next frame group, Using the same number of layer data as the group minimum layer data number of the next frame group of all the frames, the next frame group is decoded, and the number of second hierarchical guaranteed frame groups after the next frame group For at least one of the frame groups, If the minimum group data number is less than the group minimum layer data number of the next frame group, the same number of layer data as the group minimum layer data number of the one frame group of all frames for the next frame group Is used to decode the next frame group. Thereby, frequent switching between high image quality and low image quality can be further suppressed, and the quality of moving images experienced by the viewer can be improved.

また、再生部108は、動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームグループよりもグループ最少レイヤデータ数が多い一のフレームグループについて、当該一のフレームグループ以降の第2の階層保証フレームグループ数のフレームグループのすべてについて、グループ最少レイヤデータ数が当該一のフレームグループの1つ前のフレームグループのグループ最少レイヤデータ数より多い場合、当該一のフレームグループと当該一のフレームグループ以降の第2の階層保証フレームグループ数のフレームグループのすべての中で最も少ないグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、当該一のフレームグループを復号化し、当該一のフレームグループ以降の第2の階層保証フレームグループ数のフレームグループの少なくとも1つについて、グループ最少レイヤデータ数が当該一のフレームグループの1つ前のフレームグループのグループ最少レイヤデータ数より少ない場合、当該一のフレームグループについて、当該一のフレームグループの1つ前のフレームグループのグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、当該一のフレームグループを復号化する。   In addition, when the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit 108 performs the following operation on one frame group in which the number of group minimum layer data is larger than the previous frame group. When the number of group minimum layer data is greater than the number of group minimum layer data of the previous frame group of the one frame group for all the frame groups of the second hierarchy guaranteed frame group number after the one frame group, Using the same number of layer data as the smallest group minimum layer data number of all the frame groups of the one frame group and the second layer guaranteed frame group number after the one frame group, the one frame Decode the group, and the second after the one frame group For at least one frame group of the number of layer guaranteed frame groups, when the number of group minimum layer data is less than the number of group minimum layer data of the previous frame group of the one frame group, The one frame group is decoded using the same number of layer data as the number of group minimum layer data of the previous frame group of one frame group.

また、再生部108は、動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ後のフレームグループよりも、グループ最少レイヤデータ数が予め定められた低下制限階層数以上多い一のフレームグループについて、すべてのフレームについて、当該一のフレームグループのグループ最少レイヤデータ数よりも少ない数のレイヤデータのみを用いて、当該一のフレームグループを復号化してよい。低下制限階層数は予め定められた数であってよく、また、変更可能であってもよい。   In addition, when the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit 108 has a reduction restriction in which the number of group minimum layer data is predetermined as compared to the next frame group. For one frame group that is greater than or equal to the number of hierarchies, the one frame group may be decoded using only a smaller number of layer data than the group minimum layer data number of the one frame group for all frames. The number of lower limit layers may be a predetermined number or may be changeable.

また、再生部108は、動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームグループよりも、グループ最少レイヤデータ数が予め定められた上昇制限階層数以上多い一のフレームグループについて、すべてのフレームについて、当該一のフレームグループのグループ最少レイヤデータ数よりも少ない数のレイヤデータのみを用いて、当該一のフレームグループを復号化してよい。上昇制限階層数は予め定められた数であってよく、また、変更可能であってもよい。   In addition, when the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit 108 has an increase restriction in which the number of group minimum layer data is predetermined as compared to the previous frame group. For one frame group that is greater than or equal to the number of hierarchies, the one frame group may be decoded using only a smaller number of layer data than the group minimum layer data number of the one frame group for all frames. The number of rise limit layers may be a predetermined number or may be changeable.

図29は、外部から動画データを受信可能な動画データ再生装置100の一例を概略的に示す。動画データ再生装置100は、動画サーバ310が配信する複数の階層を含むように符号化された動画データを受信して、受信した動画データを復号化して再生してよい。動画データ再生装置100は、ネットワーク300を介して動画サーバ310から動画データを受信してよい。ネットワーク300は、インターネット、有線LAN(Local Area Network)、無線LAN、有線電話網、および無線電話網の少なくともいずれかを含んでよい。   FIG. 29 schematically shows an example of a moving image data reproducing apparatus 100 that can receive moving image data from the outside. The moving image data reproducing apparatus 100 may receive moving image data encoded so as to include a plurality of layers distributed by the moving image server 310, and decode and reproduce the received moving image data. The moving image data reproducing device 100 may receive moving image data from the moving image server 310 via the network 300. The network 300 may include at least one of the Internet, a wired LAN (Local Area Network), a wireless LAN, a wired telephone network, and a wireless telephone network.

動画サーバ310は、動画データをストリーミング配信してよい。動画データ再生装置100は、動画サーバ310から動画データのストリーミングを受け付けて、バッファ102に格納しつつ復号化を行って、動画データを再生してよい。また、動画データ再生装置100は、動画サーバ310から動画データのストリーミングを受け付けてバッファ102に格納していき、動画データ全体がバッファ102に格納された後に、動画データを復号化して再生してもよい。   The video server 310 may stream video data. The moving image data reproducing apparatus 100 may receive moving image data streaming from the moving image server 310, decode the image data while storing it in the buffer 102, and reproduce the moving image data. Further, the moving image data reproducing apparatus 100 accepts streaming of moving image data from the moving image server 310 and stores it in the buffer 102. After the entire moving image data is stored in the buffer 102, the moving image data is decoded and reproduced. Good.

また、動画サーバ310は、ストリーミング配信ではなく、例えば動画ファイル単位で動画データを配信してもよい。動画データ再生装置100は、動画ファイル単位で受信した動画データをバッファ102に格納した後に、動画データを復号化して再生してよい。   Further, the moving image server 310 may distribute moving image data in units of moving image files, for example, instead of streaming distribution. The moving image data reproducing apparatus 100 may store the moving image data received in units of moving image files in the buffer 102 and then decode and reproduce the moving image data.

動画データ再生装置100は、パケット受信部112を備えてよい。パケット受信部112は、動画サーバ310によってレイヤデータ毎にパケット化されて送信されたパケットを受信してよい。パケットには、SIDが含まれていてよい。パケット受信部112は、パケットに含まれるレイヤデータをバッファ102に格納してよい。   The moving image data reproducing device 100 may include a packet receiving unit 112. The packet receiving unit 112 may receive a packet that has been packetized and transmitted for each layer data by the moving image server 310. The packet may include an SID. The packet receiving unit 112 may store the layer data included in the packet in the buffer 102.

また、動画データ再生装置100は、カメラ130によって撮像された動画データをカメラ130から受信してもよい。カメラ130は、動画を撮像可能なスチルカメラ、ビデオカメラ、および監視カメラなどであってよい。カメラ130は、複数の階層を含むように符号化した動画データを動画データ再生装置100に対して送信してよい。   In addition, the moving image data reproduction device 100 may receive moving image data captured by the camera 130 from the camera 130. The camera 130 may be a still camera, a video camera, a surveillance camera, or the like that can capture a moving image. The camera 130 may transmit the moving image data encoded so as to include a plurality of hierarchies to the moving image data reproduction device 100.

動画データ再生装置100は、映像信号受信部114を備えてよい。映像信号受信部114は、カメラ130から動画データを受信する。映像信号受信部114は、カメラ130が撮像しながら順次送信する動画データを受信してよい。また、映像信号受信部114は、カメラ130が撮像終了後に送信した動画データを受信してよい。動画データ再生装置100は、ネットワーク300を介してカメラ130から動画データを受信してもよい。なお、動画データ再生装置100は、パケット受信部112および映像信号受信部114の両方を備えてよく、また、いずれか一方のみを備えてもよい。   The moving image data reproducing device 100 may include a video signal receiving unit 114. The video signal receiving unit 114 receives moving image data from the camera 130. The video signal receiving unit 114 may receive moving image data that the camera 130 sequentially transmits while taking an image. Further, the video signal receiving unit 114 may receive moving image data transmitted by the camera 130 after completion of imaging. The moving image data playback device 100 may receive moving image data from the camera 130 via the network 300. Note that the moving image data reproduction device 100 may include both the packet receiving unit 112 and the video signal receiving unit 114, or may include only one of them.

上記実施形態において、第1の階層維持フレーム数は変更可能であってよいことを説明したが、動画データ再生装置100は、再生する動画データに応じて第1の階層維持フレーム数を変更してよい。例えば、動画データ再生装置100は、動画データの内容の動きの激しさおよび動画データの長さの少なくともいずれかに基づいて、第1の階層維持フレーム数を決定する。具体例として、動画データ再生装置100は、動きが激しいほど第1の階層維持フレーム数を大きくする。これにより、動きが激しい動画データほど、画質が切り替わる頻度を低減させることができる。また、具体例として、動画データ再生装置100は、動画データが長いほど第1の階層維持フレーム数を大きくする。   In the above embodiment, it has been described that the number of first layer maintenance frames may be changeable. However, the moving image data playback device 100 changes the number of first layer maintenance frames according to the moving image data to be played back. Good. For example, the moving image data reproduction device 100 determines the first tier maintenance frame number based on at least one of the intensity of motion of the moving image data content and the length of the moving image data. As a specific example, the moving image data reproduction device 100 increases the number of first layer maintenance frames as the movement becomes more intense. Thereby, the frequency with which the image quality is switched can be reduced as the moving image data moves more rapidly. As a specific example, the moving image data reproducing device 100 increases the number of first layer maintenance frames as the moving image data becomes longer.

また、動画データ再生装置100は、動画サーバ310から動画データを受信して再生する場合に、通信環境に応じて第1の階層維持フレーム数を変更してもよい。例えば、動画データ再生装置100は、通信品質が高いほど第1の階層維持フレーム数を大きくする。通信品質が高いほど動画データにおけるフレームの欠落は少なくなるので、通信品質が高いほど第1の階層維持フレーム数を大きくすることによって、本来高画質のフレームとして再生してもよいフレームを、低画質のフレームとして再生してしまう回数を低減することができる。動画データ再生装置100は、第1の階層保証フレーム数、第2の階層維持フレーム数、第2の階層保証フレーム数、第1の階層維持フレームグループ数、第1の階層保証フレームグループ数、第2の階層維持フレームグループ数、第2の階層保証フレームグループ数、低下制限階層数、および上昇制限階層数の少なくともいずれかについても、第1の階層維持フレーム数と同様に動画データおよび動画データを通信する通信環境の少なくともいずれかに応じて変更してよい。なお、第1の階層維持フレーム数、第2の階層維持フレーム数、第1の階層維持フレームグループ数、及び第2の階層維持フレームグループ数は、異なる値であってよく、また、同じ値であってもよい。また、第1の階層保証フレーム数、第2の階層保証フレーム数、第1の階層保証フレームグループ数、及び第2の階層保証フレームグループ数は、異なる値であってよく、また、同じ値であってもよい。   In addition, when the moving image data reproducing apparatus 100 receives and reproduces moving image data from the moving image server 310, the moving image data reproducing device 100 may change the first tier maintenance frame number according to the communication environment. For example, the moving image data reproduction device 100 increases the number of first layer maintenance frames as the communication quality is higher. The higher the communication quality, the fewer frames are lost in the video data. Therefore, the higher the communication quality, the larger the number of first layer maintenance frames. The number of times of reproduction as a frame can be reduced. The moving picture data reproducing apparatus 100 includes a first layer guaranteed frame number, a second layer maintained frame number, a second layer guaranteed frame number, a first layer maintained frame group number, a first layer guaranteed frame group number, As for the number of hierarchy maintaining frame groups of 2, the number of second hierarchy guaranteed frame groups, the number of lower limit hierarchies, and the number of increase limit hierarchies, moving picture data and moving picture data are also recorded in the same manner as the first hierarchy maintaining frame number. You may change according to at least one of the communication environments to communicate. Note that the number of first layer maintenance frames, the number of second layer maintenance frames, the number of first layer maintenance frame groups, and the number of second layer maintenance frame groups may be different values or the same value. There may be. Also, the number of first layer guaranteed frames, the number of second layer guaranteed frames, the number of first layer guaranteed frame groups, and the number of second layer guaranteed frame groups may be different values. There may be.

以上の説明において、動画データ再生装置100の各部は、ハードウエアにより実現されてもよく、ソフトウエアにより実現されてもよい。また、ハードウエアとソフトウエアとの組み合わせにより実現されてもよい。また、プログラムが実行されることにより、コンピュータが、動画データ再生装置100として機能してもよい。プログラムは、コンピュータ読み取り可能な媒体またはネットワークに接続された記憶装置から、動画データ再生装置100の少なくとも一部を構成するコンピュータにインストールされてよい。   In the above description, each unit of the moving image data reproduction device 100 may be realized by hardware or may be realized by software. Further, it may be realized by a combination of hardware and software. Further, the computer may function as the moving image data reproducing apparatus 100 by executing the program. The program may be installed from a computer-readable medium or a storage device connected to a network to a computer that constitutes at least a part of the moving image data playback device 100.

コンピュータにインストールされ、コンピュータを本実施形態に係る動画データ再生装置100として機能させるプログラムは、CPUなどに働きかけて、コンピュータを、動画データ再生装置100の各部としてそれぞれ機能させる。これらのプログラムに記述された情報処理は、コンピュータに読込まれることにより、ソフトウエアと動画データ再生装置100のハードウエア資源とが協働した具体的手段として機能する。   A program that is installed in a computer and causes the computer to function as the moving image data reproducing apparatus 100 according to the present embodiment works on a CPU or the like to cause the computer to function as each unit of the moving image data reproducing apparatus 100. Information processing described in these programs functions as a specific means in which software and hardware resources of the moving image data reproducing apparatus 100 cooperate with each other by being read by a computer.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。その様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiment. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

特許請求の範囲、明細書、および図面中において示した装置、システム、プログラム、および方法における動作、手順、ステップ、および段階などの各処理の実行順序は、特段「より前に」、「先立って」などと明示しておらず、また、前の処理の出力を後の処理で用いるのでない限り、任意の順序で実現しうることに留意すべきである。特許請求の範囲、明細書、および図面中の動作フローに関して、便宜上「まず、」、「次に、」などを用いて説明したとしても、この順で実施することが必須であることを意味するものではない。   The order of execution of each process such as operations, procedures, steps, and stages in the apparatus, system, program, and method shown in the claims, the description, and the drawings is particularly “before” or “prior to”. It should be noted that it can be realized in any order unless the output of the previous process is used in the subsequent process. Regarding the operation flow in the claims, the description, and the drawings, even if it is described using “first,” “next,” etc. for convenience, it means that it is essential to carry out in this order. It is not a thing.

100 動画データ再生装置、102 バッファ、108 再生部、110 動画データ表示部、112 パケット受信部、114 映像信号受信部、130 カメラ、150 動画データ、151 フレーム、152 レイヤデータ、154 欠落したレイヤデータ、156 廃棄レイヤデータ、158 廃棄レイヤデータ、159 廃棄レイヤデータ、160 動画データ、161 フレーム、162 レイヤデータ、163 レイヤデータ、170 動画データ、171 フレーム、172 レイヤデータ、173 レイヤデータ、180 動画データ、182 フレームグループ、184 フレームグループ、186 フレーム、188 フレーム、190 フレームグループ、192 レイヤデータ、193 レイヤデータ、194 フレームグループ、196 レイヤデータ、200 フレームグループ、202 レイヤデータ、204 レイヤデータ、206 フレームグループ、300 ネットワーク、310 動画サーバ 100 video data playback device, 102 buffer, 108 playback unit, 110 video data display unit, 112 packet reception unit, 114 video signal reception unit, 130 camera, 150 video data, 151 frames, 152 layer data, 154 missing layer data, 156 Discarded layer data, 158 Discarded layer data, 159 Discarded layer data, 160 video data, 161 frames, 162 layer data, 163 layer data, 170 video data, 171 frames, 172 layer data, 173 layer data, 180 video data, 182 Frame group, 184 frame group, 186 frame, 188 frame, 190 frame group, 192 layer data, 193 layer data, 194 frame group 196 layer data, 200 frame groups, 202 layer data, 204 layer data, 206 frame groups, 300 network, 310 video server

Claims (21)

複数の階層を含むように符号化された動画データを復号化する動画データ再生装置であって、
前記動画データを一時的に格納するバッファと、
前記動画データを復号化する再生部と
を備え、
前記再生部は、
前記バッファに含まれる前記動画データの複数のフレームのそれぞれに含まれるレイヤデータを確認し、
第1フレームにレイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータの両方が格納されており、かつ、前記第1フレームの次の第2フレームに前記レイヤID=1のレイヤデータのみが格納されている場合、前記第2フレーム以降の予め定められた第1の階層維持フレーム数のフレームについて、前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータの両方が格納されている場合であっても、前記レイヤID=1のレイヤデータのみを用いて前記第2フレーム以降の前記第1の階層維持フレーム数のフレームを復号化し、
前記第1フレームに前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータの両方が格納されており、かつ、前記第2フレームに前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータが格納されている場合、前記第2フレームの前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータの両方を用いて前記第2フレームを復号化し、
前記第1フレームに前記レイヤID=1のレイヤデータのみが格納されている場合、前記第2フレームについて、格納されているレイヤデータを用いて再生可能な最も高いレイヤの動画を再生するように復号化する、動画データ再生装置。
A moving image data reproducing device for decoding moving image data encoded to include a plurality of layers,
A buffer for temporarily storing the video data;
A playback unit for decoding the video data,
The playback unit
Check the layer data included in each of the plurality of frames of the video data included in the buffer,
Both the layer data of layer ID = 1 and the layer data of layer ID = 2 are stored in the first frame, and only the layer data of layer ID = 1 is stored in the second frame next to the first frame. When stored, both the layer data of the layer ID = 1 and the layer data of the layer ID = 2 are stored for the frames of the first number of first hierarchy maintaining frames after the second frame. Even if it is a case where only the layer data of said layer ID = 1 are used, the frame of the said 1st hierarchy maintenance frame number after the said 2nd frame is decoded,
Both the layer data of the layer ID = 1 and the layer data of the layer ID = 2 are stored in the first frame, and the layer data of the layer ID = 1 and the layer ID = 2 layer data is stored, the second frame is decoded using both the layer data of the layer ID = 1 and the layer data of the layer ID = 2 of the second frame,
When only the layer data of the layer ID = 1 is stored in the first frame, the second frame is decoded so as to play back the highest layer video that can be played back using the stored layer data. A moving image data reproducing device.
前記動画データを復号化して得られる動画を表示する動画データ表示部をさらに備える、請求項1に記載の動画データ再生装置。   The moving image data reproduction device according to claim 1, further comprising a moving image data display unit that displays a moving image obtained by decoding the moving image data. 前記第1の階層維持フレーム数を前記動画データに応じて変更する、請求項1または2に記載の動画データ再生装置。   The moving image data reproduction device according to claim 1, wherein the first hierarchy maintaining frame number is changed according to the moving image data. 前記再生部は、1つ前のフレームよりも格納されているレイヤデータが多い第3フレームについて、前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータが格納されており、かつ、前記第3フレーム以降の予め定められた第1の階層保証フレーム数のフレームのすべてについて、前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータの両方が格納されている場合、前記第3フレームの前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータの両方を用いて前記第3フレームを復号化し、前記第3フレーム以降の前記第1の階層保証フレーム数のフレームの少なくとも1つについて、前記レイヤID=1のレイヤデータのみが格納されている場合、前記第3フレームの前記レイヤID=1のレイヤデータのみを用いて前記第3フレームを復号化する、請求項1から3のいずれか一項に記載の動画データ再生装置。   The playback unit stores the layer data of the layer ID = 1 and the layer data of the layer ID = 2 for the third frame in which more layer data is stored than the previous frame, and When both the layer data of the layer ID = 1 and the layer data of the layer ID = 2 are stored for all of the frames having the predetermined number of first hierarchical guaranteed frames after the third frame, The third frame is decoded using both the layer data of the layer ID = 1 and the layer data of the layer ID = 2 of the third frame, and the frames having the number of first hierarchical guaranteed frames after the third frame When only layer data of the layer ID = 1 is stored for at least one of the above, the third frame Decoding the third frame using only layer data of ear ID = 1, the moving picture data reproducing apparatus according to any one of claims 1 to 3. 前記第1の階層保証フレーム数を前記動画データに応じて変更する、請求項4に記載の動画データ再生装置。   The moving image data reproducing device according to claim 4, wherein the first hierarchical guaranteed frame number is changed according to the moving image data. 前記再生部は、前記動画データが3階層以上の複数の階層を含むように符号化されている場合において、前記動画データの複数のフレームのそれぞれについて、格納されているすべてのレイヤデータの少なくとも1つのレイヤデータを用いて前記フレームを復号化する、請求項1から5のいずれか一項に記載の動画データ再生装置。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more layers, the reproducing unit includes at least one of all stored layer data for each of the plurality of frames of the moving image data. 6. The moving image data reproduction device according to claim 1, wherein the frame is decoded using one layer data. 前記再生部は、前記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームよりも格納されているレイヤデータが少ない第4フレームについて、前記第4フレーム以降の予め定められた第2の階層維持フレーム数のフレームについて、前記第4フレームよりも多くのレイヤデータが格納されている場合であっても、前記第4フレームについて格納されているレイヤデータの数と同じ数以下のレイヤデータを用いて前記第4フレーム以降の前記第2の階層維持フレーム数のフレームを復号化する、請求項6に記載の動画データ再生装置。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit performs the first frame on the fourth frame with less layer data stored than the previous frame. Layers stored for the fourth frame, even if more layer data than the fourth frame is stored for a predetermined number of second layer maintenance frames after the fourth frame 7. The moving image data reproducing apparatus according to claim 6, wherein the second frame maintaining frame number after the fourth frame is decoded using layer data equal to or less than the number of data. 前記再生部は、前記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームよりも格納されているレイヤデータが多い第5フレームについて、前記第5フレーム以降の予め定められた第2の階層保証フレーム数のフレームのすべてについて、前記第5フレームの1つ前のフレームに格納されているレイヤデータより多くのレイヤデータが格納されている場合、前記第5フレームと前記第5フレーム以降の予め定められた第2の階層保証フレーム数のフレームのそれぞれのレイヤデータ数の中で最も少ないレイヤデータ数と同じ数のレイヤデータを用いて前記第5フレームを復号化し、
前記第5フレーム以降の前記第2の階層保証フレーム数のフレームの少なくとも1つについて、前記第5フレームの1つ前のフレームよりも少ないレイヤデータが格納されている場合、前記第5フレームについて、前記第5フレームの1つ前のフレームについて格納されているレイヤデータの数と同じ数のレイヤデータを用いて前記第5フレームを復号化する、請求項6または7に記載の動画データ再生装置。
In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the reproducing unit performs the above processing on the fifth frame having more layer data stored than the previous frame. When more layer data than the layer data stored in the frame immediately before the fifth frame is stored for all the frames of the predetermined second layer guaranteed frame number after the fifth frame, By using the same number of layer data as the smallest number of layer data among the number of layer data of the fifth frame and the predetermined number of second layer guaranteed frames after the fifth frame, the fifth frame is used. Decrypt the frame,
When at least one of the frames of the second hierarchy guaranteed frame number after the fifth frame is stored with less layer data than the frame immediately before the fifth frame, the fifth frame, The moving image data reproduction device according to claim 6 or 7, wherein the fifth frame is decoded by using the same number of layer data as the number of layer data stored for the frame immediately before the fifth frame.
前記再生部は、前記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ後のフレームよりも格納されているレイヤデータの数が予め定められた低下制限階層数以上多い第6フレームについて、格納されている複数のレイヤデータの一部のみを用いて、前記第6フレームを復号化する、請求項6から8のいずれか一項に記載の動画データ再生装置。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit has a predetermined lower limit on the number of layer data stored after the next frame. The moving image data reproduction according to any one of claims 6 to 8, wherein the sixth frame is decoded using only a part of the plurality of stored layer data for the sixth frame that is greater than the number of layers. apparatus. 前記再生部は、前記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームよりも格納されているレイヤデータの数が予め定められた上昇制限階層数以上多い第7フレームについて、格納されている複数のレイヤデータの一部のみを用いて、前記第7フレームを復号化する、請求項6から9のいずれか一項に記載の動画データ再生装置。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit has a predetermined increase limit on the number of layer data stored before the previous frame. The moving image data reproduction according to any one of claims 6 to 9, wherein the seventh frame is decoded by using only a part of the plurality of stored layer data for the seventh frame having a number greater than or equal to the number of layers. apparatus. 複数の階層を含むように符号化され、それぞれが複数のフレームを含む複数のフレームグループを有する動画データを復号化する動画データ再生装置であって、
前記動画データを一時的に格納するバッファと、
前記動画データを復号化する再生部と
を備え、
前記再生部は、
前記バッファに含まれる前記動画データの前記複数のフレームグループのそれぞれに含まれるレイヤデータを確認し、
第1のフレームグループのすべてのフレームについてレイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータの両方が格納されており、かつ、前記第1のフレームグループの次の第2のフレームグループについて、すべてのフレームのうち少なくとも1つのフレームについて前記レイヤID=1のレイヤデータのみが格納されている場合、前記第2のフレームグループ以降の予め定められた第1の階層維持フレームグループ数のフレームグループについて、すべてのフレームについて前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータの両方が格納されている場合であっても、前記第2のフレームグループのすべての前記レイヤID=1のレイヤデータのみを用いて前記第2のフレームグループを復号化し、
前記第1のフレームグループのすべてのフレームについて前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータの両方が格納されており、かつ、前記第2のフレームグループのすべてのフレームについて前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータの両方が格納されている場合、前記第2のフレームグループのすべての前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータを用いて前記第2のフレームグループを復号化し、
前記第1のフレームグループについて、すべてのフレームのうち少なくとも1つのフレームについて前記レイヤID=1のレイヤデータのみが格納されている場合、前記第2のフレームグループについて、格納されているレイヤデータを用いて再生可能な最も高いレイヤの動画を再生するように復号化する、
動画データ再生装置。
A video data reproducing device that decodes video data that is encoded to include a plurality of layers and each has a plurality of frame groups each including a plurality of frames,
A buffer for temporarily storing the video data;
A playback unit for decoding the video data,
The playback unit
Check the layer data included in each of the plurality of frame groups of the video data included in the buffer,
And both all records about the frame unpleasant ID = 1 of the layer data and Layer ID = 2 of the layer data of the first frame group is stored, and, first of the next of said first frame group When only the layer data of the layer ID = 1 is stored for at least one of all the frames for the two frame groups, the first hierarchy maintaining frame determined in advance after the second frame group Even if both the layer data of the layer ID = 1 and the layer data of the layer ID = 2 are stored for all the frames of the number of groups, all the frames of the second frame group Decoding the second frame group using only the layer data of the layer ID = 1 And,
Both the layer data of the layer ID = 1 and the layer data of the layer ID = 2 are stored for all the frames of the first frame group, and the frame data of all the frames of the second frame group When both the layer data of layer ID = 1 and the layer data of layer ID = 2 are stored, all the layer data of layer ID = 1 and the layer of layer ID = 2 of the second frame group Decoding the second frame group using data;
For the first frame group, when only the layer data of the layer ID = 1 is stored for at least one frame among all the frames, the stored layer data is used for the second frame group Decoding to play the highest layer video that can be played,
Movie data playback device.
前記動画データを復号化して得られる動画を表示する動画データ表示部をさらに備える、請求項11に記載の動画データ再生装置。   The moving image data reproducing device according to claim 11, further comprising a moving image data display unit that displays a moving image obtained by decoding the moving image data. 前記再生部は、フレームグループに含まれるフレームのうち少なくとも1つのフレームについてレイヤID=1のレイヤデータのみが格納されているフレームグループの次の第3のフレームグループについて、すべてのフレームについて前記レイヤID=1のレイヤデータおよびレイヤID=2のレイヤデータが格納されており、かつ、前記第3のフレームグループ以降の予め定められた第1の階層保証フレームグループ数のフレームグループのすべてについて、すべてのフレームについて前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータが格納されている場合、前記第3のフレームグループのすべての前記レイヤID=1のレイヤデータおよび前記レイヤID=2のレイヤデータを用いて前記第3のフレームグループを復号化し、前記第3のフレームグループ以降の前記第1の階層保証フレームグループ数のフレームグループの少なくとも1つについて、すべてのフレームのうち少なくとも1つについて前記レイヤID=1のレイヤデータのみが格納されている場合、前記第3のフレームグループのすべての前記レイヤID=1のレイヤデータのみを用いて前記第3のフレームグループを復号化する、請求項12に記載の動画データ再生装置。 The playback unit includes the layer ID for all frames in a third frame group next to a frame group in which only layer data of layer ID = 1 is stored for at least one frame included in the frame group. = 1 of the layer data and layer ID = 2 are layer data storage, and, for all the third first hierarchy guaranteed frame group number of frames groups of predetermined subsequent frame group of When the layer data of the layer ID = 1 and the layer data of the layer ID = 2 are stored for all the frames, all the layer data of the layer ID = 1 and the layer ID of the third frame group = 2 using the layer data of = 2 Only the layer data of the layer ID = 1 for at least one of all the frames for at least one of the first hierarchical guaranteed frame group number after the third frame group. The video data reproducing device according to claim 12, wherein the third frame group is decoded using only layer data of all the layer IDs = 1 of the third frame group. 前記再生部は、前記動画データが3階層以上の複数の階層を含むように符号化されている場合において、前記動画データの前記複数のフレームグループのそれぞれについて、すべてのフレームについて、前記すべてのフレームのうち格納されているレイヤデータの数が最も少ないフレームのレイヤデータの数であるグループ最少レイヤデータ数以下のレイヤデータを用いて前記フレームグループを復号化する、請求項12または13に記載の動画データ再生装置。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more layers, the reproducing unit is configured to perform the operation for all the frames for each of the plurality of frame groups of the moving image data. 14. The moving image according to claim 12, wherein the frame group is decoded using layer data equal to or less than a group minimum layer data number, which is the number of layer data of a frame having the smallest number of layer data stored therein. Data playback device. 前記再生部は、前記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームグループよりも、グループ最少レイヤデータ数が少ない第4のフレームグループについて、前記第4のフレームグループ以降の予め定められた第2の階層維持フレームグループ数のフレームグループについて、グループ最少レイヤデータ数が前記第4のフレームグループのグループ最少レイヤデータ数よりも多い場合であっても、前記第4のフレームグループのグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、前記第4のフレームグループ以降の前記第2の階層維持フレームグループ数のフレームグループを復号化する、請求項14に記載の動画データ再生装置。   When the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the reproducing unit performs the fourth frame group having a smaller group minimum layer data number than the previous frame group. This is a case where the number of group minimum layer data is greater than the number of group minimum layer data of the fourth frame group for the frame groups having the predetermined number of second layer maintenance frame groups after the fourth frame group. However, using the same number of layer data as the number of group minimum layer data of the fourth frame group, the frame groups of the second layer-maintaining frame group number after the fourth frame group are decoded. The moving image data reproducing device according to claim 14. 前記再生部は、前記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームグループよりもグループ最少レイヤデータ数が多い第5のフレームグループについて、前記第5のフレームグループ以降の予め定められた第2の階層保証フレームグループ数のフレームグループのすべてについて、グループ最少レイヤデータ数が前記第5のフレームグループの1つ前のフレームグループのグループ最少レイヤデータ数より多い場合、前記第5のフレームグループと前記第5のフレームグループ以降の予め定められた第2の階層保証フレームグループ数のフレームグループのすべての中で最も少ないグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、前記第5のフレームグループを復号化し、
前記第5のフレームグループ以降の前記第2の階層保証フレームグループ数のフレームグループの少なくとも1つについて、グループ最少レイヤデータ数が前記第5のフレームグループの1つ前のフレームグループのグループ最少レイヤデータ数より少ない場合、前記第5のフレームグループについて、前記第5のフレームグループの1つ前のフレームグループのグループ最少レイヤデータ数と同じ数のレイヤデータを用いて、前記第5のフレームグループを復号化する、請求項14または15に記載の動画データ再生装置。
In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit, for a fifth frame group having a larger group minimum layer data number than the previous frame group, For all of the frame groups of the predetermined second layer guaranteed frame group number after the fifth frame group, the group minimum layer data number is the group minimum layer of the frame group immediately before the fifth frame group. When the number of data is greater than the number of data, it is the same as the number of group minimum layer data that is the smallest among all the frame groups of the fifth frame group and the predetermined number of second-layer guaranteed frame groups after the fifth frame group. Decode the fifth frame group using a number of layer data
For at least one of the second hierarchically guaranteed frame group number after the fifth frame group, the group minimum layer data of the frame group immediately before the fifth frame group is the group minimum layer data number. When the number is less than the number, the fifth frame group is decoded using the same number of layer data as the group minimum layer data number of the frame group immediately before the fifth frame group. The moving image data reproducing device according to claim 14 or 15,
前記再生部は、前記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ後のフレームグループよりも、グループ最少レイヤデータ数が予め定められた低下制限階層数以上多い第6のフレームグループについて、すべてのフレームについて、前記第6のフレームグループのグループ最少レイヤデータ数よりも少ない数のレイヤデータのみを用いて、前記第6のフレームグループを復号化する、請求項14から16のいずれか一項に記載の動画データ再生装置。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit has a lower limit hierarchies in which the number of group minimum layer data is determined in advance than the next frame group For the sixth frame group that is greater than or equal to the number, the sixth frame group is decoded using only the number of layer data that is less than the group minimum layer data number of the sixth frame group for all frames. The moving image data reproducing device according to any one of claims 14 to 16. 前記再生部は、前記動画データが3階層以上の複数の階層を含むように符号化されている場合において、1つ前のフレームグループよりも、グループ最少レイヤデータ数が予め定められた上昇制限階層数以上多い第7のフレームグループについて、すべてのフレームについて、前記第7のフレームグループのグループ最少レイヤデータ数よりも少ない数のレイヤデータのみを用いて、前記第7のフレームグループを復号化する、請求項14から17のいずれか一項に記載の動画データ再生装置。   In the case where the moving image data is encoded so as to include a plurality of hierarchies of three or more hierarchies, the playback unit has an ascending restriction hierarchy in which the number of group minimum layer data is determined in advance than the previous frame group. For the seventh frame group that is greater than or equal to the number, the seventh frame group is decoded using only a smaller number of layer data than the group minimum layer data number of the seventh frame group for all frames. The moving image data reproducing device according to any one of claims 14 to 17. 複数の階層を含むように符号化された動画データを復号化する動画データ再生装置であって、
前記動画データを一時的に格納するバッファと、
前記動画データを復号化する再生部と
を備え、
前記再生部は、
前記バッファに含まれる前記動画データの複数のフレームのそれぞれに含まれるレイヤデータを確認し、
第1フレームに第1階層の第1のレイヤデータおよび第2階層の第2のレイヤデータの両方が格納されており、かつ、前記第1フレームの次の第2フレームについて、前記第1のレイヤデータのみが格納されている場合、前記第2フレーム以降の予め定められた第1の数のフレームについて、前記第1のレイヤデータおよび前記第2のレイヤデータの両方が格納されている場合であっても、前記第1のレイヤデータのみを用いて前記第2フレーム以降の前記第1の数のフレームを復号化し、
前記第1フレームに前記第1のレイヤデータおよび前記第2のレイヤデータの両方が格納されており、かつ、前記第2フレームに前記第1のレイヤデータおよび前記第2のレイヤデータの両方が格納されている場合、前記第2フレームの前記第1のレイヤデータおよび前記第2のレイヤデータの両方を用いて前記第2フレームを復号化し、
前記第1フレームに前記第1のレイヤデータのみが格納されている場合、前記第2フレームについて、格納されているレイヤデータを用いて再生可能な最も高いレイヤの動画を再生するように復号化する、
動画データ再生装置。
A moving image data reproducing device for decoding moving image data encoded to include a plurality of layers,
A buffer for temporarily storing the video data;
A playback unit for decoding the video data,
The playback unit
Check the layer data included in each of the plurality of frames of the video data included in the buffer,
Both the first layer data of the first hierarchy and the second layer data of the second hierarchy are stored in the first frame, and the first layer for the second frame next to the first frame The case where only the data is stored is the case where both the first layer data and the second layer data are stored for the first predetermined number of frames after the second frame. However, only the first layer data is used to decode the first number of frames after the second frame,
Both the first layer data and the second layer data are stored in the first frame, and both the first layer data and the second layer data are stored in the second frame. If so, the second frame is decoded using both the first layer data and the second layer data of the second frame,
When only the first layer data is stored in the first frame, the second frame is decoded so as to play back the highest layer video that can be played back using the stored layer data. ,
Movie data playback device.
複数の階層を含むように符号化され、それぞれが複数のフレームを含む複数のフレームグループを有する動画データを復号化する動画データ再生装置であって、
前記動画データを一時的に格納するバッファと、
前記動画データを復号化する再生部と
を備え、
前記再生部は、
前記バッファに含まれる前記動画データの前記複数のフレームグループのそれぞれに含まれるレイヤデータを確認し、
第1のフレームグループのすべてのフレームについて第1階層の第1のレイヤデータおよび第2階層の第2のレイヤデータの両方が格納されており、かつ、前記第1のフレームグループの次の第2のフレームグループについて、すべてのフレームのうち少なくとも1つのフレームについて前記第1のレイヤデータのみが格納されている場合、前記第2のフレームグループ以降の予め定められた第1の数のフレームグループについて、すべてのフレームについて前記第1のレイヤデータおよび前記第2のレイヤデータの両方が格納されている場合であっても、前記第2のフレームグループのすべての前記第1のレイヤデータのみを用いて前記第2のフレームグループを復号化し、
前記第1のフレームグループのすべてのフレームについて前記第1のレイヤデータおよび前記第2のレイヤデータの両方が格納されており、かつ、前記第2のフレームグループのすべてのフレームについて前記第1のレイヤデータおよび前記第2のレイヤデータの両方が格納されている場合、前記第2のフレームグループのすべての前記第1のレイヤデータおよび前記第2のレイヤデータを用いて前記第2のフレームグループを復号化し、
前記第1のフレームグループについて、すべてのフレームのうち少なくとも1つのフレームについて前記第1のレイヤデータのみが格納されている場合、前記第2のフレームグループについて、格納されているレイヤデータを用いて再生可能な最も高いレイヤの動画を再生するように復号化する、
動画データ再生装置。
A video data reproducing device that decodes video data that is encoded to include a plurality of layers and each has a plurality of frame groups each including a plurality of frames,
A buffer for temporarily storing the video data;
A playback unit for decoding the video data,
The playback unit
Check the layer data included in each of the plurality of frame groups of the video data included in the buffer,
Both the first layer data of the first layer and the second layer data of the second layer are stored for all the frames of the first frame group, and the second second after the first frame group is stored. When only the first layer data is stored for at least one frame among all the frames, a predetermined first number of frame groups after the second frame group, Even if both the first layer data and the second layer data are stored for all the frames, the first layer data is used only for all the first layer data of the second frame group. Decoding the second frame group;
Both the first layer data and the second layer data are stored for all the frames of the first frame group, and the first layer for all the frames of the second frame group When both data and the second layer data are stored, the second frame group is decoded using all the first layer data and the second layer data of the second frame group And
For the first frame group, when only the first layer data is stored for at least one of all the frames, the second frame group is reproduced using the stored layer data. Decode to play the highest possible layer video,
Movie data playback device.
コンピュータを、請求項1から20のいずれか一項に記載の動画データ再生装置として機能させるためのプログラム。   A program for causing a computer to function as the moving image data reproducing device according to any one of claims 1 to 20.
JP2015227892A 2015-11-20 2015-11-20 Movie data reproducing apparatus and program Active JP6475603B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015227892A JP6475603B2 (en) 2015-11-20 2015-11-20 Movie data reproducing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015227892A JP6475603B2 (en) 2015-11-20 2015-11-20 Movie data reproducing apparatus and program

Publications (2)

Publication Number Publication Date
JP2017098705A JP2017098705A (en) 2017-06-01
JP6475603B2 true JP6475603B2 (en) 2019-02-27

Family

ID=58817380

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015227892A Active JP6475603B2 (en) 2015-11-20 2015-11-20 Movie data reproducing apparatus and program

Country Status (1)

Country Link
JP (1) JP6475603B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4054391B2 (en) * 1995-12-28 2008-02-27 キヤノン株式会社 Video decoding apparatus and video transmission system
JP4153754B2 (en) * 2002-08-29 2008-09-24 京セラ株式会社 Image transmission apparatus, image transmission method, and server moving image supply method
US20070195878A1 (en) * 2004-04-06 2007-08-23 Koninklijke Philips Electronics, N.V. Device and method for receiving video data
JP4803724B2 (en) * 2006-01-13 2011-10-26 日本テレビ放送網株式会社 Receiving device, hierarchy switching method, and program
JP5941939B2 (en) * 2014-03-14 2016-06-29 ソフトバンク株式会社 Video distribution device, video encoding device, and program

Also Published As

Publication number Publication date
JP2017098705A (en) 2017-06-01

Similar Documents

Publication Publication Date Title
US12028564B2 (en) Methods, systems, processors and computer code for providing video clips
JP6562992B2 (en) Trick playback in digital video streaming
US9936183B2 (en) Playback device
US11205456B2 (en) Methods and apparatus for using edit operations to perform temporal track derivations
US12382136B2 (en) Methods for generating videos, and related systems and servers
CN112073737A (en) Re-encode predicted image frames in live video streaming applications
US12262158B2 (en) Methods, systems, and media for generating a summarized video using frame rate modification
US20190020863A1 (en) Methods and apparatus for spherical region presentation
US20160334980A1 (en) Method and a system for performing scrubbing in a video stream
US12513346B2 (en) Method, system, and computer-readable recording medium for implementing fast-switching mode between channels in multi-live transmission environment
WO2015198725A1 (en) Communication device, communication method, and program
WO2019192481A1 (en) Media information processing method, related device, and computer storage medium
US11183220B2 (en) Methods and apparatus for temporal track derivations
JP2010154006A (en) Program for progressive download reproduction
JP2005303925A (en) STREAM DATA TRANSMITTING DEVICE, STREAM DATA RECEIVING DEVICE, AND RECORDING MEDIUM CONTAINING PROCESSING PROGRAM FOR CAUSING COMPUTER TO EXECUTE THESE PROCESSING
JP6475603B2 (en) Movie data reproducing apparatus and program
JP7365212B2 (en) Video playback device, video playback system, and video playback method
US20160057468A1 (en) Server device, content providing method, and computer program
US12197490B2 (en) Media file generation apparatus, media file playback apparatus, media file generation method, media file playback method, program, and storage medium
JP2009164964A (en) Information processing apparatus, information processing method, information processing system, and information processing program
JP2011182274A (en) Video recording and reproducing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171219

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181024

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181106

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181218

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190201

R150 Certificate of patent or registration of utility model

Ref document number: 6475603

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250