JPH08298666A - Image processor - Google Patents

Image processor

Info

Publication number
JPH08298666A
JPH08298666A JP3607996A JP3607996A JPH08298666A JP H08298666 A JPH08298666 A JP H08298666A JP 3607996 A JP3607996 A JP 3607996A JP 3607996 A JP3607996 A JP 3607996A JP H08298666 A JPH08298666 A JP H08298666A
Authority
JP
Japan
Prior art keywords
slot
memory
data
picture
frame
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.)
Granted
Application number
JP3607996A
Other languages
Japanese (ja)
Other versions
JP3307822B2 (en
Inventor
Akihiro Watabe
彰啓 渡部
Eiji Miyakoshi
英司 宮越
Yoshiyuki Goi
良之 後井
Burento Uiruson Uiriamu
ブレント ウィルソン ウィリアム
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3607996A priority Critical patent/JP3307822B2/en
Publication of JPH08298666A publication Critical patent/JPH08298666A/en
Application granted granted Critical
Publication of JP3307822B2 publication Critical patent/JP3307822B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Abstract

PURPOSE: To reduce the capacity of an interlacing conversion memory in an MPEG decoder for reproducing moving image data. CONSTITUTION: This image processor is provided with a 1st frame memory(FM0) 11 and a 2nd frame memory(FM1) 12 each of which consists of 2N slots and a 3rd frame memory(FM2) 13 consisting of (N+4) slots. Each slot has capacity for storing 8 lines of a picture. The capacity of each of the FM0 11 and FM1 12 for storing a reference frame of compensating movement is one frame and the capacity of the FM2 13 for the interlacing conversion of a B picture is (a half frame + 32 lines). The picture processor is also provided with a slot management memory(SM) 14 consisting of (2N+6) words each of which stores one slot number of the FM2 13. In the case of writing data in the FM2 13 by a decoding part 15 the contents of the SM14 are updated by a control part 17 so that an output part 16 can read out data from the FM2 13 in the correct order of slots.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、画像情報のデコー
ド処理に好適に使用される画像処理装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus preferably used for decoding image information.

【0002】[0002]

【従来の技術】動画像データの圧縮及び伸張に関する国
際標準として、ISO/IECのワーキング・グループ
の名をとって一般にMPEG(Moving Picture Image C
odingExperts Group )と呼ばれる国際標準が知られて
いる。動画像データを再生するためのMPEGデコーダ
は、可変長復号器(Variable Length Decoder :VL
D)と、逆量子化器(Inverse Quantizer :IQ)と、
逆離散コサイン変換器(Inverse Discrete Cosine Tran
sformer :IDCT)と、動き補償器(Motion Compens
ator:MC)とで構成されたデータ処理部を主な構成要
素とする。MPEGデコーダは、動き補償や、インター
レース変換のために複数のフレームメモリをも必要とす
る。
2. Description of the Related Art As an international standard for compression and expansion of moving image data, it is generally called MPEG (Moving Picture Image C) under the name of the working group of ISO / IEC.
The international standard known as the odingExperts Group) is known. An MPEG decoder for reproducing moving image data is a variable length decoder (VL).
D), an inverse quantizer (Inverse Quantizer: IQ),
Inverse Discrete Cosine Tran
sformer: IDCT) and motion compensator
The data processing unit constituted by ator: MC) is a main component. MPEG decoders also require multiple frame memories for motion compensation and interlace conversion.

【0003】MPEGは、動き補償用に時間的に前の画
像と、後の画像との2フレームを使用することが大きな
特徴となっている。一方、もし全ての画像に動き補償を
用いるとエラーの伝搬や、特殊再生などの問題があるた
め、I(Intra-coded )ピクチャ、P(Predictive-cod
ed)ピクチャ及びB(Bidirectionally predictive-cod
ed)ピクチャが導入されている。Iピクチャ、すなわち
コーディングタイプIのピクチャは、全く他の画像を参
照しない。Pピクチャ、すなわちコーディングタイプP
のピクチャは、時間的に前のフレームからの動き補償の
みを行なう。Bピクチャ、すなわちコーディングタイプ
Bのピクチャは、時間的に前のフレームと、後のフレー
ムとから双方向の動き補償を行なう。Bピクチャは、他
のフレームのデコードの際の参照フレームとして使用さ
れることはない。
MPEG is characterized by the use of two frames, a temporally previous image and a later image, for motion compensation. On the other hand, if motion compensation is used for all images, there are problems such as error propagation and special reproduction, so I (Intra-coded) pictures and P (Predictive-cod)
ed) picture and B (Bidirectionally predictive-cod)
ed) picture has been introduced. An I picture, a coding type I picture, does not reference any other picture. P picture, that is, coding type P
The picture of is only motion-compensated from the temporally previous frame. A B picture, that is, a picture of coding type B, is bidirectionally motion-compensated from a temporally previous frame and a temporally subsequent frame. B-pictures are not used as reference frames when decoding other frames.

【0004】それぞれのコーディングタイプの予測の様
子について説明する。I0,P3,B1,B2の順で入
力ピクチャのビットストリームがMPEGデコーダに与
えられるものとする。P3はI0から動き補償され、B
1はI0及びP3から動き補償され、B2はI0及びP
3から動き補償される。表示は、I0,B1,B2,P
3の順番でなされる。このようにMPEGデコーダで
は、デコードの順番と表示の順番とが一致していないた
め、MPEGデコーダの中で順番を変化させる必要があ
る。また、B1,B2のデコードにはI0,P3の画像
2フレームのデータが必要となるため、動き補償用とし
て画像2フレーム分のフレームメモリが必要となる。こ
のため、MPEGデコーダは、動き補償の参照用に2フ
レームを必要とする。
The manner of prediction of each coding type will be described. It is assumed that the input picture bit stream is given to the MPEG decoder in the order of I0, P3, B1, and B2. P3 is motion compensated from I0, B
1 is motion compensated from I0 and P3, B2 is I0 and P3
3 is motion compensated. Display is I0, B1, B2, P
It is done in the order of 3. As described above, in the MPEG decoder, since the decoding order and the display order do not match, it is necessary to change the order in the MPEG decoder. Further, since data of two image frames of I0 and P3 is required for decoding B1 and B2, a frame memory for two image frames is required for motion compensation. Therefore, the MPEG decoder requires two frames for reference of motion compensation.

【0005】次に、MPEGの画素単位でのデコードの
順番と、画像出力される際の画素単位での順番について
説明する。テレビジョンなどでは、最初は偶数ラインの
み出力し、次に奇数ラインのみを出力するというように
1ライン飛ばしで左上から右下という順番で画素の出力
が行なわれる。この偶数ラインのみの部分をトップフィ
ールド、奇数ラインのみをボトムフィールドと呼ぶ。イ
ンターレース出力は、まずトップフィールドを左上から
右下の順番で出力し、次にボトムフィールドを左上から
右下の順番で出力するものであるということができる。
Next, the order of decoding in pixel units of MPEG and the order of pixel units in outputting an image will be described. In a television or the like, pixels are output in an order from upper left to lower right by skipping one line, such as outputting only even lines first and then outputting only odd lines. The portion of only the even lines is called the top field, and the portion of the odd lines only is called the bottom field. It can be said that the interlaced output is such that the top field is first output from the upper left to the lower right, and then the bottom field is output from the upper left to the lower right.

【0006】画像データは2次元であり、空間的に近い
位置のデータは相関が高いと考えられるが、インターレ
ース出力の場合、例えばトップフィールドのある1ライ
ンを考えると、その1ライン上はボトムフィールドに属
することになる。つまり、1ライン上の画素は、空間的
には非常に近いが、時間的には離れていることになる。
そこで、もし動きが激しい場合は1ライン上よりも時間
的に近い2ライン上との相関の方が高い場合がありう
る。このような場合を想定して、MPEGでは画素単位
のデコードの順番としては大きく分けて、フレーム構造
と、フィールド構造との2種類の順番がある。
Image data is two-dimensional, and it is considered that data at spatially close positions have a high correlation, but in the case of interlaced output, for example, considering one line with a top field, the one line above is the bottom field. Will belong to. That is, the pixels on one line are very close in space, but are distant in time.
Therefore, if the movement is vigorous, the correlation with two lines closer in time may be higher than that with one line. In consideration of such a case, in MPEG, the decoding order in pixel units is roughly divided into two types, that is, a frame structure and a field structure.

【0007】また、MPEGでは16×16画素を1つ
のマクロブロックと呼ばれる基本単位としてデコードを
行なうようになっている。マクロブロックは左から右と
いう順番でデコードされていくが、ここで例えば画像の
一番上部の1ラインの一番右の画素は、その画面の一番
右のマクロブロックの中に含まれている。一方、一番右
のマクロブロックのデコードが終了すると、結果として
16ラインのデータがデコードされていることになる。
よって、MPEGでは、16ライン分のデータは、ほぼ
同時にデコードが終了する。
In MPEG, 16 × 16 pixels are used as a basic unit called one macroblock for decoding. Macroblocks are decoded in order from left to right, but here, for example, the rightmost pixel of one line at the top of the image is included in the rightmost macroblock of the screen. . On the other hand, when the decoding of the rightmost macro block is completed, the result is that 16 lines of data have been decoded.
Therefore, in MPEG, decoding of 16 lines of data ends almost at the same time.

【0008】フレーム構造の場合には、画像1フレーム
のデータがそのまま縦16画素、横16画素のマクロブ
ロックを構成して、そのマクロブロック毎にデコードさ
れていく。よって、トップフィールドとボトムフィール
ドとがほぼ同時にデコードされる。したがって、画像出
力の順序とはまったく一致しないため、順序変換が必要
となる。
In the case of the frame structure, the data of one frame of an image constitutes a macroblock of 16 pixels in the vertical direction and 16 pixels in the horizontal direction and is decoded for each macroblock. Therefore, the top field and the bottom field are decoded almost at the same time. Therefore, the order of image output does not match at all, so order conversion is required.

【0009】フィールド構造の場合には、画像フレーム
をトップフィールドとボトムフィールドとに分割し、そ
れぞれのフィールドで縦16画素、横16画素のマクロ
ブロックを構成し、そのマクロブロック毎にデコードさ
れていく。この場合、1マクロブロックは、トップフィ
ールドのみ、あるいはボトムフィールドのみであり、ト
ップフィールドのデータを全てデコードした後にボトム
フィールドのデータがデコードされる。この場合は画像
出力とおおむね一致する順番になっているが、デコード
の順序は、マクロブロック単位で行なわれるので、画像
出力の順序と完全には一致していない。
In the case of the field structure, the image frame is divided into a top field and a bottom field, each field constitutes a macroblock of 16 pixels in the vertical direction and 16 pixels in the horizontal direction, and each macroblock is decoded. . In this case, one macroblock has only the top field or only the bottom field, and the bottom field data is decoded after all the top field data is decoded. In this case, the order is almost the same as the image output, but since the decoding order is performed in macroblock units, it does not completely match the image output order.

【0010】画像出力は、トップフィールド、ボトムフ
ィールドの順番で行なわれる。トップフィールドの最終
8ラインを出力開始する時点に注目すると、この最終8
ライン出力開始前には、その画像フレームの最後の16
ライン分のマクロブロックのデコードを終了していなけ
ればならない。なぜなら、最終8ラインの中の最も右の
16画素は、その画像の一番最後のマクロブロックをデ
コードして始めて値が確定するからである。よって、上
記の時点にはボトムフィールド、トップフィールドとも
デコードが完了していなければならない。一方、この時
点以降には、トップフィールド8ラインと、ボトムフィ
ールド全てを順に出力していかなければならないが、こ
のデータは既にデコードされている。よって、このトッ
プフィールド8ラインと、ボトムフィールドのデータ全
てとをフレームメモリに記憶しておかなければ、データ
が出力される前に消えてしまい、画像出力がなされなく
なってしまう。つまり、ボトムフィールドのデータ全て
とトップフィールドの8ライン分とのデータ量を記憶す
るだけの約半フレームの容量を持つフレームメモリが必
要となる。
Image output is performed in the order of top field and bottom field. Focusing on the time when the last 8 lines of the top field are output, this final 8
Before the line output is started, the last 16
Decoding of macroblocks for lines must be completed. This is because the value of the rightmost 16 pixels in the last 8 lines is fixed only after decoding the last macroblock of the image. Therefore, at the above time point, decoding must be completed for both the bottom field and the top field. On the other hand, after this point, the top field 8 lines and the bottom field must be sequentially output, but this data has already been decoded. Therefore, unless the 8 lines of the top field and all the data of the bottom field are stored in the frame memory, the data disappears before the data is output and the image cannot be output. In other words, a frame memory having a capacity of about half a frame for storing all the data of the bottom field and the data of 8 lines of the top field is required.

【0011】以上まとめると、動き補償を行なうために
2フレーム分のメモリを必要とし、更にインターレース
変換を行なうために約半フレーム分のメモリを必要とす
る。つまり、計約2.5フレーム分のメモリが最低限必
要となる。
In summary, two frames of memory are required for motion compensation, and about half a frame of memory is required for interlace conversion. That is, a minimum of about 2.5 frames of memory is required.

【0012】石渡俊一ほか「MPEG2デコーダLSI
の開発−−効率的なメモリ割り当て」,1994年電子
情報通信学会春季大会講演論文集,C−659,199
4年3月には、インターレース変換用に1.5フレーム
分のメモリを使用するMPEGデコーダの例が記載され
ている。
Shunichi Ishiwata et al. "MPEG2 Decoder LSI"
, "Efficient Memory Allocation", Proc. Of the 1994 IEICE Spring Conference, C-659,199
In March 4th, an example of an MPEG decoder using a memory for 1.5 frames for interlace conversion is described.

【0013】[0013]

【発明が解決しようとする課題】上記従来のMPEGデ
コーダは、インターレース変換用に1.5フレーム分の
メモリを必要とするため、MPEGデコーダがコスト高
になるという問題があった。上記のとおり原理的にはイ
ンターレース変換用に約半フレーム分のメモリで十分で
あることを考えると、改善の余地がある。
The above-mentioned conventional MPEG decoder has a problem that the cost of the MPEG decoder becomes high because it requires a memory for 1.5 frames for interlace conversion. As described above, there is room for improvement in view of the fact that about half a frame of memory is sufficient for interlace conversion in principle.

【0014】本発明の目的は、MPEGデコーダが有す
るフレームメモリの容量を削減することにある。
An object of the present invention is to reduce the capacity of the frame memory included in the MPEG decoder.

【0015】[0015]

【課題を解決するための手段】上記目的を達成するため
に、本発明では次の点に着目した。すなわち、Bピクチ
ャは画像出力を終えるともう使用されることはないとい
う点と、現在デコード中のマクロブロックの領域がいつ
出力されるかを入力ピクチャの付加情報の部分の解析に
よって予測できるという点とに着目したものである。具
体的には、データメモリを複数個のスロットに分割し、
スロット管理メモリに記憶されたスロット番号を用いて
データメモリの読み書きを制御することとした。
In order to achieve the above object, the present invention focuses on the following points. That is, the B picture is no longer used after the image output is completed, and it is possible to predict when the area of the macro block currently being decoded will be output by analyzing the additional information portion of the input picture. It focuses on and. Specifically, divide the data memory into multiple slots,
It was decided to control reading and writing of the data memory by using the slot number stored in the slot management memory.

【0016】本発明によれば、データメモリが正しいス
ロット順で読み出されるように、データメモリの書き込
みの際にスロット管理メモリの内容が更新される。した
がって、このデータメモリをインターレース変換用メモ
リとすれば、約半フレーム分のメモリでBピクチャのイ
ンターレース変換を実現できる。
According to the present invention, the contents of the slot management memory are updated when the data memory is written so that the data memory is read in the correct slot order. Therefore, if this data memory is used as an interlace conversion memory, interlace conversion of B pictures can be realized with a memory for about half a frame.

【0017】[0017]

【発明の実施の形態】以下、動画像データのリアルタイ
ム再生処理を実現するためのMPEGデコーダの具体例
について、図面を参照しながら説明する。
BEST MODE FOR CARRYING OUT THE INVENTION A specific example of an MPEG decoder for realizing real-time reproduction processing of moving image data will be described below with reference to the drawings.

【0018】図1は、本発明のMPEGデコーダの構成
を示している。図1のMPEGデコーダ10は、各々1
フレーム分の画像データを記憶するための第1のフレー
ムメモリ(FM0)11及び第2のフレームメモリ(F
M1)12と、Bピクチャのインターレース変換のため
の第3のフレームメモリ(FM2)13とを備えてい
る。これら3つのフレームメモリ11,12,13は、
それぞれ複数個のスロットに分割されている。MPEG
デコーダ10は、第3のフレームメモリ(FM2)13
の複数個のスロット番号を記憶するためのスロット管理
メモリ(SM)14と、入力ピクチャINのデコードを
行ない画像データを3つのフレームメモリ11,12,
13のいずれかに書き込むためのデコード部15と、3
つのフレームメモリ11,12,13のいずれかからデ
ータを読み出して出力ピクチャOUTを供給するための
出力部16と、スロット管理メモリ(SM)14を参照
して書き込みスロット番号WS1,WS2及び読み出し
スロット番号RS1,RS2を供給するための制御部1
7とを更に備えている。図1において、21はアドレス
バス、22はデータバスである。
FIG. 1 shows the structure of the MPEG decoder of the present invention. The MPEG decoders 10 shown in FIG.
A first frame memory (FM0) 11 for storing image data for frames and a second frame memory (F0)
M1) 12 and a third frame memory (FM2) 13 for interlace conversion of B pictures. These three frame memories 11, 12, 13 are
Each is divided into a plurality of slots. MPEG
The decoder 10 includes a third frame memory (FM2) 13
Slot management memory (SM) 14 for storing a plurality of slot numbers of the image data, and image data for decoding the input picture IN are stored in three frame memories 11, 12,
Decoding unit 15 for writing to any of 13 and 3
An output unit 16 for reading data from any one of the frame memories 11, 12, and 13 to supply an output picture OUT, and a slot management memory (SM) 14 to refer to write slot numbers WS1 and WS2 and read slot numbers. Control unit 1 for supplying RS1 and RS2
7 and 7 are further provided. In FIG. 1, 21 is an address bus and 22 is a data bus.

【0019】図2は、第1のフレームメモリ(FM0)
11の内部構成を示している。第1のフレームメモリ
(FM0)11は、0から2N−1まで番号付けられた
2N個のスロットで構成されている。ここに、NはMP
EGデコーダ10がデコードを行なう画像サイズに依存
している量であり、例えばNTSC(National Televis
ion System Comittee )の画像ではNが30となる。そ
れぞれのスロットは、画像8ライン分を記憶するだけの
容量を持っている。つまり、第1のフレームメモリ(F
M0)11は、480ライン分のデータ、すなわちNT
SCの画像1フレーム分のデータを記憶することができ
る。
FIG. 2 shows the first frame memory (FM0).
11 shows an internal configuration of 11. The first frame memory (FM0) 11 is composed of 2N slots numbered from 0 to 2N-1. Where N is MP
The amount depends on the image size to be decoded by the EG decoder 10. For example, NTSC (National Televis
In the image of (ion System Committee), N is 30. Each slot has a capacity for storing 8 lines of image. That is, the first frame memory (F
M0) 11 is data for 480 lines, that is, NT
Data for one frame of the SC image can be stored.

【0020】図3は、第2のフレームメモリ(FM1)
12の内部構成を示している。第2のフレームメモリ
(FM1)12も、第1のフレームメモリ(FM0)1
1と同様に、0から2N−1まで番号付けられた2N個
のスロットで構成されている。それぞれのスロットは、
画像8ライン分を記憶するだけの容量を持っている。
FIG. 3 shows the second frame memory (FM1).
12 shows the internal configuration of the twelve. The second frame memory (FM1) 12 is also the first frame memory (FM0) 1
Similar to 1, it consists of 2N slots numbered from 0 to 2N-1. Each slot is
It has the capacity to store 8 lines of image.

【0021】図4は、第3のフレームメモリ(FM2)
13の内部構成を示している。第3のフレームメモリ
(FM2)13は、0からN+3まで番号付けられたN
+4個のスロットで構成されている。それぞれのスロッ
トは、画像8ライン分を記憶するだけの容量を持ってい
る。
FIG. 4 shows a third frame memory (FM2).
13 shows an internal configuration of 13. The third frame memory (FM2) 13 has N numbered from 0 to N + 3.
It consists of +4 slots. Each slot has a capacity for storing 8 lines of image.

【0022】図5は、スロット管理メモリ(SM)14
の内部構成を示している。スロット管理メモリ(SM)
14は、アドレス0から2N+5までの2N+6個の記
憶場所(ワード)で構成されている。それぞれのワード
は、第3のフレームメモリ(FM2)13の1個のスロ
ット番号を記憶するものである。
FIG. 5 shows a slot management memory (SM) 14
Shows the internal configuration of the. Slot management memory (SM)
14 is composed of 2N + 6 storage locations (words) from addresses 0 to 2N + 5. Each word stores one slot number of the third frame memory (FM2) 13.

【0023】図6は、デコード部15の内部構成を示し
ている。デコード部15は、VLD31と、IQ32
と、IDCT33と、MC34とで構成されたデータ処
理部30を主な構成要素としている。デコード部15
は、データ書き込み部35と、メモリ選択レジスタ36
と、ロウカウンタ37とを更に備えている。
FIG. 6 shows the internal structure of the decoding section 15. The decoding unit 15 includes a VLD 31 and an IQ 32.
The data processing unit 30 including the IDCT 33 and the MC 34 is a main component. Decoding unit 15
Is a data writing unit 35 and a memory selection register 36.
And a row counter 37.

【0024】デコード部15は、入力ピクチャINのビ
ットストリームのデコードを行ない、その結果のデータ
D1を第1のフレームメモリ(FM0)11、第2のフ
レームメモリ(FM1)12又は第3のフレームメモリ
(FM2)13に書き込む役割を果たしている。また、
入力ピクチャINの解析の結果、モード信号MODE、
タイプ信号TYPE、書き込みロウ番号WROWを出力
する。デコードを行なう際に、第1のフレームメモリ
(FM0)11又は第2のフレームメモリ(FM1)1
2に書き込まれているデータを動き補償用の予測画像デ
ータD2として参照する。A1は、アドレスバス21へ
送出されるアドレスである。第3のフレームメモリ(F
M2)13に書き込みを行なう際には、制御部17から
与えられる書き込みスロット番号WS1,WS2を利用
する。デコード部15の動作タイミングは、出力部16
からの割り込み信号INTによって制御される。
The decoding unit 15 decodes the bit stream of the input picture IN, and outputs the resulting data D1 as the first frame memory (FM0) 11, the second frame memory (FM1) 12 or the third frame memory. (FM2) 13 plays a role of writing. Also,
As a result of the analysis of the input picture IN, the mode signal MODE,
The type signal TYPE and the write row number WROW are output. When performing decoding, the first frame memory (FM0) 11 or the second frame memory (FM1) 1
The data written in 2 is referred to as motion compensation prediction image data D2. A1 is an address transmitted to the address bus 21. Third frame memory (F
When writing to M2) 13, the write slot numbers WS1 and WS2 given from the control unit 17 are used. The operation timing of the decoding unit 15 is the output unit 16
Controlled by an interrupt signal INT from

【0025】入力ピクチャINは、コーディングタイプ
や、フレーム構造、フィールド構造といった付加情報の
部分と、画素データの部分とに分れている。付加情報の
部分は、画素データの部分より前にVLD31に入力さ
れるようになっている。VLD31に入力ピクチャIN
が与えられると、まず画像フレームのコーディングタイ
プ(“I”,“P”又は“B”)を示すタイプ信号TY
PEと、フレーム構造(“FR”)であるかフィールド
構造(“FD”)であるかを示すモード信号MODEと
がVLD31から出力される。タイプ信号TYPE及び
モード信号MODEは、その画像1フレームのデコード
が終了し、次の画像の付加情報のデコードを開始するま
では、変化しない。次に、画素データの部分の処理に入
るが、VLD31は、画像データ16ライン毎に割り込
み信号INTの受信を待つ。この動作の停止は、出力部
16がデータを読み出す部分との同期をとるためであ
り、具体的なタイミングについては後述する。16ライ
ンというのは、1マクロブロックに含まれる縦の画素数
の16に対応している。1フレームの画像のデコードを
終えると、VLD31は、また次の画像のデコードを開
始する。
The input picture IN is divided into a portion of additional information such as a coding type, a frame structure and a field structure, and a portion of pixel data. The additional information portion is input to the VLD 31 before the pixel data portion. Input picture IN to VLD31
, The type signal TY indicating the coding type (“I”, “P” or “B”) of the image frame is given.
The PE and the mode signal MODE indicating the frame structure (“FR”) or the field structure (“FD”) are output from the VLD 31. The type signal TYPE and the mode signal MODE do not change until the decoding of one frame of the image is completed and the decoding of the additional information of the next image is started. Next, the process for the pixel data portion starts, but the VLD 31 waits for the reception of the interrupt signal INT every 16 lines of image data. This operation is stopped because the output unit 16 synchronizes with a portion for reading data, and the specific timing will be described later. The 16 lines correspond to 16 which is the number of vertical pixels included in one macroblock. When the decoding of the image of one frame is completed, the VLD 31 starts decoding the next image again.

【0026】ロウカウンタ37は、16ラインの単位
で、現在デコード中の16ラインが画像のどの部分かを
示すものであり、VLD31によって書き換えが行なわ
れる。ロウカウンタ37は、VLD31が画像16ライ
ンをデコードし終えるつど、1づつ増加する。また、V
LD31が付加情報をデコードしているときにはロウカ
ウンタ37を0にする。このロウカウンタ37の内容
は、書き込みロウ番号WROWとして制御部17に出力
されるとともに、データ書き込み部35が画素データを
メモリに書き込む際にそのスロットを決定するために用
いられる。
The row counter 37 indicates, in units of 16 lines, which part of the image is currently being decoded, and is rewritten by the VLD 31. The row counter 37 is incremented by 1 each time the VLD 31 finishes decoding the image 16 lines. Also, V
The row counter 37 is set to 0 when the LD 31 is decoding the additional information. The content of the row counter 37 is output to the control unit 17 as the write row number WROW, and is also used for determining the slot when the data writing unit 35 writes the pixel data in the memory.

【0027】MC34で作成された最終的なデコード画
像MCPは、データ書き込み部35によって、第1のフ
レームメモリ(FM0)11、第2のフレームメモリ
(FM1)12又は第3のフレームメモリ(FM2)1
3に書き込まれる。データ書き込み部35は、書き込み
スロット番号WS1,WS2、書き込みロウ番号WRO
W、タイプ信号TYPE、モード信号MODE及びメモ
リ選択レジスタ36の値WQを参照してアドレスA1を
生成し、データD1をデータバス22へ送出する。メモ
リ選択レジスタ36の値WQは、データ書き込み部35
における書き込みフレームメモリの選択と、MC34に
おける予測用フレームメモリの選択とに影響する。
The final decoded image MCP created by the MC 34 is processed by the data writing unit 35 by the first frame memory (FM0) 11, the second frame memory (FM1) 12 or the third frame memory (FM2). 1
Written in 3. The data writing unit 35 has write slot numbers WS1 and WS2 and write row number WRO.
The address A1 is generated by referring to W, the type signal TYPE, the mode signal MODE, and the value WQ of the memory selection register 36, and the data D1 is sent to the data bus 22. The value WQ of the memory selection register 36 is stored in the data writing unit 35.
It affects the selection of the write frame memory in the above step and the selection of the prediction frame memory in the MC 34.

【0028】図7は、出力部16の内部構成を示してい
る。出力部16は、データ読み出し部41と、値RQを
保持するためのメモリ選択レジスタ42と、読み出しロ
ウ番号RROWを供給するためのロウカウンタ43と、
ボーダーカラー信号BCLを保持するためのボーダーカ
ラーレジスタ44とで構成されている。データ読み出し
部41は、第1のフレームメモリ(FM0)11、第2
のフレームメモリ(FM1)12又は第3のフレームメ
モリ(FM2)13に書き込まれたデコードデータD3
を読み出し、出力ピクチャOUTを供給する。A2は、
アドレスバス21へ送出されるアドレスである。また、
データ読み出し部41は、他のブロックの動作タイミン
グをコントロールするための割り込み信号INTを出力
する。データ読み出し部41がデータを読み出す位置
は、デコード部15からのタイプ信号TYPEと、制御
部17からの読み出しスロット番号RS1,RS2とに
よって決定される。
FIG. 7 shows the internal structure of the output section 16. The output unit 16 includes a data reading unit 41, a memory selection register 42 for holding a value RQ, a row counter 43 for supplying a read row number RROW,
It is composed of a border color register 44 for holding the border color signal BCL. The data reading unit 41 includes a first frame memory (FM0) 11 and a second frame memory (FM0) 11.
The decoded data D3 written in the frame memory (FM1) 12 or the third frame memory (FM2) 13 of
To output the output picture OUT. A2 is
The address is sent to the address bus 21. Also,
The data reading unit 41 outputs an interrupt signal INT for controlling the operation timing of other blocks. The position where the data reading unit 41 reads the data is determined by the type signal TYPE from the decoding unit 15 and the read slot numbers RS1 and RS2 from the control unit 17.

【0029】出力部16は、3つのフレームメモリ1
1,12,13のいずれかから読み出したデータを正し
いタイミングで外部に出力する役割を持っている。出力
ピクチャOUTには、垂直帰線区間と、実際に画像出力
を行なうアクティブ期間とがある。最初の垂直帰線区間
に続くアクティブ期間にはトップフィールドのデータ
が、次のアクティブ期間にはボトムフィールドのデータ
がそれぞれ出力される。出力部16は、垂直帰線区間開
始時や、16ライン分のデータの出力を開始する際に、
割り込み信号INTを出力する。この割り込み信号IN
Tは、該割り込み信号INTを出したときが垂直帰線区
間の開始であるかどうか、また現在画像1フレームのど
の部分を出力しているかといった情報を含んでいる。
The output unit 16 includes three frame memories 1
It has a role of outputting data read from any one of 1, 12, and 13 to the outside at a correct timing. The output picture OUT has a vertical blanking interval and an active period for actually outputting an image. Top field data is output during the active period following the first vertical blanking interval, and bottom field data is output during the next active period. The output unit 16 starts the vertical blanking interval or starts outputting data for 16 lines.
The interrupt signal INT is output. This interrupt signal IN
T includes information such as whether or not the time when the interrupt signal INT is issued is the start of the vertical blanking interval, and which part of one frame of the image is currently output.

【0030】図8は、制御部17の内部構成を示してい
る。制御部17は、各々スロット管理メモリ(SM)1
4のアドレスを保持するための書き込みポインタ(M
1)51及び読み出しポインタ(M2)53と、デコー
ド部15がデータを書き込むスロットを指定するための
第1のスロット番号指定部52と、出力部16がデータ
を読み出すスロットを指定するための第2のスロット番
号指定部54と、スロット管理メモリ(SM)14を制
御するためのメモリ制御部55とから構成されている。
61はアドレスバス、62はデータバス、Aはスロット
管理メモリ(SM)14へ供給されるアドレス、Dはデ
ータバス62の上のデータ(スロット番号)である。ス
ロット管理メモリ(SM)14と、メモリ制御部55
と、書き込みポインタ(M1)51と、読み出しポイン
タ(M2)53と、第1及び第2のスロット番号指定部
52,54とは、Bピクチャのインターレース変換の際
のメモリ管理を行なっている。
FIG. 8 shows the internal structure of the controller 17. The control units 17 each have a slot management memory (SM) 1
Write pointer (M
1) 51 and a read pointer (M2) 53, a first slot number designating section 52 for designating a slot in which the decoding section 15 writes data, and a second slot number designating section for designating a slot in which the output section 16 reads data. Slot number designating section 54 and a memory control section 55 for controlling the slot management memory (SM) 14.
61 is an address bus, 62 is a data bus, A is an address supplied to the slot management memory (SM) 14, and D is data (slot number) on the data bus 62. Slot management memory (SM) 14 and memory control unit 55
The write pointer (M1) 51, the read pointer (M2) 53, and the first and second slot number designation units 52 and 54 perform memory management at the time of B-picture interlace conversion.

【0031】第1のスロット番号指定部52は、書き込
みポインタ(M1)51が指し示すスロット管理メモリ
(SM)14のアドレスからスロット番号を2個取り出
し、デコード部15に書き込みスロット番号WS1,W
S2として供給する。この出力のタイミングは、出力部
16からの割り込み信号INTと、デコード部15から
のタイプ信号TYPEとに基づいている。
The first slot number designating section 52 fetches two slot numbers from the address of the slot management memory (SM) 14 pointed to by the write pointer (M1) 51, and writes them into the decoding section 15 as write slot numbers WS1 and W.
Supply as S2. The timing of this output is based on the interrupt signal INT from the output unit 16 and the type signal TYPE from the decoding unit 15.

【0032】メモリ制御部55は、書き込みポインタ
(M1)51をアドレスとしてスロット管理メモリ(S
M)14から2個のスロット番号を取り出し、それらの
スロット番号をスロット管理メモリ(SM)14の別ア
ドレスに書き込む。取り出した2個のスロット番号は、
書き込みスロット番号WS1,WS2と一致している。
別アドレスは、書き込みポインタ(M1)51、モード
信号MODE、書き込みロウ番号WROWから計算され
るものである。この動作のタイミングは、出力部16か
らの割り込み信号INTと、デコード部15からのタイ
プ信号TYPEとに基づいている。スロット管理メモリ
(SM)14への書き込みが終了し、かつ第1のスロッ
ト番号指定部52がデコード部15に書き込みスロット
番号WS1,WS2を指定した後に、メモリ制御部55
は、書き込みポインタ(M1)51を2だけ増加させ
る。
The memory control section 55 uses the write pointer (M1) 51 as an address to control the slot management memory (S
M) 14 two slot numbers are taken out, and those slot numbers are written in another address of the slot management memory (SM) 14. The two slot numbers retrieved are
It matches the write slot numbers WS1 and WS2.
The different address is calculated from the write pointer (M1) 51, the mode signal MODE, and the write row number WROW. The timing of this operation is based on the interrupt signal INT from the output unit 16 and the type signal TYPE from the decoding unit 15. After the writing to the slot management memory (SM) 14 is completed and the first slot number designating unit 52 designates the writing slot numbers WS1 and WS2 to the decoding unit 15, the memory control unit 55
Increases the write pointer (M1) 51 by 2.

【0033】第2のスロット番号指定部54は、読み出
しポインタ(M2)53が指し示すスロット管理メモリ
(SM)14のアドレスからスロット番号を2個取り出
し、出力部16に読み出しスロット番号RS1,RS2
として供給する。その後、第2のスロット番号指定部5
4は、読み出しポインタ(M2)53を2だけ増加させ
る。この動作のタイミングは、出力部16からの割り込
み信号INTと、デコード部15からのタイプ信号TY
PEとに基づいている。
The second slot number designation unit 54 takes out two slot numbers from the address of the slot management memory (SM) 14 pointed to by the read pointer (M2) 53, and outputs the read slot numbers RS1 and RS2 to the output unit 16.
Supply as. After that, the second slot number designation unit 5
4 increments the read pointer (M2) 53 by 2. The timing of this operation is the interrupt signal INT from the output unit 16 and the type signal TY from the decoding unit 15.
Based on PE.

【0034】次に、書き込みフレームメモリの選択及び
動き補償用の参照フレームメモリの選択について説明す
る。これらのメモリ選択は、画像1フレームの付加情報
をデコードした時点で決定され、以下その画像1フレー
ムのデコードが終了するまでは同一のメモリを使用す
る。メモリ選択レジスタ36の値WQは“0”又は
“1”をとることができ、その初期値は“0”である。
VLD31からのタイプ信号TYPEに従って、次のよ
うに動作が切り換えられる。
Next, selection of a write frame memory and selection of a reference frame memory for motion compensation will be described. These memory selections are determined when the additional information of one frame of the image is decoded, and the same memory is used until the decoding of the one frame of the image is completed. The value WQ of the memory selection register 36 can take "0" or "1", and its initial value is "0".
The operation is switched as follows according to the type signal TYPE from the VLD 31.

【0035】まず、TYPE=“I”の場合を説明す
る。データ書き込み部35は、WQ=“0”ならば第1
のフレームメモリ(FM0)11を、WQ=“1”なら
ば第2のフレームメモリ(FM1)12をそれぞれ書き
込みフレームメモリとして選択する。そのIピクチャの
書き込みが終了すると、次のピクチャをデコードする前
に、メモリ選択レジスタ36の値WQが更新される。す
なわち、WQ=“0”ならば“1”に、WQ=“1”な
らば“0”にそれぞれ更新される。なお、動き補償は行
なわれない。
First, the case where TYPE = "I" will be described. If the WQ = “0”, the data writing unit 35 determines the first
The frame memory (FM0) 11 is selected as the write frame memory, and the second frame memory (FM1) 12 is selected as the write frame memory if WQ = “1”. When the writing of the I picture is completed, the value WQ of the memory selection register 36 is updated before the next picture is decoded. That is, if WQ = "0", it is updated to "1", and if WQ = "1", it is updated to "0". No motion compensation is performed.

【0036】TYPE=“P”の場合を説明する。デー
タ書き込み部35は、WQ=“0”ならば第1のフレー
ムメモリ(FM0)11を、WQ=“1”ならば第2の
フレームメモリ(FM1)12をそれぞれ書き込みフレ
ームメモリとして選択する。更に、データ書き込み部3
5は、WQ=“0”ならば第2のフレームメモリ(FM
1)12を、WQ=“1”ならば第1のフレームメモリ
(FM0)11をそれぞれ前方参照用として選択する。
そのPピクチャの書き込みが終了すると、次のピクチャ
をデコードする前に、メモリ選択レジスタ36の値WQ
が更新される。すなわち、WQ=“0”ならば“1”
に、WQ=“1”ならば“0”にそれぞれ更新される。
The case where TYPE = "P" will be described. The data writing unit 35 selects the first frame memory (FM0) 11 as the write frame memory when WQ = "0" and the second frame memory (FM1) 12 when WQ = "1". Furthermore, the data writing unit 3
5 is the second frame memory (FM) if WQ = “0”.
1) 12 and if WQ = “1”, select the first frame memory (FM0) 11 for forward reference.
When the writing of the P picture is completed, the value WQ of the memory selection register 36 is read before the next picture is decoded.
Will be updated. That is, if WQ = "0", then "1"
If WQ = "1", it is updated to "0".

【0037】TYPE=“B”の場合を説明する。書き
込みは常に第3のフレームメモリ(FM2)13に対し
て行なわれる。この際、データ書き込み部35は、WQ
=“0”ならば、第1のフレームメモリ(FM0)11
を前方参照用として、第2のフレームメモリ(FM1)
を後方参照用としてそれぞれ選択する。また、WQ=
“1”ならば、第2のフレームメモリ(FM1)を前方
参照用として、第1のフレームメモリ(FM0)11を
後方参照用としてそれぞれ選択する。この場合、メモリ
選択レジスタ36の値WQは更新されない。
The case where TYPE = “B” will be described. Writing is always performed in the third frame memory (FM2) 13. At this time, the data writing unit 35 uses the WQ
= “0”, the first frame memory (FM0) 11
For forward reference, the second frame memory (FM1)
Respectively for the back reference. Also, WQ =
If it is "1", the second frame memory (FM1) is selected for forward reference and the first frame memory (FM0) 11 is selected for backward reference. In this case, the value WQ of the memory selection register 36 is not updated.

【0038】図9は、デコード部15の概略動作を示し
ている。図9では、I0,P1,P4,B2,B3の順
で入力ピクチャINのビットストリームがデコード部1
5に与えられるものとしている。なお、I0やP4とい
う表現は、最初のI,P,Bでコーディングタイプを表
し、次の数字で表示の順番を表している。
FIG. 9 shows a schematic operation of the decoding section 15. In FIG. 9, the bit stream of the input picture IN is decoded by the decoding unit 1 in the order of I0, P1, P4, B2, and B3.
It is supposed to be given to 5. In the expressions I0 and P4, the first I, P, and B represent the coding type, and the following numbers represent the display order.

【0039】まず、ピクチャI0が入力されると、TY
PE=“I”かつWQ=“0”であるので、第1のフレ
ームメモリ(FM0)11にピクチャI0が書き込まれ
る。ピクチャI0のデコードが終了すると、WQは
“1”に更新される。ピクチャP1が入力されると、T
YPE=“P”かつWQ=“1”であるので、動き補償
されたピクチャP1が第2のフレームメモリ(FM1)
12に書き込まれる。この際、MC34は、第1のフレ
ームメモリ(FM0)11に既に書き込まれているピク
チャI0を前方参照する。ピクチャP1のデコードが終
了すると、WQは“0”に更新される。ピクチャP4が
入力されると、TYPE=“P”かつWQ=“0”であ
るので、動き補償されたピクチャP4が第1のフレーム
メモリ(FM0)11に書き込まれる。この際、MC3
4は、第2のフレームメモリ(FM1)12に既に書き
込まれているピクチャP1を前方参照する。ピクチャP
4のデコードが終了すると、WQは“1”に更新され
る。ピクチャB2が入力されると、TYPE=“B”で
あるので、動き補償されたピクチャB2が第3のフレー
ムメモリ(FM2)13に書き込まれる。この際、WQ
=“1”であるので、MC34は、第2のフレームメモ
リ(FM1)12に既に書き込まれているピクチャP1
を前方参照し、かつ第1のフレームメモリ(FM0)1
1に既に書き込まれているピクチャP4を後方参照す
る。WQは更新されない。ピクチャB3が入力される
と、TYPE=“B”であるので、動き補償されたピク
チャB3が第3のフレームメモリ(FM2)13に書き
込まれる。この際、WQ=“1”であるので、MC34
は、第2のフレームメモリ(FM1)12に既に書き込
まれているピクチャP1を前方参照し、かつ第1のフレ
ームメモリ(FM0)11に既に書き込まれているピク
チャP4を後方参照する。WQは更新されない。
First, when the picture I0 is input, TY
Since PE = “I” and WQ = “0”, the picture I0 is written in the first frame memory (FM0) 11. When the decoding of the picture I0 is completed, WQ is updated to "1". When the picture P1 is input, T
Since YPE = “P” and WQ = “1”, the motion-compensated picture P1 is the second frame memory (FM1).
12 is written. At this time, the MC 34 refers forward of the picture I0 already written in the first frame memory (FM0) 11. When the decoding of the picture P1 is completed, WQ is updated to "0". When the picture P4 is input, since TYPE = “P” and WQ = “0”, the motion-compensated picture P4 is written in the first frame memory (FM0) 11. At this time, MC3
4 forward-references the picture P1 already written in the second frame memory (FM1) 12. Picture P
When the decoding of 4 is completed, WQ is updated to "1". When the picture B2 is input, since TYPE = “B”, the motion-compensated picture B2 is written in the third frame memory (FM2) 13. At this time, WQ
= “1”, the MC 34 has the picture P1 already written in the second frame memory (FM1) 12.
Forward reference, and the first frame memory (FM0) 1
The picture P4 already written in 1 is back referenced. WQ is not updated. When the picture B3 is input, since TYPE = “B”, the motion-compensated picture B3 is written in the third frame memory (FM2) 13. At this time, since WQ = “1”, MC34
Refers forward to the picture P1 already written in the second frame memory (FM1) 12 and backward refers to the picture P4 already written to the first frame memory (FM0) 11. WQ is not updated.

【0040】以上のように、Iピクチャ及びPピクチャ
については、第1のフレームメモリ(FM0)11と、
第2のフレームメモリ(FM1)12とを交互に使用す
る。また、Bピクチャについては、常に第3のフレーム
メモリ(FM2)13に書き込みを行ない、第1のフレ
ームメモリ(FM0)11及び第2のフレームメモリ
(FM1)12を動き補償用の参照フレームとして使用
する。
As described above, for the I picture and P picture, the first frame memory (FM0) 11 and
The second frame memory (FM1) 12 is used alternately. For B pictures, the third frame memory (FM2) 13 is always written, and the first frame memory (FM0) 11 and the second frame memory (FM1) 12 are used as reference frames for motion compensation. To do.

【0041】次に、選択されたフレームメモリの中のど
のスロットに書き込みを行なうかについて説明する。デ
ータ書き込み部35は、16ライン毎に書き込みスロッ
トを2個決定し、既に説明した方法で選択された書き込
みフレームメモリの2個のスロットに合計16ラインの
データを書き込む。書き込みスロットは、タイプ信号T
YPEと、モード信号MODEと、書き込みロウ番号W
ROWと、第1のスロット番号指定部52から与えられ
た書き込みスロット番号WS1,WS2とによって決定
される。その手順は、次のとおりである。
Next, description will be made on which slot in the selected frame memory is to be written. The data writing unit 35 determines two write slots for every 16 lines and writes a total of 16 lines of data in the two slots of the write frame memory selected by the method already described. The write slot has a type signal T
YPE, mode signal MODE, write row number W
It is determined by the ROW and the write slot numbers WS1 and WS2 given from the first slot number designating section 52. The procedure is as follows.

【0042】まず、TYPE=“I”又は“P”の場合
を説明する。MODE=“FR(フレーム構造)”なら
ば、デコードされた16ラインがトップフィールド8ラ
イン、ボトムフィールド8ラインの2つに分割され、ト
ップフィールド8ラインは書き込みロウ番号WROWと
同じ番号を持つスロットへ、ボトムフィールド8ライン
はWROW+Nの番号を持つスロットへそれぞれ書き込
まれる。MODE=“FD(フィールド構造)”なら
ば、デコードされた16ラインが上部8ライン、下部8
ラインの2つに分割され、上部8ラインはWROW×2
の番号を持つスロットへ、下部8ラインはWROW×2
+1の番号を持つスロットへそれぞれ書き込まれる。以
上の手順によって、フレーム構造、フィールド構造の場
合双方とも、スロット番号がNより小さい領域はトップ
フィールドのデータのみ、スロット番号がN以上の領域
はボトムフィールドのデータのみが書き込まれる。しか
も、同一のフィールドでは、スロット番号の大きくなる
順番と、デコードされた画像データの書き込みの順序と
が一致し、またインターレース出力の順番とも一致す
る。よって、このような書き込み方法を行なえば、画像
出力は単純にスロット番号の増加する順番で読み出すこ
とによって正しい順序でインターレース出力が実現でき
る。この読み出しについては後に詳しく述べる。
First, the case where TYPE = “I” or “P” will be described. If MODE = “FR (frame structure)”, the decoded 16 lines are divided into two fields, top field 8 lines and bottom field 8 lines, and the top field 8 lines go to a slot having the same number as the write row number WROW. , The bottom field 8 lines are respectively written in the slots having the numbers of WROW + N. If MODE = “FD (field structure)”, the decoded 16 lines are the upper 8 lines and the lower 8 lines.
It is divided into two lines, the top 8 lines are WROW x 2
To the slot numbered, the lower 8 lines are WROW x 2
It is written in each slot having a number of +1. According to the above procedure, in both the frame structure and the field structure, only the top field data is written in the area having the slot number smaller than N, and only the bottom field data is written in the area having the slot number N or more. Moreover, in the same field, the order of increasing the slot number matches the order of writing the decoded image data, and also the order of interlaced output. Therefore, if such a writing method is performed, interlace output can be realized in the correct order by simply reading the image output in the order of increasing slot numbers. This reading will be described later in detail.

【0043】TYPE=“B”の場合を説明する。MO
DE=“FR(フレーム構造)”ならば、デコードされ
た16ラインがトップフィールド8ライン、ボトムフィ
ールド8ラインの2つに分割され、トップフィールド8
ラインは書き込みスロット番号WS1を持つスロット
へ、ボトムフィールド8ラインは書き込みスロット番号
WS2を持つスロットへそれぞれ書き込まれる。MOD
E=“FD(フィールド構造)”ならば、デコードされ
た16ラインが上部8ライン、下部8ラインの2つに分
割され、上部8ラインは書き込みスロット番号WS1を
持つスロットへ、下部8ラインは書き込みスロット番号
WS2を持つスロットへそれぞれ書き込まれる。第3の
フレームメモリ(FM2)13のそれぞれのスロット
は、トップフィールドのデータとボトムフィールドのデ
ータとを同時に格納することはない。この場合、スロッ
ト番号は第1のスロット番号指定部52から与えられる
ため、データ書き込み部35の動作は単純である。
The case where TYPE = “B” will be described. MO
If DE = “FR (frame structure)”, the decoded 16 lines are divided into two, top field 8 lines and bottom field 8 lines, and the top field 8
The line is written to the slot having the write slot number WS1 and the bottom field 8 line is written to the slot having the write slot number WS2. MOD
If E = “FD (field structure)”, the decoded 16 lines are divided into two, upper 8 lines and lower 8 lines, the upper 8 lines are written to the slot having the write slot number WS1, and the lower 8 lines are written. It is written in each slot having the slot number WS2. Each slot of the third frame memory (FM2) 13 does not store top field data and bottom field data at the same time. In this case, since the slot number is given from the first slot number designating section 52, the operation of the data writing section 35 is simple.

【0044】次に、読み出しフレームメモリの選択につ
いて説明する。読み出しフレームメモリは、トップフィ
ールドの画像出力開始時でのタイプ信号TYPEと、メ
モリ選択レジスタ42の値RQとで決定される。メモリ
選択レジスタ42の値RQは“0”、“1”又は“2”
をとることができ、その初期値は“2”である。また、
初期状態の色を指定するためにボーダーカラーレジスタ
44を使用する。
Next, selection of the read frame memory will be described. The read frame memory is determined by the type signal TYPE at the start of image output of the top field and the value RQ of the memory selection register 42. The value RQ of the memory selection register 42 is “0”, “1” or “2”
Can be taken, and its initial value is "2". Also,
The border color register 44 is used to specify the initial color.

【0045】まず、TYPE=“I”又は“P”の場合
を説明する。RQ=“2”ならば、データ読み出し部4
1は、ボーダーカラーレジスタ44に設定されているボ
ーダーカラー信号BCLを出力ピクチャOUTとして出
力し、1フレームの出力完了時にRQを“0”に更新す
る。RQ=“0”ならば、データ読み出し部41は、第
1のフレームメモリ(FM0)11からデータを読み出
し、出力を行ない、1フレームの出力完了時にRQを
“1”に更新する。RQ=“1”ならば、データ読み出
し部41は、第2のフレームメモリ(FM1)12から
データを読み出し、出力を行ない、1フレームの出力完
了時にRQを“0”に更新する。
First, the case where TYPE = "I" or "P" is described. If RQ = “2”, the data reading unit 4
1 outputs the border color signal BCL set in the border color register 44 as the output picture OUT, and updates RQ to “0” when the output of one frame is completed. If RQ = “0”, the data reading unit 41 reads data from the first frame memory (FM0) 11, outputs the data, and updates RQ to “1” when the output of one frame is completed. If RQ = “1”, the data reading unit 41 reads data from the second frame memory (FM1) 12, outputs the data, and updates RQ to “0” when the output of one frame is completed.

【0046】TYPE=“B”の場合には、常に第3の
フレームメモリ(FM2)13からデータを読み出し、
出力を行なう。メモリ選択レジスタ42の値RQは更新
されない。
When TYPE = "B", data is always read from the third frame memory (FM2) 13,
Output. The value RQ of the memory selection register 42 is not updated.

【0047】図10は、出力部16の概略動作を示して
いる。図10では、1つのコラムが半フレーム期間に対
応している。また、ピクチャI0のデコードは、その前
のピクチャのボトムフィールド出力開始時に開始される
としている。
FIG. 10 shows the general operation of the output section 16. In FIG. 10, one column corresponds to a half frame period. Further, it is assumed that the decoding of the picture I0 is started when the bottom field output of the previous picture is started.

【0048】書き込みは、既に説明したように、Iピク
チャ及びPピクチャについては第1のフレームメモリ
(FM0)11と第2のフレームメモリ(FM1)12
とを交互に使用する。また、読み出しについても、第1
のフレームメモリ(FM0)11と第2のフレームメモ
リ(FM1)12とを、タイミングは異なるが、交互に
使用する。すると、図10に示したように、第1のフレ
ームメモリ(FM0)11、第2のフレームメモリ(F
M1)12、第3のフレームメモリ(FM2)13、第
3のフレームメモリ(FM2)13という順番で、つま
りI0,P1,B2,B3という順番で出力がなされ
る。ここで、P4が出力される前にB2及びB3が出力
されるのは、P4がB2及びB3のデコード時に後方参
照用として使用されていることを考えると当然であり、
符号化された画像を正しい順番で出力できていることが
分る。
As described above, for writing, for the I picture and the P picture, the first frame memory (FM0) 11 and the second frame memory (FM1) 12 are used.
And are used alternately. As for the read, the first
The frame memory (FM0) 11 and the second frame memory (FM1) 12 are alternately used although their timings are different. Then, as shown in FIG. 10, the first frame memory (FM0) 11 and the second frame memory (F0
M1) 12, the third frame memory (FM2) 13, and the third frame memory (FM2) 13 are output in this order, that is, I0, P1, B2, B3. Here, it is natural that B2 and B3 are output before P4 is output, considering that P4 is used for backward reference when decoding B2 and B3.
It can be seen that the encoded images can be output in the correct order.

【0049】図10で、書き込みフレームメモリと読み
出しフレームメモリとが異なっている期間は、画像出力
が正常に行なわれる。ピクチャI0のボトムフィールド
すなわちボトム0の出力期間では第1のフレームメモリ
(FM0)11の書き込みと読み出しとが同時に行なわ
れているが、後に説明するように、第1のフレームメモ
リ(FM0)11からピクチャI0のボトムフィールド
データを読み出す前にピクチャP4のトップフィールド
データが第1のフレームメモリ(FM0)11へ書き込
まれることはない。ピクチャB2のトップフィールドす
なわちトップ2の出力期間、ピクチャB2のボトムフィ
ールドすなわちボトム2の出力期間及びピクチャB3の
トップフィールドすなわちトップ3の出力期間ではそれ
ぞれ第3のフレームメモリ(FM2)13の書き込みと
読み出しとが同時に行なわれているが、後に説明するよ
うに問題は生じない。
In FIG. 10, image output is normally performed while the write frame memory and the read frame memory are different. In the bottom field of the picture I0, that is, in the output period of the bottom 0, writing and reading of the first frame memory (FM0) 11 are performed at the same time. However, as described later, the first frame memory (FM0) 11 The top field data of the picture P4 is not written to the first frame memory (FM0) 11 before the bottom field data of the picture I0 is read. In the top field of the picture B2, that is, the output period of the top 2, the bottom field of the picture B2, that is, the output period of the bottom 2, and the top field of the picture B3, that is, the output period of the top 3, the writing and reading of the third frame memory (FM2) 13 are performed. And are being performed at the same time, but there will be no problem as described later.

【0050】次に、選択されたフレームメモリの中のど
のスロットから読み出しを行なうかについて説明する。
データ読み出し部41は、16ラインの出力を開始する
際に、読み出しスロットの番号を前半の8ライン出力用
と後半の8ライン出力用との2個決定する。この決定の
ため、16ライン毎に1づつ増加するロウカウンタ43
を利用している。ロウカウンタ43の値、すなわち読み
出しロウ番号RROWは、現在1フレーム中のどの部分
の画像出力を行なっているかを示すものである。トップ
フィールドの最初の16ラインを出力している際にはR
ROW=“0”であり、以下16ラインを出力する毎に
1づつ増加する。
Next, a description will be given of which slot in the selected frame memory is to be used for reading.
When starting the output of 16 lines, the data reading unit 41 determines two read slot numbers, one for the first half of 8 lines and the other for the latter half of 8 lines. For this determination, the row counter 43 is incremented by 1 every 16 lines.
Are using. The value of the row counter 43, that is, the read row number RROW, indicates which part of one frame the image is currently being output. R when outputting the first 16 lines of the top field
ROW = “0”, and is incremented by 1 every time 16 lines are output.

【0051】まず、TYPE=“I”又は“P”の場合
を説明する。最初の8ラインはRROW×2の番号を持
つスロットを、次の8ラインはRROW×2+1の番号
を持つスロットをそれぞれ使用する。データ書き込みの
際に説明したように、Iピクチャ及びPピクチャについ
ては、フレーム構造、フィールド構造にかかわらず、ト
ップフィールドとボトムフィールドとが分離されて格納
される。よって、上記のような手順で読み出しを行なえ
ば、トップフィールド、ボトムフィールドの順で正しく
出力が行なわれる。
First, the case where TYPE = "I" or "P" is described. The first 8 lines use slots with the number RROW × 2, and the next 8 lines use slots with the number RROW × 2 + 1. As described at the time of data writing, regarding the I picture and the P picture, the top field and the bottom field are separately stored regardless of the frame structure and the field structure. Therefore, if the reading is performed in the above-described procedure, the top field and the bottom field are correctly output.

【0052】TYPE=“B”の場合には、第2のスロ
ット番号指定部54から与えられる読み出しスロット番
号RS1,RS2を使用する。
When TYPE = "B", the read slot numbers RS1 and RS2 given from the second slot number designating unit 54 are used.

【0053】以上のように、Iピクチャ及びPピクチャ
の場合には一定の順序のスロットから、Bピクチャの場
合には第2のスロット番号指定部54によって指定され
たスロットから読み出せば良いので、データ読み出し部
41の動作は非常に単純である。
As described above, the I-picture and the P-picture can be read from the slots in a fixed order, and the B-picture can be read from the slot designated by the second slot number designating unit 54. The operation of the data reading unit 41 is very simple.

【0054】次に、書き込みスロット番号WS1,WS
2及び読み出しスロット番号RS1,RS2の各々の決
定方法について説明する。第1及び第2のスロット番号
指定部52,54の各々の動作は、おおまかにいえば、
スロット管理メモリ(SM)14からスロット番号を読
み出して出力するのみである。メモリ制御部55は、ス
ロット管理メモリ(SM)14からスロット番号を取り
出し、そのデータを別のアドレスに格納するのみであ
る。この別のアドレスに格納するときのアドレス計算は
非常に簡単であり、この格納によって、第2のスロット
番号指定部54が正しい順序で読み出しスロット番号R
S1,RS2を指定できるようになる。
Next, write slot numbers WS1 and WS
2 and read slot numbers RS1 and RS2 will be described. The operation of each of the first and second slot number designating sections 52 and 54 is roughly:
It only reads the slot number from the slot management memory (SM) 14 and outputs it. The memory control unit 55 only extracts the slot number from the slot management memory (SM) 14 and stores the data at another address. The address calculation when storing in another address is very simple, and this storage causes the second slot number designating unit 54 to read the slot numbers R in the correct order.
It becomes possible to specify S1 and RS2.

【0055】スロット管理メモリ(SM)14の先頭N
+4ワードの内容は、0からN+3までのスロット番号
に初期化されている。書き込みポインタ(M1)51は
初期値0であり、読み出しポインタ(M2)53は初期
値Xである。ここに、Xは第3のフレームメモリ(FM
2)13のスロット数、すなわちN+4である。
First N of slot management memory (SM) 14
The contents of the +4 word are initialized to slot numbers 0 to N + 3. The write pointer (M1) 51 has an initial value 0, and the read pointer (M2) 53 has an initial value X. Here, X is the third frame memory (FM
2) The number of slots is 13, that is, N + 4.

【0056】第1のスロット番号指定部52は、スロッ
ト管理メモリ(SM)14から2個のスロット番号を読
み出し、それを書き込みスロット番号WS1,WS2と
して供給する。スロット管理メモリ(SM)14へ供給
される読み出しアドレスは、M1及びM1+1である。
第2のスロット番号指定部54は、スロット管理メモリ
(SM)14から2個のスロット番号を読み出し、それ
を読み出しスロット番号RS1,RS2として供給す
る。スロット管理メモリ(SM)14へ供給される読み
出しアドレスは、M2及びM2+1である。第1及び第
2のスロット番号指定部52,54は、Bピクチャを1
6ラインデコードする毎に動作し、I又はPピクチャを
デコードしている際には全く動作しない。
The first slot number designating section 52 reads two slot numbers from the slot management memory (SM) 14 and supplies them as write slot numbers WS1 and WS2. The read addresses supplied to the slot management memory (SM) 14 are M1 and M1 + 1.
The second slot number designation unit 54 reads two slot numbers from the slot management memory (SM) 14 and supplies them as read slot numbers RS1 and RS2. The read addresses supplied to the slot management memory (SM) 14 are M2 and M2 + 1. The first and second slot number designation units 52 and 54 set the B picture to 1
It operates every 6 lines of decoding, and does not operate at all when decoding I or P pictures.

【0057】メモリ制御部55は、データ書き込み部3
5が書き込みを行なう際に、第1のスロット番号指定部
52が読み出すのと同様に、書き込みポインタ(M1)
51を用いてスロット管理メモリ(SM)14から2個
のスロット番号WS1,WS2を読み出す。この際にス
ロット管理メモリ(SM)14へ供給される読み出しア
ドレスは、M1及びM1+1である。次に、メモリ制御
部55は、書き込みロウ番号WROWとモード信号MO
DEとによって、現在書き込まれている2個のスロット
がそれぞれ画面の先頭から何番目に出力されなければな
らないかを決定して、2個のスロット番号WS1,WS
2をスロット管理メモリ(SM)14の中の別の位置へ
それぞれ格納する。具体的には、MODE=“FR(フ
レーム構造)”ならば、WS1の値をスロット管理メモ
リ(SM)14のアドレスM1+X−WROWの位置
に、WS2の値をスロット管理メモリ(SM)14のア
ドレスM1+X−WROW+Nの位置にそれぞれ格納す
る。MODE=“FD(フィールド構造)”ならば、W
S1の値をスロット管理メモリ(SM)14のアドレス
M1+Xの位置に、WS2の値をスロット管理メモリ
(SM)14のアドレスM1+X+1の位置にそれぞれ
格納する。
The memory control unit 55 has the data writing unit 3
When the 5 performs writing, the write pointer (M1) is used in the same manner as the first slot number designating unit 52 reads.
Two slot numbers WS1 and WS2 are read out from the slot management memory (SM) 14 by using 51. At this time, the read addresses supplied to the slot management memory (SM) 14 are M1 and M1 + 1. Then, the memory controller 55 writes the write row number WROW and the mode signal MO.
The DE is used to determine which of the two slots currently being written should be output from the beginning of the screen, and the two slot numbers WS1, WS
2 are stored in different positions in the slot management memory (SM) 14 respectively. Specifically, if MODE = “FR (frame structure)”, the value of WS1 is at the address M1 + X-WROW of the slot management memory (SM) 14, and the value of WS2 is at the address of the slot management memory (SM) 14. The data is stored in the positions of M1 + X-WROW + N. If MODE = “FD (field structure)”, W
The value of S1 is stored in the position of address M1 + X of the slot management memory (SM) 14, and the value of WS2 is stored in the position of address M1 + X + 1 of the slot management memory (SM) 14, respectively.

【0058】図11及び図12は、スロット管理メモリ
(SM)14の更新過程を示している。ここでは、簡単
のためN=6とした。1フレームあたりのスロット数は
12である。スロット管理メモリ(SM)14は、18
個のスロット番号をアドレス0〜17の位置に格納でき
るだけの容量を持つ。ピクチャB2はフレーム構造、ピ
クチャB3はフィールド構造である。期間0は初期状態
であり、スロット管理メモリ(SM)14の先頭10ワ
ードが0から9までに初期化されている。
11 and 12 show the process of updating the slot management memory (SM) 14. Here, for simplicity, N = 6. The number of slots per frame is 12. The slot management memory (SM) 14 is 18
It has a capacity to store each slot number in the positions of addresses 0 to 17. The picture B2 has a frame structure and the picture B3 has a field structure. Period 0 is an initial state, and the first 10 words of the slot management memory (SM) 14 are initialized to 0-9.

【0059】期間1は、ピクチャB2の最初の16ライ
ンのデコード開始時点である。このとき、書き込みは、
第3のフレームメモリ(FM2)13の10個のスロッ
トのうち書き込みポインタ(M1)51が指し示すアド
レスに対応する2個のスロット、つまりスロット0及び
1を使用する。また、メモリ制御部55は、その使用し
たスロット番号0と1とを、矢印で示される別アドレス
10,16の位置に格納する。以下、期間2、3、4と
デコードが進んでいく。期間5にB2トップフィールド
の画像出力が開始され、この時点での読み出しポインタ
(M2)53が指し示すアドレスに対応する2個のスロ
ット、つまりスロット0及び2から読み出しを行なう。
ところで、期間0では読み出しポインタ(M2)53が
指し示すアドレスのスロット番号は不定であったが、期
間5では読み出しポインタ(M2)53が指し示すアド
レスにはメモリ制御部55によってスロット番号が既に
格納されている。そして、スロット0、2ともB2トッ
プフィールドのデータが格納されており、スロット0は
最初の8ライン、スロット2は次の8ラインである。つ
まり、期間5では、B2トップフィールドの16ライン
分のデータを正しく読み出せている。このように書き込
み時のメモリ制御部55の動作によって、読み出しが正
しい順番で行なわれるようにスロット管理メモリ(S
M)14が書き換えられている。
The period 1 is a decoding start point of the first 16 lines of the picture B2. At this time, writing is
Of the 10 slots of the third frame memory (FM2) 13, 2 slots corresponding to the address indicated by the write pointer (M1) 51, that is, slots 0 and 1 are used. The memory control unit 55 also stores the used slot numbers 0 and 1 at the positions of the different addresses 10 and 16 indicated by the arrows. Thereafter, the decoding proceeds in the periods 2, 3, and 4. Image output of the B2 top field is started in period 5, and reading is performed from the two slots, that is, slots 0 and 2, corresponding to the address indicated by the read pointer (M2) 53 at this point.
By the way, the slot number of the address pointed to by the read pointer (M2) 53 is indefinite in the period 0, but the slot number is already stored in the address pointed by the read pointer (M2) 53 by the memory control unit 55 in the period 5. There is. B2 top field data is stored in both slots 0 and 2, with slot 0 being the first 8 lines and slot 2 being the next 8 lines. That is, in the period 5, the data for 16 lines of the B2 top field can be correctly read. As described above, by the operation of the memory control unit 55 at the time of writing, the slot management memory (S
M) 14 has been rewritten.

【0060】次に、期間6に注目する。期間5までの書
き込みを順に追っていくと、スロット0から9まで、つ
まり第3のフレームメモリ(FM2)13の全てのスロ
ットに書き込みを行なったことになる。よって、期間6
から一度使用したスロットを再使用することになる。期
間6で書き込みポインタ(M1)51が指し示すアドレ
スは、その直前の期間5で読み出しポインタ(M2)5
3が指し示していたアドレスである。このように、書き
込みポインタ(M1)51が指し示すアドレスは、その
直前に読み出しポインタ(M2)53が指し示していた
アドレス、つまり既に読み出しが終了しているスロット
となるため、常に使用可能である。したがって、図10
中に読み出し、書き込みとも第3のフレームメモリ(F
M2)13を使用している期間(トップ2、ボトム2及
びトップ3の出力期間)があっても、問題はない。
Next, pay attention to the period 6. When the writing up to the period 5 is sequentially followed, it means that writing has been performed to the slots 0 to 9, that is, all the slots of the third frame memory (FM2) 13. Therefore, period 6
Therefore, the slot used once will be reused. The address indicated by the write pointer (M1) 51 in the period 6 is the read pointer (M2) 5 in the period 5 immediately before that.
3 is the address pointed to. In this way, the address pointed to by the write pointer (M1) 51 is the address pointed to by the read pointer (M2) 53 immediately before that, that is, the slot for which reading has already been completed, so that it can always be used. Therefore, FIG.
Both reading and writing in the third frame memory (F
There is no problem even if there is a period in which M2) 13 is used (output period of top 2, bottom 2 and top 3).

【0061】ここで、例えばスロット0に注目すると、
スロット0のデータは期間5で読み出され、その直後の
期間6で再使用されている。このように、スロット0が
使用されていない期間はない。他のスロットも、初期状
態を除いてほとんど常に使用されているため、非常に効
率的なメモリ使用方法であることが分る。実際に、本発
明によれば、わずか半フレーム+4スロットのフレーム
メモリ(FM2)13でBピクチャのインターレース変
換を実現でき、メモリ容量の削減効果は絶大である。
Here, for example, focusing on slot 0,
The data in slot 0 is read in period 5 and reused in period 6 immediately thereafter. Thus, there is no period when slot 0 is unused. The other slots are almost always used except in the initial state, which proves to be a very efficient memory usage method. In fact, according to the present invention, the interlace conversion of B picture can be realized by the frame memory (FM2) 13 of only half frame + 4 slots, and the effect of reducing the memory capacity is great.

【0062】図13〜図16は、図1のMPEGデコー
ダ10の詳細動作を示す図である。図13〜図16で
は、垂直帰線区間VBを利用して、画像のデコード開始
に影響がないようにしている。なお、図15及び図16
では、図11及び図12の中の対応期間の番号が括弧書
きで示されている。
13 to 16 are diagrams showing the detailed operation of the MPEG decoder 10 of FIG. In FIGS. 13 to 16, the vertical blanking interval VB is used so that the start of image decoding is not affected. Note that FIG. 15 and FIG.
Then, the corresponding period numbers in FIGS. 11 and 12 are shown in parentheses.

【0063】前に述べたように、VLD31は、16ラ
インの画像データのデコードを行なう前に一旦その動作
を停止し、割り込み信号INTの受信を待つ状態に入
る。VLD31の動作停止は、出力部16がデータを必
要とする前にデータ書き込み部35によってそのデータ
が書き潰されることがないようにするために必要であ
る。また、まだデコードが完了していないデータを出力
部16が誤って読み出すことを避ける意味もある。VL
D31の再起動のタイミングは、タイプ信号TYPE
と、書き込みロウ番号WROWと、割り込み信号INT
とに依存している。
As described above, the VLD 31 temporarily stops its operation before decoding the image data of 16 lines and enters a state of waiting for the reception of the interrupt signal INT. The operation stop of the VLD 31 is necessary to prevent the data writing unit 35 from writing the data before the output unit 16 needs the data. It also has the meaning of preventing the output unit 16 from erroneously reading data that has not been decoded yet. VL
The timing for restarting D31 is the type signal TYPE
, Write row number WROW, and interrupt signal INT
Depends on and.

【0064】まず、TYPE=“I”又は“P”の場合
を説明する。ある画像フレームの最初の16ラインをデ
コードしようとしている場合には、書き込みロウ番号W
ROWが0となっている。WROW=0の場合には、ボ
トムフィールドの16ラインの出力の完了を待って、次
の16ラインの出力を開始する瞬間にVLD31は再起
動する。その他の場合には、書き込みロウ番号WROW
が0以外となっている。WROW≠0の場合には、出力
部16が16ラインを出力開始する瞬間、又は垂直帰線
区間VBが開始する瞬間にVLD31は再起動する。
First, the case where TYPE = "I" or "P" will be described. When attempting to decode the first 16 lines of an image frame, write row number W
ROW is 0. When WROW = 0, the VLD 31 is restarted at the moment when the output of the next 16 lines is started after waiting for the completion of the output of the 16 lines of the bottom field. In other cases, write row number WROW
Is other than 0. When WROW ≠ 0, the VLD 31 is restarted at the moment when the output unit 16 starts outputting 16 lines or at the moment when the vertical blanking interval VB starts.

【0065】TYPE=“B”の場合には、垂直帰線区
間VBの開始の時、トップフィールドの16ライン(最
終16ラインを除く)の表示開始の時、又はボトムフィ
ールドの16ライン(最終16ラインを除く)の表示開
始の時に、VLD31は再起動する。また、Bピクチャ
のデコードが再開されるのと同一のタイミングで、第1
のスロット番号指定部52やメモリ制御部55は動作を
行なう。
When TYPE = "B", at the start of the vertical blanking interval VB, at the start of display of 16 lines of the top field (excluding the last 16 lines), or at the start of 16 lines of the bottom field (final 16 lines). The VLD 31 is restarted at the start of display (except for the line). Also, at the same timing as the decoding of the B picture is restarted, the first
The slot number designating section 52 and the memory control section 55 are operated.

【0066】図13及び図14に示すように、ピクチャ
I0及びピクチャP1をデコードして書き込みを行なう
場合には、まだ全く使用されていない領域に書き込みを
行なっていく。次のピクチャP4のデコードは、上記の
制御により、ピクチャI0のボトムフィールドのうちの
16ラインの出力の完了を待って、期間18に開始す
る。期間18では、第1のフレームメモリ(FM0)1
1への書き込みと読み出しとが同時に行なわれている
が、書き込みスロット(スロット0及び6)と読み出し
スロット(スロット8及び9)とが一致していないので
問題はない。スロット6のデータは、その直前の期間1
7で読み出されている。もしピクチャP4のデコードの
開始タイミングが期間17であるとピクチャI0のボト
ムフィールドのデータを正しく読み出せなくなることを
考えると、ピクチャP4のデコード開始時期を遅らせた
ことによる効果が分る。同様に、期間19でも、第1の
フレームメモリ(FM0)11におけるピクチャP4の
書き込みとピクチャI0の読み出しとの競合は生じな
い。
As shown in FIGS. 13 and 14, when the picture I0 and the picture P1 are decoded and written, writing is performed in an area that is not used at all. Decoding of the next picture P4 starts in the period 18 after the completion of output of 16 lines of the bottom field of the picture I0 by the above control. In the period 18, the first frame memory (FM0) 1
Although writing to 1 and reading are performed simultaneously, there is no problem because the write slots (slots 0 and 6) and the read slots (slots 8 and 9) do not match. The data of slot 6 is the period 1 immediately before it.
It has been read in 7. Considering that the bottom field data of the picture I0 cannot be read correctly if the decoding start timing of the picture P4 is in the period 17, the effect of delaying the decoding start timing of the picture P4 can be seen. Similarly, in the period 19, there is no competition between the writing of the picture P4 and the reading of the picture I0 in the first frame memory (FM0) 11.

【0067】次に、図15及び図16に移り、ピクチャ
B2及びピクチャB3のデコードに入る。この場合、ピ
クチャB2及びピクチャB3のデコード開始タイミング
は、垂直帰線区間VBの開始時に一致する。このタイミ
ングは、Iピクチャ及びPピクチャの場合と異なる。そ
して、前に説明したスロット管理メモリ(SM)14を
利用したコントロールが行なわれる。その結果、図15
及び図16に示すようなスロットに書き込み、読み出し
が行なわれる。期間31で読み出されているスロット0
は、その直前の期間30で書き込まれている。Bピクチ
ャの場合、基本的にあるスロットから読み出した期間の
1又は2期間後にそのスロットに書き込みが行なわれて
いるため、データが書き潰されることなく出力される。
そして、Bピクチャ用に使用されているスロット数は、
1フレーム分の12よりも少ない10スロットで十分で
ある。
Next, moving to FIGS. 15 and 16, the decoding of pictures B2 and B3 starts. In this case, the decoding start timing of the picture B2 and the picture B3 coincides with the start of the vertical blanking interval VB. This timing is different from the case of I picture and P picture. Then, the control using the slot management memory (SM) 14 described above is performed. As a result, FIG.
And writing and reading are performed in the slots as shown in FIG. Slot 0 read in period 31
Is written in the period 30 immediately before that. In the case of a B picture, data is output without being overwritten because data is basically written in that slot after one or two periods of the period read from a certain slot.
The number of slots used for B pictures is
Ten slots, less than 12 for one frame, are sufficient.

【0068】上記の例では1フレームが12スロット
で、Bピクチャ用に10スロットを使用しているが、一
般に1フレームを2Nスロットとすると、Bピクチャ用
にN+4スロットを使用することによって全く同様に制
御可能である。なお、もちろんBピクチャ用にN+5以
上のスロット数を使用することも可能である。また、こ
こでは1スロットを画像8ライン分としたが、もっと大
きい単位での管理も可能である。
In the above example, one frame has 12 slots and 10 slots are used for B pictures. Generally, if 1 frame is 2N slots, by using N + 4 slots for B pictures, exactly the same is done. It is controllable. Of course, it is also possible to use N + 5 or more slots for B pictures. Also, here, one slot corresponds to eight lines of the image, but management in a larger unit is also possible.

【0069】以上説明したように、図1のMPEGデコ
ーダ10は約2.5フレーム分のメモリを使用し、しか
も個々の回路ブロックの動作は非常に簡単である。
As described above, the MPEG decoder 10 of FIG. 1 uses a memory for about 2.5 frames, and the operation of each circuit block is very simple.

【0070】[0070]

【発明の効果】以上説明してきたとおり、本発明によれ
ば、データメモリを複数個のスロットに分割し、スロッ
ト管理メモリに記憶されたスロット番号を用いてデータ
メモリの読み書きを制御することとしたので、約半フレ
ーム分のメモリでBピクチャのインターレース変換を実
現でき、MPEGデコーダが有するフレームメモリの容
量が削減される。
As described above, according to the present invention, the data memory is divided into a plurality of slots, and the reading / writing of the data memory is controlled by using the slot number stored in the slot management memory. Therefore, the interlace conversion of the B picture can be realized with the memory for about half a frame, and the capacity of the frame memory of the MPEG decoder can be reduced.

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

【図1】本発明に係るMPEGデコーダの具体例を示す
ブロック図である。
FIG. 1 is a block diagram showing a specific example of an MPEG decoder according to the present invention.

【図2】図1中の第1のフレームメモリの内部構成を示
す概念図である。
FIG. 2 is a conceptual diagram showing an internal configuration of a first frame memory in FIG.

【図3】図1中の第2のフレームメモリの内部構成を示
す概念図である。
FIG. 3 is a conceptual diagram showing an internal configuration of a second frame memory in FIG.

【図4】図1中の第3のフレームメモリの内部構成を示
す概念図である。
FIG. 4 is a conceptual diagram showing an internal configuration of a third frame memory in FIG.

【図5】図1中のスロット管理メモリの内部構成を示す
概念図である。
5 is a conceptual diagram showing an internal configuration of a slot management memory in FIG.

【図6】図1中のデコード部の内部構成を示すブロック
図である。
FIG. 6 is a block diagram showing an internal configuration of a decoding section in FIG.

【図7】図1中の出力部の内部構成を示すブロック図で
ある。
7 is a block diagram showing an internal configuration of an output unit in FIG.

【図8】図1中の制御部の内部構成を示すブロック図で
ある。
8 is a block diagram showing an internal configuration of a control unit in FIG.

【図9】図1中のデコード部の概略動作を示す図であ
る。
9 is a diagram showing a schematic operation of a decoding unit in FIG.

【図10】図1中の出力部の概略動作を示す図である。FIG. 10 is a diagram showing a schematic operation of an output unit in FIG.

【図11】図1中のスロット管理メモリの更新過程を示
す図である。
11 is a diagram showing an updating process of the slot management memory in FIG. 1. FIG.

【図12】図11に続く図である。12 is a view following FIG. 11. FIG.

【図13】図1のMPEGデコーダの詳細動作を示す図
である。
13 is a diagram showing a detailed operation of the MPEG decoder of FIG.

【図14】図13に続く図である。FIG. 14 is a diagram subsequent to FIG. 13;

【図15】図14に続く図である。FIG. 15 is a diagram subsequent to FIG. 14;

【図16】図15に続く図である。FIG. 16 is a diagram following FIG. 15;

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

10 MPEGデコーダ 11 第1のフレームメモリ(FM0) 12 第2のフレームメモリ(FM1) 13 第3のフレームメモリ(FM2) 14 スロット管理メモリ(SM) 15 デコード部 16 出力部 21 アドレスバス 22 データバス 30 データ処理部 31 可変長復号器(VLD) 32 逆量子化器(IQ)と、 33 逆離散コサイン変換器(IDCT) 34 動き補償器(MC) 35 データ書き込み部 36 メモリ選択レジスタ 37 ロウカウンタ 41 データ読み出し部 42 メモリ選択レジスタ 43 ロウカウンタ 44 ボーダーカラーレジスタ 51 書き込みポインタ(M1) 52 第1のスロット番号指定部 53 読み出しポインタ(M2) 54 第2のスロット番号指定部 55 メモリ制御部 61 アドレスバス 62 データバス IN 入力ピクチャ INT 割り込み信号 MODE モード信号 OUT 出力ピクチャ RROW 読み出しロウ番号 RS1,RS2 読み出しスロット番号 TYPE タイプ信号 WROW 書き込みロウ番号 WS1,WS2 書き込みスロット番号 10 MPEG Decoder 11 First Frame Memory (FM0) 12 Second Frame Memory (FM1) 13 Third Frame Memory (FM2) 14 Slot Management Memory (SM) 15 Decoding Unit 16 Output Unit 21 Address Bus 22 Data Bus 30 Data processing unit 31 Variable length decoder (VLD) 32 Inverse quantizer (IQ) 33 Inverse discrete cosine transformer (IDCT) 34 Motion compensator (MC) 35 Data writing unit 36 Memory selection register 37 Row counter 41 data Read unit 42 Memory selection register 43 Row counter 44 Border color register 51 Write pointer (M1) 52 First slot number designation unit 53 Read pointer (M2) 54 Second slot number designation unit 55 Memory control unit 61 Address bus 62 Data bar IN Input picture INT Interrupt signal MODE mode signal OUT Output picture RROW Read row number RS1, RS2 Read slot number TYPE type signal WROW Write row number WS1, WS2 Write slot number

───────────────────────────────────────────────────── フロントページの続き (72)発明者 ウィリアム ブレント ウィルソン シンガポール国 1441 ジャラン シンガ 17 ─────────────────────────────────────────────────── ─── Continued Front Page (72) Inventor William Brent Wilson Singapore Country 1441 Jalan Singa 17

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 N+4個のスロットを有するデータメモ
リと、 0からN+3までに初期化された先頭のN+4個のスロ
ット番号を含む2N+6個のスロット番号を記憶するた
めのスロット管理メモリと、 初期値0を有する書き込みポインタと、 初期値N+4を有する読み出しポインタと、 前記データメモリのN+4個のスロットのうちの指定さ
れた2個のスロットにそれぞれデータを書き込むための
データ書き込み部と、 前記データメモリのN+4個のスロットのうちの指定さ
れた2個のスロットからそれぞれデータを読み出すため
のデータ読み出し部と、 前記書き込みポインタの値と、該書き込みポインタの値
に1を加えた値とを各々アドレスとして前記スロット管
理メモリから2個のスロット番号を読み出し、該読み出
した2個のスロット番号を前記データ書き込み部へ供給
するための第1のスロット番号指定部と、 前記データメモリのスロットの読み出し順序を予測し
て、前記データ書き込み部へ供給された2個のスロット
番号を前記スロット管理メモリの中の別の位置へそれぞ
れ格納し、かつ前記書き込みポインタを2だけ増加させ
るためのメモリ制御部と、 前記読み出しポインタの値と、該読み出しポインタの値
に1を加えた値とを各々アドレスとして前記スロット管
理メモリから2個のスロット番号を読み出し、該読み出
した2個のスロット番号を前記データ読み出し部へ供給
し、かつ前記読み出しポインタを2だけ増加させるため
の第2のスロット番号指定部とを備えたことを特徴とす
る画像処理装置。
1. A data memory having N + 4 slots, a slot management memory for storing 2N + 6 slot numbers including the first N + 4 slot numbers initialized from 0 to N + 3, and an initial value. A write pointer having 0, a read pointer having an initial value N + 4, a data writing unit for writing data to designated two slots of N + 4 slots of the data memory, and A data reading unit for reading data from each of two designated slots out of N + 4 slots, a value of the write pointer, and a value obtained by adding 1 to the value of the write pointer as the addresses. Two slot numbers are read from the slot management memory, and the two read slot numbers are read. A first slot number designating unit for supplying a slot number to the data writing unit, and predicting a reading order of the slots of the data memory to calculate the two slot numbers supplied to the data writing unit. A memory control unit for respectively storing at different positions in the slot management memory and increasing the write pointer by 2, a value of the read pointer, and a value obtained by adding 1 to the value of the read pointer. A second slot number designation for reading two slot numbers from the slot management memory as addresses, supplying the read two slot numbers to the data reading unit, and incrementing the read pointer by 2. And an image processing device.
JP3607996A 1995-03-01 1996-02-23 Image processing device Expired - Fee Related JP3307822B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3607996A JP3307822B2 (en) 1995-03-01 1996-02-23 Image processing device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP7-42027 1995-03-01
JP4202795 1995-03-01
JP3607996A JP3307822B2 (en) 1995-03-01 1996-02-23 Image processing device

Publications (2)

Publication Number Publication Date
JPH08298666A true JPH08298666A (en) 1996-11-12
JP3307822B2 JP3307822B2 (en) 2002-07-24

Family

ID=26375107

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3607996A Expired - Fee Related JP3307822B2 (en) 1995-03-01 1996-02-23 Image processing device

Country Status (1)

Country Link
JP (1) JP3307822B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004008776A1 (en) * 2002-07-15 2004-01-22 Matsushita Electric Industrial Co., Ltd. Moving picture encoding device and moving picture decoding device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639176B (en) * 2013-11-08 2018-02-13 上海华虹集成电路有限责任公司 The asynchronous decoder and method of BMC signals

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004008776A1 (en) * 2002-07-15 2004-01-22 Matsushita Electric Industrial Co., Ltd. Moving picture encoding device and moving picture decoding device
US7742523B2 (en) 2002-07-15 2010-06-22 Panasonic Corporation Moving picture coding apparatus and moving picture decoding apparatus
US7760803B2 (en) 2002-07-15 2010-07-20 Panasonic Corporation Moving picture encoding device and moving picture decoding device
US8139637B2 (en) 2002-07-15 2012-03-20 Panasonic Corporation Moving picture coding apparatus and moving picture decoding apparatus
US8989264B2 (en) 2002-07-15 2015-03-24 Panasonic Intellectual Property Corporation Of America Moving picture coding apparatus and moving picture decoding apparatus
US9001891B2 (en) 2002-07-15 2015-04-07 Panasonic Intellectual Property Corporation Of America Moving picture coding apparatus and moving picture decoding apparatus
US9398305B2 (en) 2002-07-15 2016-07-19 Godo Kaisha Ip Bridge 1 Moving picture coding apparatus and moving picture decoding apparatus
US9402081B2 (en) 2002-07-15 2016-07-26 Godo Kaisha Ip Bridge 1 Moving picture coding apparatus and moving picture decoding apparatus
US9420301B2 (en) 2002-07-15 2016-08-16 Godo Kaisha Ip Bridge 1 Moving picture coding apparatus and moving picture decoding apparatus
US9473781B2 (en) 2002-07-15 2016-10-18 Godo Kaisha Ip Bridge 1 Moving picture coding apparatus and moving picture decoding apparatus
US9479790B2 (en) 2002-07-15 2016-10-25 Godo Kaisha Ip Bridge 1 Moving picture coding apparatus and moving picture decoding apparatus
US9906806B2 (en) 2002-07-15 2018-02-27 Godo Kaisha Ip Bridge 1 Moving picture coding apparatus and moving picture decoding apparatus
US9936210B2 (en) 2002-07-15 2018-04-03 Godo Kaisha Ip Bridge 1 Moving picture coding apparatus and moving picture decoding apparatus
US9942561B2 (en) 2002-07-15 2018-04-10 Godo Kaisha Ip Bridge 1 Moving picture coding apparatus and moving picture decoding apparatus
US10230971B2 (en) 2002-07-15 2019-03-12 Godo Kaisha Ip Bridge 1 Moving picture coding apparatus and moving picture decoding apparatus

Also Published As

Publication number Publication date
JP3307822B2 (en) 2002-07-24

Similar Documents

Publication Publication Date Title
JP3943129B2 (en) Using memory to decode and display video with 3: 2 pulldown
KR100376207B1 (en) Method and apparatus for efficient addressing of DRAM in video expansion processor
US6104416A (en) Tiling in picture memory mapping to minimize memory bandwidth in compression and decompression of data sequences
US5841475A (en) Image decoding with dedicated bidirectional picture storage and reduced memory requirements
US6320909B1 (en) Picture decoding and display unit including a memory having reduce storage capacity for storing pixel data
US5729303A (en) Memory control system and picture decoder using the same
US5754243A (en) Letter-box transformation device
US5929911A (en) Multiformat reduced memory MPEG-2 compliant decoder
EP1147671B1 (en) Method and apparatus for performing motion compensation in a texture mapping engine
JP3141772B2 (en) MPEG decoder and decoding method thereof
KR100472564B1 (en) Image processor
US6064803A (en) Image information decoder with a reduced capacity frame memory
JP4702967B2 (en) Image decoding method and image processing apparatus
JPH07184214A (en) Picture processing system
JPH08242447A (en) Decoding method and receiver
JP3307822B2 (en) Image processing device
JP2863096B2 (en) Image decoding device by parallel processing
JPH10145237A (en) Compressed data decoding device
JP3307856B2 (en) Image processing device
JP4769268B2 (en) MPEG video decoder and MPEG video decoding method
JPH08163575A (en) Method and device for decoding picture
JP3262464B2 (en) Image decoding device
JPH114443A (en) Information processing unit
Wang et al. SDRAM bus schedule of HDTV video decoder
KR100269427B1 (en) Method for generating address in a frame memory

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090517

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100517

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110517

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees