JP2004021119A - Screen display and screen display method - Google Patents
Screen display and screen display method Download PDFInfo
- Publication number
- JP2004021119A JP2004021119A JP2002179007A JP2002179007A JP2004021119A JP 2004021119 A JP2004021119 A JP 2004021119A JP 2002179007 A JP2002179007 A JP 2002179007A JP 2002179007 A JP2002179007 A JP 2002179007A JP 2004021119 A JP2004021119 A JP 2004021119A
- Authority
- JP
- Japan
- Prior art keywords
- layer
- pixel data
- pixel
- data
- screen
- 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
Abstract
Description
【0001】
【発明の属する技術分野】
この発明は、CRTや液晶表示装置等に出力する画素データを書き込む画面表示装置および画面表示方法に関し、特に、レイヤ構造を持たせることにより、2次元の平面上に表現されるあらゆる画像を、描画する場合に画像同士の重なりを保証しながら画面更新を行うことが可能な画面表示装置および画面表示方法に関するものである。
【0002】
【従来の技術】
図26は、従来の画面表示システムの構成を示すブロック図である。この従来の画面表示システムは、アドレス信号11、制御信号12およびデータ信号13によって、画面の描画制御を行う中央演算処理装置(以下、CPUという)1、表示する画面の画素データを記憶するためのバッファメモリである表示画面バッファ2、表示画面バッファ2から取り出したデータに基づく表示画素データ信号14により表示を行う表示デバイス3、および表示デバイス3への表示画素データ信号14の出力制御と、そのための表示画面バッファ2からのデータの取り出しと、表示画面バッファ2へのCPU1からの制御との間の調停を行い、表示画面バッファ2を、表示画面バッファ用アドレス信号21、表示画面バッファ用制御信号22および表示画面バッファ用データ信号23によって制御する表示コントローラ4を有する。
【0003】
図27は、従来の画面表示システムのCPU1からみたメモリマップ図を示している。この図において、9はメモリマップ全体を示しており、91は表示画面バッファ2が配置された位置を示す表示画面バッファオフセットアドレスを示している。この表示画面バッファオフセットアドレス91によって定められる位置に表示画面バッファ2のエリアが配置される。通常、表示画面バッファ2の内容は実際に表示される画面と1対1に対応している。
【0004】
このような画面表示システムでは、一般的に、図28に示すように表示画面10は画素100の集合として構成される。ここで、画素とはある1つの色、階調を表現することができる最小単位の大きさをさす。コンピュ−タ等による画面表示システムでは、1つの画素100をあるビット数のデータとして表現するが、このとき、このビット数のデータを有する画素は2のビット数乗分の色、階調を表現することができる。例えば、8ビットの画素であれば256(=28)色のカラーを表現することができる。表示画面は、この画素が縦、横にマトリクス上に敷き詰められることによって構成される。例えば、縦480ドット×横640ドットのマトリクスで表示画面を構成することで、VGA(Video Graphics Array)の解像度の表示画面を表現することができる。
【0005】
また、表示画面は、画面の構成内容から複数の画像が組み合わされたものとして認識することができる。この明細書では、画像を任意の画素の集合として定義する。すなわち、画像は、任意のサイズ、任意の形状、画素単位で任意の色を有し、例えば、文字や文字列、木や車などの物体、または写真のような一つの画面など、2次元平面上に表される全ての物を含むものである。
【0006】
つぎに、従来の画面表示システムにおける画面表示の動作について説明する。ここで、メモリマップ9上には、予め表示画面バッファ2の領域を表示画面バッファオフセットアドレス91によって設定されているものとする。まず、CPU1が、アドレス信号11、制御信号12およびデータ信号13によって、表示画面バッファ2に対して、表示したい画像の画素データを書込む。
【0007】
つづいて、表示コントローラ4が、表示画面バッファ用アドレス信号21、表示画面バッファ用制御信号22および表示画面バッファ用データ信号23によって、表示画面バッファ2から画素データを取り出し、表示デバイス3に対して、表示デバイス3の走査タイミングに合わせた表示画素データ信号14に変換して出力する。このとき、表示画面バッファ2に対する制御において、CPU1からの書込み制御と、表示コントローラ4からの読出し制御とが非同期に行われている。そのため、表示画面バッファ2として完全非同期な2ポートを有する記憶デバイスを使用しない場合は、表示コントローラ4はこの間の調停も行う必要がある。すなわち、表示コントローラ4は、CPU1からの書込み時には、アドレス信号11、制御信号12およびデータ信号13を受けて、表示画面バッファ用アドレス信号21、表示画面バッファ用制御信号22および表示画面バッファ用データ信号23に変換し、表示画面バッファ2に対して表示したい画像のデータを書込む処理を行い、そして表示画素データ信号14を受けて表示デバイス3上に画像を表示させる。
【0008】
つぎに、このような表示画面システムにおいて、複数の画像が、画面に対して奥行き方向で互いに重なり合い、前後の重なり関係を有する複数の画像が、その重なり状態を保ったまま、個々の画像が移動、変形、消去などの処理によって変化するようなアプリケーションを実現する場合の、CPUによる表示画面バッファ2への書込み動作を説明する。ここでは、図24に示される画面から、図25に示される画面に変化する場合を例に挙げて説明する。これらの図24と図25において、10は表示画面全体を示し、101は山と月が示される背景画像としての画像を示し、102は横向きのヨットの画像を示し、103は波の画像を示し、104は「ヨット」という文字の画像を示し、そして105は前向きのヨットの画像を示している。
【0009】
図24の表示画面10は、画像101〜104がこの順番に下から上に向かって、すなわち表示画面10上で奥から手前に向かって重なって構成されている。また、図25の表示画面10は、図24の表示画面10において横向きのヨットの画像102が、前向きのヨットの画像105に変化したものであり、画像101、画像105、画像103および画像104が、この順番に表示画面10上で奥から手前に向かって重なって構成されている。
【0010】
これらの表示画面10が表示デバイスに表示されるには、最初に、図24に示されるようにCPU1は、第1に画像101を描画し、第2に画像102を描画し、第3に画像103を描画し、そして第4に画像104を描画する。そして、つぎに、再びCPU1は、第1に画像101を描画し、第2に画像105を描画し、第3に画像103を描画し、そして第4に画像104を描画する。このように、すべての画像を描画しなおすことによって、表示画面10中の一部の画像を変化させる処理が実現される。
【0011】
また、従来の表示画面システムにおいて、複数の画像が重なり合うような画面を表示する他の方法として、レイヤという概念を用いて表示画面を構成する方法が知られている。ここで、レイヤとは、下から上に順序を持って重なった複数の透明な層を意味するものである。この各レイヤに画像を描いて、透明な部分は下のレイヤの状態が透けて見えるようになっている。
【0012】
図29は、図24の表示画面10をレイヤで構成した場合を示している。700〜703は、最下層からレイヤ0、レイヤ1、レイヤ2およびレイヤ3の4枚のレイヤをそれぞれ示している。
【0013】
レイヤの概念を用いて表示画面を構成する場合には、まず、表示システムで必要となる重なり数分のレイヤを用意し、それぞれにレイヤに対して下から上に重ねるための順序付けを行う。図29に示される例では、各レイヤ700〜703は、表示画面10と同様に画素が縦と横にマトリクス上に敷き詰められて構成される。
【0014】
つぎに、透明な状態を表すために、画素データの一つを透過色として設定する。例えば、画素データが8ビットで構成される場合には、表現できる色の数は256(=28)色となるが、その内の一つを透過色として設定すると、表現できる色の数は255色となる。ただし、最下層のレイヤ0ではその下に透ける色がないため、透過色もそのまま一つの色として使用可能である。
【0015】
このように定義された状態で、レイヤ700〜703上に画像を描く。図29では、レイヤ0は図24の画像101に、レイヤ1は同じく画像102に、レイヤ2は同じく画像103に、そしてレイヤ3は同じく画像104に対応している。これらのレイヤ700〜703において、画像がない部分は全て、画素データとして透過色が設定される。なお、画像自身の中に透過色がある場合はその部分は透明な状態であることになる。
【0016】
全てのレイヤ700〜703で同じ位置にある画素ごとに、最も上側のレイヤから最下層のレイヤに向かって順に画素データを透過色と比較し、透過色でない最初のレイヤの画素データが表示画面10の画素データとなる。全ての画素位置に対して同じ処理を行い、画像101〜104が重なった表示画面10の画面が実現される。
【0017】
【発明が解決しようとする課題】
しかしながら、上述した従来の複数の画像を下から順に重ねて表示画像を作成する方法では、どちらも画面の一部の画像を変更する場合であっても、重なっているすべての画像を更新する必要がある。また、複数のレイヤで画像を構成する方法では、1枚のレイヤが変化した場合でも、すべての画素位置に対して最も上側のレイヤから最下層のレイヤに向かって順に画素データを透過色と比較し、透過色でない最も上側のレイヤの画素データを求める必要がある。したがって、どちらの表示画像を作成する方法でも重なる画像の数が多くなればなるほど、画像を表示させるための処理時間が増大してしまうという問題点があった。
【0018】
この発明は上記に鑑みてなされたもので、複数の画像が重なって表示される表示画面を更新する場合に、すべての画像を更新することなく、表示画面の更新に要する時間を短縮してつぎの表示画面を生成することが可能な画面表示装置および画面表示方法を得ることを目的とする。
【0019】
【課題を解決するための手段】
上記目的を達成するため、この発明にかかる画面表示装置は、表示装置に表示させる画像を構成する複数のレイヤの画素データをレイヤ毎に格納するレイヤ画面格納手段と、前記レイヤ毎の画素データが透過色か非透過色かの画素レイヤ状態データを格納するレイヤ状態格納手段と、透過色を含む画素データが記憶され、前記レイヤ画面格納手段に格納される複数のレイヤの画像データのうち非透過色の画素データを有する最も上側のレイヤの画素データを各画素毎に格納する表示画面格納手段と、画素データに変更のあるレイヤを指定する書込みレイヤ指定手段と、前記指定されたレイヤ内で画素データの更新が必要な画素について、前記レイヤ画面格納手段の対応するレイヤの画素データおよび/または前記レイヤ状態格納手段の対応するレイヤの画素レイヤ状態データを更新するとともに、前記表示画面格納手段の対応する画素データを更新する更新手段とを有する描画回路と、を備えることを特徴とする。
【0020】
この発明によれば、レイヤ画面格納手段によって、表示装置に表示させる画像を構成する複数のレイヤの画素データがレイヤ毎に格納され、レイヤ状態格納手段によって、レイヤ毎の画素データが透過色か非透過色かの画素レイヤ状態データが格納される。また、表示画面格納手段によって、透過色を含む画素データが記憶され、レイヤ画面格納手段に格納される複数のレイヤの画像データのうち非透過色の画素データを有する最も上側のレイヤの画素データが各画素毎に格納される。そして、描画回路の書込みレイヤ指定手段によって、画素データに変更のあるレイヤが指定されると、描画回路の更新手段によって、指定されたレイヤ内で画素データの更新が必要な画素について、レイヤ画面格納手段の対応するレイヤの画素データおよび/またはレイヤ状態格納手段の対応するレイヤの画素レイヤ状態データが更新されるとともに、表示画面格納手段の対応する画素データが更新される。
【0021】
つぎの発明にかかる画面表示方法は、表示装置に表示させる画像を構成する複数のレイヤの画素データをレイヤ毎に格納するレイヤ画面格納手段と、前記レイヤ毎の画素データが透過色か非透過色かの画素レイヤ状態データを格納するレイヤ状態格納手段と、を備え、透過色を含む画素データが記憶され、前記レイヤ画面格納手段に格納される複数のレイヤの画像データのうち非透過色の画素データを有する最も上側のレイヤの画素データを各画素毎に表示画面格納手段に格納する画面表示方法であって、画素データに変更のあるレイヤを指定し、前記指定されたレイヤ内で画素データの更新が必要な画素について、前記レイヤ画面格納手段の対応するレイヤの画素データおよび/または前記レイヤ状態格納手段の対応するレイヤの画素レイヤ状態データを更新するとともに、前記表示画面格納手段の対応する画素データを更新することを特徴とする。
【0022】
この発明によれば、画素データに変更のあるレイヤを指定し、指定されたレイヤ内で画素データの更新が必要な画素について、レイヤ画面格納手段の対応するレイヤの画素データおよび/またはレイヤ状態格納手段の対応するレイヤの画素レイヤ状態データを更新するとともに、表示画面格納手段の対応する画素データを更新することによって、透過色を含む画素データが記憶され、レイヤ画面格納手段に格納される複数のレイヤの画像データのうち非透過色の画素データを有する最も上側のレイヤの画素データを各画素毎に表示画面格納手段に格納する画面表示方法が提供される。
【0023】
【発明の実施の形態】
以下に添付図面を参照して、この発明にかかる画面表示装置および画面表示方法の好適な実施の形態を詳細に説明する。
【0024】
図1は、この発明にかかる画面表示装置の構成を示すブロック図である。図1において、画面表示装置は、画面の描画制御を行うCPU1、表示する画面の画素データを格納する表示画面バッファ2、表示画面バッファ2の画素データに基づいて表示を行う表示デバイス3、表示デバイス3への出力と、表示画面バッファ2を制御する表示コントローラ4、レイヤごとの画素データの画素の状態を格納するレイヤ状態バッファ6、画素データをレイヤごとに格納するレイヤ画面バッファ7、レイヤ状態バッファ6とレイヤ画面バッファ7を制御して表示画面バッファ2への描画を行う描画回路5を有する。
【0025】
CPU1は、アドレス信号11、制御信号12およびデータ信号13によって表示画面の描画制御を行い、描画回路5に接続されている。
【0026】
表示画面バッファ2は、表示する画面の画素データを格納するためのバッファメモリであり、表示コントローラ4と接続されている。ここで、この表示画面バッファ2は、特許請求の範囲の表示画面格納手段に対応している。
【0027】
表示デバイス3は、表示画面バッファ2から取り出したデータに基づく表示画素データ信号14によって表示を行い、表示コントローラ4と接続されている。
【0028】
表示コントローラ4は、表示画面バッファ2と表示デバイス3と接続され、表示画面バッファ2からの画素データを取り出して、その画素データを表示画素データ信号14として表示デバイス3への出力制御を行う。また、表示コントローラ4は、この表示画面バッファ2からの画素データの取り出しと、CPU1から表示画面バッファ2への画素データの書込み制御との間の調停を行う。表示コントローラ4による表示画面バッファ2への制御は、表示画面バッファ用アドレス信号21、表示画面バッファ用制御信号22および表示画面バッファ用データ信号23によって行われる。
【0029】
レイヤ状態バッファ6は、描画回路5と接続され、表示する画面の各画素位置において、レイヤごとの画素データが透過であるか非透過であるかを示す画素レイヤ状態データを格納する。ここで、レイヤ状態バッファ6は、特許請求の範囲のレイヤ状態格納手段に対応している。
【0030】
レイヤ画面バッファ7は、描画回路5と接続され、表示画面中に使用されるレイヤの画素データをレイヤごとに格納する。したがって、このレイヤ画面バッファ7は、表示画面中に使用されるレイヤの数の分だけ用意される。ここで、レイヤ画面バッファ7は、特許請求の範囲のレイヤ画面格納手段に対応している。
【0031】
描画回路5は、CPU1からのアドレス信号11、制御信号12およびデータ信号13の入力を受けて、描画回路生成アドレス信号31、描画回路生成制御信号32および描画回路生成データ信号33を出力する。そして、これらの信号31〜33によって、レイヤ状態バッファ6とレイヤ画面バッファ7を制御し、表示画面バッファ2への描画を行う。また、描画回路5は、表示画面バッファ2への描画の際に書込むレイヤを指定する書込みレイヤ指定レジスタ51、画素データの一つを、該当する画素位置では該当する値となるレイヤを透過させる透過色として指定する透過色レジスタ52を有する。なお、描画回路5が信号31〜33によってレイヤ状態バッファ6とレイヤ画面バッファ7を制御し、表示画面バッファ2へ描画を行う処理手段は、特許請求の範囲の更新手段に対応するものである。また、上記の書込みレイヤ指定レジスタ51は特許請求の範囲の書込みレイヤ指定手段に対応し、透過色レジスタ52は同じく透過色設定手段に対応している。
【0032】
図2は、図1の画面表示装置中のCPU1からみたメモリマップを示している。この図2において、9はメモリマップ全体を示している。また、91は表示画面バッファ2がメモリ上に配置される位置を示す表示画面バッファオフセットアドレスを示しており、この表示画面バッファオフセットアドレス91によって定められるメモリ上の位置に表示画面バッファ2のエリアが配置される。92はレイヤ状態バッファ6がメモリ上に配置される位置を示すレイヤ状態バッファオフセットアドレスを示しており、このレイヤ状態バッファオフセットアドレス92によって定められるメモリ上の位置にレイヤ状態バッファ6のエリアが配置される。93はレイヤ画面バッファ7がメモリ上に配置される位置を示すレイヤ画面バッファオフセットアドレスを示しており、表示画面を構成するレイヤの数だけ設定される。そして、このレイヤ画面バッファオフセットアドレス93によって定められるメモリ上の位置に、各レイヤ画面バッファ7のエリアが配置される。なお、この図2では、画面はn+1層(nは0以上の整数)のレイヤから構成され、レイヤ画面は、番号0から番号nの順に、下から上に重なるものとし、以下では、iを整数(0≦i≦n−1)とすると、番号iのレイヤ画面バッファ7を“レイヤi画面バッファ7”と表示している。
【0033】
つぎに、図3のフローチャートを参照して、この画面表示装置における画面に対する画像の描画の動作手順を説明する。まず、CPU1が描画回路5の透過色レジスタ52に透過色を設定する(ステップS1)。CPU1は、ステップS1の状態で、画像の描画が発生するまで待ち状態となる(ステップS2でNoの場合)。画像描画の発生の待ち状態から、ある画像の描画が発生した場合(ステップS2でYesの場合)には、CPU1は描画回路5の書込みレイヤ指定レジスタ51に画像を描画するレイヤ(以下、書込みレイヤという)の値を設定し(ステップS3)、その書込みレイヤ中における描画する画像の1画素の画素データの更新を行う(ステップS4)。その後、CPU1は、書込みレイヤ中の画像の描画が完了したか否かを判定する(ステップS24)。書込みレイヤ中の画像の描画が完了していない場合(ステップS24でNoの場合)には、再びステップS4へ戻り、つぎの画素の画素データ更新を行う。一方、書込みレイヤの画像の描画が完了した場合(ステップS24でYesの場合)には、再びステップS2へと戻り、画像の描画が発生するまで待ち状態となり、以上の動作処理が繰り返される。
【0034】
つぎに、上述した図3のステップS3での描画回路5による1画素の更新の動作処理について、図4〜図5のフローチャートと図6〜図13のタイミングチャートを参照しながらさらに詳細に説明する。図6〜図13のタイミングチャートは、図4〜図5のフローチャートのステップS5〜S23までに示される1つの画素データの表示画面バッファ2への描画動作について示すものである。また、図14〜図20は、予め、透過色と書込みレイヤが指定された状態で、書込み画素データを書込んだ場合の、表示デバイス3上に表示される表示画面、各レイヤの画素データおよびレイヤ状態バッファ6の画素レイヤ状態データについて描画前と描画後における変化の例を示している。これらの図14〜図20の例では、表示画面10は、4つのレイヤ700〜703から構成され、レイヤ1の画素データを更新する場合を示している。なお、これらの図14〜図20のレイヤ状態バッファ6において、“0”は透過を、“1”は非透過をそれぞれ示している。
【0035】
まず、図6に示されるように、CPU1がアドレス信号11、制御信号12およびデータ信号13を用いて、1つの画素データの表示画面バッファ2への書込みを開始する。この画素データのことを、この明細書において、書込み画素データと呼ぶこととする。つづいて、描画回路5は、これらの信号11〜13を受けて、描画回路生成アドレス信号31、描画回路生成制御信号32および描画回路生成データ信号33を用いて、レイヤ状態バッファ6から、書込みを行う画素の位置に対応する画素レイヤ状態データ、すなわち書込みを行う位置の画素が透過か非透過かの情報を読出す(ステップS5)。以上の動作が、タイミングt1のサイクルで実施される。
【0036】
つぎに、書込み画素データが透過色と等しいかを判定する(ステップS6)。書き込み画素データが透過色と等しい場合(ステップS6でYesの場合)には、書込みレイヤ中の更新する位置の画素の状態が、ステップS5で読込んだ画素レイヤ状態データを参照して非透過であるか否かを判定する(ステップS7)。書込みレイヤ中の更新位置の画素の状態が非透過である場合(ステップS7でYesの場合)には、書込みレイヤの位置が、更新位置の画素と同じ位置の画素であって画素の状態が非透過である最も上側のレイヤの位置よりも下位か否かをステップS5で読込んだ画素レイヤ状態データを参照して判定する(ステップS9)。すなわち、書込みレイヤ指定レジスタ51に格納されている書込みレイヤの値(番号)が、更新位置の画素と同じ位置であって画素の状態が非透過である最も上側のレイヤの値(番号)よりも小さいか否かをステップS5で読込んだ画素レイヤ状態データを参照して判定を行う。
【0037】
書込みレイヤの位置と更新位置と同じ位置の画素であって非透過である最も上側のレイヤの位置が同じである場合(ステップS9でNoの場合)には、図5のA以下の処理および図7に示される処理が行われる。すなわち、タイミングt2のサイクルで、更新位置の画素に対応するレイヤ状態バッファ6の画素レイヤ状態データ(透過)を書込み(ステップS12)、タイミングt3のサイクルで、更新位置と同じ位置の画素であって図形を有する(非透過である)最も上側のレイヤの画素データをレイヤ画面バッファ7から読出し(ステップS13)、タイミングt4のサイクルで、表示画面バッファ2へステップ13で読出した画素データを書込み(ステップS14)、処理を終了する。図14には、レイヤ1の黒色の画素データが透過色の書込み画素データに書き換えられている状態が示されている。描画前はレイヤ1が非透過の画素データを有する最も上側のレイヤであったので、描画後には、その下位のレイヤ0の画素が表示画面10に表示されている。
【0038】
一方、上述したステップS9で、書込みレイヤの位置が更新位置と同じ位置の画素であって非透過である最も上側のレイヤの位置よりも下位である場合(ステップS9でYesの場合)には、図5のB以下の処理および図8に示される処理が行われる。すなわち、タイミングt2のサイクルで、更新位置の画素に対応するレイヤ状態バッファ6の画素レイヤ状態データ(透過)を書込み(ステップS15)、処理を終了する。図15には、レイヤ1の黒色の画素データが透過色の書込み画素データに書き換えられている状態が示されている。しかし、描画前の非透過の画素データを有する最も上側のレイヤはレイヤ2であるので、レイヤ1が更新されても、表示画面10上の表示に変化はない。
【0039】
ステップS7で書込みレイヤ中の更新位置の画素の状態が透過である場合(ステップS7でNoの場合)には、更新位置の画素データに対して処理を行う必要がないので、そのまま処理を終了する(図9および図16参照)。
【0040】
つぎに、上述したステップS6で書込み画素データが透過色でない場合(ステップS6でNoの場合)には、書込みレイヤ中の更新する位置の画素の状態が、ステップS5で読込んだ画素レイヤ状態データを参照して非透過であるか否かを判定する(ステップS8)。書込みレイヤ中の更新位置の画素の状態が非透過である場合(ステップS8でYesの場合)には、書込みレイヤの位置が、更新位置の画素であって画素の状態が非透過である最も上側のレイヤの位置よりも下位か否かをステップS5で読込んだ画素レイヤ状態バッファ6を参照して判定する(ステップS10)。すなわち、書込みレイヤ指定レジスタ51に格納されている書込みレイヤの値(番号)が、更新位置の画素と同じ位置の画素であって画素の状態が非透過である最も上側のレイヤの値(番号)よりも小さいか否かをステップS5で読込んだ画素レイヤ状態データを参照して判定を行う。
【0041】
書込みレイヤの位置と、更新位置と同じ位置の画素であって非透過である最も上側のレイヤの位置が同じである場合(ステップS10でNoの場合)には、図5のC以下の処理および図10に示される処理が行われる。すなわち、タイミングt2のサイクルで、書込みレイヤ指定レジスタ51で指定された値のレイヤ画面バッファ7へ書込み画素データを書込み(ステップS16)、タイミングt3のサイクルで、表示画面バッファ2へ書込み画素データを書込み(ステップS17)、処理を終了する。図17には、レイヤ1の黒色の画素データが右斜線の書込み画素データに書き換えられている状態が示されている。描画前の非透過の画素データを有する最も上側のレイヤはレイヤ1であるので、レイヤ1が更新された後には、表示画面10上の表示は黒色の画素データから右斜線の画素データへと更新されている。
【0042】
一方、上述したステップS10で、書込みレイヤの位置が更新位置と同じ位置の画素であって非透過である最も上側のレイヤの位置よりも下位である場合(ステップS10でYesの場合)には、図5のD以下の処理および図11の処理が行われる。すなわち、タイミングt2のサイクルで、書込みレイヤ指定レジスタ51で指定された値のレイヤ画面バッファ7へ書込み画素データを書込み(ステップS18)、処理を終了する。図18には、レイヤ1の黒色の画素データが右斜線の書込み画素データに書き換えられている状態が示されている。しかし、描画前の非透過の画素データを有する最も上側のレイヤはレイヤ2であるので、レイヤ1が更新されても、表示画面10上の表示に変化はない。
【0043】
また、上述したステップS8で、書込みレイヤ中の更新位置の画素の状態が透過である場合(ステップS8でNoの場合)には、書込みレイヤの位置が、更新位置の画素であって画素の状態が非透過である最も上側のレイヤの位置よりも下位か否かをステップS5で読込んだ画素レイヤ状態データを参照して判定する(ステップS11)。すなわち、書込みレイヤ指定レジスタ51に格納されている書込みレイヤの値(番号)が、更新位置の画素と同じ位置の画素であって画素の状態が非透過である最も上側のレイヤの値(番号)よりも小さいか否かをステップS5で読込んだ画素レイヤ状態データを参照して判定を行う。
【0044】
書込みレイヤの位置が、更新位置と同じ位置の画素であって非透過である最も上側のレイヤの位置よりも小さい場合(ステップS11でYesの場合)には、図5のE以下の処理および図12に示される処理が行われる。すなわち、タイミングt2のサイクルで、書込みレイヤ指定レジスタ51で指定された値のレイヤ画面バッファ7へ書込み画素データを書込み(ステップS19)、タイミングt3のサイクルで、更新位置の画素に対応するレイヤ状態バッファ6の画素レイヤ状態データ(非透過)を書込み(ステップS20)、処理を終了する。図19には、レイヤ1の透過色の画素データが右斜線の書込み画素データに書き換えられている状態が示されている。しかし、描画前の非透過の画素データを有する最も上側のレイヤはレイヤ2であるので、レイヤ1が更新されても、表示画面10上の表示に変化はない。
【0045】
一方、上述したステップS11で、書込みレイヤの位置が、更新位置と同じ位置の画素であって非透過である最も上側のレイヤの位置以上である場合(ステップS11でNoの場合)には、図5のF以下の処理および図13に示される処理が行われる。すなわち、タイミングt2のサイクルで、書込みレイヤ指定レジスタ51で指定された値のレイヤ画面バッファ7へ書込み画素データを書込み(ステップS21)、タイミングt3のサイクルで、更新位置の画素に対応するレイヤ状態バッファ6の画素レイヤ状態データ(非透過)を書込み(ステップS22)、タイミングt4のサイクルで、表示画面バッファ2へ書込み画素データを書込み(ステップS23)、更新位置における画素データの表示画面バッファ2への書込み処理を終了する。図20には、レイヤ1の透過色の画素データが右斜線の書込み画素データに書き換えられている状態が示されている。描画前の非透過の画素データを有する最も上側のレイヤはレイヤ0であるので、レイヤ1が更新されると表示画面10上にはレイヤ1の右斜線の画素データが表示される。
【0046】
このように、この発明では、書込み画素データ、透過色および画素レイヤ状態データの状態によって場合分けを行い、それぞれの場合に対応した1画素の画素データの更新処理を行うことを特徴とする。
【0047】
つぎに、上述した機能を有する描画回路5の具体例を示し、その動作を説明する。図21〜図23は、この発明にかかる描画回路の構成の一例を示している。
【0048】
まず、52は透過色レジスタを示し、透過色の値が設定される。また、51は書込みレイヤ指定レジスタを示し、図形の描画が開始されると、書込みを行うレイヤの値が設定される。このとき、書込みレイヤ指定レジスタ51のビットの大きさとしては、レイヤの数を表すことができるサイズを有する。
【0049】
53は2ビットのカウンタ回路を示し、54はカウンタ回路53のカウントのタイミングを制御するためのゲート回路を示している。これらは、描画回路5のサイクルの状態を生成するものであり、制御信号12で描画回路5が選択されている間、ゲート回路54のゲートが開き、カウンタ回路53にカウンタクロックが入力されてカウントアップを行う。一方、制御信号12で描画回路が非選択されていない間は、カウンタがセットされた状態となる。この動作によってカウンタ回路53の出力が、1つの画素データを描画する場合の動作のサイクル状態を示す。
【0050】
55はレイヤ状態バッファ6の画素レイヤ状態データを保持するレイヤ状態バッファ画素レイヤ状態データレジスタを示し、56はレイヤ状態バッファ画素レイヤ状態データレジスタ55のラッチタイミングを制御するためのゲート回路である。カウンタ回路53の出力であるサイクル状態と値“0”とを比較器61によって比較し、等しい場合にゲート回路56のゲートが開く。そして、レイヤ状態バッファ画素レイヤ状態データレジスタ55にカウンタクロックが入力されて、描画回路生成データ信号33上から、双方向バッファ87を通るレイヤ状態バッファ6の画素レイヤ状態データがラッチされる。これによって、図4のフローチャートにおけるステップS5の動作が実現される。
【0051】
57はCPU1が書込む画素データを保持する書込み画素データレジスタを示し、58は書込み画素データレジスタ57のラッチタイミングを制御するためのゲート回路である。カウンタ回路53の出力であるサイクル状態と値“0”とを比較器61によって比較し、等しい場合にゲート回路58のゲートが開き、書込み画素データレジスタ57にカウンタクロックが入力されて、データ信号13上からくる画素データがラッチされる。
【0052】
59はある位置における画素の状態が非透過である最も上側のレイヤのレイヤ画面バッファ7からの画素データを保持する有効最上層レイヤ画素データレジスタを示し、60は有効最上層レイヤ画素データレジスタ59のラッチタイミングを制御するためのゲート回路を示している。カウンタ回路53の出力であるサイクル状態と値“2”とを比較器62により比較し、等しい場合にゲート回路60のゲートが開き、有効最上層レイヤ画素データレジスタ59にカウンタクロックが入力される。そして、描画回路生成データ信号33上から、双方向バッファ87を通る該当画素位置で非透過である最も上側レイヤのレイヤ画面バッファ7の画素データがラッチされる。これによって、図4のフローチャートにおけるステップS13の動作が実現される。
【0053】
63は比較器を示し、書込み画素データレジスタ57の出力と透過色レジスタ52の出力とを比較し、これらが等しい場合に“1”を、等しくない場合に“0”を出力する。これによって、図4のフローチャートにおけるステップS6の動作が実現される。
【0054】
64は比較器を示し、レイヤ状態バッファ画素レイヤ状態データレジスタ55の出力の中で、書込みレイヤ指定レジスタ51の値に基づいてセレクタ65によって選択された出力と、“1”とを比較し、これらが等しい場合に“1”を、等しくない場合に“0”を出力する。これによって、図4のフローチャートにおけるステップS7,S8の動作が実現される。
【0055】
66は比較器を示し、デコーダ67によって書込みレイヤ指定レジスタ51の出力をデコードした値と、レイヤ状態バッファ画素レイヤ状態データレジスタ55の出力とを比較し、書込みレイヤ指定レジスタ51の出力をデコードした値が、レイヤ状態バッファ画素レイヤ状態データレジスタ55の出力より大きい場合に“1”を、そうでない場合に“0”を出力する。
【0056】
68は比較器を示し、加算器70で書込みレイヤ指定レジスタ51の出力と値“1”とを加算した出力をデコーダ69によってデコードした値と、レイヤ状態バッファ画素レイヤ状態データレジスタ55の出力とを比較し、デコーダ69からの出力が、レイヤ状態バッファ画素レイヤ状態データレジスタ55の出力より大きい場合に“1”を、そうでない場合に“0”を出力する。
【0057】
比較器66と比較器68によって図4のフローチャートにおけるステップS9〜S11の動作が実現される。
【0058】
71は加算器を示し、レイヤ状態バッファ画素レイヤ状態データレジスタ55の出力と、デコーダ72によって書込みレイヤ指定レジスタ51の出力をデコードした出力との加算を行う。これによって、書込みレイヤの画素レイヤ状態データが、透過の状態から非透過の状態に変化する場合の画素レイヤ状態データの更新データが生成される。
【0059】
73は減算器を示し、レイヤ状態バッファ画素レイヤ状態データレジスタ55の出力から、デコーダ74によって書込みレイヤ指定レジスタ51の出力をデコードした出力の減算を行う。これによって、書込みレイヤの画素レイヤ状態データが、非透過の状態から透過の状態に変化する場合の画素レイヤ状態データの更新データが生成される。
【0060】
75はセレクタを示し、レイヤ画面バッファオフセットアドレス77の中から、減算器73の出力によって、その値が“2n”〜“2n+1−1”の間となるnで示されるレイヤn画面バッファオフセットアドレスを選択し出力する。値が0の時は、レイヤ0画面バッファオフセットアドレスを選択し出力する。値がマイナスの場合は任意の値が出力される。これによって、レイヤ状態バッファ画素レイヤ状態データレジスタ55にラッチされた値から、非透過の最も上側のレイヤのレイヤ画面バッファオフセットアドレス77が抽出される。
【0061】
76はセレクタを示し、レイヤ画面バッファオフセットアドレス77の中から、書込みレイヤ指定レジスタ51の値“p”によって、この値pで示されるレイヤp画面バッファオフセットアドレスを選択し出力する。これによって、書込みレイヤ指定レジスタ51に設定された値から、書込みレイヤのレイヤ画面バッファオフセットアドレスを抽出する。
【0062】
78はセレクタを示し、描画回路生成制御信号32への出力を選択する。カウンタ回路53、比較器68,66,64,63の出力をこの順序で2進数でみたときの値を10進数に変換した値が、“0〜3,10〜13,43”の場合に、リード(読出し)用の制御信号であるリード制御信号79を出力し、“16,18,19,26〜28,32,42,44,59,60”の場合に、ライト(書込み)用の制御信号であるライト制御信号80を出力し、それ以外の値の場合に、非アクセス状態を示す固定信号である非アクセス固定信号81を出力する。
【0063】
アドレス信号11は、上位の表示画面バッファオフセットアドレス84と下位の画素位置アドレス83に分かれる。画素位置アドレス83の大きさとしては、表示画面分の画素データを保存できるサイズとなる。
【0064】
82はセレクタを示し、描画回路生成アドレス信号31への出力を選択する。カウンタ回路53、比較器68,66,64,63の出力をこの順序で2進数でみたときの値を10進数に変換した値が、“0〜3,10〜13,19,27,32,44”の場合にレイヤ状態バッファオフセットアドレス85を選択し、“16,18,26,28” の場合にセレクタ76による出力を選択し、“43”の場合にセレクタ75による出力を選択し、“42,59,60”の場合に表示画面バッファオフセットアドレス84を選択し、それ以外の値の場合に任意の値を出力する。
【0065】
86はセレクタを示し、双方向バッファ87を通して、描画回路生成データ信号33への出力を選択する。カウンタ回路53、比較器68,66,64,63の出力をこの順序で2進数でみたときの値を10進数に変換した値が、“19,27”の場合に減算器73の出力を選択し、“32,44” の場合に加算器71の出力を選択し、“16,18,26,28,42,60”の場合に書込み画素データレジスタ57の出力を選択し、“59”の場合に有効最上層レイヤ画素データレジスタ59の出力を選択し、それ以外の値の場合に任意の値を出力する。
【0066】
87は双方向バッファを示し、描画回路生成データ信号33の信号の方向を制御する。カウンタ回路53、比較器68,66,64,63の出力をこの順序で2進数でみたときの値を10進数に変換した値が、“16,18,19,26〜28,32,42,44,59,60”の場合に出力方向とし、それ以外の場合に入力方向とする。
【0067】
このような回路構成によって、上述した図4〜図5の動作処理を実現することができる。
【0068】
図24と図25は、この発明にかかる画面表示装置による画像を表示する場合の動作の一例を示している。まず、図24の画面を表示するために、CPU1は、第1に背景画像である画像101をレイヤ0の画面に描画し、第2に横向きのヨットの図形である図形102をレイヤ1の画面に描画し、第3に波の図形である図形103をレイヤ2画面に描画し、そして第4に「ヨット」という文字である図形104をレイヤ3画面に描画して、表示画面10を表示する。つぎに、この図24の表示画面の状態において、横向きのヨットの図形102を前向きのヨットの図形105に変更する処理を行うが、この場合には、図24におけるレイヤ1の画面の図形102の領域を図25の前向きのヨットの図形105に変更する処理を行う必要がある。そのためには、上述した方法によって、レイヤ1の変更前の画面の図形102の画素の一つ一つが変更後の図形105の画素に更新されていく。このようにして、更新された表示画面10が図25に示されている。このように、画面の変化する図形のみの描画で、画面の一部分を変化させることを実現できるので、描画にかかる処理負担を削減することができる。
【0069】
【発明の効果】
以上説明したように、この発明によれば、表示装置に表示させる画像を構成する複数のレイヤの画素データをレイヤ毎に格納するレイヤ画面格納手段と、レイヤ毎の画素データが透過色か非透過色かの画素レイヤ状態データを格納するレイヤ状態格納手段と、画素データに変更のあるレイヤを指定し、指定されたレイヤ内で画素データの更新が必要な画素について、レイヤ画面格納手段の対応するレイヤの画素データおよび/またはレイヤ状態格納手段の対応するレイヤの画素レイヤ状態データを更新するとともに、表示画面格納手段の対応する画素データを更新する描画回路とを備えるように構成したので、画像の変化のあるレイヤのみを更新し、さらにそのレイヤの中の変化のある画素データのみを更新して、画像の描画にかかる処理負担を軽減し、画像を表示させるための処理時間を削減することができるという効果を有する。また、ある画素位置について、最上層のレイヤから最下層のレイヤに向かって順に画素データを透過色と比較し、透過色でない最上層のレイヤの画素データを求める必要がなくなり、画像を表示させるための処理時間を短縮することができるという効果を有する。
【0070】
つぎの発明によれば、画素データに変更のあるレイヤを指定し、指定されたレイヤ内で画素データの更新が必要な画素について、レイヤ画面格納手段の対応するレイヤの画素データおよび/またはレイヤ状態格納手段の対応するレイヤの画素レイヤ状態データを更新するとともに、表示画面格納手段の対応する画素データを更新するようにしたので、画像の変化のあるレイヤのみを更新し、さらにそのレイヤの中の変化のある画素データのみを更新して、画像の描画にかかる処理負担を軽減し、画像を表示させるための処理時間を削減することができるという効果を有する。また、ある画素位置について、最上層のレイヤから最下層のレイヤに向かって順に画素データを透過色と比較し、透過色でない最上層のレイヤの画素データを求める必要がなくなり、画像を表示させるための処理時間を短縮することができるという効果を有する。
【図面の簡単な説明】
【図1】この発明による画面表示装置の構成を示すブロック図である。
【図2】この発明による画面表示装置のメモリマップを示す図である。
【図3】この発明による画面表示装置の描画動作を示すフローチャートである。
【図4】この発明による画素単位の描画動作を示すフローチャートである(その1)。
【図5】この発明による画素単位の描画動作を示すフローチャートである(その2)。
【図6】この発明による描画回路の画素データの書込み動作を示すタイミングチャートである。
【図7】この発明による描画回路の画素データの書込み動作を示すタイミングチャートである。
【図8】この発明による描画回路の画素データの書込み動作を示すタイミングチャートである。
【図9】この発明による描画回路の画素データの書込み動作を示すタイミングチャートである。
【図10】この発明による描画回路の画素データの書込み動作を示すタイミングチャートである。
【図11】この発明による描画回路の画素データの書込み動作を示すタイミングチャートである。
【図12】この発明による描画回路の画素データの書込み動作を示すタイミングチャートである。
【図13】この発明による描画回路の画素データの書込み動作を示すタイミングチャートである。
【図14】書込み画素データの描画前後の表示画面、各レイヤの画素データおよびレイヤ状態バッファの状態を示す図である。
【図15】書込み画素データの描画前後の表示画面、各レイヤの画素データおよびレイヤ状態バッファの状態を示す図である。
【図16】書込み画素データの描画前後の表示画面、各レイヤの画素データおよびレイヤ状態バッファの状態を示す図である。
【図17】書込み画素データの描画前後の表示画面、各レイヤの画素データおよびレイヤ状態バッファの状態を示す図である。
【図18】書込み画素データの描画前後の表示画面、各レイヤの画素データおよびレイヤ状態バッファの状態を示す図である。
【図19】書込み画素データの描画前後の表示画面、各レイヤの画素データおよびレイヤ状態バッファの状態を示す図である。
【図20】書込み画素データの描画前後の表示画面、各レイヤの画素データおよびレイヤ状態バッファの状態を示す図である。
【図21】この発明の描画回路の構成の一例を示す図である(その1)。
【図22】この発明の描画回路の構成の一例を示す図である(その2)。
【図23】この発明の描画回路の構成の一例を示す図である(その3)。
【図24】表示画面の状態の例を示す図である。
【図25】表示画面の状態の変化の例を示す図である。
【図26】従来の画面表示システムの構成を示すブロック図である。
【図27】従来の画面表示システムのメモリマップを示す図である。
【図28】表示画面と画素の関係を示す図である。
【図29】レイヤの構造を示す図である。
【符号の説明】
1 CPU、2 表示画面バッファ、3 表示デバイス、4 表示コントローラ、5 描画回路、6 レイヤ状態バッファ、7 レイヤ画面バッファ、51 書込みレイヤ指定レジスタ、52 透過色レジスタ。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a screen display device and a screen display method for writing pixel data to be output to a CRT, a liquid crystal display device, and the like, and in particular, to render any image expressed on a two-dimensional plane by providing a layer structure. TECHNICAL FIELD The present invention relates to a screen display device and a screen display method capable of updating a screen while guaranteeing overlapping of images when performing such a process.
[0002]
[Prior art]
FIG. 26 is a block diagram showing a configuration of a conventional screen display system. In this conventional screen display system, a central processing unit (hereinafter, referred to as a CPU) 1 that performs drawing control of a screen according to an
[0003]
FIG. 27 shows a memory map as viewed from the
[0004]
In such a screen display system, the
[0005]
Further, the display screen can be recognized as a combination of a plurality of images based on the configuration of the screen. In this specification, an image is defined as an arbitrary set of pixels. That is, the image has an arbitrary size, an arbitrary shape, an arbitrary color in pixel units, and is, for example, a two-dimensional plane such as a character or a character string, an object such as a tree or a car, or a single screen such as a photograph. Includes all that is represented above.
[0006]
Next, the operation of screen display in the conventional screen display system will be described. Here, it is assumed that the area of the
[0007]
Subsequently, the
[0008]
Next, in such a display screen system, a plurality of images overlap with each other in the depth direction with respect to the screen, and a plurality of images having a front-to-back overlap relationship move while maintaining the overlapping state. A description will be given of a writing operation to the
[0009]
The
[0010]
To display these
[0011]
As another method of displaying a screen in which a plurality of images overlap in a conventional display screen system, a method of configuring a display screen using a concept of a layer is known. Here, the layer means a plurality of transparent layers that are overlapped in order from bottom to top. An image is drawn on each layer so that the state of the lower layer can be seen through the transparent portion.
[0012]
FIG. 29 shows a case where the
[0013]
When a display screen is configured using the concept of layers, first, layers for the number of overlaps required in the display system are prepared, and each layer is ordered so as to overlap from bottom to top. In the example illustrated in FIG. 29, each of the layers 700 to 703 is configured by laying out pixels vertically and horizontally on a matrix similarly to the
[0014]
Next, in order to indicate a transparent state, one of the pixel data is set as a transparent color. For example, if the pixel data is composed of 8 bits, the number of colors that can be represented is 256 (= 2 8 ) Colors, and if one of them is set as a transparent color, the number of colors that can be expressed is 255. However, since there is no transparent color below the
[0015]
In the state defined in this way, an image is drawn on the layers 700 to 703. In FIG. 29,
[0016]
For each pixel at the same position in all the layers 700 to 703, the pixel data is compared with the transparent color in order from the uppermost layer to the lowermost layer, and the pixel data of the first layer that is not the transparent color is displayed on the
[0017]
[Problems to be solved by the invention]
However, in the above-described conventional method of creating a display image by superimposing a plurality of images in order from the bottom, it is necessary to update all the overlapping images even when both of them change a part of the screen. There is. In the method of composing an image with a plurality of layers, even if one layer changes, pixel data is compared with the transparent color in order from the uppermost layer to the lowermost layer for all pixel positions. Then, it is necessary to obtain the pixel data of the uppermost layer which is not the transparent color. Therefore, there is a problem in that the processing time for displaying an image increases as the number of overlapping images increases in either method of creating a display image.
[0018]
The present invention has been made in view of the above, and when updating a display screen in which a plurality of images are displayed in an overlapping manner, the time required for updating the display screen can be reduced without updating all the images. It is an object of the present invention to obtain a screen display device and a screen display method capable of generating the above display screen.
[0019]
[Means for Solving the Problems]
In order to achieve the above object, a screen display device according to the present invention includes: a layer screen storage unit that stores pixel data of a plurality of layers constituting an image to be displayed on the display device for each layer; A layer state storage unit for storing pixel layer state data of a transparent color or a non-transparent color; a pixel data including a transparent color is stored; and a non-transparent of image data of a plurality of layers stored in the layer screen storage unit Display screen storing means for storing pixel data of the uppermost layer having color pixel data for each pixel, writing layer specifying means for specifying a layer whose pixel data is to be changed, and a pixel in the specified layer For the pixels that need to be updated, the pixel data of the corresponding layer of the layer screen storage unit and / or the pixel data of the corresponding layer state storage unit Updates the layers of the pixel layer state data, characterized in that it comprises a drawing circuit and a updating means for updating the corresponding pixel data of the display screen storage means.
[0020]
According to the present invention, the pixel data of a plurality of layers constituting the image to be displayed on the display device is stored for each layer by the layer screen storage unit, and the pixel data for each layer is stored in the transparent state or non-transparent color by the layer state storage unit. Pixel layer state data of a transmission color is stored. Further, the display screen storage means stores pixel data including the transparent color, and the image data of the uppermost layer having the pixel data of the non-transparent color among the image data of the plurality of layers stored in the layer screen storage means. It is stored for each pixel. Then, when a layer whose pixel data is changed is designated by the writing layer designating means of the drawing circuit, the drawing screen updating means stores the layer screen of the pixels which need to be updated in the designated layer. The pixel data of the corresponding layer of the means and / or the pixel layer state data of the corresponding layer of the layer state storage means are updated, and the corresponding pixel data of the display screen storage means are updated.
[0021]
A screen display method according to the next invention is characterized in that a layer screen storage means for storing pixel data of a plurality of layers constituting an image to be displayed on a display device for each layer, and that the pixel data for each layer is a transparent color or a non-transparent color. A layer state storage unit for storing the pixel layer state data, wherein pixel data including a transparent color is stored, and a pixel of a non-transparent color among the image data of a plurality of layers stored in the layer screen storage unit A screen display method for storing pixel data of an uppermost layer having data in a display screen storage unit for each pixel, wherein a layer whose pixel data is changed is specified, and the pixel data of the pixel data is For pixels that need updating, the pixel data of the corresponding layer of the layer screen storage means and / or the pixel ray of the corresponding layer of the layer state storage means Updates the status data, and updates the corresponding pixel data of the display screen storage means.
[0022]
According to the present invention, a layer whose pixel data is changed is specified, and pixel data and / or layer state storage of the corresponding layer in the layer screen storage unit are performed for the pixels that need to be updated in the specified layer. By updating the pixel layer state data of the corresponding layer of the means and updating the corresponding pixel data of the display screen storage means, pixel data including a transparent color is stored and stored in the layer screen storage means. A screen display method is provided in which pixel data of an uppermost layer having pixel data of a non-transparent color among image data of a layer is stored in a display screen storage unit for each pixel.
[0023]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, preferred embodiments of a screen display device and a screen display method according to the present invention will be described in detail with reference to the accompanying drawings.
[0024]
FIG. 1 is a block diagram showing a configuration of a screen display device according to the present invention. In FIG. 1, a screen display device includes a
[0025]
The
[0026]
The
[0027]
The
[0028]
The
[0029]
The
[0030]
The
[0031]
The
[0032]
FIG. 2 shows a memory map viewed from the
[0033]
Next, an operation procedure of drawing an image on a screen in the screen display device will be described with reference to a flowchart of FIG. First, the
[0034]
Next, the operation of updating one pixel by the
[0035]
First, as shown in FIG. 6, the
[0036]
Next, it is determined whether the writing pixel data is equal to the transmission color (step S6). If the write pixel data is equal to the transmissive color (Yes in step S6), the state of the pixel at the position to be updated in the write layer is non-transparent with reference to the pixel layer state data read in step S5. It is determined whether or not there is (step S7). If the state of the pixel at the update position in the writing layer is non-transparent (Yes in step S7), the position of the writing layer is the pixel at the same position as the pixel at the update position and the state of the pixel is non-transparent. It is determined with reference to the pixel layer state data read in step S5 whether or not it is lower than the position of the uppermost layer that is transparent (step S9). That is, the value (number) of the write layer stored in the write
[0037]
If the position of the uppermost layer, which is the pixel at the same position as the position of the writing layer and the update position and is non-transparent, is the same (No in step S9), the process and the processing of FIG. 7 is performed. That is, in the cycle of the timing t2, the pixel layer state data (transparency) of the
[0038]
On the other hand, in step S9 described above, when the position of the writing layer is lower than the position of the uppermost layer which is a pixel at the same position as the update position and is non-transparent (Yes in step S9), The processing after B in FIG. 5 and the processing shown in FIG. 8 are performed. That is, in the cycle of the timing t2, the pixel layer state data (transparency) of the
[0039]
If the state of the pixel at the update position in the writing layer is transparent in step S7 (No in step S7), the process does not need to be performed on the pixel data at the update position, and the process ends as it is. (See FIGS. 9 and 16).
[0040]
Next, if the written pixel data is not a transparent color in step S6 described above (No in step S6), the state of the pixel at the position to be updated in the written layer is the pixel layer state data read in step S5. It is determined whether or not it is non-transparent (step S8). If the state of the pixel at the update position in the writing layer is non-transparent (Yes in step S8), the position of the writing layer is the pixel at the update position and the uppermost position where the pixel state is non-transparent. It is determined with reference to the pixel
[0041]
If the position of the writing layer is the same as the position of the uppermost layer that is a pixel at the same position as the update position and is non-transparent (No in step S10), the process from C onward in FIG. The processing shown in FIG. 10 is performed. That is, in the cycle of timing t2, the write pixel data is written to the
[0042]
On the other hand, in step S10 described above, when the position of the writing layer is lower than the position of the uppermost layer that is the pixel at the same position as the update position and is non-transparent (Yes in step S10), The processing after D in FIG. 5 and the processing in FIG. 11 are performed. That is, in the cycle of the timing t2, the write pixel data is written to the
[0043]
Also, in step S8 described above, if the state of the pixel at the update position in the writing layer is transparent (No in step S8), the position of the writing layer is the pixel at the update position and the state of the pixel Is determined with reference to the pixel layer state data read in step S5 as to whether or not is lower than the position of the uppermost layer that is not transparent (step S11). That is, the value (number) of the write layer stored in the write
[0044]
If the position of the write layer is smaller than the position of the uppermost layer that is the pixel at the same position as the update position and is non-transparent (Yes in step S11), the process and the processing in FIG. 12 is performed. That is, in the cycle of the timing t2, the write pixel data is written to the
[0045]
On the other hand, in step S11 described above, if the position of the writing layer is equal to or greater than the position of the uppermost layer that is a pixel at the same position as the update position and is non-transparent (No in step S11), FIG. 5 and the processing shown in FIG. 13 are performed. That is, in the cycle of timing t2, write pixel data is written to the
[0046]
As described above, the present invention is characterized in that the cases are classified according to the states of the writing pixel data, the transmission color, and the pixel layer state data, and the pixel data of one pixel is updated corresponding to each case.
[0047]
Next, a specific example of the
[0048]
First,
[0049]
[0050]
Reference numeral 55 denotes a layer state buffer pixel layer state data register for holding the pixel layer state data of the
[0051]
Reference numeral 57 denotes a write pixel data register for holding pixel data to be written by the
[0052]
[0053]
A
[0054]
Reference numeral 64 denotes a comparator, which compares the output selected by the
[0055]
[0056]
[0057]
The operations of steps S9 to S11 in the flowchart of FIG. 4 are realized by the
[0058]
[0059]
[0060]
[0061]
[0062]
[0063]
The
[0064]
A
[0065]
[0066]
[0067]
With such a circuit configuration, the above-described operation processing of FIGS. 4 and 5 can be realized.
[0068]
FIGS. 24 and 25 show an example of the operation when displaying an image by the screen display device according to the present invention. First, in order to display the screen of FIG. 24, the
[0069]
【The invention's effect】
As described above, according to the present invention, a layer screen storage unit that stores pixel data of a plurality of layers constituting an image to be displayed on a display device for each layer, and that the pixel data of each layer is transparent or non-transparent. A layer state storage unit that stores pixel layer state data of a color; and a layer whose pixel data is to be changed. A drawing circuit for updating the pixel data of the layer and / or the pixel layer state data of the corresponding layer of the layer state storage means and updating the corresponding pixel data of the display screen storage means is provided. Only the changed layer is updated, and only the changed pixel data in the layer is updated, and the processing load for drawing an image is reduced. Reduce, an effect that the image it is possible to reduce processing time for displaying. Also, for a certain pixel position, the pixel data is compared with the transparent color in order from the uppermost layer to the lowermost layer, and it is not necessary to obtain the pixel data of the uppermost layer that is not the transparent color, and the image is displayed. Has the effect of shortening the processing time.
[0070]
According to the next invention, a layer whose pixel data is to be changed is specified, and pixel data and / or a layer state of a corresponding layer in the layer screen storage unit are determined for pixels whose pixel data needs to be updated in the specified layer. Since the pixel layer state data of the corresponding layer of the storage unit is updated and the corresponding pixel data of the display screen storage unit is updated, only the layer having a change in the image is updated, and furthermore, By updating only the pixel data having a change, the processing load for drawing the image can be reduced, and the processing time for displaying the image can be reduced. Also, for a certain pixel position, the pixel data is compared with the transparent color in order from the uppermost layer to the lowermost layer, and it is not necessary to obtain the pixel data of the uppermost layer that is not the transparent color, and the image is displayed. Has the effect of shortening the processing time.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a screen display device according to the present invention.
FIG. 2 is a diagram showing a memory map of the screen display device according to the present invention.
FIG. 3 is a flowchart showing a drawing operation of the screen display device according to the present invention.
FIG. 4 is a flowchart showing a drawing operation in pixel units according to the present invention (part 1).
FIG. 5 is a flowchart showing a pixel-by-pixel drawing operation according to the present invention (part 2).
FIG. 6 is a timing chart showing a pixel data writing operation of the drawing circuit according to the present invention.
FIG. 7 is a timing chart showing a pixel data write operation of the drawing circuit according to the present invention.
FIG. 8 is a timing chart showing a writing operation of pixel data of the drawing circuit according to the present invention.
FIG. 9 is a timing chart showing a pixel data write operation of the drawing circuit according to the present invention.
FIG. 10 is a timing chart showing a pixel data writing operation of the drawing circuit according to the present invention.
FIG. 11 is a timing chart showing a writing operation of pixel data of the drawing circuit according to the present invention.
FIG. 12 is a timing chart showing a writing operation of pixel data of the drawing circuit according to the present invention.
FIG. 13 is a timing chart showing a pixel data write operation of the drawing circuit according to the present invention.
FIG. 14 is a diagram illustrating a display screen before and after writing pixel data, pixel data of each layer, and a state of a layer state buffer.
FIG. 15 is a diagram showing a display screen before and after writing pixel data, pixel data of each layer, and a state of a layer state buffer.
FIG. 16 is a diagram showing display screens before and after writing pixel data, pixel data of each layer, and states of a layer state buffer.
FIG. 17 is a diagram showing a display screen before and after writing pixel data, pixel data of each layer, and a state of a layer state buffer.
FIG. 18 is a diagram showing a display screen before and after drawing of write pixel data, pixel data of each layer, and a state of a layer state buffer.
FIG. 19 is a diagram showing a display screen before and after writing pixel data, pixel data of each layer, and a state of a layer state buffer.
FIG. 20 is a diagram illustrating a display screen before and after writing pixel data, pixel data of each layer, and a state of a layer state buffer.
FIG. 21 is a drawing illustrating an example of the configuration of a drawing circuit according to the present invention (part 1);
FIG. 22 is a drawing illustrating an example of the configuration of a drawing circuit according to the present invention (part 2).
FIG. 23 is a drawing illustrating an example of the configuration of a drawing circuit according to the present invention (part 3).
FIG. 24 is a diagram illustrating an example of a state of a display screen.
FIG. 25 is a diagram illustrating an example of a change in the state of the display screen.
FIG. 26 is a block diagram showing a configuration of a conventional screen display system.
FIG. 27 is a diagram showing a memory map of a conventional screen display system.
FIG. 28 is a diagram showing a relationship between a display screen and pixels.
FIG. 29 is a diagram showing a layer structure.
[Explanation of symbols]
1 CPU, 2 display screen buffers, 3 display devices, 4 display controllers, 5 drawing circuits, 6 layer state buffers, 7 layer screen buffers, 51 writing layer designation registers, 52 transparent color registers.
Claims (2)
前記レイヤ毎の画素データが透過色か非透過色かの画素レイヤ状態データを格納するレイヤ状態格納手段と、
透過色を含む画素データが記憶され、前記レイヤ画面格納手段に格納される複数のレイヤの画像データのうち非透過色の画素データを有する最も上側のレイヤの画素データを各画素毎に格納する表示画面格納手段と、
画素データに変更のあるレイヤを指定する書込みレイヤ指定手段と、前記指定されたレイヤ内で画素データの更新が必要な画素について、前記レイヤ画面格納手段の対応するレイヤの画素データおよび/または前記レイヤ状態格納手段の対応するレイヤの画素レイヤ状態データを更新するとともに、前記表示画面格納手段の対応する画素データを更新する更新手段とを有する描画回路と、
を備えることを特徴とする画面表示装置。Layer screen storage means for storing pixel data of a plurality of layers constituting an image to be displayed on the display device for each layer;
Layer state storage means for storing pixel layer state data indicating whether the pixel data for each layer is a transparent color or a non-transparent color;
A display in which pixel data including a transparent color is stored, and pixel data of an uppermost layer having pixel data of a non-transparent color among image data of a plurality of layers stored in the layer screen storage unit is stored for each pixel. Screen storage means,
Writing layer designating means for designating a layer whose pixel data is to be changed; and, for pixels for which pixel data needs to be updated in the designated layer, pixel data of a corresponding layer in the layer screen storage means and / or the layer Updating a pixel layer state data of a corresponding layer of the state storage unit, and updating means for updating the corresponding pixel data of the display screen storage unit;
A screen display device comprising:
前記レイヤ毎の画素データが透過色か非透過色かの画素レイヤ状態データを格納するレイヤ状態格納手段と、
を備え、透過色を含む画素データが記憶され、前記レイヤ画面格納手段に格納される複数のレイヤの画像データのうち非透過色の画素データを有する最も上側のレイヤの画素データを各画素毎に表示画面格納手段に格納する画面表示方法であって、
画素データに変更のあるレイヤを指定し、前記指定されたレイヤ内で画素データの更新が必要な画素について、前記レイヤ画面格納手段の対応するレイヤの画素データおよび/または前記レイヤ状態格納手段の対応するレイヤの画素レイヤ状態データを更新するとともに、前記表示画面格納手段の対応する画素データを更新することを特徴とする画面表示方法。Layer screen storage means for storing pixel data of a plurality of layers constituting an image to be displayed on the display device for each layer;
Layer state storage means for storing pixel layer state data indicating whether the pixel data for each layer is a transparent color or a non-transparent color;
Pixel data including a transparent color is stored, and pixel data of an uppermost layer having pixel data of a non-transparent color is stored for each pixel among image data of a plurality of layers stored in the layer screen storage unit. A screen display method stored in a display screen storage means,
A layer whose pixel data is to be changed is specified, and pixel data of the corresponding layer in the layer screen storage unit and / or corresponding to the layer state storage unit for pixels whose pixel data needs to be updated in the specified layer. And updating the pixel layer state data of the layer to be updated, and updating the corresponding pixel data of the display screen storage means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002179007A JP2004021119A (en) | 2002-06-19 | 2002-06-19 | Screen display and screen display method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002179007A JP2004021119A (en) | 2002-06-19 | 2002-06-19 | Screen display and screen display method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004021119A true JP2004021119A (en) | 2004-01-22 |
Family
ID=31176568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002179007A Pending JP2004021119A (en) | 2002-06-19 | 2002-06-19 | Screen display and screen display method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004021119A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005189663A (en) * | 2003-12-26 | 2005-07-14 | Matsushita Electric Ind Co Ltd | Multi-layer image composing system |
-
2002
- 2002-06-19 JP JP2002179007A patent/JP2004021119A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005189663A (en) * | 2003-12-26 | 2005-07-14 | Matsushita Electric Ind Co Ltd | Multi-layer image composing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100509517B1 (en) | Display apparatus and method capable of rotating an image by 180 degrees | |
JP3656857B2 (en) | Full-motion video NTSC display device and method | |
US9129581B2 (en) | Method and apparatus for displaying images | |
JPS6224297A (en) | Controller for graphic pattern | |
JP2005114773A (en) | Controller driver, display device, and operating method therefor | |
JPH05119734A (en) | Display controller | |
JP2001195230A (en) | Plotting system and semiconductor integrated circuit for performing plotting arithmetic operation | |
US7633508B2 (en) | Data transfer apparatus | |
JPH07181941A (en) | Frame buffer device provided with high-speed copying means and execution method of double-buffered animation using said device | |
TW200300497A (en) | Back-end image transformation | |
CN112188262B (en) | Image processing method, device and system and computer readable medium | |
JPS59231591A (en) | Image generator | |
US5818466A (en) | Apparatus for providing multi-layer sprite graphic for an on-screen-graphic of television | |
JPH04174497A (en) | Display controlling device | |
JP2004021119A (en) | Screen display and screen display method | |
CN113050385B (en) | Gray image data storage method in DMD photoetching machine | |
JP2000324337A (en) | Image magnification and reducing device | |
JP3481913B2 (en) | Image processing device | |
TWI426499B (en) | System and method for storing and accessing pixel data in a graphics display device | |
JP2001134243A (en) | Lcd panel display device | |
JP2001228818A (en) | Display device | |
JP3431925B2 (en) | Image display control apparatus and method | |
JPH0443594B2 (en) | ||
JPS6235394A (en) | General-purpose graphic display unit | |
JP2000181397A (en) | Crt/lcd display converting circuit and converting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20041217 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060203 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060221 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060414 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20060822 |