JP2001309371A - MPEG decoder - Google Patents
MPEG decoderInfo
- Publication number
- JP2001309371A JP2001309371A JP2000126759A JP2000126759A JP2001309371A JP 2001309371 A JP2001309371 A JP 2001309371A JP 2000126759 A JP2000126759 A JP 2000126759A JP 2000126759 A JP2000126759 A JP 2000126759A JP 2001309371 A JP2001309371 A JP 2001309371A
- Authority
- JP
- Japan
- Prior art keywords
- stream
- decoding
- mpeg
- picture
- streams
- 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.)
- Pending
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
(57)【要約】
【課題】多重化された複数の画像データを順次デコード
する場合において、デコードエラーの発生を抑制する。
【解決手段】多重化された複数のストリームを順次デコ
ードする場合において、スライス層単位でストリームの
デコード割り当てを切り換える。また、スライス層単位
での切り換えは、例えば、入力バッファの蓄積データ量
に基づいて行われる。さらに、入力バッファの蓄積デー
タ量に基づいて、ピクチャの読み飛ばしが行われる。さ
らに、複数のストリームのフレームレートが異なる場合
は、各ストリームのフレームレートに応じて、割り当て
順序が決定される。これらの動作により、デコードエラ
ーを発生させることなく、正常な表示を行うことが可能
となる。
(57) [Summary] [Object] To suppress the occurrence of a decoding error when sequentially decoding a plurality of multiplexed image data. When sequentially decoding a plurality of multiplexed streams, decoding assignment of streams is switched for each slice layer. Further, switching in units of slice layers is performed based on, for example, the amount of data stored in the input buffer. Further, skipping of a picture is performed based on the amount of data stored in the input buffer. Further, when the frame rates of a plurality of streams are different, the assignment order is determined according to the frame rates of the respective streams. By these operations, normal display can be performed without causing a decoding error.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、多重化された複数
の画像データのデコード方法に関し、特に、MPEGな
どのような規格により圧縮された画像データのデコーダ
に関する。The present invention relates to a method for decoding a plurality of multiplexed image data, and more particularly to a decoder for image data compressed according to a standard such as MPEG.
【0002】[0002]
【従来の技術】動画像データの圧縮技術の国際規格とし
て、MPEG(Moving Picture ImageCoding Experts Gr
oup)が知られている。このMPEGで規格化された複数
の画像データ(以下、MPEGストリーム又は単にスト
リームと呼ぶ)が、時分割多重されて伝送される場合、
デコーダによって、多重化された複数のMPEGストリ
ームをデコードする必要がある。2. Description of the Related Art MPEG (Moving Picture Image Coding Experts Gr.) Is an international standard for video data compression technology.
oup) is known. When a plurality of image data (hereinafter, referred to as an MPEG stream or simply a stream) standardized by MPEG are transmitted in a time-division multiplexed manner,
It is necessary to decode a plurality of multiplexed MPEG streams by a decoder.
【0003】多重化された複数のMPEGストリームを
デコードする方式として、複数のデコーダで、複数のM
PEGストリームを並列に処理する方式と、一つのデコ
ーダで、複数のMPEGストリームを順次処理する方式
がある。回路規模の削減という観点から考えると、後者
の順次処理方式が有利である。As a method of decoding a plurality of multiplexed MPEG streams, a plurality of decoders are used to decode a plurality of MPEG streams.
There are a method of processing PEG streams in parallel and a method of sequentially processing a plurality of MPEG streams with one decoder. From the viewpoint of reducing the circuit scale, the latter sequential processing method is advantageous.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、従来の
順次処理方式で、多重化された複数のMPEGストリー
ムをデコードする場合、従来のMPEGのデコード方式
では、次のような問題がある。従来の順次処理方式で
は、デコードが割り当てられる各MPEGストリームの
切り換えは、ピクチャ層単位で行われる。そのため、一
つのストリームのデコード中においては、ピクチャ層の
区切りが来るまでは、別のストリームのデコードに移行
することができずに、別のストリームのデコードにエラ
ーが発生する場合がある。However, when decoding a plurality of multiplexed MPEG streams by the conventional sequential processing method, the conventional MPEG decoding method has the following problems. In the conventional sequential processing method, switching of each MPEG stream to which decoding is assigned is performed in units of a picture layer. Therefore, during the decoding of one stream, it may not be possible to proceed to the decoding of another stream until a picture layer break occurs, and an error may occur in the decoding of another stream.
【0005】図7は、従来における複数のストリームの
デコード方法を説明する図である。図7では、例とし
て、4本のストリーム(stream)0、1、2、3が順次デ
コードされる。デコーダは、所定周期(例えば1/30秒)
において、各ストリームの一つのピクチャをデコードす
る。例えば、図7の周期t1内において、ストリーム0
のピクチャP0、ストリーム1のピクチャP0、ストリ
ーム2のピクチャP0及びストリーム3のピクチャP0
が順次デコードされる。従って、一つのストリームのピ
クチャのデコード中においては、ストリーム内のピクチ
ャの区切りが来るまで、次のストリームのデコードに移
行しない。従って、何らかの障害(デコーダへの入力遅
延など)により、一つのストリームのピクチャのデコー
ドが遅れると、後続のストリームのピクチャを所定周期
内にデコードできない場合が発生しうる。FIG. 7 is a diagram for explaining a conventional method of decoding a plurality of streams. In FIG. 7, as an example, four streams (streams) 0, 1, 2, and 3 are sequentially decoded. The decoder has a predetermined period (for example, 1/30 seconds)
, One picture of each stream is decoded. For example, in the cycle t1 of FIG.
Picture P0 of stream 1, picture P0 of stream 2, picture P0 of stream 2, and picture P0 of stream 3.
Are sequentially decoded. Therefore, during the decoding of a picture of one stream, the process does not shift to the decoding of the next stream until a picture break in the stream comes. Therefore, if the decoding of the picture of one stream is delayed due to some trouble (such as an input delay to the decoder), the picture of the subsequent stream may not be decoded within a predetermined period.
【0006】図7に示されるように、ストリーム1のピ
クチャP1のデコードが、周期t2に完了しないと、後
続のストリーム2、3の各ピクチャP1を周期t2内に
デコードすることができない。このような場合、画面に
表示される画像が乱れるなどのデコードエラーが発生す
る可能性がある。As shown in FIG. 7, unless the decoding of the picture P1 of the stream 1 is completed in the cycle t2, the pictures P1 of the subsequent streams 2 and 3 cannot be decoded in the cycle t2. In such a case, a decoding error such as a disturbed image displayed on the screen may occur.
【0007】また、順次処理方式では、一つのストリー
ムのデコード中においては、他のストリームのデコード
は待機状態であるので、デコーダ内の各ストリーム毎に
設けられる入力バッファの読み出しは行われない。一方
で、入力バッファへの書き込みは、常時行われるため、
デコードの割り当て順序によっては、入力バッファがオ
ーバーフローする可能性がある。例えば、図7における
周期t2において、ストリーム1のピクチャP1のデコ
ードに遅延が発生すると、まだデコードされていないス
トリーム2、3に対応する各入力バッファがオーバーフ
ローするおそれがある。入力バッファのオーバーフロー
は、画像の乱れなどのデコードエラーを引き起こす。In the sequential processing method, while one stream is being decoded, the decoding of another stream is in a standby state, so that an input buffer provided for each stream in the decoder is not read. On the other hand, since writing to the input buffer is always performed,
Depending on the decoding assignment order, the input buffer may overflow. For example, if a delay occurs in the decoding of the picture P1 of the stream 1 in the cycle t2 in FIG. 7, each input buffer corresponding to the streams 2 and 3 that have not been decoded may overflow. Overflow of the input buffer causes decoding errors such as image distortion.
【0008】従って、本発明の目的は、多重化された複
数の画像データを順次デコードする場合において、デコ
ードエラーの発生を抑制する画像データのデコーダを提
供することにある。SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide an image data decoder which suppresses the occurrence of a decoding error when sequentially decoding a plurality of multiplexed image data.
【0009】[0009]
【課題を解決するための手段】上記目的を達成するため
の本発明のデコーダは、それぞれ複数のスライスを含む
複数のピクチャをそれぞれ有する複数のMPEGストリ
ームを順次デコードするMPEGデコーダにおいて、入
力される前記複数のMPEGストリームのデコード割り
当てを、スライス単位で切り換える割り当て部と、割り
当て部によって割り当てられたMPEGストリームをデ
コードするデコード部とを備えることを特徴とする。According to a first aspect of the present invention, there is provided a decoder for sequentially decoding a plurality of MPEG streams each having a plurality of pictures each including a plurality of slices. It is characterized by comprising an assigning unit that switches the decoding assignment of a plurality of MPEG streams in slice units, and a decoding unit that decodes the MPEG stream assigned by the assigning unit.
【0010】本発明により、一枚のピクチャのデコード
完了を待つことなく、別のストリームへのデコードの割
り当て切り換えが可能となる。According to the present invention, it is possible to switch the assignment of decoding to another stream without waiting for the completion of decoding of one picture.
【0011】また、上記発明のデコーダは、さらに、入
力される複数のMPEGストリームをそれぞれ蓄積する
蓄積部を備え、割り当て部は、蓄積部に蓄積される複数
のMPEGストリームそれぞれの蓄積データ量に基づい
て、複数のMPEGストリームのデコード割り当てを切
り換えることを特徴とする。蓄積データ量を監視するこ
とにより、デコードの遅延などのデコード障害を検出す
ることができる。Further, the decoder according to the present invention further includes a storage unit for storing a plurality of input MPEG streams, and the allocating unit determines the number of MPEG streams stored in the storage unit based on the amount of data stored in each of the plurality of MPEG streams. Thus, decoding assignment of a plurality of MPEG streams is switched. By monitoring the amount of accumulated data, a decoding failure such as a decoding delay can be detected.
【0012】例えば、割り当て部は、デコード中の第一
のMPEGストリームの蓄積部での蓄積データ量が所定
の下限値以下になると、第二のMPEGストリームにデ
コード割り当てを切り換える。又は、割り当て部は、第
一のMPEGストリームのデコード中に、デコード中で
ない第二のMPEGストリームの蓄積部での蓄積データ
量が所定の上限値以上になると、前記第二のMPEGス
トリームにデコード割り当てを切り換える。For example, the allocating unit switches the decoding allocation to the second MPEG stream when the amount of data stored in the storage unit of the first MPEG stream being decoded becomes equal to or less than a predetermined lower limit. Alternatively, during the decoding of the first MPEG stream, if the amount of data stored in the storage unit of the second MPEG stream that is not being decoded becomes greater than or equal to a predetermined upper limit, the allocating unit may perform decoding allocation to the second MPEG stream. Switch.
【0013】また、上記目的を解決するための本発明の
デコーダは、複数のピクチャをそれぞれ有する複数のM
PEGストリームを順次デコードするMPEGデコーダ
において、入力される複数のMPEGストリームをそれ
ぞれ蓄積する蓄積部と、蓄積部に蓄積された前記複数の
MPEGストリームのデコード割り当てを順次切り換え
る割り当て部と、割り当て部によって割り当てられたM
PEGストリームをデコードするデコード部とを備え、
蓄積部内における割り当てられたMPEGストリームの
蓄積データ量が所定の上限値以上であると、デコード部
は、蓄積部から読み出されるMPEGストリームの少な
くとも一つのピクチャを読み飛ばすことができることを
特徴とする。A decoder according to the present invention for solving the above-mentioned object comprises a plurality of M pictures each having a plurality of pictures.
In an MPEG decoder that sequentially decodes PEG streams, a storage unit that stores a plurality of input MPEG streams, an allocation unit that sequentially switches decoding allocation of the plurality of MPEG streams stored in the storage unit, and an allocation unit. M
A decoding unit for decoding the PEG stream,
The decoding unit can skip at least one picture of the MPEG stream read from the storage unit when the storage data amount of the assigned MPEG stream in the storage unit is equal to or larger than the predetermined upper limit value.
【0014】このように、蓄積部に蓄積されるピクチャ
をデコードすることなく読み出すことで、高速に読み出
すことが可能となり、蓄積部のオーバーフローを回避す
ることが可能となる。As described above, by reading out the pictures stored in the storage section without decoding, the pictures can be read out at high speed, and the overflow of the storage section can be avoided.
【0015】さらに、上記目的を達成するための本発明
のデコーダは、複数のMPEGストリームを順次処理で
デコードするMPEGデコーダにおいて、複数のMPE
Gストリームのデコード割り当てを、複数のMPEGデ
コーダそれぞれのフレームレートに応じて切り換える割
り当て部と、割り当て部によって割り当てられたMPE
Gストリームをデコードするデコード部とを備えること
を特徴とする。Further, in order to achieve the above object, the present invention provides a decoder for decoding a plurality of MPEG streams by sequential processing.
An assignment unit that switches the decoding assignment of the G stream according to the frame rate of each of the plurality of MPEG decoders; and an MPE assigned by the assignment unit.
A decoding unit for decoding the G stream.
【0016】[0016]
【発明の実施の形態】以下、本発明の実施の形態につい
て説明する。しかしながら、本発明の技術的範囲が、本
実施の形態に限定されるものではない。Embodiments of the present invention will be described below. However, the technical scope of the present invention is not limited to the present embodiment.
【0017】図1は、MPEG規格に従った画像データ
(ストリーム)の構成を示す図である。ストリームは、
図示するように複数の階層構造を有する。画像データ
は、シーケンスヘッダ(SH)とグループ・オブ・ピク
チャ(GOP)を有する。シーケンスヘッダ(SH)
は、画面フォーマットを指定するヘッダであって、画面
の水平サイズ、垂直サイズ、画素アスペクト比、フレー
ムレート、ビットレートなどを含む。フレームレート
は、画像の表示周期(1/30秒又は1/60秒など)であり、
ビットレートは、ストリームの伝送速度(bps)であ
る。FIG. 1 is a diagram showing the structure of image data (stream) according to the MPEG standard. The stream is
As shown, it has a plurality of hierarchical structures. The image data has a sequence header (SH) and a group of pictures (GOP). Sequence header (SH)
Is a header for designating a screen format, and includes a horizontal size, a vertical size, a pixel aspect ratio, a frame rate, a bit rate, and the like of the screen. The frame rate is the display cycle of the image (such as 1/30 second or 1/60 second),
The bit rate is the transmission speed (bps) of the stream.
【0018】グループ・オブ・ピクチャ(GOP)は、
複数のピクチャを有する。ピクチャには、Iピクチャ、
Pピクチャ、Bピクチャの3種類ある。Iピクチャは、
それ独自でデコード可能な画像であり、Pピクチャは、
その前にあるIピクチャ又はPピクチャを参照してデコ
ードされる画像であり、Bピクチャは、その前後のIピ
クチャ及びPピクチャを参照してデコードされる画像で
ある。A group of pictures (GOP) is
It has multiple pictures. Pictures include I-pictures,
There are three types: P picture and B picture. I picture is
It is an image that can be decoded independently, and a P picture is
The B picture is an image that is decoded with reference to the preceding I or P picture, and the B picture is an image that is decoded with reference to the preceding and succeeding I and P pictures.
【0019】各ピクチャは、複数のスライスを有する。
スライスは、一枚の画像を任意の長さに分割したデータ
列であって、垂直方向に16画素幅を有する。また、ス
ライスは、開始コードを有する最小単位のデータ列であ
る。従って、ピクチャ、GOP、シーケンスヘッダそれ
ぞれも開始コードを有する。Each picture has a plurality of slices.
A slice is a data sequence obtained by dividing one image into an arbitrary length, and has a width of 16 pixels in the vertical direction. A slice is a minimum unit data string having a start code. Therefore, each of the picture, GOP, and sequence header also has a start code.
【0020】スライスは、複数のマクロブロック(M
B)の帯である。そして、マクロブロックは、垂直方向
及び水平方向16画素幅ずつのデータブロックであっ
て、さらに、マクロブロックは、8×8のブロック6個
(輝度信号(Y)用ブロック4個と色差信号(Cb、C
r)用ブロック1個ずつ)から構成される。A slice is composed of a plurality of macroblocks (M
B). The macro block is a data block having a width of 16 pixels in the vertical and horizontal directions, and the macro block is composed of six 8 × 8 blocks (four blocks for luminance signal (Y) and four blocks for color difference signal (Cb). , C
r) one block for each).
【0021】このようなストリームが複数多重化されて
伝送され、それを順次デコードする場合、本発明では、
ピクチャ単位に加えて、スライス単位でも、ストリーム
の切り換えを可能とする。When a plurality of such streams are transmitted after being multiplexed and decoded sequentially, the present invention provides:
Stream switching is possible not only in picture units but also in slice units.
【0022】入力ストリームの遅延などの原因などによ
り、一つのストリームのデコードが遅れている場合、従
来のように、ピクチャ単位でストリームのデコードを切
り換えると、上述のように、他のストリームのデコード
までも遅延してしまうという悪影響が発生する。しかし
ながら、本発明では、後述するストリーム切り換え判定
基準に基づいて、デコード中のストリームのスライス単
位で、次のストリームにデコードが切り換えられる。If the decoding of one stream is delayed due to a delay of the input stream or the like, switching the decoding of the stream in units of picture as in the conventional method will cause the decoding of the other stream to proceed as described above. Has a negative effect. However, in the present invention, decoding is switched to the next stream in slice units of the stream being decoded based on the stream switching determination criteria described later.
【0023】図2は、本発明の原理を説明する図であ
る。図2(a)において、周期t2において、ストリー
ム1の入力遅延などにより、ストリームのデコード割り
当ての切り換えが判定されると、ストリーム1のピクチ
ャP1のデコードが途中であっても、次のストリーム2
にデコード割り当てが切り換えられる。ストリーム3の
ピクチャ1のデコードが完了した後、ストリーム1のピ
クチャP1の残り部分のデコードが行われる。FIG. 2 is a diagram for explaining the principle of the present invention. In FIG. 2A, in a cycle t2, when it is determined that the switching of the decoding assignment of the stream 1 is performed due to the input delay of the stream 1, even if the decoding of the picture P1 of the stream 1 is in progress, the next stream 2
Is switched to the decoding assignment. After the decoding of the picture 1 of the stream 3 is completed, the decoding of the remaining part of the picture P1 of the stream 1 is performed.
【0024】図2(b)において、ストリーム1のピク
チャP1のK番目のスライスをデコード中に、デコード
割り当ての切り換えが判定されると、K番目のスライス
のデコードが完了してから、デコードの割り当てを変更
して、ストリーム2、続いて、ストリーム3のピクチャ
P1(それぞれN個のスライスを含む)のデコードが行
われる。その後、ストリーム1のピクチャP1のK+1
番目のスライスからのデコードが再開される。これによ
り、ストリーム1のピクチャP1のデコードに遅延が発
生した場合であっても、後続のストリーム2、3のピク
チャP1については、1周期内に正常にデコードされ
る。従って、ストリーム1のデコード障害のストリーム
2、3への影響を抑えることができる。In FIG. 2 (b), when the switching of the decoding assignment is determined during the decoding of the K-th slice of the picture P1 of the stream 1, after the decoding of the K-th slice is completed, the decoding assignment is started. Is changed, and the decoding of the picture P1 (including N slices) of the stream 2 and the stream 3 is performed. Then, K + 1 of the picture P1 of the stream 1
Decoding from the slice is resumed. As a result, even if the decoding of the picture P1 of the stream 1 is delayed, the pictures P1 of the subsequent streams 2 and 3 are normally decoded within one cycle. Therefore, it is possible to suppress the influence of the decoding failure of the stream 1 on the streams 2 and 3.
【0025】また、図2(c)において、ストリーム1
のピクチャP1のK番目のスライスをデコード中に、ス
トリームのデコード割り当ての切り換えが判定される
と、K番目のスライスのデコードの途中に、デコードさ
れるストリームが切り換えられる。これは、ストリーム
1の入力が完全に停止した場合に特に有効である。即
ち、ストリーム1の入力が完全に停止した場合は、デコ
ードがK番目のスライスの区切りまで到達しない場合も
あるからである。このような場合は、デコードのスライ
スの区切りを待っていては、ストリームの切り換えがで
きないので、スライスの区切りを待たずに、強制的にス
トリームを切り換える。この場合、K番目のスライスの
デコードは未完了となり、ストリーム1のピクチャ1の
デコードにエラーが発生するが、上述同様に、他のスト
リームについては、正常なデコードが行われる。In FIG. 2C, stream 1
If the switching of the stream decoding assignment is determined during the decoding of the K-th slice of the picture P1, the stream to be decoded is switched during the decoding of the K-th slice. This is particularly effective when the input of stream 1 is completely stopped. That is, if the input of stream 1 is completely stopped, decoding may not reach the K-th slice break. In such a case, the stream cannot be switched while waiting for the break of the slice for decoding. Therefore, the stream is forcibly switched without waiting for the break of the slice. In this case, the decoding of the K-th slice is not completed, and an error occurs in the decoding of the picture 1 of the stream 1. However, the other streams are normally decoded as described above.
【0026】図3は、本発明の実施の形態におけるデコ
ーダのブロック構成図である。図3では、図2の例と同
様に、4つのストリームのマルチデコードが可能なMPEG
デコーダ10が示される。TSデコーダ11は、複数の
ストリームが時分割多重された一本のストリームを、各
ストリームに分離する。分離されたストリーム0、1、
2、3は、それぞれ入力バッファ12−0、12−1、
12−2、12−3に格納される(なお、図面において
は、各ストリーム0、1、2、3に対応させて、単に、
入力バッファ0、1、2、3と表示する)。入力バッフ
ァ制御部16は、各入力バッファ内に蓄積されるデータ
容量(未処理データ量)を監視し、データ容量があらか
じめ設定された上限値以上になった場合、及びあらかじ
め設定された下限値以下になった場合に、その旨を通知
する機能を有する。この上限値及び下限値が、ストリー
ムのデコード割り当ての判定基準である。即ち、本発明
の実施の形態では、デコーダの各ストリームの入力バッ
ファの未処理データ量(蓄積データ量)に基づいて、デ
コード割り当ての切り換えを判定する。FIG. 3 is a block diagram of a decoder according to the embodiment of the present invention. In FIG. 3, as in the example of FIG. 2, MPEG capable of multi-decoding four streams
A decoder 10 is shown. The TS decoder 11 separates one stream in which a plurality of streams are time-division multiplexed into each stream. Separated streams 0, 1,
2, 3 are input buffers 12-0, 12-1, respectively.
12-2 and 12-3 (in the drawing, corresponding to each of the streams 0, 1, 2, and 3;
Input buffers 0, 1, 2, 3). The input buffer control unit 16 monitors the amount of data (the amount of unprocessed data) accumulated in each input buffer, and when the amount of data is equal to or greater than a preset upper limit, and is equal to or less than a preset lower limit. It has the function of notifying the user when it becomes. The upper limit value and the lower limit value are determination criteria for stream stream allocation. That is, in the embodiment of the present invention, switching of decoding assignment is determined based on the unprocessed data amount (accumulated data amount) of the input buffer of each stream of the decoder.
【0027】MPEG構文解析部14は、入力されるストリ
ームを解析して、通常、ピクチャの区切りまで解析する
と、ピクチャ解析完了通知をストリーム割り当て管理部
15に通知する。The MPEG parsing unit 14 analyzes the input stream and normally analyzes the picture up to the end of a picture, and then notifies the stream allocation management unit 15 of a picture analysis completion notification.
【0028】ストリーム割り当て管理部15は、4つの
ストリームのうちの一つをセレクタ13で選択する。よ
り詳しくは、ストリーム割り当て管理部15は、通常、
MPEG構文解析部14からのピクチャ解析完了通知を受信
すると、セレクタ13を制御して、順次、読み出すスト
リームを切り換える。また、ストリーム割り当て管理部
15は、入力バッファ制御部16からの通知(上限値以
上、下限値以下)に基づいて、読み出すストリームを切
り換える。入力バッファ制御部16からの通知に基づい
てストリームが切り換えられた場合、ストリーム割り当
て管理部15は、MPEG構文解析部14に、解析停止要求
を通知する。MPEG構文解析部14は、解析停止要求を受
信すると、解析中のストリームのスライスの区切りで解
析を一時中断する機能、又は、そのスライスの解析途中
で解析を中断し、解析初期状態(開始コード検出状態)
に戻る。The stream allocation management unit 15 selects one of the four streams with the selector 13. More specifically, the stream allocation management unit 15 usually
When the picture analysis completion notification is received from the MPEG syntax analysis unit 14, the selector 13 is controlled to sequentially switch the stream to be read. Also, the stream allocation management unit 15 switches the stream to be read based on the notification (not less than the upper limit and not more than the lower limit) from the input buffer control unit 16. When the stream is switched based on the notification from the input buffer control unit 16, the stream allocation management unit 15 notifies the MPEG syntax analysis unit 14 of an analysis stop request. Upon receiving the analysis stop request, the MPEG syntax analysis unit 14 suspends the analysis at the break of the slice of the stream being analyzed, or interrupts the analysis during the analysis of the slice, and starts the analysis in the initial state (start code detection). Status)
Return to
【0029】図4は、本発明の実施の形態のデコーダの
動作を説明する図である。図4(a)は、ストリーム1
のピクチャP1のデータ量が下限値以下になった場合の
動作である。ストリーム1のピクチャ1のデコード中に
その入力が遅れると、ストリーム1に対応する入力バッ
ファ12―1の蓄積データ量が少なくなる。入力バッフ
ァ12―1からデータが読み出されるにもかかわらず、
データの入力が遅れているため、データが蓄積されない
からである。蓄積データ量が少ないと、ピクチャの区切
りまでのデータが入っておらず、デコードの遅延が起き
る可能性が高い。FIG. 4 is a diagram for explaining the operation of the decoder according to the embodiment of the present invention. FIG. 4A shows stream 1
This is an operation when the data amount of the picture P1 of the image P1 becomes equal to or smaller than the lower limit value. If the input is delayed during decoding of picture 1 of stream 1, the amount of data stored in input buffer 12-1 corresponding to stream 1 decreases. Although data is read from the input buffer 12-1,
This is because data is not accumulated because data input is delayed. If the amount of accumulated data is small, data up to the picture break is not included, and decoding is likely to be delayed.
【0030】このような場合、ストリームのデコード割
り当ての切り換えが行われる。具体的には、図4(a)
に示されるように、入力バッファ制御部16は、入力バ
ッファ12−1の蓄積データ量が下限値以下になると、
その旨をストリーム割り当て管理部15に通知する。ス
トリーム割り当て管理部15は、MPEG構文解析部14に
解析停止要求を通知する。これにより、MPEG構文解析部
14は、デコード中のスライスの区切りでピクチャP1
のデコードを一時中断するか、又はデコード中のスライ
スの途中でデコードを中断する。ストリーム割り当て管
理部15は、デコードの中断を確認すると、セレクタ1
3をストリーム2に切り換える。こうして、MPEG構文解
析部14は、セレクタ13によって選択されて次に読み
出されるストリーム2のピクチャP1のデコードを開始
する。こうして、ストリーム2のピクチャP1が正常に
デコードされ、続いて、ストリーム3のピクチャP1が
正常にデコードされる。この間、入力バッファ12−1
には、ストリーム1のピクチャP1の残り部分が蓄積さ
れ。データ容量は下限値を超える。In such a case, switching of the stream decoding assignment is performed. Specifically, FIG.
As shown in (2), when the amount of data stored in the input buffer 12-1 becomes equal to or less than the lower limit, the input buffer controller 16
This is notified to the stream allocation management unit 15. The stream allocation management unit 15 notifies the MPEG syntax analysis unit 14 of an analysis stop request. As a result, the MPEG parsing unit 14 sets the picture P1 at the break of the slice being decoded.
Is temporarily suspended, or the decoding is suspended in the middle of the slice being decoded. When confirming the interruption of the decoding, the stream allocation management unit 15
Switch 3 to stream 2. Thus, the MPEG parsing unit 14 starts decoding the picture P1 of the stream 2 selected by the selector 13 and read next. Thus, the picture P1 of the stream 2 is decoded normally, and subsequently, the picture P1 of the stream 3 is decoded normally. During this time, the input buffer 12-1
Stores the remaining part of the picture P1 of the stream 1. Data capacity exceeds the lower limit.
【0031】ストリーム割り当て管理部15は、MPEG構
文解析部14から、ストリーム3のピクチャP1の解析
完了通知を受信すると、再度、セレクタ13をストリー
ム1に切り換える。これにより、MPEG構文解析部14
は、ストリーム2及びストリーム3のピクチャP1のデ
コード中に蓄積されたストリーム1のピクチャP1の残
りを読み出してデコードする。When the stream allocation management unit 15 receives the analysis completion notification of the picture P1 of the stream 3 from the MPEG syntax analysis unit 14, it switches the selector 13 to the stream 1 again. Thereby, the MPEG syntax analysis unit 14
Reads and decodes the rest of the picture P1 of the stream 1 accumulated during the decoding of the picture P1 of the stream 2 and the stream 3.
【0032】このような動作により、デコーダ10は、
ストリーム1の入力遅延を待つことなく、デコードを進
めることができる。また、ストリーム1に対応する入力
バッファ12−1に下限値以上のデータ量が蓄積された
ら、ストリーム1へのデコード割り当てを再開し、中断
した次のスライスの先頭から解析を行うことで、エラー
なくデコードを行うことができる。With such an operation, the decoder 10
Decoding can proceed without waiting for an input delay of stream 1. When the data amount equal to or larger than the lower limit is accumulated in the input buffer 12-1 corresponding to the stream 1, the decoding allocation to the stream 1 is restarted, and the analysis is performed from the beginning of the next slice where the interruption has been performed, so that no error is caused. Decoding can be performed.
【0033】図4(b)は、ストリーム1のピクチャP
1のデータ量が上限値以上になった場合の動作である。
あるストリームのデコードを行っている間に、別のスト
リームに対応する入力バッファの蓄積データ量が上限値
以上になってしまう場合がある。例えば、データ量が異
なるストリームが多重化されて伝送される場合、データ
量の大きいストリームの入力頻度が高く、反対にデータ
量の小さいストリームの入力頻度が低くなる場合であ
る。このような場合、あるストリーム(例えば入力頻度
の低いストリーム)をデコードしている間に、別のスト
リーム(例えば入力頻度の高いストリーム)に対応する
入力バッファは、オーバーフローする可能性がある。FIG. 4B shows a picture P of stream 1.
This is an operation when the data amount of No. 1 is equal to or more than the upper limit value.
While decoding one stream, the amount of data stored in the input buffer corresponding to another stream may exceed the upper limit. For example, when streams having different data amounts are multiplexed and transmitted, the input frequency of a stream having a large data amount is high, and the input frequency of a stream having a small data amount is low. In such a case, while a certain stream (for example, a stream with low input frequency) is being decoded, an input buffer corresponding to another stream (for example, a stream with high input frequency) may overflow.
【0034】このような場合にも、ストリームのデコー
ド割り当ての切り換えが行われる。具体的には、図4
(b)では、ストリーム1のピクチャP1のデコード中
に、入力バッファ12−2の蓄積データ量が上限値以上
になると、入力バッファ制御部16は、その旨をストリ
ーム割り当て管理部15に通知する。ストリーム割り当
て管理部15は、MPEG構文解析部14に解析停止要求を
通知する。これにより、MPEG構文解析部14は、デコー
ド中のスライスの区切りでピクチャP1のデコードを一
時中断するか、又はデコード中のスライスの途中でデコ
ードを中断する。ストリーム割り当て管理部15は、デ
コードの中断を確認すると、セレクタ13をストリーム
2に切り換える。こうして、MPEG構文解析部14は、セ
レクタ13によって選択されて次に読み出されるストリ
ーム2のピクチャP1のデコードを開始する。こうし
て、ストリーム2のピクチャP1が正常にデコードされ
る。In such a case as well, switching of stream decoding assignment is performed. Specifically, FIG.
In (b), when the amount of data stored in the input buffer 12-2 exceeds the upper limit during decoding of the picture P1 of the stream 1, the input buffer control unit 16 notifies the stream allocation management unit 15 of that fact. The stream allocation management unit 15 notifies the MPEG syntax analysis unit 14 of an analysis stop request. Thereby, the MPEG syntax analysis unit 14 temporarily suspends the decoding of the picture P1 at the break of the slice being decoded, or suspends the decoding in the middle of the slice being decoded. When confirming the interruption of the decoding, the stream allocation management unit 15 switches the selector 13 to the stream 2. Thus, the MPEG parsing unit 14 starts decoding the picture P1 of the stream 2 selected by the selector 13 and read next. Thus, the picture P1 of the stream 2 is decoded normally.
【0035】ストリーム割り当て管理部15は、MPEG構
文解析部14から、ストリーム2のピクチャP1の解析
完了通知を受信すると、再度、セレクタ13をストリー
ム1に切り換える。これにより、MPEG構文解析部14
は、再度、ストリーム1のピクチャP1の残りを読み出
してデコードする。When the stream allocation management unit 15 receives the analysis completion notification of the picture P1 of the stream 2 from the MPEG syntax analysis unit 14, it switches the selector 13 to the stream 1 again. Thereby, the MPEG syntax analysis unit 14
Reads and decodes the rest of the picture P1 of the stream 1 again.
【0036】このような動作により、デコーダ10は、
入力バッファのオーバーフローを回避しつつ、デコード
を進めることができる。With such an operation, the decoder 10
Decoding can proceed while avoiding overflow of the input buffer.
【0037】図5は、本発明の実施の形態のデコーダの
別の動作を説明する図である。上述のように、多重化さ
れた複数のストリームをデコードする場合、デコードす
る順序によって、入力バッファのオーバーフローが発生
する可能性がある。入力バッファのオーバーフローが発
生すると、デコードエラーが発生し、画像の乱れが生じ
る。特に、IピクチャやPピクチャで発生すると、複数
のピクチャにエラーが伝搬することになる。FIG. 5 is a diagram for explaining another operation of the decoder according to the embodiment of the present invention. As described above, when decoding a plurality of multiplexed streams, an overflow of an input buffer may occur depending on the decoding order. When an overflow of the input buffer occurs, a decoding error occurs, and image distortion occurs. In particular, when the error occurs in an I picture or a P picture, an error propagates to a plurality of pictures.
【0038】このようなエラーを回避するために、本発
明の実施の形態の別の動作では、オーバーフローが発生
しそうな場合(入力バッファの蓄積データ量が上限値以
上になった場合)、入力バッファに蓄積されているピク
チャを読み飛ばす。ピクチャの読み飛ばしは、具体的に
は、ピクチャを入力バッファから読み出しだけで、ピク
チャ(スライス層以下のデータ)を解析しない。これに
より、入力バッファからのデータ読み出し速度が高速化
するので、蓄積データ量を急速に低減させることができ
る。このようなピクチャ単位のデータの読み飛ばしは、
オーバーフローによるデータの消失とは異なり、入力デ
ータの連続性は保たれ、デコードエラーは生じない。In order to avoid such an error, in another operation of the embodiment of the present invention, when an overflow is likely to occur (when the amount of data stored in the input buffer exceeds the upper limit value), the input buffer Skip the pictures stored in the. To skip a picture, specifically, the picture is only read from the input buffer, and the picture (data below the slice layer) is not analyzed. As a result, the speed of reading data from the input buffer increases, so that the amount of stored data can be rapidly reduced. Such skipping of picture unit data is as follows:
Unlike loss of data due to overflow, continuity of input data is maintained and no decoding error occurs.
【0039】特に、読み飛ばすピクチャのタイプをBピ
クチャに限定することで、読み飛ばしたBピクチャのみ
を表示できないだけで、他のピクチャに影響を与えるこ
とはなく、一枚のピクチャをスキップさせただけの表示
とすることができる。In particular, by limiting the types of skipped pictures to B-pictures, only the skipped B-pictures cannot be displayed without affecting other pictures, and one picture is skipped. Can only be displayed.
【0040】なお、この動作は、多重化された複数のス
トリームのデコードに対して有効であるが、多重化され
ていない一本のストリームのデコードに対しても有効で
ある。例えば、入力ビットレートに異常が生じ、入力バ
ッファにデータが急激に流入する場合などである。Although this operation is effective for decoding a plurality of multiplexed streams, it is also effective for decoding one unmultiplexed stream. For example, there is a case where an error occurs in the input bit rate and data rapidly flows into the input buffer.
【0041】図5では、説明を簡単にするために、一本
のストリームのピクチャの読み飛ばしについて説明す
る。図5において、周期t1開始時において、入力バッ
ファ内の蓄積データ量は、上限値を超えていない。デコ
ーダ10は、周期t1において、入力バッファ内のピク
チャP0を読み出してデコードする。続いて、周期t2
開始時において、入力バッファ制御部16が、何らかの
原因により、蓄積データ量が上限値以上であることを検
知すると、その旨を、MPEG構文解析部14に通知する。
ストリーム割り当て管理部15を介して、MPEG構文解析
部に通知されてもよい。FIG. 5 illustrates skipping of a picture of one stream for the sake of simplicity. In FIG. 5, at the start of the period t1, the amount of data stored in the input buffer does not exceed the upper limit. The decoder 10 reads and decodes the picture P0 in the input buffer in the cycle t1. Subsequently, the cycle t2
At the start, when the input buffer control unit 16 detects that the accumulated data amount is equal to or more than the upper limit value for some reason, the input buffer control unit 16 notifies the MPEG syntax analysis unit 14 to that effect.
The information may be notified to the MPEG syntax analysis unit via the stream allocation management unit 15.
【0042】MPEG構文解析部14は、上記通知を受信す
ると、入力バッファ内に蓄積されているピクチャP1を
読み飛ばし、次のピクチャP2をデコードする。図示さ
れるように、ピクチャP1はデコードされないので、短
時間で読み出され、その後、ピクチャP2が通常通りデ
コードされる。Upon receiving the above notification, the MPEG syntax analyzer 14 skips the picture P1 stored in the input buffer and decodes the next picture P2. As shown, since the picture P1 is not decoded, it is read out in a short time, and then the picture P2 is decoded as usual.
【0043】なお、複数のストリームがデコードされる
場合において、入力バッファの蓄積データ量が上限値以
上になったときのデコーダの動作として、この読み飛ば
し動作と、上述のストリームの切り換え動作が説明され
たが、デコーダは、どちらか一方を採用してもよいし、
両者とも採用してもよい。両者とも採用される場合、例
えば、次のようにして両者の調整が図られる。即ち、あ
る周期において、あるストリームをデコード中に別のス
トリームに対応する入力バッファが上限値以上になった
場合は、まず、その別のストリームへの切り換え動作が
行われる。そして、その別のストリームにおけるその周
期でデコードすべきピクチャを読み飛ばし、その次のピ
クチャがデコードされる。When a plurality of streams are decoded, the skipping operation and the above-described stream switching operation are described as the operation of the decoder when the amount of data stored in the input buffer exceeds the upper limit. However, one of the decoders may be employed,
Both may be adopted. When both are adopted, for example, both are adjusted as follows. That is, in a certain period, when a certain stream is being decoded and an input buffer corresponding to another stream becomes equal to or more than the upper limit value, first, an operation of switching to another stream is performed. Then, a picture to be decoded in that cycle in the other stream is skipped, and the next picture is decoded.
【0044】また、読み飛ばし動作とストリーム切り換
え動作の判定基準として、それぞれ異なる上限値を与え
てもよい。例えば、読み飛ばし動作の上限値(第一の上
限値)をストリーム切り換え動作の上限値(第二の上限
値)より高くする。この場合、ある周期において、ある
ストリームをデコード中に別のストリームに対応する入
力バッファが第二の上限値以上になった場合は、まず、
その別のストリームへの切り換え動作が行われる。この
とき、スライスの区切りを待ってストリームの切り換え
動作が行われると、実際に切り換えが行われるまで、さ
らにデータが蓄積される。そして、実際に切り換えが行
われたときのデータ蓄積量が、第一の上限値以上である
場合、読み飛ばし動作が行われ、それ未満である場合、
読み飛ばし動作は行われず、その周期にデコードすべき
ピクチャがデコードされる。Further, different upper limits may be given as criteria for the skipping operation and the stream switching operation. For example, the upper limit (first upper limit) of the skip operation is set higher than the upper limit (second upper limit) of the stream switching operation. In this case, in a certain period, when an input buffer corresponding to another stream becomes larger than or equal to the second upper limit while decoding a certain stream, first,
The switching operation to the other stream is performed. At this time, if a stream switching operation is performed after a slice break, data is further accumulated until the switching is actually performed. Then, when the data storage amount when the switching is actually performed is equal to or larger than the first upper limit, the skipping operation is performed, and when the data storage amount is smaller than the first upper limit,
No skipping operation is performed, and the picture to be decoded is decoded in that period.
【0045】ところで、フレームレートの異なる複数の
ストリームを順次デコードする場合に以下に説明するよ
うな問題が生じる場合がある。Incidentally, when a plurality of streams having different frame rates are sequentially decoded, the following problem may occur.
【0046】図6は、フレームレートが異なる複数のス
トリームの順次デコードを説明する図である。図6にお
いて、ストリーム0、1はフレームレート30Hzで、
ストリーム2は、フレームレート60Hzのストリーム
である。ここで、フレームレート30Hzのストリームを
4本デコード可能なMPEGデコーダを想定する。30
Hzのストリームは、1/30秒間に一枚のピクチャ、60
Hzのストリームは、1/30秒間に2枚のピクチャをデコ
ードする必要があるので、このデコーダでは、60Hz
のストリーム1本と、30Hzのストリーム2本を、1/
30秒間にデコードすることができる。即ち、単純計算
で、1/60秒間に、2枚のピクチャをデコードすることが
できる。FIG. 6 is a diagram for explaining the sequential decoding of a plurality of streams having different frame rates. In FIG. 6, streams 0 and 1 have a frame rate of 30 Hz.
Stream 2 is a stream with a frame rate of 60 Hz. Here, an MPEG decoder capable of decoding four streams with a frame rate of 30 Hz is assumed. 30
Hz stream is one picture per 1/30 second, 60
Hz stream needs to decode two pictures in 1/30 second, so this decoder uses
1 stream and two 30 Hz streams
Can be decoded in 30 seconds. That is, two pictures can be decoded in 1/60 second by simple calculation.
【0047】このとき、図6(a)において、1/30秒間
のうちの前半の1/60秒周期t1に、2本の30Hzのス
トリームのピクチャP0のデコードが先に割り当てられ
ると、後半の1/60秒周期t2で60Hzのストリームの
ピクチャP0、P1がデコードされる。60Hzのスト
リームは、1/60秒毎に1枚のピクチャをデコードする必
要があるが、前半の1/60秒周期t1に60Hzのストリ
ームのピクチャP0がデコードされていないので、画面
表示は、図6(a)に示されるように、ピクチャP0は
表示されず、ピクチャP1が1/30秒間表示されてしま
う。以降、同様に、60Hzのストリーム2のピクチャ
P2、P3は、後半の1/60秒周期t4にデコードされて
しまうので、ピクチャP2は表示されず、ピクチャP3
が1/30秒間表示されることになり、正常な表示が行われ
ない。At this time, in FIG. 6A, if the decoding of the picture P0 of the two 30 Hz streams is first assigned to the first 1/60 second period t1 of the 1/30 second, The pictures P0 and P1 of the 60 Hz stream are decoded in the 1/60 second cycle t2. In the 60 Hz stream, it is necessary to decode one picture every 1/60 second. However, since the picture P0 of the 60 Hz stream is not decoded in the first half of the 1/60 second period t1, the screen display is as shown in FIG. As shown in FIG. 6A, the picture P0 is not displayed, and the picture P1 is displayed for 1/30 second. Thereafter, similarly, the pictures P2 and P3 of the 60 Hz stream 2 are decoded in the latter half of the 1/60 second period t4, so that the picture P2 is not displayed and the picture P3
Will be displayed for 1/30 second, and the normal display will not be performed.
【0048】そこで、本発明の実施の形態では、上記の
不都合を解決するために、あらかじめ複数のストリーム
のフレームレートを識別し、各ストリームのフレームレ
ートに応じて、ストリームのデコード割り当て順序を切
り換える。具体的には、最も高いフレームレートの各周
期毎に、そのフレームレートのストリームのデコードを
優先的に割り当てる制御が行われる。Therefore, in the embodiment of the present invention, in order to solve the above-mentioned inconvenience, the frame rates of a plurality of streams are identified in advance, and the decoding assignment order of the streams is switched according to the frame rate of each stream. Specifically, for each cycle of the highest frame rate, control is performed to assign the decoding of the stream of the frame rate with priority.
【0049】具体的には、デコーダ10のデコード割り
当て管理部15は、図6(b)に示されるように、各1/
60秒周期において、まず、60Hzのストリーム2を選
択し、60Hzのストリーム2のピクチャ一枚のデコー
ドが完了すると、30Hzのストリーム0、1のいずれ
かに切り換える。図6(b)では、1/60秒周期t1で
は、まず、60Hzのストリーム2のピクチャP0がデ
コードされ、続いて、30Hzのストリーム0のピクチ
ャP0がデコードされる。そして、次の1/60秒周期t2
では、まず、60HzのストリームのピクチャP1がデ
コードされ、その後、30Hzのストリーム1のピクチ
ャP0がデコードされる。これにより、60Hzのスト
リーム2については、1/60秒毎、30Hzのストリーム
0、1については、1/30秒毎の一枚のピクチャのデコー
ドが実現され、正常な表示が可能となる。More specifically, as shown in FIG. 6 (b), the decode allocation management unit 15 of the decoder 10
In the 60-second cycle, first, the stream 2 of 60 Hz is selected, and when decoding of one picture of the stream 2 of 60 Hz is completed, the stream is switched to one of the streams 0 and 1 of 30 Hz. In FIG. 6B, in the 1/60 second period t1, the picture P0 of the 60 Hz stream 2 is decoded first, and then the picture P0 of the 30 Hz stream 0 is decoded. And the next 1/60 second period t2
First, the picture P1 of the 60 Hz stream is decoded, and then the picture P0 of the 30 Hz stream 1 is decoded. As a result, one picture is decoded every 1/60 second for the stream 2 of 60 Hz, and one picture is decoded every 1/30 second for the streams 0 and 1 of 30 Hz, and normal display is possible.
【0050】ストリーム割り当て管理部15は、複数の
ストリームのデコードを開始する前に、各入力バッファ
に蓄積されたデータの最初のシーケンスヘッダを読み出
すように、セレクタ13を切り換える。MPEG構文解
析部14は、各ストリームのシーケンスヘッダを解析し
て、各ストリームのフレームレートを取得し、それをス
トリーム割り当て管理部15に通知する。これにより、
ストリーム割り当て管理部15は、各ストリームのフレ
ームレートを識別し、各ストリームのフレームレートに
応じて、切り換え順序を制御する。即ち、最も速いフレ
ームレートの周期毎に、まず、その最速フレームレート
のストリームを割り当て、その後、遅いフレームレート
のストリームを、その遅いフレームレートの周期に合う
ように割り当てる。Before starting decoding a plurality of streams, the stream allocation management unit 15 switches the selector 13 so as to read the first sequence header of the data stored in each input buffer. The MPEG syntax analysis unit 14 analyzes the sequence header of each stream, acquires the frame rate of each stream, and notifies the stream allocation management unit 15 of the frame rate. This allows
The stream allocation management unit 15 identifies the frame rate of each stream, and controls the switching order according to the frame rate of each stream. That is, for each cycle of the fastest frame rate, the stream of the fastest frame rate is assigned first, and then the stream of the slower frame rate is assigned to match the cycle of the slower frame rate.
【0051】本発明のMPEGデコーダは、例えば、複
数番組の同時デコード、マルチアングル放送などに対応
したデジタル放送受信機に適用可能である。The MPEG decoder of the present invention can be applied to, for example, a digital broadcast receiver compatible with simultaneous decoding of a plurality of programs, multi-angle broadcasting, and the like.
【0052】(付記1)それぞれ複数のスライスを含む
複数のピクチャをそれぞれ有する複数のMPEGストリ
ームを順次デコードするMPEGデコーダにおいて、入
力される前記複数のMPEGストリームのデコード割り
当てを、前記スライス単位で切り換える割り当て部と、
前記割り当て部によって割り当てられたMPEGストリ
ームをデコードするデコード部とを備えることを特徴と
するMPEGデコーダ。(Supplementary Note 1) In an MPEG decoder for sequentially decoding a plurality of MPEG streams each having a plurality of pictures each including a plurality of slices, an assignment for switching the decoding assignment of the plurality of input MPEG streams in units of the slices. Department and
A decoder for decoding the MPEG stream assigned by the assigning unit.
【0053】(付記2)前記割り当て部は、第一のMP
EGストリームの第一のピクチャをデコード中に、第二
のMPEGストリームにデコード割り当てを切り換え、
前記第二のMPEGストリームの第二のピクチャの一部
又は全てのデコードが完了した後、前記第一のMPEG
ストリームにデコード割り当てを切り換え、前記第一の
ピクチャのうちの未デコード部分をデコードすることを
特徴とする付記1記載のMPEGデコーダ。(Supplementary Note 2) The allocating unit performs the first MP
While decoding the first picture of the EG stream, switch the decoding assignment to the second MPEG stream,
After the decoding of a part or all of the second picture of the second MPEG stream is completed, the first MPEG
2. The MPEG decoder according to claim 1, wherein a decoding assignment is switched to a stream, and an undecoded portion of the first picture is decoded.
【0054】(付記3)前記割り当て部は、所定の基準
に基づいてデコード割り当ての切り換えを行うことを判
定すると、第一のMPEGストリームのデコード中のス
ライスのデコード完了を待って、第二のMPEGストリ
ームに切り換え、前記デコード部は、再度、前記第一の
MPEGストリームに切り換えられると、前記スライス
の次のスライスからデコードを開始することを特徴とす
る付記1記載のMPEGデコーダ。(Supplementary Note 3) When the allocating unit determines to switch the decoding allocation based on a predetermined criterion, the allocating unit waits for the completion of decoding of the slice being decoded of the first MPEG stream, 2. The MPEG decoder according to claim 1, wherein the stream is switched to a stream, and when the stream is switched to the first MPEG stream again, decoding starts from a slice next to the slice.
【0055】(付記4)前記割り当て部は、所定の基準
に基づいてデコード割り当ての切り換え行うことを判定
すると、第一のMPEGストリームのデコード中のスラ
イスの途中で、第二のMPEGストリームに切り換え、
前記デコード部は、再度、前記第一のMPEGストリー
ムに切り換えられると、前記スライスの次のスライスか
らデコードを開始することを特徴とする付記1記載のM
PEGデコーダ。(Supplementary Note 4) When the allocating unit determines to switch the decoding allocation based on a predetermined criterion, the allocating unit switches to the second MPEG stream in the middle of a slice during decoding of the first MPEG stream,
2. The M-decoding device according to claim 1, wherein the decoding unit starts decoding from a slice next to the slice when switching to the first MPEG stream again.
PEG decoder.
【0056】(付記5)入力される前記複数のMPEG
ストリームをそれぞれ蓄積する蓄積部を備え、前記割り
当て部は、前記蓄積部に蓄積される前記複数のMPEG
ストリームそれぞれの蓄積データ量に基づいて、前記複
数のMPEGストリームのデコード割り当てを切り換え
ることを特徴とする付記1記載のMPEGデコーダ。(Supplementary Note 5) The plurality of MPEGs to be input
A storage unit for storing each of the streams, wherein the allocating unit stores the plurality of MPEGs stored in the storage unit.
2. The MPEG decoder according to claim 1, wherein decoding assignment of the plurality of MPEG streams is switched based on the amount of data stored in each stream.
【0057】(付記6)前記割り当て部は、デコード中
の第一のMPEGストリームの前記蓄積部での蓄積デー
タ量が所定の下限値以下になると、第二のMPEGスト
リームにデコード割り当てを切り換えることを特徴とす
る付記5記載のMPEGデコーダ。(Supplementary Note 6) The allocating unit switches the decoding allocation to the second MPEG stream when the amount of data stored in the storage unit of the first MPEG stream being decoded falls below a predetermined lower limit. 5. The MPEG decoder according to claim 5, wherein:
【0058】(付記7)前記割り当て部は、第一のMP
EGストリームのデコード中に、デコード中でない第二
のMPEGストリームの前記蓄積部での蓄積データ量が
所定の上限値以上になると、前記第二のMPEGストリ
ームにデコード割り当てを切り換えることを特徴とする
付記5記載のMPEGデコーダ。(Supplementary Note 7) The allocating unit performs the first MP
During decoding of the EG stream, if the amount of data stored in the storage unit of the second MPEG stream that is not being decoded becomes greater than or equal to a predetermined upper limit, the decoding allocation is switched to the second MPEG stream. 5. The MPEG decoder according to 5.
【0059】(付記8)複数のピクチャをそれぞれ有す
る複数のMPEGストリームを順次デコードするMPE
Gデコーダにおいて、入力される前記複数のMPEGス
トリームをそれぞれ蓄積する蓄積部と、前記蓄積部に蓄
積された前記複数のMPEGストリームのデコード割り
当てを順次切り換える割り当て部と、前記割り当て部に
よって割り当てられたMPEGストリームをデコードす
るデコード部とを備え、前記蓄積部内における割り当て
られたMPEGストリームの蓄積データ量が所定の上限
値以上であると、前記デコード部は、前記蓄積部から読
み出されるMPEGストリームの少なくとも一つのピク
チャを読み飛ばすことができることを特徴とするMPE
Gデコーダ。(Supplementary note 8) MPE for sequentially decoding a plurality of MPEG streams each having a plurality of pictures
A storage unit for storing the plurality of input MPEG streams in the G decoder; an allocation unit for sequentially switching the decoding allocation of the plurality of MPEG streams stored in the storage unit; and an MPEG allocated by the allocation unit. A decoding unit that decodes the stream, and when the amount of data stored in the allocated MPEG stream in the storage unit is equal to or more than a predetermined upper limit, the decoding unit determines at least one of the MPEG streams read from the storage unit. MPE characterized in that a picture can be skipped
G decoder.
【0060】(付記9)前記デコード部は、前記蓄積部
から読み出されるMPEGストリームのピクチャのタイ
プに基づいて、前記ピクチャを読み飛ばすか否かを判定
することを特徴とする付記8記載のMPEGデコーダ。(Supplementary note 9) The MPEG decoder according to supplementary note 8, wherein the decoding unit determines whether or not to skip the picture based on the type of picture of the MPEG stream read from the storage unit. .
【0061】(付記10)複数のMPEGストリームを
順次処理でデコードするMPEGデコーダにおいて、前
記複数のMPEGストリームのデコード割り当てを、前
記複数のMPEGデコーダそれぞれのフレームレートに
応じて切り換える割り当て部と、前記割り当て部によっ
て割り当てられたMPEGストリームをデコードするデ
コード部とを備えることを特徴とするMPEGデコー
ダ。(Supplementary Note 10) In an MPEG decoder that sequentially decodes a plurality of MPEG streams, an assigning unit that switches a decoding assignment of the plurality of MPEG streams in accordance with a frame rate of each of the plurality of MPEG decoders; A decoding unit for decoding the MPEG stream assigned by the unit.
【0062】本発明の保護範囲は、上記の実施の形態に
限定されず、特許請求の範囲に記載された発明とその均
等物に及ぶものである。The scope of protection of the present invention is not limited to the above embodiments, but extends to the inventions described in the claims and their equivalents.
【0063】[0063]
【発明の効果】以上、本発明によれば、多重化された複
数のストリームを順次デコードする場合において、スラ
イス層単位でストリームのデコード割り当てを切り換え
る。また、スライス層単位での切り換えは、例えば、入
力バッファの蓄積データ量に基づいて行われる。さら
に、入力バッファの蓄積データ量に基づいて、ピクチャ
の読み飛ばしが行われる。さらに、複数のストリームの
フレームレートが異なる場合は、各ストリームのフレー
ムレートに応じて、割り当て順序が決定される。これら
の動作により、デコードエラーを発生させることなく、
正常な表示を行うことが可能となる。As described above, according to the present invention, when sequentially decoding a plurality of multiplexed streams, the decoding allocation of the streams is switched in units of slice layers. Further, switching in units of slice layers is performed based on, for example, the amount of data stored in the input buffer. Further, skipping of a picture is performed based on the amount of data stored in the input buffer. Further, when the frame rates of a plurality of streams are different, the assignment order is determined according to the frame rates of the respective streams. By these operations, without causing a decoding error,
Normal display can be performed.
【図1】MPEG規格に従った画像データ(ストリー
ム)の構成を示す図である。FIG. 1 is a diagram showing a configuration of image data (stream) according to the MPEG standard.
【図2】本発明の原理を説明する図である。FIG. 2 is a diagram illustrating the principle of the present invention.
【図3】本発明の実施の形態におけるデコーダのブロッ
ク構成図である。FIG. 3 is a block diagram of a decoder according to the embodiment of the present invention.
【図4】本発明の実施の形態のデコーダの動作を説明す
る図である。FIG. 4 is a diagram illustrating an operation of the decoder according to the embodiment of the present invention.
【図5】本発明の実施の形態のデコーダの別の動作を説
明する図である。FIG. 5 is a diagram illustrating another operation of the decoder according to the embodiment of the present invention.
【図6】フレームレートが異なる複数のストリームの順
次デコードを説明する図である。FIG. 6 is a diagram illustrating sequential decoding of a plurality of streams having different frame rates.
【図7】従来における複数のストリームのデコード方法
を説明する図である。FIG. 7 is a diagram illustrating a conventional method for decoding a plurality of streams.
【符号の説明】 10 デコーダ 12 入力バッファ 13 セレクタ 14 MPEG構文解析部 15 ストリーム割り当て管理部 16 入力バッファ制御部[Description of Code] 10 Decoder 12 Input Buffer 13 Selector 14 MPEG Parsing Unit 15 Stream Allocation Management Unit 16 Input Buffer Control Unit
───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK13 KK33 MA00 PP05 PP06 PP07 RB13 RC28 TA80 TB06 TC18 TD02 UA05 ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5C059 KK13 KK33 MA00 PP05 PP06 PP07 RB13 RC28 TA80 TB06 TC18 TD02 UA05
Claims (3)
チャをそれぞれ有する複数のMPEGストリームを順次
デコードするMPEGデコーダにおいて、 入力される前記複数のMPEGストリームのデコード割
り当てを、前記スライス単位で切り換える割り当て部
と、 前記割り当て部によって割り当てられたMPEGストリ
ームをデコードするデコード部とを備えることを特徴と
するMPEGデコーダ。An MPEG decoder for sequentially decoding a plurality of MPEG streams each having a plurality of pictures each including a plurality of slices, wherein an assigning unit switches a decoding assignment of the plurality of input MPEG streams in units of the slices. And a decoding unit for decoding the MPEG stream assigned by the assignment unit.
PEGストリームを順次デコードするMPEGデコーダ
において、 入力される前記複数のMPEGストリームをそれぞれ蓄
積する蓄積部と、 前記蓄積部に蓄積された前記複数のMPEGストリーム
のデコード割り当てを順次切り換える割り当て部と、 前記割り当て部によって割り当てられたMPEGストリ
ームをデコードするデコード部とを備え、 前記蓄積部内における割り当てられたMPEGストリー
ムの蓄積データ量が所定の上限値以上であると、前記デ
コード部は、前記蓄積部から読み出されるMPEGスト
リームの少なくとも一つのピクチャを読み飛ばすことが
できることを特徴とするMPEGデコーダ。2. A plurality of Ms each having a plurality of pictures.
An MPEG decoder that sequentially decodes PEG streams, a storage unit that stores the plurality of input MPEG streams, an allocation unit that sequentially switches decoding allocation of the plurality of MPEG streams stored in the storage unit, And a decoding unit that decodes the MPEG stream assigned by the unit. If the amount of data stored in the storage unit is greater than or equal to a predetermined upper limit, the decoding unit is read from the storage unit. An MPEG decoder capable of skipping at least one picture of an MPEG stream.
コードするMPEGデコーダにおいて、 前記複数のMPEGストリームのデコード割り当てを、
前記複数のMPEGデコーダそれぞれのフレームレート
に応じて切り換える割り当て部と、 前記割り当て部によって割り当てられたMPEGストリ
ームをデコードするデコード部とを備えることを特徴と
するMPEGデコーダ。3. An MPEG decoder for sequentially decoding a plurality of MPEG streams, wherein the plurality of MPEG streams are assigned by decoding.
An MPEG decoder comprising: an assigning unit that switches according to a frame rate of each of the plurality of MPEG decoders; and a decoding unit that decodes an MPEG stream assigned by the assigning unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000126759A JP2001309371A (en) | 2000-04-27 | 2000-04-27 | MPEG decoder |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000126759A JP2001309371A (en) | 2000-04-27 | 2000-04-27 | MPEG decoder |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001309371A true JP2001309371A (en) | 2001-11-02 |
Family
ID=18636471
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000126759A Pending JP2001309371A (en) | 2000-04-27 | 2000-04-27 | MPEG decoder |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001309371A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006197587A (en) * | 2005-01-14 | 2006-07-27 | Samsung Electronics Co Ltd | Dual video decoding system and method |
| JP2008505510A (en) * | 2004-07-02 | 2008-02-21 | 松下電器産業株式会社 | AV stream reproducing apparatus, decoder switching method, method program, program recording medium, and integrated circuit |
| WO2009057238A1 (en) * | 2007-10-31 | 2009-05-07 | Panasonic Corporation | Dynamic image decoding device |
| WO2009150836A1 (en) * | 2008-06-11 | 2009-12-17 | パナソニック株式会社 | Decoding device, information processing system, and dynamic image recording and reproducing system |
| US7865021B2 (en) | 2004-12-06 | 2011-01-04 | Nec Electronics Corporation | Compressed stream decoding apparatus and method |
-
2000
- 2000-04-27 JP JP2000126759A patent/JP2001309371A/en active Pending
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008505510A (en) * | 2004-07-02 | 2008-02-21 | 松下電器産業株式会社 | AV stream reproducing apparatus, decoder switching method, method program, program recording medium, and integrated circuit |
| US7865021B2 (en) | 2004-12-06 | 2011-01-04 | Nec Electronics Corporation | Compressed stream decoding apparatus and method |
| JP2006197587A (en) * | 2005-01-14 | 2006-07-27 | Samsung Electronics Co Ltd | Dual video decoding system and method |
| WO2009057238A1 (en) * | 2007-10-31 | 2009-05-07 | Panasonic Corporation | Dynamic image decoding device |
| WO2009150836A1 (en) * | 2008-06-11 | 2009-12-17 | パナソニック株式会社 | Decoding device, information processing system, and dynamic image recording and reproducing system |
| JP2009302704A (en) * | 2008-06-11 | 2009-12-24 | Panasonic Corp | Decoding device, information processing system and dynamic image recording and reproducing system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0731422B1 (en) | Moving picture decoding circuit | |
| JP5209154B2 (en) | Digital video decoding system, method for sequentially displaying a plurality of video programs and method for predicting the next channel selected by a user | |
| US7342967B2 (en) | System and method for enhancing performance of personal video recording (PVR) functions on hits digital video streams | |
| CA2528040C (en) | Decoding method and apparatus enabling fast channel change of compressed video | |
| US7248304B2 (en) | Digital broadcast receiving apparatus | |
| US6449352B1 (en) | Packet generating method, data multiplexing method using the same, and apparatus for coding and decoding of the transmission data | |
| KR100710290B1 (en) | Video decoding apparatus and method | |
| US20070217519A1 (en) | Moving image decoding apparatus and moving image coding apparatus | |
| US20030026342A1 (en) | Decoding apparatus, decoding method, decoding program, and decoding program storage medium | |
| CN101889446A (en) | Dynamic image decoding device | |
| US20050174352A1 (en) | Image processing method and system to increase perceived visual output quality in cases of lack of image data | |
| JP4649615B2 (en) | Video encoding / decoding device, video encoding / decoding method, and program thereof | |
| KR100335441B1 (en) | Multiplexing video decoding apparatus and method | |
| US8837599B2 (en) | System, method and apparatus for clean channel change | |
| JP2001309371A (en) | MPEG decoder | |
| KR100640885B1 (en) | Video Buffer Control Unit for Dual Video Decoding | |
| US6757332B1 (en) | Video decoding method, video decoding apparatus, and program storage media | |
| JPH09247686A (en) | Decoding circuit for multiplex video signal | |
| JP4192995B2 (en) | How to mute the video signal | |
| JP3184175B2 (en) | Decryption device | |
| JP3478003B2 (en) | Decryption device | |
| JP3995017B2 (en) | How to mute the video signal | |
| JP4433319B2 (en) | Signal reproduction device | |
| JP2001103426A (en) | Image decoding apparatus and method | |
| JPH09261630A (en) | Compressed image data processing method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070312 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20081128 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081202 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090202 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20090818 |