JP3405079B2 - Memory allocation method - Google Patents

Memory allocation method

Info

Publication number
JP3405079B2
JP3405079B2 JP20565796A JP20565796A JP3405079B2 JP 3405079 B2 JP3405079 B2 JP 3405079B2 JP 20565796 A JP20565796 A JP 20565796A JP 20565796 A JP20565796 A JP 20565796A JP 3405079 B2 JP3405079 B2 JP 3405079B2
Authority
JP
Japan
Prior art keywords
memory
block
address
allocation method
access
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.)
Expired - Fee Related
Application number
JP20565796A
Other languages
Japanese (ja)
Other versions
JPH1049435A (en
Inventor
貴司 増野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP20565796A priority Critical patent/JP3405079B2/en
Publication of JPH1049435A publication Critical patent/JPH1049435A/en
Application granted granted Critical
Publication of JP3405079B2 publication Critical patent/JP3405079B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】本発明は、映像の高能率符号
化の復号装置等に用いられるメモリ割り付け方法に関す
るものである。 【0002】 【従来の技術】近年、ビデオディスク等のディジタル信
号処理の分野やディジタル放送の分野において、映像信
号を高能率で符号化することにより映像ソフト及び装置
を小規模化することが図られており、MPEG(Moving
Picture Experts Group)/ISO11172規格が設
けられた。 【0003】以下に、従来例としてMPEG規格の復号
システムに用いられるメモリ割り付け方法について、メ
モリ手段としてDRAM(dynamic random access memo
ry)を想定し説明する。以下で説明に用いる用語は、M
PEG(Moving Picture Experts Group)/ISO11
172規格書を参照されたし。 【0004】図6は、従来のメモリ割り付け方法でのブ
ロック情報がDRAMにどの様に格納されるかのメモリ
マップの模式図を示すものである。図7は、従来のメモ
リ割り付け方法によるブロック情報が参照される場合の
模式図を示すものである。図8は従来のメモリ割り付け
方法によるブロック情報が参照される場合のDRAMア
クセスのタイミングチャートを示すものである。 【0005】図6〜8を参照しながら、従来のメモリ割
り付け方法について、以下その動作を説明する。 【0006】まず、説明を単純化する為にマクロブロッ
ク内の輝度ブロックが復号されDRAMに格納される場
合を想定する。図6に示す様に、水平8画素の垂直8ラ
インのブロックの画像情報は、順次DRAM(メモリ)
の列アドレスの増加方向に格納される。続く輝度ブロッ
クも同様に順次格納される。この様にブロック情報の格
納は復号され入力される順にアドレスをリニアに増加さ
せるメモリ割り付けとなってる。 【0007】一方、フレーム間予測符号化の復号時には
既に格納してある画像情報を参照する必要があり、動き
ベクトルが用いられる。参照される画像情報は格納時の
ブロック境界とは異なる位置からブロックの大きさ切り
出される場合がある。図7は動きベクトルが水平方向に
1画素ある場合の参照順位を模式してあり、ブロックの
1水平毎に所定のブロックから7画素、直後(左隣)の
ブロックから1画素分の参照を8ライン分繰り返してい
る。図7に示した1〜16の数字は、メモリから参照す
る順番を示しており、メモリ空間上で飛び飛びにアクセ
スする必要があることを示す。 【0008】図8はこの時のブロックの1水平分(8画
素分)のDRAMアクセスの様子で、ブロックの1水平
毎のアクセスが2つに分割されて行われている事を示
す。なお、図8におけるRASはrow address strobe、
CASはcolumn address strobeである。 【0009】 【発明が解決しようとする課題】しかしながら上記の従
来のメモリ割り付け方法では、画像情報の参照時、格納
時のブロック境界とは異なる位置からの参照では、メモ
リアクセスが分割されてしまいDRAMのアクセス効率
が低下してしまうという問題点を有していた。また、メ
モリアドレスの生成も複雑である。 【0010】本発明は上記従来の問題点を解決するもの
で、アドレス生成の単純化、アクセスの高効率化が可能
なメモリ割り付け方法を提供することを目的とする。 【0011】 【課題を解決するための手段】この目的を達成するため
に本発明のメモリ割り付け方法は、符号化の過程で画像
情報を矩形状にブロック分割する画像符号化方法の復号
システムに於て、行アドレスと列アドレスでアドレッシ
ングされるメモリ手段に復号した画像情報を格納する際
に、復号して得られたブロックの2次元イメージを水平
方向は列アドレスを、垂直方向は行アドレスを用いてア
ドレッシングを行い、フレーム間予測符号の復号での被
参照フレームデータの格納には、1水平画素が格納でき
る列アドレスとライン数分の行アドレスの矩形領域を用
い、メモリ手段の1水平画素分に満たない残りの列アド
レスの領域に、被参照フレーム以外のフレームデータを
格納するものである。 【0012】 【0013】 【0014】 【発明の実施の形態】本発明は、符号化の過程で画像情
報を矩形状にブロック分割する画像符号化方法の復号シ
ステムに於て、行アドレスと列アドレスでアドレッシン
グされるメモリ手段に復号した画像情報を格納する際
に、復号して得られたブロックの2次元イメージを水平
方向は列アドレスを、垂直方向は行アドレスを用いてア
ドレッシングし格納するものである。 【0015】 【0016】 【0017】本発明は、上記したことにより、水平方向
のブロック境界は連続した列アドレスで連結され、ブロ
ック境界とは異なる位置からの参照でもメモリアクセス
が分割されない。 【0018】また、各ライン毎のアドレスは行アドレス
を1増加させるだけでよく単純で高速である。 【0019】以下本発明の実施の形態について、図面を
参照しながら説明する。 (実施の形態1)図4は本発明の実施の形態1における
メモリ割り付け方法でのメモリマップの模式図を示すも
のである。 【0020】図1はブロック情報がDRAMにどの様に
格納されるかのメモリマップの模式図を示すものであ
る。図2はブロック情報が参照される場合の模式図を示
すものである。図3はブロック情報が参照される場合の
DRAMアクセスのタイミングチャートを示すものであ
る。 【0021】本実施の形態のメモリ割り付け方法につい
て、MPEG規格の復号システムに用いられるメモリ割
り付け方法として説明する。以下で用いる用語は従来例
の説明同様、MPEG(Moving Picture Experts Grou
p)/ISO11172規格書を参照されたし。 【0022】まず、説明を単純化する為にマクロブロッ
ク内の輝度ブロックが復号されDRAMに格納される場
合を想定する。図1に示す様に、水平8画素の垂直8ラ
インの画像情報は各ライン毎に行アドレスを増加させな
がら順次DRAMの列アドレスの増加方向に格納され
る。引続き復号入力されるマクロブロック内の4つの輝
度ブロックも図4に示すメモリマップの位置関係を保ち
つつ順次格納される。 【0023】つまり、図4に示すように、マクロブロッ
ク状態を保ちつつ、順次メモりに格納される。 【0024】一方、フレーム間予測符号化の復号時には
既に格納してある画像情報を参照する必要があり、動き
ベクトルが用いられる。参照される画像情報は格納時の
ブロック境界とは異なる位置からブロックの大きさ切り
出される場合がある。図2は動きベクトルが水平方向に
1画素ある場合の参照順位を模式してあり、ブロックの
1水平毎に所定のブロックから7画素、直後(左隣)の
ブロックから1画素分の参照を8ライン分繰り返してい
る。つまり、図2に示すように、格納時のブロック境界
とは異なる位置から参照する場合でも、1水平分は連続
して読み出すこととなる。 【0025】図3はこの時のブロックの1水平分(8画
素分)のDRAMアクセスの様子で、ブロックの1水平
毎のアクセスが1回のRASアクセス内のページモード
で行われている事を示す。よって、図8に示した従来の
DRAMへのアクセスに対して、アクセスの効率が大幅
に改善されていることが分かる。 【0026】以上のように本実施の形態によれば、上記
したメモリマップの特徴により、水平方向のブロック境
界は連続した列アドレスで連結され、ブロック境界とは
異なる位置からの参照でもメモリアクセスが殆どの場合
分割されず、メモリのアクセス効率が高い。 【0027】(実施の形態2)図5は本発明の実施の形
態2を示すメモリ割り付け方法のメモリマップの模式図
である。実施の形態1と異なる点は、垂直方向のブロッ
ク境界とは異なる位置からの参照に対しても、各ライン
毎のアドレスは行アドレスを1増加させるだけでアドレ
ッシングできるようにしたことである。これにより、垂
直方向の動きベクトルにより、他のマクロブロックから
の参照も、単純で高速にアドレッシングできる。 【0028】本実施の形態の特徴は被参照フレーム(I
又はPピクチャ)用にアクセス効率の良い水平画素分の
列アドレスとライン数分の行アドレスの矩形領域を用
い、参照される事のないフレーム(Bピクチャ)用には
分散した残りのメモリ領域を割り付けている点にある。 【0029】この特徴により、メモリアクセス効率を優
先しつつ、メモリ容量を無駄にしない。 【0030】なお、実施の形態1、2においてマクロブ
ロック内に色差ブロックの説明は省略したが、輝度ブロ
ック同様のメモリ割り付け方法が適用可能なことは言う
までもない。 【0031】 【発明の効果】以上のように本発明は、復号して得られ
たブロックの2次元イメージを水平方向は列アドレス
を、垂直方向は行アドレスを用いてアドレッシングし格
納するものである。また、各行の列アドレスの終端と、
ブロックの垂直幅分、行の離れた列アドレスの先頭とが
連結する様アドレッシングする。また、フレーム間予測
符号の復号をする際の被参照フレームの格納には、水平
画素分の列アドレスとライン数分の行アドレスの矩形領
域を用い、メモリ手段内に割り付けた前記矩形領域外の
領域を被参照フレーム以外のフレームの格納用に用い
る。以上の事を特徴とする事で、メモリのアクセス効率
を高くすることができる。 【0032】また、水平方向の画素情報は列アドレスが
連続しているので、復号システムでの表示の為の水平方
向の連続メモリアクセスの効率が非常に高い。
Description: BACKGROUND OF THE INVENTION [0001] 1. Field of the Invention [0002] The present invention relates to a memory allocating method used in a decoding device for highly efficient video coding. 2. Description of the Related Art In recent years, in the field of digital signal processing such as video discs and the field of digital broadcasting, video software and apparatuses have been reduced in scale by encoding video signals with high efficiency. MPEG (Moving
Picture Experts Group) / ISO 11172 standard. A memory allocation method used in a decoding system of the MPEG standard as a conventional example will be described below. A DRAM (dynamic random access memo) is used as a memory means.
ry). The term used below is M
PEG (Moving Picture Experts Group) / ISO11
See the 172 standard. FIG. 6 is a schematic diagram of a memory map showing how block information is stored in a DRAM by a conventional memory allocation method. FIG. 7 is a schematic diagram when block information is referred to by a conventional memory allocation method. FIG. 8 is a timing chart of DRAM access when block information is referred to by a conventional memory allocation method. The operation of the conventional memory allocation method will be described below with reference to FIGS. First, for the sake of simplicity, it is assumed that a luminance block in a macroblock is decoded and stored in a DRAM. As shown in FIG. 6, the image information of a block of eight vertical lines of eight pixels is sequentially stored in a DRAM (memory).
Are stored in the increasing direction of the column address. Subsequent luminance blocks are similarly stored sequentially. The storage of the block information as is that it the memory allocation to increase the address in the order in which they are decoded input linearly. On the other hand, at the time of decoding of inter-frame predictive coding, it is necessary to refer to image information already stored, and a motion vector is used. The size of the block of the image information to be referred to may be cut out from a position different from the block boundary at the time of storage. FIG. 7 schematically shows the reference order when the motion vector has one pixel in the horizontal direction. For each horizontal one of the blocks, reference is made to seven pixels from a predetermined block and eight to one pixel from the block immediately after (the left adjacent block). Repeat for the line. Numerals 1 to 16 shown in FIG. 7 indicate the order of reference from the memory, and indicate that it is necessary to make discrete access in the memory space. FIG. 8 shows a state of the DRAM access for one horizontal (eight pixels) of the block at this time, and shows that the access for each horizontal of the block is divided into two. The RAS in FIG. 8 is a row address strobe,
CAS is a column address strobe. However, in the above-described conventional memory allocation method, when image information is referred to, and when the image information is referenced from a position different from the block boundary at the time of storage, the memory access is divided and the DRAM is divided. However, there is a problem in that the access efficiency is reduced. Also, the generation of memory addresses is complicated. An object of the present invention is to solve the above-mentioned conventional problems, and an object of the present invention is to provide a memory allocating method capable of simplifying address generation and improving access efficiency. [0011] In order to achieve this object, a memory allocation method according to the present invention uses an image allocating method in an encoding process.
Decoding of image coding method that divides information into rectangular blocks
The system uses address and row addresses to address
When storing decoded image information in the memory means
And the 2D image of the block obtained by decoding
The direction is based on the column address, and the vertical direction is based on the row address.
Perform dressing and decode the inter-frame prediction code.
For storing the reference frame data, one horizontal pixel can be stored.
Use a rectangular area with column addresses and row addresses for the number of lines.
The remaining column addresses less than one horizontal pixel in the memory means
Frame data other than the referenced frame in the
What to store. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention provides a decoding system of an image encoding method for dividing image information into rectangular blocks in an encoding process. When storing the decoded image information in the memory means addressed by the above, the two-dimensional image of the decoded block is addressed and stored using the column address in the horizontal direction and the row address in the vertical direction. is there. According to the present invention, as described above, horizontal block boundaries are connected by a continuous column address, and memory access is not divided even by reference from a position different from the block boundary. Further, the address for each line is simple and high speed only by increasing the row address by one. Hereinafter, embodiments of the present invention will be described with reference to the drawings. (Embodiment 1) FIG. 4 is a schematic diagram of a memory map in a memory allocation method according to Embodiment 1 of the present invention. FIG. 1 is a schematic diagram of a memory map showing how block information is stored in a DRAM. FIG. 2 is a schematic diagram when block information is referred to. FIG. 3 shows a timing chart of the DRAM access when the block information is referred to. The memory allocating method according to the present embodiment will be described as a memory allocating method used in a decoding system conforming to the MPEG standard. The terms used below are similar to those of the conventional example, and are similar to those of the MPEG (Moving Picture Experts Group).
p) / See ISO 11172 standard. First, to simplify the description, it is assumed that a luminance block in a macroblock is decoded and stored in a DRAM. As shown in FIG. 1, the image information of eight vertical lines of eight horizontal pixels is sequentially stored in the increasing direction of the column address of the DRAM while increasing the row address for each line. The four luminance blocks in the macroblock which are subsequently decoded and input are also stored sequentially while maintaining the positional relationship of the memory map shown in FIG. That is, as shown in FIG. 4, the data is sequentially stored in the memory while maintaining the macroblock state. On the other hand, at the time of decoding of the inter-frame predictive coding, it is necessary to refer to the image information already stored, and a motion vector is used. The size of the block of the image information to be referred to may be cut out from a position different from the block boundary at the time of storage. FIG. 2 schematically shows the reference order when the motion vector has one pixel in the horizontal direction. For each horizontal one of the blocks, reference is made to seven pixels from a predetermined block and eight to one pixel from the block immediately after (the left adjacent block). Repeat for the line. That is, as shown in FIG. 2, even when referring from a position different from the block boundary at the time of storage, one horizontal portion is continuously read. FIG. 3 shows a state of the DRAM access for one horizontal (eight pixels) of the block at this time, and shows that the access for each horizontal of the block is performed in the page mode in one RAS access. Show. Therefore, it can be seen that the access efficiency is greatly improved with respect to the access to the conventional DRAM shown in FIG. As described above, according to the present embodiment, due to the characteristics of the memory map described above, the horizontal block boundaries are connected by continuous column addresses, and memory access can be performed even when reference is made from a position different from the block boundaries. In most cases, it is not divided , and the memory access efficiency is high. (Embodiment 2) FIG. 5 is a schematic diagram of a memory map of a memory allocation method according to Embodiment 2 of the present invention. The difference from the first embodiment is that the address of each line can be addressed only by incrementing the row address by one, even for reference from a position different from the vertical block boundary. Thus, the reference from another macroblock can be simply and quickly addressed by the vertical motion vector. The feature of this embodiment is that the reference frame (I
Or P picture), a rectangular area having column addresses for horizontal pixels and row addresses for the number of lines with high access efficiency is used, and the remaining memory area for a frame (B picture) that is not referred to is used. The point is that it is assigned. With this feature, the memory capacity is not wasted while giving priority to the memory access efficiency. Although the description of the chrominance blocks in the macro blocks has been omitted in the first and second embodiments, it goes without saying that a memory allocation method similar to the luminance block can be applied. As described above, according to the present invention, a two-dimensional image of a block obtained by decoding is addressed and stored using a column address in the horizontal direction and a row address in the vertical direction. . Also, the end of the column address of each row,
Addressing is performed so that the head of the column address separated from the row by the vertical width of the block is connected. Further, the storage of the referenced frame when decoding the inter-frame prediction code uses a rectangular area of a column address for horizontal pixels and a row address for the number of lines, and stores the rectangular area outside the rectangular area allocated in the memory means. The area is used for storing frames other than the referenced frame. With the above features, the memory access efficiency can be increased. Further, since the pixel information in the horizontal direction has a continuous column address, the efficiency of continuous horizontal memory access for display in the decoding system is very high.

【図面の簡単な説明】 【図1】本発明の実施の形態1、2においてブロック情
報がDRAMにどの様に格納されるかのメモリマップの
模式図 【図2】同実施の形態1、2においてブロック情報が参
照される場合の模式図 【図3】同実施の形態1、2のブロック情報が参照され
る場合のDRAMアクセスのタイミングチャートを示す
図 【図4】本発明の実施の形態1におけるメモリ割り付け
方法でのメモリマップの模式図 【図5】本発明の実施の形態2におけるメモリ割り付け
方法でのメモリマップの模式図 【図6】従来例のブロック情報がDRAMにどの様に格
納されるかのメモリマップの模式図 【図7】従来例のブロック情報が参照される場合の模式
図 【図8】従来例のブロック情報が参照される場合のDR
AMアクセスのタイミングチャートを示す図
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a memory map showing how block information is stored in a DRAM according to the first and second embodiments of the present invention. FIG. 3 is a schematic diagram when block information is referred to in FIG. 3 FIG. 3 is a diagram showing a timing chart of DRAM access when block information is referred to in the first and second embodiments FIG. 4 is a first embodiment of the present invention FIG. 5 is a schematic diagram of a memory map according to a memory allocation method according to the present invention. FIG. 5 is a schematic diagram of a memory map according to a memory allocation method according to a second embodiment of the present invention. FIG. 7 is a schematic diagram of a rumor memory map. FIG. 7 is a schematic diagram of a case where block information of a conventional example is referred to.
The figure which shows the timing chart of AM access

Claims (1)

(57)【特許請求の範囲】 【請求項1】 符号化の過程で画像情報を矩形状にブロ
ック分割する画像符号化方法の復号システムに於て、行
アドレスと列アドレスでアドレッシングされるメモリ手
段に復号した画像情報を格納する際に、復号して得られ
たブロックの2次元イメージを水平方向は列アドレス
を、垂直方向は行アドレスを用いてアドレッシングを行
い、 フレーム間予測符号の復号での被参照フレームデータの
格納には、 1水平画素が格納できる列アドレスとライン数分の行ア
ドレスの矩形領域を用い、 前記メモリ手段の1水平画素分に満たない残りの列アド
レスの領域に、被参照フレーム以外のフレームデータを
格納するメモリ割り付け方法。
(57) [Claims] [Claim 1] In the encoding process, image information is blocked in a rectangular shape.
In the decoding system of the image coding method for dividing the
Memory address addressed by address and column address
When storing the decoded image information in the stage,
Column address of 2D image of block
Addressing using the row address in the vertical direction.
Of the referenced frame data in the decoding of the inter-frame prediction code.
For storage, the column address that can store one horizontal pixel and the row
The remaining column addresses less than one horizontal pixel of the memory means using a rectangular area of the dress.
Frame data other than the referenced frame in the
Memory allocation method to store.
JP20565796A 1996-08-05 1996-08-05 Memory allocation method Expired - Fee Related JP3405079B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20565796A JP3405079B2 (en) 1996-08-05 1996-08-05 Memory allocation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20565796A JP3405079B2 (en) 1996-08-05 1996-08-05 Memory allocation method

Publications (2)

Publication Number Publication Date
JPH1049435A JPH1049435A (en) 1998-02-20
JP3405079B2 true JP3405079B2 (en) 2003-05-12

Family

ID=16510534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20565796A Expired - Fee Related JP3405079B2 (en) 1996-08-05 1996-08-05 Memory allocation method

Country Status (1)

Country Link
JP (1) JP3405079B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5053774B2 (en) * 2007-09-14 2012-10-17 キヤノン株式会社 Video encoding device

Also Published As

Publication number Publication date
JPH1049435A (en) 1998-02-20

Similar Documents

Publication Publication Date Title
US7016418B2 (en) Tiled memory configuration for mapping video data and method thereof
US7898547B2 (en) Memory controller for handling multiple clients and method thereof
US5920352A (en) Image memory storage system and method for a block oriented image processing system
US6212231B1 (en) Assign of pels of a macroblock for compression encoding to a memory sequence in one of banks of DRAM
KR100606812B1 (en) Video decoding system
US20040190632A1 (en) Memory word array organization and prediction combination for memory access
JPH09261688A (en) Picture decoder
JP5623494B2 (en) System for interleaved storage of video data
JP4755624B2 (en) Motion compensation device
US6205181B1 (en) Interleaved strip data storage system for video processing
JP3141772B2 (en) MPEG decoder and decoding method thereof
CN1645928A (en) Image storing method for compressing video frequency signal decode
JPH10178644A (en) Moving image decoding device
JP3120010B2 (en) Image decoding method and image decoding device
KR19980081641A (en) Moving picture decoding method and moving picture decoding device
JP3405079B2 (en) Memory allocation method
US6456746B2 (en) Method of memory utilization in a predictive video decoder
JPH0865686A (en) Image decoding device
JP3119994B2 (en) Image data processing method, storage device used therefor, and image data processing device
JP5053774B2 (en) Video encoding device
JPH06189292A (en) Moving image decoding device
CN114697675A (en) Decoding display system and memory access method thereof
JP2000330864A (en) Control of synchronous dram
US20040213467A1 (en) Image processing apparatus
JP3457540B2 (en) Image decoding apparatus and method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees