JP2015087809A - Plotting device, method, and program - Google Patents

Plotting device, method, and program Download PDF

Info

Publication number
JP2015087809A
JP2015087809A JP2013223397A JP2013223397A JP2015087809A JP 2015087809 A JP2015087809 A JP 2015087809A JP 2013223397 A JP2013223397 A JP 2013223397A JP 2013223397 A JP2013223397 A JP 2013223397A JP 2015087809 A JP2015087809 A JP 2015087809A
Authority
JP
Japan
Prior art keywords
data
raster data
unit
vector data
database
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
Application number
JP2013223397A
Other languages
Japanese (ja)
Other versions
JP6271945B2 (en
Inventor
片山 達嗣
Tatsushi Katayama
達嗣 片山
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2013223397A priority Critical patent/JP6271945B2/en
Publication of JP2015087809A publication Critical patent/JP2015087809A/en
Application granted granted Critical
Publication of JP6271945B2 publication Critical patent/JP6271945B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To quicken the plotting of a font/icon of a vector format.SOLUTION: When vector data should be plotted, a system control part (103) confirms whether or not corresponding raster data is temporarily stored in the work area of a RAM 101 by referring to a database. When there does not exist any work area, the system control part (103) registers the vector data to which plotting processing is performed by the plotting processing part (106) in the database, and allows the plotting processing part (106) to plot the vector data. The raster data to be obtained by the plotting of the plotting processing part (106) is written and displayed in a VRAM area for cache of the RAM (101), and also written in the work area for reuse. When the raster data is stored in the work area, the system control part (103) transfers the raster data to a VRAM area for cache from the work area.

Description

本発明は、描画装置、方法及びプログラムに関し、特にベクタ形式の文字及びアイコンを描画する装置、方法及びプログラムに関する。   The present invention relates to a drawing apparatus, method, and program, and more particularly to an apparatus, method, and program for drawing vector characters and icons.

従来、文字及びアイコン等のベクトルデータをそのリソース情報に基づいて描画処理する場合、リソース情報の幅情報と高さ情報に基づいたサイズ等を用いて、描画オブジェクトの表現形式をベクタ形式又はビットマップ形式に決定していた。   Conventionally, when vector data such as characters and icons is rendered based on the resource information, the representation format of the rendered object is a vector format or bitmap using the size based on the width information and the height information of the resource information. The format was decided.

特許文献1には、描画オブジェクトの表現形式をリソースのサイズと複雑度により適応的に切り替えることが記載されている。具体的には、スケーラブルフォントを展開処理する際に、出力するフォントのサイズと複雑度を、予め設定された最大サイズ及び最大複雑度とそれぞれ比較し、その比較結果によりビットマップ形式か矩形形式に切り換える。例えば、出力サイズが最大サイズを越える場合でも、複雑度が最大複雑度よりも小さいときには、矩形形式を採用する。これにより、少ないメモリ容量でスケーラブルフォントを展開でき、メモリ容量を節約しながら処理効率の向上を図ることができる。   Japanese Patent Application Laid-Open No. 2004-228561 describes that the rendering object representation format is adaptively switched depending on the size and complexity of the resource. Specifically, when developing a scalable font, the size and complexity of the output font are compared with the preset maximum size and maximum complexity, respectively, and the comparison result is converted into a bitmap format or a rectangular format. Switch. For example, even when the output size exceeds the maximum size, if the complexity is smaller than the maximum complexity, the rectangular format is adopted. Thereby, a scalable font can be developed with a small memory capacity, and the processing efficiency can be improved while saving the memory capacity.

特開平10-124029号公報Japanese Patent Laid-Open No. 10-1224029

小型ディスプレイを使用するデジタルカメラでもGUI(グラフィカル・ユーザー・インターフェース)が採用されつつある。デジタルカメラはカラー画像を扱い、簡易な編集機能への需要もあることから、多様な文字表現が期待されている。例えば、文字やアイコンの表現力向上、グラデーションによる色付け、透明度を調整した背景との透過、文字に影を付けたドロップシャドウ及びタッチ操作に連動したアニメーションなどである。   GUIs (graphical user interfaces) are also being adopted in digital cameras that use small displays. Since digital cameras handle color images and there is a demand for simple editing functions, various character expressions are expected. For example, improvement in the expressiveness of characters and icons, coloring by gradation, transparency with a background with adjusted transparency, drop shadows with shadows on characters, and animations linked to touch operations.

デジタルカメラのような小型の携帯機器では、装備できるメモリ量に制約があるので、ベクトルデータを更に効率的に扱う必要がある。   In a small portable device such as a digital camera, the amount of memory that can be installed is limited, and it is necessary to handle vector data more efficiently.

従来技術では、リソースのサイズ及び複雑度を評価して処理を切り替えているが、ここに挙げた表現についてはリソースの情報だけで処理性能を判断することが難しい。複雑度は低くても、多色のグラデーションによる描画は処理負荷が高くなるし、アニメーション動作中はGUIが滑らかに移動することが最優先されるので、リソースのサイズ及び複雑度によらずに高速に描画できる技術が望まれる。   In the prior art, the processing is switched by evaluating the size and complexity of the resource, but it is difficult to judge the processing performance only from the resource information for the expressions listed here. Even if the complexity is low, drawing with multi-color gradations increases the processing load, and the smooth movement of the GUI is the top priority during animation operation, so it is fast regardless of the size and complexity of the resource A technique that can be used for drawing is desired.

本発明は、このような要望を満たす描画装置、方法及びプログラムを提示することを目的とする。   An object of the present invention is to present a drawing apparatus, method, and program that satisfy such a demand.

上記の課題を解決するために、本発明に係る描画装置は、ベクタデータを描画パラメータに従い描画し、対応するラスタデータを出力する描画処理手段と、前記描画処理手段の処理負荷を判定する判定手段と、前記処理負荷が閾値を超える場合に、前記描画処理手段から出力される前記ラスタデータを一時保持する記憶手段と、前記記憶手段にラスタデータを一時保持するベクタデータを管理するデータベースと、ベクタデータ描画の指示に応じて前記データベースを参照し、描画すべきベクタデータに対応するラスタデータが前記記憶手段に記憶されている場合に、前記記憶手段に一時保持される前記ラスタデータを再利用し、記憶されていない場合に、前記描画処理手段に前記描画すべきベクタデータを描画するように制御する制御手段とを有することを特徴とする。   In order to solve the above-described problems, a drawing apparatus according to the present invention draws vector data according to drawing parameters and outputs corresponding raster data, and determination means for determining a processing load of the drawing processing means. A storage means for temporarily storing the raster data output from the rendering processing means when the processing load exceeds a threshold; a database for managing vector data for temporarily storing raster data in the storage means; When the raster data corresponding to the vector data to be drawn is stored in the storage means by referring to the database according to the data drawing instruction, the raster data temporarily held in the storage means is reused. Control means for controlling the drawing processing means to draw the vector data to be drawn when not stored Characterized in that it has a.

本発明によれば、処理負荷が高いGUI表現を描画する際に、展開済のラスタデータを用いるので、高速な描画を実現でき、操作レスポンスが向上する。   According to the present invention, since raster data that has already been developed is used when drawing a GUI expression with a high processing load, high-speed drawing can be realized and operation response can be improved.

本発明の一実施例を適用した撮像装置の外観図である。1 is an external view of an imaging apparatus to which an embodiment of the present invention is applied. 本発明の一実施例の概略構成ブロック図である。It is a schematic block diagram of one Example of this invention. ラスタ形式データの模式図である。It is a schematic diagram of raster format data. ベクタ形式データの模式図である。It is a schematic diagram of vector format data. 本実施例の動作フローチャートである。It is an operation | movement flowchart of a present Example. 本実施例における描画パラメータの例である。It is an example of the drawing parameter in a present Example. 本実施例の表現効果の模式図である。It is a schematic diagram of the expression effect of a present Example. 本実施例で使用するデータベースの構成図である。It is a block diagram of the database used in a present Example. 本実施例の動作説明図である。It is operation | movement explanatory drawing of a present Example. 本実施例の別の動作フローチャートである。It is another operation | movement flowchart of a present Example.

以下、図面を参照して、本発明の実施例を詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明に係る描画装置の一実施例を適用した撮像装置の外観図を示す。   FIG. 1 is an external view of an imaging apparatus to which an embodiment of a drawing apparatus according to the present invention is applied.

デジタルカメラ100の表示部28は、画像や各種情報を表示する表示部であり、液晶パネル等から構成される。シャッタボタン61は、撮影指示を行うための操作部である。モードダイアル60は、各種モードを切り替えるための操作部である。コネクタ112は、接続ケーブル111をデジタルカメラ100に接続するコネクタである。操作部70は、ユーザ又は撮影者による各種操作を受け付ける各種スイッチ、ボタン、タッチパネル等の操作部材より成る操作部である。コントローラホイール73は、操作部70に含まれる回転操作可能な操作部材である。72は電源スイッチであり、電源オン、電源オフを切り替える。記録媒体200は、メモリカード又はハードディスク等の記録媒体である。記録媒体スロット201は記録媒体200を格納するためのスロットである。記録媒体スロット201に格納された記録媒体200は、デジタルカメラ100との通信が可能となる。蓋202は記録媒体スロット201の蓋である。   The display unit 28 of the digital camera 100 is a display unit that displays images and various types of information, and includes a liquid crystal panel or the like. The shutter button 61 is an operation unit for issuing a shooting instruction. The mode dial 60 is an operation unit for switching various modes. The connector 112 is a connector that connects the connection cable 111 to the digital camera 100. The operation unit 70 is an operation unit including operation members such as various switches, buttons, and a touch panel for receiving various operations by a user or a photographer. The controller wheel 73 is a rotatable operation member included in the operation unit 70. Reference numeral 72 denotes a power switch that switches between power on and power off. The recording medium 200 is a recording medium such as a memory card or a hard disk. The recording medium slot 201 is a slot for storing the recording medium 200. The recording medium 200 stored in the recording medium slot 201 can communicate with the digital camera 100. A lid 202 is a lid of the recording medium slot 201.

図2は、本発明に係る描画装置の一実施例の概略構成ブロック図を示す。描画装置10は、デジタルカメラ100において、撮影時のGUIを描画し、撮影設定メニューを描画する。   FIG. 2 shows a schematic block diagram of an embodiment of a drawing apparatus according to the present invention. The drawing apparatus 10 draws a GUI at the time of shooting in the digital camera 100 and draws a shooting setting menu.

120は内部バスであり、描画装置10の各部と接続されデータの送受信に利用される。101はRAMであり、システム制御部103のワークエリアとして使用される。RAM101は、表示すべき画面データを格納するVRAM領域、ベクタ形式のデータをラスタデータに展開するためのワーク領域、及びラスタ化されたデータをキャッシュ(一時保持)する領域として使用される。102はROMであり、システム制御部103が使用する制御プログラム、各種データ、ベクタ形式のフォント/アイコンデータ等を記憶する。   An internal bus 120 is connected to each unit of the drawing apparatus 10 and is used for data transmission / reception. A RAM 101 is used as a work area for the system control unit 103. The RAM 101 is used as a VRAM area for storing screen data to be displayed, a work area for expanding vector format data into raster data, and an area for caching (temporarily holding) rasterized data. A ROM 102 stores a control program used by the system control unit 103, various data, vector format font / icon data, and the like.

システム制御部103は、描画装置10の各部を制御する。システム制御部103は、後述する描画パラメータの項目から処理負荷の高い項目を判定する。104は外部入力IFであり、カメラの撮像部300と接続されている。撮像部300は被写体を撮像して画像データを出力する。撮像部300から出力される画像データは、外部入力IF104及びバス120を経由してRAM101に書き込まれる。   The system control unit 103 controls each unit of the drawing apparatus 10. The system control unit 103 determines an item with a high processing load from items of drawing parameters described later. Reference numeral 104 denotes an external input IF, which is connected to the imaging unit 300 of the camera. The imaging unit 300 images a subject and outputs image data. Image data output from the imaging unit 300 is written to the RAM 101 via the external input IF 104 and the bus 120.

105は、RAM101のVRAM領域に保持されている画面データを所定の形式で液晶パネル等の表示部に出力して表示させる表示処理部である。   A display processing unit 105 outputs the screen data held in the VRAM area of the RAM 101 to a display unit such as a liquid crystal panel in a predetermined format for display.

106は描画処理部である。描画処理部106は、ROM102に保持されているフォント/アイコンデータ等をシステム制御部103の指示により読み込み、RAM101のVRAM領域に描画する。システム制御部103は、描画処理に必要な各種パラメータを描画処理部106に設定する。描画処理部106は設定された描画パラメータに基づき、ROM102から入力したリソースデータをもとに画面上の描画位置、スケーリング及び回転等の座標変換を行う。描画処理部106はまた、色パラメータに基づいてフォント/アイコンの内側及び輪郭線に色を付ける等の描画表現を変更できる。   Reference numeral 106 denotes a drawing processing unit. The drawing processing unit 106 reads font / icon data or the like held in the ROM 102 according to an instruction from the system control unit 103 and draws it in the VRAM area of the RAM 101. The system control unit 103 sets various parameters necessary for the drawing processing in the drawing processing unit 106. The drawing processing unit 106 performs coordinate conversion such as drawing position on the screen, scaling, and rotation based on the resource data input from the ROM 102 based on the set drawing parameters. The drawing processing unit 106 can also change the drawing expression such as coloring the inside of the font / icon and the outline based on the color parameter.

107はユーザインターフェースであり、操作部70のボタン等の操作部材及びタッチパネルが接続する。ユーザによる操作部70への操作は、ユーザインターフェース107を介してシステム制御部103に入力される。   Reference numeral 107 denotes a user interface to which an operation member such as a button of the operation unit 70 and a touch panel are connected. A user operation on the operation unit 70 is input to the system control unit 103 via the user interface 107.

本実施例で処理されるフォント/アイコンデータの形式を説明する。データ形式として、図3に示すラスタ(ビットマップ)形式と、図4に示すベクタ形式の2つがある。描画装置10は、ラスタ形式とベクタ形式のいずれにも対応可能である。   The format of font / icon data processed in this embodiment will be described. There are two data formats, a raster (bitmap) format shown in FIG. 3 and a vector format shown in FIG. The drawing apparatus 10 can handle both the raster format and the vector format.

図3は、アルファベットの”I”に対するラスタ形式データの表現例を示す。ラスタ形式は格子状に並んだ画素の集合体により構成され、各画素の値が色強度を示す。他方、図4は、アルファベットの”I”に対するベクタ形式データの表現形式例を示す。ベクタ形式は、図4(A)に示すように、形状を定義する頂点の座標値と、各頂点を結ぶ接続線情報から構成される。図4(B)は、ラスタ上での頂点の位置を示す。アルファベットの「I」を示すベクタデータは、図4(B)に示すように、黒丸の頂点座標に対応する12個の座標値と、開始点を示す端点情報、終了点を示す端点情報、及び各頂点間を結ぶ12個の接続線情報からなる。   FIG. 3 shows an example of representation of raster format data for the alphabet “I”. The raster format is composed of a collection of pixels arranged in a grid, and the value of each pixel indicates the color intensity. On the other hand, FIG. 4 shows an example of an expression format of vector format data for the alphabet “I”. As shown in FIG. 4A, the vector format includes coordinate values of vertices that define a shape and connection line information that connects the vertices. FIG. 4B shows the position of the vertex on the raster. As shown in FIG. 4B, the vector data indicating the alphabet “I” includes twelve coordinate values corresponding to the vertex coordinates of the black circle, end point information indicating the start point, end point information indicating the end point, and It consists of 12 pieces of connection line information connecting the vertices.

描画装置10の特徴的な動作を説明する。図5は、描画装置10の描画動作を示すフローチャートである。   A characteristic operation of the drawing apparatus 10 will be described. FIG. 5 is a flowchart showing the drawing operation of the drawing apparatus 10.

描画装置10では、システム制御部103は、ROM102に保持されているベクタ形式のフォント/アイコンを描画する際に、描画処理部106に所定の描画パラメータを事前に設定する。設定される主な描画パラメータの中で描画処理負荷の高いものを図6に示す。図7は、各描画パラメータによる表現効果を示す模式図である。   In the drawing apparatus 10, the system control unit 103 sets predetermined drawing parameters in the drawing processing unit 106 in advance when drawing a vector font / icon held in the ROM 102. Among the main drawing parameters to be set, those having a high drawing processing load are shown in FIG. FIG. 7 is a schematic diagram showing the expression effect by each drawing parameter.

S501で、システム制御部103は、ベクトルデータの描画指示を発行する。この際、システム制御部103は、描画パラメータが図6に示す項目のいずれかである場合、描画対象のフォント/アイコンを識別するフォント/アイコン識別子と、描画パラメータを一時的にRAM101のワークエリアに保持する。フォント/アイコン識別子は、描画するフォント/アイコンを特定するために用いられる。本実施例では、ROM102のフォント/アイコンを保持するアドレスを、フォント/アイコン識別子として利用する。   In step S501, the system control unit 103 issues a vector data drawing instruction. At this time, if the drawing parameter is one of the items shown in FIG. 6, the system control unit 103 temporarily stores the font / icon identifier for identifying the font / icon to be drawn and the drawing parameter in the work area of the RAM 101. Hold. The font / icon identifier is used to specify a font / icon to be drawn. In this embodiment, an address for storing a font / icon in the ROM 102 is used as a font / icon identifier.

図8は、フォント/アイコン識別子、描画パラメータ及びキャッシュ領域の情報を管理するデータベース800の構成と内容の一例を示す。データベース800への登録条件として、図6に示す描画パラメータにおいて、塗りがグラデーション、透過度が100%以外、並びに、ぼかし及びドロップシャドウ等のフィルタ効果ありのいずれかが指定された場合とする。図8に示すデータベース800では、上記の条件に合致したものが、その識別子とセットで詳細パラメータと共に登録される。   FIG. 8 shows an example of the configuration and contents of a database 800 that manages font / icon identifiers, drawing parameters, and cache area information. As registration conditions for the database 800, it is assumed that the drawing parameters shown in FIG. 6 specify that the gradation is a fill, transparency is other than 100%, and that there are filter effects such as blurring and drop shadow. In the database 800 shown in FIG. 8, data that satisfies the above conditions are registered together with detailed parameters in the form of identifiers and sets.

S502で、システム制御部103は、S501でRAM101のワークエリアに保持しているデータをデータベース800で探索する。   In step S502, the system control unit 103 searches the database 800 for data stored in the work area of the RAM 101 in step S501.

S503で、システム制御部103は、データベース800の探索結果として識別子及び描画パラメータが一致するデータの有無を判定する。一致するデータが無い場合(S503)、システム制御部103は、S504に移行する。   In step S <b> 503, the system control unit 103 determines the presence / absence of data with matching identifiers and drawing parameters as a search result of the database 800. If there is no matching data (S503), the system control unit 103 proceeds to S504.

S504で、システム制御部103は、RAM101のワークエリアに保持しているデータをもとに新規の登録データを生成してデータベース800に追加する。   In step S <b> 504, the system control unit 103 generates new registration data based on the data held in the work area of the RAM 101 and adds it to the database 800.

S505で、システム制御部103は、描画処理部106によりデータベース800に登録された描画対象のフォント/アイコンを下記の手順でラスタライズしてVRAMに描画する。   In step S <b> 505, the system control unit 103 rasterizes the drawing target font / icon registered in the database 800 by the drawing processing unit 106 according to the following procedure and draws it in the VRAM.

まず、システム制御部103は、RAM101のキャッシュ領域に、座標変換係数から算出した幅及び高さに応じた容量の領域をキャッシュ用のVRAM領域として確保する。次に、システム制御部103は、描画処理部106に対して描画リソースとしてROM102上の描画対象のフォント/アイコンデータのアドレス及びサイズを設定し、また、確保したキャッシュ用VRAM領域を描画先VRAMとして設定する。さらに、システム制御部103は、描画処理に必要な全てのパラメータを所定のレジスタ等に設定した後に、描画処理部106にベクタデータ描画の指示を発行する。   First, the system control unit 103 reserves an area having a capacity corresponding to the width and height calculated from the coordinate conversion coefficient as a cache VRAM area in the cache area of the RAM 101. Next, the system control unit 103 sets the address and size of the font / icon data to be drawn on the ROM 102 as drawing resources for the drawing processing unit 106, and uses the secured cache VRAM area as the drawing destination VRAM. Set. Further, the system control unit 103 sets all parameters necessary for the drawing process in a predetermined register, and then issues a vector data drawing instruction to the drawing processing unit 106.

描画処理部106は、レジスタに設定されたパラメータ及びROM102のベクタデータを参照して、フォント/アイコンデータをラスタライズし、得られたラスタデータをキャッシュ用VRAM領域に書き込む。これにより、ラスタデータが再利用のためにキャッシュ又は一時保持される。ラスタライズに際して、描画処理部106は、設定されたパラメータに応じて、グラデーションを施して所定の色でベクタデータを展開してラスタライズする。このラスタライズ処理には公知の技術を利用でき、その詳細の説明は省略する。   The rendering processing unit 106 refers to the parameters set in the register and the vector data in the ROM 102, rasterizes the font / icon data, and writes the obtained raster data in the cache VRAM area. Thereby, the raster data is cached or temporarily held for reuse. At the time of rasterization, the rendering processing unit 106 develops and rasterizes the vector data in a predetermined color by applying gradation according to the set parameters. A known technique can be used for the rasterizing process, and detailed description thereof is omitted.

システム制御部103は、キャッシュ用VRAM領域のアドレス及びサイズ情報をデータベース800に保持する。   The system control unit 103 holds the address and size information of the cache VRAM area in the database 800.

S506で、システム制御部103は、キャッシュ用VRAM領域にラスタライズしたフォント/アイコンを画面データ用のVRAM領域に転送する。   In step S506, the system control unit 103 transfers the font / icon rasterized to the cache VRAM area to the screen data VRAM area.

ここまでの処理は、キャッシュ対象のアイコン/フォントを初めて描画する際のものであり、次に、キャッシュ済みのアイコン/フォントを描画するときの動作を説明する。   The processing up to this point is for drawing the icon / font to be cached for the first time. Next, the operation for drawing the cached icon / font will be described.

システム制御部103は、アイコン等の描画指示を発行すると、S503でデータベース800を参照して識別子が一致するかどうかを探索する。識別子が一致する場合、システム制御部103は、該当するデータのパラメータと、今回の描画指示のパラメータが一致するかどうかを判別する。識別子及びパラメータの内容がいずれも一致する場合(S503)、システム制御部103は、ラスタ化されたキャッシュデータを再利用する(S506)。具体的には、システム制御部103は、データベース800のキャッシュ情報に保持されているアドレス及びサイズを参照し、ラスタデータのキャッシュデータをRAM101の画面データ用VRAMに転送する。これで描画が完了する。   When the system control unit 103 issues a drawing instruction such as an icon, the system control unit 103 searches the database 800 in step S503 to determine whether the identifiers match. When the identifiers match, the system control unit 103 determines whether the parameter of the corresponding data matches the parameter of the current drawing instruction. When the contents of the identifier and the parameter match (S503), the system control unit 103 reuses the rasterized cache data (S506). Specifically, the system control unit 103 refers to the address and size held in the cache information of the database 800 and transfers the raster data cache data to the screen data VRAM of the RAM 101. This completes drawing.

但し、S503で同一識別子のアイコンであっても、データベースに保持されているパラメータと指示されたパラメータが一致しない場合、システム制御部103は、S504でデータベースのパラメータ情報を更新する。システム制御部103は、S505でキャッシュVRAMに指示されたパラメータで再度ラスタライズを行い、S506で画面データ用のVRAM領域に転送する。   However, even if the icon has the same identifier in S503, if the parameter stored in the database does not match the instructed parameter, the system control unit 103 updates the parameter information in the database in S504. The system control unit 103 performs rasterization again with the parameters instructed to the cache VRAM in S505, and transfers them to the VRAM area for screen data in S506.

また、画面上の描画位置及びサイズ等のようにデータベース800に保持しているパラメータ以外の項目が更新された場合、システム制御部103は、キャッシュデータの更新を行わずにS503からS506に移行する。そして、システム制御部103は、キャッシュ領域から画面データ用のVRAM領域にキャッシュデータを転送する際に、位置及びサイズ等の内の更新された項目について変更する。   Further, when items other than the parameters held in the database 800 such as the drawing position and size on the screen are updated, the system control unit 103 proceeds from S503 to S506 without updating the cache data. . Then, when transferring the cache data from the cache area to the VRAM area for screen data, the system control unit 103 changes the updated items such as the position and size.

図9を参照して、データパスを説明する。まず、図9(A)は、描画対象のフォントの、ROMに記憶されるベクタデータの模式図を示す。描画指示に応じて、描画処理部106がS505でキャッシュVRAMにこのベクタデータをラスタライズすると、図9(B)に示すようにラスタ化されたデータが生成される。S506で、システム制御部103は、位置及びサイズを変更して、図9(C)に示すように画面データ用のVRAMにラスタデータを転送する。画面データ用のVRAMのラスタデータは、表示処理部105により表示部28に表示される。   The data path will be described with reference to FIG. First, FIG. 9A shows a schematic diagram of vector data stored in a ROM of a font to be drawn. When the rendering processing unit 106 rasterizes the vector data in the cache VRAM in S505 in response to the rendering instruction, rasterized data is generated as shown in FIG. 9B. In step S506, the system control unit 103 changes the position and size, and transfers the raster data to the screen data VRAM as illustrated in FIG. 9C. The VRAM raster data for screen data is displayed on the display unit 28 by the display processing unit 105.

以上のように、描画負荷が高くレスポンス低下に影響するパラメータを適用するベクタ形式のフォント/アイコンについて、キャッシュ領域に保持するラスタデータを再利用することにより、再描画を高速に実行できる。   As described above, re-rendering can be executed at high speed by reusing raster data held in the cache area for vector fonts / icons that apply parameters that have a high rendering load and affect response degradation.

ベクタデータ(フォント又はアイコン)を描画する際の描画速度を計測し、その計測結果に応じてラスタデータのキャッシュの利用を制御するようにしてもよい。図10は、そのように変更した動作フローチャートを示す。   The drawing speed at the time of drawing vector data (font or icon) may be measured, and the use of the raster data cache may be controlled according to the measurement result. FIG. 10 shows a flowchart of the operation thus changed.

S1001で、システム制御部103は、描画処理部106に描画指示を発行する。ステップS501と同様に、システム制御部103は、描画パラメータが図6に示す項目のいずれかである場合、描画対象のフォント/アイコンを識別するフォント/アイコン識別子と、描画パラメータを一時的にRAM101のワークエリアに保持する。   In step S <b> 1001, the system control unit 103 issues a drawing instruction to the drawing processing unit 106. Similar to step S501, when the drawing parameter is one of the items shown in FIG. 6, the system control unit 103 temporarily stores the font / icon identifier for identifying the font / icon to be drawn and the drawing parameter in the RAM 101. Hold in work area.

S1002で、システム制御部103は、S502と同様に、S1001でRAM101のワークエリアに保持しているデータをデータベース800で探索する。   In step S1002, the system control unit 103 searches the database 800 for data stored in the work area of the RAM 101 in step S1001, as in step S502.

S1003で、システム制御部103は、データベース800の探索結果として識別子及び描画パラメータが一致するデータの有無を判定する。一致するデータが無い場合(S1003)、システム制御部103は、S1004に移行する。   In step S <b> 1003, the system control unit 103 determines the presence / absence of data with matching identifiers and drawing parameters as a search result of the database 800. If there is no matching data (S1003), the system control unit 103 proceeds to S1004.

S1004で、システム制御部103は、RAM101のワークエリアに保持しているデータをもとに新規の登録データを生成してデータベース800に追加する。   In step S <b> 1004, the system control unit 103 generates new registration data based on the data held in the work area of the RAM 101 and adds it to the database 800.

S1005で、システム制御部103は、描画処理部106によりデータベース800に登録された描画対象のフォント/アイコンをS505と同様の手順でラスタライズしてVRAMに描画する。このとき、システム制御部103は、描画処理部106の描画開始からキャッシュVRAM領域への描画終了までの時間を計測する。この計測は、クロック信号をカウントする等により実現する。   In step S1005, the system control unit 103 rasterizes the drawing target font / icon registered in the database 800 by the drawing processing unit 106 in the same manner as in step S505 and draws it in the VRAM. At this time, the system control unit 103 measures the time from the drawing start of the drawing processing unit 106 to the end of drawing in the cache VRAM area. This measurement is realized by counting clock signals.

S1006で、システム制御部103は、計測した描画時間を閾値と比較し、描画時間が当該閾値を超えていたら描画負荷が高いと判断する。そして、この描画負荷が高いと判断したとき、システム制御部103は、S1004で新規登録したデータのキャッシュVRAM領域のアドレス及びサイズの情報をデータベース800に追加する。閾値以下の場合、システム制御部103は、データベース800から該当する識別子とパラメータをクリアする。   In step S1006, the system control unit 103 compares the measured drawing time with a threshold, and determines that the drawing load is high if the drawing time exceeds the threshold. When determining that the drawing load is high, the system control unit 103 adds the address and size information of the cache VRAM area of the data newly registered in S1004 to the database 800. When the value is equal to or smaller than the threshold value, the system control unit 103 clears the corresponding identifier and parameter from the database 800.

S1003で既に識別子がデータベース800に存在して、パラメータもデータベース800の登録データと一致する場合、システム制御部103は、キャッシュされているラスタデータを画面データ用のVRAM領域に転送する。これにより、ベクタデータをラスタデータに展開する処理負荷を軽減できる。   If the identifier already exists in the database 800 in S1003 and the parameter also matches the registered data in the database 800, the system control unit 103 transfers the cached raster data to the VRAM area for screen data. As a result, the processing load for developing vector data into raster data can be reduced.

ベクタデータの描画負荷はシステムに依存する。本実施例では、描画速度を実測しその実測結果に基づいてキャッシュするか否かを判定することで、システムに左右されずに安定した速度での描画が可能となる。   The rendering load of vector data depends on the system. In the present embodiment, the drawing speed is measured, and it is determined whether or not to cache based on the actually measured result, thereby enabling drawing at a stable speed regardless of the system.

描画パラメータに加えて画面描画の際のモード情報をもとにキャッシュしたデータを再利用して描画を行ってもよい。モード情報とは、アニメーション動作モード又はスクロール動作モードである。これらのモードでは、アイコン/フォント等の描画アイテムを所定の間隔で位置を更新しながら再描画を繰り返す。滑らかな描画更新が求められる動作であるので、描画パラメータに依存した描画速度の低下を抑制する必要がある。   Drawing may be performed by reusing cached data based on mode information at the time of screen drawing in addition to drawing parameters. The mode information is an animation operation mode or a scroll operation mode. In these modes, redrawing is repeated while updating the positions of drawing items such as icons / fonts at predetermined intervals. Since the operation requires smooth drawing update, it is necessary to suppress a reduction in drawing speed depending on drawing parameters.

システム制御部103は、動作モードがアニメーション動作又はスクロール動作であることを検知すると、全てのアイコン/フォントについて、キャッシュVRAMでラスタ化したラスタデータを描画パラメータに依らずに再利用する。   When detecting that the operation mode is an animation operation or a scroll operation, the system control unit 103 reuses raster data rasterized by the cache VRAM for all icons / fonts regardless of the drawing parameters.

システム制御部103は、アニメーション動作またはスクロール動作の途中では、描画パラメータの変更を禁止するのが好ましい。   It is preferable that the system control unit 103 prohibits the change of the drawing parameter during the animation operation or the scroll operation.

このように、所定の動作モードではキャッシュしたラスタデータを再利用して描画するようにすることで、描画パラメータに依存せずに一定の速度で滑らかにアイコン/フォントを描画することが可能になる。   As described above, in the predetermined operation mode, the cached raster data is reused to be drawn, so that the icon / font can be smoothly drawn at a constant speed without depending on the drawing parameter. .

描画装置10の上述した機能の一部又は全部はシステム制御部103上で動作するプログラムによっても実現可能である。すなわち、本実施例は、デジタルカメラ100のプログラム動作するCPU又は演算装置上で動作するプログラムによっても実現可能である。   Part or all of the above-described functions of the drawing apparatus 10 can also be realized by a program operating on the system control unit 103. That is, the present embodiment can also be realized by a CPU that operates the program of the digital camera 100 or a program that operates on an arithmetic device.

Claims (6)

ベクタデータを描画パラメータに従い描画し、対応するラスタデータを出力する描画処理手段と、
前記描画処理手段の処理負荷を判定する判定手段と、
前記処理負荷が閾値を超える場合に、前記描画処理手段から出力される前記ラスタデータを一時保持する記憶手段と、
前記記憶手段にラスタデータを一時保持するベクタデータを管理するデータベースと、
ベクタデータ描画の指示に応じて前記データベースを参照し、描画すべきベクタデータに対応するラスタデータが前記記憶手段に記憶されている場合に、前記記憶手段に一時保持される前記ラスタデータを再利用し、記憶されていない場合に、前記描画処理手段に前記描画すべきベクタデータを描画するように制御する制御手段
とを有することを特徴とする描画装置。
Drawing processing means for drawing vector data according to drawing parameters and outputting corresponding raster data;
Determining means for determining a processing load of the drawing processing means;
Storage means for temporarily storing the raster data output from the drawing processing means when the processing load exceeds a threshold;
A database for managing vector data for temporarily storing raster data in the storage means;
When the raster data corresponding to the vector data to be drawn is stored in the storage means by referring to the database according to the vector data drawing instruction, the raster data temporarily stored in the storage means is reused And a control unit that controls the drawing processing unit to draw the vector data to be drawn when not stored.
前記判定手段が、前記描画パラメータがグラデーションの塗り、透過度及びフィルタ効果のいずれかを示すか否かにより、前記描画処理手段の処理負荷を判定することを特徴とする請求項1に記載の描画装置。   The drawing according to claim 1, wherein the determination unit determines a processing load of the drawing processing unit based on whether the drawing parameter indicates any one of gradation painting, transparency, and filter effect. apparatus. 前記判定手段は、前記描画処理手段による描画に要する時間を計測する手段を有し、前記時間に従い前記描画処理手段の処理負荷を判定することを特徴とする請求項1又は2に記載の描画装置。   The drawing apparatus according to claim 1, wherein the determination unit includes a unit that measures a time required for drawing by the drawing processing unit, and determines a processing load of the drawing processing unit according to the time. . 更に、描画の動作モードを判定する手段を有し、
前記制御手段は、前記動作モードがアニメーション動作またはスクロール動作の場合であって、対応するラスタデータが前記記憶手段に一時保持されているときには、前記記憶手段に一時保持されるラスタデータを再利用する
ことを特徴とする請求項1乃至3の何れか1項に記載の描画装置。
Furthermore, it has means for determining the drawing operation mode,
When the operation mode is an animation operation or a scroll operation and the corresponding raster data is temporarily stored in the storage unit, the control unit reuses the raster data temporarily stored in the storage unit The drawing apparatus according to any one of claims 1 to 3, wherein
ベクタデータを描画パラメータに従い描画し、対応するラスタデータを出力する描画処理ステップと、
前記描画処理ステップの処理負荷が閾値を超えるかどうかを判定する判定ステップと、
前記処理負荷が前記閾値を超える場合に前記描画処理ステップで生成される前記ラスタデータを記憶手段に一時保持する記憶ステップと、
前記記憶手段にラスタデータを一時保持するベクタデータをデータベースに登録するステップと、
ベクタデータ描画の指示に応じて前記データベースを参照し、描画すべきベクタデータに対応するラスタデータが前記記憶手段に記憶されている場合に、前記記憶手段に一時保持される前記ラスタデータを再利用し、記憶されていない場合に、前記描画処理ステップにおいて前記描画すべきベクタデータを描画するように制御する制御ステップ
とを有することを特徴とする描画方法。
A drawing processing step of drawing vector data according to drawing parameters and outputting corresponding raster data;
A determination step of determining whether a processing load of the drawing processing step exceeds a threshold;
A storage step of temporarily storing in the storage means the raster data generated in the drawing processing step when the processing load exceeds the threshold;
Registering vector data temporarily storing raster data in the storage means in a database;
When the raster data corresponding to the vector data to be drawn is stored in the storage means by referring to the database according to the vector data drawing instruction, the raster data temporarily stored in the storage means is reused And a control step of controlling to draw the vector data to be drawn in the drawing processing step when not stored.
撮像装置の演算手段に請求項5に記載の描画方法を実行させるためのプログラム。   A program for causing a computing unit of an imaging apparatus to execute the drawing method according to claim 5.
JP2013223397A 2013-10-28 2013-10-28 Drawing apparatus, method and program Expired - Fee Related JP6271945B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013223397A JP6271945B2 (en) 2013-10-28 2013-10-28 Drawing apparatus, method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013223397A JP6271945B2 (en) 2013-10-28 2013-10-28 Drawing apparatus, method and program

Publications (2)

Publication Number Publication Date
JP2015087809A true JP2015087809A (en) 2015-05-07
JP6271945B2 JP6271945B2 (en) 2018-01-31

Family

ID=53050577

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013223397A Expired - Fee Related JP6271945B2 (en) 2013-10-28 2013-10-28 Drawing apparatus, method and program

Country Status (1)

Country Link
JP (1) JP6271945B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06168339A (en) * 1992-11-30 1994-06-14 Fuji Xerox Co Ltd Plotting device
JP2008039906A (en) * 2006-08-02 2008-02-21 Casio Comput Co Ltd Information processing system, information processor, image display device, and its program
JP2008071241A (en) * 2006-09-15 2008-03-27 Canon Inc Image processing device, image processing method, and computer program
JP2011025539A (en) * 2009-07-27 2011-02-10 Ricoh Co Ltd Printing device, image output system, rendering method and program
JP2011165173A (en) * 2010-01-18 2011-08-25 Canon Inc Information processing apparatus, method of operating information processing apparatus, and storage medium
JP2012128580A (en) * 2010-12-14 2012-07-05 Canon Inc Information processing unit, information processing method and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06168339A (en) * 1992-11-30 1994-06-14 Fuji Xerox Co Ltd Plotting device
JP2008039906A (en) * 2006-08-02 2008-02-21 Casio Comput Co Ltd Information processing system, information processor, image display device, and its program
JP2008071241A (en) * 2006-09-15 2008-03-27 Canon Inc Image processing device, image processing method, and computer program
JP2011025539A (en) * 2009-07-27 2011-02-10 Ricoh Co Ltd Printing device, image output system, rendering method and program
JP2011165173A (en) * 2010-01-18 2011-08-25 Canon Inc Information processing apparatus, method of operating information processing apparatus, and storage medium
JP2012128580A (en) * 2010-12-14 2012-07-05 Canon Inc Information processing unit, information processing method and program

Also Published As

Publication number Publication date
JP6271945B2 (en) 2018-01-31

Similar Documents

Publication Publication Date Title
US10614549B2 (en) Varying effective resolution by screen location by changing active color sample count within multiple render targets
US10410398B2 (en) Systems and methods for reducing memory bandwidth using low quality tiles
WO2022247179A1 (en) Image rendering method and apparatus, device, and storage medium
JP5183286B2 (en) Character display device
JP2012234454A (en) Image forming device, control method of image forming device and computer program
JP2013045401A (en) Animation drawing device
JP2013196100A (en) Drawing display device and drawing display program
JP2010175638A (en) Display device and method for display in display device
CN115018955A (en) Image generation method and equipment
US11302054B2 (en) Varying effective resolution by screen location by changing active color sample count within multiple render targets
JP6271945B2 (en) Drawing apparatus, method and program
EP2992512B1 (en) Anti-aliasing for geometries
JP2012108825A (en) Information processing device, information processing method and program
US20140354627A1 (en) Rendering a 3d shape
CN112419145B (en) Image data processing method, device, equipment and storage medium
CN113240577B (en) Image generation method and device, electronic equipment and storage medium
Kong et al. Fast display method of Chinese vector font based on GPU acceleration
CN116245995A (en) Image rendering method, device and equipment
KR20220104397A (en) Supporting system for painting work using beam projector
JPH01200489A (en) Processor for three-dimensional graphic
JP5885827B2 (en) Drawing control apparatus and drawing control program
CN115501589A (en) Model rendering method and device, electronic equipment and storage medium
CN116912093A (en) Picture rendering method and device, electronic equipment and storage medium
WO2015083279A1 (en) Information processing device
JP2009301218A (en) Vector image renderer, vector image rendering method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161011

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170706

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170718

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170915

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171003

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171117

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: 20171205

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171228

R151 Written notification of patent or utility model registration

Ref document number: 6271945

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D03

LAPS Cancellation because of no payment of annual fees