JP2014035453A - Image processor - Google Patents
Image processor Download PDFInfo
- Publication number
- JP2014035453A JP2014035453A JP2012176636A JP2012176636A JP2014035453A JP 2014035453 A JP2014035453 A JP 2014035453A JP 2012176636 A JP2012176636 A JP 2012176636A JP 2012176636 A JP2012176636 A JP 2012176636A JP 2014035453 A JP2014035453 A JP 2014035453A
- Authority
- JP
- Japan
- Prior art keywords
- character string
- display
- character
- vertical
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Digital Computer Display Output (AREA)
- Transforming Electric Information Into Light Information (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
この発明は、1ライン分の記憶容量を有するラインバッファを利用して画像データの描画および液晶ディスプレイなどの表示器への表示を行う画像処理装置に関する。 The present invention relates to an image processing apparatus that draws image data and displays it on a display such as a liquid crystal display by using a line buffer having a storage capacity for one line.
周知の通り、表示器への静止画や動画の表示制御は、描画アプリケーションに従って静止画や動画の画像データをバッファに書き込む描画処理とバッファ内の画像データを読み出して表示器に表示させる表示処理とを同時並行的に進めることで実現される。このような描画処理および表示処理を行う画像処理装置としては、1フレーム分の画像データを記憶するフレームバッファを備えたフレームバッファ方式の画像処理装置と、1ライン分の画像データを記憶するラインバッファを備えたラインバッファ方式の画像処理装置がある。ラインバッファ方式の画像処理装置は、フレームバッファ方式の画像処理装置に比較して画像データの書き込み先となるバッファの記憶容量が少なくてすむため、小型化に適し、車載用の画像表示システム(例えば、スピードメータなどのメータ類を画像表示により実現するシステム)など省スペース化が必要となるシステムの構築に好適である。なお、ラインバッファ方式の画像処理装置に関する文献として例えば特許文献1がある。 As is well known, display control of still images and moving images on a display device includes drawing processing for writing image data of still images and moving images into a buffer according to a drawing application, and display processing for reading out image data in the buffer and displaying it on the display device. This is realized by proceeding in parallel. As an image processing apparatus for performing such drawing processing and display processing, a frame buffer type image processing apparatus having a frame buffer for storing image data for one frame and a line buffer for storing image data for one line There is a line buffer type image processing apparatus including Since the line buffer type image processing apparatus requires less storage capacity of the buffer to which the image data is written compared to the frame buffer type image processing apparatus, it is suitable for downsizing, and an in-vehicle image display system (for example, It is suitable for construction of a system that requires space saving, such as a system that realizes meters such as a speedometer by image display). For example, Japanese Patent Application Laid-Open No. H10-228707 discloses a document related to a line buffer type image processing apparatus.
従来、表示器の設置態様としては、垂直走査方向が上下方向(鉛直方向)となり、水平走査方向が左右方向となるように設置する態様が一般的であった。しかし、近年では、垂直走査方向が左右方向となり、水平走査方向が上下方向となるように反時計回りに90度回転させて表示器を設置する態様も多々見受けられるようになってきている。例えば、前述した車載用の画像表示システムでは、ダッシュボードの運転席側に表示器を設置する必要があるが、設置スペースに限りがあるため縦置きによる表示器の設置が必要となることが多い。以下、垂直走査方向が上下方向(鉛直方向)となり、水平走査方向が左右方向となるように配置された表示器を「横置き表示器」と呼び、これを反時計回りに90度回転させて設置された表示器のことを「縦置き表示器」と呼ぶ。なお、「横置き表示器」を時計回りに90度回転させて設置された表示器のことを「縦置き表示器」としても良い。 Conventionally, the display device is generally installed in such a manner that the vertical scanning direction is the vertical direction (vertical direction) and the horizontal scanning direction is the horizontal direction. However, in recent years, it has become increasingly common to install the display device by rotating it 90 degrees counterclockwise so that the vertical scanning direction is the left-right direction and the horizontal scanning direction is the up-down direction. For example, in the above-described in-vehicle image display system, it is necessary to install a display device on the driver's seat side of the dashboard. However, since the installation space is limited, it is often necessary to install the display device vertically. . Hereinafter, a display arranged so that the vertical scanning direction is the vertical direction (vertical direction) and the horizontal scanning direction is the left-right direction is referred to as a “horizontal display”, which is rotated 90 degrees counterclockwise. The installed display is called “vertical display”. A display installed by rotating the “horizontal display” 90 degrees clockwise may be referred to as a “vertical display”.
表示器に表示される画像は、スプライトなどの図柄や文字列、線などの表示要素を多数組み合わせて構成されている。横置き表示器における文字列の表示は、図4(a)に示すように、文字列を構成する各文字のフォントを水平走査方向に並べて表示することで実現されていた。これに対して、縦置き表示器に文字列を表示する場合には、文字列の読み取りを容易にするために、図4(b)に示すように、文字列を構成する各文字のフォントとして、図4(a)に示すものを時計回りに90度回転させたフォント(すなわち、文字の高さ方向が水平走査方向に一致するフォント)を垂直走査方向に並べて表示することが必要となる。以下では、図4(a)に示すように、構成文字のフォントを水平走査方向に並べて構成される文字列を「横方向文字列」と呼び、図4(b)に示すように、構成文字のフォントを垂直走査方向に並べて構成される文字列を「縦方向文字列」と呼ぶ。また、以下では、横方向文字列を構成するためのフォントを「横方向文字列用フォント」と呼び、縦方向文字列を構成するフォントを「縦方向文字列用フォント」と呼ぶ。 The image displayed on the display unit is configured by combining a number of display elements such as symbols such as sprites, character strings, and lines. As shown in FIG. 4A, the display of the character string on the horizontal display is realized by displaying the fonts of the characters constituting the character string side by side in the horizontal scanning direction. On the other hand, when displaying a character string on a vertical display, as shown in FIG. 4B, as a font for each character constituting the character string, in order to facilitate reading of the character string. It is necessary to display fonts obtained by rotating the one shown in FIG. 4A by 90 degrees clockwise (that is, fonts whose character height direction matches the horizontal scanning direction) in the vertical scanning direction. Hereinafter, as shown in FIG. 4A, a character string formed by arranging fonts of constituent characters in the horizontal scanning direction is referred to as a “horizontal character string”, and as shown in FIG. A character string formed by arranging the fonts in the vertical scanning direction is called a “vertical character string”. In the following, a font for configuring a horizontal character string is referred to as a “horizontal character string font”, and a font configuring a vertical character string is referred to as a “vertical character string font”.
前述したように、ラインバッファ方式の画像処理装置は省スペース化の要求の高いシステムの構築に適するものの、この種のシステムでは表示器の設置スペースにも制約が課されることが多く、表示器の縦置きに対応することを要求されることが多い。表示器の縦置きに対応するには、縦方向文字列の表示機能を有していることが必要となるが、縦方向文字列を表示する機能を備えたラインバッファ方式の画像処理装置は従来提案されていなかった。 As described above, the line buffer type image processing apparatus is suitable for the construction of a system requiring high space saving. However, in this type of system, there are many restrictions on the installation space of the display. In many cases, it is required to correspond to the vertical placement. In order to support the vertical placement of the display device, it is necessary to have a function of displaying a vertical direction character string. However, a line buffer type image processing apparatus having a function of displaying a vertical direction character string has been conventionally used. It was not proposed.
本発明は上記課題に鑑みて為されたものであり、1ライン分の記憶容量を有するラインバッファを利用して画像データの描画および表示器への表示を行う画像処理装置に縦方向文字列を表示させることを可能にする技術を提供することを目的とする。 The present invention has been made in view of the above problems, and a vertical character string is provided in an image processing apparatus that draws image data and displays it on a display using a line buffer having a storage capacity for one line. An object is to provide a technique that enables display.
上記課題を解決するために本発明は、表示器における1スキャンライン分の画像を表す画像データを記憶するラインバッファと、前記表示器に表示させる文字列の表示態様を示す属性データが格納される汎用テーブルと、各種の文字のフォントを表すフォントデータを格納したメモリから、読み出しを指示された文字のフォントデータを読み出すメモリインタフェースと、前記メモリから読み出されたフォントデータを利用して1スキャンライン分の画像データを生成し、前記ラインバッファに書き込む描画処理を実行する画像データ生成部と、各水平走査期間において水平スキャンラインの跨る文字を前記汎用テーブルに格納された属性データを参照して特定し、該当する文字についての描画処理の実行を前記画像データ生成部に指示するコントローラと、を具備し、前記文字列は、当該文字列を構成する各文字の高さ方向が水平走査方向に一致し、かつ、各文字を垂直走査方向に並べた縦方向文字列であり、前記コントローラは、水平スキャンラインが縦方向文字列を跨いでいる場合に水平スキャンラインの跨る文字および当該文字の何ライン目を跨いでいるかを示すパラメータを水平スキャンラインを更新する毎に更新しつつ、当該パラメータの示す文字の当該パラメータの示すラインについての描画処理の実行を前記画像データ生成部に指示することを特徴とする画像処理装置、を提供する。 In order to solve the above problems, the present invention stores a line buffer for storing image data representing an image for one scan line on a display device, and attribute data indicating a display mode of a character string to be displayed on the display device. One scan line using a general purpose table, a memory interface that reads font data of characters instructed to be read from a memory that stores font data representing fonts of various characters, and font data read from the memory Image data generation unit that generates image data for each minute and executes drawing processing to be written in the line buffer, and specifies characters across horizontal scan lines in each horizontal scanning period with reference to attribute data stored in the general-purpose table And instructing the image data generation unit to execute a drawing process for the corresponding character. The character string is a vertical character string in which the height direction of each character constituting the character string matches the horizontal scanning direction, and the characters are arranged in the vertical scanning direction, The controller updates the parameter indicating the character across the horizontal scan line and the number of lines of the character across the horizontal scan line when the horizontal scan line extends across the vertical character string. An image processing apparatus is provided that instructs the image data generation unit to execute a drawing process for a line indicated by the parameter of the character indicated by the parameter.
より詳細に説明すると、縦方向文字列の属性データが汎用テーブルに格納されると、コントローラはその縦方向文字列に対応づけてレジスタ等に第1および第2のパラメータを設定する。ここで、第1のパラメータとは、水平スキャンラインが当該第1のパラメータに対応する縦方向文字列を跨いでいる場合に、水平スキャンラインの跨る文字を示すパラメータであり、第2のパラメータとは、当該第1のパラメータの示す文字の何ライン目を水平スキャンラインが跨いでいるのかを示すパラメータである。なお、第1のパラメータの初期値は、縦方向文字列の先頭の文字を示す値であり、第2のパラメータの初期値は上記先頭の文字の先頭ラインを示す値である。本発明においては、水平スキャンラインが更新される毎に第1および第2のパラメータが更新され、縦方向文字列を構成する各文字のフォントの画像データが先頭文字のものから順に1ライン分ずつラインバッファに描画される。これにより、表示器への縦方向文字列の表示が実現される。上記第1および第2のパラメータの初期化については、汎用テーブルへの縦方向文字列の属性データの書き込みの際にホストCPUに行わせても良く、また、画像処理装置の初期化の際に行っても良い。なお、特許文献2には、文字列の縦書きレイアウトについての記載があるが、縦置き表示器における縦方向文字列の表示制御を開示するものではなく、本願発明とは全く異なる技術である。
More specifically, when the vertical character string attribute data is stored in the general-purpose table, the controller sets the first and second parameters in a register or the like in association with the vertical character string. Here, the first parameter is a parameter indicating a character straddling the horizontal scan line when the horizontal scan line straddles the vertical character string corresponding to the first parameter. Is a parameter indicating which line of the character indicated by the first parameter the horizontal scan line is straddling. The initial value of the first parameter is a value indicating the first character of the vertical character string, and the initial value of the second parameter is a value indicating the first line of the first character. In the present invention, each time the horizontal scan line is updated, the first and second parameters are updated, and the image data of the font of each character constituting the vertical character string is one line in order from the first character. Rendered in the line buffer. Thereby, the display of the vertical direction character string on the display is realized. The initialization of the first and second parameters may be performed by the host CPU when writing the vertical direction character string attribute data to the general-purpose table, or when the image processing apparatus is initialized. You can go.
より好ましい態様においては、前記メモリには、文字の高さ方向を水平走査方向に一致させたフォントを表す縦方向文字列用フォントデータが格納されており、縦方向文字列の属性データでは、構成文字の描画に縦方向文字列用フォントデータを用いることが指定されていることを特徴とする。このような態様によれば、縦方向文字列を構成する各文字の表示を行う際に、横方向文字列用のフォントに時計回りに90度の回転編集を施して使用する態様に比較して、演算処理量が削減され、描画性能の低下や演算回路の規模増大を回避することが可能になる。 In a more preferred aspect, the memory stores vertical character string font data representing a font in which the height direction of the characters is matched with the horizontal scanning direction. The attribute data of the vertical character string includes: It is specified that the font data for the vertical character string is used for character drawing. According to such an aspect, when each character constituting the vertical character string is displayed, the font for the horizontal character string is rotated 90 degrees clockwise and used in comparison with the aspect used. Thus, the amount of calculation processing is reduced, and it is possible to avoid a decrease in drawing performance and an increase in the scale of the calculation circuit.
また、別の好ましい態様においては、前記メモリに記憶されているフォントデータには圧縮符号化が施されており、前記メモリから読み出されたフォントデータをデコードして前記画像データ生成部に与えるデコード部をさらに有することを特徴とする。このような態様によれば、各種フォントデータを格納するためのメモリの小容量化を図ることができ、画像表示システム全体の省スペース化を図ることができる。 In another preferred embodiment, the font data stored in the memory is compressed and encoded, and the decoding is performed by decoding the font data read from the memory and supplying the decoded data to the image data generation unit. It further has a portion. According to such an aspect, it is possible to reduce the capacity of the memory for storing various font data, and to save the space of the entire image display system.
(A:構成)
図1は、この発明による画像処理装置の一実施形態である画像表示LSI(Large Scale Integrated circuit;大規模集積回路)100を含む画像表示システムの構成を示すブロック図である。図1では、画像表示LSI100の機能の理解を容易にするため、同画像表示LSI100に接続されたホストCPU201と、LCD(Liquid Crystal Display;液晶表示器)202と、ROM203が同画像表示LSI100とともに図示されている。図1に示す画像表示システムは、例えば乗用車などの車両に搭載され、スピードメータ等の画像や交通情報などを表す文字情報を表示する車載システムであり、LCD202は車両のダッシュボードの運転席部分に縦置きされる。
(A: Configuration)
FIG. 1 is a block diagram showing a configuration of an image display system including an image display LSI (Large Scale Integrated circuit) 100 which is an embodiment of an image processing apparatus according to the present invention. In FIG. 1, in order to facilitate understanding of the functions of the
ホストCPU201は、図1に示す画像表示システムを制御するプロセッサである。ホストCPU201による制御の下でLCD202に表示される1フレーム分の画像は、スプライトと呼ばれる図柄の部品や文字列、線を組み合わせて構成されている。ホストCPU201は、LCD202にスプライトや文字列、線を表示させるためのコマンドやデータを画像表示LSI100に供給する。ROM203には、各種のスプライトおよび文字列を構成する各種文字のフォントについての圧縮形式の画像データや、アルファブレンディングに用いる圧縮形式のアルファデータが記憶されている。詳細については後述するが、本実施形態では、スプライトおよびフォント等の圧縮符号化方式として、デコード対象の画素に先行する複数の画素(例えば、スプライトの場合は左隣、左上および直上の3画素)のデコード結果が必要となる圧縮符号化方式が採用されている。
The
画像表示LSI100は、ホストCPU201から与えられるコマンドやデータにしたがって、LCD202に画像を表示させるラインバッファ方式の画像処理装置である。図1に示すように、画像表示LSI100は、CPUインタフェース(図1では、「CPUI/F」と表記)101と、カラーパレット記憶部102と、汎用テーブル103と、レジスタ104と、コントローラ105と、ROMインタフェース(図1では、「ROMI/F」と表記)106と、デコード部107と、画像データ生成部108と、画像出力部109と、これら各部に動作クロックを供給するクロック生成部110と、を有している。
The
CPUインタフェース101は、ホストCPU201から供給されるコマンドやデータを受け取って画像表示LSI100内の関係する各部に供給するインタフェースである。カラーパレット記憶部102は、画像表示LSI100をカラーパレットモードで動作させる際のカラーパレットを表すカラーパレットデータを記憶する回路である。カラーパレットモードとは、例えば24bit(或いは16Bit)カラーのうちの予め指定された数分の色(例えば256色)によりカラー画像を表現する動作モードであり、カラーパレットデータとはそれらの色を指定するデータである。汎用テーブル103は、ホストCPU201からCPUインタフェース101を介して供給される属性データを記憶する属性データ記憶部の役割を担っている。レジスタ104は、スプライト表示等のための各種制御データを記憶する回路である。本実施形態では、カラーパレット記憶部102、汎用テーブル103、およびレジスタ104を各々別個に設けたが、1つの揮発性メモリ内の記憶領域の割り当てによりこれらの役割を実現しても良い。
The
属性データは、各垂直走査期間においてLCD202に表示させる画像を構成するスプライトや文字列の表示態様(画面上のどの位置にどのような形で表示するのかなど)を示すデータである。属性データは、垂直走査期間毎にホストCPU201から供給され、CPUインタフェース101によってスプライトや文字列などの画像構成要素毎に汎用テーブル103に格納される。
The attribute data is data indicating the display mode of the sprites and character strings that constitute the image displayed on the
図2は、汎用テーブル103における文字列の属性データの格納例を示す図である。文字列の属性データには、文字列全体の表示態様(文字列の表示位置など)を表すデータと、当該文字列を構成する各文字を示すデータと、各文字の表示に用いるフォントタイプとが含まれる。図2において、アドレスがLYSAからLYEAの領域には、文字列全体の表示態様を示すデータ(図2におけるレイヤ#0、#1および#2の各々)がLCD202に表示させる画像に含まれる文字列の数分だけ格納される。
FIG. 2 is a diagram illustrating an example of storing character string attribute data in the general-purpose table 103. The attribute data of the character string includes data representing the display mode of the entire character string (such as the display position of the character string), data indicating each character constituting the character string, and the font type used for displaying each character. included. In FIG. 2, in the area where the addresses are LYSA to LYEA, the character string included in the image to be displayed on the
例えば、図2に示すレイヤ#0は、同図2に示す文字列“ABCDE”の表示態様を示すデータである。このレイヤ#0には、当該文字列の表示位置(LCD202を横置きした場合の表示領域の左上隅を座標原点する当該文字列の左上隅の座標XおよびY)が含まれている。また、図2に示すレイヤ#0には、汎用テーブル103において上記文字列を構成する各文字(すなわち、文字番号0〜文字番号4の各文字)を示すデータ(例えば、文字コード)を記憶した領域を規定するアドレス(FCSAおよびFCEA)と、これら各文字の表示に使用するフォントの種類および文字の大きさ(水平走査方向の画素数SZXおよび垂直走査方向の画素数SZY)を示すフォントタイプ属性を記憶した領域のアドレス(FTYP)とが含まれている。
For example,
図2に示すように、ROM203には、ゴシック体や明朝体などのフォントタイプ毎に各種文字について圧縮形式のフォントの画像データが文字コード順に格納されている。本実施形態では、上記文字番号の順に上記フォントタイプ属性の示すフォントタイプの圧縮形式の画像データを読み出してデコードすることで、文字列を構成する各文字についての描画処理が実現される。
As shown in FIG. 2, the
前述したように、本実施形態では、LCD202は縦置きされているため、LCD202に表示させる文字列は全て縦方向文字列とされている。そして、本実施形態では、縦方向文字列の表示を可能にするために、文字列に対応付けて、処理文字番号、処理ライン番号および表示/非表示判定フラグといった3種類のパラメータがレジスタ104に格納されている。具体的には、本実施形態では、文字列全体の表示態様を規定するデータ(例えば、図2におけるレイヤ#0)に上記3種類の新たなパラメータの格納先のアドレスが含まれている。なお、文字列全体の表示態様を規定するデータに上記3種類の新たなパラメータを含めておいても勿論良い。これら新たな3種類のパラメータの役割については重複を避けるため、動作例において明らかにする。また、本実施形態では、縦方向文字列の表示を容易にするために、縦方向文字列用フォント(すなわち、高さ方向が水平走査方向に一致するように配置された文字フォント)の圧縮フォントデータがROM203に格納されており、縦方向文字列の属性データでは当該フォントタイプ属性として当該縦方向文字列用フォントを示す値がセットされている。
As described above, in the present embodiment, since the
コントローラ105は、各垂直走査期間において、各表示対象の画像データのLCD202での表示に先行して、各種画像構成要素(すなわち、スプライト、文字列および線)の画像データの生成を画像データ生成部108に順次指令する回路である。具体的には、コントローラ105は、各垂直走査期間において、汎用テーブル103に記憶された各画像構成要素の属性データに基づき、それら画像構成要素の画像データを生成する処理の実行スケジュールを作成し、この実行スケジュールに従って、各種画像構成要素についての画像データ生成指示を画像データ生成部108に供給する。本実施形態では、前述した3種類の新たなパラメータの導入に加えて、コントローラ105に本実施形態の特徴を顕著に示す処理を実行させることで、縦方向文字列の表示が実現される。この点については、後に詳細に説明する。
The
画像データ生成部108は、各種画像構成要素の画像データを先頭ラインから順に1ライン分ずつ生成して画像出力部109のラインバッファに書き込む処理をコントローラ105からの画像データ生成指示にしたがって実行する回路である。図1に示すように、画像データ生成部108は、デコード部107およびROMインタフェース106を介してROM203に接続されている。ROMインタフェース106は、デコード部107から与えられる指示に応じてROM203から圧縮形式の画像データ(スプライトの画像データであるスプライトデータ、或いはフォントの画像データであるフォントデータ)を読み出し、デコード部107に出力する。
The image
デコード部107は、コントローラ105による制御の下、ROMインタフェース106を介してROM203から圧縮形式のスプライトデータ或いは圧縮形式のフォントデータを読み出し、コントローラ105により指示された1ライン分の画像のデコードを画素単位で行ってそのデコード結果を画像データ生成部108に与える。図1に示すように、デコード部107は、圧縮形式のスプライトデータをデコードするためのパターンデコーダ107Aと、圧縮形式のフォントデータをデコードするためのフォントデコーダ107Bを含んでいる。図1では詳細な図示を省略したが、パターンデコーダ107Aおよびフォントデコーダ107Bの各々はROM203から読み出した圧縮データを格納するための第1のワークメモリと、後続画素のデコードに必要となる所定数分の画素データを保持しておくための第2のワークメモリとを有しており、第2のワークメモリの格納内容を順次更新しつつ第1のワークメモリに格納された圧縮データを1画素単位でデコードする。
The
画像データ生成部108は、スプライトレンダリング部108A、フォントレンダリング部108Bおよびラインレンダリング部108Cを含んでいる。スプライトレンダリング部108Aは、デコード部107によりデコードされたスプライトデータに、画像データ生成指示により指示された編集(拡大・縮小・変形、カラー演算など)を施してラインバッファへの書き込みを行う回路である。フォントレンダリング部108Bは、デコード部107によりデコードされたフォントデータに画像データ生成指示により指示された編集(拡大・縮小・変形、カラー演算など)を施してラインバッファへの書き込みを行う回路である。そして、ラインレンダリング部108Cは、画像データ生成指示にしたがって線を表す画像データをラインバッファへ書き込む回路である。
The image
画像出力部109は、各々水平スキャンライン1本分の画像データを記憶可能な容量を持ったラインバッファ109Aおよび109Bを有している。これらのラインバッファ109Aおよび109Bは、一方が書き込み用ラインバッファ、他方が読み出し用ラインバッファとされ、LCD202の水平同期信号に同期して、その時点までに書き込み用ラインバッファであったものが読み出し用ラインバッファとされ、読み出し用ラインバッファであったものが書き込み用ラインバッファとされる。各水平走査期間では、読み出し用ラインバッファに記憶された1ライン分の画像データが読み出され、LCD202に供給されて表示される一方、1水平走査期間後に表示される1ライン分の画像データが画像データ生成部108によって書き込み用バッファに書き込まれる。
以上が画像表示LSI100の構成である。
The
The above is the configuration of the
(B:動作)
次いで、画像表示LSI100の動作を説明する。
前述したように、画像表示LSI100の汎用テーブル103には、各垂直走査期間においてLCD202に表示させる画像を構成するスプライトや文字列等についての属性データの書き込みがホストCPU201によって垂直走査期間毎に行われる。各垂直走査期間においては、コントローラ105は、水平走査期間毎に、次の水平走査期間における水平スキャンラインがそれら属性データに対応する各画像構成要素を跨いでいるか否か(すなわち、次の水平走査期間において表示対象となるか否か)を判定し、表示対象と判定された画像構成要素についての画像データ生成指示を画像構成要素毎に生成して画像データ生成部108に与える処理を実行する。
(B: Operation)
Next, the operation of the
As described above, in the general-purpose table 103 of the
次の水平走査期間において表示対象となるか否かの判定対象が横方向文字列(図4(a)参照)であれば、当該横方向文字列の属性データの示す垂直走査方向の表示位置Y、垂直走査方向の当該横方向文字列の大きさSZY、および次の水平走査期間において描画する水平スキャンラインの位置VDが以下の式(1)の関係を満たす場合に、コントローラ105は当該横方向文字列を表示対象と判定する(スプライトについて表示対象であるか否かの判定を行う場合も同様である)。
Y≦VD≦Y+SZY・・・(1)
If the determination target of whether or not to display in the next horizontal scanning period is a horizontal character string (see FIG. 4A), the display position Y in the vertical scanning direction indicated by the attribute data of the horizontal character string If the size SZY of the horizontal character string in the vertical scanning direction and the position VD of the horizontal scan line drawn in the next horizontal scanning period satisfy the relationship of the following expression (1), the controller 105 A character string is determined as a display target (the same applies when determining whether a sprite is a display target).
Y ≦ VD ≦ Y + SZY (1)
これに対して、縦方向文字列(図4(b)参照)の場合は、1文字目については前掲式(1)を用いて表示対象であるか否かを判定することができるが、2文字目以降については、前掲式(1)を用いて表示対象であるか否かの判定を行うことはできない。これは、縦方向文字列の2文字目以降の文字について前掲式(1)により表示/非表示の判定を行うには、当該2文字目以降の文字の各々の表示位置を示すデータが属性データに含まれている必要があるが、このようなデータは文字列の属性データに含まれていないからである。また、縦方向文字列全体についての垂直走査方向の表示位置に判定対象の文字に先行する全ての文字の垂直走査方向の大きさを加算することで当該判定対象の文字の垂直走査方向の表示位置を算出することも不可能ではないが、このような表示位置の算出を2文字目以降の各文字について行うことは、描画性能の低下や演算回路の規模増大などの問題を生じさせることになる。 On the other hand, in the case of a vertical character string (see FIG. 4B), it is possible to determine whether or not the first character is a display target using the above formula (1). For the characters after the character, it is not possible to determine whether or not they are display targets using the above formula (1). This is because data indicating the display position of each of the second and subsequent characters is attribute data in order to determine whether the second and subsequent characters of the vertical character string are to be displayed / hidden by the above formula (1). This is because such data is not included in the character string attribute data. Also, the vertical scanning direction display position of the character to be determined is added to the vertical scanning direction display position of the entire vertical character string by adding the size of all characters preceding the determination target character in the vertical scanning direction. Although it is not impossible to calculate the display position, the calculation of the display position for each character after the second character causes problems such as a decrease in drawing performance and an increase in the scale of the arithmetic circuit. .
そこで、本実施形態では、前述したように、処理文字番号、処理ライン番号および表示/非表示判定フラグの3つの新たなパラメータを導入することで、描画性能の低下や演算回路の規模増大などの問題を生じさせることなく、ラインバッファ方式の画像処理装置に縦方向文字列を表示させることを実現している。ここで、表示/非表示判定フラグは、次の水平走査期間における水平スキャンラインが、この表示/非表示判定フラグに対応する縦方向文字列を跨いでいるか否か(すなわち、当該縦方向文字列が次の水平走査期間において表示対象となるか否か)を示すパラメータである。処理文字番号は、当該処理文字番号に対応する縦方向文字列を次の水平走査期間における水平スキャンラインが跨いでいる場合に、当該水平スキャンラインの跨る文字を示すパラメータである。そして、処理ライン番号は、処理文字番号の示す文字の何ライン目が当該水平スキャンラインに重なっているかを示すパラメータである。以下、これら3種類のパラメータを使用した縦方向文字列の表示制御を説明する。 Therefore, in this embodiment, as described above, by introducing three new parameters of the processing character number, the processing line number, and the display / non-display determination flag, the drawing performance is reduced and the scale of the arithmetic circuit is increased. It is possible to display a vertical character string on a line buffer image processing apparatus without causing a problem. Here, the display / non-display determination flag indicates whether or not the horizontal scan line in the next horizontal scanning period straddles the vertical character string corresponding to the display / non-display determination flag (that is, the vertical character string). Is a parameter indicating whether or not to be a display target in the next horizontal scanning period). The processing character number is a parameter indicating a character straddling the horizontal scan line when the horizontal scan line straddles the vertical character string corresponding to the processing character number in the next horizontal scanning period. The processing line number is a parameter indicating how many lines of the character indicated by the processing character number overlap the horizontal scan line. Hereinafter, display control of the vertical character string using these three types of parameters will be described.
本実施形態では、上記3種類のパラメータは、画像処理LSI100が初期化されるときに全て0にリセットされる。なお、文字列についての属性データの書き込みの際にホストCPU201或いはコントローラ105によって上記3種類のパラメータに初期値として0をセットしても良い。
In the present embodiment, the above three types of parameters are all reset to 0 when the
コントローラ105は、まず、横方向文字列の場合と同様に前掲式(1)に示す演算を行って縦方向文字列の1文字目の表示/非表示を判定する。すなわち、コントローラ105は、次の水平走査期間において描画する水平スキャンラインの位置VDが縦方向文字列の属性データのレイヤ#0に含まれている表示位置Yに達するまで非表示と判定し、上記3種類のパラメータの更新を行わない。そして、次の水平走査期間において描画する水平スキャンラインの位置VDが縦方向文字列の属性データのレイヤ#0に含まれている表示位置Yに達すると(すなわち、VD=Yになると)、コントローラ105は、上記3種類のパラメータの更新を開始する。
First, the
より詳細に説明すると、水平スキャンラインの位置VDが縦方向文字列の属性データのレイヤ#0に含まれている表示位置Yに達すると、コントローラ105は、表示/非表示判定フラグを1(すなわち、表示対象であることを示す値)にセットし、表示/非表示判定フラグが0にリセットされるまで、水平スキャンラインを更新する毎に(すなわち、水平スキャンラインの位置VDを1ずつインクリメントする毎に)、以下の第1および第2の処理を実行する。第1の処理は、その時点の処理文字番号および処理ライン番号を参照し、当該処理文字番号により示される文字の当該処理ライン番号により示されるラインの描画を画像データ生成部108に指示する処理である。そして、第2の処理は、処理ライン番号が文字の最終ラインを示す場合(具体的には、処理ライン番号=文字サイズSZX−1の場合)には処理文字番号をインクリメントして後続の文字を示す値に更新するとともに処理ライン番号を当該後続する文字の先頭ラインを示す値(すなわち、0)に更新する一方、逆に、処理ライン番号が最終ラインを示していない場合には当該処理ライン番号をインクリメントして次のラインを示す値に更新する処理である。その後、コントローラ105は、最終文字の処理ライン番号が最終ラインを示す値となったことを契機として表示/非表示フラグを0にリセットする。
More specifically, when the position VD of the horizontal scan line reaches the display position Y included in the
例えば、図4(b)に示す縦方向文字列について、表示位置(X,Y)として(7,7)が設定されており、かつ文字サイズとしてSZX=SZY=32が設定されている場合、水平スキャンラインの位置VDが0,1、2・・・と更新される過程において、上記3種類のパラメータは図3に示すように更新される。図3に示すように、VD=7〜166の間、上記縦方向文字列についての表示/非表示判定フラグは1となって当該縦方向文字列についての描画処理が行われる。具体的には、VD=7〜38の期間には処理文字番号=0であるから、上記縦方向文字列の1文字目(すなわち、“A”)についての描画処理が行われ、VD=38のとき、処理ライン番号は文字の最終ラインを示す“31”であるので、水平スキャンラインを更新する際に処理文字番号をインクリメントして“1”とし、処理ライン番号を“0”とする。そして、同様に、VD=39〜70の期間には処理文字番号=1であるから、上記縦方向文字列の2文字目(すなわち、“B”)についての描画処理が行われ、・・・VD=135〜166の期間には処理文字番号=4であるから、上記縦方向文字列の5文字目(すなわち、“E”)についての描画処理が行われといった具合である。そして、これら描画処理に後続して前述した表示処理が行われる結果、LCD202に縦方向文字列“ABCDE”が表示される。
For example, for the vertical character string shown in FIG. 4B, when (7, 7) is set as the display position (X, Y) and SZX = SZY = 32 is set as the character size, In the process of updating the horizontal scan line position VD to 0, 1, 2,..., The three types of parameters are updated as shown in FIG. As shown in FIG. 3, during VD = 7 to 166, the display / non-display determination flag for the vertical character string is set to 1, and the drawing process for the vertical character string is performed. Specifically, since the processing character number = 0 during the period of VD = 7 to 38, drawing processing is performed for the first character (that is, “A”) of the vertical character string, and VD = 38. In this case, since the processing line number is “31” indicating the last line of the character, the processing character number is incremented to “1” and the processing line number is set to “0” when the horizontal scan line is updated. Similarly, since the processing character number = 1 in the period of VD = 39 to 70, the drawing process for the second character (ie, “B”) of the vertical character string is performed, and so on. Since the processing character number = 4 during the period of VD = 135 to 166, the drawing process is performed for the fifth character (that is, “E”) of the vertical character string. Then, as a result of performing the display process described above subsequent to the drawing process, the vertical character string “ABCDE” is displayed on the
このように、本実施形態によれば、判定対象の文字に先行する全ての文字の垂直方向の大きさを加算することなく現処理ラインにおける表示対象であるか否かの判定を行うことができるので、1ライン分の記憶容量を有するラインバッファを利用して画像データの描画および表示器への表示を行う画像処理装置に縦方向文字列を表示させることが可能になる。 As described above, according to the present embodiment, it is possible to determine whether or not the current processing line is a display target without adding the vertical sizes of all the characters preceding the determination target character. Therefore, it is possible to display a vertical character string on an image processing apparatus that draws image data and displays it on a display using a line buffer having a storage capacity for one line.
(C:変形)
以上本発明の一実施形態について説明したが、この実施形態に以下の変形を加えても勿論良い。
(1)上記実施形態では、横方向文字列用フォントデータの他に縦方向文字列用フォントデータがROM203に予め格納されており、縦方向文字列の表示の際には縦方向文字列用フォントデータを使用した。しかし、ROM203には横方向文字列用フォントデータのみを格納しておき、縦方向文字列の表示の際には横方向文字列用フォントデータの表すフォントに90度の時計回り回転を施して用いるようにしても良い。また、ROM203には縦方向文字列用フォントデータのみを格納しておき、横方向文字列の表示の際には縦方向文字列用フォントデータの表すフォントに90度の反時計回り回転を施して用いるようにしても良い。
(C: deformation)
Although one embodiment of the present invention has been described above, it goes without saying that the following modifications may be added to this embodiment.
(1) In the above embodiment, the vertical character string font data is stored in advance in the
(2)上記実施形態では、ROM203に格納されているスプライトデータおよびフォントデータの圧縮符号化方式として先行する数画素のデコード結果を参照する方式が採用されていたが、他の方式を採用しても勿論良く、また、ROM203において圧縮符号化を施していないスプライトデータおよびフォントデータと圧縮符号化を施したものとが混在していても勿論良い。また、ROM203に非圧縮形式のスプライトデータおよびフォントデータのみを記憶させておく場合には、デコード部107を省略しても良いことは言うまでもない。
(2) In the above embodiment, a method of referring to the decoding result of several preceding pixels is adopted as a compression encoding method of sprite data and font data stored in the
(3)上記実施形態では、車載用の画像表示システムへの本発明の適用例を説明したが、例えば表示器を有する冷蔵庫や洗濯器、炊飯器などの所謂情報家電に内蔵される画像表示システムに本発明を適用しても勿論良い。この種の情報家電においても、画像表示システムを内蔵するためのスペースや表示器の設置スペースを十分にとることができず、表示器の縦置きやラインバッファ方式の採用を余儀なくされることが多いことに加えて、文字情報の表示頻度は極めて高いと考えられるからである。同様の理由により、携帯電話機や携帯型ゲーム機、PDAなどの携帯型情報端末の画像表示システムに本発明を適用することも考えられる。 (3) In the above-described embodiment, the application example of the present invention to the in-vehicle image display system has been described. For example, the image display system incorporated in so-called information home appliances such as a refrigerator, a washing machine, and a rice cooker having a display. Of course, the present invention may be applied. Even in this type of information home appliances, the space for installing the image display system and the installation space for the display cannot be sufficiently taken, and it is often necessary to install the display vertically or use a line buffer system. In addition, the display frequency of the character information is considered to be extremely high. For the same reason, it is conceivable to apply the present invention to an image display system of a portable information terminal such as a mobile phone, a portable game machine, or a PDA.
100…画像表示LSI、101…CPUインタフェース、102…カラーパレット記憶部、103…汎用テーブル、104…レジスタ、105…コントローラ、106…ROMインタフェース、107…デコード部、107A…パターンデコーダ、107B…フォントデコーダ、108…画像データ生成部、108A…スプライトレンダリング部、108B…フォントレンダリング部、108C…ラインレンダリング部、109A,109B…ラインバッファ、109…画像出力部、110…クロック生成部、201…ホストCPU、202…LCD、203…ROM。
DESCRIPTION OF
Claims (3)
前記表示器に表示させる文字列の表示態様を示す属性データが格納される汎用テーブルと、
各種の文字のフォントを表すフォントデータを格納したメモリから、読み出しを指示された文字のフォントデータを読み出すメモリインタフェースと、
前記メモリから読み出されたフォントデータを利用して1スキャンライン分の画像データを生成し、前記ラインバッファに書き込む描画処理を実行する画像データ生成部と、
各水平走査期間において水平スキャンラインの跨る文字を前記汎用テーブルに格納された属性データを参照して特定し、該当する文字についての描画処理の実行を前記画像データ生成部に指示するコントローラと、を具備し、
前記文字列は、当該文字列を構成する各文字の高さ方向が水平走査方向に一致し、かつ、各文字を垂直走査方向に並べた縦方向文字列であり、
前記コントローラは、水平スキャンラインが縦方向文字列を跨いでいる場合に水平スキャンラインの跨る文字および当該文字の何ライン目を跨いでいるかを示すパラメータを水平スキャンラインを更新する毎に更新しつつ、当該パラメータの示す文字の当該パラメータの示すラインについての描画処理の実行を前記画像データ生成部に指示する
ことを特徴とする画像処理装置。 A line buffer for storing image data representing an image for one scan line on the display;
A general-purpose table storing attribute data indicating a display mode of a character string to be displayed on the display;
A memory interface that reads font data of characters instructed to be read from a memory that stores font data representing fonts of various characters;
An image data generation unit that generates image data for one scan line using the font data read from the memory, and executes a drawing process to be written to the line buffer;
A controller that specifies characters across horizontal scan lines in each horizontal scanning period with reference to the attribute data stored in the general-purpose table, and instructs the image data generation unit to perform drawing processing on the corresponding characters; Equipped,
The character string is a vertical character string in which the height direction of each character constituting the character string matches the horizontal scanning direction, and the characters are arranged in the vertical scanning direction,
The controller updates the parameter indicating the character across the horizontal scan line and the number of lines of the character across the horizontal scan line when the horizontal scan line extends across the vertical character string. An image processing apparatus that instructs the image data generation unit to execute a drawing process on a line indicated by the parameter of the character indicated by the parameter.
前記メモリから読み出されたフォントデータをデコードして前記画像データ生成部に与えるデコード部をさらに有することを特徴とする請求項1または2に記載の画像処理装置。 The font data stored in the memory is subjected to compression encoding,
The image processing apparatus according to claim 1, further comprising a decoding unit that decodes the font data read from the memory and supplies the decoded font data to the image data generation unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012176636A JP2014035453A (en) | 2012-08-09 | 2012-08-09 | Image processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012176636A JP2014035453A (en) | 2012-08-09 | 2012-08-09 | Image processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014035453A true JP2014035453A (en) | 2014-02-24 |
Family
ID=50284469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012176636A Pending JP2014035453A (en) | 2012-08-09 | 2012-08-09 | Image processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014035453A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113138736A (en) * | 2020-01-16 | 2021-07-20 | 格莱菲卡公司 | Vehicle digital instrument display method and digital instrument display device using the same |
-
2012
- 2012-08-09 JP JP2012176636A patent/JP2014035453A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113138736A (en) * | 2020-01-16 | 2021-07-20 | 格莱菲卡公司 | Vehicle digital instrument display method and digital instrument display device using the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2637920B2 (en) | Computer graphic system and method of using frame buffer | |
JP2016091543A (en) | Rendering method, rendering apparatus, and electronic apparatus | |
TWI622016B (en) | Depicting device | |
US10748235B2 (en) | Method and system for dim layer power optimization in display processing | |
CN111542872B (en) | Arbitrary block rendering and display frame reconstruction | |
JP2013045401A (en) | Animation drawing device | |
JP2006251000A (en) | Display controller capable of superimposed display | |
US20230041607A1 (en) | Methods and apparatus to facilitate region of interest tracking for in-motion frames | |
JP2014035453A (en) | Image processor | |
JP6036072B2 (en) | Image processing device | |
US7508397B1 (en) | Rendering of disjoint and overlapping blits | |
JP2006171274A (en) | Application drawing terminal, method for displaying application drawing and application drawing program | |
WO2014087541A1 (en) | Graphics rendering device | |
JP2010176608A (en) | Drawing processing apparatus | |
KR101367246B1 (en) | System and method of multiple framebuffer emulation on virtual machine | |
US20130321449A1 (en) | Window combining device | |
US10459681B2 (en) | Information processing apparatus, information processing method, and storage medium | |
JP5407590B2 (en) | Image display device | |
JP2010128292A (en) | Image display system | |
JP2006018382A (en) | Image processing method and device | |
JP2007183377A (en) | Display control device | |
JP2005128689A (en) | Image drawing device | |
JP2015219351A (en) | Image processor | |
CN114816306A (en) | Screen sharing control method and device, electronic equipment and storage medium | |
JP2003228713A (en) | Image display device of pachinko machine |