JP2008059266A - Image processing apparatus - Google Patents
Image processing apparatus Download PDFInfo
- Publication number
- JP2008059266A JP2008059266A JP2006235272A JP2006235272A JP2008059266A JP 2008059266 A JP2008059266 A JP 2008059266A JP 2006235272 A JP2006235272 A JP 2006235272A JP 2006235272 A JP2006235272 A JP 2006235272A JP 2008059266 A JP2008059266 A JP 2008059266A
- Authority
- JP
- Japan
- Prior art keywords
- texture
- cache memory
- texture data
- given
- external memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000013507 mapping Methods 0.000 abstract description 10
- 238000000034 method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 2
Images
Landscapes
- Image Generation (AREA)
Abstract
Description
本発明は、コンピュータ・グラフィックスにおいて、テクスチャ・マッピングを行う場合に使用して好適な画像処理装置に関する。 The present invention relates to an image processing apparatus suitable for use in texture mapping in computer graphics.
テクスチャ・マッピングは、描画するオブジェクトの表面にテクスチャを貼り付けることにより写実性の高い描画を行う手法である。図2はテクスチャ・マッピングの例を示しており、この例では、オブジェクト表面の一部分である三角形1にテクスチャ2の三角形ABCの部分を貼り付ける場合を示している。なお、(x、y)はオブジェクト座標、(s、t)はテクスチャ座標を示している。
Texture mapping is a technique for performing highly realistic drawing by pasting a texture onto the surface of an object to be drawn. FIG. 2 shows an example of texture mapping. In this example, the triangle ABC part of the texture 2 is pasted on the
図3はテクスチャ・マッピングを行う場合に使用される従来の画像処理装置の一例を外部メモリと共に示す図である。図3中、5はテクスチャデータを格納する外部メモリであり、例えば、4096×4096テクセルの容量を持ち、テクスチャデータを格納するものである。6は従来の画像処理装置の一例であり、演算部7〜9、判定部10、セレクタ11、アドレス生成部12、13、セレクタ14、キャッシュメモリ15、セレクタ16及びピクセル加工部17などを備えている。
FIG. 3 is a diagram showing an example of a conventional image processing apparatus used when texture mapping is performed together with an external memory. In FIG. 3,
演算部7は、オブジェクト座標系でのy方向への1ピクセル分の変化に対するテクスチャを貼り付ける三角形のx座標増分値dx/dy及びテクスチャのs座標増分値ds/dy、t座標増分値dt/dy、q座標増分値dq/dyを演算するものである。 The calculation unit 7 adds the x coordinate increment value dx / dy of the triangle to which the texture is applied to the change of one pixel in the y direction in the object coordinate system, the s coordinate increment value ds / dy, and the t coordinate increment value dt / dy, q coordinate increment value dq / dy is calculated.
演算部8は、演算部7による演算結果から、オブジェクト座標系でのx方向への1ピクセル分の変化に対するテクスチャのs座標増分値ds/dx、t座標増分値dt/dx、q座標増分値dq/dxを演算するものである。 The calculation unit 8 calculates the texture s-coordinate increment value ds / dx, t-coordinate increment value dt / dx, and q-coordinate increment value for the change of one pixel in the x direction in the object coordinate system from the calculation result of the calculation unit 7. dq / dx is calculated.
演算部9は、演算部7、8の演算結果から、テクスチャを貼り付ける三角形の内部の各ピクセル(x、y)に対応するテクスチャ座標(s、t、q)を演算する演算部である。判定部10は、キャッシュメモリ15にキャッシングされているテクスチャデータのタグ情報から、キャッシュメモリ15内に演算部9が演算したテクスチャ座標(s、t)のテクスチャデータがあるか否かを判定するものである。
The calculation unit 9 is a calculation unit that calculates the texture coordinates (s, t, q) corresponding to each pixel (x, y) inside the triangle to which the texture is pasted from the calculation results of the calculation units 7 and 8. The
判定部10が、キャッシュメモリ15内に、演算部9が演算したテクスチャ座標(s、t)のテクスチャデータがあると判定した場合には、キャッシュメモリ15からのテクスチャデータの読み出しが行われる。これに対して、判定部10は、キャッシュメモリ15内に、演算部9が演算したテクスチャ座標(s、t)のテクスチャデータがないと判定した場合には、演算部9が演算したテクスチャ座標(s、t、q)をセレクタ11を介してアドレス生成部12又はアドレス生成部13に与える。
When the
セレクタ11は、キャッシュメモリ15を有効とするか無効とするかを設定するためのキャッシュメモリ有効/無効設定信号に選択動作を制御され、キャッシュメモリ有効/無効設定信号がキャッシュメモリ15を有効としている場合は、判定部10が出力するテクスチャ座標(s、t、q)をアドレス生成部12に与え、キャッシュメモリ有効/無効設定信号がキャッシュメモリ15を無効としている場合は、判定部10が出力するテクスチャ座標(s、t、q)をアドレス生成部13に与えるものである。
The selector 11 is controlled in its selection operation by a cache memory valid / invalid setting signal for setting whether the
アドレス生成部12は、セレクタ11を介して判定部10からテクスチャ座標(s、t、q)が与えられたときは、テクスチャ座標(s、t)のテクスチャデータを含む所定の大きさのブロックのテクスチャデータを外部メモリ5から読み出すために必要なアドレスを生成して出力するものである。
When the texture coordinate (s, t, q) is given from the
アドレス生成部13は、セレクタ11を介して判定部10からテクスチャ座標(s、t、q)が与えられたときは、テクスチャ座標(s、t)のテクスチャデータを外部メモリ5から読み出すために必要なアドレスを生成して出力するものである。
The
セレクタ14は、キャッシュメモリ有効/無効設定信号に選択動作を制御され、キャッシュメモリ有効/無効設定信号がキャッシュメモリ15を有効としている場合は、アドレス生成部12が出力するアドレスを外部メモリ5に与え、キャッシュメモリ有効/無効設定信号がキャッシュメモリ15を無効としている場合は、アドレス生成部13が出力するアドレスを外部メモリ5に与えるものである。
The
キャッシュメモリ15は、外部メモリ5が格納しているテクスチャデータの一部を所定の大きさのブロック単位で保持させるためのものであり、例えば、64×64テクセルの容量を持つものである。
The
セレクタ16は、キャッシュメモリ有効/無効設定信号に選択動作を制御され、キャッシュメモリ有効/無効設定信号がキャッシュメモリ15を有効としている場合は、キャッシュメモリ15から読み出されるテクスチャデータをピクセル加工部17に与え、キャッシュメモリ有効/無効設定信号がキャッシュメモリ15を無効としている場合は、外部メモリ5から読み出されるテクスチャデータをピクセル加工部17に与えるものである。
The
ピクセル加工部17は、セレクタ16を介して与えられるキャッシュメモリ15又は外部メモリ5から読み出したテクスチャデータを使用してテクスチャを貼り付ける三角形の内部のピクセルの加工を行うものである。
The
このように構成された従来の画像処理装置6においては、キャッシュメモリ有効/無効設定信号がキャッシュメモリ15を有効としている場合において、テクスチャを貼り付ける三角形に使用するテクスチャデータがキャッシュメモリ15にある場合には、キャッシュメモリ15からテクスチャデータが読み出されてピクセル加工部17に与えられる。
In the conventional image processing apparatus 6 configured as described above, when the cache memory valid / invalid setting signal enables the
また、キャッシュメモリ有効/無効設定信号がキャッシュメモリ15を有効としている場合において、テクスチャを貼り付ける三角形に使用するテクスチャデータがキャッシュメモリ15にない場合には、そのテクスチャデータを含む所定の大きさのブロックのテクスチャデータが外部メモリ5からキャッシュメモリ15にキャッシングされた後、テクスチャを貼り付ける三角形に使用するテクスチャデータがキャッシュメモリ15から読み出されてピクセル加工部17に与えられる。
Further, when the cache memory valid / invalid setting signal indicates that the
また、キャッシュメモリ有効/無効設定信号がキャッシュメモリ15を無効としている場合には、判定部10は、テクスチャを貼り付ける三角形に使用するテクスチャデータはキャッシュメモリ15にないと判定する。この結果、アドレス生成部13は、判定部10から与えられるテクスチャ座標(s、t)のテクスチャデータを読み出すためのアドレスを生成して外部メモリ5に与え、そして、この結果、外部メモリ5から読み出されたテクスチャデータがピクセル加工部17に与えられる。即ち、テクスチャを貼り付ける三角形の内部の1ピクセルごとのテクスチャデータが外部メモリ5からピクセル加工部17に与えられる。
When the cache memory valid / invalid setting signal invalidates the
このように、従来の画像処理装置6は、キャッシュメモリ15を設け、外部メモリ5が格納しているテクスチャデータの一部をキャッシュメモリ15にキャッシングすることにより、外部メモリ5に対するアクセス発生数を減らし、描画処理の高速化を図ることができるようにしている。
図4は従来の画像処理装置6が有する問題点を説明するための図である。図4中、20はテクスチャ、21〜25はオブジェクト表面上のテクスチャ20を貼り付ける四角形を示している。
FIG. 4 is a diagram for explaining the problems of the conventional image processing apparatus 6. In FIG. 4, reference numeral 20 denotes a texture, and
四角形21は、回転させていない状態を示している。この場合には、四角形21の外郭線26、27に着目した場合のオブジェクト座標系でのx方向への1ピクセル分の変化に対するテクスチャ20のs座標増分値ds/dx=1、t座標増分値dt/dx=0となり、オブジェクト座標系でのy方向への1ピクセル分の変化に対するオブジェクト20のs座標増分値ds/dy=0、t座標増分値dt/dy=1となる。したがって、この場合のテクスチャ20の使用率は100%である。
A
四角形22は、四角形21を回転させたものであり、四角形22の外郭線26、27に着目した場合のオブジェクト座標系でのx方向への1ピクセル分の変化に対するテクスチャ20のs座標増分値ds/dx=1.1、t座標増分値dt/dx=−0.1、オブジェクト座標系でのy方向への1ピクセル分の変化に対するテクスチャ20のs座標増分値ds/dy=0、t座標増分値dt/dy=1の状態を示している。この場合のテクスチャ20の使用率は約80%である。
The
四角形23は、四角形21を四角形22以上に回転させたものであり、四角形23の外郭線26、27に着目した場合のオブジェクト座標系でのx方向への1ピクセル分の変化に対するテクスチャ20のs座標増分値ds/dx=1.5、t座標増分値dt/dx=−0.3、オブジェクト座標系でのy方向への1ピクセル分の変化に対するオブジェクト20のs座標増分値ds/dy=0、t座標増分値dt/dy=1の状態を示している。この場合のテクスチャ20の使用率は約50%である。
The
四角形24は、四角形21を四角形23以上に回転させたものであり、四角形24の外郭線26、27に着目した場合のオブジェクト座標系でのx方向への1ピクセル分の変化に対するオブジェクト20のs座標増分値ds/dx=2.2、t座標増分値dt/dx=−0.5、オブジェクト座標系でのy方向への1ピクセル分の変化に対するオブジェクト20のs座標増分値ds/dy=0、t座標増分値dt/dy=1の状態を示している。この場合のテクスチャ20の使用率は約30%である。
The
四角形25は、四角形21を四角形24以上に回転させたものであり、四角形25の外郭線26、27に着目した場合のオブジェクト座標系でのx方向への1ピクセル分の変化に対するオブジェクト20のs座標増分値ds/dx=4、t座標増分値dt/dx=−0.7、オブジェクト座標系でのy方向への1ピクセル分の変化に対するオブジェクト20のs座標増分値ds/dy=0、t座標増分値dt/dy=1の状態を示している。この場合のテクスチャ20の使用率は約20%である。
The
このように、テクスチャ貼り付け図形が斜めに描画されるほど、必要とするテクスチャデータ量は少なくなるが、図3に示す従来の画像処理装置6では、キャッシュメモリ15を有効とする場合において、演算部9が演算したテクスチャ座標(s、t)のテクスチャデータがキャッシュメモリ15にない場合には、テクスチャを貼り付ける図形に使用するテクスチャデータ量が少ない場合であっても、外部メモリ5から所定の大きさのブロック単位でのテクスチャデータのキャッシュメモリ15へのキャッシングが行われることになるので、これがテクスチャ・マッピングの高速化を妨げ、描画速度の低下を招くことになる。テクスチャを貼り付ける図形が小さく描画される場合も同様である。
As described above, the more the texture pasted figure is drawn diagonally, the smaller the required texture data amount. However, in the conventional image processing apparatus 6 shown in FIG. When the texture data of the texture coordinates (s, t) calculated by the unit 9 is not in the
なお、テクスチャを貼り付ける図形が斜めに描画される場合や小さく描画される場合には、あらかじめ用意しておいた小さなテクスチャを貼り付けるというミップマップ技術が知られているが、このミップマップ技術を使用する場合には、オリジナルのテクスチャを1/2、1/4、1/8などに縮小したテクスチャが必要となり、外部メモリ5に格納するテクスチャデータ量が多くなるため、外部メモリ5として、容量が大きく、価格の高いメモリを使用しなければならないという問題点が発生する。
In addition, when the figure to which the texture is pasted is drawn diagonally or is drawn small, the mipmap technology of pasting a small texture prepared in advance is known, but this mipmap technology is When used, a texture obtained by reducing the original texture to 1/2, 1/4, 1/8 or the like is required, and the amount of texture data stored in the
本発明は、かかる点に鑑み、テクスチャ貼り付ける図形のテクスチャデータ使用率が所定値未満と低く、外部メモリからのテクスチャデータのキャッシュメモリへのキャッシングを行うと、むしろテクスチャ・マッピングの高速化の妨げになる外部メモリからキャッシュメモリへのテクスチャデータのキャッシングを避け、描画速度の向上を図ることができるようにした画像処理装置を提供することを目的とする。 In view of this point, the present invention has a low texture data usage rate of a figure to be textured, which is less than a predetermined value. If caching of texture data from an external memory to the cache memory is performed, it is rather difficult to increase the speed of texture mapping. An object of the present invention is to provide an image processing apparatus capable of avoiding caching of texture data from an external memory to a cache memory and improving the drawing speed.
本発明は、外部メモリが保持するテクスチャデータの一部を保持するためにキャッシュメモリを備える画像処理装置であって、テクスチャ貼り付け図形ごとにテクスチャデータ使用率が所定値以上であるか否かを判定し、所定値以上の場合は、前記キャッシュメモリを有効とし、所定値未満の場合は、前記キャッシュメモリを無効とする制御部を備えるものである。 The present invention is an image processing apparatus including a cache memory for holding a part of texture data held by an external memory, and whether or not the texture data usage rate is a predetermined value or more for each texture pasting figure. If the determination is greater than or equal to a predetermined value, the cache memory is enabled, and if the value is less than the predetermined value, the cache memory is disabled.
前記制御部は、例えば、前記テクスチャ貼り付け図形ごとに、オブジェクト座標系での縦方向への1ピクセル分の変化及び横方向への1ピクセル分の変化に対するそれぞれの場合のテクスチャの座標増分値から、前記テクスチャデータ使用率が所定値以上であるか否かを判定するように構成される。 The control unit, for example, for each texture pasting figure, from the coordinate increment value of the texture in each case for the change of 1 pixel in the vertical direction and the change of 1 pixel in the horizontal direction in the object coordinate system The texture data usage rate is determined to be greater than or equal to a predetermined value.
本発明によれば、制御部は、テクスチャ貼り付け図形ごとにテクスチャデータ使用率が所定値以上であるか否かを判定し、所定値以上の場合は、キャッシュメモリを有効とし、所定値未満の場合は、キャッシュメモリを無効とする。この結果、外部メモリからのテクスチャデータのキャッシュメモリへのキャッシングは、テクスチャ貼り付け図形のテクスチャデータ使用率が所定値以上の場合にのみ行われ、所定値未満の場合には行われないことになる。 According to the present invention, the control unit determines whether or not the texture data usage rate is equal to or greater than a predetermined value for each texture pasting figure. In this case, the cache memory is invalidated. As a result, caching of the texture data from the external memory to the cache memory is performed only when the texture data usage rate of the texture pasted figure is equal to or greater than a predetermined value, and is not performed when it is less than the predetermined value. .
したがって、テクスチャ貼り付け図形のテクスチャデータ使用率が所定値未満と低く、外部メモリからのテクスチャデータのキャッシュメモリへのキャッシングを行うと、むしろテクスチャ・マッピングの高速化の妨げになる外部メモリからのテクスチャデータのキャッシュメモリへのキャッシングを避け、描画速度の向上を図ることができる。 Therefore, the texture data usage rate of the texture pasted figure is low below a predetermined value, and if texture data is cached from the external memory to the cache memory, the texture from the external memory is rather hindered to speed up the texture mapping. It is possible to improve the drawing speed by avoiding caching of data in the cache memory.
図1は本発明の一実施形態を外部メモリと共に示す図である。図1中、5は前述した外部メモリ、30は本発明の一実施形態であり、本発明の一実施形態30は、図3に示す従来の画像処理装置6が備える演算部7〜9、判定部10、アドレス生成部12、13、セレクタ14、キャッシュメモリ15、セレクタ16及びピクセル加工部17を設けると共に、セレクタ11を削除して、キャッシュメモリ15を有効にするか無効にするかを制御する制御部31を設けている。
FIG. 1 is a diagram showing an embodiment of the present invention together with an external memory. In FIG. 1,
制御部31には、キャッシュメモリ有効/無効境界設定信号が与えられる。このキャッシュメモリ有効/無効境界設定信号は、キャッシュメモリ15を有効にするか無効にするかを決定するための境界値として、テクスチャを貼り付ける三角形のテクスチャデータ使用率を示すものである。
The
また、制御部31には、テクスチャを貼り付ける三角形ごとに、演算部7から、テクスチャを貼り付ける三角形の外郭線に着目した場合のオブジェクト座標系でのy方向への1ピクセル分の変化に対するテクスチャのs座標増分値ds/dy、t座標増分値dt/dyが与えられ、演算部8から、テクスチャを貼り付ける三角形の外郭線に着目した場合のオブジェクト座標系でのx方向への1ピクセル分の変化に対するテクスチャのs座標増分値ds/dx、t座標増分値dt/dxが与えられる。
In addition, the
また、制御部31には、判定部10がキャッシュメモリ15内に演算部9が演算したテクスチャ座標(s、t)のテクスチャデータがないと判定した場合には、判定部10から、演算部9が演算したテクスチャ座標(s、t、q)が与えられる。
If the
制御部31は、判定部10から演算部9が演算したテクスチャ座標(s、t、q)が与えられたときは、演算部7、8から与えられる座標増分値ds/dx、ds/dy、dt/dx、dt/dyから、テクスチャを貼り付ける三角形のテクスチャデータ使用率がキャッシュメモリ有効/無効境界設定信号が示す境界値以上であるか否かを判定し、境界値以上の場合は、キャッシュメモリ15を有効とし、アドレス生成部12に判定部10から与えられたテクスチャ座標(s、t、q)を与え、境界値未満の場合は、キャッシュメモリ15を無効とし、アドレス生成部13に判定部10から与えられたテクスチャ座標(s、t、q)を与えるように構成される。
When the texture coordinates (s, t, q) calculated by the calculation unit 9 are given from the
また、制御部31は、キャッシュメモリ15を有効とし、アドレス生成部12に判定部10から与えられたテクスチャ座標(s、t、q)を与える場合には、選択制御信号SCにより、アドレス生成部12が出力するアドレスを外部メモリ5に与えるようにセレクタ14を制御すると共に、キャッシュメモリ15から読み出されるテクスチャデータをピクセル加工部17に与えるようにセレクタ16を制御し、また、キャッシュメモリ15を無効とし、アドレス生成部13に判定部10から与えられたテクスチャ座標(s、t、q)を与える場合には、選択制御信号SCにより、アドレス生成部13が出力するアドレスを外部メモリ5に与えるようにセレクタ14を制御すると共に、外部メモリ5から読み出されるテクスチャデータをピクセル加工部17に与えるようにセレクタ16を制御するように構成される。
In addition, when the
このように構成された本発明の一実施形態30においては、判定部10が演算部9により演算されたテクスチャ座標(s、t)のテクスチャデータがキャッシュメモリ15にあると判定した場合には、キャッシュメモリ15から、演算部9により演算されたテクスチャ座標(s、t)のテクスチャデータが読み出されてセレクタ16を介してピクセル加工部17に与えられる。
In one embodiment 30 of the present invention configured as described above, when the
これに対して、判定部10が演算部9により演算されたテクスチャ座標(s、t)のテクスチャデータがキャッシュメモリ15にないと判定した場合には、判定部10から制御部31に、演算部9により演算されたテクスチャ座標(s、t、q)が与えられる。
On the other hand, when the
この場合、制御部31は、演算部7、8から与えられる座標増分値ds/dx、ds/dy、dt/dx、dt/dyから、テクスチャを貼り付ける三角形のテクスチャデータ使用率がキャッシュメモリ有効/無効境界設定信号が示す境界値以上であるか否かを判定する。
In this case, the
そして、制御部31は、テクスチャを貼り付ける三角形のテクスチャデータ使用率が境界値以上であると判定した場合には、キャッシュメモリ15を有効とし、アドレス生成部12に判定部10から与えられたテクスチャ座標(s、t、q)を与える。
If the
この結果、アドレス生成部12は、テクスチャ座標(s、t)のテクスチャデータを含む所定の大きさのブロックのテクスチャデータを外部メモリ5から読み出すために必要なアドレスを生成して出力する。そして、これに応じて、テクスチャ座標(s、t)のテクスチャデータを含む所定の大きさのブロックのテクスチャデータが外部メモリ5から読み出されてキャッシュメモリ15にキャッシングされ、その後、テクスチャを貼り付ける三角形に使用するテクスチャデータがキャッシュメモリ15から読み出されてピクセル加工部17に与えられる。
As a result, the
これに対して、制御部31がテクスチャを貼り付ける三角形のテクスチャデータ使用率が境界値未満であると判定した場合には、制御部31は、キャッシュメモリ15を無効とし、アドレス生成部13に判定部10から与えられたテクスチャ座標(s、t、q)を与える。
On the other hand, when the
この結果、アドレス生成部13は、テクスチャ座標(s、t)のテクスチャデータを外部メモリ5から読み出すために必要なアドレスを生成して出力する。そして、これに応じて、テクスチャ座標(s、t)のテクスチャデータが外部メモリ5から読み出されてピクセル加工部17に与えられる。即ち、この場合には、テクスチャを貼り付ける三角形の内部のピクセルごとのテクスチャデータが外部メモリ5からピクセル加工部17に与えられることになる。
As a result, the
以上のように、本発明の一実施形態30によれば、テクスチャを貼り付ける三角形ごとに、テクスチャデータ使用率が境界値以上であるか否かを判定し、境界値以上の場合は、キャッシュメモリ15を有効とし、境界値未満の場合は、キャッシュメモリ15を無効とする制御部31を備えるとしているので、外部メモリ5からのテクスチャデータのキャッシュメモリ15へのキャッシングは、テクスチャを貼り付ける三角形のテクスチャデータ使用率が境界値以上の場合にのみ行われ、境界値未満の場合には行われない。
As described above, according to the embodiment 30 of the present invention, for each triangle to which a texture is pasted, it is determined whether or not the texture data usage rate is equal to or higher than the boundary value. 15 is valid, and if it is less than the boundary value, the
したがって、テクスチャを貼り付ける三角形のテクスチャデータ使用率が境界値未満と低く、外部メモリ5からのテクスチャデータのキャッシュメモリ15へのキャッシングを行うと、むしろテクスチャ・マッピングの高速化の妨げになる外部メモリ5からのテクスチャデータのキャッシュメモリ15へのキャッシングを避け、描画速度の向上を図ることができる。
Therefore, if the texture data usage rate of the triangle to which the texture is pasted is as low as less than the boundary value, and the caching of the texture data from the
なお、本発明の一実施形態30においては、キャッシュメモリ有効/無効境界設定信号は、キャッシュメモリ15を有効にするか無効にするかを決定するための境界値として、テクスチャを貼り付ける三角形のテクスチャデータ使用率を示すものとしたが、この代わりに、座標増分値ds/dy、ds/dx、dt/dy、dt/dxを示すものとし、制御部31は、演算部7、8から与えられる座標増分値ds/dy、ds/dx、dt/dy、dt/dxとキャッシュメモリ有効/無効境界設定信号が示す座標増分値ds/dy、ds/dx、dt/dy、dt/dxを比較してテクスチャデータ使用率を判断し、キャッシュメモリを有効とするか無効とするかを判定するように構成しても良い。
In the embodiment 30 of the present invention, the cache memory valid / invalid boundary setting signal is a triangular texture to which a texture is pasted as a boundary value for determining whether the
また、ミップマップ技術を使用し、制御部31において、演算部7、8から与えられる座標増分値ds/dy、ds/dx、dt/dy、dt/dxからミップマップレベルを算出するとしている場合には、算出したミップマップレベルの大きさにより、キャッシュメモリ15を有効とするか無効とするかを判定するようにしても良い。
When the mipmap technique is used and the
1…三角形
2…テクスチャ
5…外部メモリ
6…従来の画像処理装置の一例
7〜9…演算部
10…判定部
11…セレクタ
12、13…アドレス生成部
14…セレクタ
15…キャッシュメモリ
16…セレクタ
17…ピクセル加工部
20…テクスチャ
21〜25…四角形
26、27…外郭線
30…本発明の一実施形態
31…制御部
DESCRIPTION OF
Claims (2)
テクスチャ貼り付け図形ごとにテクスチャデータ使用率が所定値以上であるか否かを判定し、所定値以上の場合は、前記キャッシュメモリを有効とし、所定値未満の場合は、前記キャッシュメモリを無効とする制御部を備える
ことを特徴とする画像処理装置。 An image processing apparatus including a cache memory for holding a part of texture data held by an external memory,
It is determined whether or not the texture data usage rate is greater than or equal to a predetermined value for each texture pasting figure. If the texture data usage rate is greater than or equal to the predetermined value, the cache memory is validated. An image processing apparatus comprising: a control unit that performs the operation.
ことを特徴とする請求項1記載の画像処理装置。 The control unit, for each texture pasting figure, from the coordinate increment value of the texture in each case with respect to a change of 1 pixel in the vertical direction and a change of 1 pixel in the horizontal direction in the object coordinate system, The image processing apparatus according to claim 1, wherein it is determined whether the texture data usage rate is equal to or greater than a predetermined value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006235272A JP4784446B2 (en) | 2006-08-31 | 2006-08-31 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006235272A JP4784446B2 (en) | 2006-08-31 | 2006-08-31 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008059266A true JP2008059266A (en) | 2008-03-13 |
JP4784446B2 JP4784446B2 (en) | 2011-10-05 |
Family
ID=39241930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006235272A Expired - Fee Related JP4784446B2 (en) | 2006-08-31 | 2006-08-31 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4784446B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014517395A (en) * | 2011-09-29 | 2014-07-17 | テンセント テクノロジー (シェンツェン) カンパニー リミテッド | Image browsing method, system, and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06348857A (en) * | 1993-06-04 | 1994-12-22 | Toshiba Corp | Graphic plotting processor |
JPH09282135A (en) * | 1996-04-11 | 1997-10-31 | Hitachi Ltd | Plotting data fetching method and graphic processor |
JPH1011594A (en) * | 1996-06-27 | 1998-01-16 | Sony Corp | Picture generation device and data compression method |
JPH10334273A (en) * | 1997-06-05 | 1998-12-18 | Sharp Corp | Three-dimension image processing unit and three-dimension image processing method |
JP2003196674A (en) * | 2001-12-25 | 2003-07-11 | Mega Chips Corp | Image processing method, image processing device and storage medium readable by computer |
-
2006
- 2006-08-31 JP JP2006235272A patent/JP4784446B2/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06348857A (en) * | 1993-06-04 | 1994-12-22 | Toshiba Corp | Graphic plotting processor |
JPH09282135A (en) * | 1996-04-11 | 1997-10-31 | Hitachi Ltd | Plotting data fetching method and graphic processor |
JPH1011594A (en) * | 1996-06-27 | 1998-01-16 | Sony Corp | Picture generation device and data compression method |
JPH10334273A (en) * | 1997-06-05 | 1998-12-18 | Sharp Corp | Three-dimension image processing unit and three-dimension image processing method |
JP2003196674A (en) * | 2001-12-25 | 2003-07-11 | Mega Chips Corp | Image processing method, image processing device and storage medium readable by computer |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014517395A (en) * | 2011-09-29 | 2014-07-17 | テンセント テクノロジー (シェンツェン) カンパニー リミテッド | Image browsing method, system, and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
JP4784446B2 (en) | 2011-10-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100703709B1 (en) | Apparatus and method for processing graphics, and computer readable medium storing the same | |
US8704826B1 (en) | Primitive re-ordering between world-space and screen-space pipelines with buffer limited processing | |
US9134954B2 (en) | GPU memory buffer pre-fetch and pre-back signaling to avoid page-fault | |
US6891543B2 (en) | Method and system for optimally sharing memory between a host processor and graphics processor | |
KR101983833B1 (en) | Method and apparatus for providing shared caches | |
JP3645024B2 (en) | Drawing apparatus and drawing method | |
JP2011129109A (en) | Forming windowing display in frame buffer | |
US10783694B2 (en) | Texture residency checks using compression metadata | |
US10769837B2 (en) | Apparatus and method for performing tile-based rendering using prefetched graphics data | |
US11720499B2 (en) | Selective generation of miss requests for cache lines | |
US8830249B2 (en) | Accelerated texture lookups using texture coordinate derivatives | |
TWI395152B (en) | A graphics processing unit and a method of processing border color information | |
JP4784446B2 (en) | Image processing device | |
US20050195200A1 (en) | Embedded system with 3D graphics core and local pixel buffer | |
US11562459B2 (en) | Selectively writing back dirty cache lines concurrently with processing | |
US20200159664A1 (en) | Low latency dirty ram for cache invalidation speed improvement | |
JP5845910B2 (en) | Image drawing apparatus, image drawing program, and image drawing method | |
JP2007248647A (en) | Painting-out processor, graphic display device, and painting-out processing method | |
JP3971448B2 (en) | Drawing apparatus and drawing method | |
JP2004133608A (en) | Image forming device | |
JP2003281564A (en) | Image generating device | |
CN117994431A (en) | Basic graphic element pickup method and device, electronic equipment and storage medium | |
JPH0962853A (en) | Graphic processor and graphic processing system | |
JP2008282208A (en) | Paint-out processing device, graphic display device and paint-out processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20080730 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090427 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110322 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110520 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110614 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110627 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4784446 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140722 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |