JP2001223987A - Memory managing method, picture encoding method, picture decoding method, picture display method, memory managing device and memory managing program recording medium - Google Patents

Memory managing method, picture encoding method, picture decoding method, picture display method, memory managing device and memory managing program recording medium

Info

Publication number
JP2001223987A
JP2001223987A JP2000344223A JP2000344223A JP2001223987A JP 2001223987 A JP2001223987 A JP 2001223987A JP 2000344223 A JP2000344223 A JP 2000344223A JP 2000344223 A JP2000344223 A JP 2000344223A JP 2001223987 A JP2001223987 A JP 2001223987A
Authority
JP
Japan
Prior art keywords
memory
image
image data
data
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000344223A
Other languages
Japanese (ja)
Inventor
Shinya Sumino
眞也 角野
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 JP2000344223A priority Critical patent/JP2001223987A/en
Publication of JP2001223987A publication Critical patent/JP2001223987A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To reduce the possibility of the erasure of screen data required for encoding, decoding and display by enhancing memory bank usage efficiency. SOLUTION: FM1a, FM1b, FM2a and FM2b are respectively the first screen area of a first picture group, the second screen area of the first picture group, the first screen area of a second picture group and the second screen area of the second picture group. Besides, AD12a and AD12b are respectively the first address start position of the first picture group and the second address start position of the first picture group and, then screen sizes SZ1a and SZ1b are secured from each start position toward a high-order address concerning the first picture group. In the second picture group, the screen sizes SZ2a and SZ2b are secured toward the high-order addresses from AD12b-SZ2a and AD34a- SZ2b.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、メモリ管理方法、
画像符号化方法、画像復号化方法、画像表示方法、メモ
リ管理装置、画像符号化装置、画像復号化装置、画像表
示装置、メモリ管理プログラム記録媒体、画像符号化プ
ログラム記録媒体、画像復号化プログラム記録媒体およ
び画像表示プログラム記録媒体に関するものであり、特
に、複数の画像系列を同時に符号化・復号化・あるいは
表示するために必要なメモリ容量を節約できるメモリ管
理方法、そのメモリを利用した画像符号化・画像復号化
・画像表示方法、これらメモリ管理方法、画像符号化・
画像復号化・画像表示方法に対応する装置、およびそれ
をソフトウエアで実施するためのプログラムが記録され
た記録媒体に関するものである。
[0001] The present invention relates to a memory management method,
Image encoding method, image decoding method, image display method, memory management device, image encoding device, image decoding device, image display device, memory management program recording medium, image encoding program recording medium, image decoding program recording The present invention relates to a medium and an image display program recording medium, and in particular, to a memory management method capable of saving a memory capacity required for simultaneously encoding, decoding, or displaying a plurality of image sequences, and image encoding using the memory. Image decoding, image display methods, these memory management methods, image encoding
The present invention relates to an apparatus corresponding to an image decoding / image display method and a recording medium on which a program for executing the method is implemented by software.

【0002】[0002]

【従来の技術】近年、音声,画像,その他の画素値を統
合的に扱うマルチメディア時代を迎え、従来からの情報
メディア,つまり新聞,雑誌,テレビ,ラジオ,電話等
の情報を人に伝達する手段がマルチメディアの対象とし
て取り上げられるようになってきた。一般に、マルチメ
ディアとは、文字だけでなく、図形、音声、特に画像等
を同時に関連づけて表すことをいうが、上記従来の情報
メディアをマルチメディアの対象とするには、その情報
をディジタル形式にして表すことが必須条件となる。
2. Description of the Related Art In recent years, the multimedia era in which voice, image, and other pixel values are handled in an integrated manner has been entered, and conventional information media, that is, information such as newspapers, magazines, televisions, radios, and telephones are transmitted to humans. Means have been taken up as a subject of multimedia. Generally, multimedia means not only characters but also graphics, sounds, and especially images, etc. are simultaneously associated with each other. To make the above-mentioned conventional information media the target of multimedia, the information must be expressed in digital form. Is an essential condition.

【0003】ところで、上記各情報メディアの持つ情報
量をディジタル情報量として見積もってみると、文字の
場合、1文字当たりの情報量は1〜2バイトであるのに
対し、電話品質の音声の場合は、1秒当たり64kbi
t、さらに現行テレビ受信品質の動画については、1秒
当たり100Mbit以上の情報量が必要となり、上記情
報メディアでその膨大な情報をディジタル形式でそのま
ま扱うことは現実的ではない。例えば、テレビ電話は、
64kbps〜1.5Mbpsの伝送速度を持つサービス総合デ
ィジタル網(ISDN:Integreted Services Digital N
etwork)によってすでに実用化されているが、テレビ・
カメラの映像をそのままISDNで送ることは不可能で
ある。そこで、必要となってくるのが情報の圧縮技術で
あり、例えば、テレビ電話の場合、ITU−T(国際電
気通信連合 電気通信標準化部門)で国際標準化された
H.261やH.263規格の動画圧縮技術が用いられ
ている。また、MPEG1規格の情報圧縮技術による
と、通常の音楽用CD(コンパクト・ディスク)に音声
情報とともに画像情報を収録することも可能となる。
By the way, when the information amount of each information medium is estimated as a digital information amount, the amount of information per character is 1 to 2 bytes, while the amount of information per character is 1 to 2 bytes. Is 64 kbi per second
At the same time, for a moving image of the current television reception quality, an information amount of 100 Mbit or more per second is required, and it is not realistic to handle the huge amount of information in the above-mentioned information medium in digital form. For example, a videophone
Integrated Services Digital Network (ISDN) with a transmission speed of 64 kbps to 1.5 Mbps
etwork) has already been put into practical use,
It is impossible to send the camera image as it is via ISDN. Therefore, information compression technology is needed. For example, in the case of a videophone, H.264 standardized by ITU-T (International Telecommunication Union Telecommunication Standardization Sector) has been adopted. 261 and H.E. H.263 video compression technology is used. According to the information compression technology of the MPEG1 standard, it is also possible to record image information together with audio information on a normal music CD (compact disc).

【0004】ここで、MPEG(Moving Picture Exper
ts Group)とは、動画像の画素値圧縮の国際規格であ
り、MPEG1は、動画画素値を1.5Mbpsまで、つま
りテレビジョン信号の情報を約100分の1にまで圧縮
できる規格である。また、MPEG1規格を対象とする
伝送速度が主として約1.5Mbpsに制限されていること
から、さらなる高画質化の要求をみたすべく規格化され
たMPEG2では、動画画素値が2〜15Mbpsに圧縮さ
れる。
Here, MPEG (Moving Picture Exper)
ts Group) is an international standard for pixel value compression of moving images, and MPEG1 is a standard that can compress moving image pixel values to 1.5 Mbps, that is, information of television signals to about 1/100. In addition, since the transmission speed for the MPEG1 standard is mainly limited to about 1.5 Mbps, the moving picture pixel value is compressed to 2 to 15 Mbps in the MPEG2 standardized to meet the demand for higher image quality. You.

【0005】さらに現状では、MPEG1,MPEG2
と標準化を進めてきた作業グループ(ISO/IEC JTC1/SC2
9/WG11) によって、画像に含まれる物体単位で符号化・
操作を可能とし、マルチメディア時代に必要とされる新
たな機能を実現するMPEG4が規格化されつつある。
MPEG4では、当初、低ビットレートの符号化方法の標準
化を目指してきたが、現在はインタレース画像の符号化
や高ビットレートの符号化を含む、より汎用的な符号化
規格に拡張されている。
Further, at present, MPEG1, MPEG2
And the working group that has promoted standardization (ISO / IEC JTC1 / SC2
9 / WG11), encoding and
MPEG4, which enables operation and realizes new functions required in the multimedia age, is being standardized.
MPEG4 initially aimed to standardize low bit rate coding methods, but is now being extended to more general coding standards, including interlaced image coding and high bit rate coding. .

【0006】MPEG4の特徴の1つに、複数の画像系
列を同時に符号化し伝送する仕組みが挙げられる。これ
は、複数の画像によって1つの画像シーンを構成できる
ようにしたものであり、例えば、前景と背景とを別の画
像系列にしてこれらのフレーム周波数や画質・ビットレ
ートを個別に変更することが可能であり、複数の画像系
列を、テレビジョン受信機等におけるマルチ画面のよう
に、水平もしくは垂直方向に並べてユーザが所望の画像
系列のみを抽出したり拡大表示したりできるようになっ
た。
One of the features of MPEG4 is a mechanism for simultaneously encoding and transmitting a plurality of image sequences. This makes it possible to compose one image scene from a plurality of images. For example, it is possible to make the foreground and the background different from each other and change their frame frequency, image quality, and bit rate individually. It is possible to arrange a plurality of image sequences in a horizontal or vertical direction like a multi-screen in a television receiver or the like, so that a user can extract only a desired image sequence or enlarge and display it.

【0007】さて、図15は、画像系列に対しMPEG符号
化を行った代表的な例を示すものである。これは、MPEG
1またはMPEG2のフレーム構造の例を示すものであり、MP
EG4では或るオブジェクトのVOPの参照構造に相当す
る。MPEG符号化では、画面内演算のみで符号化されるフ
レーム(Iフレーム)と、画面間の相関を利用して画面
間予測符号化を行うフレーム(Pフレーム)、さらに
は、過去のフレームと未来のフレームとに基づき双方向
予測符号化を行うフレーム(Bフレーム)がある。
FIG. 15 shows a typical example in which an image sequence is subjected to MPEG coding. This is MPEG
1 or MPEG2 frame structure
EG4 corresponds to the VOP reference structure of a certain object. In MPEG coding, a frame (I frame) that is coded only by intra-screen calculations, a frame (P frame) that performs inter-screen prediction coding using correlation between screens, and a past frame and a future frame There is a frame (B frame) in which bidirectional prediction encoding is performed based on the frame (B).

【0008】図15は例えば連続する8つのフレームFR
1, FR2, ..., FR8に対しMPEG符号化を行った場合を示す
ものであり、フレームFR1とFR5がIフレーム、残りのフ
レーム、即ち、FR2, FR3, FR4及びFR6, FR7, FR8
がPフレームである。Iフレームはそれ自体で復号化が
可能であるが、Pフレームは、参照する前時刻の画面が
正しく符号化・復号化できなければ当該画面を正しく符
号化・復号化することができない。このため、ビットス
トリームの伝送誤りや、復号化時の障害が発生した場合
は、次のIフレームまで正しい画像データを得ることが
できない。さて、Pフレームの符号化・復号化では参照
画面が必要であり、当該画面の符号化・復号化過程のデ
ータを記録するための1画面と合わせて、合計2画面分の
メモリが1画像系列(オブジェクト)の符号化・復号化
に必要である。同様に、n個の画像系列の符号化・復号
化には2n画面分のメモリエリアが必要である。このた
め、従来はメモリアドレス空間を2n個に分割し、分割
された各エリア(バンク)を1画面分のメモリとして利
用し、これにその画像データを格納していた。
FIG. 15 shows, for example, eight consecutive frames FR.
1, FR2,..., FR8 when MPEG coding is performed, where frames FR1 and FR5 are I frames and the remaining frames, ie, FR2, FR3, FR4 and FR6, FR7, FR8.
Is a P frame. The I frame can be decoded by itself, but the P frame cannot be correctly coded / decoded if the screen at the time before reference cannot be coded / decoded correctly. Therefore, when a transmission error of a bit stream or a failure at the time of decoding occurs, correct image data cannot be obtained until the next I frame. By the way, a reference screen is necessary for encoding / decoding of a P frame, and together with one screen for recording data of the encoding / decoding process of the screen, a memory for a total of two screens is one image series. Necessary for encoding / decoding of (object). Similarly, encoding / decoding of n image sequences requires a memory area for 2n screens. Therefore, conventionally, the memory address space is divided into 2n pieces, and each divided area (bank) is used as a memory for one screen, and the image data is stored in this.

【0009】図16は従来のメモリアドレスの分割の仕
方の例を示すものである。同図において、FM1a, FM1b,
FM2a, FM2b, FM3a, FM3bは、それぞれ第1の画像系列の
第1の画面エリア、 第1の画像系列の第2の画面エリ
ア、第2の画像系列の第1の画面エリア、第2の画像系
列の第2の画面エリア、第3の画像系列の第1の画面エリ
ア、第3の画像系列の第2の画面エリアである。また、A
D1a, AD1b, AD2a, AD2b, AD3a, AD3bは、それぞれ第1
の画像系列の第1のアドレス開始位置、第1の画像系列
の第2のアドレス開始位置、第2の画像系列の第1のアド
レス開始位置、第2の画像系列の第2のアドレス開始位
置、第3の画像系列の第1のアドレス開始位置、第3の
画像系列の第2のアドレス開始位置であり、AD1aから A
D1b−1までが第1aのメモリバンクに、AD1bからAD2a
−1までが第1bのメモリバンクに、AD2a からAD2b−
1までが第2aのメモリバンクに、AD2bから AD3a−1
までが第2bのメモリバンクに、AD3aからAD3b−1まで
が第3aのメモリバンクに、それぞれ相当する。また、
SZ1a, SZ1b, SZ2a, SZ2b, SZ3a, SZ3bは、それぞれ第1
の画像系列の第1の画面サイズ、第1の 画像系列の第2
の画面サイズ、第2の画像系列の第1の画面サイズ、第
2の画像系列の第2の画面サイズ、第3の画像系列の第1
の画面サイズ、第3の画像系列の第2の画面サイズであ
る。
FIG. 16 shows an example of a conventional method of dividing a memory address. In the figure, FM1a, FM1b,
FM2a, FM2b, FM3a, and FM3b are a first screen area of a first image sequence, a second screen area of a first image sequence, a first screen area of a second image sequence, and a second image, respectively. A second screen area of a sequence, a first screen area of a third image sequence, and a second screen area of a third image sequence. Also, A
D1a, AD1b, AD2a, AD2b, AD3a, AD3b are the first
A first address start position of the image sequence, a second address start position of the first image sequence, a first address start position of the second image sequence, a second address start position of the second image sequence, The first address start position of the third image sequence and the second address start position of the third image sequence
D1b-1 is the memory bank of the 1a, and AD1b to AD2a
-1 to the first memory bank, and AD2a to AD2b-
1 to the second memory bank, and AD2b to AD3a-1.
Up to correspond to the second memory bank, and AD3a to AD3b-1 correspond to the third memory bank. Also,
SZ1a, SZ1b, SZ2a, SZ2b, SZ3a, SZ3b are the first
Screen size of the first image sequence, second screen size of the first image sequence
Screen size, first screen size of second image sequence, second screen size of second image sequence, first screen size of third image sequence
And the second screen size of the third image sequence.

【0010】ここで、各画像系列の画像データの格納の
仕方を、図15におけるフレームFR1, FR2, ..., FR8を
復号する場合を例にとって説明する。これらのフレーム
FR1, FR2, ..., FR8は、1つの画像系列(第1の画像系
列とする)を構成するものとする。この画像系列はMPEG
4では1つのオブジェクトに相当し、MPEG2ではGOPに
相当するものである。まず、第1の画像系列中の最初の
IフレームであるフレームFR1を復号し、これを画面エ
リアFM1aに格納する。次に、フレームFR2については、
この画面エリアFM1aに格納された,フレームFR1の復号
画像データを参照して復号を行い、復号結果を画面エリ
アFM1bに格納する。
Here, how to store the image data of each image series will be described by taking as an example a case where the frames FR1, FR2,..., FR8 in FIG. 15 are decoded. These frames
FR1, FR2,..., FR8 constitute one image sequence (first image sequence). This image series is MPEG
4 corresponds to one object, and MPEG2 corresponds to a GOP. First, a frame FR1, which is the first I frame in the first image sequence, is decoded and stored in the screen area FM1a. Next, for frame FR2,
The decoding is performed with reference to the decoded image data of the frame FR1 stored in the screen area FM1a, and the decoding result is stored in the screen area FM1b.

【0011】そして、次に、フレームFR3については、
この画面エリアFM1bに格納された,フレームFR2の復号
画像データを参照して復号を行い、復号結果を画面エリ
アFM1aに格納する。これは、フレームFR1の画像データ
はフレームFR3を復号化するのにもはや必要としないた
め、画面エリアFM1aを上書きしてよいからである。さら
に、フレームFR4については、この画面エリアFM1aに格
納された,フレームFR3の復号画像データを参照して復
号を行い、復号結果を画面エリアFM1bに格納する。
Next, regarding the frame FR3,
The decoding is performed with reference to the decoded image data of the frame FR2 stored in the screen area FM1b, and the decoding result is stored in the screen area FM1a. This is because the image data of the frame FR1 is no longer needed to decode the frame FR3, so that the screen area FM1a may be overwritten. Further, for the frame FR4, decoding is performed with reference to the decoded image data of the frame FR3 stored in the screen area FM1a, and the decoding result is stored in the screen area FM1b.

【0012】以下、第1の画像系列に属するフレームFR
5ないしFR8についても同様に、2つの画面エリアFM1a,F
M1bを交互に使用して復号を行う。また、第2,第3の
画像系列に属するフレームについても、それぞれの復号
を同様に行う。即ち、第2の画像系列に属するフレーム
については、2つの画面エリアFM2a,FM2bを交互に使用
して、また、第3の画像系列に属するフレームについて
は、2つの画面エリアFM3a,FM3bを交互に使用して、そ
れぞれの復号を同様に行う。さらに、画面間予測符号化
等の符号化や画像の表示を行う場合にも、同様に、メモ
リ内の相互に隣接する2つの画面エリアを交互に使用し
て、符号化や画像表示を行う。
Hereinafter, a frame FR belonging to the first image sequence will be described.
Similarly for 5 to FR8, two screen areas FM1a, F
Decoding is performed using M1b alternately. Further, decoding is similarly performed for frames belonging to the second and third image sequences. That is, two screen areas FM2a and FM2b are alternately used for frames belonging to the second image sequence, and two screen areas FM3a and FM3b are alternately used for frames belonging to the third image sequence. To perform the respective decoding in the same manner. Further, when performing coding such as inter-screen prediction coding or displaying an image, similarly, coding and image display are performed by alternately using two mutually adjacent screen areas in the memory.

【0013】なお、IフレームやPフレームはPフレー
ムやBフレームを復号化するために参照されるが、Bフ
レームは他のBフレームやPフレームを復号化するため
に参照されることはないため、Bフレームがメモリに格
納されることはない。このため、仮にフレームFR2とフ
レームFR3の間にBフレームが存在したとすれば、その
Bフレームは画面エリアFM1bに格納されたフレームFR2
と、画面エリアFM1aに格納されたフレームFR3を参照し
て復号化を行う。
The I frame and the P frame are referred to for decoding the P frame and the B frame, but the B frame is not referred to for decoding other B frames and the P frame. , B frames are not stored in the memory. Therefore, if a B frame exists between the frames FR2 and FR3, the B frame is stored in the frame FR2 stored in the screen area FM1b.
Then, decoding is performed with reference to the frame FR3 stored in the screen area FM1a.

【0014】ここで、各画面エリアFM1a, FM1b, FM2a,
FM2b, FM3a, FM3bは各アドレス開始位置AD1a, AD1b, AD
2a, AD2b, AD3a, AD3bを起点として、図16中の矢印
“→”で示されるように、画像メモリの各エリア(バン
ク)内でその上位アドレスの側に向かって記憶される。
従って、各画面サイズSZ1a, SZ1b, SZ2a, SZ2b, SZ3a,S
Z3bが増加しても、分割されたメモリの各バンクの大き
さを超えない限り、他の画像系列の画像データによって
当該画像系列の符号化・復号化に必要な画像データが破
壊されることはない。このため、各画像系列の符号化・
復号化に必要なメモリエリアの大きさが固定されている
場合は、図16のメモリアドレスの分割例の構成で支障
は生じない。
Here, each screen area FM1a, FM1b, FM2a,
FM2b, FM3a, FM3b are the address start positions AD1a, AD1b, AD
With reference to 2a, AD2b, AD3a, and AD3b as starting points, as shown by the arrow "→" in FIG. 16, the data is stored in each area (bank) of the image memory toward its higher address.
Therefore, each screen size SZ1a, SZ1b, SZ2a, SZ2b, SZ3a, S
Even if Z3b increases, as long as the size of each bank of the divided memory is not exceeded, the image data necessary for encoding / decoding the image sequence is not destroyed by the image data of another image sequence. Absent. For this reason, the encoding and
When the size of the memory area required for decoding is fixed, no problem occurs in the configuration of the example of dividing the memory address in FIG.

【0015】図17は従来の画像符号化装置のブロック
図である。図において、動き検出・動き補償(MEMC)器U1
は画像信号Vinに対し、メモリ・ユニットFMから参照画
面FMoutを読み出し、これを参照して動き検出・動き補
償を行い、動きベクトルMVと動き補償画面Refを出力す
る。減算器U2は画像信号Vinと動き補償画面Refとの差分
値を計算し、離散コサイン変換(DCT)器U3に出力する。
離散コサイン変換 (DCT) 器U3はブロック単位でDCT変換
を行い、量子化 (Q)器U4はその変換結果を量子化し、可
変長符号化(VLC)器U5はその量子化値を可変長符号化し
て符号化ストリームVbinとする。
FIG. 17 is a block diagram of a conventional image coding apparatus. In the figure, the motion detection and motion compensation (MEMC) unit U1
Reads a reference screen FMout from the memory unit FM with respect to the image signal Vin, performs motion detection and motion compensation with reference to this, and outputs a motion vector MV and a motion compensation screen Ref. The subtracter U2 calculates a difference value between the image signal Vin and the motion compensation screen Ref, and outputs the difference value to the discrete cosine transform (DCT) unit U3.
The discrete cosine transform (DCT) unit U3 performs a DCT transform on a block basis, the quantization (Q) unit U4 quantizes the result of the conversion, and the variable length coding (VLC) unit U5 converts the quantized value into a variable length code. Into an encoded stream Vbin.

【0016】一方、量子化 (Q) 器U4の出力である量子
化値は逆量子化 (IQ) 器U6で逆量子化され、逆離散コサ
イン変換 (IDCT) 器U7でブロック単位の逆DCT変換が行
われた後、加算器U8で動き補償画面Refと加算され、メ
モリ・ユニットFMの記録画面FMinとなる。なお、Iフレ
ームの符号化では参照画面が不要であり、この場合、動
き補償画面Refは全ての画素値を“0”として扱う。
On the other hand, the quantized value output from the quantizer (Q) unit U4 is inversely quantized by an inverse quantizer (IQ) unit U6 and inverse DCT transform in block units by an inverse discrete cosine transform (IDCT) unit U7. Is performed, the result is added to the motion compensation screen Ref by the adder U8 to form the recording screen FMin of the memory unit FM. It should be noted that a reference screen is not required for encoding an I frame, and in this case, the motion compensation screen Ref treats all pixel values as “0”.

【0017】メモリ・ユニットFMには画像の系列番号Ob
jIDと各画面の大きさObjSZが入力される。画像の系列番
号ObjIDは画像の系列を特定するために使用され、各画
面の大きさObjSZは記録画面FMinを記録するために必要
なメモリエリアの大きさを指定するために使用される。
例えば、図16において、FM1aのObjID, ObjSZはObjID=
1, ObjSZ=SZ1aとして表され、FM2bのObjID, ObjSZはObj
ID=2, ObjSZ=SZ2bとして表される。
An image sequence number Ob is stored in the memory unit FM.
The jID and the size ObjSZ of each screen are input. The image sequence number ObjID is used to identify the image sequence, and the size ObjSZ of each screen is used to specify the size of the memory area required to record the recording screen FMin.
For example, in FIG. 16, ObjID and ObjSZ of FM1a are ObjID =
1, ObjSZ = SZ1a, ObjID of FM2b, ObjSZ is Obj
It is represented as ID = 2, ObjSZ = SZ2b.

【0018】図18は従来の画像復号化装置のブロック
図である。同図において、可変長復号化 (VLD) 器U11は
符号化ストリームVbinを可変長復号化し、逆量子化 (I
Q) 器U6はこれを逆量子化し、逆離散コサイン変換 (IDC
T) 器U7はこの逆量子化結果に対し、ブロック単位の逆D
CT変換を行う。一方、メモリ・ユニットFMは、画像の系
列番号ObjIDに対応した参照画面FMoutを出力し、動き補
償 (MC) 器U12で動きベクトルMVに応じた動き補償を行
って動き補償画面Refを生成し、加算器U8はこれを逆離
散コサイン変換 (IDCT) 器U7の出力と加算して復号され
た画面信号Voutを得る。この画面信号Voutはメモリ・ユ
ニットFMにおいて、画像の系列ObjIDで指定されたメモ
リエリアに大きさObjSZの画像データからなる記録画面F
Minとして記録される。なお、Iフレームの復号化では参
照画面が不要であり、この場合、動き補償画面Refは全
ての画素を“0”として扱う。
FIG. 18 is a block diagram of a conventional image decoding apparatus. In the figure, a variable length decoding (VLD) unit U11 performs variable length decoding of an encoded stream Vbin, and performs inverse quantization (I
Q) The unit U6 inversely quantizes this, and uses the inverse discrete cosine transform (IDC
T) The unit U7 computes the inverse D
Perform CT conversion. On the other hand, the memory unit FM outputs a reference screen FMout corresponding to the sequence number ObjID of the image, performs motion compensation according to the motion vector MV in the motion compensation (MC) unit U12, and generates a motion compensation screen Ref, The adder U8 adds this to the output of the inverse discrete cosine transform (IDCT) unit U7 to obtain a decoded screen signal Vout. This screen signal Vout is stored in the memory unit FM in the memory area specified by the image sequence ObjID in a recording screen F including image data of the size ObjSZ.
Recorded as Min. Note that a reference screen is not required for decoding an I frame, and in this case, the motion compensation screen Ref treats all pixels as “0”.

【0019】図19は従来の画像表示装置のブロック図
である。同図において、オブジェクト選択器U20はユー
ザから指示された,表示すべき画像系列情報ObjSelに従
って、表示する画像系列の番号を逐次ObjIDとしてメモ
リ・ユニットFMに指令する。メモリ・ユニットFMがこの
指令に応じて出力する画像出力FMoutは合成器U23に入力
され、メモリ・ユニットFMから出力される他の画像系列
と合成され表示されるか、もしくはスイッチU21で選択
される既定の背景画面BGと合成表示が行われて、スイッ
チU24に出力される。表示する全ての画像系列をメモリ
・ユニットFMから読み出した時点で、オブジェクト選択
器U20は完了信号ObjEndで表示すべき画像系列の読み出
しが完了したことをスイッチU24に通知し、これによ
り、スイッチU24は表示のための同期信号Displayに合わ
せたタイミングで表示機器U25に合成画像を出力する。
FIG. 19 is a block diagram of a conventional image display device. In the figure, the object selector U20 sequentially instructs the memory unit FM as the ObjID of the image sequence to be displayed in accordance with the image sequence information ObjSel to be displayed, which is specified by the user. The image output FMout output by the memory unit FM in response to this command is input to the synthesizer U23 and is synthesized and displayed with another image sequence output from the memory unit FM, or selected by the switch U21. The display is synthesized with the default background screen BG and output to the switch U24. When all the image sequences to be displayed have been read from the memory unit FM, the object selector U20 notifies the switch U24 that the reading of the image sequence to be displayed has been completed with the completion signal ObjEnd, whereby the switch U24 The composite image is output to the display device U25 at a timing synchronized with the synchronization signal Display for display.

【0020】一般的な構成では、図18の画像復号化装
置と図19の画像表示装置は一体化した装置として構成
されることが多く、この場合、図18の画像復号化装置
と図19の画像表示装置がメモリ・ユニットFMを共用す
ることで、これらを個別の装置として構成した場合の半
分のメモリで済ませることが多い。
In a general configuration, the image decoding device shown in FIG. 18 and the image display device shown in FIG. 19 are often configured as an integrated device. In this case, the image decoding device shown in FIG. Since the image display device shares the memory unit FM, it is often necessary to use only half of the memory when these are configured as individual devices.

【0021】図20は従来のメモリ・ユニットFMのブロ
ック図である。メモリ・ユニットFMに記録を行う場合、
バンク選択器M1は分割されたメモリバンクからの画像の
系列番号ObjIDに対応するメモリバンクを特定し、アド
レス生成器M2は画像の大きさObjSZで指定された大きさ
のメモリエリアに対応するアドレスを生成し、メモリM4
は前記アドレス空間に、画面信号FMinを記録する。
FIG. 20 is a block diagram of a conventional memory unit FM. When recording to memory unit FM,
The bank selector M1 specifies the memory bank corresponding to the sequence number ObjID of the image from the divided memory bank, and the address generator M2 determines the address corresponding to the memory area of the size specified by the image size ObjSZ. Generate and memory M4
Records the screen signal FMin in the address space.

【0022】メモリ・ユニットFMから読み出しを行う場
合も同様に、バンク選択器M1で分割されたメモリバンク
から画像の系列番号ObjIDに対応するメモリエリアを特
定し、アドレス生成器M2で画像の大きさObjSZで指定さ
れた大きさのメモリエリアに対応するアドレスを生成
し、メモリM4の前記アドレス空間から画面信号FMoutを
読み出す。従って、復号化を行う際に、メモリ・ユニッ
トFMが有する,メモリバンク単位のアクセス機能を用い
て、上述のように互いに隣接する2つのメモリバンク内
のそれぞれの画面エリアを交互に使用して読み書きを行
うことにより、各オブジェクトに対する画像系列を復号
することが可能となる。
Similarly, when reading from the memory unit FM, the memory area corresponding to the sequence number ObjID of the image is specified from the memory banks divided by the bank selector M1, and the size of the image is determined by the address generator M2. An address corresponding to the memory area of the size specified by ObjSZ is generated, and the screen signal FMout is read from the address space of the memory M4. Therefore, at the time of decoding, the read / write operation is performed by alternately using the respective screen areas in two memory banks adjacent to each other as described above by using the access function of the memory unit FM in units of memory banks. , It is possible to decode the image sequence for each object.

【0023】[0023]

【発明が解決しようとする課題】従来の画像系列に対応
したメモリ管理方法は以上のように構成されており、1
画像系列の符号化・復号化に必要とされる合計2画面分
のメモリに相当するバンクをメモリ内に確保するよう
に、その管理を行うことができる。しかしながら、図1
6の従来のメモリアドレスの管理方法では、時間的に分
割された画面信号が各メモリの最大値を超える場合、こ
れを記録できないという問題がある。即ち、MPEG1やMPE
G2では画像系列の途中で画面の大きさが変化することは
無いが、MPEG4では時刻によって画面の大きさが変化す
ることが許容されており、記録すべき画面信号の大きさ
が分割されたメモリバンクの大きさを超えた場合、符号
化・復号化・表示に必要な画面データが消失する可能性
がある。この問題を回避するには、分割した各メモリバ
ンクが、許容される画面サイズの最大値となるように十
分なメモリバンクを確保すれば良いが、そうすると膨大
な量のメモリ容量が必要となり、これに伴い、メモリが
組み込まれた機器の消費電力が増大するという問題があ
った。また、従来は時刻によって画面信号の大きさが変
わることを考慮していなかったために、復号化装置や表
示装置で復号化・表示に必要な画面データが消失した場
合の対策は全く検討されていなかった。
A conventional memory management method corresponding to an image sequence is configured as described above.
The management can be performed such that a bank corresponding to a memory for a total of two screens required for encoding / decoding of the image sequence is secured in the memory. However, FIG.
In the conventional memory address management method of No. 6, there is a problem that if a time-divided screen signal exceeds the maximum value of each memory, it cannot be recorded. That is, MPEG1 or MPE
In G2, the size of the screen does not change in the middle of the image sequence, but in MPEG4, the size of the screen is allowed to change depending on the time, and the memory where the size of the screen signal to be recorded is divided If the size of the bank is exceeded, there is a possibility that screen data necessary for encoding / decoding / display is lost. To avoid this problem, it is sufficient to secure enough memory banks so that each divided memory bank has the maximum allowable screen size, but this requires an enormous amount of memory capacity. Accordingly, there is a problem that power consumption of a device in which a memory is incorporated increases. Conventionally, since the size of the screen signal does not change depending on the time, no countermeasure has been taken at all when the screen data necessary for decoding / display is lost in the decoding device or the display device. Was.

【0024】本発明は、かかる点に鑑みてなされたもの
で、メモリバンクの利用効率を高め、符号化・復号化・
表示に必要な画面データが消失する可能性を大幅に低減
できるメモリ管理方法、メモリ管理装置およびメモリ管
理プログラム記録媒体を提供することを目的とする。ま
た、復号化・表示に必要な画面データが消失した場合
に、画質劣化を少なくする画像復号化方法、画像復号化
装置、画像復号化プログラム記録媒体、画像表示方法、
画像表示装置、画像表示プログラム記録媒体や、演算量
を低減できる画像復号化方法、画像復号化装置、画像復
号化プログラム記録媒体、およびその復号化に対応する
符号化を行う画像符号化方法、画像符号化装置、画像符
号化プログラム記録媒体を実現することを目的とする。
The present invention has been made in view of the above points, and has been made in consideration of the above circumstances.
An object of the present invention is to provide a memory management method, a memory management device, and a memory management program recording medium that can significantly reduce the possibility of losing screen data required for display. In addition, when screen data necessary for decoding / display is lost, an image decoding method, an image decoding device, an image decoding program recording medium, an image display method, which reduces image quality deterioration,
Image display device, image display program recording medium, image decoding method capable of reducing the amount of calculation, image decoding device, image decoding program recording medium, image encoding method for performing encoding corresponding to the decoding, image It is an object to realize an encoding device and an image encoding program recording medium.

【0025】[0025]

【課題を解決するための手段】この課題を解決するため
に、本願の請求項1の発明に係るメモリ管理方法は、第
1ないし第nの画像系列(nは2以上の整数)の画像デ
ータをメモリに同時に記録する,メモリ管理方法であっ
て、メモリ内の領域を、ADstart[i]番地からADend[i]番
地(i は1≦i≦n/2を満たす整数)までの番地を第i
のメモリアドレス空間としてそれぞれ割り当てること
により第1ないし第n/2のメモリアドレス空間に分割
し、第iの上記メモリアドレス空間のADstart[i] もしく
はADend[i] のいずれか一方の端から当該第iのメモリア
ドレス空間内の上位もしくは下位メモリアドレスのいず
れかに向けての領域を、第kの画像系列(k=i×2−
1)の画像データを記録するためのエリアとして使用す
るとともに、上記ADstart[i] もしくはADend[i] の他方
の端から当該第iのメモリアドレス空間内の下位もしく
は上位メモリアドレスのいずれかに向けての領域を、第
(k+1)の画像系列の画像データを記録するためのエ
リアとして使用する、ようにしたものである。
According to a first aspect of the present invention, there is provided a memory management method, comprising: a first to an n-th image sequence (n is an integer of 2 or more); Is simultaneously recorded in the memory, and the area in the memory is changed to an address from address ADstart [i] to address ADend [i] (i is an integer satisfying 1 ≦ i ≦ n / 2). i
, The memory address space is divided into first to n / 2th memory address spaces. The region toward either the upper or lower memory address in the memory address space of i is defined as a k-th image sequence (k = i × 2−2).
It is used as an area for recording the image data of 1), and is directed from the other end of ADstart [i] or ADend [i] to either the lower or upper memory address in the ith memory address space. All the areas are used as areas for recording image data of the (k + 1) -th image sequence.

【0026】また、本願の請求項2の発明に係るメモリ
管理方法は、請求項1記載のメモリ管理方法において、
前記第kの画像系列の画像データと前記第(k+1)の
画像系列の画像データをともに前記第iのメモリアドレ
ス空間に記録することによって一方の画像データが他方
の画像データを上書きするか否かを監視し、メモリから
画像データを読み出す時に、当該読み出すべき画像系列
の画像データが上記上書きにより破壊されているか否か
を、外部に通知する、ようにしたものである。
According to a second aspect of the present invention, there is provided a memory management method according to the first aspect,
Whether one image data overwrites the other image data by recording both the image data of the k-th image sequence and the image data of the (k + 1) -th image sequence in the i-th memory address space Is monitored, and when image data is read from the memory, whether or not the image data of the image series to be read has been destroyed by the overwriting is notified to the outside.

【0027】また、本願の請求項3の発明に係るメモリ
管理方法は、請求項1記載のメモリ管理方法において、
前記第kの画像系列の画像データと前記第(k+1)の
画像系列の画像データをともに前記第iのメモリアドレ
ス空間に記録することによって一方の画像データが他方
の画像データを上書きするか否かを監視し、上記上書き
により画像データの破壊が生じ得る場合は、外部から入
力した,画像系列の重要度情報を参照し、重要度の低い
画像データを破壊する上書きを行い重要度の高い画像デ
ータを保護する、ようにしたものである。
According to a third aspect of the present invention, there is provided a memory management method according to the first aspect,
Whether one image data overwrites the other image data by recording both the image data of the k-th image sequence and the image data of the (k + 1) -th image sequence in the i-th memory address space If the image data can be destroyed by the above overwriting, the image data of high importance is overwritten by overwriting to destroy the image data of low importance by referring to the externally input importance information of the image sequence. Is to protect.

【0028】また、本願の請求項4の発明に係る画像符
号化方法は、第1ないし第nの画像系列(nは2以上の
整数)の画像データを同時に符号化する画像符号化方法
であって、画面間予測符号化を行う際に、予測画像デー
タを、請求項1記載のメモリ管理方法により管理される
メモリに記録する、ようにしたものである。
The image encoding method according to the invention of claim 4 of the present application is an image encoding method for simultaneously encoding image data of first to n-th image sequences (n is an integer of 2 or more). Thus, when performing inter-picture prediction encoding, predicted image data is recorded in a memory managed by the memory management method according to claim 1.

【0029】また、本願の請求項5の発明に係る画像復
号化方法は、第1ないし第nの画像系列(nは2以上の
整数)の画像データを同時に復号化する画像復号化方法
であって、画面間予測復号化を行う際に、予測画像デー
タを、請求項1記載のメモリ管理方法により管理される
メモリに記録する、ようにしたものである。
An image decoding method according to a fifth aspect of the present invention is an image decoding method for simultaneously decoding image data of first to n-th image sequences (n is an integer of 2 or more). Thus, when performing inter prediction decoding, predictive image data is recorded in a memory managed by the memory management method according to claim 1.

【0030】また、本願の請求項6の発明に係る画像復
号化方法は、第1ないし第nの画像系列(nは2以上の
整数)の画像データを同時に復号化する画像復号化方法
であって、画面間予測復号化を行う際に、予測画像デー
タを、請求項2記載のメモリ管理方法により管理される
メモリに記録し、当該画像系列の復号化で必要な,メモ
リ内の画像データが破壊された場合は、上記メモリ内の
画像データを参照しないで復号化可能となるまで復号化
処理を中断する、ようにしたものである。
An image decoding method according to a sixth aspect of the present invention is an image decoding method for simultaneously decoding image data of first to n-th image sequences (n is an integer of 2 or more). When performing inter-picture prediction decoding, predictive image data is recorded in a memory managed by the memory management method according to claim 2, and image data in the memory required for decoding the image sequence is stored. If the data is destroyed, the decoding process is interrupted until decoding becomes possible without referring to the image data in the memory.

【0031】また、本願の請求項7の発明に係る画像復
号化方法は、第1ないし第nの画像系列(nは2以上の
整数)の画像データを同時に復号化する画像復号化方法
であって、画面間予測復号化を行う際に、請求項3記載
のメモリ管理方法により管理されるメモリに、予測画像
データを、重要な画像系列の重要度を高くして記録し、
重要な画像系列の復号化に必要な画像データを破壊され
にくくした、ものである。
An image decoding method according to a seventh aspect of the present invention is an image decoding method for simultaneously decoding image data of first to n-th image sequences (n is an integer of 2 or more). When performing inter-picture prediction decoding, predictive image data is recorded in a memory managed by the memory management method according to claim 3 with an importance of an important image sequence being increased.
In this method, image data necessary for decoding an important image sequence is hardly destroyed.

【0032】また、本願の請求項8の発明に係る画像表
示方法は、第1ないし第nの画像系列(nは2以上の整
数)の画像データを同時に表示する画像表示方法であっ
て、請求項1記載のメモリ管理方法により管理されるメ
モリに、表示すべき画像データを記録する、ようにした
ものである。
An image display method according to the invention of claim 8 of the present application is an image display method for simultaneously displaying image data of first to n-th image series (n is an integer of 2 or more). The image data to be displayed is recorded in a memory managed by the memory management method described in Item 1.

【0033】また、本願の請求項9の発明に係る画像表
示方法は、第1ないし第nの画像系列(nは2以上の整
数)の画像データを同時に表示する画像表示方法であっ
て、当該画像系列の表示に必要な,メモリ内の画像デー
タが破壊された場合は、当該破壊された画像データに代
えて、当該画像系列の,破壊されていない最新時刻の画
像データを表示する、ようにしたものである。
The image display method according to the ninth aspect of the present invention is an image display method for simultaneously displaying image data of first to n-th image series (n is an integer of 2 or more). When the image data in the memory necessary for displaying the image sequence is destroyed, the image data at the latest undestructed time of the image sequence is displayed instead of the destroyed image data. It was done.

【0034】また、本願の請求項10の発明に係るメモ
リ管理装置は、第1ないし第nの画像系列(nは2以上
の整数)の画像データをメモリに同時に記録する,メモ
リ管理装置であって、メモリ内の領域を、ADstart[i]番
地からADend[i]番地 (i は1≦i≦n/2を満たす整
数)までの番地を第i のメモリアドレス空間としてそれ
ぞれ割り当てることにより第1ないし第n/2のメモリ
アドレス空間に分割するメモリ領域分割手段と、第iの
上記メモリアドレス空間のADstart[i] もしくはADend
[i] のいずれか一方の端から当該第iのメモリアドレス
空間内の上位もしくは下位メモリアドレスのいずれかに
向けての領域を、第kの画像系列(k=i×2−1)の
画像データを記録するためのエリアとして使用するとと
もに、上記ADstart[i] もしくはADend[i] の他方の端か
ら当該第iのメモリアドレス空間内の下位もしくは上位
メモリアドレスのいずれかに向けての領域を、第(k+
1)の画像系列の画像データを記録するためのエリアと
して使用するためのアドレスを生成するアドレス生成手
段と、を備えるようにしたものである。
A memory management device according to a tenth aspect of the present invention is a memory management device for simultaneously recording image data of first to n-th image sequences (n is an integer of 2 or more) in a memory. By allocating areas in the memory from addresses ADstart [i] to addresses ADend [i] (i is an integer satisfying 1 ≦ i ≦ n / 2) as a ith memory address space, A memory area dividing means for dividing the memory address space into an n / 2th memory address space, and ADstart [i] or ADend of the ith memory address space.
A region from one end of [i] to either the upper or lower memory address in the i-th memory address space is defined as an image of a k-th image sequence (k = i × 2-1). It is used as an area for recording data, and an area from the other end of ADstart [i] or ADend [i] to either the lower or upper memory address in the ith memory address space. , (K +
Address generating means for generating an address to be used as an area for recording image data of the image series of 1).

【0035】また、本願の請求項11の発明に係るメモ
リ管理プログラム記録媒体は、第1ないし第nの画像系
列(nは2以上の整数)の画像系列の画像データを同時
に記録する,メモリ管理方法を実行するメモリ管理プロ
グラムを記録したメモリ管理プログラム記録媒体であっ
て、メモリ内の領域を、ADstart[i]番地からADend[i]番
地 (i は1≦i≦n/2を満たす整数)までの番地を第
i のメモリアドレス空間としてそれぞれ割り当てること
により第1ないし第n/2のメモリアドレス空間に分割
し、第iの上記メモリアドレス空間のADstart[i] もしく
はADend[i] のいずれか一方の端から当該第i のメモリ
アドレス空間内の上位もしくは下位メモリアドレスのい
ずれかに向けての領域を、第kの画像系列(k=i×2
−1)の画像データを記録するためのエリアとして使用
するとともに、上記ADstart[i]もしくはADend[i] の他
方の端から当該第iのメモリアドレス空間内の下位もし
くは上位メモリアドレスのいずれかに向けての領域を、
第(k+1)の画像系列の画像データを記録するための
エリアとして使用するメモリ管理方法を実行するメモリ
管理プログラム、を記録してなるようにしたものであ
る。
A memory management program recording medium according to the invention of claim 11 is a memory management program for simultaneously recording image data of first to n-th image sequences (n is an integer of 2 or more). A memory management program recording medium on which a memory management program for executing the method is recorded, wherein an area in the memory is changed from an address ADstart [i] to an address ADend [i] (i is an integer satisfying 1 ≦ i ≦ n / 2). Address up to
i is divided into first to n / 2th memory address spaces by allocating them as memory address spaces. A region toward either the upper or lower memory address in the ith memory address space is defined as a k-th image sequence (k = i × 2).
-1) to be used as an area for recording image data, and from the other end of ADstart [i] or ADend [i] to either the lower or upper memory address in the ith memory address space. The area for
A memory management program for executing a memory management method used as an area for recording image data of the (k + 1) th image sequence is recorded.

【0036】また、本願の請求項12の発明に係るメモ
リ管理方法は、空き状態、またはi個の画像データ(i
=1ないし3の整数)が格納されたメモリ領域に新規入
力された画像データを格納する際、少なくとも、前記メ
モリ領域のアドレスの最下位側、または最上位側に画像
データを格納できる場合には、メモリ領域のアドレスの
最下位側、または最上位側に前記新規入力された画像デ
ータを格納し、前記メモリ領域のアドレスの最下位側、
及び最上位側に画像データを格納できない場合には、そ
の中間部に前記新規入力された画像データを格納するこ
とによりメモリの記憶管理を行うメモリ管理方法であっ
て、前記中間部に新規入力された画像データを格納する
際は、前記最上位側,最下位側に格納されている画像デ
ータのいずれかに接する領域に前記新規入力された画像
データを格納するか、あるいは前記メモリ領域のアドレ
ス中央位置に接する領域に前記新規入力された画像デー
タを格納するものである。
In the memory management method according to the twelfth aspect of the present invention, the memory management method according to the twelfth aspect of the present invention provides an empty state or i image data (i
(Integer of 1 to 3) is stored in the memory area where the newly input image data is stored, at least when the image data can be stored at the lowest or highest address of the address of the memory area. Storing the newly input image data at the lowermost or uppermost side of the address of the memory area, and storing the newly input image data at the lowermost side of the address of the memory area;
And a memory management method for storing and managing the memory by storing the newly input image data in an intermediate portion thereof when image data cannot be stored in the uppermost side. When storing the image data, the newly input image data is stored in an area that is in contact with one of the image data stored on the uppermost side and the lowermost side, or the address center of the memory area is The newly input image data is stored in an area adjacent to the position.

【0037】また、本願の請求項13の発明に係るメモ
リ管理方法は、請求項12に記載のメモリ管理方法にお
いて、メモリ領域内に格納されている画像データ、及び
新規入力された画像データがすべて矩形形状の画像デー
タである場合には、前記中間部に画像データを格納する
際、前記最上位側,最下位側に格納されている画像デー
タのいずれかに接する領域に前記新規入力された画像デ
ータを格納するように、既に格納された画像データのメ
モリ空間位置の再配置を行うものである。
The memory management method according to a thirteenth aspect of the present invention is the memory management method according to the twelfth aspect, wherein all of the image data stored in the memory area and the newly input image data are used. When the image data has a rectangular shape, when storing the image data in the intermediate portion, the newly input image is stored in an area which is in contact with one of the image data stored in the uppermost side and the lowermost side. The rearrangement of the memory space position of the already stored image data is performed so as to store the data.

【0038】また、本願の請求項14の発明に係るメモ
リ管理方法は、請求項13に記載のメモリ管理方法にお
いて、前記既に格納された画像データのメモリ空間位置
の再配置は、新規入力された画像データ用のメモリが不
足する場合にのみ行うものである。
According to a fourteenth aspect of the present invention, in the memory management method according to the thirteenth aspect, the rearrangement of the memory space position of the already stored image data is newly input. This is performed only when the memory for image data is insufficient.

【0039】また、本願の請求項15の発明に係るメモ
リ管理方法は、請求項12に記載のメモリ管理方法にお
いて、メモリ領域内に格納されている画像データ、及び
新規入力された画像データの内、少なくとも一つが任意
形状の画像データである場合には、前記中間部に画像デ
ータを格納する際、前記メモリ領域のアドレス中央位置
に接する領域に前記新規入力された画像データを格納す
るように、既に格納された画像データのメモリ空間位置
の再配置を行うものである。
A memory management method according to a fifteenth aspect of the present invention is the memory management method according to the twelfth aspect, wherein the image data stored in the memory area and the newly input image data are stored in the memory area. When at least one is image data of an arbitrary shape, when storing the image data in the intermediate portion, the newly input image data is stored in an area adjacent to an address center position of the memory area, The rearrangement of the memory space position of the already stored image data is performed.

【0040】また、本願の請求項16の発明に係るメモ
リ管理方法は、請求項15に記載のメモリ管理方法にお
いて、前記既に格納された画像データのメモリ空間位置
の再配置は、新規入力された画像データ用のメモリが不
足する場合にのみ行うものである。
In a memory management method according to a sixteenth aspect of the present invention, in the memory management method according to the fifteenth aspect, the rearrangement of the memory space position of the already stored image data is newly input. This is performed only when the memory for the image data is insufficient.

【0041】また、本願の請求項17の発明に係るメモ
リ管理方法は、請求項12に記載のメモリ管理方法にお
いて、前記中間部に画像データを格納する際、前記最上
位側,最下位側に格納されている画像データのいずれか
に接する領域に新規入力された画像データを格納するメ
モリ管理時に、任意形状の画像データが新規に入力され
た場合には、前記中央部に画像データを格納する際、前
記メモリ領域のアドレス中央位置に接する領域に新規入
力された画像データを格納するよう、既に格納された画
像データのメモリ空間位置の再配置を行うものである。
A memory management method according to a seventeenth aspect of the present invention is the memory management method according to the twelfth aspect, wherein the image data is stored in the uppermost and lowermost sides when the image data is stored in the intermediate portion. When memory data for storing newly input image data is stored in an area in contact with any of the stored image data, when image data of an arbitrary shape is newly input, the image data is stored in the central portion. At this time, the memory space position of the already stored image data is rearranged so that the newly input image data is stored in an area adjacent to the address center position of the memory area.

【0042】また、本願の請求項18の発明に係るメモ
リ管理方法は、請求項17に記載のメモリ管理方法にお
いて、任意形状の画像データの入力に伴うメモリ空間位
置の再配置後は、新規入力された画像データ用のメモリ
が不足する場合にのみ、前記中央部に画像データを格納
する際、前記メモリ領域のアドレス中央位置に接する領
域に新規入力された画像データを格納するよう、既に格
納された画像データのメモリ空間位置の再配置を行うも
のである。
A memory management method according to an eighteenth aspect of the present invention is the memory management method according to the seventeenth aspect, wherein after the rearrangement of the memory space position accompanying the input of image data of an arbitrary shape, a new input is performed. When storing image data in the central portion only when the memory for the input image data is insufficient, the image data already stored is stored so as to store the newly input image data in an area adjacent to the address central position of the memory area. The rearrangement of the memory space position of the image data is performed.

【0043】[0043]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図面を用いて説明する。 (実施の形態1)実施の形態1は、メモリ管理方法にお
いて、2つの画像系列のデータをそれぞれ、相互に隣接
する2つのメモリバンク内の上位アドレス側同士及び下
位アドレス側同士に記録することで、メモリバンクの利
用効率を高めるようにしたものである。図1は、複数の
画像系列で構成される画像の例を示すものである。Obj
1, Obj2, Obj3, Obj4は画像系列である。図1に示すよ
うに、例えば4つの画像系列Obj1,Obj2, Obj3, Obj4を画
像系列単位で符号化し、画像表示装置で各画像系列を合
成表示して1つの画面として表示するものであるが、当
然、各画像系列の画面の大きさは時刻によって、その大
きさが大きくなったり小さくなったりする。そこで、MP
EG4では任意の時刻における全画像系列の画面の大きさ
の「和の上限」を予め決めておくことにより、画面間予
測符号化における参照画面に必要なメモリ容量を設定し
ている。
Embodiments of the present invention will be described below with reference to the drawings. (Embodiment 1) In Embodiment 1, in a memory management method, data of two image series is recorded in upper address sides and lower address sides in two memory banks adjacent to each other, respectively. , The use efficiency of the memory bank is improved. FIG. 1 shows an example of an image composed of a plurality of image sequences. Obj
1, Obj2, Obj3, Obj4 are image sequences. As shown in FIG. 1, for example, four image sequences Obj1, Obj2, Obj3, and Obj4 are encoded in image sequence units, and the image display device synthesizes and displays each image sequence and displays it as one screen. Naturally, the size of the screen of each image series increases or decreases depending on the time. So, MP
In EG4, the memory capacity necessary for the reference screen in the inter-picture predictive coding is set by previously determining the “upper limit of the sum” of the screen sizes of all image sequences at an arbitrary time.

【0044】これは、画像表示は各画像系列を合成した
ものを表示するのであるから、物体が重なりあっている
分を考慮しても全画像系列の画面の大きさの和は時刻変
動が比較的少なく(全画像系列で必要な参照メモリ量の
総和は、一般に表示画面の約1.5倍程度である)、各画
像系列毎に画面の大きさの上限値を設定する(例えば各
画像系列毎に表示画面の大きさを上限とする)よりも必
要なメモリ容量を節約できるからである。
This is because the image display is a display of a composite of the respective image sequences. Therefore, even if the overlapping of the objects is taken into account, the sum of the screen sizes of all the image sequences can be compared with the time variation. Set the upper limit of the screen size for each image sequence (for example, the total amount of reference memory required for all image sequences is generally about 1.5 times the display screen) (for example, This is because the required memory capacity can be saved as compared with the case where the size of the display screen is set as the upper limit.

【0045】図2は本発明の実施の形態1におけるメモ
リ管理方法に基づきメモリアドレスを分割した例であ
る。同図は、第1の画像系列と第2の画像系列が同じメ
モリバンクに記録される状況を示している。図2におい
て、FM1a, FM1b, FM3a,FM4aは、それぞれ第1の画像系
列の第1の画面エリア、第1の画像系列の第2の画面エリ
ア、第3の画像系列の第1の画面エリア、第4の画像系
列の第1の画面エリアである。また、AD12a, AD12b, AD3
4a,AD34bは、それぞれ第1の画像系列の第1のアドレス
開始位置、第1の画像系列の第2のアドレス開始位置、
第3の画像系列の第1のアドレス開始位置、第3の画像
系列の第2のアドレス開始位置であり、AD12aから AD12
b−1までが第1のメモリバンクに、AD12bから AD34a−
1までが第1aのメモリバンクに、AD34aからAD34b−1
までが第2aのメモリバンクに、それぞれ相当する。
FIG. 2 shows an example in which memory addresses are divided based on the memory management method according to the first embodiment of the present invention. The figure shows a situation where the first image sequence and the second image sequence are recorded in the same memory bank. In FIG. 2, FM1a, FM1b, FM3a, and FM4a denote a first screen area of a first image sequence, a second screen area of a first image sequence, a first screen area of a third image sequence, respectively. It is the 1st screen area of the 4th image series. AD12a, AD12b, AD3
4a and AD34b are respectively a first address start position of the first image sequence, a second address start position of the first image sequence,
A first address start position of the third image sequence, a second address start position of the third image sequence, and AD12a to AD12
b-1 to the first memory bank, AD12b to AD34a-
1 are stored in the memory bank of the 1a, AD34a to AD34b-1.
Up to correspond to the 2a-th memory bank.

【0046】第1の画像系列は各開始位置AD12a, AD12b
から上位アドレスに向かって画面サイズSZ1a,SZ1bが確
保される。また、第3の画像系列は開始位置AD34aから
上位アドレスに向かって画面サイズSZ3aが確保される。
これに対し、第2の画像系列は、各開始位置AD12b−1,
AD34a−1から下位アドレスに向かって、画面サイズSZ
2a,SZ2bが確保される。また、第4の画像系列は、開始
位置AD34b−1から下位アドレスに向かって、画面サイ
ズSZ4aが確保される。
The first image sequence includes the start positions AD12a and AD12b.
, The screen sizes SZ1a and SZ1b are secured from the top to the upper address. In the third image sequence, the screen size SZ3a is secured from the start position AD34a toward the upper address.
On the other hand, the second image sequence includes the start positions AD12b-1,
Screen size SZ from AD34a-1 to lower address
2a and SZ2b are secured. In the fourth image sequence, the screen size SZ4a is secured from the start position AD34b-1 toward lower addresses.

【0047】なお、これら第2の画像系列および第4の
画像系列は、実際には、画面サイズSZ2a,SZ2bおよびSZ4
aが既知であるため、予め各開始位置AD12b−1, AD34a
−1およびAD34b−1からこれら画面サイズSZ2a,SZ2bお
よびSZ4aに相当する値をそれぞれ減算したアドレスAD12
b−SZ2a, AD34a−SZ2bおよびAD34b−SZ4aを算出し、こ
れからそれぞれ上位アドレスに向かって画面サイズが確
保される。
Note that the second image sequence and the fourth image sequence actually correspond to the screen sizes SZ2a, SZ2b and SZ4.
Since a is known, each start position AD12b-1, AD34a
Address AD12 obtained by subtracting the values corresponding to these screen sizes SZ2a, SZ2b and SZ4a from -1 and AD34b-1 respectively.
b-SZ2a, AD34a-SZ2b and AD34b-SZ4a are calculated, and the screen size is secured from this to the upper address.

【0048】ここで、各画像系列の画像データの格納の
仕方を、図15におけるフレームFR1, FR2, ..., FR8を
復号する場合を例にとって説明する。これらのフレーム
FR1, FR2, ..., FR8は、1つのオブジェクトに相当する
1つの画像系列(第1の画像系列とする)を構成するも
のとする。まず、第1の画像系列中の最初のIフレーム
であるフレームFR1を復号し、これを、画面エリアFM1a
に格納する。この画面エリアFM1aは第1aのメモリアド
レス空間のアドレス開始位置AD12a側、即ち下位アドレ
ス側に位置するものである。
Here, how to store the image data of each image series will be described by taking as an example the case of decoding the frames FR1, FR2,..., FR8 in FIG. These frames
FR1, FR2,..., FR8 constitute one image sequence (first image sequence) corresponding to one object. First, a frame FR1, which is the first I frame in the first image sequence, is decoded, and is decoded into a screen area FM1a.
To be stored. This screen area FM1a is located on the address start position AD12a side of the memory address space 1a, that is, on the lower address side.

【0049】次に、フレームFR2については、この画面
エリアFM1aに格納された,フレームFR1の復号画像デー
タを参照して復号を行い、復号結果を画面エリアFM1bに
格納する。この画面エリアFM1bは第1bのメモリアドレ
ス空間のアドレス開始位置AD12b側、即ち下位アドレス
側に位置するものである。そして、次に、フレームFR3
については、この第1bのメモリアドレス空間内の画面
エリアFM1bに格納された,フレームFR2の復号画像デー
タを参照して復号を行い、復号結果を第1aのメモリア
ドレス空間内の画面エリアFM1aに格納する。これは、フ
レームFR1の画像データはフレームFR3を復号化するのに
もはや必要としないため、画面エリアFM1aを上書きして
よいからである。さらに、フレームFR4については、こ
の画面エリアFM1aに格納された,フレームFR3の復号画
像データを参照して復号を行い、復号結果を画面エリア
FM1bに格納する。
Next, for the frame FR2, decoding is performed with reference to the decoded image data of the frame FR1 stored in the screen area FM1a, and the decoding result is stored in the screen area FM1b. This screen area FM1b is located on the address start position AD12b side of the first memory address space, that is, on the lower address side. And then, the frame FR3
, Decoding is performed with reference to the decoded image data of the frame FR2 stored in the screen area FM1b in the first memory address space, and the decoding result is stored in the screen area FM1a in the first memory address space. I do. This is because the image data of the frame FR1 is no longer needed to decode the frame FR3, so that the screen area FM1a may be overwritten. Further, for the frame FR4, decoding is performed with reference to the decoded image data of the frame FR3 stored in the screen area FM1a, and the decoding result is displayed in the screen area FM1a.
Store in FM1b.

【0050】以下、第1の画像系列に属するフレームFR
5ないしFR8についても同様に、互いに隣接する第1a,
第1bのメモリバンクの下位アドレス側に、それぞれ1
つずつ割り当てた2つの画面エリアFM1a,FM1bを交互に
使用して復号を行う。なお、IフレームやPフレームは
PフレームやBフレームを復号化するために参照される
が、Bフレームは他のBフレームやPフレームを復号化
するために参照されることはないため、Bフレームがメ
モリに格納されることはない。このため、仮にフレーム
FR2とフレームFR3の間にBフレームが存在したとすれ
ば、そのBフレームは画面エリアFM1bに格納されたフレ
ームFR2と、画面エリアFM1aに格納されたフレームFR3を
参照して復号化を行う。
Hereinafter, the frame FR belonging to the first image sequence will be described.
Similarly, with respect to 5 to FR8, the first a,
On the lower address side of the 1b memory bank, 1
Decoding is performed using the two screen areas FM1a and FM1b assigned one by one alternately. Note that an I frame or a P frame is referred to for decoding a P frame or a B frame, but a B frame is not referred to for decoding another B frame or a P frame. Is never stored in memory. Therefore, if the frame
If a B frame exists between FR2 and frame FR3, the B frame is decoded with reference to the frame FR2 stored in the screen area FM1b and the frame FR3 stored in the screen area FM1a.

【0051】また、第2,第3の画像系列に属するフレ
ームについても、それぞれの復号を同様に行う。即ち、
第2の画像系列に属するフレームについては、互いに隣
接する第1a,第1bのメモリバンクの上位アドレス側
に、それぞれ1つずつ割り当てた2つの画面エリアFM2
a,FM2bを交互に使用して、また、第3の画像系列に属す
るフレームについては、互いに隣接する第2a,第2b
のメモリバンクの下位アドレス側に、それぞれ1つずつ
割り当てた2つの画面エリアFM3a,FM3b(FM3bは図2に
おけるFM4aの右側に隣接するが図示していない)を交互
に使用して、それぞれの復号を行う。
The decoding is similarly performed on the frames belonging to the second and third image sequences. That is,
As for the frames belonging to the second image sequence, two screen areas FM2 each assigned one to the upper address side of the first memory banks 1a and 1b adjacent to each other.
a, FM2b are used alternately, and for frames belonging to the third image sequence, the adjacent 2a, 2b
The two picture areas FM3a, FM3b (one adjacent to the right side of FM4a in FIG. 2 but not shown) are alternately assigned to the lower address side of the memory bank of I do.

【0052】さらに、画像間予測符号化等の符号化や画
像の表示を行う場合にも、同様に、メモリ内の相互に隣
接する2つの画面エリアを交互に使用して、符号化や画
像表示を行う。このメモリ管理方法の特徴は、 ・異なる画像系列の画面を同じメモリバンク内に記録す
ること ・同じメモリバンク内で、一方の画像系列の画面は下位
アドレス側に記録し、他方の画像系列の画面は上位アド
レス側に記録することの2点である。従って、上述の復
号化の例では、第1の画像系列をFM1aとFM1bに交互に記
録し、第2の画像系列をFM2aとFM2bに交互に記録するよ
うにしたが、上述の2点を満足すれば、これはメモリバ
ンク内の任意の画面エリアを使用することができ、例え
ば第1の画像系列をFM1aとFM2bに交互に記録し、第2の
画像系列をFM2a とFM1bに交互に記録するようにしても
よい。
Further, when coding such as inter-picture predictive coding or displaying an image, similarly, two adjacent screen areas in the memory are used alternately to perform coding or image display. I do. The features of this memory management method are as follows:-Screens of different image series are recorded in the same memory bank-Screens of one image series are recorded in the lower address side in the same memory bank, and screens of the other image series are recorded Are recorded on the upper address side. Therefore, in the above-described decoding example, the first image sequence is alternately recorded in FM1a and FM1b, and the second image sequence is alternately recorded in FM2a and FM2b. This can use any screen area in the memory bank, for example, alternately recording the first image sequence on FM1a and FM2b, and alternately recording the second image sequence on FM2a and FM1b You may do so.

【0053】既述したように、MPEG4では全画像系列の
画面の大きさの和の上限が決まっていることから、MPEG
4の符号化規則に準拠して符号化された,複数の画像系
列に属する画面の大きさの和の変動は、各画面単独の画
面の大きさの変動よりも少ない。図2の例では、第1の
画像系列と第2の画像系列の画面の大きさの和がメモリ
バンクの大きさを超えない限り、記録された画面が上書
きによって破損することは無い。従って、図3(a)のよ
うに、バンク内で画面エリアFM1aが大きなエリアを占め
たり、画面エリアFM2bが大きなエリアを占めたとして
も、他方の画像系列の画面の大きさが小さければ、記録
画面は破損しない。確保されたメモリ領域は、不要にな
った時点(符号化・復号化では予測符号化による参照が
完了した時点、画像表示では表示機器への出力が完了し
た時点)で開放され、次の画面を記録する領域として再
利用される。
As described above, in MPEG4, since the upper limit of the sum of the screen sizes of the entire image sequence is determined, the MPEG4
The change in the sum of the sizes of the screens belonging to a plurality of image sequences, which is coded according to the coding rule of 4, is smaller than the change in the screen size of each screen alone. In the example of FIG. 2, the recorded screen will not be damaged by overwriting unless the sum of the screen sizes of the first image series and the second image series exceeds the size of the memory bank. Therefore, even if the screen area FM1a occupies a large area in the bank or the screen area FM2b occupies a large area as shown in FIG. The screen does not break. The secured memory area is released when it is no longer needed (when encoding / decoding completes reference by predictive coding, and when displaying images, when output to the display device is completed), and the next screen is displayed. It is reused as a recording area.

【0054】しかしながら、メモリバンクが十分な大き
さが確保できていない場合は、画像系列全体の画面サイ
ズの和が上限値未満であっても、その中の2つの画像系
列の和が図3(b)のように大きくなることがある。図3
(b)の例では画面エリアFM1aとFM2aのメモリ領域の一部
が重複しているために、いずれか一方の画面データが破
損することは避けられない。この場合には、破損した画
面を検出し、復号化および表示の段階で、後述する適切
な画像修整を行うことにより画質劣化を少なくすること
が可能となる。
However, if the memory bank is not large enough, even if the sum of the screen sizes of the entire image sequence is less than the upper limit value, the sum of the two image sequences in the image sequence will not be as shown in FIG. It may be large as in b). FIG.
In the example of (b), since a part of the memory area of the screen areas FM1a and FM2a overlaps, it is inevitable that one of the screen data is damaged. In this case, it is possible to reduce image quality deterioration by detecting a damaged screen and performing appropriate image modification described later at the stage of decoding and display.

【0055】このように、本実施の形態1による,複数
の画像系列に対応したメモリ管理方法によれば、各メモ
リバンク内の下位アドレス側及び上位アドレス側に、そ
れぞれ相異なる系列の物体の画像データを記録するよう
にしたので、2つの物体のデータを記録する際に、一方
の物体のデータにより他方の物体のデータを破壊する頻
度を大幅に低減でき、メモリバンクの利用効率を高め、
機器に組み込まれた場合の消費電力を低減でき、復号化
・表示に必要な画面データが消失する可能性を大幅に低
減できるメモリ管理方法を得ることができる。なお、本
発明は特に、携帯端末等の消費電力等の制約上、少容量
のメモリしか搭載できない機器において有用である。
As described above, according to the memory management method corresponding to a plurality of image sequences according to the first embodiment, the image of the object of the different sequence is stored in the lower address side and the upper address side in each memory bank. Since the data is recorded, when recording the data of two objects, the frequency of destruction of the data of the other object by the data of one object can be significantly reduced, the use efficiency of the memory bank can be increased,
It is possible to obtain a memory management method capable of reducing power consumption when incorporated in a device and greatly reducing the possibility of losing screen data necessary for decoding and display. In addition, the present invention is particularly useful in a device such as a portable terminal which can be equipped with only a small-capacity memory due to power consumption and the like.

【0056】(実施の形態2)実施の形態2は実施の形
態1によるメモリ管理方法を実現するメモリ管理装置
(メモリ・ユニット)の構成を示すものである。図4は
本発明のメモリ・ユニットのブロック図である。同図に
おいて、図20の従来のメモリ・ユニットのブロック図
と同じ動作をする機器は同じ符号を付し、説明を省略す
る。図において、M10はメモリバンクを特定するととも
に、メモリバンクの最下位アドレスまたは最上位アドレ
スAdrを通知するバンク選択器であり、メモリ領域分割
手段に相当する。M12はバンク選択器M10より通知され
るメモリバンクの最上位アドレスまたは最下位アドレス
Adrと画面の大きさObjSZとの間で減算を行う減算器、M1
3はバンク選択器M10とアドレス生成器M14の間に設け
られ、バンク選択器M10の出力LHselに基づいて、メモ
リバンク出力であるアドレスAdrまたは減算器M12の出
力のいずれか一方を選択するスイッチである。M14はア
ドレス生成器であり、アドレス生成手段に相当する。ま
た、M15は画面データの重要度Priおよび系列番号ObjID
に基づいてアドレス管理を行うアドレス管理器であり、
これは、記録監視手段、破壊通知手段およびデータ保護
手段に相当する。M16はアドレス生成器M14とメモリM1
7の間に設けられ、アドレス管理器M15の出力NoObjに
基づいてオンあるいはオフ状態になるスイッチである。
M1はこれらバンク選択器M10,減算器M12,スイッチM1
3,アドレス生成器M14,アドレス管理器M15およびス
イッチM16からなるメモリ管理装置、M17はメモリ管理
装置M1により管理されるメモリ、FMはこれらメモリ管理
装置M1およびメモリM17からなるメモリ・ユニット(以
下、単にメモリと称す)である。
(Embodiment 2) Embodiment 2 shows the configuration of a memory management device (memory unit) that implements the memory management method according to Embodiment 1. FIG. 4 is a block diagram of the memory unit of the present invention. In the figure, devices that operate in the same manner as in the block diagram of the conventional memory unit in FIG. 20 are denoted by the same reference numerals, and description thereof will be omitted. In the figure, M10 is a bank selector that specifies a memory bank and notifies the lowest address or the highest address Adr of the memory bank, and corresponds to a memory area dividing unit. M12 is the highest address or the lowest address of the memory bank notified by the bank selector M10
A subtractor, M1, that subtracts between Adr and the screen size ObjSZ
A switch 3 is provided between the bank selector M10 and the address generator M14, and selects one of the address Adr as a memory bank output and the output of the subtractor M12 based on the output LHsel of the bank selector M10. is there. M14 is an address generator, which corresponds to an address generator. M15 is the screen data importance Pri and sequence number ObjID.
Address management device that performs address management based on
This corresponds to a recording monitoring unit, a destruction notification unit, and a data protection unit. M16 is an address generator M14 and memory M1
7, which is turned on or off based on the output NoObj of the address manager M15.
M1 is a bank selector M10, a subtractor M12, and a switch M1.
3, a memory management device including an address generator M14, an address management device M15, and a switch M16; M17, a memory managed by the memory management device M1; Simply referred to as memory).

【0057】次に動作について説明する。最初に記録時
の動作を説明する。メモリ領域分割手段としてのバンク
選択器M10は分割されたメモリバンクから画像の系列番
号ObjIDに対応するメモリバンクを特定する。これは、
メモリM17のアドレス空間全体をADstart[i]からADend
[i] (i は1≦i≦nを満たす整数)までの番地に該当す
るメモリアドレス空間に分割することで行う。各メモリ
バンクには2つのObjID(即ち、2つの画像系列の画面)
を記録する。その際、バンク選択器M10は、メモリバン
クの下位アドレス側に記録すべき画面の場合はメモリバ
ンクの最下位アドレスをAdrとして通知し、メモリバン
クの上位アドレス側に記録される場合はメモリバンクの
最上位アドレスをAdrとして通知する。また、バンク選
択器M10は、メモリバンク内の上位アドレス側と下位ア
ドレス側のどちらの側に画面が記録されるかを選択信号
LHselで指示する。なお、本発明の実施の形態2による
メモリ管理装置は、参照画像格納用メモリと、復号化画
像格納用メモリとをそれぞれ分けて説明しているため、
メモリ領域分割手段としてのバンク選択機M10は、メモ
リM17のアドレス空間全体をADstart[i]からADend[i]
(i は1≦i≦nを満たす整数)までの番地に該当するn
個のメモリアドレス空間に分割するとしているが、参照
画像格納用メモリと、復号化画像格納用メモリの何れか
に着目したメモリの管理方法を考えた場合には、メモリ
管理装置が有するメモリ領域分割手段としてのバンク選
択機M10は、メモリM17のアドレス空間全体をADstart
[i]からADend[i] (i は1≦i≦n/2を満たす整数)
までの番地に該当するn/2個のメモリアドレス空間に
分割することとなる。
Next, the operation will be described. First, the operation at the time of recording will be described. The bank selector M10 as a memory area dividing means specifies a memory bank corresponding to the image sequence number ObjID from the divided memory banks. this is,
The entire address space of the memory M17 is changed from ADstart [i] to ADend
[i] (i is an integer that satisfies 1 ≦ i ≦ n) by dividing into memory address spaces corresponding to addresses. Each memory bank has two ObjIDs (ie, two image sequence screens)
Record At this time, the bank selector M10 notifies the lowest address of the memory bank as Adr in the case of a screen to be recorded on the lower address side of the memory bank. The highest address is notified as Adr. In addition, the bank selector M10 is used to select whether the screen is to be recorded on the upper address side or the lower address side in the memory bank.
Specify with LHsel. Note that the memory management device according to the second embodiment of the present invention separately describes the reference image storage memory and the decoded image storage memory,
The bank selector M10 as a memory area dividing means converts the entire address space of the memory M17 from ADstart [i] to ADend [i].
N corresponding to an address up to (i is an integer satisfying 1 ≦ i ≦ n)
However, if a memory management method focusing on either the reference image storage memory or the decoded image storage memory is considered, the memory area division of the memory management device is considered. The bank selector M10 as a means performs ADstart on the entire address space of the memory M17.
[i] to ADend [i] (i is an integer satisfying 1 ≦ i ≦ n / 2)
Is divided into n / 2 memory address spaces corresponding to the addresses up to.

【0058】バンク選択器M10のメモリエリアの選択
は、同じ画像系列番号ObjIDで過去に使用され現在は開
放されたメモリエリアを選ぶように動作する。このた
め、画面の記録位置がメモリバンク内の下位アドレス側
の場合はスイッチM13でメモリバンクの最下位アドレス
がアドレス生成器M14に入力され、一方、画面の記録位
置がメモリバンク内の上位アドレス側の場合はメモリバ
ンク内の最上位アドレスから画面の大きさObjSZを減算
した値をスイッチM13で選択してアドレス生成器M14に入
力する。アドレス生成手段としてのアドレス生成器M14
はスイッチM13で選択したアドレス位置から大きさObjSZ
の範囲のメモリ位置を指定し、メモリM17に外部から入
力される画面データADstart[i]から上位メモリアドレス
に向けて第iの画像系列の画像を記録するためのエリア
として使用するとともに、ADend[i]から下位メモリアド
レスに向けて第(i+1)の画像系列の画像を記録する
ためのエリアとして使用する。
The selection of the memory area of the bank selector M10 operates so as to select a memory area which has been used in the past with the same image sequence number ObjID and is now open. Therefore, when the screen recording position is on the lower address side in the memory bank, the lowest address of the memory bank is input to the address generator M14 by the switch M13, while the screen recording position is on the upper address side in the memory bank. In the case of, the value obtained by subtracting the screen size ObjSZ from the highest address in the memory bank is selected by the switch M13 and input to the address generator M14. Address generator M14 as address generation means
Is the size ObjSZ from the address position selected by switch M13
Is used as an area for recording an image of the i-th image sequence from the screen data ADstart [i] externally input to the memory M17 toward the upper memory address, and ADend [ It is used as an area for recording an image of the (i + 1) -th image sequence from i] to the lower memory address.

【0059】記録監視手段としてのアドレス管理器M15
は、第iの画像系列の画像と第(i+1)の画像系列の
画像を同じアドレス空間に記録することによって一方が
他方を破壊するか否かを監視する。これは、アドレス生
成器M14で出力されるアドレスを監視し、異なる画像系
列番号ObjIDの画面が同じアドレス位置に書き込まれる
か否かを検査することで実行する。異なる画像系列番号
ObjIDの画面を同じアドレス位置に書き込もうとした場
合は、書き込もうとする画面データの重要度Priと既に
書き込まれた画面データの重要度Priを判定する。そし
て、データ保護手段としてのアドレス管理器M15は、書
き込もうとする画面データの重要度Priが既に書き込ま
れた画面データの重要度Priより高ければ、スイッチM16
をON にしてメモリM17への書き込みを実行する。また、
書き込もうとする画面データの重要度Priが既に書き込
まれた画面データの重要度Priより低ければ、スイッチM
16をOFFにしてメモリM17への書き込みを中断する。
Address manager M15 as recording monitoring means
Monitors whether the one destroys the other by recording the image of the i-th image sequence and the image of the (i + 1) -th image sequence in the same address space. This is performed by monitoring the addresses output by the address generator M14 and checking whether or not screens with different image sequence numbers ObjID are written at the same address position. Different image sequence numbers
When the screen of ObjID is to be written to the same address position, the importance Pri of the screen data to be written and the importance Pri of the already written screen data are determined. If the importance Pri of the screen data to be written is higher than the importance Pri of the already written screen data, the address manager M15 as the data protection means switches the switch M16.
To ON to execute writing to the memory M17. Also,
If the importance Pri of the screen data to be written is lower than the importance Pri of the already written screen data, the switch M
Turn OFF 16 to interrupt writing to memory M17.

【0060】画面データの重要度Priはコンテンツの作
成者により予め与えられるもので、例えば背景等には低
い重要度が、画面内の物体の画像には高い重要度が与え
られる。これにより、重要度の高いデータはメモリM17
に書き込まれて保護される反面、重要度の低いデータは
メモリM17に書き込まれずに破壊されるため、完全な復
号化動作・表示動作は中断せざるを得なくなるが、破壊
されたデータは重要度が低いために、これを参照するこ
となく復号化動作・表示動作を行うことにより、例えば
画像の鮮明度が若干低下する程度の,実用上支障をきた
さない程度の画質劣化を生じるのみで復号化・表示が可
能となる。なお、異なる画像系列番号ObjIDの画面が同
じアドレス位置に書き込まれる場合に、重要度Priが同
じであった場合や重要度Priが外部から与えられない場
合の動作については、予めスイッチM16をOFFにするか、
ONにするかを一意に決定しておく。
The importance Pri of the screen data is given in advance by the creator of the content. For example, a low importance is given to the background and the like, and a high importance is given to the image of the object in the screen. As a result, highly important data is stored in the memory M17.
While data is protected by writing to the memory M17, data of low importance is destroyed without being written to the memory M17, so complete decoding and display operations have to be interrupted. Therefore, by performing the decoding operation and the display operation without referring to this, the decoding is performed only by causing the image quality deterioration that does not hinder the practical use, for example, the image sharpness is slightly reduced.・ Display becomes possible. In the case where the screens of different image sequence numbers ObjID are written at the same address position, when the importance Pri is the same or when the importance Pri is not externally given, the switch M16 is turned off in advance. Or,
It is uniquely determined whether to turn ON.

【0061】次に、読み出し時の動作について説明す
る。アドレス管理器M15は記録時に監視したアドレス生
成器M14の出力から、画像系列番号ObjIDに対応するメモ
リアドレスの開始終了位置を位置信号StartEndでアドレ
ス生成器M14に指示する。アドレス生成器M14は位置信号
StartEndに従ってメモリM17にメモリアドレスを指示
し、メモリM17から所望の画面データをFMoutとして出力
する。なお、破壊通知手段としてのアドレス管理器M15
は、記録時に監視したアドレス生成器M14の出力から、
読み出すべき画像系列番号ObjID に相当する画面データ
が他の画像系列のデータで破壊されたか否かを記憶して
いる。従って、画像系列番号ObjIDで指示された画面デ
ータが破壊している場合は、NoObjで外部に破壊された
画像データである旨を通知する。これにより、アクセス
した画像系列の画像が破壊されているか否かをメモリか
ら画像データを読み出す際に通知することができる。
Next, the operation at the time of reading will be described. From the output of the address generator M14 monitored at the time of recording, the address manager M15 instructs the address generator M14 with the position signal StartEnd of the start / end position of the memory address corresponding to the image sequence number ObjID. Address generator M14 is a position signal
A memory address is instructed to the memory M17 according to StartEnd, and desired screen data is output from the memory M17 as FMout. The address manager M15 as a destruction notification means
From the output of the address generator M14 monitored during recording,
It stores whether or not the screen data corresponding to the image sequence number ObjID to be read has been destroyed by data of another image sequence. Therefore, when the screen data specified by the image sequence number ObjID is destroyed, the fact that the image data is destroyed is notified to NoObj. This makes it possible to notify whether or not the accessed image sequence image is destroyed when reading the image data from the memory.

【0062】また、アドレス管理器M15が、同じ画像系
列番号ObjIDで破壊されていない最も新しい時刻の画面
データのアドレスを保持する機能を備えていれば、Star
tEndとして破壊されていない最も新しい時刻の画面デー
タのアドレスを指示し、且つスイッチM16をOnにするこ
とで、代替画面として好ましい,時間的に近い同じ画像
系列の画面をメモリM17から読み出すことができる。代
替画面を出力している旨もNoObjで通知が可能である。
If the address manager M15 has a function of holding the address of the screen data at the latest time that has not been destroyed by the same image sequence number ObjID, Star
By indicating the address of the screen data at the latest time that has not been destroyed as tEnd and turning on the switch M16, it is possible to read from the memory M17 a screen of the same image sequence that is close in time and is preferable as an alternative screen. . NoObj can also notify that an alternative screen is being output.

【0063】以上のような構成により、実施の形態1の
メモリ管理方法をハードウエアとして実現することがで
き、2つの物体のデータを記録する際に、いずれか一方
の物体のデータにより他方の物体のデータを上書きして
これを破壊する頻度を大幅に低減でき、メモリバンクの
利用効率を高め、機器に組み込まれた場合の消費電力を
低減でき、符号化・復号化・表示に必要な画面データが
消失する可能性を大幅に低減できるとともに、2つの相
異なる画像系列の画像を同じメモリアドレス空間に記録
する際に、いずれか一方の画像系列の画像データが他方
を破壊するか否かを監視でき、破壊が生じた場合はその
旨を外部に通知できるとともに、破壊をする場合は重要
度の低いデータを破壊し重要度の高いデータはこれを保
護できるメモリ管理装置を得ることができる。
With the above configuration, the memory management method of the first embodiment can be realized as hardware, and when data of two objects is recorded, data of one of the objects is used to record data of the other object. Can significantly reduce the frequency of overwriting data and destroying it, increase the efficiency of memory bank use, reduce power consumption when embedded in equipment, and save screen data necessary for encoding, decoding, and display. Can greatly reduce the possibility of image loss, and monitor whether image data of one of the image series destroys the other when recording two different image series in the same memory address space. Memory management that can notify the outside if damage has occurred and, if destroyed, destroy less important data and protect more important data Device can be obtained.

【0064】また、この図4のメモリ管理装置は、図1
7の画像符号化装置、図18の画像復号化装置、図19
の画像表示装置におけるメモリFMとそのまま置換するこ
とで、画像の符号化、復号化、表示を行うにあたって2
つの物体のデータをメモリに記録する際に、一方の物体
のデータにより他方の物体のデータを破壊する頻度を大
幅に低減でき、メモリバンクの利用効率を高め、従来の
メモリ・ユニットを使用するよりもメモリ量を節約でき
るとともに、機器に組み込まれた場合の消費電力を低減
でき、符号化・復号化・表示に必要な画面データが消失
する可能性を大幅に低減できるとともに、2つの相異な
る画像系列の画像を同じメモリアドレス空間に記録する
際に、一方が他方を破壊するか否かを監視でき、破壊が
生じた場合はその旨を外部に通知できるとともに、破壊
をする場合は重要度の低いデータを破壊し重要度の高い
データについてはこれを保護できる画像符号化装置、画
像復号化装置、画像表示装置を構成することができる。
なお、本発明は特に、携帯端末等の消費電力等の制約
上、少容量のメモリしか搭載できない機器において有用
である。
Further, the memory management device shown in FIG.
7, the image decoding device of FIG. 18, the image decoding device of FIG.
When encoding, decoding, and displaying an image by replacing the memory FM in the image display device of
When the data of one object is recorded in the memory, the frequency of destruction of the data of the other object by the data of one object can be significantly reduced, the utilization efficiency of the memory bank can be increased, and the use of the conventional memory unit can be improved. Also saves memory space, reduces power consumption when embedded in equipment, greatly reduces the possibility of losing screen data required for encoding, decoding, and display, and also provides two different images. When recording a series of images in the same memory address space, it is possible to monitor whether one will destroy the other, to notify the outside if corruption has occurred, and to indicate the degree of importance when destroying. An image encoding device, an image decoding device, and an image display device that can destroy low data and protect high importance data can be configured.
In addition, the present invention is particularly useful in a device such as a portable terminal which can be equipped with only a small-capacity memory due to power consumption and the like.

【0065】(実施の形態3)実施の形態3は、実施の
形態2によるメモリ管理装置のメモリへの記録をソフト
ウエアにより実現した場合の実行手順を示すものであ
る。図5は、本発明のメモリ・ユニットの記録手順をソ
フトウェアで実現する場合のフローチャートである。こ
の図5は、図2の如きメモリアドレスの分割例におい
て、画像系列1の画面Obj1と画像系列2の画面Obj2を同じ
メモリバンクに記録する際に、画面Obj1を記録する手順
を示している。まず、Obj1を記録するために必要なメモ
リの範囲FM1aを計算する(ステップW1)。次にFM1aのア
ドレスがObj2で使用されているメモリエリアと重複する
かどうかを検査する(ステップW2)。重複していれば、
Obj1とObj2の重要度Priを比較し(ステップW3)、Obj1
の重要度PriがObj2の重要度Priより低ければ何も書き込
まないで終了し、そうでなければ、Obj2が記録されてい
るFM2aのメモリを開放してObj1のメモリエリアとして確
保する(ステップW4)。最後にFM1aのメモリエリアに画
面データを記録し(ステップW5)、終了する。
(Embodiment 3) Embodiment 3 shows an execution procedure when recording in the memory of the memory management device according to Embodiment 2 is realized by software. FIG. 5 is a flowchart in the case where the recording procedure of the memory unit of the present invention is realized by software. FIG. 5 shows a procedure for recording the screen Obj1 when the screen Obj1 of the image series 1 and the screen Obj2 of the image series 2 are recorded in the same memory bank in the example of dividing the memory address as shown in FIG. First, a memory range FM1a necessary for recording Obj1 is calculated (step W1). Next, it is checked whether the address of FM1a overlaps with the memory area used by Obj2 (step W2). If they overlap,
The importance Pri of Obj1 and Obj2 is compared (step W3), and Obj1 is compared.
If the priority Pri is lower than the priority Pri of Obj2, the process ends without writing anything. Otherwise, the memory of FM2a in which Obj2 is recorded is released and secured as a memory area of Obj1 (step W4). . Finally, the screen data is recorded in the memory area of FM1a (step W5), and the processing ends.

【0066】以上の様にして、実施の形態2で説明した
メモリ・ユニットの記録手順をソフトウェアで実現で
き、2つの物体のデータを記録する際に、一方の物体の
データにより他方の物体のデータを破壊する頻度を大幅
に低減でき、メモリバンクの利用効率を高め、機器に組
み込まれた場合の消費電力を低減でき、符号化・復号化
・表示に必要な画面データが消失する可能性を大幅に低
減できるメモリ管理方法を得ることができる。
As described above, the recording procedure of the memory unit described in the second embodiment can be realized by software, and when recording data of two objects, data of one object is used to record data of the other object. Can greatly reduce the frequency of destruction of data, increase the efficiency of memory bank use, reduce power consumption when embedded in equipment, and greatly reduce the possibility of losing screen data required for encoding, decoding, and display. It is possible to obtain a memory management method that can be reduced.

【0067】(実施の形態4)実施の形態4は、実施の
形態2によるメモリ管理装置の読み出し手順をソフトウ
エアにより実現した場合の実行手順を示すものである。
図6は、本発明のメモリ・ユニットの読み出し手順をソ
フトウェアで実現する場合のフローチャートである。こ
の図6は、図2のメモリアドレスの分割例において、画
像系列1の画面Obj1と画像系列2の画面Obj2が同じメモ
リバンクに記録されており、本来読み出すべき画面はFM
1aに記録されているものとする。
(Embodiment 4) Embodiment 4 shows an execution procedure when the read procedure of the memory management device according to Embodiment 2 is realized by software.
FIG. 6 is a flowchart in the case where the read procedure of the memory unit of the present invention is realized by software. FIG. 6 shows a screen Obj1 of the image sequence 1 and a screen Obj2 of the image sequence 2 in the same memory bank in the division example of the memory address in FIG.
It shall be recorded in 1a.

【0068】まず、最新のObj1が記録されているメモリ
エリアをFM1aもしくはFM1bから選択し、これを書込範囲
FM1とする(ステップR1)。次にFM1がFM1aであるかどう
かを判定する(ステップR2)。ここで、本来はFM1aが選
択されるべきであるが、FM1aが破壊されている場合は、
代わりにFM1bが選択されることになる。FM1がFM1aなら
ば、FM1aは破壊されていないので、NoObjを“0”とし
て、FM1aが正しく読み出せる旨を外部に通知し(ステッ
プR3)、そうでなければFM1がFM1bであるか否かを判定
し(ステップR4)、FM1がFM1bであれば、NoObjを“1”
として、FM1aが破壊されて替りにFM1bが出力されている
旨を外部に通知する(ステップR5)。一方、FM1がFM1a
でもFM1bでも無い場合は、当該画像系列が全て破壊され
ている旨を、NoObjを“2”として外部に通知する(ステ
ップR6)。最後に、FM1を読み出した画面FMoutとして出
力する(ステップR7)。FM1は破壊されていない最新の
画面であるから、NoObj=1であっても、本来の画面の代
替として表示に使用しても画質劣化が比較的少ない画面
が出力されることになる。なお、NoObjの値は一例にす
ぎないものであり、他の値を使用したり、あるいはそれ
と同じ意味を持つ複数の信号(例えば、FM1がFM1aと同
じか否かと、FM1がFMoutに出力されているか否かの判定
結果)を使用しても良い。
First, the memory area in which the latest Obj1 is recorded is selected from FM1a or FM1b, and this is written in the writing area.
Set FM1 (step R1). Next, it is determined whether or not FM1 is FM1a (step R2). Here, originally FM1a should be selected, but if FM1a is destroyed,
Instead, FM1b will be selected. If FM1 is FM1a, since FM1a has not been destroyed, NoObj is set to “0” and an external notification that FM1a can be read correctly is sent to the outside (step R3). Otherwise, whether FM1 is FM1b is determined. Determine (Step R4), if FM1 is FM1b, set NoObj to “1”
To the outside that FM1a has been destroyed and FM1b has been output instead (step R5). On the other hand, FM1 is FM1a
However, if it is neither FM1b, it notifies the outside that No.Obj is “2” to the effect that the image sequence is completely destroyed (step R6). Finally, FM1 is output as the read-out screen FMout (step R7). Since FM1 is the latest screen that has not been destroyed, even if NoObj = 1, a screen with relatively little deterioration in image quality will be output even if it is used for display instead of the original screen. Note that the value of NoObj is merely an example, and other values may be used or a plurality of signals having the same meaning (for example, whether or not FM1 is the same as FM1a and whether FM1 is output to FMout May be used.

【0069】以上の様にして、実施の形態2で説明した
メモリ・ユニットの読み出し手順をソフトウェアで実現
でき、2つの物体のデータを記録する際に、一方の物体
のデータにより他方の物体のデータを破壊する頻度を大
幅に低減でき、メモリバンクの利用効率を高め、機器に
組み込まれた場合の消費電力を低減でき、符号化・復号
化・表示に必要な画面データが消失する可能性を大幅に
低減し得るメモリ管理方法,に対応する読み出し方法を
実現することが可能となり、読み出されたデータが破壊
されたものか否かの情報も併せて出力することができる
効果がある。また、この図6のメモリ管理方法(読み出
し手順)は、図5のメモリ管理方法(書き込み手順)と
組み合わせたうえで、図17の画像符号化装置、図18
の画像復号化装置、図19の画像表示装置におけるメモ
リFMにそのまま適用することで、従来のメモリ・ユニッ
トを使用するよりも節約したメモリ量で画像符号化、画
像復号化、画像表示化を行うことが可能な画像符号化方
法、画像復号化方法、画像表示方法を実現することがで
きる。
As described above, the read procedure of the memory unit described in the second embodiment can be realized by software, and when data of two objects is recorded, data of one object is used to record data of the other object. Can greatly reduce the frequency of destruction of data, increase the efficiency of memory bank use, reduce power consumption when embedded in equipment, and greatly reduce the possibility of losing screen data required for encoding, decoding, and display. This makes it possible to realize a memory management method that can be reduced to a minimum and a reading method corresponding to the memory management method, and has an effect that information indicating whether or not the read data has been destroyed can also be output. The memory management method (reading procedure) shown in FIG. 6 is combined with the memory management method (writing procedure) shown in FIG.
19, the image encoding device performs image encoding, image decoding, and image display with a reduced amount of memory compared to using a conventional memory unit by directly applying to the memory FM in the image display device of FIG. It is possible to realize an image encoding method, an image decoding method, and an image display method that are capable of being performed.

【0070】(実施の形態5)実施の形態5は実施の形
態2によるメモリ管理装置(メモリ・ユニット)の構成
の簡単化を図った例を示すものである。図7は本発明の
メモリ・ユニットのブロック図である。同図と図4のメ
モリ・ユニットのブロック図との違いは、メモリM17か
ら読み出したデータが破壊されていることを通知するNo
Obj、およびスイッチM16が本実施の形態では省略されて
いることである。メモリ・ユニットの内部のメモリM17
が十分大きく、メモリバンク内でメモリエリアが破壊さ
れないことが保証されている場合は、NoObjが常に0であ
るためこれを出力する必要は無い。そこで、この様な状
況ではNoObjを省略した本メモリ・ユニットでも十分で
ある。
(Fifth Embodiment) A fifth embodiment is an example in which the configuration of a memory management device (memory unit) according to the second embodiment is simplified. FIG. 7 is a block diagram of the memory unit of the present invention. 4 is different from the block diagram of the memory unit in FIG.
Obj and the switch M16 are omitted in the present embodiment. Memory M17 inside the memory unit
Is large enough to guarantee that the memory area in the memory bank is not destroyed, there is no need to output this because NoObj is always 0. Therefore, in such a situation, the present memory unit from which NoObj is omitted is sufficient.

【0071】以上のような構成により、実施の形態1の
メモリ管理方法をハードウエアとして実現することがで
き、2つの物体のデータを記録する際に、一方の物体の
データにより他方の物体のデータを破壊する頻度を大幅
に低減でき、メモリバンクの利用効率を高め、機器に組
み込まれた場合の消費電力を低減でき、符号化・復号化
・表示に必要な画面データが消失する可能性を大幅に低
減できるとともに、2つの相異なる画像系列の画像を同
じメモリアドレス空間に記録する際に、一方が他方を破
壊するか否かを監視でき、破壊が行われる場合は重要度
の低いデータを破壊し重要度の高いデータはこれを保護
できる,実施の形態2よりも構成簡単なメモリ管理装置
を得ることができる。
With the above configuration, the memory management method of the first embodiment can be realized as hardware, and when recording data of two objects, data of one object is used to record data of the other object. Can greatly reduce the frequency of destruction of data, increase the efficiency of memory bank use, reduce power consumption when embedded in equipment, and greatly reduce the possibility of losing screen data required for encoding, decoding, and display. When recording two different image sequences in the same memory address space, it is possible to monitor whether one destroys the other, and if it is destroyed, destroy less important data In addition, a memory management device having a simpler configuration than that of the second embodiment can be obtained, which can protect data having high importance.

【0072】また、この図7のメモリ管理装置は、図1
7の画像符号化装置、図18の画像復号化装置、図19
の画像表示装置におけるメモリFMとそのまま置換するこ
とで、画像の符号化、復号化、画像の表示を行うにあた
って2つの物体のデータをメモリに記録する際に、一方
の物体のデータにより他方の物体のデータを破壊する頻
度を大幅に低減でき、メモリバンクの利用効率を高め、
従来のメモリ・ユニットを使用するよりもメモリ量を節
約できるとともに、機器に組み込まれた場合の消費電力
を低減でき、符号化・復号化・表示に必要な画面データ
が消失する可能性を大幅に低減できるとともに、2つの
相異なる画像系列の画像を同じメモリアドレス空間に記
録する際に、一方が他方を破壊するか否かを監視でき、
破壊が行なわれる場合は重要度の低いデータを破壊し重
要度の高いデータはこれを保護できる画像符号化装置、
復号化装置、画像表示装置を構成することができる。
The memory management device shown in FIG.
7, the image decoding device of FIG. 18, the image decoding device of FIG.
When the data of two objects is recorded in the memory when encoding, decoding, and displaying an image by directly replacing the memory FM in the image display device of Can significantly reduce the frequency of destruction of data, increase the efficiency of memory bank usage,
Compared to using a conventional memory unit, the amount of memory can be reduced, the power consumption when built into the device can be reduced, and the possibility of losing screen data required for encoding, decoding, and display is greatly increased. While recording images of two different image sequences in the same memory address space, it is possible to monitor whether one destroys the other,
An image encoding device that can destroy less important data and protect more important data when it is destroyed,
A decoding device and an image display device can be configured.

【0073】(実施の形態6)実施の形態6は実施の形
態5によるメモリ管理装置(メモリ・ユニット)を使用
した画像復号化装置の構成を示すものである。図8は本
発明の画像復号化装置のブロック図である。同図におい
て、図18の画像復号化装置のブロック図と同じ構成の
機器は同じ番号を付し、説明を省略する。同図における
メモリ・ユニットFMは図7のメモリ・ユニットと同じも
のである。メモリ・ユニットFMにあらかじめ外部で設定
した,画像系列の重要度Priを入力し、これをメモリ・
ユニットFMへのデータの書き込みの際に参照する。即
ち、異なる画像系列番号ObjIDの画面をメモリの同じア
ドレス位置に書き込もうとした場合は、書き込もうとす
る画面データの重要度Priと既に書き込まれた画面デー
タの重要度Priを判定し、書き込もうとする画面データ
の重要度Priが既に書き込まれた画面データの重要度Pri
より高ければメモリへの書き込みを実行する。また、書
き込もうとする画面データの重要度Priが既に書き込ま
れた画面データの重要度Priより低ければメモリへの書
き込みを中断する。これにより、重要な画像系列が破壊
されることを防ぎ、重要な画像系列を正しく復号化する
ことが可能となる。この画像復号装置では、重要度Pri
が低い画像系列は破壊される可能性が高くなり、破壊さ
れた画像を復号することで画質劣化が生じうるが、重要
でない画像系列の多少の画質劣化は十分許容できる。
(Embodiment 6) Embodiment 6 shows the configuration of an image decoding apparatus using a memory management apparatus (memory unit) according to Embodiment 5. FIG. 8 is a block diagram of the image decoding apparatus of the present invention. In the figure, devices having the same configuration as those in the block diagram of the image decoding device in FIG. 18 are denoted by the same reference numerals, and description thereof will be omitted. The memory unit FM in the figure is the same as the memory unit in FIG. The importance Pri of the image sequence, which has been set externally in advance, is input to the memory unit FM, and this is stored in the memory unit FM.
Refer to when writing data to the unit FM. That is, when trying to write a screen of a different image sequence number ObjID at the same address position in the memory, the importance Pri of the screen data to be written and the importance Pri of the already written screen data are determined, and the screen to be written is determined. Importance Pri of screen data in which data importance Pri has already been written
If higher, write to memory is performed. If the importance Pri of the screen data to be written is lower than the importance Pri of the already written screen data, the writing to the memory is interrupted. As a result, it is possible to prevent the important image series from being destroyed, and to correctly decode the important image series. In this image decoding apparatus, the importance level Pri
The image sequence having a low image sequence has a high possibility of being destroyed, and the image quality may be degraded by decoding the destructed image.

【0074】以上のような構成により、画像の復号化の
表示を行うにあたって2つの物体のデータをメモリに記
録する際に、一方の物体のデータにより他方の物体のデ
ータを破壊する頻度を大幅に低減でき、メモリバンクの
利用効率を高め、従来のメモリ・ユニットを使用するよ
りもメモリ量を節約できるとともに、機器に組み込まれ
た場合の消費電力を低減でき、復号化に必要な画面デー
タが消失する可能性を大幅に低減できるとともに、2つ
の相異なる画像系列の画像を同じメモリアドレス空間に
記録する際に、一方が他方を破壊するか否かを監視で
き、破壊をする場合は重要度の低いデータを破壊し重要
度の高いデータはこれを保護できる画像復号化装置を構
成することができる。なお、重要度Priが低い画像系列
が破壊された場合は、一旦その復号化を中止し、それ以
前に復号化された画像を出力し続け、次にIフレームが
現れた時点で復号を再開してもよい。また、本発明の実
施の形態6の画像復号化装置は重要度Priを利用できるメ
モリ・ユニットであれば、図8に示すもの以外を使用す
ることも可能である。
With the above-described configuration, when the data of two objects is recorded in the memory when the image is displayed for decoding, the frequency of destruction of the data of the other object by the data of one object is greatly increased. Reduces the amount of memory used compared to conventional memory units, reduces power consumption when embedded in equipment, and eliminates screen data required for decoding. In addition, when two different image sequences of images are recorded in the same memory address space, it is possible to monitor whether one destroys the other. An image decoding apparatus capable of destroying low data and protecting high importance data can be configured. When an image sequence with a low priority level Pri is destroyed, the decoding is stopped once, the image decoded before is continuously output, and the decoding is restarted when the next I frame appears. You may. The image decoding apparatus according to the sixth embodiment of the present invention can use a memory unit other than that shown in FIG. 8 as long as it is a memory unit that can use the importance level Pri.

【0075】(実施の形態7)実施の形態7は実施の形
態2によるメモリ管理装置(メモリ・ユニット)の構成
の簡単化を図ったものを示すものである。図9は本発明
のメモリ・ユニットのブロック図である。同図と図4の
メモリ・ユニットのブロック図との違いは、外部からの
重要度Priの入力、が省略されていることである。画像
系列に予め重要度が付与されていない場合は、重要度の
情報を利用することができない。そこで、この様な状況
では重要度Priを省略したメモリ・ユニットでも十分で
ある。
(Embodiment 7) Embodiment 7 shows a simplified structure of a memory management device (memory unit) according to Embodiment 2. FIG. 9 is a block diagram of the memory unit of the present invention. The difference between this figure and the block diagram of the memory unit in FIG. 4 is that the input of the importance Pri from the outside is omitted. If the importance is not assigned to the image sequence in advance, the information of the importance cannot be used. Therefore, in such a situation, a memory unit in which the importance Pri is omitted is sufficient.

【0076】この図9のメモリ・ユニットを利用した画
像復号化装置のブロック図を図10に示す。同図におい
て、図17の画像復号化装置のブロック図と同じ構成の
機器は同じ番号を付し、説明を省略する。同図における
メモリ・ユニットFMは図9のメモリ・ユニットを使用す
る。メモリ・ユニットFMから通知されるNoObjが、参照
すべき画面が破壊されていることを通知した場合は、ス
イッチU10をOffにして当該画面の復号化を中止する。即
ち、参照画像が破壊されていれば、参照画像に基づいて
必要な復号化を正しく行うことは不可能なため、スイッ
チU10をOffにすることで当該画面のVbinの入力を停止
し、VLD器U11、逆量子化器U6、IDCT器U7、加算器U8、MC
器U12の動作を停止させて計算量および消費電力の低減
を達成できる。
FIG. 10 is a block diagram of an image decoding apparatus using the memory unit shown in FIG. In the figure, devices having the same configuration as those in the block diagram of the image decoding device in FIG. The memory unit FM in the figure uses the memory unit in FIG. When NoObj notified from the memory unit FM notifies that the screen to be referred to is destroyed, the switch U10 is turned off to stop decoding the screen. That is, if the reference image is destroyed, it is impossible to perform the necessary decoding correctly based on the reference image, and thus, by turning off the switch U10, the input of the Vbin of the screen is stopped, and the VLD device U11, inverse quantizer U6, IDCT unit U7, adder U8, MC
The operation of the device U12 can be stopped to reduce the amount of calculation and the power consumption.

【0077】以上のような構成により、実施の形態1の
メモリ管理方法をハードウエアとして実現することがで
き、2つの物体のデータを記録する際に、一方の物体の
データにより他方の物体のデータを破壊する頻度を大幅
に低減でき、メモリバンクの利用効率を高め、機器に組
み込まれた場合の消費電力を低減でき、符号化・復号化
・表示に必要な画面データが消失する可能性を大幅に低
減できるとともに、2つの相異なる画像系列の画像を同
じメモリアドレス空間に記録する際に、一方が他方を破
壊するか否かを監視でき、破壊が生じた場合はその旨を
外部に通知できる,実施の形態2よりも構成簡単なメモ
リ管理装置を得ることができる。
With the above configuration, the memory management method according to the first embodiment can be realized as hardware, and when data of two objects is recorded, data of one object is used to record data of the other object. Can significantly reduce the frequency of destruction, increase the efficiency of memory bank usage, reduce power consumption when embedded in devices, and greatly reduce the possibility of losing screen data required for encoding, decoding, and display. In addition, when two different image series of images are recorded in the same memory address space, it is possible to monitor whether one destroys the other, and to notify the outside if the corruption occurs. , A memory management device having a simpler configuration than that of the second embodiment can be obtained.

【0078】また、この図9のメモリ管理装置は、図1
7の画像符号化装置、図18の画像復号化装置、図19
の画像表示装置におけるメモリFMとそのまま置換するこ
とで、画像の符号化、復号化、画像の表示を行うにあた
って2つの物体のデータをメモリに記録する際に、一方
の物体のデータにより他方の物体のデータを破壊する頻
度を大幅に低減でき、メモリバンクの利用効率を高め、
従来のメモリ・ユニットを使用するよりもメモリ量を節
約できるとともに、機器に組み込まれた場合の消費電力
を低減でき、符号化・復号化・表示に必要な画面データ
が消失する可能性を大幅に低減できるとともに、2つの
相異なる画像系列の画像を同じメモリアドレス空間に記
録する際に、一方が他方を破壊するか否かを監視でき、
破壊が生じた場合はその旨を外部に通知できる,より簡
単なメモリ管理装置を有した画像符号化装置、画像復号
化装置、画像表示装置を構成することができる。なお、
実施の形態7の画像復号化装置もNoObjを出力するメモリ
・ユニットであれば、図9に示すもの以外を使用するこ
とも可能である。
The memory management device shown in FIG.
7, the image decoding device of FIG. 18, the image decoding device of FIG.
When the data of two objects is recorded in the memory when encoding, decoding, and displaying an image by directly replacing the memory FM in the image display device of Can significantly reduce the frequency of destruction of data, increase the efficiency of memory bank usage,
Compared to using a conventional memory unit, the amount of memory can be reduced, the power consumption when built into the device can be reduced, and the possibility of losing screen data required for encoding, decoding, and display is greatly increased. While recording images of two different image sequences in the same memory address space, it is possible to monitor whether one destroys the other,
When a destruction occurs, an image encoding device, an image decoding device, and an image display device having a simpler memory management device capable of notifying the fact to the outside can be configured. In addition,
The image decoding apparatus according to the seventh embodiment can also use a unit other than that shown in FIG. 9 as long as it is a memory unit that outputs NoObj.

【0079】(実施の形態8)実施の形態8は実施の形
態7によるメモリ管理装置(メモリ・ユニット)を使用
した画像表示装置の構成を示すものである。図11は本
発明の画像表示装置のブロック図である。同図におい
て、図19の画像表示装置のブロック図と同じ構成の機
器は同じ番号を付している。FMは画像系列の表示で必
要なメモリ内の画像データが破壊されたか否かを通知可
能なメモリ手段としてのメモリ・ユニットである。U20
は当該画像系列の画像データが破壊されていない場合そ
のまま当該画像を表示するように指令し、当該画像系列
の画像データが破壊されている場合は当該画像系列の破
壊されていない最新時刻の画像データを代わりに表示す
るように指令するオブジェクト選択手段としてのオブジ
ェクト選択器である。U25は前記オブジェクト選択手段
で選択した画像データを表示する表示手段としての表示
機器である。
(Eighth Embodiment) An eighth embodiment shows a configuration of an image display device using the memory management device (memory unit) according to the seventh embodiment. FIG. 11 is a block diagram of the image display device of the present invention. In the figure, devices having the same configuration as those in the block diagram of the image display device in FIG. 19 are denoted by the same reference numerals. The FM is a memory unit as a memory unit capable of notifying whether or not image data in a memory required for displaying an image sequence has been destroyed. U20
Instructs to display the image as it is if the image data of the image sequence is not destroyed, and if the image data of the image sequence is destroyed, the image data of the latest time in which the image sequence is not destroyed Is an object selector as an object selecting means for instructing to display instead. U25 is a display device as display means for displaying the image data selected by the object selection means.

【0080】同図におけるメモリ・ユニットFMは図9の
メモリ・ユニットを使用する。メモリ・ユニットFMから
出力されるNoObjの値によってスイッチU22を切り換え
る。メモリエリアが破壊されておらず、NoObjの値がス
イッチU22をONにする場合、本画像表示装置は図19の
従来のものと同様に動作する。即ち、オブジェクト選択
器U20はユーザから指示された,表示すべき画像系列情
報ObjSelに従って、表示する画像系列の番号を逐次ObjI
Dとしてメモリ・ユニットFMに指令する。メモリ・ユニ
ットFMがこの指令に応じて出力する画像出力FMoutは合
成器U23に入力され、メモリ・ユニットFMから出力され
る他の画像系列と合成され表示されるか、もしくはスイ
ッチU21で選択される既定の背景画面BGと合成表示が行
われて、スイッチU24に出力される。表示する全ての画
像系列をメモリ・ユニットFMから読み出した時点で、オ
ブジェクト選択器U20は完了信号ObjEndで表示すべき画
像系列の読み出しが完了したことをスイッチU24に通知
し、これにより、スイッチU24は表示のための同期信号D
isplayに合わせたタイミングで表示機器U25に合成画像
を出力する。これに対し、NoObjが当該画面をFMoutとし
て出力できない場合、即ち、メモリエリアが破壊されて
おり、同じ画像系列の画面を表示できない場合は、合成
器U23で合成するとデタラメな画面を合成することにな
るためにNoObjの値がスイッチU22をOffにする。
The memory unit FM shown in FIG. 9 uses the memory unit shown in FIG. The switch U22 is switched according to the value of NoObj output from the memory unit FM. When the memory area is not destroyed and the value of NoObj turns on the switch U22, the image display device operates in the same manner as the conventional one shown in FIG. That is, the object selector U20 sequentially assigns the number of the image sequence to be displayed to ObjI according to the image sequence information ObjSel to be displayed specified by the user.
Command D as memory unit FM. The image output FMout output by the memory unit FM in response to this command is input to the synthesizer U23 and is synthesized and displayed with another image sequence output from the memory unit FM, or selected by the switch U21. The display is synthesized with the default background screen BG and output to the switch U24. When all the image sequences to be displayed have been read from the memory unit FM, the object selector U20 notifies the switch U24 that the reading of the image sequence to be displayed has been completed with the completion signal ObjEnd, whereby the switch U24 Sync signal D for display
The composite image is output to the display device U25 at the timing according to isplay. On the other hand, if NoObj cannot output the screen as FMout, that is, if the memory area is destroyed and the screen of the same image sequence cannot be displayed, synthesizing with the synthesizer U23 will result in synthesizing a stuttered screen. The value of NoObj turns off switch U22.

【0081】一方、NoObjが何らかの画面をFMoutに出力
することを通知する場合、即ち、画面が破壊されていな
いか、同じ画像系列の他の画面(破壊されていない)を
読み出す場合は、上述のように、スイッチU22をONにし
て画像を合成することで、破壊されていない場合は正し
い合成画像を、同じ画像系列の他の画面を読み出す場合
は不自然さの少ない合成画像を、それぞれ得ることがで
きる。この場合、アドレス管理器が同じ画像系列番号で
破壊されていない最も新しい時刻の画面データのアドレ
スを保持する機能を有するものとすることにより、当該
画像系列の破壊されていない最新時刻の画像データを表
示でき、より不自然さの少ない合成画像を得ることがで
きる。
On the other hand, when NoObj notifies that some screen is to be output to FMout, that is, when the screen is not destroyed or when another screen of the same image series (not destroyed) is read, the above-mentioned operation is performed. By turning on the switch U22 and synthesizing the image, it is possible to obtain a correct synthesized image if it is not destroyed, and a synthesized image with less unnaturalness when reading another screen of the same image series. Can be. In this case, the address manager has a function of holding the address of the screen data at the latest time that has not been destroyed by the same image sequence number. A composite image that can be displayed and has less unnaturalness can be obtained.

【0082】以上のような構成により、画像の表示を行
うにあたって2つの物体のデータをメモリに記録する際
に、一方の物体のデータにより他方の物体のデータを破
壊する頻度を大幅に低減でき、メモリバンクの利用効率
を高め、従来のメモリ・ユニットを使用するよりもメモ
リ量を節約できるとともに、機器に組み込まれた場合の
消費電力を低減でき、表示に必要な画面データが消失す
る可能性を大幅に低減できるとともに、2つの相異なる
画像系列の画像を同じメモリアドレス空間に記録する際
に、一方が他方を破壊するか否かを監視でき、破壊が生
じた場合はその旨を外部に通知できる,より簡単なメモ
リ管理装置を有した画像表示装置を構成することができ
る。なお、実施の形態8の画像表示装置もNoObjを出力す
るメモリ・ユニットであれば、図11に示すもの以外を
使用することも可能である。
With the above-described configuration, when data of two objects is recorded in the memory when displaying an image, the frequency of destruction of data of the other object by data of one object can be greatly reduced. By increasing the efficiency of memory bank utilization, it is possible to reduce the amount of memory compared to using conventional memory units, reduce power consumption when embedded in equipment, and reduce the possibility of losing screen data required for display. When recording two different image sequences in the same memory address space, it is possible to monitor whether one will destroy the other, and notify the outside if it has occurred if it occurs. It is possible to configure an image display device having a simpler memory management device. Note that the image display device according to the eighth embodiment can also use a device other than that shown in FIG. 11 as long as it is a memory unit that outputs NoObj.

【0083】(実施の形態9)実施の形態9は実施の形
態2によるメモリ管理装置(メモリ・ユニット)の構成
のさらなる簡単化を図ったものを示すものである。図1
2は本発明のメモリ・ユニットのブロック図である。同
図と図4のメモリ・ユニットのブロック図との違いは、
外部からの重要度Priの入力、が省略され、かつメモリM
17から読み出したデータが破壊されていることを通知す
るNoObj、およびスイッチM16が本実施の形態では省略さ
れていることである。
Ninth Embodiment A ninth embodiment shows a further simplified configuration of the memory management device (memory unit) according to the second embodiment. FIG.
2 is a block diagram of the memory unit of the present invention. The difference between this figure and the block diagram of the memory unit in FIG.
Input of the importance Pri from the outside is omitted, and the memory M
NoObj notifying that the data read from 17 is destroyed, and switch M16 are omitted in the present embodiment.

【0084】以上のような構成により、実施の形態1の
メモリ管理方法をハードウエアとして実現することがで
き、2つの物体のデータを記録する際に、一方の物体の
データにより他方の物体のデータを破壊する頻度を大幅
に低減でき、メモリバンクの利用効率を高め、機器に組
み込まれた場合の消費電力を低減でき、符号化・復号化
・表示に必要な画面データが消失する可能性を大幅に低
減できるとともに、実施の形態5,7よりもさらに構成
簡単なメモリ管理装置を得ることができる。
With the above configuration, the memory management method of the first embodiment can be realized as hardware, and when recording data of two objects, data of one object is used to record data of the other object. Can significantly reduce the frequency of destruction, increase the efficiency of memory bank usage, reduce power consumption when embedded in devices, and greatly reduce the possibility of losing screen data required for encoding, decoding, and display. And a memory management device with a simpler configuration than in the fifth and seventh embodiments can be obtained.

【0085】また、この図12のメモリ管理装置は、図
17の画像符号化装置、図18の画像復号化装置、図1
9の画像表示装置におけるメモリFMとそのまま置換する
ことで、画像の符号化、復号化、画像の表示を行うにあ
たって2つの物体のデータをメモリに記録する際に、一
方の物体のデータにより他方の物体のデータを破壊する
頻度を大幅に低減でき、メモリバンクの利用効率を高
め、従来のメモリ・ユニットを使用するよりもメモリ量
を節約できるとともに、機器に組み込まれた場合の消費
電力を低減でき、符号化・復号化・表示に必要な画面デ
ータが消失する可能性を大幅に低減できるとともに、さ
らに構成簡単なメモリ管理装置を有した画像符号化装
置、画像復号化装置、画像表示装置を構成することがで
きる。
The memory management device shown in FIG. 12 includes the image encoding device shown in FIG. 17, the image decoding device shown in FIG.
9 when the data of two objects is recorded in the memory when encoding, decoding, and displaying an image by directly replacing the memory FM in the image display device of No. 9 with the data of one object. Dramatically reduce the frequency of destruction of object data, increase the efficiency of memory bank utilization, save memory space compared to using conventional memory units, and reduce power consumption when embedded in equipment. , An image encoding device, an image decoding device, and an image display device having a memory management device that can greatly reduce the possibility of losing screen data necessary for encoding, decoding, and display, and have a simpler configuration. can do.

【0086】(実施の形態10)実施の形態10は、実
施の形態6と実施の形態7の構成を併せ持つものであ
る。図13は本発明の実施の形態10による画像復号化
装置のブロック図である。同図において、図10の画像
復号化装置のブロック図と同じ構成の機器は同じ符号を
付し、説明を省略する。同図におけるメモリ・ユニット
FMは図4のメモリ・ユニットを使用する。従って、重要
度PriとNoObjの両方を備えるため、図8および図10の
各画像復号化装置の利点を合わせ持っている。なお、本
実施の形態10の画像復号化装置は、重要度PriとNoObj
を扱えるメモリ・ユニットであれば、図13に示すもの
以外を使用することも可能である。
(Embodiment 10) Embodiment 10 has the configuration of Embodiments 6 and 7. FIG. 13 is a block diagram of an image decoding apparatus according to Embodiment 10 of the present invention. In the figure, devices having the same configuration as those in the block diagram of the image decoding device in FIG. Memory unit in the figure
FM uses the memory unit of FIG. Therefore, since both the importance levels Pri and NoObj are provided, the advantages of the respective image decoding apparatuses shown in FIGS. 8 and 10 are obtained. It should be noted that the image decoding apparatus according to the tenth embodiment uses the importance Pri and NoObj
It is also possible to use a memory unit other than that shown in FIG.

【0087】(実施の形態11)以下に、本発明の実施
の形態11によるデータ管理装置について図21から図
25を用いて説明する。なお、前述した実施の形態1か
ら10では、復号化画像格納用メモリと参照画像格納用
メモリとを図2のFM1a、FM1b等に示すようにそれぞ
れ分けて説明していたが、復号化画像格納用メモリの利
用法と参照画像格納用メモリの利用法は、全く同様であ
るため、以後の説明では、復号化画像格納用メモリと参
照画像格納用メモリとを分けずに、単に画像格納用メモ
リの管理方法として説明することにする。MPEG1やMPEG
2では、画像系列の途中で画像データ(以下、オブジェ
クトと称する)の大きさが変化することは無いが、MPEG
4では、画像系列の途中でオブジェクトの大きさが変化
することが許容されている。そのため、本発明の実施の
形態11では、画像格納用メモリ内に格納するデータ
が、大きさが変化しないオブジェクトデータのみである
場合(以下、シンプル・プロファイルと称する。)と、
大きさが変化するオブジェクトデータを少なくとも一つ
含んでいる場合(以下、コア・プロファイルと称す
る。)とで画像格納用メモリのメモリ管理方法を変更し
て、メモリの管理を行うものについて説明する。
(Embodiment 11) A data management apparatus according to Embodiment 11 of the present invention will be described below with reference to FIGS. In the first to tenth embodiments, the memory for storing the decoded image and the memory for storing the reference image are separately described as shown in FM1a and FM1b in FIG. Since the usage of the reference memory and the use of the reference image storage memory are completely the same, in the following description, the decoded image storage memory and the reference image storage memory are not divided, and the image storage memory is simply used. Will be described as a management method. MPEG1 and MPEG
In 2, the size of the image data (hereinafter referred to as an object) does not change in the middle of the image sequence,
In No. 4, the size of the object is allowed to change in the middle of the image sequence. Therefore, in the eleventh embodiment of the present invention, when the data stored in the image storage memory is only the object data whose size does not change (hereinafter, referred to as a simple profile),
A case in which the memory management method of the image storage memory is changed and the memory is managed when at least one object data having a variable size is included (hereinafter, referred to as a core profile) will be described.

【0088】図21は、シンプル・プロファイル時のメ
モリ管理方法(以下、シンプル・プロファイル・モード
と称する。)の一例を示す図であり、図22は、コア・
プロファイル時のメモリ管理方法(以下、コア・プロフ
ァイル・モードと称する。)の一例を示す図である。な
お、本発明の実施の形態11では、画像を構成する画像
系列の数が最高で4つである場合についての説明を行な
う。図21、図22に示すように、画像を構成する画像
系列の数が最高で4つである場合は、メモリアドレス空
間の確保は、画像系列数に応じて、メモリ最下位位置、
メモリ最上位位置、メモリ中央位置(図21、図22に
おいて、上端がメモリアドレスの最下位位置に相当す
る。)の順番に確保するものとし、確保されたメモリ空
間に各画像系列のオブジェクトデータを格納する。即
ち、シンプル・プロファイル・モードにおけるメモリ空
間の確保は、図21に示すように、オブジェクト数が1
つの場合には、メモリ最下位位置(図21(a))に、
オブジェクト数が2つの場合には、メモリ最下位位置
と、最上位位置(図21(b))に、それぞれメモリ空
間を確保する。また、オブジェクト数が3つの場合に
は、メモリ最下位位置と、最上位位置、及びメモリ端位
置であるメモリ最下位位置に格納したオブジェクトデー
タと隣接した位置(図21(c))にメモリ空間を確保
し、オブジェクト数が4つの場合には、さらに、もう一
方のメモリ端位置であるメモリ最上位位置に格納したオ
ブジェクトデータと隣接した位置(図21(d))にメ
モリ空間を確保する。
FIG. 21 is a diagram showing an example of a memory management method at the time of a simple profile (hereinafter, referred to as a simple profile mode), and FIG.
FIG. 9 is a diagram illustrating an example of a memory management method at the time of profiling (hereinafter, referred to as a core profile mode). In the eleventh embodiment of the present invention, a case will be described in which the number of image sequences constituting an image is at most four. As shown in FIGS. 21 and 22, when the number of image sequences constituting an image is a maximum of four, securing of the memory address space depends on the number of image sequences,
The uppermost position of the memory and the central position of the memory (the upper end in FIGS. 21 and 22 correspond to the lowermost position of the memory address) in this order, and the object data of each image sequence is stored in the reserved memory space. Store. That is, in the simple profile mode, the memory space is secured when the number of objects is 1 as shown in FIG.
In this case, the lowest position of the memory (FIG. 21A)
When the number of objects is two, a memory space is secured at the lowest position of the memory and at the highest position (FIG. 21B). When the number of objects is three, the memory space is located at the lowest position of the memory, at the highest position, and at a position adjacent to the object data stored at the lowest position of the memory (the end position of the memory) (FIG. 21C). When the number of objects is four, a memory space is further secured at a position (FIG. 21D) adjacent to the object data stored at the uppermost position of the memory which is the other end of the memory.

【0089】このようなメモリ管理を行うことにより、
大きさの変わらないオブジェクトのみを扱う場合のメモ
リ領域の利用効率を高めることができ、復号化に必要な
メモリ不足により復号化不能となる可能性を大幅に低減
することができる。また、コア・ファイル・モードにお
けるメモリ空間の確保は、図22に示すように、オブジ
ェクト数が1つの場合には、メモリ最下位位置(図22
(a))に、オブジェクト数が2つの場合には、メモリ
最下位位置と、最上位位置(図22(b))に、それぞ
れメモリ空間を確保する。また、オブジェクト数が3つ
の場合には、メモリ最下位位置と、最上位位置、及び画
像メモリを2分割したメモリ中央位置からメモリ最下位
方向にメモリ空間を確保(図22(c))し、オブジェ
クト数が4つの場合には、画像メモリを2分割したメモ
リ中央位置からメモリ最下位方向、及びメモリ最上位方
向に、それぞれオブジェクトデータの一端がメモリ中央
位置において、隣接するするようにしてメモリ空間を確
保(図22(d))する。
By performing such memory management,
It is possible to increase the efficiency of use of the memory area when only the object of the same size is handled, and it is possible to greatly reduce the possibility that decoding becomes impossible due to lack of memory required for decoding. As shown in FIG. 22, when the number of objects is one, the memory space in the core file mode is secured at the lowest position in the memory (FIG. 22).
In (a)), when the number of objects is two, a memory space is secured at the lowest position of the memory and at the highest position (FIG. 22B). When the number of objects is three, a memory space is secured in the lowest direction from the lowest position of the memory, the highest position, and the center position of the memory where the image memory is divided into two (FIG. 22C). When the number of objects is four, the memory space is set so that one end of the object data is adjacent to the memory center position where the image memory is divided into two from the memory center position and the memory top position, respectively. Is secured (FIG. 22D).

【0090】このようなメモリ管理を行うことにより、
大きさが変化するオブジェクトが少なくとも一つでも含
まれている場合に、個々のオブジェクトの大きさが多少
変化してもメモリ領域を動的に確保することができ、復
号化に必要なメモリ不足により復号化不能となる可能性
を大幅に低減することができる。一般に、オブジェクト
の大きさが変化する場合には処理が複雑になることを考
慮して、コアプロファイルで各オブジェクトの復号化に
必要なメモリ量の総和はシンプルプロファイルで必要な
メモリ量の総和よりも小さめに設定することが多い。従
って、コアプロファイルの場合には、図21のように隙
間無くメモリを確保しなくても、図22のように2つの
オブジェクトでメモリ量の総和が一定となるようにする
ことで、実用上十分である。
By performing such memory management,
When at least one object whose size changes is included, a memory area can be dynamically secured even if the size of each object slightly changes. The possibility that decoding becomes impossible can be greatly reduced. In general, considering the complexity of processing when the size of an object changes, the total amount of memory required for decoding each object in the core profile is larger than the total amount of memory required in the simple profile. Often set smaller. Accordingly, in the case of the core profile, even if the memory is not secured without a gap as shown in FIG. 21, it is practically sufficient to make the sum of the memory amounts of the two objects constant as shown in FIG. It is.

【0091】なお、これらは、シンプル・プロファイル
・モード、及びコア・プロファイル・モードの理想的な
メモリ配置位置の例であり、可能な限りこの配置となる
ようにメモリ空間を確保する。また、オブジェクト消失
時点ではこの理想的な配置と異なる場合もあるが、新し
いオブジェクトのためにメモリを確保する際には、図2
1、図22に近いメモリ配置となる位置に新しいオブジ
ェクトのためのメモリを確保する。また、図21、図2
2において、Obj1、Obj2、Obj3、Obj4は、それぞれ
のオブジェクトIDを表わすものでなく、単にメモリ位
置を示すものである。即ち、オブジェクトIDとこのメ
モリ位置、Obj1、Obj2、Obj3、Obj4の番号が固定的
に対応するわけではない。また、図22において、矢印
は動的なメモリ拡張方向を示すものであり、概念的に
は、前記実施の形態1で説明したメモリ管理方法と同様
であるため、ここでは説明を省略する。
These are examples of ideal memory arrangement positions in the simple profile mode and the core profile mode, and a memory space is secured so that the arrangement is as possible as possible. Although the ideal arrangement may be different at the time of object disappearance, when allocating memory for a new object, FIG.
1. A memory for a new object is secured at a location having a memory arrangement close to that of FIG. 21 and FIG.
In FIG. 2, Obj1, Obj2, Obj3, and Obj4 do not indicate respective object IDs, but simply indicate memory locations. That is, the object IDs and the memory locations, and the numbers of Obj1, Obj2, Obj3, and Obj4 do not have a fixed correspondence. Also, in FIG. 22, the arrow indicates the dynamic memory expansion direction, and is conceptually the same as the memory management method described in the first embodiment, and thus the description is omitted here.

【0092】次に、本発明の実施の形態11によるメモ
リ管理方法のシンプル・プロファイル・モードからコア
・プロファイル・モードへの切替え処理について図23
を用いて説明する。図23は、本発明の実施の形態11
によるメモリ管理方法のシンプル・プロファイル・モー
ドからコア・プロファイル・モードへの切替え処理を説
明するためのフローチャートである。本発明の実施の形
態11によるメモリ管理方法は、まず、シンプル・プロ
ファイル・モードで動作するものとし、処理を行なう画
像系列にオブジェクトの大きさが変化する任意形状の画
像系列が含まれている場合には、オブジェクトの大きさ
が変化する任意形状の画像系列中に含まれた、大きさが
変化したオブジェクトである任意形状のオブジェクトを
新規に検出した時点で、シンプル・プロファイル・モー
ドからコア・プロファイル・モードへの切替え処理が行
われる。なお、処理を行なう画像系列にオブジェクトの
大きさが変化する画像系列が含まれていない場合には、
シンプル・プロファイル・モードからコア・プロファイ
ル・モードへの切替えは行われることがなく、そのまま
シンプル・プロファイル・モードによりメモリ領域の確
保を行う。図23において、任意形状のオブジェクトが
新規に入力されると、まず、図21に示すObj3位置に
データが格納されているか否かを判断(S101)し、
格納されている場合には、当該データをメモリ中央位置
に移動させる(図22(c)(d)参照)(S10
2)。
Next, switching processing from the simple profile mode to the core profile mode in the memory management method according to the eleventh embodiment of the present invention will be described with reference to FIG.
This will be described with reference to FIG. FIG. 23 shows Embodiment 11 of the present invention.
9 is a flowchart for explaining a process of switching from the simple profile mode to the core profile mode in the memory management method according to the first embodiment. The memory management method according to the eleventh embodiment of the present invention operates in the simple profile mode first, and the image sequence to be processed includes an image sequence of an arbitrary shape in which the size of an object changes. When a newly detected object of any shape, which is an object whose size has changed, included in an image sequence of any shape whose object size changes, the core profile is switched from the simple profile mode to the core profile. -Mode switching processing is performed. If the image sequence to be processed does not include an image sequence in which the size of the object changes,
Switching from the simple profile mode to the core profile mode is not performed, and the memory area is secured in the simple profile mode. In FIG. 23, when an object having an arbitrary shape is newly input, first, it is determined whether or not data is stored at the position Obj3 shown in FIG. 21 (S101).
If the data is stored, the data is moved to the memory center position (see FIGS. 22C and 22D) (S10).
2).

【0093】次に、図21に示すObj4位置にデータが
格納されているか否かを判断(S103)し、格納され
ている場合には、当該データをメモリ中央位置に移動さ
せる(図22(c)(d)参照)(S104)。これに
より、メモリアドレス空間の配置がコア、プロファイル
・モードの配置(図22参照)となるため、以後のオブ
ジェクトデータに対しては、コア・プロファイル・モー
ドによるメモリの確保が可能となる。一般に、ストリー
ムが予めシンプル・プロファイルであるかコア・プロフ
ァイルであるかを知ることは困難であり、またシンプル
・プロファイルの方がコア・プロファイルよりも各オブ
ジェクトの復号化に必要なメモリ量の総和が大きい。従
って、任意形状のオブジェクトが入力されるまでは、よ
り多くのメモリ量を必要とするシンプル・プロファイル
・モードで動作し、シンプル・プロファイルで必要なよ
り大きなメモリ量を確保する。また、任意形状のオブジ
ェクトが入力されることにより、シンプル・プロファイ
ル・モードからコア・プロファイル・モードへとメモリ
の利用方式を変更することにより、2つのオブジェクト
でメモリ量の和が上限の範囲内で自由に変更可能であ
り、メモリ位置の再配置を殆ど行うことなく復号化に十
分なメモリ領域を使用できる。
Next, it is determined whether or not data is stored at the position Obj4 shown in FIG. 21 (S103). If data is stored, the data is moved to the central position of the memory (FIG. 22 (c)). ) (D)) (S104). As a result, the allocation of the memory address space becomes the allocation of the core and the profile mode (see FIG. 22), so that memory for the subsequent object data can be secured in the core profile mode. In general, it is difficult to know in advance whether a stream is a simple profile or a core profile, and a simple profile requires a larger total amount of memory for decoding each object than a core profile. large. Therefore, until an object of an arbitrary shape is input, it operates in the simple profile mode requiring a larger amount of memory, and secures a larger amount of memory required by the simple profile. Also, by inputting an object of an arbitrary shape, the memory usage method is changed from the simple profile mode to the core profile mode, so that the sum of the memory amounts of the two objects is within the upper limit. It is freely changeable and can use enough memory area for decoding with little relocation of memory locations.

【0094】なお、このメモリの再配置を行う際には、
復号化処理が中断される為、この間に入力されたデータ
に対しては、十分な復号化処理能力が無ければ復号化処
理が中断する。そのため、その場合には、次のIフレー
ムデータが入力されるまで復号化処理を中断し、次のI
フレーム受信時からコア・プロファイル・モードにより
メモリアドレス空間の確保を再開してもよい。また、コ
ア・プロファイル・モードに切替え後は、シンプル・プ
ロファイル・モードに途中で切り替わらないものとし
た。これは、処理を行なう画像系列にオブジェクトの大
きさが変化する画像系列が含まれている場合には、その
後も任意形状のオブジェクトが入力される可能性が高
く、またコア・プロファイルではシンプル・プロファイ
ルほどのメモリ量を必要としないためである。更に、シ
ンプル・プロファイル・モードとコア・プロファイル・
モードを切替えると、復号化処理が中断される可能性が
高く、モード切替によって一時的に使用可能なメモリ量
が増加する利点よりも、復号化が一時的に中断する欠点
が大きい。なお、十分な復号化能力およびメモリ再配置
能力があれば、コア・プロファイル・モードからシンプ
ル・プロファイル・モードへの切替を行ってもよい
When relocating the memory,
Since the decoding process is interrupted, the decoding process for data input during this time is interrupted if there is not sufficient decoding processing capability. Therefore, in that case, the decoding process is suspended until the next I frame data is input, and the next I frame data is input.
The securing of the memory address space may be resumed from the frame reception in the core profile mode. After switching to the core profile mode, the mode is not switched to the simple profile mode on the way. This is because when an image sequence to be processed includes an image sequence in which the size of an object changes, there is a high possibility that an object of an arbitrary shape will be input thereafter, and a simple profile is used in the core profile. This is because it does not require a large amount of memory. In addition, simple profile mode and core profile mode
When the mode is switched, the possibility that the decoding process is interrupted is high, and the disadvantage that the decoding is temporarily interrupted is greater than the advantage that the amount of memory that can be temporarily used is increased by the mode switching. Note that if there is sufficient decoding capability and memory relocation capability, switching from the core profile mode to the simple profile mode may be performed.

【0095】次に、本発明の実施の形態11によるメモ
リ格納方法の一つであるシンプル・プロファイル・モー
ドについて図21、及び図24から図28を用いて説明
する。なお、この本発明の実施の形態11のシンプル・
プロファイル・モードによるメモリ空間確保は、シンプ
ル・プロファイル時のメモリの利用効率を高めるととも
に、復号化処理の中断を伴うメモリの再配置処理を行な
う回数を低減するためのものであり、詳細については、
図24を用いて説明することにする。図24は、シンプ
ル・プロファイル・モードのメモリアドレス空間確保手
順の一例を説明するためのフローチャートであり、新規
に大きさが変化しない矩形形状のオブジェクトデータが
入力されることにより開始する。新規に矩形形状のオブ
ジェクトデータが入力されると、まず、Obj1位置があ
き領域で入力されたデータを格納できるかどうかを判定
し(S201)、Obj1位置があき領域で入力されたデ
ータを格納できる場合は、Obj1位置に新規入力された
データを格納する(S202)。
Next, a simple profile mode, which is one of the memory storage methods according to the eleventh embodiment of the present invention, will be described with reference to FIG. 21 and FIGS. It should be noted that the eleventh embodiment of the present invention
The memory space allocation in the profile mode is intended to increase the efficiency of memory usage in the simple profile mode and to reduce the number of times of performing memory relocation processing with interruption of decoding processing.
This will be described with reference to FIG. FIG. 24 is a flowchart for explaining an example of a procedure for securing a memory address space in the simple profile mode, and is started when new rectangular object data whose size does not change is input. When new rectangular object data is input, first, it is determined whether or not data input in the Obj1 position can be stored in the open area (S201), and data input in the Obj1 position can be stored. In this case, the newly input data is stored in the Obj1 position (S202).

【0096】一方、Obj1位置があき領域でないか、或
は入力されたデータが格納できない場合は、Obj2位置
があき領域で入力されたデータを格納できるかどうかを
判定し(S203)、Obj2位置があき領域で入力され
たデータを格納できる場合は、Obj2位置に新規入力さ
れたデータを格納する(S204)。また、Obj2位置
があき領域でないか、或は入力されたデータが格納でき
ない場合は、Obj3位置があき領域で入力されたデータ
を格納できるかどうかを判定し(S205)、Obj3位
置があき領域で入力されたデータを格納できる場合は、
Obj3位置に新規入力されたデータを格納する(S20
6)。また、Obj3位置があき領域でないか、或は入力
されたデータが格納できない場合は、Obj4位置があき
領域で入力されたデータを格納できるかどうかを判定し
(S207)、Obj4位置があき領域で入力されたデー
タを格納できる場合は、Obj4位置に新規入力されたデ
ータを格納する(S208)。一方、Obj4位置があき
領域でないか、或は入力されたデータが格納できない場
合は、現在のメモリの配置では、Obj1、Obj2、Obj
3、Obj4の何れの位置にも新規に入力されたオブジェ
クトデータを格納することができないことになる。その
ため、メモリアドレス空間の再配置を行い、新規に入力
されたオブジェクトデータを格納するためのメモリアド
レス空間を確保する処理を行なう。
On the other hand, if the Obj1 position is not in the open area or the input data cannot be stored, it is determined whether the Obj2 position can store the input data in the open area (S203). If the input data can be stored in the open area, the newly input data is stored in the Obj2 position (S204). If the Obj2 position is not in the open area or the input data cannot be stored, it is determined whether the Obj3 position can store the input data in the open area (S205), and the Obj3 position is not in the open area. If you can store the entered data,
The newly input data is stored in the Obj3 position (S20
6). If the Obj3 position is not in the open area or the input data cannot be stored, it is determined whether the Obj4 position can store the input data in the open area (S207), and the Obj4 position is in the open area. If the input data can be stored, the newly input data is stored in the Obj4 position (S208). On the other hand, if the position of Obj4 is not a blank area or if the input data cannot be stored, the current memory layout indicates that Obj1, Obj2, Obj
3, the newly input object data cannot be stored in any position of Obj4. Therefore, the memory address space is rearranged, and a process for securing a memory address space for storing newly input object data is performed.

【0097】なお、予め確保するメモリ領域は、全ての
画像系列のオブジェクトデータを格納できるように確保
しているため、Obj1、Obj2、Obj3、Obj4の何れの位
置にも新規に入力されたデータを格納することができな
いということは、各Obj位置間のどこかに空き領域が存
在していることになる。したがって、メモリアドレス空
間の再配置は、当該空き領域を埋めるように行えばよ
い。即ち、まず、Obj1位置にデータが格納済みかどう
かを検査し(S209)、Obj1位置にデータが格納済
みでない場合は、図21に示すObj2、Obj3、Obj4位
置のデータの再配置を行った後、Obj1位置に新規入力
されたデータを格納する(S210)。なお、ステップ
S210のObj2、Obj3、Obj4位置のデータの再配置
の詳細については、後述、図25を用いて説明すること
にする。
Since the memory area to be reserved is reserved so as to store the object data of all the image series, newly input data is stored in any of the positions Obj1, Obj2, Obj3, and Obj4. The fact that storage is not possible means that an empty area exists somewhere between the Obj positions. Therefore, the rearrangement of the memory address space may be performed so as to fill the empty area. That is, first, it is checked whether or not data has been stored at the Obj1 position (S209). If data has not been stored at the Obj1 position, the data at the Obj2, Obj3, and Obj4 positions shown in FIG. , And the newly input data is stored in the Obj1 position (S210). The details of the relocation of the data at the positions Obj2, Obj3, and Obj4 in step S210 will be described later with reference to FIG.

【0098】一方、Obj1位置にデータが格納済みであ
る場合は、Obj2位置にデータが格納済みかどうかを検
査し(S211)、Obj2位置にデータが格納済みでな
い場合は、図21に示すObj3、Obj4位置のデータの再
配置を行った後、Obj2位置に新規入力されたデータを
格納する(S212)。なお、ステップS212のObj
3、Obj4位置のデータの再配置の詳細については、後
述、図26を用いて説明することにする。また、Obj2
位置にデータが格納済みである場合は、Obj3位置にデ
ータが格納済みかどうかを検査し(S213)、Obj3
位置にデータが格納済みである場合は、図21に示すOb
j3位置のデータの再配置を行った後、Obj4位置に新規
入力されたデータを格納する(S214)。なお、ステ
ップS214のObj3位置のデータの再配置の詳細につ
いては、後述、図27を用いて説明することにする。一
方、Obj3位置にデータが格納済みでない場合は、図2
1に示すObj4位置のデータの再配置を行った後、Obj3
位置に新規入力されたデータを格納する(S215)。
なお、ステップS215のObj4位置のデータの再配置
の詳細については、後述、図28を用いて説明すること
にする。
On the other hand, if data has been stored at the Obj1 position, it is checked whether data has been stored at the Obj2 position (S211). If data has not been stored at the Obj2 position, Obj3 shown in FIG. After rearranging the data at the Obj4 position, the newly input data is stored at the Obj2 position (S212). Obj in step S212
Details of the rearrangement of data at the position 3 and the position Obj4 will be described later with reference to FIG. Obj2
If data has been stored at the position, it is checked whether data has been stored at the Obj3 position (S213).
If data has been stored in the location,
After rearranging the data at the j3 position, the newly input data is stored at the Obj4 position (S214). The details of the relocation of the data at the position Obj3 in step S214 will be described later with reference to FIG. On the other hand, if data has not been stored in the Obj3 position, FIG.
After rearranging the data at the position Obj4 shown in FIG.
The newly input data is stored in the position (S215).
The details of the relocation of the data at the position Obj4 in step S215 will be described later with reference to FIG.

【0099】このように、まず新規オブジェクトデータ
用のメモリを確保することができるか否かを判断し、新
規オブジェクトデータ用のメモリを確保することができ
ない場合にはじめて、既存オブジェクトのメモリ空間位
置の再配置を行うことにより、復号化処理が中断される
可能性が高いメモリの再配置処理を少なくすることがで
き、メモリの利用効率を高めることができるとともに、
復号化に必要なメモリ不足により復号化不能となる可能
性を大幅に低減することができ、実用価値の高いメモリ
管理方法を実現できる。
As described above, first, it is determined whether or not the memory for the new object data can be secured. By performing the rearrangement, it is possible to reduce the rearrangement process of the memory in which the decoding process is likely to be interrupted, and it is possible to increase the use efficiency of the memory.
The possibility that decoding becomes impossible due to lack of memory required for decoding can be greatly reduced, and a memory management method with high practical value can be realized.

【0100】次に、前述したステップS210によるシ
ンプル・プロファイル・モードのObj2、Obj3、Obj4
位置のデータの再配置処理について図25を用いて説明
する。図25は、シンプル・プロファイル・モードのOb
j2、Obj3、Obj4位置のデータの再配置を説明するた
めのフローチャートである。まず、Obj2位置が空き状
態であるか否かを検査し(S301)、次に、Obj4位
置が空き状態であるか否かを検査する(S302、S3
03)。この時、Obj2、Obj4位置が共に空き状態でな
い、即ち、Obj2、Obj4位置にともにデータが格納され
ている場合には、図21に示すObj4位置に格納された
データを、Obj2位置に格納されたデータに隣接する位
置に移動させる(S304)。また、Obj2位置が空き
状態であり、且つObj4位置があき状態でない場合に
は、Obj4位置に格納されているデータをObj2位置に移
動させる(S305)。次に、Obj3位置が空き状態で
あるか否かを検査し(S306、S307)、Obj3位
置が空き領域でない、即ち、Obj3位置にデータが格納
されている場合において、Obj2、及びObj4位置の何れ
かにデータが格納されている場合には、図21に示すOb
j3位置に格納されたデータを、Obj1位置に格納する新
規データに隣接する位置に移動させる(S308)。
Next, Obj2, Obj3, Obj4 in the simple profile mode in step S210 described above.
The process of relocating the position data will be described with reference to FIG. Figure 25 shows Ob in simple profile mode.
It is a flowchart for demonstrating the rearrangement of the data of j2, Obj3, Obj4 position. First, it is checked whether the Obj2 position is empty (S301), and then, it is checked whether the Obj4 position is empty (S302, S3).
03). At this time, if both the Obj2 and Obj4 positions are not empty, that is, if data is stored in both the Obj2 and Obj4 positions, the data stored in the Obj4 position shown in FIG. 21 is stored in the Obj2 position. The data is moved to a position adjacent to the data (S304). If the Obj2 position is empty and the Obj4 position is not empty, the data stored in the Obj4 position is moved to the Obj2 position (S305). Next, it is checked whether the Obj3 position is empty or not (S306, S307). When data is stored in the crab, Ob shown in FIG.
The data stored at the j3 position is moved to a position adjacent to the new data stored at the Obj1 position (S308).

【0101】一方、Obj3位置にデータが格納されてい
る場合において、Obj2、及びObj4位置の何れにもデー
タが格納されていない場合には、Obj3位置に格納され
ているデータをObj2位置に移動させる(S309)。
なお、デコーダで処理可能なメモリ量以上のデータが入
力された場合には、このステップS308において、Ob
j3位置に格納されたデータを、Obj1位置に格納する新
規データに隣接する位置に移動させると、Obj2位置、
或はObj4位置に格納されたデータと重複することとな
るので、このような場合には、Obj3位置に格納された
データの移動は行わない。
On the other hand, when data is stored in the Obj3 position and no data is stored in any of the Obj2 and Obj4 positions, the data stored in the Obj3 position is moved to the Obj2 position. (S309).
If data larger than the amount of memory that can be processed by the decoder is input, in this step S308, Ob
When the data stored at the j3 position is moved to a position adjacent to the new data stored at the Obj1 position, the Obj2 position,
Alternatively, the data stored at the position Obj3 is duplicated with the data stored at the position Obj4. In such a case, the data stored at the position Obj3 is not moved.

【0102】次に、Obj1位置に新規入力されたデータ
を格納できるか否かを検査し(S310)、Obj1位置
に新規入力されたデータを格納できる場合は、Obj1位
置に新規入力されたデータを格納する(S311)。一
方、Obj1位置に新規入力されたデータを格納できない
場合は、デコーダで処理可能なメモリ量以上のデータが
入力されたと判断して、復号不能処理を行なう(S31
2)。なお、この復号不能処理は、新規入力されたデー
タのオブジェクトに対して、次の、Iフレームデータが
入力されるまで復号処理を中断し、次のIフレーム受信
時から改めてメモリアドレス空間の確保を行う処理であ
る。
Next, it is checked whether or not the newly input data can be stored in the Obj1 position (S310). If the newly input data can be stored in the Obj1 position, the newly input data is stored in the Obj1 position. It is stored (S311). On the other hand, if the newly input data cannot be stored in the Obj1 position, it is determined that data larger than the memory amount that can be processed by the decoder has been input, and the decoding impossible processing is performed (S31).
2). In the non-decoding process, the decoding process is interrupted for the newly input data object until the next I-frame data is input, and the memory address space is newly secured from the next I-frame reception. This is the process to be performed.

【0103】次に、前述したステップS212によるシ
ンプル・プロファイル・モードのObj3、Obj4位置のデ
ータの再配置処理について図26を用いて説明する。図
26は、シンプル・プロファイル・モードのObj3、Obj
4位置のデータの再配置を説明するためのフローチャー
トである。まず、Obj3位置が空き状態であるか否かを
検査し(S401)、Obj3位置が空き領域でない、即
ち、Obj3位置にデータが格納されている場合には、図
21に示すようにObj3位置に格納されたデータを、Obj
1位置に格納する新規データに隣接する位置に移動させ
る(S402)。次に、Obj4位置が空き状態であるか
否かを検査し(S403)、Obj4位置が空き領域でな
い、即ち、Obj4位置にデータが格納されている場合に
は、図21に示すようにObj4位置に格納されたデータ
を、Obj2位置に格納する新規データに隣接する位置に
移動させる(S404)。なお、デコーダで処理可能な
メモリ量以上のデータが入力された場合には、このステ
ップS404において、Obj4位置に格納されたデータ
を、Obj2位置に格納する新規データに隣接する位置に
移動させると、Obj1位置、或はObj3位置に格納された
データと重複することとなるので、このような場合に
は、Obj4位置に格納されたのデータ移動は行わない。
Next, the process of relocating the data at the positions Obj3 and Obj4 in the simple profile mode in step S212 will be described with reference to FIG. FIG. 26 shows Obj3 and Obj in the simple profile mode.
It is a flowchart for demonstrating the rearrangement of data of four positions. First, it is checked whether or not the Obj3 position is empty (S401). If the Obj3 position is not an empty area, that is, if data is stored in the Obj3 position, as shown in FIG. Store the stored data in Obj
The data is moved to a position adjacent to the new data stored at one position (S402). Next, it is checked whether or not the Obj4 position is empty (S403). If the Obj4 position is not an empty area, that is, if data is stored in the Obj4 position, as shown in FIG. Is moved to a position adjacent to the new data to be stored at the Obj2 position (S404). If data larger than the memory amount that can be processed by the decoder is input, the data stored at the position Obj4 is moved to a position adjacent to the new data stored at the position Obj2 in this step S404. Since the data stored in the Obj1 position or the Obj3 position is duplicated, in such a case, the data stored in the Obj4 position is not moved.

【0104】次に、Obj2位置に新規入力されたデータ
を格納できるか否かを検査し(S405)、Obj2位置
に新規入力されたデータを格納できる場合は、Obj2位
置に新規入力されたデータを格納する(S406)。一
方、Obj2位置に新規入力されたデータを格納できない
場合は、デコーダで処理可能なメモリ量以上のデータが
入力されたと判断して、復号不能処理を行なう(S40
7)。なお、この復号不能処理は、新規入力されたデー
タのオブジェクトに対して、次の、Iフレームデータが
入力されるまで復号処理を中断し、次のIフレーム受信
時から改めてメモリアドレス空間の確保を行う処理であ
る。
Next, it is checked whether or not the newly input data can be stored in the Obj2 position (S405). If the newly input data can be stored in the Obj2 position, the newly input data is stored in the Obj2 position. It is stored (S406). On the other hand, if the newly input data cannot be stored in the Obj2 position, it is determined that data larger than the memory amount that can be processed by the decoder has been input, and the decoding impossible processing is performed (S40).
7). In the non-decoding process, the decoding process is interrupted for the newly input data object until the next I-frame data is input, and the memory address space is newly secured from the next I-frame reception. This is the process to be performed.

【0105】次に、前述したステップS214によるシ
ンプル・プロファイル・モードのObj3位置のデータの
再配置処理について図27を用いて説明する。図27
は、シンプル・プロファイル・モードのObj3位置のデ
ータの再配置を説明するためのフローチャートである。
なお、これは、Obj1、Obj2、及びObj3位置の全てに
データが格納されており、Obj4位置の空き領域に新規
入力されたデータを格納できなかった場合に発生する処
理である。まず、図21に示すObj3位置に格納された
データを、Obj1位置に格納されたデータに隣接する位
置に移動させる(S501)。次に、Obj4位置に新規
入力されたデータを格納できるか否かを検査し(S50
2)、Obj4位置に新規入力されたデータを格納できる
場合は、Obj4位置に新規入力されたデータを格納する
(S503)。一方、Obj4位置に新規入力されたデー
タを格納できない場合は、デコーダで処理可能なメモリ
量以上のデータが入力されたと判断して、復号不能処理
を行なう(S504)。なお、この復号不能処理は、新
規入力されたデータのオブジェクトに対して、次の、I
フレームデータが入力されるまで復号処理を中断し、次
のIフレーム受信時から改めてメモリアドレス空間の確
保を行う処理である。
Next, the process of relocating the data at the position Obj3 in the simple profile mode in step S214 described above will be described with reference to FIG. FIG.
9 is a flowchart for explaining relocation of data at the position Obj3 in the simple profile mode.
This is a process that occurs when data is stored in all of the positions Obj1, Obj2, and Obj3, and the newly input data cannot be stored in the free space at the position Obj4. First, the data stored at the position Obj3 shown in FIG. 21 is moved to a position adjacent to the data stored at the position Obj1 (S501). Next, it is checked whether the newly input data can be stored in the Obj4 position (S50).
2) If the newly input data can be stored in the Obj4 position, the newly input data is stored in the Obj4 position (S503). On the other hand, if the newly input data cannot be stored in the Obj4 position, it is determined that data larger than the amount of memory that can be processed by the decoder has been input, and non-decoding processing is performed (S504). Note that this non-decryptable process is performed on the newly input data object in the next I
In this process, the decoding process is interrupted until frame data is input, and the memory address space is newly secured from the time of receiving the next I frame.

【0106】次に、前述したステップS215によるシ
ンプル・プロファイル・モードのObj4位置のデータの
再配置処理について図28を用いて説明する。図28
は、シンプル・プロファイル・モードのObj4位置のデ
ータの再配置を説明するためのフローチャートである。
なお、これは、Obj1、Obj2位置にデータが格納されて
おり、Obj3、Obj4位置に新規入力されたデータを格納
できない場合に発生する処理である。まず、Obj4位置
が空き状態であるか否かを検査し(S601)、Obj4
位置にデータが格納されていない場合には、デコーダで
処理可能なメモリ量以上のデータが入力されたと判断し
てステップS605に行く。一方、Obj4位置が空き領
域でない、即ち、Obj4位置にデータが格納されている
場合には、図21に示すObj4位置に格納されたデータ
を、Obj2位置に格納されたデータに隣接する位置に移
動させる(S602)。
Next, the process of relocating the data at the Obj4 position in the simple profile mode in step S215 will be described with reference to FIG. FIG.
FIG. 7 is a flowchart for explaining relocation of data at the Obj4 position in the simple profile mode.
This is a process that occurs when data is stored at the positions Obj1 and Obj2 and the newly input data cannot be stored at the positions Obj3 and Obj4. First, it is checked whether or not the Obj4 position is empty (S601).
If no data is stored at the position, it is determined that data larger than the memory amount that can be processed by the decoder has been input, and the process proceeds to step S605. On the other hand, if the Obj4 position is not a free area, that is, if data is stored in the Obj4 position, the data stored in the Obj4 position shown in FIG. 21 is moved to a position adjacent to the data stored in the Obj2 position. (S602).

【0107】次に、Obj3位置に新規入力されたデータ
を格納できるか否かを検査し(S603)、Obj3位置
に新規入力されたデータを格納できる場合は、Obj3位
置に新規入力されたデータを格納する(S604)。一
方、Obj3位置に新規入力されたデータを格納できない
場合は、デコーダで処理可能なメモリ量以上のデータが
入力されたと判断してステップS605に行く。デコー
ダで処理可能なメモリ量以上のデータが入力された場合
には、復号不能処理を行う(S605)。なお、この復
号不能処理は、新規入力されたデータのオブジェクトに
対して、次の、Iフレームデータが入力されるまで復号
処理を中断し、次のIフレーム受信時から改めてメモリ
アドレス空間の確保を行う処理である。
Next, it is checked whether the newly input data can be stored in the Obj3 position (S603). If the newly input data can be stored in the Obj3 position, the newly input data is stored in the Obj3 position. It is stored (S604). On the other hand, if the newly input data cannot be stored in the Obj3 position, it is determined that data larger than the memory amount that can be processed by the decoder has been input, and the process proceeds to step S605. When data larger than the amount of memory that can be processed by the decoder is input, a decoding impossible process is performed (S605). In the non-decoding process, the decoding process is interrupted for the newly input data object until the next I-frame data is input, and the memory address space is newly secured from the next I-frame reception. This is the process to be performed.

【0108】次に、本発明の実施の形態11による格納
方法の一つであるコア・プロファイル・モードについて
図22、図29から図31を用いて説明する。なお、こ
の本発明の実施の形態11のコア・プロファイル・モー
ドによるメモリ空間確保は、コア・プロファイル・モー
ド時のメモリの利用効率を高めるとともに、復号化処理
が中断される可能性が高いメモリの再配置処理を行なう
回数を低減するためのものであり、詳細については、図
29を用いて説明することにする。図29は、コア・プ
ロファイル・モードのメモリアドレス空間確保手順の一
例を説明するためのフローチャートであり、コア・プロ
ファイル・モードへの切替えが行われた後に、新規オブ
ジェクトデータが入力されることにより開始する。コア
・プロファイル・モードに切替え後、新規オブジェクト
データが入力されると、まず、Obj1位置があき領域で
入力されたデータを格納できるかどうかを判定し(S7
01)、Obj1位置があき領域で入力されたデータを格
納できる場合は、Obj1位置に新規入力されたデータを
格納する(S702)。
Next, a core profile mode which is one of the storage methods according to the eleventh embodiment of the present invention will be described with reference to FIGS. 22, 29 to 31. FIG. It should be noted that securing the memory space in the core profile mode according to the eleventh embodiment of the present invention increases the efficiency of use of the memory in the core profile mode, and increases the possibility that the decoding process is likely to be interrupted. This is for reducing the number of times the rearrangement process is performed, and the details will be described with reference to FIG. FIG. 29 is a flowchart for explaining an example of a memory address space securing procedure in the core profile mode, and is started by inputting new object data after switching to the core profile mode. I do. When the new object data is input after switching to the core profile mode, first, it is determined whether or not the data input in the open area of the Obj1 position can be stored (S7).
01), if the data input in the Obj1 position can be stored in the open area, the newly input data is stored in the Obj1 position (S702).

【0109】一方、Obj1位置があき領域でないか、或
は入力されたデータが格納できない場合は、Obj2位置
があき領域で入力されたデータを格納できるかどうかを
判定し(S703)、Obj2位置があき領域で入力され
たデータを格納できる場合は、Obj2位置に新規入力さ
れたデータを格納する(S704)。また、Obj2位置
があき領域でないか、或は入力されたデータが格納でき
ない場合は、Obj3位置があき領域で入力されたデータ
を格納できるかどうかを判定し(S705)、Obj3位
置があき領域で入力されたデータを格納できる場合は、
Obj3位置に新規入力されたデータを格納する(S70
6)。また、Obj3位置があき領域でないか、或は入力
されたデータが格納できない場合は、Obj4位置があき
領域で入力されたデータを格納できるかどうかを判定し
(S707)、Obj4位置があき領域で入力されたデー
タを格納できる場合は、Obj4位置に新規入力されたデ
ータを格納する(S708)。一方、Obj4位置があき
領域でないか、或は入力されたデータが格納できない場
合は、現在のメモリの配置では、Obj1、Obj2、Obj
3、Obj4の何れの位置にも新規に入力されたオブジェ
クトデータを格納することができないことになる。その
ため、メモリアドレス空間の再配置を行い、新規に入力
されたオブジェクトデータを格納するためのメモリアド
レス空間を確保する処理を行なう。
On the other hand, if the Obj1 position is not in the open area or the input data cannot be stored, it is determined whether the Obj2 position can store the input data in the open area (S703). If the input data can be stored in the open area, the newly input data is stored at the position Obj2 (S704). If the Obj2 position is not in the open area or the input data cannot be stored, it is determined whether the Obj3 position can store the input data in the open area (S705), and the Obj3 position is not in the open area. If you can store the entered data,
The newly input data is stored in the Obj3 position (S70).
6). If the Obj3 position is not in the open area or the input data cannot be stored, it is determined whether the Obj4 position can store the input data in the open area (S707), and the Obj4 position is stored in the open area. If the input data can be stored, the newly input data is stored in the Obj4 position (S708). On the other hand, if the position of Obj4 is not a blank area or if the input data cannot be stored, the current memory layout indicates that Obj1, Obj2, Obj
3, the newly input object data cannot be stored in any position of Obj4. Therefore, the memory address space is rearranged, and a process for securing a memory address space for storing newly input object data is performed.

【0110】なお、予め確保するメモリ領域は、画像を
構成する全ての画像系列のオブジェクトデータを格納で
きるように確保しているため、Obj1、Obj2、Obj3、O
bj4の何れの位置にも新規に入力されたデータを格納す
ることができないということは、メモリを使用している
オブジェクト数が1つであり、且つ当該メモリを使用し
ているオブジェクトが図22(d)のObj3位置、或はO
bj4位置に存在していることになる。したがって、メモ
リアドレス空間の再配置は、空き領域を広げるようにOb
j3またはObj4の位置のオブジェクトを図22(b)に示
すObj1位置、或はObj2位置に移動させればよい。これ
は、本発明のメモリ管理方法では、前述したように、予
め確保するメモリ領域が画像を構成する全ての画像系列
のオブジェクトデータを格納できるように確保している
ため、オブジェクト数が2つの場合には、当該2つのオ
ブジェクトの大きさの和が全メモリ容量を超えることが
ないという制約があり、また、コア・プロファイル・モ
ードでは、さらにオブジェクト数が3つ、或は4つの場
合に、図22(c)(d)を用いて説明したように、メ
モリを2分割して利用するため、1つのオブジェクトの
大きさが全メモリ容量の1/2を超えることができない
ことはもちろんのこと、2つのオブジェクトの大きさの
和が全メモリの1/2を超えることができないという制
約を前提としているからである。したがって、まず、Ob
j1位置、Obj2位置にデータが格納済みかどうかを検査
し(S701、S703)、Obj1位置、Obj2位置の何
れにもデータが格納済みでない場合は、図22に示すOb
j3、Obj4位置のデータの再配置を行った後、Obj1位
置に新規入力されたデータを格納する(S711)。な
お、ステップS711の詳細については、後述、図30
を用いて説明することにする。
Since the memory area to be reserved in advance is reserved so as to store object data of all the image series constituting the image, Obj1, Obj2, Obj3, O
The fact that newly input data cannot be stored in any position of bj4 means that the number of objects using the memory is one, and the object using the memory is in FIG. d) Obj 3 position or O
This means that it exists at the bj4 position. Therefore, reallocation of the memory address space is
The object at the position j3 or Obj4 may be moved to the Obj1 position or the Obj2 position shown in FIG. This is because, in the memory management method of the present invention, as described above, the memory area to be secured in advance is secured so as to store the object data of all the image series constituting the image. Has a restriction that the sum of the sizes of the two objects does not exceed the total memory capacity. In the core profile mode, when the number of objects is three or four, As described with reference to FIGS. 22 (c) and (d), since the memory is divided into two and used, it is needless to say that the size of one object cannot exceed 1/2 of the total memory capacity. This is because it is assumed that the sum of the sizes of the two objects cannot exceed 1/2 of the total memory. Therefore, first, Ob
It is checked whether data has been stored in the j1 position and the Obj2 position (S701 and S703). If no data has been stored in any of the Obj1 position and the Obj2 position, Ob shown in FIG.
After rearranging the data at the j3 and Obj4 positions, the newly input data is stored at the Obj1 position (S711). The details of step S711 will be described later with reference to FIG.
This will be described with reference to FIG.

【0111】また、既に、Obj1位置、或はObj2位置の
何れかにデータが格納済みで、新規入力されたデータが
格納できないということは、新規に入力されたデータ
は、前述した制約に反する不正常なデータであるため、
メモリ内に新規に入力されたデータを格納することがで
きず、復号不能処理を行なう(S712)必要がある。
なお、この復号不能処理は、新規入力されたデータのオ
ブジェクトに対して、次の、Iフレームデータが入力さ
れるまで復号処理を中断し、次のIフレーム受信時から
改めてメモリアドレス空間の確保を行う処理である。こ
のように、まず新規オブジェクトデータ用のメモリを確
保することができるか否かを判断し、新規オブジェクト
データ用のメモリを確保することができない場合にはじ
めて、既存オブジェクトのメモリ空間位置の再配置を行
うことにより、復号化処理が中断される可能性が高いメ
モリの再配置処理を少なくすることができ、メモリの利
用効率を高めることができるとともに、復号化に必要な
メモリ不足により復号化不能となる可能性を大幅に低減
することができ、実用価値の高いメモリ管理方法を実現
できる。
Further, the fact that data has already been stored in either the Obj1 position or the Obj2 position and that newly input data cannot be stored means that newly input data is inconsistent with the above-described restrictions. Because the data is normal,
The newly input data cannot be stored in the memory, and it is necessary to perform a non-decodable process (S712).
In the non-decoding process, the decoding process is interrupted for the newly input data object until the next I-frame data is input, and the memory address space is newly secured from the next I-frame reception. This is the process to be performed. As described above, first, it is determined whether or not the memory for the new object data can be secured. If the memory for the new object data cannot be secured, the reallocation of the memory space position of the existing object is performed only when the memory for the new object data cannot be secured. By doing so, it is possible to reduce the amount of memory relocation processing that is likely to interrupt the decoding processing, increase the memory utilization efficiency, and make decoding impossible due to lack of memory necessary for decoding. It is possible to greatly reduce the possibility of the memory management, and to realize a memory management method with high practical value.

【0112】次に、前述したステップS711によるコ
ア・プロファイル・モードのObj3、Obj4位置のデータ
の再配置処理について図30を用いて説明する。図30
は、コア・プロファイル・モードのObj3、Obj4位置の
データの再配置を説明するためのフローチャートであ
る。まず、Obj4位置が空き状態であるか否かを検査し
(S801)、Obj4位置が空き領域でない、即ち、Obj
4位置にデータが格納されている場合には、図22に示
すObj4位置に格納されたデータを、Obj2位置に移動さ
せる(S802)。一方、Obj4位置が空き状態である
場合は、Obj3位置が空き状態であるか否かを検査し
(S803)、Obj3位置が空き領域でない、即ち、Obj
3位置にデータが格納されている場合には、図22に示
すObj3位置に格納されたデータを、Obj2位置に移動さ
せ(S804)、ステップS805に行く。また、Obj
3、Obj4位置が共に空き領域である場合には、デコー
ダで処理可能なメモリ量以上のデータが入力されたと判
断して、ステップS807に行く。
Next, the process of relocating the data at the positions Obj3 and Obj4 in the core profile mode in step S711 will be described with reference to FIG. FIG.
FIG. 9 is a flowchart for explaining relocation of data at the positions Obj3 and Obj4 in the core profile mode. First, it is checked whether or not the Obj4 position is empty (S801), and the Obj4 position is not an empty area, that is, Obj4.
If the data is stored at the four positions, the data stored at the Obj4 position shown in FIG. 22 is moved to the Obj2 position (S802). On the other hand, if the Obj4 position is empty, it is checked whether the Obj3 position is empty (S803), and the Obj3 position is not an empty area, that is, Obj
If data is stored at the three positions, the data stored at the Obj3 position shown in FIG. 22 is moved to the Obj2 position (S804), and the process goes to step S805. Also, Obj
If both the positions 3 and Obj4 are free areas, it is determined that data larger than the amount of memory that can be processed by the decoder has been input, and the flow advances to step S807.

【0113】ステップS805では、Obj1位置に新規
入力されたデータを格納できるか否かを検査し、Obj1
位置に新規入力されたデータを格納できる場合は、Obj
1位置に新規入力されたデータを格納する(S80
6)。一方、Obj1位置に新規入力されたデータを格納
できない場合は、デコーダで処理可能なメモリ量以上の
データが入力されたと判断してステップS807に行
く。デコーダで処理可能なメモリ量以上のデータが入力
された場合には、復号不能処理を行なう(S807)。
なお、この復号不能処理は、新規入力されたデータのオ
ブジェクトに対して、次の、Iフレームデータが入力さ
れるまで復号処理を中断し、次のIフレーム受信時から
改めてメモリアドレス空間の確保を行う処理である。
In step S805, it is checked whether or not the newly input data can be stored at the position Obj1.
Obj if the location can store the newly entered data
The newly input data is stored at one position (S80).
6). On the other hand, if the newly input data cannot be stored in the Obj1 position, it is determined that data larger than the memory amount that can be processed by the decoder has been input, and the process proceeds to step S807. If data larger than the amount of memory that can be processed by the decoder is input, a decoding impossible process is performed (S807).
In the non-decoding process, the decoding process is interrupted for the newly input data object until the next I-frame data is input, and the memory address space is newly secured from the next I-frame reception. This is the process to be performed.

【0114】次に、コア・プロファイル・モードにおい
て、オブジェクトのデータのサイズの変更に伴うメモリ
の再配置処理について図22、図31、及び図32を用
いて説明する。コア・プロファイル・モードにおいて、
例えば、オブジェクト数が3個の図31(a)に示すメ
モリ配置が取られていた場合であって、Obj1位置のオ
ブジェクトデータが消失した場合には、そのまま、Obj
2位置、及びObj3位置から図31(b)中の矢印の方
向にメモリ領域を確保することになる。しかし、コア・
プロファイル・モードでは、メモリ内に格納するオブジ
ェクト数が2個以下に減った場合には、画像格納用メモ
リを2分割して利用する必要がなくなり、1つオブジェ
クトの大きさ、或は2つのオブジェクトの大きさの和
が、全メモリ容量を超えなければ足りるため、各オブジ
ェクトあたりの最大マクロブロック数の許容値がメモリ
内に格納するオブジェクト数が2個以下に減った時点か
ら増加する。そのため、メモリ内に格納されているオブ
ジェクトの入力データの大きさが画像格納用メモリの1
/2以上となった場合には、前述した図31(b)に示
すメモリ配置では、必要なメモリ容量が確保できない状
態になることとなる。即ち、オブジェクト数が3個以上
から、2個以下に減り、且つオブジェクトの入力データ
のサイズが大きくなることにより、現存のメモリ配置で
は必要なメモリ容量が確保できない状態が生じた場合に
は、必要なメモリ容量を確保するために、図31(c)
に示すようなメモリ配置となるようメモリの再配置が行
われる。なお、以下に、図32を用いて説明するメモリ
の再配置は、前述した新規オブジェクト発生時のみに必
要なメモリの再配置と異なり、新規オブジェクト発生時
以外にも必要な、唯一のメモリの再配置である。
Next, in the core profile mode, a description will be given of memory relocation processing accompanying a change in the size of object data, with reference to FIGS. 22, 31 and 32. FIG. In core profile mode,
For example, in the case where the memory arrangement shown in FIG. 31A with three objects is taken and the object data at the position Obj1 is lost,
A memory area is secured in the direction of the arrow in FIG. 31B from the position 2 and the position Obj3. However, the core
In the profile mode, when the number of objects to be stored in the memory is reduced to two or less, it is not necessary to use the image storage memory in two parts, and the size of one object or two objects is reduced. Since the sum of the sizes is not required to exceed the total memory capacity, the allowable value of the maximum number of macroblocks per object increases from the point in time when the number of objects stored in the memory is reduced to two or less. Therefore, the size of the input data of the object stored in the memory is one size of the image storage memory.
In the case of / 2 or more, the required memory capacity cannot be secured in the memory arrangement shown in FIG. That is, if the number of objects is reduced from three or more to two or less and the size of the input data of the object is increased, a situation occurs in which the required memory capacity cannot be secured with the existing memory arrangement. In order to secure a large memory capacity, FIG.
The memory is rearranged so as to have the memory arrangement shown in FIG. The memory relocation described below with reference to FIG. 32 is different from the memory relocation necessary only when a new object is generated, unlike the above-described memory relocation required only when a new object is generated. Arrangement.

【0115】図32は、コア・プロファイル・モードの
メモリ管理方法におけるオブジェクトのデータが入力さ
れる毎に行われる動作を説明するためのフローチャート
であり、各オブジェクトデータの許容値が変更された時
におけるメモリの再配置処理を含んでいる。まず、オブ
ジェクトのデータが入力されると、必要なメモリ領域を
確保できるか否かを判断(S901)し、必要なメモリ
領域を確保できる場合には、ステップS914に行く。
一方、必要なメモリ領域を確保できない場合には、オブ
ジェクト数が2つ以下であるか否かを検査し(S90
2)、オブジェクト数が2つ以下でない場合には、復号
化処理を行なうことができない不正なデータが入力され
たと判断し、ステップS915に行く。一方、オブジェ
クト数が2つ以下の場合には、Obj1位置にデータが格
納されているか否かを検査する(S903)。この時、
Obj1位置にデータが格納されていない場合には、さら
に、Obj3位置にデータが格納されているか否かを検査
(S904)し、Obj3位置にデータが格納されている
場合には、Obj3位置に格納されたデータを、Obj1位置
に移動させる(S905)。一方、Obj3位置にデータ
が格納されていない場合には、さらに、Obj4位置にデ
ータが格納されているか否かを検査(S906)し、Ob
j4位置にデータが格納されている場合には、Obj4位置
に格納されたデータを、Obj1位置に移動させる(S9
07)。
FIG. 32 is a flowchart for explaining an operation performed every time data of an object is input in the memory management method in the core profile mode. This includes memory relocation processing. First, when the object data is input, it is determined whether a necessary memory area can be secured (S901). If the necessary memory area can be secured, the process proceeds to step S914.
On the other hand, if the necessary memory area cannot be secured, it is checked whether the number of objects is two or less (S90).
2) If the number of objects is not two or less, it is determined that invalid data that cannot be decoded is input, and the process proceeds to step S915. On the other hand, if the number of objects is two or less, it is checked whether data is stored at the Obj1 position (S903). At this time,
If no data is stored in the Obj1 position, it is further checked whether data is stored in the Obj3 position (S904). If data is stored in the Obj3 position, the data is stored in the Obj3 position. The obtained data is moved to the Obj1 position (S905). On the other hand, if data is not stored at the Obj3 position, it is further checked whether data is stored at the Obj4 position (S906).
If data is stored at the j4 position, the data stored at the Obj4 position is moved to the Obj1 position (S9).
07).

【0116】次に、Obj2位置にデータが格納されてい
るか否かを検査する(S908)。この時、Obj2位置
にデータが格納されていない場合には、さらに、Obj3
位置にデータが格納されているか否かを検査(S90
9)し、Obj3位置にデータが格納されている場合に
は、Obj3位置に格納されたデータを、Obj2位置に移動
させる(S910)。一方、Obj3位置にデータが格納
されていない場合には、さらに、Obj4位置にデータが
格納されているか否かを検査(S911)し、Obj4位
置にデータが格納されている場合には、Obj4位置に格
納されたデータを、Obj2位置に移動させる(S91
2)。次に、必要なメモリ領域を確保できるか否かを判
断(S913)し、必要なメモリ領域を確保できる場合
には、ステップS914に行く。一方、必要なメモリ領
域を確保できない場合は、復号化処理が不可能な不正な
データが入力されたと判断してステップS915に行
く。必要なメモリ領域を確保できる場合には、当該メモ
リ領域にオブジェクトデータを格納する(S914)。
一方、必要なメモリ領域を確保できない場合は、復号化
処理処理が不可能な不正なデータが入力されたと判断し
て、復号不能処理を行なう(S915)。
Next, it is checked whether data is stored at the position Obj2 (S908). At this time, if no data is stored in the Obj2 position, the Obj3
It is checked whether data is stored at the position (S90).
9) If the data is stored in the Obj3 position, the data stored in the Obj3 position is moved to the Obj2 position (S910). On the other hand, if the data is not stored at the Obj3 position, it is further checked whether data is stored at the Obj4 position (S911). If the data is stored at the Obj4 position, Is moved to the Obj2 position (S91).
2). Next, it is determined whether a necessary memory area can be secured (S913). If the necessary memory area can be secured, the process proceeds to step S914. On the other hand, if the necessary memory area cannot be secured, it is determined that invalid data that cannot be decrypted has been input, and the process proceeds to step S915. If the necessary memory area can be secured, the object data is stored in the memory area (S914).
On the other hand, if the necessary memory area cannot be secured, it is determined that invalid data that cannot be decoded is input, and the decoding is disabled (S915).

【0117】なお、この復号不能処理は、新規入力され
たデータのオブジェクトに対して、次の、Iフレームデ
ータが入力されるまで復号処理を中断し、次のIフレー
ム受信時から改めてメモリアドレス空間の確保を行う処
理である。このように、オブジェクトのデータを格納す
るためのメモリを確保することができるか否かを判断
し、メモリを確保することができない場合にはじめて、
既存オブジェクトのメモリ空間位置の再配置を行うこと
により、復号化処理が中断される可能性が高いメモリの
再配置処理を少なくすることができ、メモリの利用効率
を高めることができるとともに、復号化に必要なメモリ
不足により復号化不能となる可能性を大幅に低減するこ
とができ、実用価値の高いメモリ管理方法を実現でき
る。なお、本発明の実施の形態11では、復号不能処理
は、新規入力されたデータのオブジェクトを次のIフレ
ームデータから復号するものとして説明したが、これに
限定されず、当該オブジェクトのその後に入力された全
てのデータを全く復号化しないようにするものであって
も良い。
In the non-decoding process, the decoding process is suspended for the newly input data object until the next I frame data is input, and the memory address space is renewed from the time of receiving the next I frame. This is the process for securing As described above, it is determined whether or not a memory for storing the data of the object can be secured, and only when the memory cannot be secured,
By relocating the memory space position of the existing object, it is possible to reduce the relocation processing of the memory in which the decoding processing is likely to be interrupted, thereby improving the memory use efficiency and decoding. The possibility that decoding becomes impossible due to a shortage of memory required can be greatly reduced, and a memory management method of high practical value can be realized. In the eleventh embodiment of the present invention, the non-decodable process is described as decoding the newly input data object from the next I frame data. However, the present invention is not limited to this. It may be configured not to decode all the data obtained at all.

【0118】(実施の形態12)実施の形態12は、上
記各実施の形態1ないし11で示したメモリ管理方法、
画像符号化方法、画像復号化方法および画像表示方法を
実現するためのプログラムを、フロッピー(登録商標)
ディスク等の記録媒体に記録するようにすることによ
り、上記各実施の形態で示した処理を、独立したコンピ
ュータシステムにおいて簡単に実施することを可能にし
たものである。
(Twelfth Embodiment) A twelfth embodiment is a memory management method according to the first to eleventh embodiments described above.
A program for realizing the image encoding method, the image decoding method, and the image display method is stored in a floppy (registered trademark).
By recording on a recording medium such as a disk, the processing described in each of the above embodiments can be easily performed by an independent computer system.

【0119】図14は、上記実施の形態1ないし実施の
形態11のメモリ管理方法、画像符号化方法、画像復号
化方法および画像表示方法をこれらに対応するメモリ管
理プログラム、画像符号化プログラム、画像復号化プロ
グラムおよび画像表示プログラムを格納したフロッピー
ディスクを用いて、コンピュータシステムにより実施す
る場合の説明図である。図14 (b) は、フロッピーデ
ィスクの正面からみた外観、断面構造、及びフロッピー
ディスクを示し、図14 (a) は、記録媒体本体である
フロッピーディスクの物理フォーマットの例を示してい
る。フロッピーディスクFDはケースF内に内蔵され、
該ディスクの表面には、外周から内周に向かって同心円
状に複数のトラックTrが形成され、各トラックは角度
方向に16のセクタSeに分割されている。従って、上
記プログラムを格納したフロッピーディスクでは、上記
フロッピーディスクFD上に割り当てられた領域に、上
記メモリ管理プログラム、画像符号化プログラム、画像
復号化プログラムおよび画像表示プログラムの少なくと
も1つが記録されている。また、図14 (c) は、フロ
ッピーディスクFDに上記プログラムの記録再生を行う
ための構成を示す。上記プログラムをフロッピーディス
クFDに記録する場合は、コンピュータ・システムCs
から上記プログラムとしてのメモリ管理方法、画像符号
化方法、画像復号化方法および画像表示方法をフロッピ
ーディスクドライブを介して書き込む。また、フロッピ
ーディスク内のプログラムにより上記符号化あるいは復
号化装置をコンピュータシステム中に構築する場合は、
フロッピーディスクドライブによりプログラムをフロッ
ピーディスクから読み出し、コンピュータシステムに転
送する。
FIG. 14 shows a memory management method, an image encoding method, an image decoding method, and an image display method according to the first to eleventh embodiments. FIG. 11 is an explanatory diagram of a case where the present invention is implemented by a computer system using a floppy disk storing a decoding program and an image display program. FIG. 14B shows the appearance, cross-sectional structure, and floppy disk of the floppy disk as viewed from the front, and FIG. 14A shows an example of the physical format of the floppy disk which is the main body of the recording medium. The floppy disk FD is built in the case F,
A plurality of tracks Tr are formed concentrically from the outer circumference to the inner circumference on the surface of the disk, and each track is divided into 16 sectors Se in the angular direction. Therefore, in the floppy disk storing the program, at least one of the memory management program, the image encoding program, the image decoding program, and the image display program is recorded in an area allocated on the floppy disk FD. FIG. 14C shows a configuration for recording and reproducing the program on the floppy disk FD. When the above program is recorded on the floppy disk FD, the computer system Cs
Then, the memory management method, the image encoding method, the image decoding method, and the image display method as the above programs are written via a floppy disk drive. When the encoding or decoding device is constructed in a computer system by a program in a floppy disk,
The program is read from the floppy disk by the floppy disk drive and transferred to the computer system.

【0120】これにより、上記メモリ管理プログラム、
画像符号化プログラム、画像復号化プログラムおよび画
像表示プログラムの少なくとも1つを独立したコンピュ
ータシステムにより実行せしめるプログラム記録媒体を
得ることが可能となる。なお、上記説明では、記録媒体
としてフロッピーディスクを用いて説明を行ったが、H
DDやムーバブルディスク等のさらに大容量の磁気記録
媒体や、CD−ROM,CD−R,CD−RW,PD,
DVD,MO等の光ディスクを用いても同様に実施する
ことができる。また、記録媒体はこれらに限るものでは
なく、各種のICカード(メモリカード)等、プログラ
ムを記録できるものであれば同様に実施することができ
る。
As a result, the memory management program,
It is possible to obtain a program recording medium that allows an independent computer system to execute at least one of the image encoding program, the image decoding program, and the image display program. In the above description, the description has been made using the floppy disk as the recording medium.
Larger capacity magnetic recording media such as DD and removable disks, CD-ROM, CD-R, CD-RW, PD,
The present invention can be similarly implemented using an optical disk such as a DVD or MO. Further, the recording medium is not limited to these, but can be similarly implemented as long as the program can be recorded, such as various IC cards (memory cards).

【0121】[0121]

【発明の効果】以上のように、本願の請求項1の発明に
係るメモリ管理方法によれば、第1ないし第nの画像系
列(nは2以上の整数)の画像データをメモリに同時に
記録する,メモリ管理方法であって、メモリ内の領域
を、ADstart[i]番地からADend[i]番地 (i は1≦i≦n
/2を満たす整数)までの番地を第i のメモリアドレス
空間としてそれぞれ割り当てることにより第1ないし第
n/2のメモリアドレス空間に分割し、第iの上記メモ
リアドレス空間のADstart[i] もしくはADend[i] のいず
れか一方の端から当該第iのメモリアドレス空間の上位
もしくは下位メモリアドレスのいずれかに向けての領域
を、第kの画像系列(k=i×2−1)の画像データを
記録するためのエリアとして使用するとともに、上記AD
start[i] もしくはADend[i] の他方の端から当該第iの
メモリアドレス空間の下位もしくは上位メモリアドレス
のいずれかに向けての領域を、第(k+1)の画像系列
の画像データを記録するためのエリアとして使用する、
ようにしたので、メモリエリアの利用効率を高め、符号
化・復号化・表示に必要な画面データが消失する可能性
を大幅に低減することができる、実用的価値が高いメモ
リ管理方法を実現できる効果がある。
As described above, according to the memory management method according to the first aspect of the present invention, the image data of the first to n-th image sequences (n is an integer of 2 or more) are simultaneously recorded in the memory. In this method, the area in the memory is changed from the address ADstart [i] to the address ADend [i] (where i is 1 ≦ i ≦ n
(Integer satisfying / 2) is divided into first to n / 2th memory address spaces by assigning addresses as the i-th memory address space, and ADstart [i] or ADend of the i-th memory address space. [i] is defined as an image data of a k-th image sequence (k = i × 2-1) from an end toward either the upper or lower memory address of the i-th memory address space. Used as an area for recording
In the area from the other end of start [i] or ADend [i] to either the lower or upper memory address of the ith memory address space, the image data of the (k + 1) th image sequence is recorded. Used as an area for
As a result, it is possible to realize a memory management method with high practical value, which can increase the use efficiency of the memory area and greatly reduce the possibility of losing screen data necessary for encoding / decoding / display. effective.

【0122】また、本願の請求項2の発明に係るメモリ
管理方法によれば、請求項1記載のメモリ管理方法にお
いて、前記第kの画像系列の画像データと前記第(k+
1)の画像系列の画像データをともに前記第iのメモリ
アドレス空間に記録することによって一方の画像データ
が他方の画像データを上書きするか否かを監視し、メモ
リから画像データを読み出す時に、当該読み出すべき画
像系列の画像データが上記上書きにより破壊されている
か否かを、外部に通知する、ようにしたので、メモリエ
リアの利用効率を高め、符号化・復号化・表示に必要な
画面データが消失する可能性を大幅に低減することがで
きるとともに、アクセスした画像系列の画像が破壊され
ているか否かを外部に通知できる、実用的価値が高いメ
モリ管理方法を実現できる効果がある。
According to the memory management method of the second aspect of the present invention, in the memory management method of the first aspect, the image data of the k-th image sequence and the (k +
By recording the image data of the image series of 1) together in the i-th memory address space, it is monitored whether or not one image data overwrites the other image data. It notifies the outside whether the image data of the image sequence to be read has been destroyed by the above overwriting, so that the use efficiency of the memory area is improved, and the screen data necessary for encoding / decoding / display is reduced. This has the effect of significantly reducing the possibility of loss and realizing a highly practical memory management method capable of notifying the outside whether or not the accessed image sequence image has been destroyed.

【0123】本願の請求項3の発明に係るメモリ管理方
法によれば、請求項1記載のメモリ管理方法において、
前記第kの画像系列の画像データと前記第(k+1)の
画像系列の画像データをともに前記第iのメモリアドレ
ス空間に記録することによって一方の画像データが他方
の画像データを上書きするか否かを監視し、上記上書き
により画像データの破壊が生じ得る場合は、外部から入
力した,画像系列の重要度情報を参照し、重要度の低い
画像データを破壊する上書きを行い重要度の高い画像デ
ータを保護する、ようにしたので、メモリエリアの利用
効率を高め、符号化・復号化・表示に必要な画面データ
が消失する可能性を大幅に低減することができ、画面デ
ータが消失した場合でも、画質劣化を少なくすることが
できる、実用的価値が高いメモリ管理方法を実現できる
効果がある。
According to the memory management method of the third aspect of the present invention, in the memory management method of the first aspect,
Whether one image data overwrites the other image data by recording both the image data of the k-th image sequence and the image data of the (k + 1) -th image sequence in the i-th memory address space If the overwriting can cause destruction of the image data, the externally input image sequence importance information is referenced, and the overwriting is performed to destroy the less important image data and the higher importance image data is destroyed. , So that the use efficiency of the memory area can be increased, and the possibility that screen data necessary for encoding / decoding / display is lost can be greatly reduced. In addition, there is an effect that a memory management method that can reduce image quality deterioration and has a high practical value can be realized.

【0124】また、本願の請求項4の発明に係る画像符
号化方法によれば、第1ないし第nの画像系列(nは2
以上の整数)の画像データを同時に符号化する画像符号
化方法であって、画面間予測符号化を行う際に、予測画
像データを、請求項1記載のメモリ管理方法により管理
されるメモリに記録する、ようにしたので、メモリエリ
アの利用効率を高め、符号化に必要な画面データが消失
する可能性を大幅に低減することができる、実用的価値
が高い画像符号化方法を実現できる効果がある。
Further, according to the image coding method according to the invention of claim 4 of the present application, the first to n-th image sequences (n is 2
2. An image encoding method for simultaneously encoding image data of the above (integer), wherein when performing inter-screen prediction encoding, predictive image data is recorded in a memory managed by the memory management method according to claim 1. As a result, it is possible to increase the efficiency of use of the memory area and greatly reduce the possibility of losing screen data required for encoding. is there.

【0125】また、本願の請求項5の発明に係る画像復
号化方法によれば、第1ないし第nの画像系列(nは2
以上の整数)の画像データを同時に復号化する画像復号
化方法であって、画面間予測復号化を行う際に、予測画
像データを、請求項1記載のメモリ管理方法により管理
されるメモリに記録する、ようにしたので、メモリエリ
アの利用効率を高め、復号化に必要な画面データが消失
する可能性を大幅に低減することができる、実用的価値
が高い画像復号化方法を実現できる効果がある。
Further, according to the image decoding method according to the invention of claim 5 of the present application, the first to n-th image sequences (n is 2
An image decoding method for simultaneously decoding image data of the above (integer), wherein when performing inter-screen prediction decoding, predictive image data is recorded in a memory managed by the memory management method according to claim 1. As a result, it is possible to increase the efficiency of use of the memory area and greatly reduce the possibility of losing the screen data required for decoding. is there.

【0126】また、本願の請求項6の発明に係る画像復
号化方法によれば、第1ないし第nの画像系列(nは2
以上の整数)の画像データを同時に復号化する画像復号
化方法であって、画面間予測復号化を行う際に、予測画
像データを、請求項2記載のメモリ管理方法により管理
されるメモリに記録し、当該画像系列の復号化で必要
な,メモリ内の画像データが破壊された場合は、上記メ
モリ内の画像データを参照しないで復号化可能となるま
で復号化処理を中断する、ようにしたので、メモリエリ
アの利用効率を高め、復号化に必要な画面データが消失
する可能性を大幅に低減することができ、復号化に必要
な画面データが消失した場合に、画質劣化を少なくする
ことができる、実用的価値が高い画像復号化方法を実現
できる効果がある。
Further, according to the image decoding method according to the invention of claim 6 of the present application, the first to n-th image sequences (n is 2
An image decoding method for simultaneously decoding image data of the above (integer), wherein when performing inter-screen predictive decoding, predictive image data is recorded in a memory managed by the memory management method according to claim 2. If the image data in the memory required for decoding the image sequence is destroyed, the decoding process is interrupted until decoding becomes possible without referring to the image data in the memory. Therefore, the use efficiency of the memory area can be increased, the possibility of losing the screen data necessary for decoding can be greatly reduced, and when the screen data required for decoding has been lost, the image quality degradation can be reduced. This has the effect of realizing an image decoding method having a high practical value.

【0127】また、本願の請求項7の発明に係る画像復
号化方法によれば、第1ないし第nの画像系列(nは2
以上の整数)の画像データを同時に復号化する画像復号
化方法であって、画面間予測復号化を行う際に、請求項
3記載のメモリ管理方法により管理されるメモリに、予
測画像データを、重要な画像系列の重要度を高くして記
録し、重要な画像系列の復号化に必要な画像データを破
壊されにくくした、ので、メモリエリアの利用効率を高
め、復号化に必要な画面データが消失する可能性を大幅
に低減することができ、復号化に必要な画面データが消
失した場合でも、画質劣化を少なくすることができる、
実用的価値が高い画像復号化方法を実現できる効果があ
る。
According to the image decoding method of the present invention, the first to n-th image sequences (where n is 2
An image decoding method for simultaneously decoding image data of the above (integer), wherein when performing inter-screen prediction decoding, predictive image data is stored in a memory managed by the memory management method according to claim 3. The important image series is recorded with high importance, and the image data necessary for decoding the important image series is hardly destroyed, so the memory area utilization efficiency is improved and the screen data necessary for decoding is The possibility of loss can be greatly reduced, and even when screen data required for decoding is lost, image quality degradation can be reduced.
There is an effect that an image decoding method having a high practical value can be realized.

【0128】また、本願の請求項8の発明に係る画像表
示方法によれば、第1ないし第nの画像系列(nは2以
上の整数)の画像データを同時に表示する画像表示方法
であって、請求項1記載のメモリ管理方法により管理さ
れるメモリに、表示すべき画像データを記録する、よう
にしたので、メモリエリアの利用効率を高め、表示に必
要な画面データが消失する可能性を大幅に低減すること
ができる、実用的価値が高い画像表示方法が得られる効
果がある。
According to the image display method of the invention of claim 8 of the present application, there is provided an image display method for simultaneously displaying image data of first to n-th image series (n is an integer of 2 or more). Since the image data to be displayed is recorded in the memory managed by the memory management method according to claim 1, the use efficiency of the memory area is increased, and the possibility of losing screen data necessary for display is reduced. There is an effect that an image display method which can be greatly reduced and has high practical value can be obtained.

【0129】また、本願の請求項9の発明に係る画像表
示方法によれば、第1ないし第nの画像系列(nは2以
上の整数)の画像データを同時に表示する画像表示方法
であって、当該画像系列の表示に必要な,メモリ内の画
像データが破壊された場合は、当該破壊された画像デー
タに代えて、当該画像系列の,破壊されていない最新時
刻の画像データを表示する、ようにしたので、メモリエ
リアの利用効率を高め、表示に必要な画面データが消失
する可能性を大幅に低減することができ、表示に必要な
画面データが消失した場合に、画質劣化を少なくするこ
とができる、実用的価値が高い画像表示方法を実現でき
る効果がある。
According to the image display method of the ninth aspect of the present invention, there is provided an image display method for simultaneously displaying image data of first to n-th image series (n is an integer of 2 or more). When the image data in the memory necessary for displaying the image sequence is destroyed, the image data at the latest undestructed time of the image sequence is displayed instead of the destroyed image data. As a result, the use efficiency of the memory area can be increased, the possibility of losing the screen data required for display can be greatly reduced, and when the screen data required for display has been lost, image quality degradation can be reduced. There is an effect that an image display method with high practical value can be realized.

【0130】また、本願の請求項10の発明に係るメモ
リ管理装置によれば、第1ないし第nの画像系列(nは
2以上の整数)の画像データをメモリに同時に記録す
る,メモリ管理装置であって、メモリ内の領域を、ADst
art[i]番地からADend[i]番地(i は1≦i≦n/2を満
たす整数)までの番地を第i のメモリアドレス空間とし
てそれぞれ割り当てることにより第1ないし第n/2の
メモリアドレス空間に分割するメモリ領域分割手段と、
第iの上記メモリアドレス空間のADstart[i] もしくはAD
end[i] のいずれか一方の端から当該第iのメモリアドレ
ス空間内の上位もしくは下位メモリアドレスのいずれか
に向けての領域を、第kの画像系列(k=i×2−1)
の画像データを記録するためのエリアとして使用すると
ともに、上記ADstart[i] もしくはADend[i] の他方の端
から当該第iのメモリアドレス空間内の下位もしくは上
位メモリアドレスのいずれかに向けての領域を、第(k
+1)の画像系列の画像データを記録するためのエリア
として使用するためのアドレスを生成するアドレス生成
手段と、を備えるようにしたので、メモリエリアの利用
効率を高め、符号化・復号化・表示に必要な画面データ
が消失する可能性を大幅に低減することができる、実用
的価値が高いメモリ管理装置を実現できる効果がある。
According to the memory management device of the tenth aspect of the present invention, the memory management device simultaneously records the image data of the first to n-th image series (n is an integer of 2 or more) in the memory. And the area in the memory is ADst
The first to n / 2th memory addresses are assigned by assigning addresses from address art [i] to address ADend [i] (i is an integer satisfying 1 ≦ i ≦ n / 2) as the i-th memory address space. Memory area dividing means for dividing into spaces;
ADstart [i] or AD in the ith memory address space
A region from one end of end [i] to either the upper or lower memory address in the i-th memory address space is defined as a k-th image sequence (k = i × 2-1).
Of the ADstart [i] or ADend [i] from the other end to either the lower or upper memory address in the ith memory address space. The region is designated as (k
+1) address generating means for generating an address to be used as an area for recording image data of the image series, so that the use efficiency of the memory area is improved, and the encoding / decoding / display is performed. This has the effect of realizing a memory management device with high practical value, which can greatly reduce the possibility of losing screen data necessary for the operation.

【0131】また、本願の請求項11の発明に係るメモ
リ管理プログラム記録媒体によれば、第1ないし第nの
画像系列(nは2以上の整数)の画像系列の画像データ
を同時に記録する,メモリ管理方法を実行するメモリ管
理プログラムを記録したメモリ管理プログラム記録媒体
であって、メモリ内の領域を、ADstart[i]番地からADen
d[i]番地 (i は1≦i≦n/2を満たす整数)までの番
地を第i のメモリアドレス空間としてそれぞれ割り当て
ることにより第1ないし第n/2のメモリアドレス空間
に分割し、第iの上記メモリアドレス空間のADstart[i]
もしくはADend[i] のいずれか一方の端から当該第i の
メモリアドレス空間内の上位もしくは下位メモリアドレ
スのいずれかに向けての領域を、第kの画像系列(k=
i×2−1)の画像データを記録するためのエリアとし
て使用するとともに、上記ADstart[i] もしくはADend
[i] の他方の端から当該第i のメモリアドレス空間内の
下位もしくは上位メモリアドレスのいずれかに向けての
領域を、第(k+1)の画像系列の画像データを記録す
るためのエリアとして使用するメモリ管理方法を実行す
るメモリ管理プログラム、を記録してなるようにしたの
で、メモリエリアの利用効率を高め、符号化・復号化・
表示に必要な画面データが消失する可能性を大幅に低減
することができる、実用的価値が高いメモリ管理方法を
コンピュータに実行せしめることが可能なプログラムを
記録したプログラム記録媒体を提供できる効果がある。
Further, according to the memory management program recording medium of the invention of claim 11 of the present application, the image data of the image sequences of the first to n-th image sequences (n is an integer of 2 or more) are simultaneously recorded. A memory management program recording medium in which a memory management program for executing a memory management method is recorded, wherein an area in the memory is changed from an address ADstart [i] to an address ADen.
The addresses up to address d [i] (where i is an integer satisfying 1 ≦ i ≦ n / 2) are divided into the first to n / 2th memory address spaces by allocating them as the ith memory address space. ADstart [i] in the above memory address space of i
Alternatively, an area from one end of ADend [i] to either the upper or lower memory address in the i-th memory address space is defined as a k-th image sequence (k =
i × 2-1) is used as an area for recording image data, and the above-mentioned ADstart [i] or ADend [
The area from the other end of [i] to either the lower or upper memory address in the ith memory address space is used as an area for recording image data of the (k + 1) th image sequence A memory management program for executing a memory management method to perform the memory management method.
It is possible to provide a program recording medium on which a program capable of causing a computer to execute a memory management method having high practical value, which can significantly reduce the possibility of losing screen data necessary for display, is provided. .

【0132】また、本願の請求項12の発明に係るメモ
リ管理装置によれば、空き状態、またはi個の画像デー
タ(i=1ないし3の整数)が格納されたメモリ領域に
新規入力された画像データを格納する際、少なくとも、
前記メモリ領域のアドレスの最下位側、または最上位側
に画像データを格納できる場合には、メモリ領域のアド
レスの最下位側、または最上位側に前記新規入力された
画像データを格納し、前記メモリ領域のアドレスの最下
位側、及び最上位側に画像データを格納できない場合に
は、その中間部に前記新規入力された画像データを格納
することによりメモリの記憶管理を行うメモリ管理方法
であって、前記中間部に新規入力された画像データを格
納する際は、前記最上位側,最下位側に格納されている
画像データのいずれかに接する領域に前記新規入力され
た画像データを格納するか、あるいは前記メモリ領域の
アドレス中央位置に接する領域に前記新規入力された画
像データを格納するようにしたので、メモリの利用効率
を高めることができ、復号化に必要なメモリ不足により
復号化不能となる可能性を大幅に低減することができ
る。
Further, according to the memory management device of the twelfth aspect of the present invention, a new state is input to a memory area storing an empty state or i image data (i = 1 to 3). When storing image data, at least
If the image data can be stored at the lowest or uppermost address of the memory area, the newly input image data is stored at the lower or uppermost address of the memory area, If image data cannot be stored at the lowest and highest addresses of the memory area, a memory management method for storing and managing the memory by storing the newly input image data in an intermediate portion. When storing the newly input image data in the intermediate portion, the newly input image data is stored in an area that is in contact with one of the image data stored on the uppermost side and the lowermost side. Alternatively, the newly input image data is stored in an area adjacent to the address center position of the memory area, so that the memory use efficiency can be improved. , It is possible to greatly reduce the possibility of impossible decoded by insufficient memory required for decoding.

【0133】また、本願の請求項13の発明に係るメモ
リ管理装置によれば、請求項12に記載のメモリ管理方
法において、メモリ領域内に格納されている画像デー
タ、及び新規入力された画像データがすべて矩形形状の
画像データである場合には、前記中間部に画像データを
格納する際、前記最上位側,最下位側に格納されている
画像データのいずれかに接する領域に前記新規入力され
た画像データを格納するように、既に格納された画像デ
ータのメモリ空間位置の再配置を行うこととしたので、
より大きなメモリ量を確保することができるため、メモ
リ領域の利用効率を高めることができ、復号化に必要な
メモリ不足により復号化不能となる可能性を大幅に低減
することができる。
According to the memory management apparatus of the present invention, the image data stored in the memory area and the newly input image data are stored in the memory management method. Are all rectangular image data, when the image data is stored in the intermediate portion, the newly input image data is stored in an area that is in contact with one of the image data stored on the uppermost side and the lowermost side. To relocate the memory space position of the already stored image data so that the stored image data is stored,
Since a larger memory amount can be secured, the use efficiency of the memory area can be increased, and the possibility that decoding cannot be performed due to lack of memory required for decoding can be significantly reduced.

【0134】また、本願の請求項14の発明に係るメモ
リ管理装置によれば、請求項13に記載のメモリ管理方
法において、前記既に格納された画像データのメモリ空
間位置の再配置は、新規入力された画像データ用のメモ
リが不足する場合にのみ行うこととしたので、復号化処
理が中断される可能性が高いメモリの再配置処理の実行
回数を少なくすることができ、メモリの利用効率を高め
ることができるとともに、復号化に必要なメモリ不足に
より復号化不能となる可能性を大幅に低減することがで
き、実用価値の高いメモリ管理方法を実現できる。
According to the memory management device of the present invention, in the memory management method of the present invention, the rearrangement of the memory space position of the already stored image data is performed by newly inputting. Is performed only when there is a shortage of memory for the decoded image data, so that the number of times of executing the memory rearrangement process, which is likely to interrupt the decoding process, can be reduced, and the memory use efficiency can be reduced. In addition to this, it is possible to significantly reduce the possibility that decoding becomes impossible due to a shortage of memory required for decoding, thereby realizing a memory management method of high practical value.

【0135】また、本願の請求項15の発明に係るメモ
リ管理装置によれば、請求項12に記載のメモリ管理方
法において、メモリ領域内に格納されている画像デー
タ、及び新規入力された画像データの内、少なくとも一
つが任意形状の画像データである場合には、前記中間部
に画像データを格納する際、前記メモリ領域のアドレス
中央位置に接する領域に前記新規入力された画像データ
を格納するように、既に格納された画像データのメモリ
空間位置の再配置を行うこととしたので、個々の画像デ
ータの大きさが多少変化してもメモリ領域を動的に確保
することができるため、復号化に必要なメモリ不足によ
り復号化不能となる可能性を大幅に低減することができ
る。
According to the memory management device of the present invention, the image data stored in the memory area and the newly input image data can be stored in the memory management method. When at least one of the image data is image data of an arbitrary shape, when storing the image data in the intermediate portion, the newly input image data is stored in an area adjacent to an address center position of the memory area. In addition, since the memory space position of already stored image data is rearranged, a memory area can be dynamically secured even if the size of each image data slightly changes. The possibility that decoding becomes impossible due to a shortage of memory required for this can be greatly reduced.

【0136】また、本願の請求項16の発明に係るメモ
リ管理装置によれば、請求項15に記載のメモリ管理方
法において、前記既に格納された画像データのメモリ空
間位置の再配置は、新規入力された画像データ用のメモ
リが不足する場合にのみ行うこととしたので、復号化処
理が中断される可能性が高いメモリの再配置処理の実行
回数を少なくすることができ、メモリの利用効率を高め
ることができるとともに、復号化に必要なメモリ不足に
より復号化不能となる可能性を大幅に低減することがで
き、実用価値の高いメモリ管理方法を実現できる。
According to the memory management device of the present invention, in the memory management method of the present invention, the rearrangement of the memory space position of the already stored image data is performed by newly inputting. Is performed only when there is a shortage of memory for the decoded image data, so that the number of times of executing the memory rearrangement process, which is likely to interrupt the decoding process, can be reduced, and the memory use efficiency can be reduced. In addition to this, it is possible to significantly reduce the possibility that decoding becomes impossible due to a shortage of memory required for decoding, thereby realizing a memory management method of high practical value.

【0137】また、本願の請求項17の発明に係るメモ
リ管理装置によれば、請求項12に記載のメモリ管理方
法において、前記中間部に画像データを格納する際、前
記最上位側,最下位側に格納されている画像データのい
ずれかに接する領域に新規入力された画像データを格納
するメモリ管理時に、任意形状の画像データが新規に入
力された場合には、前記中央部に画像データを格納する
際、前記メモリ領域のアドレス中央位置に接する領域に
新規入力された画像データを格納するよう、既に格納さ
れた画像データのメモリ空間位置の再配置を行うことと
したので、任意形状の画像データが入力されるまでは、
より大きなメモリ量を確保することができ、また、任意
形状の画像データが入力された後は、2つのオブジェク
トでメモリ量の和が上限の範囲内で自由に変更可能であ
り、メモリ位置の再配置を殆ど行うことなく復号化に十
分なメモリ領域を使用することができる。
According to the memory management device of the present invention, when storing the image data in the intermediate portion, the uppermost side and the lowermost side are stored. In the memory management for storing the newly input image data in an area in contact with any of the image data stored on the side, if image data of an arbitrary shape is newly input, the image data is stored in the central portion. When storing, the memory space position of the already stored image data is rearranged so that the newly input image data is stored in an area adjacent to the address center position of the memory area. Until data is entered,
A larger memory amount can be secured, and after the image data of an arbitrary shape is input, the sum of the memory amounts of the two objects can be freely changed within the upper limit range, and the memory position can be re-established. Sufficient memory area for decoding can be used with little placement.

【0138】また、本願の請求項18の発明に係るメモ
リ管理装置によれば、請求項17に記載のメモリ管理方
法において、任意形状の画像データの入力に伴うメモリ
空間位置の再配置後は、新規入力された画像データ用の
メモリが不足する場合にのみ、前記中央部に画像データ
を格納する際、前記メモリ領域のアドレス中央位置に接
する領域に新規入力された画像データを格納するよう、
既に格納された画像データのメモリ空間位置の再配置を
行うこととしたので、復号化処理が中断される可能性が
高いメモリの再配置処理の実行回数を少なくすることが
でき、メモリの利用効率を高めることができるととも
に、復号化に必要なメモリ不足により復号化不能となる
可能性を大幅に低減することができ、実用価値の高いメ
モリ管理方法を実現できる。
Further, according to the memory management method of the present invention, in the memory management method of the present invention, after the rearrangement of the memory space position accompanying the input of the image data of an arbitrary shape, Only when the memory for the newly input image data is insufficient, when storing the image data in the central portion, to store the newly input image data in an area adjacent to the address center position of the memory area,
Since the memory space position of the already stored image data is rearranged, the number of times of performing the memory rearrangement process which is likely to interrupt the decoding process can be reduced, and the memory utilization efficiency can be reduced. And the possibility that decoding becomes impossible due to lack of memory required for decoding can be greatly reduced, and a memory management method of high practical value can be realized.

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

【図1】複数の画像系列で構成される画像の例を示す図FIG. 1 shows an example of an image composed of a plurality of image sequences.

【図2】本発明の実施の形態1によるメモリ管理方法に
よりメモリアドレスを分割した例を示す図
FIG. 2 is a diagram showing an example in which a memory address is divided by the memory management method according to the first embodiment of the present invention;

【図3】本発明の実施の形態1によるメモリ管理方法に
よりメモリアドレスを分割した例を示す図
FIG. 3 is a diagram showing an example in which a memory address is divided by the memory management method according to the first embodiment of the present invention;

【図4】本発明の実施の形態2によるメモリ・ユニット
のブロック図
FIG. 4 is a block diagram of a memory unit according to a second embodiment of the present invention.

【図5】本発明の実施の形態3によるメモリ・ユニット
の記録手順をソフトウェアで実現する場合のフローチャ
ートを示す図
FIG. 5 is a flowchart showing a case where a recording procedure of a memory unit according to a third embodiment of the present invention is realized by software;

【図6】本発明の実施の形態4によるメモリ・ユニット
の読み出し手順をソフトウェアで実現する場合のフロー
チャートを示す図
FIG. 6 is a diagram showing a flowchart in a case where a read procedure of a memory unit according to a fourth embodiment of the present invention is realized by software;

【図7】本発明の実施の形態5によるメモリ・ユニット
のブロック図
FIG. 7 is a block diagram of a memory unit according to a fifth embodiment of the present invention.

【図8】本発明の実施の形態6による画像復号化装置の
ブロック図
FIG. 8 is a block diagram of an image decoding apparatus according to a sixth embodiment of the present invention.

【図9】本発明の実施の形態7によるメモリ・ユニット
のブロック図
FIG. 9 is a block diagram of a memory unit according to a seventh embodiment of the present invention.

【図10】本発明の実施の形態7による画像復号化装置
のブロック図
FIG. 10 is a block diagram of an image decoding apparatus according to a seventh embodiment of the present invention.

【図11】本発明の実施の形態8による画像表示装置の
ブロック図
FIG. 11 is a block diagram of an image display device according to an eighth embodiment of the present invention.

【図12】本発明の実施の形態9によるメモリ・ユニッ
トのブロック図
FIG. 12 is a block diagram of a memory unit according to a ninth embodiment of the present invention;

【図13】本発明の実施の形態10による画像復号化装
置のブロック図
FIG. 13 is a block diagram of an image decoding apparatus according to a tenth embodiment of the present invention.

【図14】本発明の実施の形態12による,上記各実施
の形態のメモリ管理方法、画像符号化方法、画像復号化
方法および画像表示方法ををコンピュータシステムによ
り実現するためのプログラムを格納するための記録媒体
についての説明図
FIG. 14 is a diagram for storing a program for realizing a memory management method, an image encoding method, an image decoding method, and an image display method according to the twelfth embodiment of the present invention by a computer system. Of the recording medium

【図15】代表的なMPEG符号化の例を示す図FIG. 15 is a diagram showing an example of typical MPEG encoding.

【図16】従来のメモリアドレスの分割例を示す図FIG. 16 is a diagram showing a conventional example of dividing a memory address;

【図17】従来および本発明の実施の形態2,5,7,
9による画像符号化装置のブロック図
FIG. 17 shows Embodiments 2, 5, 7, and
9 is a block diagram of an image encoding device

【図18】従来および本発明の実施の形態2,5,7,
9による画像復号化装置のブロック図
FIG. 18 is a diagram illustrating a conventional and second, fifth, and seventh embodiments of the present invention.
9 is a block diagram of an image decoding apparatus.

【図19】従来および本発明の実施の形態2,5,7,
9による画像表示装置のブロック図
FIG. 19 is a diagram showing a conventional and second, fifth, and seventh embodiments of the present invention.
9 is a block diagram of the image display device.

【図20】従来のメモリ・ユニットのブロック図FIG. 20 is a block diagram of a conventional memory unit.

【図21】本発明の実施の形態11によるシンプル・プ
ロファイル時のメモリ管理方法の一例を示す図
FIG. 21 is a diagram showing an example of a memory management method at the time of a simple profile according to the eleventh embodiment of the present invention;

【図22】本発明の実施の形態11によるコア・プロフ
ァイル時のメモリ管理方法の一例を示す図
FIG. 22 is a diagram showing an example of a memory management method at the time of a core profile according to the eleventh embodiment of the present invention.

【図23】本発明の実施の形態11によるメモリ管理方
法のシンプル・プロファイル・モードからコア・プロフ
ァイル・モードへの切替え処理を説明するためのフロー
チャートを示す図
FIG. 23 is a view illustrating a flowchart for explaining processing for switching from the simple profile mode to the core profile mode in the memory management method according to the eleventh embodiment of the present invention;

【図24】本発明の実施の形態11によるシンプル・プ
ロファイル・モードのメモリアドレス空間確保手順の一
例を説明するためのフローチャートを示す図
FIG. 24 is a flowchart illustrating an example of a memory address space securing procedure in a simple profile mode according to the eleventh embodiment of the present invention;

【図25】本発明の実施の形態11によるシンプル・プ
ロファイル・モードのObj2、Obj3、Obj4位置のデー
タの再配置を説明するためのフローチャートを示す図
FIG. 25 is a diagram illustrating a flowchart for explaining relocation of data at Obj2, Obj3, and Obj4 positions in the simple profile mode according to the eleventh embodiment of the present invention.

【図26】本発明の実施の形態11によるシンプル・プ
ロファイル・モードのObj3、Obj4位置のデータの再配
置を説明するためのフローチャートを示す図
FIG. 26 is a diagram showing a flowchart for explaining relocation of data at Obj3 and Obj4 positions in the simple profile mode according to the eleventh embodiment of the present invention;

【図27】本発明の実施の形態11によるシンプル・プ
ロファイル・モードのObj3位置のデータの再配置を説
明するためのフローチャートを示す図
FIG. 27 is a diagram illustrating a flowchart for explaining relocation of data at the Obj3 position in the simple profile mode according to the eleventh embodiment of the present invention.

【図28】本発明の実施の形態11によるシンプル・プ
ロファイル・モードのObj4位置のデータの再配置を説
明するためのフローチャートを示す図
FIG. 28 is a view showing a flowchart for explaining relocation of data at the Obj4 position in the simple profile mode according to the eleventh embodiment of the present invention;

【図29】本発明の実施の形態11によるコア・プロフ
ァイル・モードのメモリアドレス空間確保手順の一例を
説明するためのフローチャートを示す図
FIG. 29 is a view showing a flowchart for explaining an example of a memory address space securing procedure in a core profile mode according to the eleventh embodiment of the present invention;

【図30】本発明の実施の形態11によるコア・プロフ
ァイル・モードのObj3、Obj4位置のデータの再配置を
説明するためのフローチャートを示す図
FIG. 30 is a diagram showing a flowchart for explaining relocation of data at Obj3 and Obj4 positions in the core profile mode according to the eleventh embodiment of the present invention.

【図31】本発明の実施の形態11によるコア・プロフ
ァイル時のメモリ配置の一例を示す図
FIG. 31 is a diagram showing an example of a memory arrangement at the time of a core profile according to the eleventh embodiment of the present invention;

【図32】本発明の実施の形態11によるコア・プロフ
ァイル・モードのメモリ管理方法において、各オブジェ
クトデータの許容値が変更された時におけるメモリの再
配置について説明するためのフローチャートを示す図
FIG. 32 is a view illustrating a flowchart for describing memory relocation when the allowable value of each object data is changed in the memory management method in the core profile mode according to the eleventh embodiment of the present invention.

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

M10 バンク選択器 M12 減算器 M14 アドレス生成器 M15 アドレス管理器 M17 メモリ FM メモリ・ユニット U20 オブジェクト選択器 U25 表示機器 Cs コンピュータ・システム FD フロッピディスク FDD フロッピディスクドライブ M10 Bank selector M12 Subtractor M14 Address generator M15 Address manager M17 Memory FM memory unit U20 Object selector U25 Display device Cs Computer system FD Floppy disk FDD Floppy disk drive

フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 5/907 G09G 5/00 555G 7/32 H04N 7/137 Z Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat II (reference) H04N 5/907 G09G 5/00 555G 7/32 H04N 7/137 Z

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 第1ないし第nの画像系列(nは2以上
の整数)の画像データをメモリに同時に記録する,メモ
リ管理方法であって、 メモリ内の領域を、ADstart[i]番地からADend[i]番地
(i は1≦i≦n/2を満たす整数)までの番地を第i
のメモリアドレス空間としてそれぞれ割り当てることに
より第1ないし第n/2のメモリアドレス空間に分割
し、 第iの上記メモリアドレス空間のADstart[i] もしくはAD
end[i] のいずれか一方の端から当該第iのメモリアドレ
ス空間内の上位もしくは下位メモリアドレスのいずれか
に向けての領域を、第kの画像系列(k=i×2−1)
の画像データを記録するためのエリアとして使用すると
ともに、 上記ADstart[i] もしくはADend[i] の他方の端から当該
第iのメモリアドレス空間内の下位もしくは上位メモリ
アドレスのいずれかに向けての領域を、第(k+1)の
画像系列の画像データを記録するためのエリアとして使
用する、ことを特徴とするメモリ管理方法。
1. A memory management method for simultaneously recording image data of a first to an n-th image series (n is an integer of 2 or more) in a memory, wherein an area in the memory is shifted from an address ADstart [i]. ADend [i]
(I is an integer satisfying 1 ≦ i ≦ n / 2)
Divides into the first to n / 2th memory address spaces by assigning them as the memory address spaces, respectively, and ADstart [i] or AD in the ith memory address space.
A region from one end of end [i] to either the upper or lower memory address in the ith memory address space is defined as a k-th image sequence (k = i × 2-1).
Of the ADstart [i] or ADend [i] from the other end to either the lower or upper memory address in the ith memory address space. A memory management method, wherein an area is used as an area for recording image data of a (k + 1) -th image sequence.
【請求項2】 請求項1記載のメモリ管理方法におい
て、 前記第kの画像系列の画像データと前記第(k+1)の
画像系列の画像データをともに前記第iのメモリアドレ
ス空間に記録することによって一方の画像データが他方
の画像データを上書きするか否かを監視し、 メモリから画像データを読み出す時に、当該読み出すべ
き画像系列の画像データが上記上書きにより破壊されて
いるか否かを、外部に通知する、 ことを特徴とするメモリ管理方法。
2. The memory management method according to claim 1, wherein both the image data of the k-th image sequence and the image data of the (k + 1) -th image sequence are recorded in the i-th memory address space. It monitors whether one image data overwrites the other image data and notifies the outside when reading the image data from the memory whether the image data of the image series to be read has been destroyed by the overwriting. A memory management method.
【請求項3】 請求項1記載のメモリ管理方法におい
て、 前記第kの画像系列の画像データと前記第(k+1)の
画像系列の画像データをともに前記第iのメモリアドレ
ス空間に記録することによって一方の画像データが他方
の画像データを上書きするか否かを監視し、 上記上書きにより画像データの破壊が生じ得る場合は、
外部から入力した,画像系列の重要度情報を参照し、重
要度の低い画像データを破壊する上書きを行い重要度の
高い画像データを保護する、 ことを特徴とするメモリ管理方法。
3. The memory management method according to claim 1, wherein both the image data of the k-th image sequence and the image data of the (k + 1) -th image sequence are recorded in the i-th memory address space. It monitors whether one image data overwrites the other image data, and if the overwriting can destroy the image data,
A memory management method characterized by referring to importance information of an image sequence input from the outside and overwriting destroying image data of low importance to protect image data of high importance.
【請求項4】 第1ないし第nの画像系列(nは2以上
の整数)の画像データを同時に符号化する画像符号化方
法であって、 画面間予測符号化を行う際に、予測画像データを、請求
項1記載のメモリ管理方法により管理されるメモリに記
録する、 ことを特徴とする画像符号化方法。
4. An image encoding method for simultaneously encoding image data of first to n-th image sequences (n is an integer of 2 or more), wherein when performing inter-screen predictive encoding, predictive image data Is recorded in a memory managed by the memory management method according to claim 1.
【請求項5】 第1ないし第nの画像系列(nは2以上
の整数)の画像データを同時に復号化する画像復号化方
法であって、 画面間予測復号化を行う際に、予測画像データを、請求
項1記載のメモリ管理方法により管理されるメモリに記
録する、 ことを特徴とする画像復号化方法。
5. An image decoding method for simultaneously decoding image data of first to n-th image sequences (n is an integer of 2 or more), wherein when performing inter-screen predictive decoding, predictive image data Is recorded in a memory managed by the memory management method according to claim 1.
【請求項6】 第1ないし第nの画像系列(nは2以上
の整数)の画像データを同時に復号化する画像復号化方
法であって、 画面間予測復号化を行う際に、予測画像データを、請求
項2記載のメモリ管理方法により管理されるメモリに記
録し、 当該画像系列の復号化で必要な,メモリ内の画像データ
が破壊された場合は、上記メモリ内の画像データを参照
しないで復号化可能となるまで復号化処理を中断する、 ことを特徴とする画像復号化方法。
6. An image decoding method for simultaneously decoding image data of first to n-th image sequences (n is an integer of 2 or more), wherein when performing inter-screen predictive decoding, predictive image data Is recorded in a memory managed by the memory management method according to claim 2. If image data in the memory required for decoding the image sequence is destroyed, the image data in the memory is not referred to. An image decoding method, wherein the decoding process is interrupted until decoding can be performed in step (1).
【請求項7】 第1ないし第nの画像系列(nは2以上
の整数)の画像データを同時に復号化する画像復号化方
法であって、 画面間予測復号化を行う際に、 請求項3記載のメモリ管理方法により管理されるメモリ
に、予測画像データを、重要な画像系列の重要度を高く
して記録し、 重要な画像系列の復号化に必要な画像データを破壊され
にくくした、 ことを特徴とする画像復号化方法。
7. An image decoding method for simultaneously decoding image data of first to n-th image sequences (n is an integer of 2 or more), wherein an inter-screen predictive decoding is performed. Predicted image data is recorded in a memory managed by the described memory management method, with the importance of important image sequences being increased, so that image data necessary for decoding important image sequences is hardly destroyed. An image decoding method characterized by the following.
【請求項8】 第1ないし第nの画像系列(nは2以上
の整数)の画像データを同時に表示する画像表示方法で
あって、 請求項1記載のメモリ管理方法により管理されるメモリ
に、表示すべき画像データを記録する、 ことを特徴とする画像表示方法。
8. An image display method for simultaneously displaying image data of first to n-th image series (n is an integer of 2 or more), wherein the memory managed by the memory management method according to claim 1 includes: An image display method, comprising recording image data to be displayed.
【請求項9】 第1ないし第nの画像系列(nは2以上
の整数)の画像データを同時に表示する画像表示方法で
あって、 当該画像系列の表示に必要な,メモリ内の画像データが
破壊された場合は、当該破壊された画像データに代え
て、当該画像系列の,破壊されていない最新時刻の画像
データを表示する、 ことを特徴とする画像表示方法。
9. An image display method for simultaneously displaying image data of a first to an n-th image series (n is an integer of 2 or more), wherein image data in a memory required for displaying the image series is stored. When destroyed, an image display method characterized by displaying, in place of the destroyed image data, image data of the image sequence at the latest unbroken time.
【請求項10】 第1ないし第nの画像系列(nは2以
上の整数)の画像データをメモリに同時に記録する,メ
モリ管理装置であって、 メモリ内の領域を、ADstart[i]番地からADend[i]番地
(i は1≦i≦n/2を満たす整数)までの番地を第i
のメモリアドレス空間としてそれぞれ割り当てることに
より第1ないし第n/2のメモリアドレス空間に分割す
るメモリ領域分割手段と、 第iの上記メモリアドレス空間のADstart[i] もしくはAD
end[i] のいずれか一方の端から当該第iのメモリアドレ
ス空間内の上位もしくは下位メモリアドレスのいずれか
に向けての領域を、第kの画像系列(k=i×2−1)
の画像系列の画像データを記録するためのエリアとして
使用するとともに、 上記ADstart[i] もしくはADend[i] の他方の端から当該
第iのメモリアドレス空間内の下位もしくは上位メモリ
アドレスのいずれかに向けての領域を、第(k+1)の
画像系列の画像データを記録するためのエリアとして使
用するためのアドレスを生成するアドレス生成手段と、 を備えたことを特徴とするメモリ管理装置。
10. A memory management device for simultaneously recording image data of a first to n-th image series (n is an integer of 2 or more) in a memory, wherein an area in the memory is shifted from an address ADstart [i]. ADend [i]
(I is an integer satisfying 1 ≦ i ≦ n / 2)
A memory area dividing means for dividing the memory address space into first to n / 2th memory address spaces by allocating the memory address space to each of the memory address spaces;
A region from one end of end [i] to either the upper or lower memory address in the i-th memory address space is defined as a k-th image sequence (k = i × 2-1).
Used as an area for recording the image data of the image series, and from the other end of ADstart [i] or ADend [i] to either the lower or upper memory address in the ith memory address space. A memory management device, comprising: an address generation unit configured to generate an address for using an area directed to the area as an area for recording image data of a (k + 1) -th image sequence.
【請求項11】 第1ないし第nの画像系列(nは2以
上の整数)の画像系列の画像データを同時に記録する,
メモリ管理方法を実行するメモリ管理プログラムを記録
したメモリ管理プログラム記録媒体あって、 メモリ内の領域を、ADstart[i]番地からADend[i]番地
(i は1≦i≦n/2を満たす整数)までの番地を第i
のメモリアドレス空間としてそれぞれ割り当てることに
より第1ないし第n/2のメモリアドレス空間に分割
し、 第iの上記メモリアドレス空間のADstart[i] もしくはAD
end[i] のいずれか一方の端から当該第iのメモリアドレ
ス空間内の上位もしくは下位メモリアドレスのいずれか
に向けての領域を、第kの画像系列(k=i×2−1)
の画像データを記録するためのエリアとして使用すると
ともに、 上記ADstart[i] もしくはADend[i] の他方の端から当該
第iのメモリアドレス空間内の下位もしくは上位メモリ
アドレスのいずれかに向けての領域を、第(k+1)の
画像系列の画像データを記録するためのエリアとして使
用するメモリ管理方法を実行するメモリ管理プログラ
ム、 を記録してなることを特徴とするメモリ管理プログラム
記録媒体。
11. Simultaneously recording image data of image sequences of first to n-th image sequences (n is an integer of 2 or more),
There is a memory management program recording medium in which a memory management program for executing a memory management method is recorded, and an area in the memory is changed from an address ADstart [i] to an address ADend [i].
(I is an integer satisfying 1 ≦ i ≦ n / 2)
Divides into the first to n / 2th memory address spaces by assigning them as the memory address spaces, respectively, and ADstart [i] or AD in the ith memory address space.
A region from one end of end [i] to either the upper or lower memory address in the ith memory address space is defined as a k-th image sequence (k = i × 2-1).
Of the ADstart [i] or ADend [i] from the other end to either the lower or upper memory address in the ith memory address space. A memory management program for executing a memory management method that uses an area as an area for recording image data of a (k + 1) -th image sequence.
【請求項12】 空き状態、またはi個の画像データ
(i=1ないし3の整数)が格納されたメモリ領域に新
規入力された画像データを格納する際、 少なくとも、前記メモリ領域のアドレスの最下位側、ま
たは最上位側に画像データを格納できる場合には、メモ
リ領域のアドレスの最下位側、または最上位側に前記新
規入力された画像データを格納し、 前記メモリ領域のアドレスの最下位側、及び最上位側に
画像データを格納できない場合には、その中間部に前記
新規入力された画像データを格納することによりメモリ
の記憶管理を行うメモリ管理方法であって、 前記中間部に新規入力された画像データを格納する際
は、 前記最上位側,最下位側に格納されている画像データの
いずれかに接する領域に前記新規入力された画像データ
を格納するか、 あるいは前記メモリ領域のアドレス中央位置に接する領
域に前記新規入力された画像データを格納する、 ことを特徴とするメモリ管理方法。
12. When storing newly input image data in an empty state or in a memory area storing i pieces of image data (i = 1 to 3), at least the address of the memory area When image data can be stored in the lower or uppermost side, the newly input image data is stored in the lowermost or uppermost side of the address of the memory area, and the lowermost of the address in the memory area is stored. A memory management method for managing storage of a memory by storing the newly input image data in an intermediate part thereof when image data cannot be stored in the intermediate part. When storing the input image data, the newly input image data is stored in an area that is in contact with one of the image data stored on the uppermost side and the lowermost side. Luke, or wherein the region in contact with the address central location in the memory area for storing a new input image data, a memory management method, characterized in that.
【請求項13】 請求項12に記載のメモリ管理方法に
おいて、 メモリ領域内に格納されている画像データ、及び新規入
力された画像データがすべて矩形形状の画像データであ
る場合には、 前記中間部に画像データを格納する際、前記最上位側,
最下位側に格納されている画像データのいずれかに接す
る領域に前記新規入力された画像データを格納するよう
に、既に格納された画像データのメモリ空間位置の再配
置を行う、 ことを特徴とするメモリ管理方法。
13. The memory management method according to claim 12, wherein the image data stored in the memory area and the newly input image data are all rectangular image data. When storing image data in the
Rearranging the memory space position of the already stored image data so as to store the newly input image data in an area that is in contact with any of the image data stored at the lowermost side, How to manage memory.
【請求項14】 請求項13に記載のメモリ管理方法に
おいて、 前記既に格納された画像データのメモリ空間位置の再配
置は、新規入力された画像データ用のメモリが不足する
場合にのみ行う、 ことを特徴とするメモリ管理方法。
14. The memory management method according to claim 13, wherein the rearrangement of the memory space position of the already stored image data is performed only when the memory for the newly input image data is insufficient. A memory management method comprising:
【請求項15】 請求項12に記載のメモリ管理方法に
おいて、 メモリ領域内に格納されている画像データ、及び新規入
力された画像データの内、少なくとも一つが任意形状の
画像データである場合には、 前記中間部に画像データを格納する際、前記メモリ領域
のアドレス中央位置に接する領域に前記新規入力された
画像データを格納するように、既に格納された画像デー
タのメモリ空間位置の再配置を行う、 ことを特徴とするメモリ管理方法。
15. The memory management method according to claim 12, wherein at least one of the image data stored in the memory area and the newly input image data is image data of an arbitrary shape. When storing the image data in the intermediate portion, the rearrangement of the memory space position of the already stored image data is performed so that the newly input image data is stored in an area adjacent to the address center position of the memory area. Performing a memory management method.
【請求項16】 請求項15に記載のメモリ管理方法に
おいて、 前記既に格納された画像データのメモリ空間位置の再配
置は、新規入力された画像データ用のメモリが不足する
場合にのみ行う、 ことを特徴とするメモリ管理方法。
16. The memory management method according to claim 15, wherein the rearrangement of the memory space position of the already stored image data is performed only when the memory for the newly input image data is insufficient. A memory management method comprising:
【請求項17】 請求項12に記載のメモリ管理方法に
おいて、 前記中間部に画像データを格納する際、前記最上位側,
最下位側に格納されている画像データのいずれかに接す
る領域に新規入力された画像データを格納するメモリ管
理時に、 任意形状の画像データが新規に入力された場合には、前
記中央部に画像データを格納する際、前記メモリ領域の
アドレス中央位置に接する領域に新規入力された画像デ
ータを格納するよう、既に格納された画像データのメモ
リ空間位置の再配置を行う、 ことを特徴とするメモリ管理方法。
17. The memory management method according to claim 12, wherein when the image data is stored in the intermediate part,
At the time of memory management for storing newly input image data in an area in contact with any of the image data stored at the lowermost side, if image data of an arbitrary shape is newly input, an image is displayed in the central portion. When storing data, a memory space position of already stored image data is rearranged so that newly input image data is stored in an area adjacent to an address center position of the memory area. Management method.
【請求項18】 請求項17に記載のメモリ管理方法に
おいて、 任意形状の画像データの入力に伴うメモリ空間位置の再
配置後は、新規入力された画像データ用のメモリが不足
する場合にのみ、前記中央部に画像データを格納する
際、前記メモリ領域のアドレス中央位置に接する領域に
新規入力された画像データを格納するよう、既に格納さ
れた画像データのメモリ空間位置の再配置を行う、 ことを特徴とするメモリ管理方法。
18. The memory management method according to claim 17, wherein after rearranging a memory space position accompanying input of image data of an arbitrary shape, only when a memory for newly input image data is insufficient, When storing the image data in the central portion, the memory space position of the already stored image data is rearranged so as to store the newly input image data in an area adjacent to the address central position of the memory area. A memory management method comprising:
JP2000344223A 1999-11-11 2000-11-10 Memory managing method, picture encoding method, picture decoding method, picture display method, memory managing device and memory managing program recording medium Pending JP2001223987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000344223A JP2001223987A (en) 1999-11-11 2000-11-10 Memory managing method, picture encoding method, picture decoding method, picture display method, memory managing device and memory managing program recording medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP32165999 1999-11-11
JP11-321659 1999-11-11
JP2000344223A JP2001223987A (en) 1999-11-11 2000-11-10 Memory managing method, picture encoding method, picture decoding method, picture display method, memory managing device and memory managing program recording medium

Publications (1)

Publication Number Publication Date
JP2001223987A true JP2001223987A (en) 2001-08-17

Family

ID=26570552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000344223A Pending JP2001223987A (en) 1999-11-11 2000-11-10 Memory managing method, picture encoding method, picture decoding method, picture display method, memory managing device and memory managing program recording medium

Country Status (1)

Country Link
JP (1) JP2001223987A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006509442A (en) * 2002-12-09 2006-03-16 エルジー エレクトロニクス インコーポレーテッド Additional data presentation method for interactive recording media
US7715694B2 (en) 2000-06-24 2010-05-11 Lg Electronics Inc. Apparatus and method of reproducing audio/video data and additional data associated with the audio/video data
WO2014006959A1 (en) * 2012-07-02 2014-01-09 株式会社エヌ・ティ・ティ・ドコモ Video prediction encoding device, video prediction encoding method, video prediction encoding program, video prediction decoding device, video prediction decoding method, and video prediction decoding program
JP2014014144A (en) * 2002-07-11 2014-01-23 Panasonic Corp Image coding and decoding method and image coding and decoding device

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8676028B2 (en) 2000-06-24 2014-03-18 Lg Electronics Inc. Method for reproducing data recorded on an interactive recording medium in conjunction with associated auxiliary data
US7715694B2 (en) 2000-06-24 2010-05-11 Lg Electronics Inc. Apparatus and method of reproducing audio/video data and additional data associated with the audio/video data
US7778523B2 (en) 2000-06-24 2010-08-17 Lg Electronics Inc. Method for reproducing data recorded on an interactive recording medium in conjunction with associated auxiliary data
US8699854B2 (en) 2000-06-24 2014-04-15 Lg Electronics Inc. Method for reproducing data recorded on an interactive recording medium in conjunction with associated auxiliary data
US9390512B2 (en) 2002-07-11 2016-07-12 Panasonic Intellectual Property Corporation Of America Picture encoding method and picture decoding method
US9088783B2 (en) 2002-07-11 2015-07-21 Panasonic Intellectual Property Corporation Of America Picture encoding method and picture decoding method
JP2014014144A (en) * 2002-07-11 2014-01-23 Panasonic Corp Image coding and decoding method and image coding and decoding device
JP2014014143A (en) * 2002-07-11 2014-01-23 Panasonic Corp Image coding and decoding method and image coding and decoding device
JP2014014142A (en) * 2002-07-11 2014-01-23 Panasonic Corp Image coding and decoding method and image coding and decoding device
US9412177B2 (en) 2002-07-11 2016-08-09 Panasonic Intellectual Property Corporation Of America Picture encoding method and picture decoding method
US9094666B2 (en) 2002-07-11 2015-07-28 Panasonic Intellectual Property Corporation Of America Picture encoding method and picture decoding method
US9088782B2 (en) 2002-07-11 2015-07-21 Panasonic Intellectual Property Corporation Of America Picture encoding method and picture decoding method
US9088781B2 (en) 2002-07-11 2015-07-21 Panasonic Intellectual Proeprty Corporation Of America Picture encoding method and picture decoding method
US7995900B2 (en) 2002-12-09 2011-08-09 Lg Electronics Inc. Method of presenting auxiliary data for an interactive recording medium
JP2006509442A (en) * 2002-12-09 2006-03-16 エルジー エレクトロニクス インコーポレーテッド Additional data presentation method for interactive recording media
US8295679B2 (en) 2002-12-09 2012-10-23 Lg Electronics Inc. Method of presenting auxiliary data for an interactive recording medium
WO2014006959A1 (en) * 2012-07-02 2014-01-09 株式会社エヌ・ティ・ティ・ドコモ Video prediction encoding device, video prediction encoding method, video prediction encoding program, video prediction decoding device, video prediction decoding method, and video prediction decoding program
US9942562B2 (en) 2012-07-02 2018-04-10 Ntt Docomo, Inc. Video predictive encoding device, video predictive encoding method, video predictive encoding program, video predictive decoding device, video predictive decoding method, and video predictive decoding program
US10116956B2 (en) 2012-07-02 2018-10-30 Ntt Docomo, Inc. Video predictive encoding device, video predictive encoding method, video predictive encoding program, video predictive decoding device, video predictive decoding method, and video predictive decoding program
US10560711B2 (en) 2012-07-02 2020-02-11 Ntt Docomo, Inc. VIDEO PREDICTIVE ENCODING DEVICE, VIDEO PREDICTIVE ENCODING Method, video predictive encoding program, video predictive decoding device, video predictive decoding method, and video predictive decoding program

Similar Documents

Publication Publication Date Title
JP4769717B2 (en) Image decoding method
KR101240089B1 (en) Picture coding apparatus and picture decoding apparatus
US6836273B1 (en) Memory management method, image coding method, image decoding method, image display method, memory management apparatus, and memory management program storage medium
US20020027955A1 (en) Image predictive decoding method, image predictive decoding apparatus, image predictive coding method, image predictive coding apparatus, and data storage media
US6215822B1 (en) Motion compensated digital video decoding and buffer memory addressing therefor
US6028612A (en) Picture memory mapping to minimize memory bandwidth in compression and decompression of data sequences
GB2336267A (en) Image processor controlling B-picture memory
KR0185932B1 (en) Video data decoding method and apparatus
JPH11252559A (en) Transmissivity coder, transmissivity decoder, its method, structure of image data and data recording medium
JP2007184791A (en) Reproducing device for moving picture encoded data
JP2001223987A (en) Memory managing method, picture encoding method, picture decoding method, picture display method, memory managing device and memory managing program recording medium
US6529249B2 (en) Video processor using shared memory space
WO1999016252A1 (en) Motion compensated digital video decoding with buffered picture storage memory map
JP2003244641A (en) Image reproducing apparatus, and image reproducing method
JP4906197B2 (en) Decoding device and method, and recording medium
WO1998042139A1 (en) Video decoder with reduced size display buffer
JPH06339111A (en) Compressed moving picture reproduction device
JP3527454B2 (en) Image decoding method, image decoding device, and recording medium storing image decoding program
JP2005300943A (en) Information display position control method and device
JPH08205147A (en) Method and device for decoding image
JP2003274411A (en) Image encoding method and image decoding method
JPH08130715A (en) Picture reproducing device
JPH0636521A (en) Disk and moving image decoding method and device
JP2007060678A (en) Video information recording method, and video information recording medium
KR100256648B1 (en) Format for compression information in image coding system