JP2000152189A - Image decoder, its method and served medium - Google Patents

Image decoder, its method and served medium

Info

Publication number
JP2000152189A
JP2000152189A JP31906698A JP31906698A JP2000152189A JP 2000152189 A JP2000152189 A JP 2000152189A JP 31906698 A JP31906698 A JP 31906698A JP 31906698 A JP31906698 A JP 31906698A JP 2000152189 A JP2000152189 A JP 2000152189A
Authority
JP
Japan
Prior art keywords
picture
data
encoded
coded
stored
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.)
Withdrawn
Application number
JP31906698A
Other languages
Japanese (ja)
Inventor
Takeshi Ono
武司 大野
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP31906698A priority Critical patent/JP2000152189A/en
Publication of JP2000152189A publication Critical patent/JP2000152189A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To skip a picture by normally reproducing coded data. SOLUTION: A skip control circuit 22 allows an overwrite address storage section 21A of a write control circuit 21 to store an address of an FIFO 1 in which a B picture, e.g. is written in timing when a picture skip request is made. Then the skip control circuit 22 controls the write control circuit 21 to write data in succession to the B picture from an address stored in the overwrite address storage section 21 in the FIFO 1. Thus, when other picture having been written earlier is reproduced, the B picture not referred to is deleted from the FIFO 1 resulting in skipping the picture.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像復号装置およ
び方法、並びに提供媒体に関し、特に、正常に再生が行
われるようにして、ピクチャをスキップすることができ
るようにした画像復号装置および方法、並びに提供媒体
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image decoding apparatus and method, and a providing medium, and more particularly to an image decoding apparatus and method capable of skipping pictures so that normal reproduction can be performed. In addition, it relates to a providing medium.

【0002】[0002]

【従来の技術】図6は、従来の画像復号装置10の構成
例を表している。画像復号装置10のFIFO1には、MPEG
2規格に準拠して符号化された、Iピクチャ、Pピクチ
ャ、またはBピクチャで構成される画像の符号化データ
が入力され、記憶される。
2. Description of the Related Art FIG. 6 shows a configuration example of a conventional image decoding apparatus 10. MPEG1 is stored in the FIFO1 of the image decoding device 10.
Encoded data of an image composed of an I picture, a P picture, or a B picture, which is encoded according to the two standards, is input and stored.

【0003】可変長復号回路2は、FIFO1に記憶されて
いる符号化データを、例えば、一定のレートで読み出
し、復号して、動きベクトル、または量子化DCT係数
などの復号信号を取得する。可変長復号回路2は、取得
した量子化DCT係数を逆量子化回路3に出力し、また
取得した動きベクトルを、動き補償予測回路6に出力す
る。
The variable length decoding circuit 2 reads out coded data stored in the FIFO 1 at a constant rate, for example, and decodes it to obtain a decoded signal such as a motion vector or a quantized DCT coefficient. The variable length decoding circuit 2 outputs the obtained quantized DCT coefficient to the inverse quantization circuit 3 and outputs the obtained motion vector to the motion compensation prediction circuit 6.

【0004】逆量子化回路3は、可変長復号回路2より
入力された量子化DCT係数を逆量子化し、逆DCT変
換回路4に出力する。逆DCT変換回路4は、逆量子化
回路3より入力されたデータに逆DCT処理して、加算
回路5に出力する。
[0004] The inverse quantization circuit 3 inversely quantizes the quantized DCT coefficient input from the variable length decoding circuit 2 and outputs the result to the inverse DCT transformation circuit 4. The inverse DCT transform circuit 4 performs an inverse DCT process on the data input from the inverse quantization circuit 3 and outputs the data to the addition circuit 5.

【0005】加算回路5は、動き補償予測回路6から供
給される予測画像データと、逆DCT変換回路4から供
給されるデータとを加算し、元の画像データに戻して、
外部に出力するとともに、それをフレームメモリ7に記
憶させる。
[0005] An addition circuit 5 adds the prediction image data supplied from the motion compensation prediction circuit 6 and the data supplied from the inverse DCT conversion circuit 4 to return to the original image data.
It is output to the outside and stored in the frame memory 7.

【0006】動き補償予測回路6は、可変長復号回路2
からの動きベクトルに対応して、フレームメモリ7より
読み出された画像データに動き補償を施し、予測画像デ
ータを生成し、加算回路5に出力する。
The motion compensation prediction circuit 6 includes a variable length decoding circuit 2
In accordance with the motion vector from, the image data read from the frame memory 7 is subjected to motion compensation to generate predicted image data and output to the addition circuit 5.

【0007】読み出し制御回路8は、CPU9に制御さ
れ、FIFO1に記憶されている符号化データから、所定の
ピクチャを読み出し、それが再生されないようにする。
以下、この処理を、ピクチャをスキップすると称する。
[0007] The read control circuit 8 is controlled by the CPU 9 to read a predetermined picture from the encoded data stored in the FIFO 1 so as not to reproduce it.
Hereinafter, this process is referred to as skipping a picture.

【0008】CPU9は、例えば、伝送されてきたときの
フレームレートより遅いフレームレートで符号化データ
が復号される場合、何らかのエラーにより、誤った位置
にピクチャスタートコード(後述)が設定されて、その
ピクチャスタートコードに対応しない余分なピクチャが
存在するようになった場合、または、画像が早送りされ
る場合など、ピクチャをスキップする必要があるとき、
読み出し制御回路8を制御し、ピクチャをスキップさせ
る。
For example, when coded data is decoded at a frame rate lower than the frame rate at which the data is transmitted, the CPU 9 sets a picture start code (described later) at an erroneous position due to some error. When there is an extra picture that does not correspond to the picture start code, or when the picture needs to be skipped, such as when the image is fast-forwarded,
The read control circuit 8 is controlled to skip the picture.

【0009】次に、FIFO1乃至フレームメモリ7の動作
について説明する。この例の場合、図7に示すような画
像データAが符号化され、画像復号装置10に伝送され
てくるものとする。
Next, the operation of the FIFO 1 to the frame memory 7 will be described. In the case of this example, it is assumed that image data A as shown in FIG. 7 is encoded and transmitted to the image decoding device 10.

【0010】画像データAは、シーケンスヘッダとシー
ケンスエンドにより区切られるシーケンスデータA−i
(i=1,2,3・・・)(以下、シーケンスデータA
−iを個々に区別する必要がない場合、単に、シーケン
スデータAと記述する。他の場合についても同様であ
る)から構成されている。
The image data A is sequence data Ai separated by a sequence header and a sequence end.
(I = 1, 2, 3,...) (Hereinafter, sequence data A
When it is not necessary to distinguish −i individually, it is simply described as sequence data A. The same applies to other cases).

【0011】シーケンスデータA−1は、シーケンスヘ
ッダに始まり、N個のGOP(Group ofPictures)A−1乃
至GOPA−Nにより構成されている。GOPAは、GOPヘッ
ダに続いて、1つのIピクチャI1、2つのPピクチャ
P1,P2、および3つのBピクチャB1,B2,B3の合
計6のピクチャで構成され、I1,B1,B2,P1,B
3,P2の順番に並べられている。
The sequence data A-1 starts with a sequence header and is composed of N GOPs (Group of Pictures) A-1 to GOPA-N. The GOPA is composed of a total of six pictures, one I picture I1, two P pictures P1, P2, and three B pictures B1, B2, B3, following the GOP header, and I1, B1, B2, P1, P2 B
3, P2.

【0012】なお、MPEG2規格において、GOPは、GOPヘ
ッダに始まり、そのGOPヘッダに続いて、フレーム内の
データのみで符号化される(イントラ符号化)Iピクチ
ャが、必ず配列される。また、画像データAの各ピクチ
ャは、図示せぬ符号化装置により符号化される際、時間
的に後方に位置するI,Pピクチャが、対応するBピク
チャに先行して符号化されている。このことより、実際
に、画像復号装置10に伝送されてきた画像データAの
符号化データにおいて、GOPAのピクチャは、I1,P
1,B1,B2,P2,B3の順に並べ変えられている。
In the MPEG2 standard, a GOP starts with a GOP header, and is followed by an I-picture which is coded only with data in a frame (intra coding). Further, when each picture of the image data A is encoded by an encoding device (not shown), the I and P pictures located temporally behind are encoded prior to the corresponding B picture. From this, in the encoded data of the image data A actually transmitted to the image decoding device 10, the picture of GOPA is I1, P
1, B1, B2, P2, and B3 are rearranged in this order.

【0013】以上のような画像データAの符号化データ
は、FIFO1に供給され、記憶される。可変長復号回路2
は、FIFO1に記憶されている符号化データのうち、シー
ケンスデータA−1のGOPA−1の第1番目のピクチャ
であるIピクチャI1を読み出し、復号して、各フレー
ムに対応した動きベクトル、および量子化DCT係数な
どを取得する。可変長復号回路2は、取得した量子化D
CT係数を逆量子化回路3に出力し、また取得した動き
ベクトルを、動き補償予測回路6に出力する。
The coded data of the image data A as described above is supplied to the FIFO 1 and stored. Variable length decoding circuit 2
Reads out and decodes the I picture I1, which is the first picture of the GOPA-1 of the sequence data A-1, among the encoded data stored in the FIFO1, and decodes the Ipicture I1 corresponding to each frame, and Acquire quantized DCT coefficients and the like. The variable length decoding circuit 2 obtains the obtained quantization D
The CT coefficient is output to the inverse quantization circuit 3, and the obtained motion vector is output to the motion compensation prediction circuit 6.

【0014】逆量子化回路3は、可変長復号回路2より
入力された量子化DCT係数を逆量子化し、逆DCT変
換回路4に出力する。逆DCT変換回路4は、逆量子化
回路3より入力されたデータに逆DCT処理して、加算
回路5に出力する。
The inverse quantization circuit 3 inversely quantizes the quantized DCT coefficient input from the variable length decoding circuit 2 and outputs the result to the inverse DCT transformation circuit 4. The inverse DCT transform circuit 4 performs an inverse DCT process on the data input from the inverse quantization circuit 3 and outputs the data to the addition circuit 5.

【0015】ところで、IピクチャI1は、フレーム内
のデータのみで符号化されているので、他のピクチャは
参照されず、再生される。すなわち、IピクチャI1
は、可変長復号回路2乃至逆DCT変換回路4における
処理により再生されるので(元の画像データに戻される
ので)、加算回路5においては、何も加算されず、その
まま出力される。
By the way, since the I picture I1 is coded only by the data in the frame, the other picture is reproduced without being referred to. That is, the I picture I1
Is reproduced by the processing in the variable length decoding circuit 2 through the inverse DCT conversion circuit 4 (because the image data is restored to the original image data), and the addition circuit 5 outputs nothing without adding.

【0016】加算回路5から出力された、再生されたI
ピクチャI1は、外部の装置に供給されるとともに、フ
レームメモリ7に供給され、記憶される。フレームメモ
リ7に記憶されたIピクチャI1は、他のピクチャが再
生されるとき参照される。
The reproduced I output from the adding circuit 5
The picture I1 is supplied to an external device and is also supplied to and stored in the frame memory 7. The I picture I1 stored in the frame memory 7 is referred to when another picture is reproduced.

【0017】次に、FIFO1に、IピクチャI1の次に記
憶されているPピクチャP1が、上述したIピクチャI1
と同様に再生されるが、PピクチャP1は、前方向に予
測符号化されているので、図8の矢印Aが示すように、
PピクチャP1(矢印Aの終点)が再生されるとき、時
間的に過去のIピクチャI1(矢印Aの始点)が参照さ
れる。すなわち、PピクチャP1は、可変長復号回路2
乃至逆DCT変換回路4において処理され、加算回路5
に供給されると、加算回路5において、動き補償予測回
路6より供給される、IピクチャI1から動き補償によ
り得られたブロックデータが加算される。このようにし
て、PピクチャP1は、再生される。
Next, in the FIFO 1, the P picture P1 stored next to the I picture I1 is stored in the I picture I1.
However, since the P picture P1 is predictively coded in the forward direction, as shown by the arrow A in FIG.
When the P picture P1 (the end point of the arrow A) is reproduced, the temporally past I picture I1 (the start point of the arrow A) is referred to. That is, the P picture P1 is stored in the variable length decoding circuit 2
Through the inverse DCT transformation circuit 4 and the addition circuit 5
Is supplied to the adder 5, the block data supplied from the motion compensation prediction circuit 6 and obtained by the motion compensation from the I picture I1 is added. Thus, the P picture P1 is reproduced.

【0018】加算回路5から出力された、再生されたP
ピクチャP1は、外部の装置に供給されるとともに、フ
レームメモリ7に供給され、BピクチャB1,B2および
PピクチャP2が再生されるとき参照される。
The reproduced P output from the adding circuit 5
The picture P1 is supplied to an external device and also supplied to the frame memory 7, and is referred to when B pictures B1, B2 and P picture P2 are reproduced.

【0019】次に、FIFO1に、PピクチャP1の次に記
憶されているBピクチャB1が再生されるが、Bピクチ
ャは、前後方向に予測符号化されているので、図8の矢
印Bおよび矢印Cに示すように、BピクチャB1(矢印
B,Cの終点)が再生されるとき、時間的に過去のIピ
クチャI1(矢印Bの始点)と、時間的に未来のPピク
チャP1(矢印Cの始点)の両方が参照される。すなわ
ち、BピクチャB1は、可変長復号回路2乃至逆DCT
変換回路4において処理され、加算回路5に供給される
と、加算回路5において、動き補償予測回路6より供給
される、IピクチャI1から動き補償により得られたブ
ロックデータと、PピクチャP1から動き補償により得
られたブロックデータとが加算される。このようにし
て、BピクチャB1は再生される。
Next, the B picture B1 stored next to the P picture P1 is reproduced in the FIFO1, but since the B picture is predictively coded in the forward and backward directions, the arrow B and the arrow B in FIG. As shown in C, when a B picture B1 (end point of arrows B and C) is reproduced, a temporally past I picture I1 (start point of arrow B) and a temporally future P picture P1 (arrow C) Are both referred to. That is, the B picture B1 is stored in the variable length decoding circuit 2 through the inverse DCT.
After being processed in the conversion circuit 4 and supplied to the addition circuit 5, the addition circuit 5 supplies the block data obtained by the motion compensation from the I picture I1 and the motion data from the P picture P1 supplied from the motion compensation prediction circuit 6. The block data obtained by the compensation is added. Thus, the B picture B1 is reproduced.

【0020】加算回路5から出力された、再生されたB
ピクチャB1は、外部の装置に供給される。Bピクチャ
B1は、他のフレームが再生されるとき参照されないの
で、それを記憶しておく必要がなく、フレームメモリ7
には供給されない。
The reproduced B output from the adding circuit 5
The picture B1 is supplied to an external device. Since the B picture B1 is not referred to when another frame is reproduced, there is no need to store the B picture B1.
Is not supplied.

【0021】以上のようにして、FIFO1に記憶されてい
るピクチャは、それぞれ再生される。
As described above, the pictures stored in the FIFO 1 are reproduced.

【0022】次に、ピクチャをスキップする処理を実行
する場合の処理手順を、図9のフローチャートを参照し
て説明する。
Next, a procedure for executing a process of skipping a picture will be described with reference to a flowchart of FIG.

【0023】読み出し制御回路8は、ピクチャをスキッ
プする指令をCPU9から受け取ると、ステップS1にお
いて、そのタイミングに対応するGOPに、可変長復号回
路2により読み出されていないBピクチャがまだ存在す
るか否かを判定し、そのようなBピクチャが存在する場
合、ステップS2に進み、そのうちの任意の1つのBピ
クチャを選択し、それが可変長復号回路2により読み出
される直前に、それをスキップする。
When the read control circuit 8 receives a command to skip a picture from the CPU 9, in step S 1, whether there is still a B picture not read by the variable length decoding circuit 2 in the GOP corresponding to the timing. It is determined whether there is such a B picture, and if there is such a B picture, the process proceeds to step S2, an arbitrary one of the B pictures is selected, and it is skipped immediately before it is read out by the variable length decoding circuit 2. .

【0024】例えば、図7に示した画像データAの符号
化データのシーケンスデータA−1がFIFO1に供給さ
れ、記憶されている状態において、GOPA−3のIピク
チャI1が、可変長復号回路2により読み出されるタイ
ミングで、ピクチャをスキップする要求がされたとす
る。このとき、読み出し制御回路8は、CPU9からその
旨の指令を受け取り、GOPA−3に、可変長復号回路2
により読み出されていないBピクチャがまだ存在するか
否かを判定し(ステップS1)、そのようなBピクチャ
が存在する場合、そのうちの任意の1つのBピクチャを
選択し、それが可変長復号回路2により読み出される直
前にスキップする(ステップS2)。
For example, when the sequence data A-1 of the coded data of the image data A shown in FIG. 7 is supplied to the FIFO 1 and stored, the I-picture I1 of GOPA-3 is It is assumed that a request to skip a picture is made at the timing read by the. At this time, the read control circuit 8 receives the instruction to that effect from the CPU 9 and sends the instruction to the GOPA-3 to the variable length decoding circuit 2.
It is determined whether there is still a B picture that has not been read (step S1). If such a B picture exists, any one of the B pictures is selected, and it is subjected to variable length decoding. Skip immediately before reading by the circuit 2 (step S2).

【0025】この例の場合、GOPA−3には、Bピクチ
ャB1,B2,B3が存在しており、それらが、可変長復
号回路2によりまだ読み出されていないとすると、それ
らのうち、例えば、BピクチャB3(図中、影を付して
示されている)が、可変長復号回路2により読み出され
る直前にスキップされる。
In the case of this example, GOPA-3 includes B pictures B1, B2, and B3, and if these have not been read out by the variable length decoding circuit 2, among them, for example, , B picture B3 (shown shaded in the figure) are skipped immediately before being read out by the variable length decoding circuit 2.

【0026】IピクチャおよびPピクチャは、上述した
ように、他のピクチャが再生される場合、参照されると
きがある。他のピクチャに参照されるIピクチャまたは
Pピクチャがスキップされ、再生されない場合、それを
参照するピクチャの再生が正常に行われなくなる。一
方、Bピクチャは、他のピクチャが再生されるとき参照
されないので、それがスキップされても、他のピクチャ
の再生は正常に行われる。そこで、画像データAのよう
に、Bピクチャが存在する場合、Bピクチャがスキップ
されるようにする。
As described above, the I picture and the P picture are sometimes referred to when another picture is reproduced. If an I picture or a P picture referred to by another picture is skipped and not reproduced, the reproduction of a picture referring to the I picture or P picture is not performed normally. On the other hand, since the B picture is not referred to when other pictures are reproduced, even if it is skipped, the reproduction of the other pictures is performed normally. Therefore, when a B picture exists as in the image data A, the B picture is skipped.

【0027】ステップS1において、Bピクチャが存在
しないと判定された場合、ステップS3に進み、読み出
し制御回路8は、対応するGOPにPピクチャが存在する
か否かを判定し、それにPピクチャが存在すると判定し
た場合、ステップS4に進む。
If it is determined in step S1 that there is no B picture, the process proceeds to step S3, where the read control circuit 8 determines whether a P picture exists in the corresponding GOP, and the P picture exists in the corresponding GOP. If so, the process proceeds to step S4.

【0028】ステップS4において、読み出し制御回路
8は、対応するGOPより過去のGOPを参照して、対応する
GOPを構成するピクチャの数(GOPの周期)を推定し、ス
テップS5において、推定したピクチャの数に基づい
て、対応するGOPの最後のピクチャをスキップする。
In step S4, the read control circuit 8 refers to a GOP that is earlier than the corresponding GOP, and
The number of pictures (GOP cycle) constituting the GOP is estimated, and in step S5, the last picture of the corresponding GOP is skipped based on the estimated number of pictures.

【0029】例えば、図10に示すようなBピクチャが
存在しない画像データBの符号化データがFIFO1に供給
され、記憶されている状態において、GOPB−3のIピ
クチャI1が、可変長復号回路2により読み出されるタ
イミングで、ピクチャをスキップする要求がされたとす
る。このとき、読み出し制御回路8は、GOPB−3にB
ピクチャが存在しないと判定し(ステップS1)、Pピ
クチャが存在すると判定する(ステップS3)。
For example, when the coded data of the image data B having no B picture as shown in FIG. 10 is supplied to the FIFO 1 and stored, the I picture I 1 of GOPB-3 is supplied to the variable length decoding circuit 2. It is assumed that a request to skip a picture is made at the timing read by the. At this time, the read control circuit 8 sets the GOPB-3 to B
It is determined that no picture exists (step S1), and it is determined that a P picture exists (step S3).

【0030】次に、読み出し制御回路8は、GOPB−3
より過去の、例えば、GOPB−1とGOPB−2の2つのGO
PBを参照して、GOPB−3が5ピクチャで構成されてい
ると推定し(ステップS4)、それに基づいて、GOPB
−3の第5番目のピクチャのPピクチャP4を、それが
可変長復号回路2により読み出される直前にスキップす
る(ステップS5)。
Next, the read control circuit 8 executes GOPB-3
In the past, for example, two GOs of GOPB-1 and GOPB-2
With reference to the PB, it is estimated that GOPB-3 is composed of five pictures (step S4), and based on that, GOPB-3 is
The P-picture P4 of the fifth picture of -3 is skipped immediately before it is read out by the variable length decoding circuit 2 (step S5).

【0031】GOPB−3の第5番目のピクチャのPピク
チャP4は、GOPB−3の最後のピクチャであり、それの
次には、GOPB−4(図示せず)の第1番目のピクチャ
であるIピクチャが符号化されている。このように、I
ピクチャの直前に符号化されたPピクチャP4は、図1
1に示すように、他のピクチャが再生されるとき参照さ
れない(図11において、P4は矢印の始点となってい
ない)。すなわち、このようなPピクチャP4がスキッ
プされても、他のピクチャの再生は正常に行われる。そ
こで、ピクチャがスキップされる画像データが、画像デ
ータBのように、IピクチャとPピクチャからなる場合
(Bピクチャが存在しない場合)、対応するGOPの最後
のPピクチャ、すなわち、次のGOPのIピクチャの直前
に符号化されたPピクチャがスキップされる。
[0031] The P picture P4 of the fifth picture of GOPB-3 is the last picture of GOPB-3, followed by the first picture of GOPB-4 (not shown). An I picture has been encoded. Thus, I
The P picture P4 coded immediately before the picture is shown in FIG.
As shown in FIG. 1, it is not referred to when another picture is reproduced (in FIG. 11, P4 is not the starting point of the arrow). That is, even if such a P picture P4 is skipped, the reproduction of other pictures is performed normally. Therefore, when the image data whose picture is skipped is composed of an I picture and a P picture like the image data B (when no B picture exists), the last P picture of the corresponding GOP, that is, the next GOP The P picture coded immediately before the I picture is skipped.

【0032】ステップS3において、Pピクチャが存在
しないと判定された場合、ステップS6に進み、読み出
し制御回路8は、対応するIピクチャをスキップする。
例えば、Iピクチャだけからなる画像データの符号化デ
ータがFIFO1に供給され、記憶されている場合におい
て、ピクチャをスキップする要求がなされると、Bピク
チャが存在しないと判定され(ステップS1)、Pピク
チャが存在しないと判定され(ステップS3)、そして
対応するIピクチャがスキップされる(ステップS
6)。
If it is determined in step S3 that there is no P picture, the process proceeds to step S6, and the read control circuit 8 skips the corresponding I picture.
For example, if encoded data of image data consisting of only I pictures is supplied to the FIFO 1 and stored, and if a request to skip a picture is made, it is determined that there is no B picture (step S1), and P It is determined that no picture exists (step S3), and the corresponding I picture is skipped (step S3).
6).

【0033】以上のようにして、画像データA、画像デ
ータB、またIピクチャからなる画像データの符号化デ
ータは、ピクチャがスキップされても、再生は正常に行
われる。
As described above, the encoded data of the image data composed of the image data A, the image data B, and the I picture is normally reproduced even if the picture is skipped.

【0034】[0034]

【発明が解決しようとする課題】次に、例えば、図10
に示した画像データBが変化し、例えば、図12に示す
ように、GOPB−3に7つのピクチャが含まれ、それがF
IFO1に供給され、記憶されている状態において、そのG
OPB−3のIピクチャI1が、可変長復号回路2により
読み出されるタイミングで、ピクチャをスキップする要
求がされたとする。
Next, for example, FIG.
Is changed, for example, as shown in FIG. 12, GOPB-3 includes seven pictures,
In the state that is supplied to IFO1 and stored, the G
It is assumed that a request to skip a picture is made at the timing when the I picture I1 of OPB-3 is read out by the variable length decoding circuit 2.

【0035】この場合、ステップS1でBピクチャが存
在しないと判定され、ステップS3でPピクチャが存在
すると判定され、ステップS4に進む。
In this case, it is determined in step S1 that no B picture exists, and in step S3 it is determined that a P picture exists, and the process proceeds to step S4.

【0036】ステップS4において、GOPB−1,−2
が参照され、GOPB−3のピクチャの数が推定される。G
OPB−1,−2のピクチャの数よりGOPB−3が5ピク
チャから構成されていると推定され、ステップS5にお
いて、GOPB−3の第5番目のPピクチャP4がスキップ
される。
In step S4, GOPB-1, -2
Is referred, and the number of pictures of GOPB-3 is estimated. G
It is estimated from the number of OPB-1 and -2 pictures that GOPB-3 is composed of five pictures, and in step S5, the fifth P picture P4 of GOPB-3 is skipped.

【0037】しかしながら、GOPB−3のPピクチャP4
は、GOPB−3の最後のフレームでなく、すなわち、次
のGOPB−4のIピクチャの直前に符号化されたPピク
チャではないので、それは、図13に示すように、第6
番目のPピクチャP5が再生されるとき参照される。こ
のため、PピクチャP4がスキップされ、再生されない
場合、PピクチャP5の再生が正常に行われなくなる。
However, the P picture P4 of GOPB-3
Is not the last frame of GOPB-3, that is, the P-picture coded immediately before the I-picture of the next GOPB-4, so that as shown in FIG.
It is referred to when the Pth picture P5 is reproduced. Therefore, when the P picture P4 is skipped and not reproduced, the P picture P5 is not normally reproduced.

【0038】また、例えば、図14に示すように、GOP
C−1は4ピクチャ、GOPC−2は7ピクチャ、そしてG
OPC−3が5ピクチャを有し、GOPCのピクチャの数が
一定でない画像データCの符号化データがFIFO1に供給
され、記憶されている状態において、そのGOPC−3の
IピクチャI1が可変長復号回路2により読み出される
タイミングで、ピクチャをスキップする要求がされたと
する。この場合、ステップS1でBピクチャが存在しな
いと判定され、ステップS3でPピクチャが存在すると
判定され、ステップS4に進む。
For example, as shown in FIG.
C-1 has 4 pictures, GOPC-2 has 7 pictures, and G
In a state where the OPC-3 has five pictures and the coded data of the image data C in which the number of pictures of the GOPC is not constant is supplied to the FIFO 1 and stored, the I picture I1 of the GOPC-3 is variable-length decoded. It is assumed that a request to skip a picture is made at the timing of reading by the circuit 2. In this case, it is determined in step S1 that there is no B picture, in step S3 it is determined that there is a P picture, and the process proceeds to step S4.

【0039】ステップS4において、GOPC−3より時
間的に過去の、例えば、GOPC−1およびGOPC−2の2
つのGOPCが参照され、GOPC−3のピクチャの数が推定
されるが、この場合、GOPC−1とGOPC−2のそれぞれ
のピクチャの数が異なるので、結局、GOPC−3のピク
チャの数が推定されず、ピクチャはスキップされない。
In step S4, two times earlier than GOPC-3, for example, GOPC-1 and GOPC-2.
Two GOPCs are referred to, and the number of pictures of GOPC-3 is estimated. In this case, since the numbers of pictures of GOPC-1 and GOPC-2 are different, the number of pictures of GOPC-3 is eventually estimated. No pictures are skipped.

【0040】このように、従来の画像復号装置10にお
いて、入力される画像データのGOPが、Bピクチャを含
まず、GOPを構成するピクチャの数が一定でない場合、
その符号化データの再生が正常に行われるようにして、
ピクチャをスキップすることができない課題があった。
As described above, in the conventional image decoding apparatus 10, when the GOP of the input image data does not include the B picture and the number of pictures constituting the GOP is not constant,
So that the reproduction of the encoded data is performed normally,
There was a problem that a picture cannot be skipped.

【0041】本発明はこのような状況に鑑みてなされた
ものであり、正常に再生が行われるようにして、ピクチ
ャをスキップすることができるようにするものである。
The present invention has been made in view of such circumstances, and aims to enable normal reproduction and skip a picture.

【0042】[0042]

【課題を解決するための手段】請求項1に記載の画像復
号装置は、符号化ピクチャと、制御データを記憶する記
憶手段と、記憶手段に記憶されている符号化ピクチャの
うち、削除されても符号化データの再生が正常に行われ
る符号化ピクチャを検出する検出手段と、検出手段によ
り検出された符号化ピクチャに上書きして、符号化ピク
チャに続く他の符号化ピクチャまたは制御データが記憶
されるように、記憶手段を制御する制御手段とを備える
ことを特徴とする。
According to a first aspect of the present invention, there is provided an image decoding apparatus comprising: a coded picture; a storage unit for storing control data; and a coded picture stored in the storage unit. Detecting means for detecting a coded picture in which the reproduction of coded data is normally performed, and storing another coded picture or control data following the coded picture by overwriting the coded picture detected by the detecting means. Control means for controlling the storage means.

【0043】請求項2に記載の画像復号方法は、符号化
ピクチャと、制御データを記憶する記憶ステップと、記
憶ステップで記憶された符号化ピクチャのうち、削除さ
れても符号化データの再生が正常に行われる符号化ピク
チャを検出する検出ステップと、検出ステップで検出さ
れた符号化ピクチャに上書きして、符号化ピクチャに続
く他の符号化ピクチャまたは制御データが記憶されるよ
うに、記憶ステップでの記憶を制御する制御ステップと
を含むことを特徴とする。
According to a second aspect of the present invention, there is provided the image decoding method, wherein the storage step of storing the coded picture and the control data; and the reproduction of the coded data even if the coded picture stored in the storage step is deleted. A detecting step of detecting a coded picture that is normally performed; and a storing step of overwriting the coded picture detected in the detecting step so that another coded picture or control data following the coded picture is stored. And a control step of controlling the storage in step (a).

【0044】請求項3に記載の提供媒体は、符号化ピク
チャと、制御データを記憶する記憶ステップと、記憶ス
テップで記憶された符号化ピクチャのうち、削除されて
も符号化データの再生が正常に行われる符号化ピクチャ
を検出する検出ステップと、検出ステップで検出された
符号化ピクチャに上書きして、符号化ピクチャに続く他
の符号化ピクチャまたは制御データが記憶されるよう
に、記憶ステップでの記憶を制御する制御ステップとを
含む処理を実行させるコンピュータが読み取り可能なプ
ログラムを提供することを特徴とする。
According to a third aspect of the present invention, there is provided the recording medium, wherein the encoded picture, the storage step for storing the control data, and the encoded picture stored in the storage step are normally reproduced even if the encoded picture is deleted. A detecting step of detecting a coded picture performed in the detecting step, and a storing step of overwriting the coded picture detected in the detecting step to store another coded picture or control data following the coded picture. And a control step of controlling the storage of a computer.

【0045】請求項1に記載の画像復号装置、請求項2
に記載の画像復号方法、および請求項3に記載の提供媒
体においては、符号化ピクチャと、制御データが記憶さ
れ、記憶された符号化ピクチャのうち、削除されても符
号化データの再生が正常に行われる符号化ピクチャが検
出され、され検出された符号化ピクチャに上書きして、
符号化ピクチャに続く他の符号化ピクチャまたは制御デ
ータが記憶されるように、記憶が制御される。
An image decoding apparatus according to claim 1 and claim 2.
In the image decoding method described in the item (1) and the providing medium described in the item (3), the encoded picture and the control data are stored, and the reproduction of the encoded data is normal even if the stored encoded picture is deleted. Coded picture to be performed is detected, and the detected coded picture is overwritten,
The storage is controlled such that another coded picture or control data following the coded picture is stored.

【0046】[0046]

【発明の実施の形態】以下に本発明の実施の形態を説明
するが、特許請求の範囲に記載の発明の各手段と以下の
実施の形態との対応関係を明らかにするために、各手段
の後の括弧内に、対応する実施の形態(但し一例)を付
加して本発明の特徴を記述すると、次のようになる。但
し勿論この記載は、各手段を記載したものに限定するこ
とを意味するものではない。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below. In order to clarify the correspondence between each means of the invention described in the claims and the following embodiments, each means is described. When the features of the present invention are described by adding the corresponding embodiment (however, an example) in parentheses after the parentheses, the result is as follows. However, of course, this description does not mean that each means is limited to those described.

【0047】請求項1に記載の画像復号装置は、符号化
ピクチャと、制御データを記憶する記憶手段(例えば、
図1の上書きアドレス記憶部21A)と、記憶手段に記
憶されている符号化ピクチャのうち、削除されても符号
化データの再生が正常に行われる符号化ピクチャを検出
する検出手段(例えば、図1のスキップ制御回路22)
と、検出手段により検出された符号化ピクチャに上書き
して、符号化ピクチャに続く他の符号化ピクチャまたは
制御データが記憶されるように、記憶手段を制御する制
御手段(例えば、図1の書き込み制御回路21)とを備
えることを特徴とする。
According to the image decoding apparatus of the present invention, a storage means for storing an encoded picture and control data (for example,
The overwriting address storage unit 21A in FIG. 1 and a detection unit (for example, FIG. 1) for detecting an encoded picture from which the encoded data can be normally reproduced even if deleted from among the encoded pictures stored in the storage unit. 1 skip control circuit 22)
And control means for controlling the storage means so as to overwrite the coded picture detected by the detection means and store another coded picture or control data following the coded picture (for example, the writing means shown in FIG. 1). And a control circuit 21).

【0048】図1は、本発明を適用した画像復号装置1
00の構成例を表している。なお、図中、図6における
場合と対応する部分においては、同一の符号を付してあ
り、以下では、その説明は、適宜省略する。すなわち、
この例においては、読み出し制御回路8が削除され、書
き込み制御回路21とスキップ制御回路22が、新たに
設けられている。
FIG. 1 shows an image decoding apparatus 1 to which the present invention is applied.
00 represents a configuration example. In the figure, portions corresponding to those in FIG. 6 are denoted by the same reference numerals, and description thereof will be omitted below as appropriate. That is,
In this example, the read control circuit 8 is deleted, and a write control circuit 21 and a skip control circuit 22 are newly provided.

【0049】書き込み制御回路21は、スキップ制御回
路22により制御され、上書きアドレス記憶部21Aを
内蔵しており、それに記憶されているアドレスから、供
給される符号化データを、FIFO1に書き込むようになさ
れている。
The write control circuit 21 is controlled by the skip control circuit 22, has a built-in overwrite address storage section 21A, and writes supplied encoded data to the FIFO 1 from the address stored therein. ing.

【0050】スキップ制御回路22は、CPU9からの指
令に従って、ピクチャをスキップする処理を実行するよ
うになされている。
The skip control circuit 22 executes a process of skipping a picture according to a command from the CPU 9.

【0051】次に、ピクチャをスキップする場合の処理
手順を、図2のフローチャートを参照して説明する。
Next, the procedure for skipping a picture will be described with reference to the flowchart of FIG.

【0052】ピクチャをスキップする要求がされ、CPU
9が、その旨をスキップ制御回路22に通知すると、ス
テップS1において、スキップ制御回路22は、このと
き供給されるデータが書き込まれるFIFO1上のアドレス
(例えば、先頭アドレス)を検出し、それを、書き込み
制御回路21が内蔵する上書きアドレス記憶部21Aに
記憶させる。
When a request to skip a picture is made, the CPU
9 notifies the skip control circuit 22 of the fact, in step S1, the skip control circuit 22 detects an address (for example, a head address) on the FIFO 1 to which the data supplied at this time is written, and The data is stored in the overwriting address storage unit 21A incorporated in the write control circuit 21.

【0053】ステップS2において、スキップ制御回路
22は、上書きアドレス記憶部21Aに記憶されている
アドレスに書き込まれるデータのスタートコードを参照
し、そのスタートコードを有するデータが、シーケンス
ヘッダやGOPヘッダの制御データか、またはピクチャで
あるか否かを判定する。
In step S2, the skip control circuit 22 refers to the start code of the data written to the address stored in the overwrite address storage section 21A, and the data having the start code is used to control the sequence header and the GOP header. It is determined whether it is data or a picture.

【0054】シーケンスヘッダ、GOPヘッダ、およびピ
クチャのそれぞれの先頭には、バイト単位で配列された
(バイトアラインされた)、32ビットからなるスター
トコードが設けられている。なお、ピクチャも、ピクチ
ャヘッダを有しており、ピクチャのスタートコードは、
そのピクチャヘッダに設定されている。
At the head of each of the sequence header, the GOP header, and the picture, there is provided a 32-bit start code arranged in byte units (byte-aligned). Note that a picture also has a picture header, and the start code of the picture is
It is set in the picture header.

【0055】ステップS2で制御データではないと判定
された場合、すなわち、ピクチャであると判定された場
合、ステップS3に進み、スキップ制御回路22は、そ
のピクチャのピクチャタイプがBピクチャであるか否か
を判定する。ピクチャヘッダの中のピクチャコーディン
グタイプと称される領域には、ピクチャタイプを示す情
報が格納されているので、スキップ制御回路22は、そ
のピクチャコーディングタイプを参照し、ピクチャタイ
プがBピクチャであるか否かを判定する。
If it is determined in step S2 that the picture is not control data, that is, if it is determined that the picture is a picture, the process proceeds to step S3, and the skip control circuit 22 determines whether the picture type of the picture is a B picture. Is determined. Since information indicating the picture type is stored in an area called a picture coding type in the picture header, the skip control circuit 22 refers to the picture coding type and determines whether the picture type is a B picture. Determine whether or not.

【0056】ステップS3において、Bピクチャである
と判定された場合、ステップS4に進み、スキップ制御
回路22は、FIFO1に供給される次のデータのスタート
コードを検出するまで待機する。すなわち、この間に、
ステップS3で認識されたBピクチャは、FIFO1に書き
込まれる。
If it is determined in step S3 that the picture is a B picture, the flow advances to step S4, and the skip control circuit 22 waits until the start code of the next data supplied to the FIFO 1 is detected. That is, during this time,
The B picture recognized in step S3 is written to FIFO1.

【0057】ステップS4において、スキップ制御回路
22は、FIFO1に供給される次のデータのスタートコー
ドを検出すると、ステップS5に進み、書き込み制御回
路21を制御し、検出したスタートコードを有するデー
タを、上書きアドレス記憶部21Aに記憶されているア
ドレスから、FIFO1に書き込ませる。すなわち、ステッ
プS4の処理の間に、FIFO1に書き込まれたBピクチャ
は上書きされる。これにより、Bピクチャは、FIFO1か
ら削除され、スキップされる。
In step S4, when the skip control circuit 22 detects the start code of the next data supplied to the FIFO 1, the process proceeds to step S5, where the skip control circuit 22 controls the write control circuit 21 to store the data having the detected start code. The data is written to the FIFO 1 from the address stored in the overwriting address storage unit 21A. That is, the B picture written in the FIFO 1 is overwritten during the processing in step S4. As a result, the B picture is deleted from the FIFO 1 and skipped.

【0058】次に、上述したステップS1乃至S4にお
ける処理を、図3を参照して、具体的に説明する。な
お、ステップS2において、制御データであると判定さ
れた場合、またはステップS3において、Bピクチャで
はないと判定された場合、ステップS6に進むが、それ
以降の処理については後述する。
Next, the processing in steps S1 to S4 described above will be specifically described with reference to FIG. If it is determined in step S2 that the data is control data, or if it is determined in step S3 that the data is not a B picture, the process proceeds to step S6, but the subsequent processes will be described later.

【0059】図3(A)は、供給される所定の符号化デ
ータのGOP−iのPピクチャPA,PBがFIFO1に書き込
まれ、次に、BピクチャBCがFIFO1に書き込まれよう
とされている様子を表している。FIFO1がこのような状
態であるとき、スキップ制御回路22が、ピクチャをス
キップする指令をCPU9より受け取ると、BピクチャBC
が書き込まれるFIFO1のアドレスCを検出し、それを書
き込み制御回路21の上書きアドレス記憶部21Aに記
憶させる(ステップS1)。
In FIG. 3A, P pictures PA and PB of GOP-i of the supplied predetermined encoded data are written to FIFO1, and then a B picture BC is about to be written to FIFO1. It shows the situation. When the skip control circuit 22 receives a command to skip a picture from the CPU 9 when the FIFO 1 is in such a state, the B picture BC
Is detected, and is stored in the overwriting address storage unit 21A of the write control circuit 21 (step S1).

【0060】次に、スキップ制御回路22は、FIFO1に
書き込まれる次のデータが制御データではないと判定し
(ステップS2)、BピクチャBCであると判定すると
(ステップS3)、BピクチャBCの次に書き込まれる
BピクチャBDのスタートコードがFIFO1に供給される
まで待機する(ステップS4)。この間に、図3(B)
に示すように、BピクチャBCは、アドレスCからFIFO
1に書き込まれる。
Next, the skip control circuit 22 determines that the next data to be written into the FIFO 1 is not control data (step S2), and determines that it is a B picture BC (step S3). (Step S4) until the start code of the B picture BD written to the FIFO is supplied to the FIFO1. During this time, FIG.
As shown in the figure, the B picture BC is
Written to 1.

【0061】スキップ制御回路22は、BピクチャBD
のスタートコードを検出すると、書き込み制御回路21
を制御し、図3(C)に示すように、BピクチャBD
を、上書きアドレス記憶部21Aに記憶されているアド
レスCから、FIFO1に書き込ませる(ステップS5)。
これにより、先にFIFO1に書き込まれたBピクチャBC
は、BピクチャBDにより上書きされ、FIFO1から削除
される。BピクチャBD以降のデータ(例えば、Bピク
チャBE)は、FIFO1の、BピクチャBDに続くアドレス
Dから書き込まれる。
The skip control circuit 22 outputs a B picture BD
Is detected, the write control circuit 21
To control the B picture BD as shown in FIG.
From the address C stored in the overwriting address storage unit 21A into the FIFO 1 (step S5).
As a result, the B picture BC
Is overwritten by the B picture BD and deleted from the FIFO1. Data subsequent to the B picture BD (for example, the B picture BE) is written from the FIFO 1 at the address D following the B picture BD.

【0062】このように、他のピクチャが再生されると
き参照されないBピクチャをFIFO1から削除するように
したので、Bピクチャがスキップされる。
As described above, since the B picture which is not referred to when another picture is reproduced is deleted from the FIFO 1, the B picture is skipped.

【0063】図2に戻り、ステップS2において、FIFO
1に書き込まれる次のデータが制御データではないと判
定された場合、またステップS3において、FIFO1に書
き込まれる次のピクチャがBピクチャではないと判定さ
れた場合、ステップS6に進み、スキップ制御回路22
は、FIFO1に供給される次のデータのスタートコードを
検出するまで待機する。すなわち、この間に、FIFO1に
供給される次のデータが、FIFO1に書き込まれる。
Returning to FIG. 2, in step S2, the FIFO
If it is determined that the next data to be written to No. 1 is not control data, or if it is determined in step S3 that the next picture to be written to FIFO1 is not a B picture, the process proceeds to step S6, and the skip control circuit 22
Waits until the start code of the next data supplied to the FIFO 1 is detected. That is, during this time, the next data supplied to FIFO1 is written to FIFO1.

【0064】ステップS6において、スキップ制御回路
22は、FIFO1に供給される次のデータのスタートコー
ドを検出すると、ステップS7に進み、検出したスター
トコードを参照し、そのデータが、制御データか、また
はピクチャであるかを判定する。
In step S6, when the skip control circuit 22 detects the start code of the next data supplied to the FIFO 1, the process proceeds to step S7, and refers to the detected start code, and determines whether the data is control data or It is determined whether the picture is a picture.

【0065】ステップS7で制御データではないと判定
された場合、すなわち、ピクチャであると判定された場
合、ステップS8に進み、スキップ制御回路22は、そ
のピクチャのピクチャコーディングタイプを参照し、ピ
クチャタイプがIピクチャであるか否かを判定する。
If it is determined in step S7 that the data is not control data, that is, if it is determined that the data is a picture, the process proceeds to step S8, where the skip control circuit 22 refers to the picture coding type of the picture, Is an I-picture.

【0066】ステップS7において制御データであると
判定された場合、またはステップS8において、Iピク
チャであると判定された場合、ステップS5に進み、ス
キップ制御回路22は、ステップS6で検出したスター
トコードを有する制御データまたはIピクチャを、上書
きアドレス記憶部21Aに記憶されているアドレスか
ら、FIFO1に書き込ませる。すなわち、ステップS6に
おける処理の間に、FIFO1に書き込まれたデータは上書
され、FIFO1から削除される。
If it is determined in step S7 that the data is control data, or if it is determined in step S8 that the data is an I-picture, the process proceeds to step S5, where the skip control circuit 22 determines the start code detected in step S6. The stored control data or I picture is written to the FIFO 1 from the address stored in the overwrite address storage unit 21A. That is, during the process in step S6, the data written to FIFO1 is overwritten and deleted from FIFO1.

【0067】次に、上述したステップS6乃至S8にお
ける処理を、図4を参照して具体的に説明する。なお、
ステップS8で、FIFO1に書き込まれる次のピクチャが
Iピクチャではないと判定された場合、ステップS9に
進むが、それ以降の処理については、後述する。
Next, the processing in steps S6 to S8 will be specifically described with reference to FIG. In addition,
If it is determined in step S8 that the next picture to be written to the FIFO 1 is not an I picture, the process proceeds to step S9, but the subsequent processes will be described later.

【0068】図4(A)は、供給される所定の符号化デ
ータのGOP−iのPピクチャPA,PB、BピクチャBC
が、FIFO1に書き込まれ、次に、PピクチャDが書き込
まれようとされている様子を表している。FIFO1がこの
ような状態であるとき、ピクチャをスキップする処理が
開始されたとすると、この場合、上書きアドレス記憶部
21Aには、アドレスKが記憶される(ステップS
1)。スキップ制御回路22は、FIFO1に書き込まれる
次のデータがPピクチャPDであることから、それが制
御データではないと判定し(ステップS2)、Bピクチ
ャでもないと判定し(ステップS3)、その後、次のデ
ータであるIピクチャIEのスタートコードを検出する
まで待機する(ステップS6)。その間に、図4(B)
に示すように、PピクチャPDが、アドレスKからFIFO
1に書き込まれる。
FIG. 4A shows P pictures PA, PB, B picture BC of GOP-i of the supplied predetermined encoded data.
Is written to the FIFO1, and then the P picture D is about to be written. If the process of skipping a picture is started while the FIFO 1 is in such a state, in this case, the address K is stored in the overwrite address storage unit 21A (step S).
1). The skip control circuit 22 determines that the next data to be written to the FIFO 1 is not control data (step S2) because it is a P picture PD (step S2), and determines that it is not a B picture (step S3). The process waits until the start code of the I picture IE as the next data is detected (step S6). Meanwhile, FIG. 4 (B)
As shown in FIG.
Written to 1.

【0069】スキップ制御回路22は、IピクチャIE
のスタートコードを検出すると、PピクチャPDの次に
供給されるデータが制御データではないと判定し(ステ
ップS7)、Iピクチャであると判定する(ステップS
8)。そこで、スキップ制御回路22は、書き込み制御
回路21を制御し、図4(C)に示すように、Iピクチ
ャIEを、上書きアドレス記憶部21Aに記憶されてい
るアドレスKから、FIFO1に書き込ませる(ステップS
5)。これにより、先にFIFO1に書き込まれているPピ
クチャPDは、IピクチャIEにより上書きされ、FIFO1
から削除される。なお、IピクチャIE以降のデータ
(例えば、PピクチャPF)は、FIFO1の、Iピクチャ
IEに続くアドレスLから書き込まれる。
The skip control circuit 22 outputs the I picture IE
Is detected, the data supplied next to the P picture PD is determined not to be control data (step S7), and is determined to be an I picture (step S7).
8). Therefore, the skip control circuit 22 controls the write control circuit 21 to write the I picture IE into the FIFO 1 from the address K stored in the overwrite address storage unit 21A, as shown in FIG. 4C. Step S
5). As a result, the P picture PD previously written in the FIFO 1 is overwritten by the I picture IE,
Removed from. It should be noted that data subsequent to the I picture IE (for example, a P picture PF) is written from an address L of the FIFO 1 following the I picture IE.

【0070】この例においては、PピクチャPDに続い
て、IピクチャIEがFIFO1に供給されるようにした
が、PピクチャPDに続いてシーケンスヘッダまたはGOP
ヘッダの制御データが供給された場合、同様に、Pピク
チャPDは、その制御データにより上書きされる。例え
ば、GOPヘッダの場合、それに続いて、必ずIピクチャ
が供給され、またシーケンスヘッダの場合、それに続く
GOPヘッダに続いて、IピクチャがFIFO1に供給され
る。すなわち、いずれの場合においても、Iピクチャの
直前に符号化されて、他のピクチャが再生されるとき参
照されない、PピクチャPDがFIFO1からスキップされ
る。
In this example, the I picture IE is supplied to the FIFO 1 following the P picture PD, but the sequence header or the GOP
When the header control data is supplied, the P picture PD is similarly overwritten by the control data. For example, in the case of a GOP header, an I picture is always supplied, and in the case of a sequence header,
Following the GOP header, the I picture is supplied to FIFO1. That is, in any case, the P picture PD, which is coded immediately before the I picture and is not referred to when another picture is reproduced, is skipped from the FIFO1.

【0071】図2に戻り、ステップS8で、FIFO1に書
き込まれる次のピクチャがIピクチャではないと判定さ
れた場合、ステップS9に進む。
Returning to FIG. 2, when it is determined in step S8 that the next picture to be written to the FIFO 1 is not an I picture, the process proceeds to step S9.

【0072】ステップS9において、スキップ制御回路
22は、ステップS6で検出したスタートコードを有す
るピクチャが書き込まれる、FIFO1のアドレスを検出
し、それを、先に記憶されているアドレスに代えて、上
書きアドレス記憶部21Aに記憶させる。その後、ステ
ップS3に戻る。
In step S9, the skip control circuit 22 detects the address of the FIFO 1 where the picture having the start code detected in step S6 is written, and replaces it with the overwritten address in place of the previously stored address. It is stored in the storage unit 21A. Thereafter, the process returns to step S3.

【0073】次に、上述したステップS9の処理を、図
5を参照して具体的に説明する。
Next, the processing in step S9 described above will be specifically described with reference to FIG.

【0074】図5(A)は、供給される所定の符号化デ
ータのGOP−iのPピクチャPA,PBが書き込まれ、次
に、PピクチャPCがFIFO1に書き込まれようとされて
いる様子を表している。FIFO1がこのような状態である
とき、ピクチャをスキップする処理が開始されたとする
と、上書きアドレス記憶部21Aには、アドレスRが記
憶される(ステップS1)。スキップ制御回路22は、
FIFO1に書き込まれる次のデータがPピクチャPCであ
ることから、それが制御データではないと判定し(ステ
ップS2)、そしてBピクチャでもないと判定し(ステ
ップS3)、そしてPピクチャPCのスタートコードを
検出するまで待機する(ステップS6)。その間に、図
5(B)に示すように、PピクチャPCは、アドレスR
からFIFO1に書き込まれる。
FIG. 5A shows a state in which P pictures PA and PB of GOP-i of the supplied predetermined coded data are written, and then P picture PC is about to be written to FIFO1. Represents. If the process of skipping a picture is started while the FIFO1 is in such a state, the address R is stored in the overwrite address storage unit 21A (step S1). The skip control circuit 22
Since the next data to be written to the FIFO 1 is the P picture PC, it is determined that it is not control data (step S2), and it is also determined that it is not a B picture (step S3), and the start code of the P picture PC Is detected (step S6). In the meantime, as shown in FIG. 5B, the P picture PC has the address R
Is written to FIFO1.

【0075】スキップ制御回路22は、PピクチャPC
の次に供給されるPピクチャPDのスタートコードを検
出すると、それが制御データではないと判定し(ステッ
プS7)、またIピクチャでもないと判定する(ステッ
プS8)。そこで、スキップ制御回路22は、Pピクチ
ャPDが書き込まれるFIFO1のアドレスSを検出し、そ
れを、先に記憶されているアドレスRに代えて、上書き
アドレス記憶部21Aに記憶させ(ステップS9)、ス
テップS3に戻る。
The skip control circuit 22 calculates the P picture PC
When the start code of the P picture PD supplied next to is detected, it is determined that the start code is not control data (step S7), and that it is not an I picture (step S8). Therefore, the skip control circuit 22 detects the address S of the FIFO 1 where the P picture PD is written, and stores it in the overwriting address storage unit 21A instead of the previously stored address R (step S9). It returns to step S3.

【0076】上書きアドレス記憶部21Aに記憶される
データは、PピクチャPDであることから、スキップ制
御回路22は、それがBピクチャではないと判定し(ス
テップS3)、次にFIFO1に書き込まれるGOPヘッダの
スタートコードが検出するまで待機する(ステップS
6)。この間に、PピクチャPDは、図5(C)に示す
ように、アドレスSからFIFO1に書き込まれる。
Since the data stored in the overwriting address storage unit 21A is a P picture PD, the skip control circuit 22 determines that it is not a B picture (step S3), and the GOP written to the FIFO1 next. Wait until the start code of the header is detected (step S
6). During this time, the P picture PD is written from the address S to the FIFO 1 as shown in FIG.

【0077】次に、スキップ制御回路22は、FIFO1に
書き込まれたPピクチャPDの次のデータがGOPヘッダで
あることから、それが制御データであると判定し(ステ
ップS7)、そのGOPヘッダを、図5(D)に示すよう
に、上書きアドレス記憶部21Aに記憶されているアド
レスSから、FIFO1に書き込ませる(ステップS5)。
これにより、PピクチャPDは、GOFヘッダにより上書き
されて、FIFO1から削除される。PピクチャPDは、I
ピクチャIEの直前のPピクチャであり、他のピクチャ
が再生されるとき参照されない。
Next, since the next data of the P picture PD written in the FIFO 1 is the GOP header, the skip control circuit 22 determines that it is the control data (step S7), and As shown in FIG. 5D, the address S stored in the overwriting address storage unit 21A is written into the FIFO 1 (step S5).
As a result, the P picture PD is overwritten by the GOF header and deleted from the FIFO1. P picture PD is I
This is a P picture immediately before the picture IE, and is not referred to when another picture is reproduced.

【0078】以上のように、GOP−i内で他のピクチャ
が再生されるとき参照されないピクチャをスキップする
ようにしたので、例えば、図12の例の場合のようにGO
Pを構成するピクチャの数が変化した場合でも、再生が
正常に行われるようにして、ピクチャをスキップするこ
とができる。例えば、GOPB−3のIピクチャI1が可変
長復号回路2に読み出されるタイミングで、ピクチャを
スキップする要求がされても、PピクチャP6がスキッ
プされる。
As described above, a picture which is not referred to when another picture is reproduced in GOP-i is skipped. For example, as shown in FIG.
Even when the number of pictures constituting P changes, the picture can be skipped so that the reproduction is performed normally. For example, even when a request to skip a picture is made at the timing when the I picture I1 of GOPB-3 is read out to the variable length decoding circuit 2, the P picture P6 is skipped.

【0079】また、GOPのピクチャの数が推定されない
ので、例えば、図13の例の場合のようにGOPを構成す
るピクチャの数が一定でない場合においても、ピクチャ
がスキップされる。この場合においても、GOPCの最後
のPピクチャがスキップされるので、再生が正常に行わ
れる。
Further, since the number of pictures of the GOP is not estimated, the picture is skipped even when the number of pictures constituting the GOP is not constant as in the example of FIG. Also in this case, since the last P picture of the GOPC is skipped, the reproduction is normally performed.

【0080】なお、上記したような処理を行うコンピュ
ータプログラムをユーザに提供する提供媒体としては、
磁気ディスク、CD-ROM、固体メモリなどの記録媒体の
他、ネットワーク、衛星などの通信媒体を利用すること
ができる。
[0103] The providing medium for providing the user with the computer program for performing the above-described processing includes:
In addition to recording media such as magnetic disks, CD-ROMs, and solid-state memories, communication media such as networks and satellites can be used.

【0081】[0081]

【発明の効果】請求項1に記載の画像復号装置、請求項
2に記載の画像復号方法、および請求項3に記載の提供
媒体によれば、削除されても符号化データの再生が正常
に行われる符号化ピクチャを検出し、それに上書きして
他のピクチャを記憶させるようにしたので、符号化デー
タの再生が正常に行われるようにして、符号化ピクチャ
を削除することができる。
According to the image decoding apparatus according to the first aspect, the image decoding method according to the second aspect, and the providing medium according to the third aspect, even if deleted, the encoded data can be normally reproduced. Since the coded picture to be performed is detected, and another picture is stored by overwriting the coded picture, the coded picture can be deleted so that the coded data is normally reproduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の画像復号装置100の構成例を表すブ
ロック図である。
FIG. 1 is a block diagram illustrating a configuration example of an image decoding device 100 according to the present invention.

【図2】ピクチャをスキップする場合の処理手順を説明
フローチャートである。
FIG. 2 is a flowchart illustrating a processing procedure when a picture is skipped.

【図3】ピクチャがスキップされる様子を表す図であ
る。
FIG. 3 is a diagram illustrating how a picture is skipped.

【図4】ピクチャがスキップされる様子を表す他の図で
ある。
FIG. 4 is another diagram showing how a picture is skipped.

【図5】ピクチャがスキップされる様子を表す他の図で
ある。
FIG. 5 is another diagram showing how a picture is skipped.

【図6】従来の画像復号装置10の構成例を表すブロッ
ク図である。
FIG. 6 is a block diagram illustrating a configuration example of a conventional image decoding device 10.

【図7】画像データAの構成を表す図である。FIG. 7 is a diagram illustrating a configuration of image data A.

【図8】画像データAの符号化処理を説明する図であ
る。
FIG. 8 is a diagram illustrating an encoding process of image data A.

【図9】ピクチャをスキップする場合の処理手順を説明
するフローチャートである。
FIG. 9 is a flowchart illustrating a processing procedure when a picture is skipped.

【図10】画像データBの構成を表す図である。FIG. 10 is a diagram illustrating a configuration of image data B.

【図11】画像データBの符号化処理を説明する図であ
る。
FIG. 11 is a diagram illustrating an encoding process of image data B.

【図12】ピクチャの数が変化した画像データBの構成
を表す図である。
FIG. 12 is a diagram illustrating a configuration of image data B in which the number of pictures has changed.

【図13】図13の画像データBの符号化処理を説明す
る図である。
FIG. 13 is a diagram illustrating an encoding process of image data B in FIG. 13;

【図14】画像データCの構成を表す図である。FIG. 14 is a diagram illustrating a configuration of image data C.

【符号の説明】[Explanation of symbols]

1 FIFO, 2 可変長復号回路, 3 逆量子化回
路, 4 逆DCT変換回路, 5 加算回路, 6
動く補償予測回路, 7 フレームメモリ, 8読み出
し制御回路, 9 CPU, 10 画像復号装置, 2
1 書き込み制御回路, 21A 上書きアドレス記憶
部, 22 スキップ制御回路, 100 画像復号装
1 FIFO, 2 variable length decoding circuit, 3 inverse quantization circuit, 4 inverse DCT conversion circuit, 5 addition circuit, 6
Motion compensation prediction circuit, 7 frame memory, 8 read control circuit, 9 CPU, 10 image decoding device, 2
REFERENCE SIGNS LIST 1 write control circuit, 21A overwrite address storage unit, 22 skip control circuit, 100 image decoding device

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C053 FA21 FA23 GB04 GB05 GB06 GB08 GB38 KA01 KA03 KA22 KA24 LA06 5C059 KK15 MA00 MA04 MA05 MA14 MC11 ME01 PP04 SS20 TA07 TB04 TC41 TC42 TC43 TD11 UA05 UA31 UA32  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5C053 FA21 FA23 GB04 GB05 GB06 GB08 GB38 KA01 KA03 KA22 KA24 LA06 5C059 KK15 MA00 MA04 MA05 MA14 MC11 ME01 PP04 SS20 TA07 TB04 TC41 TC42 TC43 TD11 UA05 UA31 UA31 UA32

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 画像を構成する複数のピクチャが、互い
に参照されて符号化された符号化ピクチャと、所定の制
御データからなる符号化データを復号する画像復号装置
において、 前記符号化ピクチャと、前記制御データを記憶する記憶
手段と、 前記記憶手段に記憶されている前記符号化ピクチャのう
ち、削除されても前記符号化データの再生が正常に行わ
れる符号化ピクチャを検出する検出手段と、 前記検出手段により検出された前記符号化ピクチャに上
書きして、前記符号化ピクチャに続く他の符号化ピクチ
ャまたは制御データが記憶されるように、前記記憶手段
を制御する制御手段とを備えることを特徴とする画像復
号装置。
1. An image decoding apparatus for decoding an encoded picture in which a plurality of pictures constituting an image are encoded with reference to each other, and an encoded data including predetermined control data, wherein: A storage unit that stores the control data, and a detection unit that detects an encoded picture in which the reproduction of the encoded data is normally performed even if deleted, among the encoded pictures stored in the storage unit. Control means for controlling the storage means so as to overwrite the coded picture detected by the detection means and store another coded picture or control data following the coded picture. An image decoding device characterized by the following.
【請求項2】 画像を構成する複数のピクチャが、互い
に参照されて符号化された符号化ピクチャと、所定の制
御データからなる符号化データを復号する画像復号方法
において、 前記符号化ピクチャと、前記制御データを記憶する記憶
ステップと、 前記記憶ステップで記憶された前記符号化ピクチャのう
ち、削除されても前記符号化データの再生が正常に行わ
れる符号化ピクチャを検出する検出ステップと、 前記検出ステップで検出された前記符号化ピクチャに上
書きして、前記符号化ピクチャに続く他の符号化ピクチ
ャまたは制御データが記憶されるように、前記記憶ステ
ップでの記憶を制御する制御ステップとを含むことを特
徴とする画像復号方法。
2. An image decoding method for decoding an encoded picture in which a plurality of pictures constituting an image are encoded with reference to each other, and an encoded data including predetermined control data, wherein: A storage step of storing the control data; a detection step of detecting an encoded picture from which the encoded data stored in the storage step is normally reproduced even if deleted, Overwriting the coded picture detected in the detection step, and controlling the storage in the storage step such that another coded picture or control data following the coded picture is stored. An image decoding method, characterized in that:
【請求項3】 画像を構成する複数のピクチャが、互い
に参照されて符号化された符号化ピクチャと、所定の制
御データからなる符号化データを復号する画像復号装置
に、 前記符号化ピクチャと、前記制御データを記憶する記憶
ステップと、 前記記憶ステップで記憶された前記符号化ピクチャのう
ち、削除されても前記符号化データの再生が正常に行わ
れる符号化ピクチャを検出する検出ステップと、 前記検出ステップで検出された前記符号化ピクチャに上
書きして、前記符号化ピクチャに続く他の符号化ピクチ
ャまたは制御データが記憶されるように、前記記憶ステ
ップでの記憶を制御する制御ステップとを含む処理を実
行させるコンピュータが読み取り可能なプログラムを提
供することを特徴とする提供媒体。
3. An image decoding apparatus for decoding an encoded picture in which a plurality of pictures constituting an image are encoded with reference to each other, and an encoded data including predetermined control data, wherein: A storage step of storing the control data; and a detection step of detecting, from among the coded pictures stored in the storage step, a coded picture in which reproduction of the coded data is normally performed even if deleted. Overwriting the coded picture detected in the detection step, and controlling the storage in the storage step so that another coded picture or control data following the coded picture is stored. A providing medium for providing a computer-readable program for executing a process.
JP31906698A 1998-11-10 1998-11-10 Image decoder, its method and served medium Withdrawn JP2000152189A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31906698A JP2000152189A (en) 1998-11-10 1998-11-10 Image decoder, its method and served medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31906698A JP2000152189A (en) 1998-11-10 1998-11-10 Image decoder, its method and served medium

Publications (1)

Publication Number Publication Date
JP2000152189A true JP2000152189A (en) 2000-05-30

Family

ID=18106128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31906698A Withdrawn JP2000152189A (en) 1998-11-10 1998-11-10 Image decoder, its method and served medium

Country Status (1)

Country Link
JP (1) JP2000152189A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005025224A1 (en) * 2003-09-02 2005-03-17 Sony Corporation Content reception device, video/audio output timing control method, and content providing system
US8189679B2 (en) 2004-09-02 2012-05-29 Sony Corporation Content receiving apparatus, method of controlling video-audio output timing and content providing system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005025224A1 (en) * 2003-09-02 2005-03-17 Sony Corporation Content reception device, video/audio output timing control method, and content providing system
US7983345B2 (en) 2003-09-02 2011-07-19 Sony Corporation Content receiving apparatus, video/audio output timing control method, and content provision system
US8189679B2 (en) 2004-09-02 2012-05-29 Sony Corporation Content receiving apparatus, method of controlling video-audio output timing and content providing system

Similar Documents

Publication Publication Date Title
JP3491366B2 (en) Special reproduction method and special reproduction apparatus for encoded data
US6285715B1 (en) Methods and apparatus for error concealment while decoding a coded video bit stream
US5841475A (en) Image decoding with dedicated bidirectional picture storage and reduced memory requirements
JP3518700B2 (en) Digital signal decoding device
JPH0974566A (en) Compression encoder and recording device for compression encoded data
EP0728396B1 (en) Recording and reproduction of a data reduced digital video signal on a longitudinal record carrier
US5854799A (en) Video decoder with functions to detect and process errors in encoded video data
JP2010041354A (en) Moving image coding method, coding device and coding program
US8165217B2 (en) Image decoding apparatus and method for decoding prediction encoded image data
JP3147792B2 (en) Video data decoding method and apparatus for high-speed playback
US20050226332A1 (en) Motion vector detector, method of detecting motion vector and image recording equipment
JP3156597B2 (en) Image information decoding and reproducing apparatus and image information decoding and reproducing method
JP3078991B2 (en) Low delay mode image decoding method and apparatus
US6788878B1 (en) Reproducing apparatus
JP3277374B2 (en) Image signal decoding method and image signal decoding device
JP3258673B2 (en) Moving image recording device and moving image reproducing device
JP3607315B2 (en) Video decoding device
JP3061125B2 (en) MPEG image reproducing apparatus and MPEG image reproducing method
JP2000152189A (en) Image decoder, its method and served medium
JP2002300528A (en) Method and device for editing video stream
US8948263B2 (en) Read/write separation in video request manager
JPH11313283A (en) Moving-image data reproducing device and reverse reproduction method for moving-image data
JP2004173069A (en) Image data recorder and recording method
JP3248366B2 (en) Data reproducing method and data reproducing apparatus
JPH1169363A (en) Method and device for reproducing source data of digitally coded video film

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060110