JPH10210481A - Memory controller - Google Patents

Memory controller

Info

Publication number
JPH10210481A
JPH10210481A JP987797A JP987797A JPH10210481A JP H10210481 A JPH10210481 A JP H10210481A JP 987797 A JP987797 A JP 987797A JP 987797 A JP987797 A JP 987797A JP H10210481 A JPH10210481 A JP H10210481A
Authority
JP
Japan
Prior art keywords
memory
data
motion vector
block
image data
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
JP987797A
Other languages
Japanese (ja)
Inventor
Yoichi Fujiwara
陽一 藤原
Tadao Matsuura
忠男 松浦
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP987797A priority Critical patent/JPH10210481A/en
Publication of JPH10210481A publication Critical patent/JPH10210481A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To convert interlaced scanning into a block form and to read out the reference image data with small memory capacity by shifting the position of an image data storage area by an extent that is decided by a prescribed calculation and for every input image. SOLUTION: The output 'addr' of an address generator 102 is added to the offset value by an adder 104. At the same time, the output of the adder 104 that exceeds a range of the full memory capacity is rounded by a remainder computing element 103, to be included in a range of H× 2V+(N+3B)/4}. Then the offset value showing the head position of an area, where the image data equivalent to a single screen, is changed respectively by -H×(N+3B)/4 every time the offset value returns to the head of an address space, and the position of a memory bank is shifted by -H×(N+3B)/4. Thus, it is possible to effectively use a memory whose read-out operation is finished by shifting the position of the memory bank as the time elapses.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は動画像符号化装置の
動きベクトル検出器におけるメモリ制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory control device in a motion vector detector of a moving picture coding device.

【0002】[0002]

【従来の技術】近年、動画像符号化方式として、MPE
G−1(ISO/IEC11172)、MPEG−2
(ISO/IEC13818)などの動き補償予測を用
いたフレーム間符号化方式が蓄積、通信、放送の分野で
用いられつつある。これらの方式においては、動画像シ
ーケンスの各画像を符号化ブロックに分割し、符号化ブ
ロック毎に参照画像から検出した動きベクトルを用いて
予測ブロックを求める、動き補償予測が行なわれてい
る。
2. Description of the Related Art In recent years, MPE has been used as a moving picture coding method.
G-1 (ISO / IEC11172), MPEG-2
(ISO / IEC13818) and other inter-frame coding systems using motion compensation prediction are being used in the fields of storage, communication, and broadcasting. In these systems, motion-compensated prediction is performed in which each image of a moving image sequence is divided into coding blocks, and a prediction block is obtained using a motion vector detected from a reference image for each coding block.

【0003】図14に、フレーム間符号化の概念図を示
す。
FIG. 14 shows a conceptual diagram of interframe coding.

【0004】符号化処理においては、まず最初にIピク
チャ1401が符号化される。Iピクチャは全ての符号
化ブロックをフレーム内符号化するフレームであり、そ
れ自身の符号化データのみで復号することができる。
In the encoding process, first, an I picture 1401 is encoded. An I picture is a frame in which all encoded blocks are intra-frame encoded, and can be decoded using only its own encoded data.

【0005】Iピクチャ1401に続くPピクチャ14
02においては、Iピクチャ1401からの動き補償予
測が行なわれ、予測誤差のみが符号化される。よって、
Pピクチャ1402の復号には、自身の符号化データ
と、直前のIピクチャ1401の復号結果が必要とな
る。
[0005] P picture 14 following I picture 1401
In 02, motion compensation prediction from the I picture 1401 is performed, and only the prediction error is encoded. Therefore,
Decoding the P picture 1402 requires its own encoded data and the decoding result of the immediately preceding I picture 1401.

【0006】続くPピクチャ1403においては、直前
のPピクチャ1402からの動き補償予測が行なわれる
ので、Pピクチャ1402の復号には、自身の符号化デ
ータと、直前のPピクチャ1401の復号結果が必要と
なる。以下、同様の処理が続けられる。
[0006] In the subsequent P picture 1403, motion compensation prediction is performed from the immediately preceding P picture 1402, so that decoding of the P picture 1402 requires its own encoded data and the decoding result of the immediately preceding P picture 1401. Becomes Hereinafter, similar processing is continued.

【0007】ここで、符号化ブロックと動きベクトル探
索領域の関係を図15に示す。動きベクトル検出とは、
参照画像上の動きベクトル探索領域内から、符号化ブロ
ックと最も相関の高いブロックを見つけ出し、そのブロ
ックと符号化ブロックとの間の相対位置を動きベクトル
とする処理である。図15においては、ブロックサイズ
をB×Bとし、動きベクトル探索領域の大きさをM×N
としている。
FIG. 15 shows the relationship between the coded block and the motion vector search area. What is motion vector detection?
In this process, a block having the highest correlation with the coding block is found from the motion vector search area on the reference image, and the relative position between the block and the coding block is used as a motion vector. In FIG. 15, the block size is B × B, and the size of the motion vector search area is M × N.
And

【0008】図7に、動き補償予測フレーム間符号化装
置における画像入力部周辺のブロック図を示す。701
はフレームメモリ、702はフレームメモリ701を管
理するメモリ制御器、703は動きベクトル検出器、7
04は動きベクトル検出器703で算出された動きベク
トル情報を用いて符号化ブロックを符号化する動画像符
号化器である。
FIG. 7 is a block diagram showing an image input unit and its surroundings in the motion compensated prediction interframe coding apparatus. 701
Is a frame memory, 702 is a memory controller for managing the frame memory 701, 703 is a motion vector detector, 7
Reference numeral 04 denotes a moving image encoder that encodes an encoded block using the motion vector information calculated by the motion vector detector 703.

【0009】入力端子705から入力された入力画像デ
ータは、メモリ制御器702によって一旦フレームメモ
リ701に書き込まれ、符号化ブロックデータ,参照画
像データとして必要なタイミングで読み出されて、動き
ベクトル検出器703,動画像符号化器704に送られ
る。動きベクトル検出器703は、参照画像データと符
号化ブロックデータから動きベクトル情報を検出し、動
画像符号化器704に伝送する。動画像符号化器704
は、動きベクトル検出器703によって検出された動き
ベクトル情報を用いて符号化ブロックデータを符号化
し、出力端子706から符号化データを出力する。
[0009] Input image data input from an input terminal 705 is temporarily written into a frame memory 701 by a memory controller 702, and is read out at required timings as coded block data and reference image data. 703 and a video encoder 704. The motion vector detector 703 detects motion vector information from the reference image data and the coded block data, and transmits the motion vector information to the video coder 704. Video encoder 704
Encodes encoded block data using the motion vector information detected by the motion vector detector 703, and outputs encoded data from an output terminal 706.

【0010】図8に、図7におけるメモリ制御器702
の構成例を示す。
FIG. 8 shows a memory controller 702 in FIG.
An example of the configuration will be described.

【0011】801は入力画像データを一時的に蓄える
キャッシュメモリ、802はフレームメモリ701から
読み出した符号化ブロックデータを一時的に蓄えるキャ
ッシュメモリ、803はフレームメモリ701から読み
出した参照画像データを一時的に蓄えるキャッシュメモ
リである。
Reference numeral 801 denotes a cache memory for temporarily storing input image data, 802 a cache memory for temporarily storing encoded block data read from the frame memory 701, and 803 a temporary storage of reference image data read from the frame memory 701. Is a cache memory stored in the cache memory.

【0012】804はメモリへの書き込みアドレス発生
器、805は符号化ブロック読み出し用アドレス発生
器、806は参照画像読み出し用アドレス発生器、80
7は前記3つのアドレスを切替えてフレームメモリに出
力するセレクタ、808はデータバス上におけるデータ
の流れを制御する双方向バッファである。
Reference numeral 804 denotes a memory write address generator, reference numeral 805 denotes an encoded block read address generator, reference numeral 806 denotes a reference image read address generator, and reference numeral 80 denotes a reference image read address generator.
Reference numeral 7 denotes a selector for switching the three addresses and outputting the selected address to the frame memory. Reference numeral 808 denotes a bidirectional buffer for controlling the flow of data on the data bus.

【0013】フレームメモリ701へのデータの書き込
みと読み出しは時分割に行なわれる。すなわち、フレー
ムメモリ701への書き込みデータである入力画像デー
タは一旦内部のキャッシュメモリ801に蓄えられ、書
き込み動作時に、一斉にフレームメモリ701に書き込
まれる。同じように、読み出しデータは読み出し動作時
に、まとめてフレームメモリ701から読み出され、一
旦内部のキャッシュメモリ802,803に蓄えられ
る。その後、必要なタイミングで適時キャッシュメモリ
802,803から読み出され、動きベクトル検出器7
03,動画像符号化器704に伝送される。また、読み
出し動作,書き込み動作に同期して、読み出しアドレ
ス,書き込みアドレスがセレクタ807によって選択さ
れ、フレームメモリ701に入力され、同時に双方向バ
ッファ808によってデータの転送方向が制御される。
Writing and reading of data to and from the frame memory 701 are performed in a time sharing manner. That is, input image data, which is data to be written to the frame memory 701, is temporarily stored in the internal cache memory 801 and is simultaneously written to the frame memory 701 during a writing operation. Similarly, read data is collectively read from the frame memory 701 during the read operation, and is temporarily stored in the internal cache memories 802 and 803. Thereafter, the data is read out from the cache memories 802 and 803 at a necessary timing and the motion vector
03, transmitted to the video encoder 704. A read address and a write address are selected by the selector 807 and input to the frame memory 701 in synchronization with the read operation and the write operation, and the data transfer direction is controlled by the bidirectional buffer 808 at the same time.

【0014】次に、従来におけるメモリ制御器の動作に
ついて説明する。
Next, the operation of the conventional memory controller will be described.

【0015】符号化装置に入力される入力画像データ
(デジタルビデオ信号)は、一般的に、図12に示すよ
うな飛び越し走査の順序で入力される。すなわち、図1
2においては、画面の上から奇数ライン(1,2,3
…:奇数フィールド)の画素データが画面の下まで入力
され、続いて再び画面の上から今度は偶数ライン
(1’,2’,3’…:偶数フィールド)の画素データ
が画面の下まで入力される。
The input image data (digital video signal) input to the encoding apparatus is generally input in the order of interlaced scanning as shown in FIG. That is, FIG.
2, the odd-numbered lines (1, 2, 3,
…: Odd field) pixel data is input to the bottom of the screen, and then, again from the top of the screen, pixel data of even lines (1 ′, 2 ′, 3 ′... Is done.

【0016】符号化においては、ブロック単位で処理が
行なわれるため、飛び越し走査で入力されたデータを、
図13に示すようなブロック形式に並べ替える必要があ
る。このため、入力されたデジタルビデオ信号は、飛び
越し走査の順番で一旦フレームメモリ701に書き込ま
れ、フレームメモリ701からブロック形式で読み出す
ことによって、ブロック形式への並べ替えが実行され
る。なお図13は、ブロックサイズB=8の場合の例で
ある。
In encoding, processing is performed in block units, so that data input by interlaced scanning is
It is necessary to rearrange the data into a block format as shown in FIG. For this reason, the input digital video signal is temporarily written to the frame memory 701 in the order of interlaced scanning, and is read out from the frame memory 701 in a block format, whereby the rearrangement into the block format is executed. FIG. 13 shows an example in which the block size B = 8.

【0017】ここで、MPEG−2のフレーム・ピクチ
ャー構造においては、符号化ブロックは飛び越し走査の
構造を有するように生成される。すなわち、符号化ブロ
ック内の奇数ラインは奇数フィールドから構成され、偶
数ラインは偶数フィールドから構成される。よって、符
号化ブロックを構成するためには、奇数フィールド,偶
数フィールド両方のデータ(フレームデータ)がフレー
ムメモリ上に揃っていなければならない。このため、フ
レームメモリ上に一旦1フレーム分のデータを書き込ん
でから、符号化ブロックの読み出しが開始される。
Here, in the frame picture structure of MPEG-2, the coding block is generated so as to have an interlaced scanning structure. That is, the odd lines in the coding block are composed of odd fields, and the even lines are composed of even fields. Therefore, in order to form an encoded block, data (frame data) of both the odd field and the even field must be aligned on the frame memory. For this reason, once data for one frame is once written in the frame memory, reading of the encoded block is started.

【0018】符号化する全てのフレームをIピクチャで
構成する場合には、飛び越し走査からブロック形式への
変換は、フレームメモリ701を2つのメモリバンクに
分割し、書き込み側と読み出し側を交互に切替えること
によって実行することができる。すなわち、一方のメモ
リバンクに飛び越し走査データを書き込み、他方のメモ
リバンクからブロックデータを読み出すという動作を、
1フレーム時間毎に交互に繰り返せばよい。
When all the frames to be encoded are composed of I pictures, the conversion from interlaced scanning to block format divides the frame memory 701 into two memory banks and alternately switches between the writing side and the reading side. Can be performed by That is, the operation of writing interlaced scan data to one memory bank and reading block data from the other memory bank is as follows.
What is necessary is just to alternately repeat every frame time.

【0019】一方、図14に示すようにIピクチャの符
号化とPピクチャの符号化を組み合わせる場合におい
て、動きベクトルを原画像から検出する(動きベクトル
検出における参照画像として原画像を用いる)時には、
符号化画像として読み出されたIピクチャもしくはPピ
クチャは符号化処理終了後、続くPピクチャの参照画像
となるため、再度読み出される。
On the other hand, as shown in FIG. 14, when the coding of an I picture and the coding of a P picture are combined, when a motion vector is detected from an original image (when the original image is used as a reference image in motion vector detection),
The I picture or the P picture read as a coded image becomes a reference picture of a subsequent P picture after the coding process is completed, and is thus read again.

【0020】前記したIピクチャの符号化のみを行なう
場合の2バンク分割では、符号化ブロックの読み出し終
了後、読み出した領域に直ちに次の入力画像の書き込み
が行なわれるため、参照画像読み出しができない。この
ため、フレームメモリ701内を3つのメモリバンクに
分割して使用する必要がある。すなわち、図10に示す
ように、1フレーム期間は入力画像書き込みを、続く1
フレーム期間は符号化ブロックデータの読み出しを、最
後の1フレーム期間は参照画像データの読み出しを行な
い、これらの処理を3つのメモリバンクで1フレーム期
間ずつずらすことによって、一連の処理を途切れること
なく行なうことができる。
In the above-described two-bank division where only the I picture is encoded, the next input image is immediately written into the read area after the reading of the encoded block, so that the reference image cannot be read. For this reason, it is necessary to divide the frame memory 701 into three memory banks for use. That is, as shown in FIG. 10, the input image writing is performed for one frame period,
The reading of the coded block data is performed during the frame period, the reading of the reference image data is performed during the last one frame period, and these processes are shifted by one frame period in each of the three memory banks, so that a series of processes is performed without interruption. be able to.

【0021】図9は、上記のメモリ制御を実現するため
の書き込み用アドレス発生器804,符号化ブロック読
み出し用アドレス発生器805,参照画像読み出し用ア
ドレス発生器806のブロック図の例である。ここで、
アドレス生成器901は、書き込み用アドレス発生器8
04においては飛び越し走査データの書き込みアドレス
を、符号化ブロック読み出し用アドレス発生器805に
おいては符号化ブロックの読み出しアドレスを、参照画
像読み出し用アドレス発生器806においては参照画像
データの読み出しアドレスを各々生成する。その他の部
分の動作は、アドレス発生器804,805,806で
共通である。
FIG. 9 is an example of a block diagram of the write address generator 804, the coded block read address generator 805, and the reference image read address generator 806 for realizing the above-mentioned memory control. here,
The address generator 901 includes the write address generator 8.
04, a write address of interlaced scan data is generated, an encoded block read address generator 805 generates an encoded block read address, and a reference image read address generator 806 generates a read address of reference image data. . The operation of the other parts is common to the address generators 804, 805, and 806.

【0022】加算器902は、アドレス生成器901に
よって生成されたアドレスにセレクタ903で選択され
たオフセット値を加算する。
The adder 902 adds the offset value selected by the selector 903 to the address generated by the address generator 901.

【0023】ここで、フレームメモリの1ワードを1画
素に対応した場合には、
Here, when one word of the frame memory corresponds to one pixel,

【0024】[0024]

【数1】 (Equation 1)

【0025】[0025]

【数2】 (Equation 2)

【0026】となる。なお、Hは画像の水平方向の画素
数、Vはフレーム画像の垂直方向のライン数であり、H
×Vは1バンクのワード数となる。
## EQU1 ## Note that H is the number of pixels in the horizontal direction of the image, V is the number of lines in the vertical direction of the frame image, and H
× V is the number of words in one bank.

【0027】この時、アドレス生成器901の出力ad
drは1バンク内のデータのみにアクセスするため、フ
レームメモリの1ワードを1画素に対応した場合には、
次式を満足する。
At this time, the output ad of the address generator 901
Since dr accesses only data in one bank, if one word of the frame memory corresponds to one pixel,
The following expression is satisfied.

【0028】[0028]

【数3】 (Equation 3)

【0029】よって、アドレス生成器901の出力にメ
モリバンク1の先頭アドレスを加えた時、アドレス発生
器の出力outは
Therefore, when the head address of the memory bank 1 is added to the output of the address generator 901, the output out of the address generator becomes

【0030】[0030]

【数4】 (Equation 4)

【0031】となり、メモリバンク1上でのデータアク
セスが可能となる。以下同様に、アドレス生成器901
の出力にメモリバンク2の先頭アドレスを加えた場合は
メモリバンク2上でのデータアクセスが可能となり、メ
モリバンク3の先頭アドレスを加えた場合はメモリバン
ク3上でのデータアクセスが可能となる。
Thus, data access on the memory bank 1 becomes possible. Hereinafter, similarly, the address generator 901
When the head address of the memory bank 2 is added to the output of the memory bank 2, the data can be accessed on the memory bank 2, and when the head address of the memory bank 3 is added, the data can be accessed on the memory bank 3.

【0032】図11に、セレクタ903の動作タイミン
グを示す。書き込み用アドレス発生器804内のセレク
タがメモリバンク1を選択した次の1フレーム期間にお
いて、符号化ブロック読み出し用アドレス発生器805
内のセレクタが符号化ブロックデータの読み出しのため
にメモリバンク1を選択する。さらに続く1フレーム期
間においては、参照画像読み出し用アドレス発生器80
6内のセレクタが参照画像の読み出しのためにメモリバ
ンク1を選択する。以上のように、書き込み用アドレス
発生器804,符号化ブロック読み出し用アドレス発生
器805,参照画像読み出し用アドレス発生器806内
の各セレクタが、1フレーム期間の時間差で同一バンク
をアクセスする。
FIG. 11 shows the operation timing of the selector 903. In the next one frame period when the selector in the write address generator 804 selects the memory bank 1, the coded block read address generator 805 is read.
Select the memory bank 1 for reading the encoded block data. In the subsequent one frame period, the reference image reading address generator 80
The selector in 6 selects the memory bank 1 for reading the reference image. As described above, the selectors in the write address generator 804, the coded block read address generator 805, and the reference image read address generator 806 access the same bank with a time difference of one frame period.

【0033】[0033]

【発明が解決しようとする課題】上記したメモリ制御で
は、動きベクトルの検出のために、3フレームの画像を
格納するメモリ領域が必要である。NTSCのテレビジ
ョン解像度においては、縦横の画素数は720×480
であり、各画素の輝度値を1バイトで表現する場合、輝
度値の画素データを格納するために720×480×3
=1,036,800MByteのメモリ容量が必要と
なる。よって、従来のメモリ制御器においては、飛び越
し走査→ブロック形式変換と、参照画像データ読み出し
を実行するために膨大なメモリ容量が必要となり、コス
ト低減の大きな障害になっていた。
In the above-described memory control, a memory area for storing images of three frames is required for detecting a motion vector. In the NTSC television resolution, the number of pixels in the vertical and horizontal directions is 720 × 480.
When the luminance value of each pixel is expressed by 1 byte, 720 × 480 × 3 is used to store the pixel data of the luminance value.
= 1,036,800 MByte memory capacity is required. Therefore, in the conventional memory controller, an enormous memory capacity is required for performing the interlaced scanning → block format conversion and reading the reference image data, which has been a major obstacle to cost reduction.

【0034】本発明においては、少ないメモリ容量で、
飛び越し走査からブロック形式への変換と、参照画像デ
ータ読み出しを実行することができるメモリ制御器を提
供することを目的とする。
In the present invention, with a small memory capacity,
It is an object of the present invention to provide a memory controller capable of executing conversion from interlaced scanning to block format and reading reference image data.

【0035】[0035]

【課題を解決するための手段】本発明のメモリ制御装置
においては、符号化画像データを格納するメモリの中の
1画面分のデータ領域内をアクセスするためのアドレス
を発生するアドレス発生手段と、1画面分のデータ格納
領域の先頭位置を指定するオフセット発生手段と、前記
アドレス発生手段の出力と前記オフセット発生手段の出
力とを加算する加算器と、前記加算器の出力を使用メモ
リ領域の大きさで除した時の剰余を算出する剰余演算器
を有し、前記オフセット発生手段は、1画面分の画像デ
ータ領域の大きさを更新前オフセット値に加算する加算
器と、前記加算器の出力を使用メモリ領域の大きさで除
した時の剰余を算出する剰余演算器からなる。
According to the present invention, there is provided a memory control device, comprising: an address generating means for generating an address for accessing a data area for one screen in a memory for storing encoded image data; Offset generating means for designating the head position of the data storage area for one screen, an adder for adding the output of the address generating means and the output of the offset generating means, and the output of the adder as the size of the used memory area A remainder computing unit for calculating a remainder when divided by an adder for adding the size of the image data area for one screen to the pre-update offset value; and an output of the adder. From the size of the used memory area.

【0036】[0036]

【発明の実施の形態】まず、本発明のメモリ制御方式に
ついて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS First, a memory control system according to the present invention will be described.

【0037】図3は、本発明において読み書きされる画
素データの、メモリ空間上での記憶位置を説明するため
のメモリマップである。
FIG. 3 is a memory map for explaining the storage position in the memory space of the pixel data read / written in the present invention.

【0038】図3においては、説明の簡単化のため、画
素データの画面上での位置とメモリ空間上での記憶位置
とを1:1に対応させている。すなわち、フレームメモ
リ701の1ワードを1画素に対応させ、マップの水平
方向に画像の水平画素数Hワード分のアドレスを割り当
てて、図6に示すようにメモリ空間を2次元に展開して
表現している。よって、図3に示すアドレス空間におけ
るデータの位置関係は、画面上での対応する画素の位置
関係に一致する。
In FIG. 3, for the sake of simplicity, the position of the pixel data on the screen and the storage position in the memory space are in a one-to-one correspondence. That is, one word of the frame memory 701 is made to correspond to one pixel, addresses of the number of horizontal pixels H words of the image are allocated in the horizontal direction of the map, and the memory space is expressed two-dimensionally as shown in FIG. doing. Therefore, the positional relationship of the data in the address space shown in FIG. 3 matches the positional relationship of the corresponding pixels on the screen.

【0039】なお、実際のハードウェアにおいては、メ
モリバンド幅を大きくする(単位時間あたりに読み書き
できるデータ量を増大する)ために、フレームメモリ7
01のデータバス幅を大きくし、フレームメモリ701
の1ワードに複数の画素を対応させることも可能であ
る。 以下、図3を用いて、本発明の装置におけるメモ
リ管理について説明する。なお、各項目の先頭の英文字
は、図3中のa〜fと対応している。
In actual hardware, in order to increase the memory bandwidth (increase the amount of data that can be read and written per unit time), the frame memory 7
01, the data bus width of the frame memory 701 is increased.
It is also possible to associate a plurality of pixels with one word. Hereinafter, the memory management in the device of the present invention will be described with reference to FIG. Note that the leading English characters of each item correspond to a to f in FIG.

【0040】(a) 飛び越し走査の順序で入力される
入力画像データは、順時フレームメモリ701に書き込
まれる。図3においては、アドレス空間を水平方向Hワ
ードとして2次元に展開しているため、入力データはメ
モリ空間上を左上隅から右下隅に向けて水平方向順に書
き込まれる。ここで、V/2ラインの位置まで書き込む
と1フィールド分のデータ書き込みが完了したことにな
り、Vラインの位置までで1フレーム分のデータとな
る。なお、図3において、薄い網目領域は第1フレーム
のデータを表している。
(A) Input image data input in the interlaced scanning order is written to the sequential frame memory 701. In FIG. 3, since the address space is two-dimensionally developed as H words in the horizontal direction, the input data is written in the memory space in the horizontal direction from the upper left corner to the lower right corner. Here, when data is written to the position of the V / 2 line, data writing for one field is completed, and data for one frame is obtained up to the position of the V line. In FIG. 3, the thin mesh area represents the data of the first frame.

【0041】(b) 第1フレームの奇数フィールドデ
ータを書き終わり、続いて偶数フィールドデータをB/
2ラインまで書き込んだ時点から、符号化ブロックデー
タ301の読み出しを開始する。符号化ブロックデータ
はインターレース構造を有するため、第1フレームの奇
数フィールドデータと偶数フィールドデータから水平方
向B画素、垂直方向B/2画素のブロック状にデータを
読み出し、これをライン単位に交互に組み合わせること
で、大きさB×Bの符号化ブロックデータを得ることが
できる。
(B) Writing the odd field data of the first frame is completed, and then the even field data is written in B /
The reading of the coded block data 301 is started from the point of time when writing is performed up to two lines. Since the coded block data has an interlaced structure, data is read from the odd field data and the even field data of the first frame in blocks of B pixels in the horizontal direction and B / 2 pixels in the vertical direction, and these are alternately combined in line units. Thus, encoded block data of size B × B can be obtained.

【0042】(c) 第1フレームの偶数フィールドデ
ータの書き込み終了後、第2フレームの奇数フィールド
データの書き込みが続いて行なわれる。図3において
は、濃い網目領域が第2フレームのデータを表してい
る。
(C) After the writing of the even field data of the first frame is completed, the writing of the odd field data of the second frame is subsequently performed. In FIG. 3, the dark mesh area indicates the data of the second frame.

【0043】1画面分の符号化ブロックデータの読み出
しに要する時間は、書き込みと同様に1フレーム時間で
ある。よって、第2フレームの偶数フィールドデータを
B/2ラインまで書き込み終わった時点で、第1フレー
ムからの符号化ブロックデータの読み出しが終了し、続
いて第2フレームからの符号化ブロックデータ302の
読み出しが開始される。この時、同時に符号化ブロック
データ302に対応する第1フレームからの参照画像デ
ータ303の読み出しが行なわれる。
The time required to read the coded block data for one screen is one frame time as in the case of writing. Therefore, when the even field data of the second frame has been written up to the B / 2 line, reading of the coded block data from the first frame is completed, and then reading of the coded block data 302 from the second frame. Is started. At this time, reference image data 303 is read from the first frame corresponding to the encoded block data 302 at the same time.

【0044】図15に示す領域を動きベクトル探索領域
とする場合、フィールド単位に画素データをメモリに格
納している図3においては、探索領域の垂直方向の大き
さはB/2+(N−B)/4=(B+N)/4画素とな
る。このため、破線で囲まれた領域303が動きベクト
ル探索領域(参照画像データ)となる。
When the area shown in FIG. 15 is used as a motion vector search area, the vertical size of the search area is B / 2 + (NB) in FIG. ) / 4 = (B + N) / 4 pixels. Therefore, an area 303 surrounded by a broken line is a motion vector search area (reference image data).

【0045】(d) 第1フレームの各フィールドにお
いて、動きベクトル探索領域304の上端から上の領域
305に書き込まれたデータは、再び読み出されること
はない。このため、領域305は不要領域となり、別の
データを書き込むことができる。
(D) In each field of the first frame, the data written in the area 305 above the upper end of the motion vector search area 304 is not read out again. Therefore, the area 305 becomes an unnecessary area, and another data can be written.

【0046】一方、第2フレームの偶数フィールドデー
タの書き込み終了後、続いて第3フレームの奇数フィー
ルドの書き込みが行なわれる。この時、第3フレームの
奇数フィールドのB/2+(N+B)/4=(N+3
B)/4ラインまでを第2フレームのデータ領域に続く
領域306に書き込み、残りの部分を不要領域となって
いるアドレス空間の先頭から書き込む。
On the other hand, after the writing of the even field data of the second frame is completed, the writing of the odd field of the third frame is subsequently performed. At this time, B / 2 + (N + B) / 4 = (N + 3) of the odd field of the third frame.
B) Up to / 4 line is written in the area 306 following the data area of the second frame, and the remaining part is written from the top of the address space which is an unnecessary area.

【0047】なお、斜線の領域は第3フレームのデータ
を表している。
The shaded area represents the data of the third frame.

【0048】(e) (d)で述べたように、第3フレ
ームの(N+3B)/4ライン分のデータは、第2フレ
ームのすぐ後ろに書き込まれるため、アドレス空間の先
頭から書き込まれる残りの奇数フィールドデータはV/
2−(N+3B)/4ライン分である。よって、これに
続いて第3フレームの偶数フィールドのB/2ライン分
のデータを書き込んだ時、アドレス空間先頭からのライ
ン数の合計は{V/2−(N+3B)/4}+(B/
2)=V/2−(B+N)/4ラインとなり、この時点
でメモリ上に残っている第1フレームの奇数フィールド
データは、画面の下から(B+N)/4ライン分とな
る。
(E) As described in (d), since (N + 3B) / 4 lines of data of the third frame are written immediately after the second frame, the remaining data to be written from the beginning of the address space is written. Odd field data is V /
2- (N + 3B) / 4 lines. Therefore, when the data for B / 2 lines of the even field of the third frame is written subsequently, the total number of lines from the head of the address space is {V / 2− (N + 3B) / 4} + (B /
2) = V / 2− (B + N) / 4 lines, and the odd field data of the first frame remaining on the memory at this time is (B + N) / 4 lines from the bottom of the screen.

【0049】一方、画面で最も下の列の符号化ブロック
に対する動きベクトル探索領域307の上端は、フィー
ルド画像の下端から(B+N)/4ラインの位置にあ
る。よって、第2フレームの最後の符号化ブロックデー
タの読み出しが終了するまでは、第1フレームの奇数フ
ィールドの下から(B+N)/4ラインまでのデータを
メモリ上に保持しておく必要がある。
On the other hand, the upper end of the motion vector search area 307 for the coded block in the lowest column on the screen is located at (B + N) / 4 line from the lower end of the field image. Therefore, until the reading of the last coded block data of the second frame is completed, it is necessary to hold the data from the bottom of the odd field of the first frame to (B + N) / 4 lines in the memory.

【0050】ここで、第2フレームからの符号化ブロッ
クデータの読み出し終了のタイミングは、第3フレーム
の偶数フィールドのB/2ラインまでをフレームメモリ
に書き込み終わった時点であり、前記したように、この
時メモリ上に残っている第1フレームの奇数フィールド
データは、画面の下から(B+N)/4ライン分であ
る。
Here, the timing of ending the reading of the coded block data from the second frame is the time when the writing of up to the B / 2 line of the even field of the third frame has been completed in the frame memory. At this time, the odd field data of the first frame remaining on the memory is (B + N) / 4 lines from the bottom of the screen.

【0051】以上から、第3フレームの偶数フィールド
データの書き込み領域と、第1フレームの奇数フィール
ドからの参照画像データの読み出し領域は重複せず、前
記した「第2フレームの最後の符号化ブロックデータの
読み出しが終了するまで、第1フレームの奇数フィール
ドの下から(B+N)/4ラインまでのデータをメモリ
上に保持しておく。」を実現できることがわかる。
As described above, the writing area of the even-numbered field data of the third frame and the reading area of the reference image data from the odd-numbered field of the first frame do not overlap with each other. Until the readout of the first frame is completed, data from the bottom of the odd field of the first frame to (B + N) / 4 lines is held in the memory. "

【0052】(f) 第2フレームからの符号化ブロッ
クデータの読み出し終了に続いて、第3フレームからの
符号化ブロックデータの読み出しが開始され、並行して
第2フレームからの参照画素データの読み出しが行なわ
れる。
(F) Following the completion of the reading of the coded block data from the second frame, the reading of the coded block data from the third frame is started, and the reading of the reference pixel data from the second frame in parallel. Is performed.

【0053】以上を繰り返して行なうことによって、H
×{2V+(N+3B)/4}画素分のメモリ空間で、
飛び越し走査→ブロック形式変換と、参照画像データ読
み出しを並行して実行することができる。
By repeating the above, H
× {2V + (N + 3B) / 4} pixels of memory space,
Interlaced scanning → block format conversion and reference image data reading can be executed in parallel.

【0054】図1は、上記のメモリ制御を実現するため
の書き込み用アドレス発生器804,符号化ブロック読
み出し用アドレス発生器805,参照画像読み出し用ア
ドレス発生器806の実施例である。ここで、101は
画像データ格納領域の先頭アドレスを出力するオフセッ
ト発生器である。
FIG. 1 shows an embodiment of the write address generator 804, the coded block read address generator 805, and the reference image read address generator 806 for realizing the above-mentioned memory control. Here, reference numeral 101 denotes an offset generator that outputs the start address of the image data storage area.

【0055】アドレス生成器102は、書き込み用アド
レス発生器804においては飛び越し走査データの書き
込みアドレスを生成し、符号化ブロック読み出し用アド
レス発生器805においては符号化ブロックの読み出し
アドレスを生成し、参照画像読み出し用アドレス発生器
806においては参照画像データの読み出しアドレスを
生成する。103は剰余演算器であり、入力をH×{2
V+(N+3B)/4}で除した時の余りを出力する。
その他、104,105は加算器である。
The address generator 102 generates a write address of interlaced scan data in the write address generator 804, generates a read address of the coded block in the coded block read address generator 805, and generates a reference image. The read address generator 806 generates a read address of the reference image data. Numeral 103 denotes a remainder arithmetic unit whose input is H × {2
The remainder when dividing by V + (N + 3B) / 4} is output.
In addition, 104 and 105 are adders.

【0056】図2は、図1におけるオフセット発生器の
実施例である。
FIG. 2 shows an embodiment of the offset generator in FIG.

【0057】ここで、201は加算器、202は103
と同一機能を有する剰余演算器、203はレジスタであ
る。
Here, 201 is an adder, and 202 is 103
The remainder arithmetic unit having the same function as the above, and 203 is a register.

【0058】図4は、図1におけるアドレス出力out
とオフセット値offsetのタイムチャートである。
図4においては、共通の時間軸を用いて、上側にアドレ
ス出力outのタイムチャートを、下側にオフセット値
offsetのタイムチャートを示し、アドレス出力o
utとオフセット値offsetのタイミングの関係を
示している。図4上側において、実線矢印は書き込みア
ドレス発生器804の出力、太破線矢印は符号化ブロッ
クデータ読み出しアドレス発生器805の出力、太一点
鎖線矢印は参照画像データ読み出しアドレス発生器80
6の出力を表している。
FIG. 4 shows the address output out in FIG.
5 is a time chart of the offset value and the offset value offset.
4, a time chart of the address output out is shown on the upper side, and a time chart of the offset value offset is shown on the lower side using a common time axis.
4 shows the relationship between the output timing out and the timing of the offset value offset. In the upper part of FIG. 4, the solid arrow indicates the output of the write address generator 804, the thick broken arrow indicates the output of the encoded block data read address generator 805, and the thick dashed arrow indicates the reference image data read address generator 80.
6 represents the output.

【0059】画像の1ライン毎にメモリに書き込まれた
画像データに対して、読み出しはブロック状に行なわれ
るので、読み出しアドレスにおいては、図5に示すよう
に、ブロックの横方向の画素読み出しに対応したアドレ
スが、一定の範囲内においてHワードの間隔で飛び飛び
に発生し、この範囲が時間と共に移動していく。図4に
おいて読み出しアドレスを表す矢印は、アドレス値が発
生する範囲を表しており、このため図4においては、こ
の範囲の推移を表現するために、読み出しアドレスを太
線で表している。
Since the image data written to the memory for each line of the image is read in blocks, the read address corresponds to the pixel readout in the horizontal direction of the block as shown in FIG. The generated addresses occur at intervals of H words within a certain range, and this range moves with time. Arrows indicating read addresses in FIG. 4 indicate a range in which an address value is generated. Therefore, in FIG. 4, the read address is represented by a thick line in order to express a transition in this range.

【0060】また、図4において、薄い網目,濃い網
目,斜線の各領域は、図3に対応しており、メモリ上に
保持されているフレームデータの種類を表している。
Further, in FIG. 4, the light mesh, dark mesh, and hatched areas correspond to FIG. 3, and represent the types of frame data held in the memory.

【0061】以下、図4を用いて図1の動作を説明す
る。
The operation of FIG. 1 will be described below with reference to FIG.

【0062】オフセット値offsetを格納している
レジスタ203は、1フレーム期間に1回更新される。
この時、offsetの値は加算器201によって、1
画面分の画像データ領域のワード数H×Vだけ増加さ
れ、剰余演算器202によって、0≦offset<H
×{2V+(N+3B)/4}の範囲に収まるように丸
められる。よって、レジスタ203の初期値を0とする
と、offsetは
The register 203 storing the offset value offset is updated once in one frame period.
At this time, the value of offset is set to 1 by the adder 201.
The number of words in the image data area for the screen is increased by the number of words H × V, and 0 ≦ offset <H
It is rounded to fall within the range of {2V + (N + 3B) / 4}. Therefore, assuming that the initial value of the register 203 is 0, offset is

【0063】[0063]

【数5】 (Equation 5)

【0064】のように変化する。Changes as follows.

【0065】ここで、フレームメモリ書き込みと符号化
ブロック読み出しのタイミングは1フィールド期間(1
/2フレーム期間)+B/2ライン入力期間分ずれ、符
号化ブロック読み出しと参照画像データ読み出しのタイ
ミングは1フレーム期間ずれるため、各アドレス発生器
内のレジスタ203の更新タイミングは、図4下側に示
すように、書き込みと読み出しのタイミングがB/2ラ
イン入力期間分だけずれることになる。
Here, the timing of writing to the frame memory and reading of the coded block correspond to one field period (1
/ 2 frame period) + B / 2 line input period shift, and the timing of reading the coded block and the reference image data shift by one frame period. Therefore, the update timing of the register 203 in each address generator is shown in the lower part of FIG. As shown, the write and read timings are shifted by the B / 2 line input period.

【0066】この時、アドレス生成器102の出力開始
タイミングもoffset値の更新タイミングに合わせ
たものとなる。すなわち、レジスタ203が更新される
タイミングでアドレス生成器102はリセットされ、続
いて1フレーム期間必要なアドレス値を生成する。
At this time, the output start timing of the address generator 102 also coincides with the offset value update timing. That is, the address generator 102 is reset at the timing when the register 203 is updated, and subsequently generates an address value required for one frame period.

【0067】アドレス生成器102の出力addrは加
算器104によってoffset値と加算される。ここ
で、全メモリ容量H×{2V+(N+3B)/4}の範
囲を越えた加算器104の出力は、H×{2V+(N+
3B)/4}の範囲に収まるように剰余演算器103に
よって丸められる。アドレス生成器102の出力add
rは、従来例と同じく数3を満足する。よって、剰余演
算器の出力addr_rは、以下の式で表される。
The output addr of the address generator 102 is added by the adder 104 to the offset value. Here, the output of the adder 104 exceeding the range of the total memory capacity H × {2V + (N + 3B) / 4} is H × {2V + (N +
3B) / 4 is rounded by the remainder arithmetic unit 103 to fall within the range. Output add of address generator 102
r satisfies Equation 3 as in the conventional example. Therefore, the output addr_r of the remainder arithmetic unit is represented by the following equation.

【0068】[0068]

【数6】 (Equation 6)

【0069】図4上側を見ると、書き込みアドレスを表
す実線矢印と、動きベクトル探索領域の読み出しアドレ
スを表す一点鎖線矢印が交わることがない。よって、参
照画像データが書き込まれている領域において、探索領
域データの読み出し以前に飛び越し走査データ書き込み
が行なわれ、必要なデータが読み出せなくなる事態は発
生しないことがわかる。
Referring to the upper part of FIG. 4, a solid line arrow representing a write address does not intersect with a dashed line arrow representing a read address of a motion vector search area. Therefore, it can be seen that in the area where the reference image data is written, the interlaced scan data writing is performed before the reading of the search area data, and it does not occur that the necessary data cannot be read.

【0070】図10に示す従来例のメモリ制御において
は、画像データを格納するバンクの位置は固定で、常に
同じ位置に画像データを書き込んでいた。
In the conventional memory control shown in FIG. 10, the position of the bank for storing the image data is fixed, and the image data is always written in the same position.

【0071】一方、本発明のメモリ制御装置において
は、1画面分の画像データを格納する領域の先頭位置を
表すoffsetの値に注目すると、アドレス空間の先
頭にoffset値が戻ってくるたびに−H×(N+3
B)/4ずつ変移が加わり、メモリバンクの位置が−H
×(N+3B)/4ずつずれていく。これにより、メモ
リ空間を効率良く利用でき、従来よりも少ないメモリ容
量で飛び越し走査からブロック形式への変換と、参照画
像データ読み出しを実行することができる。
On the other hand, in the memory control device of the present invention, if attention is paid to the offset value indicating the head position of the area for storing the image data for one screen, every time the offset value returns to the head of the address space,- H × (N + 3
B) A transition is added by / 4, and the memory bank position is -H
× (N + 3B) / 4. As a result, the memory space can be used efficiently, and the conversion from the interlaced scanning to the block format and the reading of the reference image data can be executed with a smaller memory capacity than before.

【0072】[0072]

【発明の効果】本発明においては、フレームデータを格
納するメモリバンクの位置を時間と共に移動することに
よって、読み出しの終了したメモリ領域を効率良く使用
することができるため、少ないメモリ容量で、飛び越し
走査からブロック形式への変換と、参照画像データ読み
出しを実行することができる。
According to the present invention, the position of the memory bank for storing the frame data is moved with time, so that the memory area for which reading has been completed can be used efficiently. Can be converted to a block format and reference image data can be read.

【0073】ここで、1フレームの画素数が720×4
80で、符号化ブロックの大きさがB=16、動きベク
トル探索領域の垂直方向の大きさがN=48の場合、輝
度成分の画素データを格納するために必要なメモリ容量
は720×{2×480+(48+3×16)/4}=
708,480Byteとなる。従来例においては1,
036,800Byteの容量のメモリが必要であった
ので、本発明において必要なメモリ容量は従来の70%
程度になり、大幅なメモリ削減が可能となる。
Here, the number of pixels in one frame is 720 × 4
At 80, when the size of the coding block is B = 16 and the size of the motion vector search area in the vertical direction is N = 48, the memory capacity required to store the pixel data of the luminance component is 720 × {2. × 480 + (48 + 3 × 16) / 4} =
708,480 bytes. In the conventional example,
Since a memory having a capacity of 036,800 bytes is required, the memory capacity required in the present invention is 70% of the conventional memory capacity.
And the memory can be greatly reduced.

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

【図1】本発明のメモリ制御装置におけるアドレス発生
器804,805,806(図8)の実施例のブロック
図である。
FIG. 1 is a block diagram of an embodiment of an address generator 804, 805, 806 (FIG. 8) in a memory control device of the present invention.

【図2】図1におけるオフセット発生器101の実施例
のブロック図である。
FIG. 2 is a block diagram of an embodiment of an offset generator 101 in FIG.

【図3】本発明のメモリ制御装置におけるメモリマップ
図である。
FIG. 3 is a memory map diagram in the memory control device of the present invention.

【図4】本発明のメモリ制御装置における実施例のタイ
ムチャートである。
FIG. 4 is a time chart of the embodiment in the memory control device of the present invention.

【図5】本発明のメモリ制御装置の実施例における読み
出しアドレス発生器が生成するアドレスを説明する図で
ある。
FIG. 5 is a diagram illustrating addresses generated by a read address generator in the embodiment of the memory control device of the present invention.

【図6】図3のメモリマップにおいて、2次元に展開し
たマップの表記について説明する図である。
FIG. 6 is a diagram for explaining notation of a map developed two-dimensionally in the memory map of FIG. 3;

【図7】動き補償予測を用いた動画像符号化器における
画像入力部周辺のブロック図である。
FIG. 7 is a block diagram around an image input unit in a video encoder using motion compensation prediction.

【図8】図7におけるメモリ制御器702のブロック図
である。
FIG. 8 is a block diagram of a memory controller 702 in FIG. 7;

【図9】図8のアドレス発生器804,805,806
における従来例のブロック図である。
FIG. 9 shows the address generators 804, 805 and 806 of FIG.
FIG. 4 is a block diagram of a conventional example in FIG.

【図10】従来例におけるメモリバンクの切り替えタイ
ミングを示す図である。
FIG. 10 is a diagram showing a switching timing of a memory bank in a conventional example.

【図11】図10に示すメモリバンク切り替えにおけ
る、アドレス発生器804,805,806内のセレク
タ903の制御タイミングを示す図である。
11 is a diagram showing the control timing of the selector 903 in the address generators 804, 805, 806 in the memory bank switching shown in FIG.

【図12】飛び越し走査の順序で入力された画像データ
のメモリへの書き込みを説明する図である。
FIG. 12 is a diagram illustrating writing of image data input in the order of interlaced scanning to a memory.

【図13】図12に示す順序でメモリに書き込まれた画
像データのブロック読み出しを説明する図である。
FIG. 13 is a diagram illustrating block reading of image data written in a memory in the order shown in FIG. 12;

【図14】動画像のフレーム間符号化における予測構造
を説明する図である。
FIG. 14 is a diagram illustrating a prediction structure in inter-frame coding of a moving image.

【図15】動きベクトル検出における動きベクトル探索
領域を説明する図である。
FIG. 15 is a diagram illustrating a motion vector search area in motion vector detection.

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

101 オフセット発生器 102 アドレス生成器 103 剰余演算器 104,105 加算器 Reference Signs List 101 offset generator 102 address generator 103 remainder operation unit 104, 105 adder

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 動画像シーケンスの各画像を符号化ブロ
ックに分割し、参照画像上の動きベクトル検出領域内か
ら予測ブロックを生成するための動きベクトルを符号化
ブロック毎に検出し、前記動きベクトルを用いて参照画
像から予測ブロックを生成し、符号化ブロックと予測ブ
ロックとの差分画像ブロックを符号化する動画像符号化
装置における動きベクトル検出装置において、 入力画像データの飛び越し走査からブロック形式への変
換と、動きベクトル検出用画素データ読み出しを行なう
画像メモリにおいて、画像データ格納領域の位置を、動
きベクトル検出領域の大きさと画像サイズから所定の計
算によって決定される量ずつ、入力画像毎に移動するこ
とを特徴とする動きベクトル検出器用メモリ制御装置。
1. An image of a moving image sequence is divided into coding blocks, and a motion vector for generating a prediction block from a motion vector detection area on a reference image is detected for each coding block. In the motion vector detection device in the moving image encoding device that generates a prediction block from a reference image using, and encodes a difference image block between the coded block and the prediction block, the input image data is changed from interlaced scanning to a block format. In an image memory for performing conversion and reading out pixel data for motion vector detection, the position of the image data storage area is moved for each input image by an amount determined by a predetermined calculation from the size of the motion vector detection area and the image size. A memory control device for a motion vector detector.
【請求項2】 前記画像メモリに対するアドレス発生器
は、1画面分のデータ領域内をアクセスするためのアド
レスを発生するアドレス発生手段と、1画面分のデータ
格納領域の先頭位置を指定するオフセット発生手段と、
前記アドレス発生手段の出力と前記オフセット発生手段
の出力とを加算する加算器(A)と、前記加算器(A)
の出力を使用メモリ領域の大きさで除した時の剰余を算
出する剰余演算器(A)を有し、前記オフセット発生手
段は、オフセット値を保持するレジスタと、1画面分の
画像データ領域の大きさを前記レジスタに格納された更
新前オフセット値に加算する加算器(B)と、前記加算
器(B)の出力を使用メモリ領域の大きさで除した時の
剰余を算出する剰余演算器(B)を有し、 剰余演算器(A)の出力をメモリアドレスとして使用す
ることを特徴とする請求項1記載の動きベクトル検出器
用メモリ制御装置。
2. An address generator for an image memory, comprising: an address generator for generating an address for accessing a data area for one screen; and an offset generator for specifying a head position of a data storage area for one screen. Means,
An adder (A) for adding the output of the address generating means and the output of the offset generating means, and the adder (A)
A remainder arithmetic unit (A) for calculating a remainder when the output of the image data is divided by the size of the used memory area. The offset generating means includes a register for holding an offset value, An adder (B) for adding the size to the pre-update offset value stored in the register, and a remainder calculator for calculating a remainder when the output of the adder (B) is divided by the size of the used memory area 2. The memory control device for a motion vector detector according to claim 1, further comprising (B), wherein an output of the remainder arithmetic unit (A) is used as a memory address.
【請求項3】 請求項2記載のオフセット発生手段にお
いては、オフセット値を1画面期間毎に更新し、使用メ
モリ領域の大きさをH×{2V+(N+3B)/4}個
(H:画像データの水平方向の画素数,V:画像データ
の垂直方向の画素数,N:動きベクトル検出領域の垂直
方向の画素数,B:符号化ブロックの垂直方向の画素
数)以上の画素データを格納する領域サイズとすること
を特徴とする請求項1記載の動きベクトル検出器用メモ
リ制御装置。
3. The offset generating means according to claim 2, wherein the offset value is updated every one screen period, and the size of the used memory area is H × {2V + (N + 3B) / 4} (H: image data , V: the number of pixels in the image data in the vertical direction, N: the number of pixels in the motion vector detection area in the vertical direction, and B: the number of pixels in the coding block in the vertical direction. 2. The memory control device for a motion vector detector according to claim 1, wherein the memory size is an area size.
【請求項4】 飛び越し走査の順序で入力される画像デ
ータのメモリへの書き込みがV/2+B/2ライン分ま
で終了した時点から、当該入力画像データにおける符号
化ブロックの読み出しを開始し、この時、読み出し中の
符号化ブロックに対するベクトル検出領域画素データの
読み出しを並行して実行することを特徴とする請求項1
記載の動きベクトル検出器用メモリ制御装置。
4. When the writing of image data input in the order of interlaced scanning to the memory is completed up to V / 2 + B / 2 lines, reading of an encoded block in the input image data is started. And reading the vector detection area pixel data from the encoded block being read out in parallel.
A memory control device for a motion vector detector as described in the above.
JP987797A 1997-01-23 1997-01-23 Memory controller Pending JPH10210481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP987797A JPH10210481A (en) 1997-01-23 1997-01-23 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP987797A JPH10210481A (en) 1997-01-23 1997-01-23 Memory controller

Publications (1)

Publication Number Publication Date
JPH10210481A true JPH10210481A (en) 1998-08-07

Family

ID=11732393

Family Applications (1)

Application Number Title Priority Date Filing Date
JP987797A Pending JPH10210481A (en) 1997-01-23 1997-01-23 Memory controller

Country Status (1)

Country Link
JP (1) JPH10210481A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005074272A1 (en) * 2004-01-30 2005-08-11 Fujitsu Limited Video encoder transmitting extracted image outside during encoding
KR100846406B1 (en) 2006-06-28 2008-07-16 후지쯔 가부시끼가이샤 Video encoder transmitting extracted image outside during encoding

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005074272A1 (en) * 2004-01-30 2005-08-11 Fujitsu Limited Video encoder transmitting extracted image outside during encoding
US7577197B2 (en) 2004-01-30 2009-08-18 Fujitsu Microelectronics Ltd. Video encoder transmitting extracted image to exterior during encoding process
KR100846406B1 (en) 2006-06-28 2008-07-16 후지쯔 가부시끼가이샤 Video encoder transmitting extracted image outside during encoding

Similar Documents

Publication Publication Date Title
JP3803122B2 (en) Image memory device and motion vector detection circuit
US20090073277A1 (en) Image processing apparatus, image processing method and image pickup apparatus
JP3686155B2 (en) Image decoding device
KR20050087729A (en) Moving image encoding apparatus and moving image processing apparatus
JPH10191236A (en) Image processor and image data memory arranging method
WO2007098658A1 (en) Method for mapping image addresses in memory
JP3626687B2 (en) Image processing device
JPH0759096A (en) Video encoder and decoder
JPH08294115A (en) Apparatus and method for decoding mpeg
KR19980081641A (en) Moving picture decoding method and moving picture decoding device
US8644380B2 (en) Integer pixel motion estimation system, motion estimation system for quarter-pixel luminance, motion estimation system for quarter-pixel chrominance, motion estimation system for combined luminance, motion estimation system for combined luminance and chrominance, and motion estimation system for quarter-pixel luminance and chrominance
KR19980018884A (en) An image processor (Image Processor)
JPH10210481A (en) Memory controller
JP2006287583A (en) Image data area acquisition and interpolation circuit
JPH1056652A (en) Improved frame re-arrangement method and device therefor
US20080049035A1 (en) Apparatus and method for accessing image data
US7420567B2 (en) Memory access method for video decoding
JP4970378B2 (en) Memory controller and image processing apparatus
JP4888306B2 (en) Image processing apparatus and image processing method
JP3374014B2 (en) Image correlator
US5946036A (en) Image decoding using read/write memory control based on display region setting
JP3307856B2 (en) Image processing device
JP2005244844A (en) Moving image coding device
JPH1198507A (en) Image coder
JPH114443A (en) Information processing unit