JP6120561B2 - 図形描画装置及び図形描画プログラム - Google Patents
図形描画装置及び図形描画プログラム Download PDFInfo
- Publication number
- JP6120561B2 JP6120561B2 JP2012282950A JP2012282950A JP6120561B2 JP 6120561 B2 JP6120561 B2 JP 6120561B2 JP 2012282950 A JP2012282950 A JP 2012282950A JP 2012282950 A JP2012282950 A JP 2012282950A JP 6120561 B2 JP6120561 B2 JP 6120561B2
- Authority
- JP
- Japan
- Prior art keywords
- frame buffer
- graphic
- mode
- selection unit
- mode selection
- 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.)
- Active
Links
- 239000000872 buffer Substances 0.000 claims description 59
- 238000000034 method Methods 0.000 description 5
- 238000010422 painting Methods 0.000 description 4
- 230000009467 reduction Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 239000000470 constituent Substances 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000002156 mixing Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
- Digital Computer Display Output (AREA)
Description
図1は、この発明の実施の形態1による図形描画装置100を示す構成図である。
図示のように、図形描画装置100は、CPUバス101を介してCPU(Central Processing Unit)102に接続され、また、フレームバッファ103を外部に接続している。図形描画装置100は、描画制御部1、書込モード選択部2、読出モード選択部3、表示制御部4を備えている。描画制御部1は、描画する図形の座標、描画色などの設定情報を受け取った後、CPU102からの描画開始命令により動作を開始する。描画制御部1は、図形の座標を元に垂直方向の描画範囲(Y座標)と水平方向の描画範囲(X座標)を算出する図形形状算出部1aを備え、書込モード選択部2に対して、順次算出した結果を出力する。
1.単色・グラデーション塗り潰しの時は、書込モード(mode=1)と塗り潰し範囲(xstart、xend)、カラー勾配(カラーのR、G、B成分の変化量)をフレームバッファ103に保存する。
2.テクスチャ描画時(回転を行わず、拡大・縮小の場合)は、書込モード(mode=2)と塗り潰し範囲(xstart、xend)、参照先(UV)座標の勾配(変化量)をフレームバッファ103に保存する。
3.文字などの小さい図形を描画するような場合は、上記1、2の格納手段によるデータ量削減効果が小さいため、描画モードの設定に関係なく、書込モード(mode=3)と描画する座標(xadr)と描画色(color)を算出し、フレームバッファに格納する。
また、テクスチャを回転させて描画するような場合は、X方向に1画素ずつテクスチャを参照すると、参照先のテクスチャアドレスが非連続となり、メモリアクセス効率が低下する問題がある。このため、参照先(UV)座標ではなく、通常通り描画色を算出してフレームバッファ103の該当領域に保存するような使用方法が望ましい。
上記1.〜3.におけるフレームバッファ103への格納データは、1つの走査線上に複数の図形が重なるような場合は、直前までの格納結果の末尾に追加する形で格納する。
CPU102から直接フレームバッファ103の読み出しを行うと、中間データが読み出されることになるが、表示画面のキャプチャを行いたいような場合も想定される。このため、読出モード選択部3は、フレームバッファ103に格納された中間データを直接読み出すか、このような中間データをフォーマット変換して描画色に変換するかの選択機能を有し、CPU102に対して図形描画装置100が適切なデータを返すことが可能である。
図3はこの発明の実施の形態1による図形描画装置の処理内容を示すフローチャートである。
図形描画装置100は、当該図形描画装置100を搭載しているシステムのCPU102から描画処理開始命令を受けることにより、動作を開始する。
描画制御部1は、図形形状算出部1aにおいて、図形の座標を元に描画する図形の垂直方向の描画範囲(Y座標)を算出する(ステップST1)。次いで、描画制御部1は、ステップST1で算出した図形内の最小Y座標を起点として、Y座標値1ずつインクリメントしながら、Y座標の最大値まで走査を繰り返す。また、走査線のY座標が変化する度に、ステップST1で算出した図形のY座標最大値よりも値が大きいが否かの比較を行う(ステップST2)。
次に、書込モード選択部2は、図形の描画モード(単色塗り潰し、グラデーション塗り潰し、テクスチャ貼り付け、文字描画など)と水平方向の描画範囲(X座標)とを用いてフレームバッファ103に対する書込モードを選択し(ステップST4)、ライン単位でフレームバッファ103への書込モードと格納データを配置する。
Claims (4)
- 描画する図形の座標と描画色とを含む設定情報に基づき、前記図形の描画範囲を算出する描画制御部と、
前記図形の表示画面での描画状態を示す描画モードと、当該図形の水平方向の描画範囲とを用いて、前記図形の情報をフレームバッファに一時格納する際の複数の書込モードのうちのいずれかを選択し、当該選択した書込モードで前記図形の情報を格納する書込モード選択部と、
前記書込モードに基づいて、前記フレームバッファに格納されている情報をライン単位で読み出す読出モード選択部と、
前記読出モード選択部から出力されたデータに基づき、前記図形の表示データを生成する表示制御部とを備えたことを特徴とする図形描画装置。 - 書込モード選択部は、書込モードとして、描画する図形の描画色をフレームバッファに書き込む特定のモードを有し、現在の走査するラインにおける図形の交差回数が予め定めた閾値を上回る場合は、当該ラインの各画素の描画色を算出して前記フレームバッファに格納すると共に、前記書込モードを前記特定のモードとすることを特徴とする請求項1記載の図形描画装置。
- 読出モード選択部は、フレームバッファへの読出要求があった場合、当該フレームバッファから読み出した中間データか、当該中間データをフォーマット変換した描画色の表示データかを選択することを特徴とする請求項1または請求項2記載の図形描画装置。
- 描画する図形の情報をフレームバッファに格納すると共に、当該フレームバッファから前記図形の情報を読み出して当該図形の表示データを生成するコンピュータを、
前記図形の座標と描画色とを含む設定情報に基づき、前記図形の描画範囲を算出する描画制御部と、
前記図形の表示画面での描画状態を示す描画モードと、当該図形の水平方向の描画範囲とを用いて、前記図形の情報を前記フレームバッファに一時格納する際の複数の書込モードのうちのいずれかを選択し、当該選択した書込モードで前記図形の情報を格納する書込モード選択部と、
前記書込モードに基づいて、前記フレームバッファに格納されている情報をライン単位で読み出す読出モード選択部と、
前記読出モード選択部から出力されたデータに基づき、前記図形の表示データを生成する表示制御部
として機能させるための図形描画プログラム。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012282950A JP6120561B2 (ja) | 2012-12-26 | 2012-12-26 | 図形描画装置及び図形描画プログラム |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012282950A JP6120561B2 (ja) | 2012-12-26 | 2012-12-26 | 図形描画装置及び図形描画プログラム |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014127007A JP2014127007A (ja) | 2014-07-07 |
JP6120561B2 true JP6120561B2 (ja) | 2017-04-26 |
Family
ID=51406447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012282950A Active JP6120561B2 (ja) | 2012-12-26 | 2012-12-26 | 図形描画装置及び図形描画プログラム |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6120561B2 (ja) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7351241B2 (ja) | 2020-03-02 | 2023-09-27 | 信越半導体株式会社 | 化合物半導体エピタキシャルウェーハ及びその製造方法 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06308939A (ja) * | 1993-04-19 | 1994-11-04 | Nec Corp | グラフィックスのリアルタイム表示システム |
JP2770775B2 (ja) * | 1995-04-05 | 1998-07-02 | 富士ゼロックス株式会社 | 描画装置および描画方法 |
JP3085175B2 (ja) * | 1995-12-20 | 2000-09-04 | 富士ゼロックス株式会社 | 描画装置 |
JP3452049B2 (ja) * | 2001-03-23 | 2003-09-29 | 富士ゼロックス株式会社 | 描画装置及び描画方法 |
JP2006040161A (ja) * | 2004-07-29 | 2006-02-09 | Fuji Xerox Co Ltd | 画像処理装置及びプログラム |
-
2012
- 2012-12-26 JP JP2012282950A patent/JP6120561B2/ja active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7351241B2 (ja) | 2020-03-02 | 2023-09-27 | 信越半導体株式会社 | 化合物半導体エピタキシャルウェーハ及びその製造方法 |
Also Published As
Publication number | Publication date |
---|---|
JP2014127007A (ja) | 2014-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110377264B (zh) | 图层合成方法、装置、电子设备及存储介质 | |
CN110377257B (zh) | 图层合成方法、装置、电子设备及存储介质 | |
JP5079589B2 (ja) | 表示制御装置及び表示制御方法 | |
CN110363831B (zh) | 图层合成方法、装置、电子设备及存储介质 | |
US20070139445A1 (en) | Method and apparatus for displaying rotated images | |
US8817034B2 (en) | Graphics rendering device, graphics rendering method, graphics rendering program, recording medium with graphics rendering program stored thereon, integrated circuit for graphics rendering | |
WO2021008427A1 (zh) | 图像合成方法、装置、电子设备及存储介质 | |
WO2018126594A1 (zh) | 终端的切换显示方法及终端 | |
JP5154027B2 (ja) | スケーリングされた映像データの読み出し動作を制御する映像処理装置及びその方法 | |
JP4683384B2 (ja) | メモリ制御方法、グラフィックプロセッサおよび情報処理装置 | |
JP2006251000A (ja) | 重畳表示可能なディスプレイコントローラ | |
JP6120561B2 (ja) | 図形描画装置及び図形描画プログラム | |
US8982134B2 (en) | Area-based dependency chain analysis of shaders and command stream | |
CN114697555B (zh) | 一种图像处理方法、装置、设备及存储介质 | |
US7382376B2 (en) | System and method for effectively utilizing a memory device in a compressed domain | |
US9613392B2 (en) | Method for performing graphics processing of a graphics system in an electronic device with aid of configurable hardware, and associated apparatus | |
JP6214367B2 (ja) | 画像合成装置及び画像合成プログラム | |
JP2005346605A (ja) | アンチエイリアス描画方法およびこれを用いた描画装置 | |
JP4137903B2 (ja) | グラフィックス表示装置およびグラフィックスプロセッサ | |
CN115223516B (zh) | 图形渲染与lcd驱动一体化芯片及相关方法和设备 | |
KR102077146B1 (ko) | 그래픽 처리 방법 및 장치 | |
JP6030020B2 (ja) | 地図描画装置 | |
JP2005322959A (ja) | 画像処理装置、携帯端末、画像処理プログラム及び画像処理方法 | |
US10311627B2 (en) | Graphics processing apparatus and method of processing graphics pipeline thereof | |
KR101663023B1 (ko) | 그래픽 처리 장치 및 방법 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20151117 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160920 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160927 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20161110 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20161213 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170209 |
|
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: 20170228 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170328 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6120561 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |