JP4863306B2 - Vector image drawing apparatus, vector image drawing method and program - Google Patents
Vector image drawing apparatus, vector image drawing method and program Download PDFInfo
- Publication number
- JP4863306B2 JP4863306B2 JP2008153346A JP2008153346A JP4863306B2 JP 4863306 B2 JP4863306 B2 JP 4863306B2 JP 2008153346 A JP2008153346 A JP 2008153346A JP 2008153346 A JP2008153346 A JP 2008153346A JP 4863306 B2 JP4863306 B2 JP 4863306B2
- Authority
- JP
- Japan
- Prior art keywords
- vector
- bounding box
- area
- graphic
- queue
- 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
Links
- 238000000034 method Methods 0.000 title claims description 69
- 230000008569 process Effects 0.000 claims description 55
- 238000006243 chemical reaction Methods 0.000 claims description 44
- 238000004364 calculation method Methods 0.000 claims description 23
- 230000009466 transformation Effects 0.000 claims description 15
- 230000008707 rearrangement Effects 0.000 description 35
- 239000011159 matrix material Substances 0.000 description 9
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Images
Landscapes
- Image Generation (AREA)
Description
本発明は、ベクターイメージを表示するためのベクターイメージ描画装置、ベクターイメージ描画方法およびプログラムに関する。 The present invention relates to a vector image drawing apparatus, a vector image drawing method, and a program for displaying a vector image.
データ化されたイメージに対して、ベクタースキャン(スクリーンにレーザなどで図形を描く処理)やラスタースキャン(走査線で順次画素を描く処理)などの処理を実行することでディスプレイ上に画像を表示することが行われており、前記データ化されたイメージを描画する手法として、ベクターグラフィックスがある。このベクターグラフィックスによれば、直線、ベジェ曲線、楕円弧といったベクター図形がデータ化されることで、ベクターイメージが描画されるようになっている。
ベクターイメージの描画を行う装置として、受け取った描画命令に対して複数のステージが一連の処理を行うパイプを備えた描画装置があり、特許文献1、2、3には、ベクター図形の色変換、ベクター図形の拡大・縮小処理、ベクター図形の回転などの処理を行うステージを備えたパイプが開示されている。
The image is displayed on the display by performing processing such as vector scan (processing that draws a figure on the screen with a laser) or raster scan (processing that draws pixels sequentially with scanning lines) on the data image. As a technique for drawing the data image, there is vector graphics. According to the vector graphics, vector images such as straight lines, Bezier curves, elliptical arcs are converted into data, and a vector image is drawn.
As an apparatus for drawing a vector image, there is a drawing apparatus including a pipe in which a plurality of stages perform a series of processes in response to a received drawing command. A pipe having a stage for performing processing such as vector graphic enlargement / reduction processing and vector graphic rotation is disclosed.
また、ベクターイメージの描画速度を向上させる技術として、以下の技術がある。 Further, there are the following techniques for improving the drawing speed of vector images.
例えば特許文献4には、描画データをビットマップデータに展開する互いに並列処理可能な複数のラスタライザと、各ラスタライザに文字描画命令を渡す制御装置とを備えた画像処理装置が開示されている。この画像処理装置においては、制御装置が、文字の生成処理が終了したラスタライザに描画命令を送ることで、各ラスタライザで処理待ちが発生することを防止している。 For example, Patent Document 4 discloses an image processing apparatus that includes a plurality of rasterizers that can perform parallel processing on each other to render drawing data into bitmap data, and a control device that passes a character drawing command to each rasterizer. In this image processing apparatus, the control device sends a drawing command to the rasterizer for which the character generation processing has been completed, thereby preventing waiting for processing in each rasterizer.
また特許文献5には、互いに異なるオブジェクトの処理を行う複数のパイプと、各パイプのステージの順序をソートするトポロジーソータとが設けられた装置が開示されている。この装置においては、トポロジーソータは、各パイプの全てのステージで処理が実行されるように、各パイプのステージの順序をソートすることで、パイプの処理時間の短縮を図っている。
参考文献1(Open VG Specification Version 1.01 2007年1月26日、pp.4-6)には、ベクターイメージの描画装置の一例が記載されており、この描画装置の構成は、図7に示すように解釈される。図7に示す描画装置60は、ベクターグラフィックスアプリケーション61、ベクターグラフィックスライブラリ62、ドライバ63、ベクターグラフィックスアクセラレータ64で構成されている。ベクターグラフィックスライブラリ62は、DMA(Direct Memory Access)コマンド生成手段65を含んでいる。この描画装置60では、ベクターグラフィックスアプリケーション61が、直線、ベジェ曲線、楕円弧といったベクター図形を形作る情報6(以下、パス6と記す)、座標変換行列7、属性8を、ベクターグラフィックスライブラリ62に送る。
Reference 1 (Open VG Specification Version 1.01 January 26, 2007, pp.4-6) describes an example of a vector image drawing device. The configuration of this drawing device is shown in FIG. To be interpreted. The drawing device 60 shown in FIG. 7 includes a
ベクターグラフィックスライブラリ62のDMAコマンド生成手段65は、それらの情報から、ベクターグラフィックスアクセラレータ64への命令方式のコマンドであるDMAコマンドAを作成する。そして、ベクターグラフィックスライブラリ62は、DMAコマンドAをドライバ63に送る。ドライバ63は、受け取ったDMAコマンドAを、シーケンシャルにベクターグラフィックスアクセラレータ64に送る。 The DMA command generation means 65 of the vector graphics library 62 creates a DMA command A that is an instruction-type command to the vector graphics accelerator 64 from the information. Then, the vector graphics library 62 sends a DMA command A to the driver 63. The driver 63 sends the received DMA command A to the vector graphics accelerator 64 sequentially.
ベクターグラフィックスアクセラレータ64は、受け取ったDMAコマンドAを順次処理して、ベクターイメージを描画するためのベクター図形の描画処理を行う。ベクターグラフィックスアクセラレータ64は、DMAコマンドAに対して一連の処理を行う複数のステージを備えたパイプであり、DMAコマンドAが下位のステージへ移って初期ステージが待機状態になることに応じて、新たなDMAコマンドAが初期ステージに投入されるようになっている。 The vector graphics accelerator 64 sequentially processes the received DMA command A, and performs a drawing process of a vector figure for drawing a vector image. The vector graphics accelerator 64 is a pipe having a plurality of stages for performing a series of processing on the DMA command A. In response to the DMA command A moving to a lower stage and the initial stage becoming a standby state, A new DMA command A is input to the initial stage.
ここで、ベクター図形の描画を行うパイプにおいて、各ステージがDMAコマンドを処理する時間は、該DMAコマンドの処理により描画されるベクター図形(以下、描画対象のベクター図形)の大きさに比例する。このため、描画対象のベクター図形の大きさが大きく異なるDMAコマンドがパイプに連続して投入された場合には、先行のDMAコマンドに対して上位のステージが処理を行う時間と、後行のDMAコマンドに対して下位のステージが処理を行う時間との間で大きな差が生じる。これにより、下位のステージへのDMAコマンドの移動が迅速に行われず、パイプにおける各ステージの待ち時間の総和が大きくなる。この結果、パイプ全体の処理時間が長くなるという問題が生じる。 Here, in the pipe for drawing a vector graphic, the time for each stage to process the DMA command is proportional to the size of the vector graphic (hereinafter, the vector graphic to be drawn) drawn by the DMA command processing. For this reason, when DMA commands having greatly different vector graphics sizes to be drawn are continuously input to the pipe, the time required for the upper stage to process the preceding DMA command and the subsequent DMA command. There is a large difference between the time when the lower stage processes the command. As a result, the DMA command is not quickly moved to the lower stage, and the total waiting time of each stage in the pipe is increased. As a result, the problem that the processing time of the whole pipe becomes long arises.
本発明は上述のような状況に鑑みてなされたもので、パイプの描画処理時間を短縮させることが可能なベクターイメージ描画装置、ベクターイメージ描画方法およびプログラムを提供することを目的とする。 The present invention has been made in view of the above situation, and an object of the present invention is to provide a vector image drawing apparatus, a vector image drawing method, and a program capable of reducing pipe drawing processing time.
上記の目的を達成するために、本発明の第1の観点に係るベクターイメージ描画装置は、
ベクターイメージを描画するためのベクター図形を囲む図形であるバウンディングボックスを生成する領域図形生成手段と、
前記領域図形生成手段で生成した前記バウンディングボックスの面積を算出する面積演算手段と、
前記ベクター図形の描画処理を実行するためのコマンドを待ち行列内に配置するとともに、前記待ち行列内で隣り合う2つの前記コマンド毎に、描画対象の前記ベクター図形を囲む前記バウンディングボックスの面積の差の絶対値を求めて、該絶対値の総和が最小になるように、前記待ち行列内の前記コマンドの順序を変更するドライバと、
前記待ち行列内に配置された前記コマンドを、先頭の前記コマンドから順に受け取って、前記ベクター図形の描画処理を行うアクセラレータと、
を備えることを特徴とする。
In order to achieve the above object, a vector image drawing apparatus according to the first aspect of the present invention includes:
A region figure generating means for generating a bounding box is a figure that surrounds the base compactors figure for drawing the vector image,
Area calculating means for calculating the area of the bounding box generated by the area graphic generating means;
A command for executing the drawing process of the vector graphic is arranged in a queue, and the difference in the area of the bounding box surrounding the vector graphic to be drawn is set for each of the two adjacent commands in the queue. A driver that changes the order of the commands in the queue so that the sum of the absolute values is minimized.
An accelerator that receives the commands arranged in the queue in order from the top command and performs the drawing process of the vector graphic;
It is characterized by providing.
本発明の第2の観点に係るベクターイメージ描画方法は、
ベクターイメージ描画装置がベクターイメージを描画するためにベクター図形の描画処理を行う描画方法であって、
領域図形生成手段が、ベクターイメージを描画するためのベクター図形を囲む図形であるバウンディングボックスを生成する領域図形生成ステップと、
面積演算手段が、前記領域図形生成ステップで生成した前記バウンディングボックスの面積を算出する面積演算ステップと、
ドライバが、前記ベクター図形の描画処理を実行するためのコマンドを待ち行列内に配置するとともに、前記待ち行列内で隣り合う2つの前記コマンド毎に、描画対象の前記ベクター図形を囲む前記バウンディングボックスの面積の差の絶対値を求めて、該絶対値の総和が最小になるように、前記待ち行列内の前記コマンドの順序を変更するコマンド配置ステップと、
アクセラレータが、前記待ち行列内に配置された前記コマンドを、先頭の前記コマンドから順に受け取って、前記ベクター図形の描画処理を行う描画ステップと、
を備えることを特徴とする。
A vector image drawing method according to a second aspect of the present invention includes:
A drawing method in which a vector image drawing apparatus performs drawing processing of a vector figure in order to draw a vector image,
An area graphic generation means for generating a bounding box that is a graphic surrounding a vector graphic for drawing a vector image ;
An area calculating means for calculating an area of the bounding box generated in the region graphic generating step;
The driver places a command for executing the drawing process of the vector graphic in the queue, and for each of the two adjacent commands in the queue, the driver includes the bounding box surrounding the vector graphic to be drawn. A command placement step of obtaining an absolute value of the difference in area and changing the order of the commands in the queue so that the sum of the absolute values is minimized;
A drawing step in which an accelerator receives the commands arranged in the queue in order from the top command, and performs drawing processing of the vector graphic;
It is characterized by providing.
本発明の第3の観点に係るプログラムは、コンピュータを、
ベクターイメージを描画するためのベクター図形を囲む図形であるバウンディングボックスを生成する領域図形生成手段、
前記領域図形生成手段で生成した前記バウンディングボックスの面積を算出する面積演算手段、
前記ベクター図形の描画処理を実行するためのコマンドを待ち行列内に配置するとともに、前記待ち行列内で隣り合う2つの前記コマンド毎に、描画対象の前記ベクター図形を囲む前記バウンディングボックスの面積の差の絶対値を求めて、該絶対値の総和が最小になるように、前記待ち行列内の前記コマンドの順序を変更するドライバ、
前記待ち行列内に配置された前記コマンドを、先頭の前記コマンドから順に受け取って、前記ベクター図形の描画処理を行うアクセラレータ、
として機能させることを特徴とする。
A program according to a third aspect of the present invention provides a computer,
Area graphic generation means for generating a bounding box that is a graphic surrounding a vector graphic for drawing a vector image ;
Area calculating means for calculating the area of the bounding box generated by the area graphic generating means ;
A command for executing the drawing process of the vector graphic is arranged in a queue, and the difference in the area of the bounding box surrounding the vector graphic to be drawn is set for each of the two adjacent commands in the queue. A driver that changes the order of the commands in the queue so that the sum of the absolute values is minimized.
An accelerator that receives the commands arranged in the queue in order from the top of the commands and performs the drawing process of the vector graphic;
It is made to function as.
本発明のベクターイメージ描画装置によれば、待ち行列内の描画処理の順序は、隣り合う処理どうしのバウンディングボックスの面積の差の総和が最小となる順序に設定されるため、待ち行列内で隣り合う処理の間における描画対象のベクター図形の大きさの差は小さくなる。これにより、パイプが連続して処理するベクター図形の大きさの変化は小さく抑えられるため、パイプの各ステージにおける処理時間のばらつきが小さく抑えられて、上位のステージから下位のステージへ描画処理が迅速に移行して、パイプにおける各ステージの待ち時間の総和が小さくなる。この結果、パイプの描画処理時間が短くなる。 According to the vector image drawing apparatus of the present invention, the order of drawing processes in the queue is set to an order that minimizes the sum of the differences in bounding box areas between adjacent processes. The difference in the size of the vector graphic to be drawn between matching processes is reduced. As a result, the change in the size of the vector figure that the pipe continuously processes can be kept small, so that variations in the processing time at each stage of the pipe can be kept small, and drawing processing from the upper stage to the lower stage can be performed quickly. The total waiting time of each stage in the pipe becomes smaller. As a result, the pipe drawing processing time is shortened.
以下、この発明の実施の形態について図面を参照しながら詳細に説明する。なお、図中同一または相当部分には同一符号を付し、その説明は繰り返さない。端瑞 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals, and description thereof will not be repeated. Hazuki
図1は、本発明の実施の形態に係るベクターイメージ描画装置1の構成の一例を示すブロック図である。
FIG. 1 is a block diagram showing an example of a configuration of a vector
ベクターイメージ描画装置1は、ベクターグラフィックス(以下、VGという)アプリケーション2と、VGライブラリ3と、ドライバ4と、VGアクセラレータ5とを備える。
The vector
VGライブラリ3は、バウンディングボックス計算部31と、座標変換部32と、DMAコマンド生成部33とを含む。ドライバ4は、DMAコマンド並べ替え部41を含む。
The VG
次に、図1を参照してベクターイメージ描画装置1の動作について説明する。
Next, the operation of the vector
VGアプリケーション2は、直線、ベジェ曲線、楕円弧といったベクター図形を形作る情報であるパス6、座標変換行列7、色や線幅などの属性8を生成して、VGライブラリ3に送る。
The
VGライブラリ3がパス6を受け取ると、バウンディングボックス計算部31は、パス6を解析して、バウンディングボックス10を生成する。図2は、バウンディングボックス10の一例を示している。図2において、9はパス6によって形作られるベクター図形を示しており、該ベクター図形9を囲むようにバウンディングボックス10が生成されている。
When the
図1を参照して、座標変換部32は、バウンディングボックス計算部31によって生成されたバウンディングボックス10の4隅の頂点10a(図2参照)の座標それぞれに対して、座標変換行列7を掛けて、4隅の頂点10aの座標変換を行う。この座標変換により、バウンディングボックス10の拡大縮小・回転・移動が行われる。座標変換行列7は、バウンディングボックス10の拡大縮小を図る変換行列と、バウンディングボックス10の回転を図る変換行列と、バウンディングボックス10の移動を図る変換行列とが合成されたものになっている。
Referring to FIG. 1, the coordinate
そして、座標変換部32は、座標変換されたバウンディングボックスの4隅の頂点に基づき、座標変換されたバウンディングボックスの面積Sを算出する。
Then, the coordinate
また、DMAコマンド生成部33は、パス6、座標変換行列7、属性8を、VGアクセラレータ5への命令形式のコマンドであるDMAコマンドAに変換する。
Further, the DMA
そして、VGライブラリ3は、座標変換部32によって座標変換されたバウンディングボックスの面積Sと、DMAコマンド生成部33によって生成されたDMAコマンドAとを、ドライバ4に渡す。この際、VGライブラリ3からドライバ4に渡されたDMAコマンドAは、VGアクセラレータ5の処理順序を設定するための待ち行列Bに配置される。以下、特定のDMAコマンドAに対して、このDMAコマンドAと共にVGライブラリ3からドライバ4に送られたバウンディングボックスの面積Sを、DMAコマンドAに対応するバウンディングボックスの面積Sと適宜記す。
Then, the
そして、VGアクセラレータ5は、待ち行列B内に配置されたDMAコマンドAを、先頭のDMAコマンドAから順に受け取ってベクター図形の描画処理を行う。
Then, the
ここで、VGアクセラレータ5は、DMAコマンドAに対して一連の処理を行う複数のステージを備えたパイプとなっている。このパイプには、DMAコマンドAの描画対象となるベクター図形の座標変換処理を行うステージが含まれており、これ以降のステージでは前記座標変換処理が行われたベクター図形に対して処理が実行されるようになっている。
Here, the
そして座標変換部32により4隅10aが座標変換されたバウンディングボックスは、前記座標変換処理が行われたベクター図形を囲むようになっている。これに基づき本実施形態では、前記座標変換されたバウンディングボックスの面積Sを、前記座標変換処理が行われたベクター図形の大きさを表す指標と位置づけ、VGアクセラレータ5が連続して処理するベクター図形の大きさの変化を小さくすべく、待ち行列B内のDMAコマンドAの順序を、バウンディングボックスの面積Sに応じて並び替えるようになっている。具体的には、ドライバ4がバウンディングボックスの面積SとDMAコマンドAとを受け取ると、DMAコマンド並べ替え部41は、ドライバ4が受け取ったバウンディングボックスの面積Sと、VGアクセラレータ5が処理中のDMAコマンドAに対応するバウンディングボックスの面積Sと、待ち行列B内に既に配置されていたDMAコマンドAに対応するバウンディングボックスの面積Sとを基に、待ち行列B内のDMAコマンドAの順序を変更する。より具体的には、DMAコマンド並べ替え部41は、VGアクセラレータ5がドライバ4から最後に受け取ったDMAコマンドAを含めて、待ち行列B内で隣り合うDMAコマンドAどうしのバウンディングボックスの面積Sの差の総和が最小になるように、待ち行列B内のDMAコマンドAの順序を変更する。
The bounding box whose coordinates of the four
図3は、本実施の形態に係るベクターイメージ描画装置1の物理的な構成の一例を示すブロック図である。本発明に係るベクターイメージ描画装置1は、一般的なコンピュータ装置と同様のハードウェア構成によって実現することができる。ベクターイメージ描画装置1は、図3に示すように、制御部51、主記憶部52、外部記憶部53、操作部54、表示装置55および入出力部56を備える。主記憶部52、外部記憶部53、操作部54、表示装置55および入出力部56はいずれも内部バス50を介して制御部51に接続されている。
FIG. 3 is a block diagram illustrating an example of a physical configuration of the vector
制御部51は、CPU(Central Processing Unit)等から構成され、外部記憶部53に記憶されているプログラムに従って、ベクターイメージを描画するための処理を実行する。
The
主記憶部52は、RAM(Random-Access Memory)等から構成され、外部記憶部53に記憶されているプログラムをロードし、制御部51の作業領域として用いられる。図1に示したパス6、座標変換行列7、属性8、面積S、DMAコマンドAは、主記憶部52の中に記憶される。
The
外部記憶部53は、フラッシュメモリ、ハードディスク、DVD−RAM(Digital Versatile Disc Random-Access Memory)、DVD−RW(Digital Versatile Disc ReWritable)等の不揮発性メモリから構成され、前記の処理を制御部51に行わせるためのプログラムを予め記憶し、また、制御部51の指示に従って、このプログラムが記憶するデータを制御部51に供給し、制御部51から供給されたデータを記憶する。
The
操作部54はキーボードおよびマウスなどのポインティングデバイス等と、キーボードおよびポインティングデバイス等を内部バス50に接続するインターフェース装置から構成されている。操作部54を介して、ベクターイメージの作成、入力、送受信などの指示、表示するベクターイメージの指定、描画領域の範囲、拡大率、描画領域の表示装置における位置などが入力され、制御部51に供給される。
The
表示装置55は、CRT(Cathode Ray Tube)またはLCD(Liquid Crystal Display)などから構成され、描画されたベクターイメージを表示する。
The
入出力部56は、無線送受信機、無線モデムまたは網終端装置、およびそれらと接続するシリアルインタフェースまたはLAN(Local Area Network)インタフェース等から構成されている。入出力部56を介して、ベクターイメージを受信し、また送信できる。 The input / output unit 56 includes a wireless transceiver, a wireless modem or network termination device, and a serial interface or a LAN (Local Area Network) interface connected thereto. The vector image can be received and transmitted via the input / output unit 56.
本発明によるベクターイメージ描画装置1は、上記のベクターイメージを描画する機能を実現する回路を組み込んだLSI(Large Scale Integration)等のハードウェア部品から構成される回路を実装して、電子回路として構成することができる。
A vector
また本発明によるベクターイメージ描画装置1は、上記のベクターイメージを描画する機能をプログラミングにより実現することが可能なLSIであるFPGA(Field Programmable Gate Array)を実装していてもよい。
Further, the vector
また、上記の各機能を行うベクターイメージ描画プログラムを、コンピュータ処理装置上の制御部51で実行することにより、ソフトウェア的にベクターイメージ描画装置1を実現することができる。その場合、制御部51のCPUは、外部記憶部53に格納されているベクターイメージ描画プログラムを、主記憶部52にロードして実行し、各部の動作を制御して上記の各機能を行わせることによって、ベクターイメージ描画装置1をソフトウェア的に実現する。
Moreover, the vector
次に、ドライバ4のDMAコマンド並べ替え部41が実行するDMAコマンドAの並べ替え処理のアルゴリズムを、具体的に説明する。なお、DMAコマンドAの並べ替え処理は、ベクターイメージ描画プログラムが、主記憶部52、外部記憶部53、操作部54、表示装置55および入出力部56を資源として用いて、制御部51の上で動作することによって行う。
Next, the algorithm of the DMA command A rearrangement process executed by the DMA
図4は、DMAコマンドAの並べ替え処理の動作の一例を示すフローチャートであり、図5は、図4の処理による並べ替え操作を説明する図である。 FIG. 4 is a flowchart showing an example of the operation of the rearrangement process of the DMA command A, and FIG. 5 is a diagram for explaining the rearrangement operation by the process of FIG.
図5は、VGアクセラレータ5によって、DMAコマンドA1を処理しているときに、DMAコマンドA2、A3、A4が待ち行列Bに順次送られていく状態を示している。以下では、図4に示す並び替え処理について、図5に示すようにDMAコマンドA2、A3、A4が待ち行列Bに送られる際に実行される処理を例に説明する。なお図5では、待ち行列Bの深さは3段(待ち行列B内に3つのDMAコマンドAが配置できる状態)になっている。また、DMAコマンドAを示す四角の内部に表示された数字は、各DMAコマンドAと同時にドライバ4に送られたバウンディングボックスの面積Sを示している。DMAコマンドA1、A2、A3、A4に対応するバウンディングボックスの面積Sは、それぞれ5、1、3、2になっている。
FIG. 5 shows a state in which DMA commands A2, A3, and A4 are sequentially sent to the queue B when the
まず、図5の301に示すように、DMAコマンドA2が待ち行列Bに送られると、すなわちドライバ4がDMAコマンドA2を受け取ると(ステップS201)、DMAコマンド並べ替え部41は、待ち行列Bが空であるか否かを判断する(ステップS202)。この際、ステップS202では、待ち行列Bが空であることからYESと判断して、待ち行列Bの先頭にDMAコマンドA2を配置して(ステップS203)、図4に示す処理を終了する。
First, as shown by 301 in FIG. 5, when the DMA command A2 is sent to the queue B, that is, when the driver 4 receives the DMA command A2 (step S201), the DMA
次に図5に示す302のように、DMAコマンドA3が待ち行列Bに送られてくると、すなわちドライバ4がDMAコマンドA3を受け取ると(ステップS201)、続くステップS202では、待ち行列BにDMAコマンドA2が既に配置されていることから、NOと判断して、ステップS204に移行する。 Next, as indicated by 302 in FIG. 5, when the DMA command A3 is sent to the queue B, that is, when the driver 4 receives the DMA command A3 (step S201), in the subsequent step S202, the DMA is transferred to the queue B. Since the command A2 is already arranged, it is determined as NO and the process proceeds to step S204.
次に、DMAコマンド並べ替え部41は、待ち行列B内で配置され得るDMAコマンドAの順序を全て抽出する(ステップS204)。図6に示すパターンP1は、この際に抽出されたDMAコマンドAの順序を示している。パターンP1の1行目L1に示す順序では、既に待ち行列Bに配置されていたDMAコマンドA2が待ち行列Bの先頭に位置し、新たに待ち行列Bに送られてきたDMAコマンドA3が待ち行列Bの2番目に位置している。またパターンP1の2行目L2に示す順序では、待ち行列B内の順序が、1行目L1に示す順序とは逆になっており、DMAコマンドA3が先頭に位置し、DMAコマンドA2が2番目に位置している。なお図6に示す()内の数字は、各DMAコマンドAが対応するバウンディングボックスの面積Sを示している。
Next, the DMA
図4を参照して、ステップS204が実行されると、DMAコマンド並べ替え部41は、隣り合うDMAコマンドAどうしのバウンディングボックスの面積Sの差を算出する順序として、パターンP1の1行目L1に示す順序を選択する(ステップS205)。
Referring to FIG. 4, when step S204 is executed, DMA
次に、DMAコマンド並べ替え部41は、ステップS205で選択した順序(パターンP1の1行目L1に示す順序)において、待ち行列Bの先頭に位置するDMAコマンドA2を、隣り合うDMAコマンドAどうしのバウンディングボックスの面積差を算出する基準となるDMAコマンド(以下、面積差算出基準のDMAコマンド)として選択する(ステップS206)。
Next, the DMA
次に、DMAコマンド並べ替え部41は、ステップS206で選択された面積差算出基準のDMAコマンドA2が、待ち行列Bの先頭に位置しているか否かを判断する(ステップS207)。この際、パターンP1の1行目L1に示す順序で、DMAコマンドA2は待ち行列Bの先頭に位置しているため、ステップS207ではYESと判断して、ステップS208に移行する。
Next, the DMA
そして、DMAコマンド並べ替え部41は、面積差算出基準のDMAコマンドA2に対応するバウンディングボックスの面積S(1)と、VGアクセラレータ5が処理中のDMAコマンドA1に対応するバウンディングボックスの面積S(5)との面積差を算出する(ステップS208)。この際、|5−1|=4の計算から、4の面積差が算出される。
The DMA
次に、DMAコマンド並べ替え部41は、バウンディングボックスの面積差を算出する順序(パターンP1の1行目L1に示す順序)において、隣り合うDMAコマンドAどうしのバウンディングボックスの面積Sの差をすべて計算したか否かを判断する(ステップS209)。この際、DMAコマンドA2に対応するバウンディングボックスの面積S(1)と、DMAコマンドA3に対応するバウンディングボックスの面積S(3)との差を計算していないので、DMAコマンド並べ替え部41は、NOと判断して、ステップS210に移行する。
Next, the DMA
そして、DMAコマンド並べ替え部41は、面積差算出基準のDMAコマンドAを変更する(ステップS210)。具体的には、バウンディングボックスの面積差を算出する順序(パターンP1の1行目L1に示す順序)における待ち行列B内の並びで、DMAコマンドA2の1つ後に位置するDMAコマンドA3に変更する。
Then, the DMA
次に、DMAコマンド並べ替え部41は、再びステップS207の処理に移行する。この際、パターンP1の1行目L1に示す順序では、面積差算出基準のDMAコマンドA3は、待ち行列Bの2番目に位置していることから、DMAコマンド並べ替え部41は、NOと判断して、ステップS211に移行する。
Next, the DMA
このステップS211において、DMAコマンド並べ替え部41は、DMAコマンドA3に対応するバウンディングボックスの面積S(3)と、DMAコマンドAの1つ前に位置するDMAコマンドA2に対応するバウンディングボックスの面積S(1)との面積差を算出する。この際、|3−1|=2の計算から、2の面積差が算出される。
In step S211, the DMA
次に、DMAコマンド並べ替え部41は、ステップS209に移行する。この際には、パターンP1の1行目に示す順序では、隣り合うDMAコマンドAどうしのバウンディングボックスの面積Sの差がすべて計算済みであることから、DMAコマンド並べ替え部41は、YESと判断して、ステップS212に移行する。
Next, the DMA
そして、DMAコマンド並べ替え部41は、ステップS204で抽出した全ての順序について、バウンディングボックスの面積差を計算したか否かを判断する(ステップS212)。この際、パターンP1の2行目L2に示す順序については、バウンディングボックスの面積差の算出を行っていないため、DMAコマンド並べ替え部41は、NOと判断して、ステップS213に移行する。
Then, the DMA
そして、DMAコマンド並べ替え部41は、バウンディングボックスの面積差を算出する順序を変更する(ステップS213)。具体的には、ステップS203で抽出された全ての順序(パターンP1に示す順序)のうち、未だバウンディングボックスの面積差を算出する順序として選択されていない2行目L2に示す順序に変更する。
Then, the DMA
そして、DMAコマンド並べ替え部41は、再びステップS206の処理に移行する。
Then, the DMA
これ以降、パターンP1の2行目L2に示す順序に対して、上述したS207(YES)→S208→S209(NO)→S210→S207(NO)→S211→S209(YES)→S212の処理が実行される。この処理により、DMAコマンドA3に対応するバウンディングボックスの面積S(3)と、DMAコマンドA1に対応するバウンディングボックスの面積S(5)との面積差として、|3−5|=2の計算から、2が算出され、さらにDMAコマンドA2に対応するバウンディングボックスの面積S(1)と、DMAコマンドA3に対応するバウンディングボックスの面積S(3)との面積差として、|1−3|=2の計算から、2が算出される。 Thereafter, the above-described processing of S207 (YES) → S208 → S209 (NO) → S210 → S207 (NO) → S211 → S209 (YES) → S212 is executed with respect to the order shown in the second line L2 of the pattern P1. Is done. By this processing, the area difference between the bounding box area S (3) corresponding to the DMA command A3 and the bounding box area S (5) corresponding to the DMA command A1 is calculated from | 3-5 | = 2. 2 is calculated, and an area difference between the bounding box area S (1) corresponding to the DMA command A2 and the bounding box area S (3) corresponding to the DMA command A3 is | 1-3 | = 2. 2 is calculated from the above calculation.
そして、DMAコマンド並べ替え部41は、パターンP1の2行目L2に示す順序で、隣り合うDMAコマンドAどうしのバウンディングボックスの面積Sの差をすべて計算すると、ステップS212でYESと判断して、ステップS214に移行する。
When the DMA
このステップS214において、DMAコマンド並べ替え部41は、ステップS204で抽出した全ての順序について、バウンディングボックスの面積差の合計を計算する(ステップS214)。この際、パターン1の1行目L1に示す順序における面積差の合計は、4+2=6の計算から6が算出され、2行目L2に示す順序における面積差の合計は、2+2=4の計算から4が算出される。
In step S214, the DMA
次に、DMAコマンド並べ替え部41は、待ち行列BにおけるDMAコマンドAの順序を、ステップS204で抽出した順序のうちバウンディングボックスの面積差の合計が最も小さな順序に並び替える(ステップS215)。この際、図6のパターンP1に示す順序では、1行目L1に示す順序の面積差の合計は6であり、2行目L2に示す順序の面積差の合計は4であるため、DMAコマンド並べ替え部41は、待ち行列BにおけるDMAコマンドAの順序を、2行目L2に示す順序に並び替える。この結果、待ち行列Bでは、DMAコマンドA3が先頭に位置し、DMAコマンドA2が2番目に位置するようになる。
Next, the DMA
この後、図5の303に示すように、対応するバウンディングボックスの面積が2であるDMAコマンドA4が待ち行列Bに送られて来たときも、上記と同様の流れで図4に示す処理が実行される。図6に示すパターンP2は、この処理のステップS204で抽出されたDMAコマンドAの順序の全てと、ステップS214で計算された各順序における面積差の合計とを示している。パターンP2では、6行目L3に示す順序L3がバウンディングボックスの面積差の合計が最も小さくなっている。このため、ステップS215の処理により、待ち行列B内のDMAコマンドの順序が、6行目L3に示す順序に変更される。図5の304は、待ち行列B内のDMAコマンドの順序が、6行目L3に示す順序に並び替えられた状態を示している。 After that, as shown by 303 in FIG. 5, when the DMA command A4 whose corresponding bounding box area is 2 is sent to the queue B, the processing shown in FIG. Executed. A pattern P2 shown in FIG. 6 shows all of the orders of the DMA commands A extracted in step S204 of this process and the total area difference in each order calculated in step S214. In the pattern P2, the order L3 shown in the sixth line L3 has the smallest total area difference of the bounding box. For this reason, the order of the DMA commands in the queue B is changed to the order shown in the sixth line L3 by the process of step S215. 304 of FIG. 5 shows a state in which the order of the DMA commands in the queue B is rearranged in the order shown in the sixth line L3.
なお図4に示したステップS208、211では、バウンディングボックスの面積差は、ステップS215におけるDMAコマンドAの並べ替えを実行することが可能な程度の精度で求められればよい。例えば、ベクターアクセラレータによって描画処理が行われるベクター図形がベジェ曲線や楕円弧である場合には、該ベジェ曲線等を近似的に表現する分割直線の数を少なくすることで、バウンディングボックスの面積Sの算出は容易になる。 Note that in steps S208 and 211 shown in FIG. 4, the area difference between the bounding boxes has only to be obtained with an accuracy that allows the rearrangement of the DMA commands A in step S215. For example, when the vector graphic to be drawn by the vector accelerator is a Bezier curve or elliptical arc, the number S of dividing lines that approximately represent the Bezier curve or the like is reduced to calculate the bounding box area S. Becomes easier.
以上、本実施形態によれば、待ち行列B内のDMAコマンドAの順序は、隣り合うDMAコマンドAどうしのバウンディングボックスの面積Sの差の総和が最小となる順序に設定されるため、待ち行列B内で隣り合うDMAコマンドAの間における描画対象のベクター図形の大きさの差は小さくなる。このため、VGアクセラレータ5が連続して処理するベクター図形の大きさの変化は小さくなるため、VGアクセラレータ5における各ステージの処理時間のばらつきが小さく抑えられる。これにより、上位のステージから下位のステージにDMAコマンドAが迅速に移行して、VGアクセラレータ5における各ステージの待ち時間の総和が小さくなる。この結果、VGアクセラレータ5の描画処理時間が短くなる。
As described above, according to the present embodiment, the order of the DMA commands A in the queue B is set to the order in which the sum of the differences of the bounding box areas S between the adjacent DMA commands A is minimized. The difference in the size of the vector graphic to be drawn between the DMA commands A adjacent in B becomes small. For this reason, since the change in the size of the vector graphic processed continuously by the
また、本実施形態では、VGアクセラレータ5に最後に投入したDMAコマンドAを含めて、隣り合う処理どうしのバウンディングボックスの面積の差の総和が最小になるように、待ち行列内のDMAコマンドAの順序を変更するようにしている。このため、ベクターグラフィックスアクセラレータの処理中に、待ち行列Bに新たなDMAコマンドAが送られてきたときでも、VGアクセラレータ5に連続して処理させるベクター図形の大きさの変化を小さく抑えることが出来る。
In this embodiment, the DMA command A in the queue is minimized so that the sum of the difference in the bounding box area between adjacent processes, including the DMA command A last input to the
以上、好ましい実施の形態をあげて本発明を説明したが、本発明は必ずしも、上記実施の形態に限定されるものではなく、その技術的思想の範囲内において様々に変形して実施することができる。 The present invention has been described above with reference to preferred embodiments. However, the present invention is not necessarily limited to the above embodiments, and various modifications can be made within the scope of the technical idea. it can.
例えば、上述した実施の形態では、バウンディングボックス計算部31によって生成されたバウンディングボックスを座標変換することで、座標変換処理後のベクター図形を囲むバウンディングボックスを生成することとしたが、座標変換処理後のベクター図形を囲むバウンディングボックスをバウンディングボックス計算部31に生成させるようにしてもよい。この場合、座標変換部32によるバウンディングボックスの座標変換は省略され、座標変換部32は、バウンディングボックス計算部31に生成されたバウンディングボックスの面積を算出して、ドライバ4に送る。
For example, in the above-described embodiment, the bounding box generated by the bounding box calculation unit 31 is coordinate-converted to generate the bounding box surrounding the vector figure after the coordinate conversion process. A bounding box surrounding the vector figure may be generated by the bounding box calculation unit 31. In this case, the coordinate conversion of the bounding box by the coordinate
本発明の好適な変形として、以下の構成が含まれる。 The following configurations are included as preferable modifications of the present invention.
本発明の第1の観点に係るベクター画像描画装置について、好ましくは、
前記領域図形生成手段は、前記ベクター図形を囲む矩形をバウンディングボックスとして生成することを特徴とする。
About the vector image drawing device according to the first aspect of the present invention, preferably,
The region figure generating means, and generating a bounding rectangle of the vector graphic as the bounding box.
さらに好ましくは、
前記バウンディングボックスを座標変換する座標変換手段を備え、
前記ベクター図形の描画処理には、前記ベクター図形の座標変換処理が含まれ、
前記面積演算手段は、前記座標変換手段で座標変換したのちのバウンディングボックスの面積を算出することを特徴とする。
More preferably,
Coordinate conversion means for converting the bounding box coordinates,
The drawing process of the vector graphic includes a coordinate conversion process of the vector graphic,
It said area calculation means, and calculating the area of the bounding box of After coordinate transformation in the previous SL coordinate transformation means.
さらに好ましくは、
前記領域図形生成手段は、座標変換する前の前記ベクター図形を囲む前記バウンディングボックスを算出し、
前記座標変換手段は、前記領域図形生成手段で生成したバウンディングボックスを座標変換することを特徴とする。
More preferably,
The region figure generating means calculates the bounding box surrounding the vector graphic before coordinate transformation,
The coordinate conversion means performs coordinate conversion of the bounding box generated by the area graphic generation means.
さらに好ましくは、
前記ドライバは、前記待ち行列内に最後に配置された前記コマンドを含めて、前記待ち行列内で隣り合う2つの前記コマンド毎に、描画対象の前記ベクター図形を囲む前記バウンディングボックスの面積の差の絶対値を求めて、該絶対値の総和が最小になるように、前記待ち行列内の前記コマンドの順序を変更することを特徴とする。
More preferably,
The driver includes a difference in area of the bounding box surrounding the vector graphic to be drawn for each of the two adjacent commands in the queue, including the last command placed in the queue. An absolute value is obtained, and the order of the commands in the queue is changed so that the sum of the absolute values is minimized .
本発明の第2の観点に係るベクターイメージ描画方法について、好ましくは、
前記領域図形生成ステップでは、前記領域図形生成手段は、前記ベクター図形を囲む矩形をバウンディングボックスとして生成することを特徴とする。
Regarding the vector image drawing method according to the second aspect of the present invention, preferably,
In the area graphic generation step , the area graphic generation means generates a rectangle surrounding the vector graphic as a bounding box.
さらに好ましくは、
座標変換手段が、前記バウンディングボックスを座標変換する座標変換ステップを備え、
前記ベクター図形の描画処理には、前記ベクター図形の座標変換処理が含まれ、
前記面積演算ステップでは、前記面積演算手段は、前記座標変換ステップで座標変換したのちのバウンディングボックスの面積を算出することを特徴とする。
More preferably,
The coordinate conversion means includes a coordinate conversion step for converting the bounding box.
The drawing process of the vector graphic includes a coordinate conversion process of the vector graphic,
In the area calculation step , the area calculation means calculates the area of the bounding box after the coordinate conversion in the coordinate conversion step.
さらに好ましくは、
前記領域図形生成ステップでは、前記領域図形生成手段は、座標変換する前のベクター図形を囲むバウンディングボックスを算出し、
前記座標変換ステップでは、前記座標変換手段は、前記領域図形生成ステップで生成したバウンディングボックスを座標変換することを特徴とする。
More preferably,
In the region figure generating step, the region figure generating means calculates a bounding box surrounding the vector graphics before coordinate transformation,
In the coordinate conversion step , the coordinate conversion means performs coordinate conversion of the bounding box generated in the area graphic generation step.
さらに好ましくは、
前記コマンド配置ステップでは、前記ドライバは、前記待ち行列内に最後に配置された前記コマンドを含めて、前記待ち行列内で隣り合う2つの前記コマンド毎に、描画対象の前記ベクター図形を囲む前記バウンディングボックスの面積の差の絶対値を求めて、該絶対値の総和が最小になるように、前記待ち行列内の前記コマンドの順序を変更することを特徴とする。
More preferably,
In the command placement step, the driver includes the bounding surrounding the vector graphic to be drawn for every two adjacent commands in the queue, including the last command placed in the queue. The absolute value of the difference in the area of the boxes is obtained, and the order of the commands in the queue is changed so that the sum of the absolute values is minimized .
なお、前記のハードウェア構成やフローチャートは一例であり、任意に変更および修正が可能である。 The above hardware configuration and flowchart are examples, and can be arbitrarily changed and modified.
また、制御部51、主記憶部52、外部記憶部53、操作部54、入出力部56および内部バス50などから構成されるベクターイメージ描画装置1の処理を行う中心となる部分は、専用のシステムによらず、通常のコンピュータシステムを用いて実現可能である。たとえば、前記の動作を実行するためのコンピュータプログラムを、コンピュータが読み取り可能な記録媒体(フレキシブルディスク、CD−ROM、DVD−ROM等)に格納して配布し、当該コンピュータプログラムをコンピュータにインストールすることにより、前記の処理を実行するベクターイメージ描画装置1を構成してもよい。また、インターネット等の通信ネットワーク上のサーバ装置が有する記憶装置に当該コンピュータプログラムを格納しておき、通常のコンピュータシステムがダウンロード等することでベクターイメージ描画装置1を構成してもよい。
In addition, a central part that performs processing of the vector
また、ベクターイメージ描画装置1の機能を、OS(オペレーティングシステム)とアプリケーションプログラムの分担、またはOSとアプリケーションプログラムとの協働により実現する場合などには、アプリケーションプログラム部分のみを記録媒体や記憶装置に格納してもよい。
Further, when the function of the vector
また、搬送波にコンピュータプログラムを重畳し、通信ネットワークを介して配信することも可能である。たとえば、通信ネットワーク上の掲示板(BBS, Bulletin Board System)に前記コンピュータプログラムを掲示し、ネットワークを介して前記コンピュータプログラムを配信してもよい。そして、このコンピュータプログラムを起動し、OSの制御下で、他のアプリケーションプログラムと同様に実行することにより、前記の処理を実行できるように構成してもよい。 It is also possible to superimpose a computer program on a carrier wave and distribute it via a communication network. For example, the computer program may be posted on a bulletin board (BBS, Bulletin Board System) on a communication network, and the computer program distributed via the network. The computer program may be started and executed in the same manner as other application programs under the control of the OS, so that the above-described processing may be executed.
1 ベクターイメージ描画装置
5 ベクターグラフィックスアクセラレータ(パイプ)
31 領域図形生成部(バウンディングボックス計算手段)
32 座標変換部(面積演算手段、座標変換手段)
41 DMAコマンド並べ替え部(並べ替え手段)
51 制御部
52 主記憶部
53 外部記憶部
56 入出力部
A DMAコマンド(描画処理)
B 待ち行列
S バウンディングボックスの面積
1 Vector
31 area figure generation part (bounding box calculation means)
32 Coordinate converter (area calculation means, coordinate conversion means)
41 DMA command rearrangement unit (rearrangement means)
51
B Queue S Bounding box area
Claims (11)
前記領域図形生成手段で生成した前記バウンディングボックスの面積を算出する面積演算手段と、
前記ベクター図形の描画処理を実行するためのコマンドを待ち行列内に配置するとともに、前記待ち行列内で隣り合う2つの前記コマンド毎に、描画対象の前記ベクター図形を囲む前記バウンディングボックスの面積の差の絶対値を求めて、該絶対値の総和が最小になるように、前記待ち行列内の前記コマンドの順序を変更するドライバと、
前記待ち行列内に配置された前記コマンドを、先頭の前記コマンドから順に受け取って、前記ベクター図形の描画処理を行うアクセラレータと、
を備えることを特徴とするベクターイメージ描画装置。 A region figure generating means for generating a bounding box is a figure that surrounds the base compactors figure for drawing the vector image,
Area calculating means for calculating the area of the bounding box generated by the area graphic generating means;
A command for executing the drawing process of the vector graphic is arranged in a queue, and the difference in the area of the bounding box surrounding the vector graphic to be drawn is set for each of the two adjacent commands in the queue. A driver that changes the order of the commands in the queue so that the sum of the absolute values is minimized.
An accelerator that receives the commands arranged in the queue in order from the top command and performs the drawing process of the vector graphic;
A vector image drawing apparatus comprising:
前記ベクター図形の描画処理には、前記ベクター図形の座標変換処理が含まれ、
前記面積演算手段は、前記座標変換手段で座標変換したのちのバウンディングボックスの面積を算出することを特徴とする請求項1または2に記載のベクターイメージ描画装置。 Coordinate conversion means for converting the bounding box coordinates,
The drawing process of the vector graphic includes a coordinate conversion process of the vector graphic,
The area calculation unit, the vector image drawing device according to claim 1 or 2, characterized in that to calculate the area of the bounding box of After coordinate transformation in the previous SL coordinate transformation means.
前記座標変換手段は、前記領域図形生成手段で生成したバウンディングボックスを座標変換することを特徴とする請求項3に記載のベクターイメージイメージ装置。 The region figure generating means calculates the bounding box surrounding the vector graphic before coordinate transformation,
4. The vector image image apparatus according to claim 3, wherein the coordinate conversion means performs coordinate conversion of the bounding box generated by the area graphic generation means.
領域図形生成手段が、ベクターイメージを描画するためのベクター図形を囲む図形であるバウンディングボックスを生成する領域図形生成ステップと、
面積演算手段が、前記領域図形生成ステップで生成した前記バウンディングボックスの面積を算出する面積演算ステップと、
ドライバが、前記ベクター図形の描画処理を実行するためのコマンドを待ち行列内に配置するとともに、前記待ち行列内で隣り合う2つの前記コマンド毎に、描画対象の前記ベクター図形を囲む前記バウンディングボックスの面積の差の絶対値を求めて、該絶対値の総和が最小になるように、前記待ち行列内の前記コマンドの順序を変更するコマンド配置ステップと、
アクセラレータが、前記待ち行列内に配置された前記コマンドを、先頭の前記コマンドから順に受け取って、前記ベクター図形の描画処理を行う描画ステップと、
を備えることを特徴とするベクターイメージ描画方法。 A drawing method in which a vector image drawing apparatus performs drawing processing of a vector figure in order to draw a vector image,
An area graphic generation means for generating a bounding box that is a graphic surrounding a vector graphic for drawing a vector image ;
An area calculating means for calculating an area of the bounding box generated in the region graphic generating step;
The driver places a command for executing the drawing process of the vector graphic in the queue, and for each of the two adjacent commands in the queue, the driver includes the bounding box surrounding the vector graphic to be drawn. A command placement step of obtaining an absolute value of the difference in area and changing the order of the commands in the queue so that the sum of the absolute values is minimized;
A drawing step in which an accelerator receives the commands arranged in the queue in order from the top command, and performs drawing processing of the vector graphic;
A vector image drawing method comprising:
前記ベクター図形の描画処理には、前記ベクター図形の座標変換処理が含まれ、
前記面積演算ステップでは、前記面積演算手段は、前記座標変換ステップで座標変換したのちのバウンディングボックスの面積を算出することを特徴とする請求項6または7に記載のベクターイメージ描画方法。 The coordinate conversion means includes a coordinate conversion step for converting the bounding box.
The drawing process of the vector graphic includes a coordinate conversion process of the vector graphic,
8. The vector image drawing method according to claim 6, wherein, in the area calculation step , the area calculation means calculates an area of a bounding box after coordinate conversion in the coordinate conversion step.
前記座標変換ステップでは、前記座標変換手段は、前記領域図形生成ステップで生成したバウンディングボックスを座標変換することを特徴とする請求項8に記載のベクターイメージ描画方法。 In the region figure generating step, the region figure generating means calculates a bounding box surrounding the vector graphics before coordinate transformation,
9. The vector image drawing method according to claim 8, wherein in the coordinate conversion step , the coordinate conversion means performs coordinate conversion of the bounding box generated in the area graphic generation step.
ベクターイメージを描画するためのベクター図形を囲む図形であるバウンディングボックスを生成する領域図形生成手段、
前記領域図形生成手段で生成した前記バウンディングボックスの面積を算出する面積演算手段、
前記ベクター図形の描画処理を実行するためのコマンドを待ち行列内に配置するとともに、前記待ち行列内で隣り合う2つの前記コマンド毎に、描画対象の前記ベクター図形を囲む前記バウンディングボックスの面積の差の絶対値を求めて、該絶対値の総和が最小になるように、前記待ち行列内の前記コマンドの順序を変更するドライバ、
前記待ち行列内に配置された前記コマンドを、先頭の前記コマンドから順に受け取って、前記ベクター図形の描画処理を行うアクセラレータ、
として機能させることを特徴とするプログラム。 The computer,
Area graphic generation means for generating a bounding box that is a graphic surrounding a vector graphic for drawing a vector image ;
Area calculating means for calculating the area of the bounding box generated by the area graphic generating means ;
A command for executing the drawing process of the vector graphic is arranged in a queue, and the difference in the area of the bounding box surrounding the vector graphic to be drawn is set for each of the two adjacent commands in the queue. A driver that changes the order of the commands in the queue so that the sum of the absolute values is minimized.
An accelerator that receives the commands arranged in the queue in order from the top of the commands and performs the drawing process of the vector graphic;
A program characterized by functioning as
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008153346A JP4863306B2 (en) | 2008-06-11 | 2008-06-11 | Vector image drawing apparatus, vector image drawing method and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008153346A JP4863306B2 (en) | 2008-06-11 | 2008-06-11 | Vector image drawing apparatus, vector image drawing method and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2009301218A JP2009301218A (en) | 2009-12-24 |
| JP4863306B2 true JP4863306B2 (en) | 2012-01-25 |
Family
ID=41548058
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2008153346A Expired - Fee Related JP4863306B2 (en) | 2008-06-11 | 2008-06-11 | Vector image drawing apparatus, vector image drawing method and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4863306B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5590834B2 (en) * | 2009-08-11 | 2014-09-17 | ユニ・チャーム株式会社 | Nonwoven fabric and method for producing the same |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2842601B2 (en) * | 1989-01-20 | 1999-01-06 | 旭光学工業株式会社 | High quality character generator |
| JP3474078B2 (en) * | 1997-05-02 | 2003-12-08 | 富士ゼロックス株式会社 | Drawing processing device |
| JP4828006B2 (en) * | 1998-11-09 | 2011-11-30 | ソニー株式会社 | Image processing device |
-
2008
- 2008-06-11 JP JP2008153346A patent/JP4863306B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2009301218A (en) | 2009-12-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4824687B2 (en) | Efficient rasterization of graphic data cache | |
| US10102663B2 (en) | Gradient adjustment for texture mapping for multiple render targets with resolution that varies by screen location | |
| JP4030519B2 (en) | Image processing apparatus and image processing system | |
| JP5336067B2 (en) | Method and apparatus for processing graphics | |
| JP5508521B2 (en) | Optimizing data visualization platform performance | |
| US10403040B2 (en) | Vector graphics rendering techniques | |
| JPH05127654A (en) | Character and figure deformation processing device | |
| JP2003084744A (en) | Emulation device, emulation method, program for executing the method, and recording medium recording the program | |
| JP4370438B2 (en) | Vector image drawing apparatus, vector image drawing method and program | |
| US5524198A (en) | Character or graphic processing method and apparatus | |
| JP4068081B2 (en) | Charged particle beam drawing system | |
| JP4863306B2 (en) | Vector image drawing apparatus, vector image drawing method and program | |
| US8605112B2 (en) | Graphics drawing apparatus, method, and program and recording medium on which the program is recorded | |
| JP2003162728A (en) | Image processing device and image output device | |
| JPH10312407A (en) | Drawing display device | |
| JP4749868B2 (en) | Image processing device | |
| JP2001249656A (en) | Character and graphic transformation processor | |
| JP4461965B2 (en) | CHARACTER IMAGE GENERATION DEVICE, CHARACTER IMAGE GENERATION PROGRAM, AND CHARACTER IMAGE GENERATION METHOD | |
| JP2003187260A (en) | Image rendering program, recording medium in which image rendering program is recorded, image rendering apparatus and method | |
| JP2988936B2 (en) | 3D graphics processing unit | |
| JPH05242235A (en) | Picture processor | |
| JP2014182634A (en) | Information processor, method for controlling information processor, and computer program | |
| JP2001307115A (en) | Image processor and image processing method | |
| JPH1145343A (en) | Polygonal graphic plotting device | |
| JP2005148995A (en) | Image display device, its display method, and display program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110509 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110517 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110711 |
|
| 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: 20111011 |
|
| 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: 20111102 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141118 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4863306 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| 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 |