JP2004101604A - Device and method of graphics processing, and computer program - Google Patents

Device and method of graphics processing, and computer program Download PDF

Info

Publication number
JP2004101604A
JP2004101604A JP2002259819A JP2002259819A JP2004101604A JP 2004101604 A JP2004101604 A JP 2004101604A JP 2002259819 A JP2002259819 A JP 2002259819A JP 2002259819 A JP2002259819 A JP 2002259819A JP 2004101604 A JP2004101604 A JP 2004101604A
Authority
JP
Japan
Prior art keywords
color
data
graphics processing
input
index value
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
JP2002259819A
Other languages
Japanese (ja)
Other versions
JP3941636B2 (en
Inventor
Daisuke Inaishi
稲石 大祐
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2002259819A priority Critical patent/JP3941636B2/en
Publication of JP2004101604A publication Critical patent/JP2004101604A/en
Application granted granted Critical
Publication of JP3941636B2 publication Critical patent/JP3941636B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a device and method in which a graphics processing of an index color mode is made possible in a graphics setting environment by a direct color mode. <P>SOLUTION: In the device and the method of the graphics processing and the computer program, an input index value is converted into color designation data as input data into a direct color mode processing part when an operator inputs the index value of a color look-up table (CLUT), displayed color designation data are outputted by performing a direct color mode processing in which a transformed result is used as an input color designation data, and a displayed color corresponding to the index value input by the operator is set by performing the index color mode processing in which the out put result is used as the input index value. In such a configuration, the color setting on the basis of the CLUT index set by the operator under the graphics setting environment at the direct color mode is correctly processed. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、グラフィックス処理装置および方法、並びにコンピュータ・プログラムに関する。さらに詳細には、ダイレクトカラーモードによるグラフィックス設定環境においてインデックスカラーモードのグラフィックス処理を可能としたグラフィックス処理装置および方法、並びにコンピュータ・プログラムに関する。
【0002】
【従来の技術】
PC、通信端末、あるいは様々な情報家電等においては、データ表示あるいはデータ入出力用ユーザインタフェースとしてCRT,LCD等のディスプレイが使用されている。このようなディスプレイには、例えば情報家電の利用形態に応じた機能を設定した画面イメージが表示される。例えば入力ボタンの配置、データ入力欄の設定、あるいはボタン押下時の処理等、様々な機能が設定され、また表示画面のイメージ等の設定も行なわれる。このようなユーザインタフェース画面のデザイン、機能を設定するためのアプリケーションプログラムを開発するためのプログラム言語として、Sun Microsystems,Inc.により配布されているJavaが多く利用されている。
【0003】
Java言語で書かれたプログラムは、コンピュータ、プラットフォームに依存しないJava実行ファイル形式としてのバイトコード(Byte Code)に変換され、Java仮想マシン(JavaVM)により読み取られて機械語変換(インタプリタ)がなされ様々な装置上において実行される。
【0004】
Javaにおいては、アプリケーションソフトウェアを容易に短時間で製作するために、再コンパイルの不要なソフトウェア部品(コンポーネント)をあらかじめ用意しておき、その部品を組み合わせてプログラムを作成する。Javaにおいては、これらの部品の再利用化技術(Java Beans)が構築されている。
【0005】
部品は、例えば、ディスプレイに表示するウィンドウ、ボタン、リスト、コンボボックス、テキスト入力フィールド等の様々なコンポーネントを単位として設定され、これら部品(コンポーネント)は、例えばボタン形状、配置情報等の属性情報としての「プロパティ」、部品に対するアクションの結果としての処理としての「メソッド」、さらに、部品に対するアクション、例えばデータ到着、割り込み発生、プロパティ変更、メソッド呼び出し等が発生した際に、別の部品に事象を連絡する機能としての「イベント」が規定される。これら、「プロパティ」、「メソッド」、「イベント」は、Java beansにおける部品の構成要件とされる。
【0006】
Javaの実行最小プログラム単位は、「クラス(class)」と呼ばれ、1以上のクラスによってJavaプログラムが生成される。クラスはデータとしての変数(Variable)と、動作としてのメソッド(Method)を持つ。このクラスとして設定されるプログラムコンポーネントを、例えばインターネット、LANのようなネットワークを介してPC、情報家電に転送し、格納することが可能であり、クラスファイルを格納した装置側では、プラットフォームに依存しないJava仮想マシンが、クラスファイル内に格納されたプログラムを実行することができる。
【0007】
上述のPCその他の情報家電等においては、データ表示あるいはデータ入出力用ユーザインタフェースとしてCRT,LCD等のディスプレイが使用され、その多くは、カラー画像として表示される。Javaに基づくJavaグラフィックスシステムでは、このようなカラー設定処理機能を提供している。Javaグラフィックスシステムにおいては、直接的に色指定を行なうダイレクトカラーモードが採用されている。
【0008】
色をグラフィックスメモリに保存する方法として、例えばR、G、Bそれぞれの輝度の階調値を直接保存する形式であるダイレクトカラーモードと、同時発色可能な色数のデータを用意しインデックスで対応づけるインデックスカラーモードがある。
【0009】
ディスプレイ画面上で色を表現する場合には、光の三原色である赤(R),緑(G),青(B)を組み合わせて様々な色を合成する。すなわち、RGBの輝度を変えて、三原色を全て最大輝度とした白色から黒色までが段階的に表現される。例えば、RGBの各色に2ビットを割り当てると、4×4×4=64色、4ビットを割り当てると、16×16×16=4096色、8ビットを割り当てると、256×256×256=1677万7216色の表現が可能となる。
【0010】
色を合成して表示する際には表示の最小サイズであるピクセルを単位として夫々処理がなされ、データは例えばビットマップデータとして記録される。1ピクセルに各色の階調度に応じて単純にビットを割り当てるようにすると、例えばRGB各々8ビットとすると、1ピクセル当たり、8×3=24ビットを割り当てる必要がある。従って、ピクセル数の増大に伴って、データ量が膨大なものとなるという問題が発生する。そこで、このような場合には、一般的にインデックスカラーモードが用いられる。
【0011】
例えば、「1670万色中256色表示可能」とされている場合には、256色のカラー・ルックアップ・テーブル(CLUTと称する)に1670万色中から利用する256色を選択し、選択した色の夫々に参照番号を一つずつ対応させて登録し、この参照番号(インデックス)を適用して、データの読み出しおよび書き込みを行うようにする。このようにして24ビット分必要とされていたデータ量が8ビット分に圧縮される。
【0012】
高速処理、あるいはメモリ容量の制限等から、上述した情報家電等では、このようなカラー・ルックアップ・テーブル(CLUT)を適用したインデックスカラーモードを適用した構成が多い。
【0013】
しかしながら、Java−API(Application Programming Interface)として提供されているJavaのグラフィカル・ユーザインタフェース用のクラスであるオブストラクション・ウィンドウ・ツールキット(AWT:Abstraction Window Toolkit)は、インデックスカラーモードをサポートするものではなくダイレクトカラーモードを適用した構成である。従って、カラー・ルックアップ・テーブル(CLUT)によるインデックスカラーモードを適用したハードウェア上において、JavaのAWTにおけるダイレクトカラーモード実行環境を設定してCLUTインデックスデータに基づく色設定処理を実行すると、意図した色と全く異なるカラー設定がなされてしまうという問題がある。
【0014】
【発明が解決しようとする課題】
本発明は、上記問題点に鑑みてなされたものであり、ダイレクトカラーモードによるグラフィックス設定環境においてインデックスカラーモードのグラフィックス処理を可能としたグラフィックス処理装置および方法、並びにコンピュータ・プログラムを提供することを目的とする。
【0015】
本発明は、インデックスによるカラー指定を行なうインデックスカラーモード形式のハードウェアデバイスを有する機器にダイレクトカラーモードによるグラフィックス環境が設定されている場合にも、インデックスカラーモードを適用してユーザの意図に従ったカラー設定を実行可能としたグラフィックス処理装置および方法、並びにコンピュータ・プログラムを提供することを目的とする。
【0016】
【課題を解決するための手段】
本発明の第1の側面は、
ディスプレイの画素表示色の設定処理を実行するグラフィックス処理装置であり、
色指定データを入力し、該色指定データに基づく表示色設定データを出力するダイレクトカラーモードに従った処理を実行する第1グラフィックス処理部と、カラールックアップテーブル(CLUT)に設定されたインデックス値を入力し、該インデックス値に対応するカラールックアップテーブル(CLUT)設定データを出力するインデックスカラーモードに従った処理を実行する第2グラフィックス処理部と、
前記カラールックアップテーブル(CLUT)対応のインデックス値を入力し、前記第1グラフィックス処理部入力データとしての色指定データへの変換処理を実行する変換処理部とを有し、
前記変換処理部は、変換処理結果の色指定データに基づいて前記第1グラフィックス処理部が生成する表示色設定データと、前記変換処理部に対する入力インデックス値とが等しくなるように前記変換処理を実行し、前記第2グラフィックス処理部は、前記第1グラフィックス処理部において生成する表示色設定データを入力インデックス値として、前記カラールックアップテーブル(CLUT)から設定データを出力する構成を有することを特徴とするグラフィックス処理装置にある。
【0017】
さらに、本発明のグラフィックス処理装置の一実施態様において、前記第1グラフィックス処理部は、入力する色指定データの構成ビットに基づいて、前記インデックス値の構成ビット数に等しいビット数からなる表示色設定データを生成する処理を実行する構成であることを特徴とする。
【0018】
さらに、本発明のグラフィックス処理装置の一実施態様において、前記第1グラフィックス処理部は、RGB各8ビットの色指定データを入力し、前記インデックス値の構成ビット数に等しい8ビットからなる表示色設定データを生成する処理を実行する構成であることを特徴とする。
【0019】
さらに、本発明のグラフィックス処理装置の一実施態様において、前記変換処理部は、前記カラールックアップテーブル(CLUT)のインデックス値を入力し、演算処理により前記第1グラフィックス処理部入力データとしての色指定データへの変換処理を実行する構成であることを特徴とする。
【0020】
さらに、本発明のグラフィックス処理装置の一実施態様において、前記変換処理部は、インデックス値としての8ビットデータを入力し、下記式、
R=(X&0xe0),
G=(X&0x1c)<<3,
B=(X&0x03)<<6,
に基づいて、RGB各8ビットの色指定データを生成する処理を実行する構成であり、前記第1グラフィックス処理部は、前記変換処理部の生成するRGB各8ビットの色指定データを入力し、入力データ中のR上位3ビット、G上位3ビット、B上位2ビットの8ビットからなる表示色設定データを前記第2グラフィックス処理部に対する入力インデックス値として生成する処理を実行する構成であることを特徴とする。
【0021】
さらに、本発明の第2の側面は、
ディスプレイの画素表示色の設定処理を実行するグラフィックス処理方法であり、
カラールックアップテーブル(CLUT)に設定されるインデックス値を入力し、ダイレクトカラーモード処理を実行する第1グラフィックス処理部への入力用データとしての色指定データへ変換するデータ変換ステップと、
前記変換処理により生成された色指定データを入力し、該色指定データに基づくダイレクトカラーモード処理により、表示色設定データを出力する第1グラフィックス処理ステップと、
前記第1グラフィックス処理ステップにおける出力表示色設定データをカラールックアップテーブル(CLUT)のインデックス値として入力し、インデックスカラーモード処理により、インデックス値に対応するカラールックアップテーブル(CLUT)設定データを出力する第2グラフィックス処理ステップと、
前記第2グラフィックス処理ステップにおいて出力するカラールックアップテーブル(CLUT)設定データをディスプレイの画素表示色として設定するステップとを有し、
前記データ変換処理ステップは、
変換処理結果の色指定データに基づいて前記第1グラフィックス処理ステップにおいて生成する表示色設定データと、前記データ変換処理部における入力インデックス値とが等しくなるように前記変換処理を実行することを特徴とするグラフィックス処理方法にある。
【0022】
さらに、本発明のグラフィックス処理方法の一実施態様において、前記第1グラフィックス処理ステップは、入力する色指定データの構成ビットに基づいて、前記インデックス値の構成ビット数に等しいビット数からなる表示色設定データを生成する処理を実行するステップを含むことを特徴とする。
【0023】
さらに、本発明のグラフィックス処理方法の一実施態様において、前記第1グラフィックス処理ステップは、RGB各8ビットの色指定データを入力し、前記インデックス値の構成ビット数に等しい8ビットからなる表示色設定データを生成する処理を実行するステップを含むことを特徴とする。
【0024】
さらに、本発明のグラフィックス処理方法の一実施態様において、前記データ変換処理ステップは、前記カラールックアップテーブル(CLUT)のインデックス値を入力し、演算処理により前記第1グラフィックス処理部入力データとしての色指定データへの変換処理を実行することを特徴とする。
【0025】
さらに、本発明のグラフィックス処理方法の一実施態様において、前記データ変換処理ステップは、インデックス値としての8ビットデータを入力し、下記式、
R=(X&0xe0),
G=(X&0x1c)<<3,
B=(X&0x03)<<6,
に基づいて、RGB各8ビットの色指定データを生成する処理を実行し、前記第1グラフィックス処理ステップは、前記データ変換処理ステップにおいて生成するRGB各8ビットの色指定データを入力し、入力データ中のR上位3ビット、G上位3ビット、B上位2ビットの8ビットからなる表示色設定データを生成する処理を実行することを特徴とする。
【0026】
さらに、本発明の第3の側面は、
ディスプレイの画素表示色の設定処理を実行するグラフィックス処理を実行するコンピュータ・プログラムであって、
カラールックアップテーブル(CLUT)に設定されるインデックス値を入力し、ダイレクトカラーモード処理を実行する第1グラフィックス処理部への入力用データとしての色指定データへ変換するデータ変換ステップと、
前記変換処理により生成された色指定データを入力し、該色指定データに基づくダイレクトカラーモード処理により、表示色設定データを出力する第1グラフィックス処理ステップと、
前記第1グラフィックス処理ステップにおける出力表示色設定データをカラールックアップテーブル(CLUT)のインデックス値として入力し、インデックスカラーモード処理により、インデックス値に対応するカラールックアップテーブル(CLUT)設定データを出力する第2グラフィックス処理ステップと、
前記第2グラフィックス処理ステップにおいて出力するカラールックアップテーブル(CLUT)設定データをディスプレイの画素表示色として設定するステップとを有し、
前記データ変換ステップは、
変換処理結果の色指定データに基づいて前記第1グラフィックス処理ステップにおいて生成する表示色設定データと、前記データ変換処理部における入力インデックス値とが等しくなるように前記変換処理を実行するステップとして設定されていることを特徴とするコンピュータ・プログラムにある。
【0027】
【作用】
本発明の構成によれば、インデックスによるカラー指定を行なうインデックスカラーモード形式のハードウェアデバイスを有する機器にダイレクトカラーモードによるグラフィックス環境が設定されている場合にも、インデックスカラーモードを適用してユーザの意図に従ったカラー設定が可能となる
【0028】
また、本発明によれば、オペレータの入力するカラールックアップテーブル(CLUT)のインデックス値が、ダイレクトカラーモード処理を実行する第1グラフィックス処理部への入力用データとしての色指定データへ変換され、変換結果を入力色指定データとするダイレクトカラーモード処理を実行して表示色指定データを出力し、出力結果を入力インデックス値とするインデックスカラーモード処理を実行して元の入力インデックス値に対応する表示色を設定する構成であるので、オペレータの入力するインデックス値に対応するCLUT設定データに基づく色設定処理を正しく実行することが可能となる。
【0029】
さらに、本発明によれば、インデックス値としての入力ビットデータに対する演算処理によって、ダイレクトカラーモード処理実行部への入力用色指定データへの変換を実行する構成であるので、インデックス値のビット長、ダイレクトカラーモード処理を実行する第1グラフィックス処理部への入力用データとしての色指定データのビット長が、様々に異なる設定であった場合にも演算処理態様の変更によって容易に対応することが可能となる。
【0030】
なお、本発明のコンピュータ・プログラムは、例えば、様々なプログラム・コードを実行可能な汎用コンピュータ・システムに対して、コンピュータ可読な形式で提供する記憶媒体、通信媒体、例えば、CDやFD、MOなどの記憶媒体、あるいは、ネットワークなどの通信媒体によって提供可能なコンピュータ・プログラムである。このようなプログラムをコンピュータ可読な形式で提供することにより、コンピュータ・システム上でプログラムに応じた処理が実現される。
【0031】
本発明のさらに他の目的、特徴や利点は、後述する本発明の実施例や添付する図面に基づく、より詳細な説明によって明らかになるであろう。なお、本明細書においてシステムとは、複数の装置の論理的集合構成であり、各構成の装置が同一筐体内にあるものには限らない。
【0032】
【発明の実施の形態】
以下、本発明のグラフィックス処理装置および方法、並びにコンピュータ・プログラムについて、図面を参照しながら詳細に説明する。
【0033】
まず、図1および図2を参照してダイレクトカラーモードによる色設定処理方式と、カラールックアップテーブル(CLUT)を使用したインデックスカラーモードによる色設定方式の概略について説明する。
【0034】
図1は、例えばJava−API(Application Programming Interface)として提供されるグラフィカル・ユーザインタフェース用クラスであるオブストラクション・ウィンドウ・ツールキット(AWT:Abstraction Window Toolkit)において適用されるダイレクトカラーモードに従った色設定処理の概略を説明する図である。ここでは、デイスプレイの1ピクセルに対して8ビットデータを対応させて色を設定する8bpp(bit per pixel)方式による色設定例を示す。
【0035】
ユーザは、光の三原色である赤(R),緑(G),青(B)を組み合わせて様々な色を合成することができる。ユーザは、RGB各々について、それぞれ輝度レベルとして0〜255(8ビット)の設定が可能であるが、RGB各々について8ビットデータを設定すると、1画素(ピクセル)あたり24ビットのデータとなり、データ量が膨大となるため、各ピクセル毎に色指定データを8ビットデータに削減する変換処理を行なう。
【0036】
この変換処理は、例えばJava実行環境として提供されている「intent」により実行される。例えば初期設定の赤(R)の8ビットデータの上位3ビット、初期設定の緑(G)の8ビットデータの上位3ビット、初期設定の青(B)の8ビットデータの上位2ビットを抽出し連結して8ビットデータを設定する。この8ビットデータに対応して設定された色がディスプレイ101を構成する各ピクセル102に出力される。
【0037】
一方、図2は、カラールックアップテーブル(CLUT)を使用したインデックスカラーモードによる色設定方式の概略を説明する図である。
【0038】
カラールックアップテーブル(CLUT)は、インデックスに対応付けて各種の色設定データを格納したテーブルである。図2は、YUVαの表色系データを構成するYUVα各値を設定したカラールックアップテーブル(CLUT)を適用した例を示している。カラールックアップテーブル(CLUT)には、例えばインデックス値として0〜255(8ビット)が設定され、各インデックス値に対応した計256種類の色データが格納される。
【0039】
ユーザは、カラールックアップテーブル(CLUT)のインデックス値:0〜255(8ビット)のいずれかを指定し、指定したインデックスに対応するYUVαの各値が取得され、取得された各値によって決定される色がディスプレイ151を構成する各ピクセル152に出力される。
【0040】
次に、図3を参照して、本発明に従った色設定処理シーケンスを説明する。本発明は、インデックスによるカラー指定を行なうインデックスカラーモード形式のハードウェアデバイスを有する機器にダイレクトカラーモードによるグラフィックス環境が設定されている場合にも、インデックスカラーモードを適用してユーザの意図に従ったカラー設定を可能としている。
【0041】
図3に示すシーケンス図においては、左から色設定のためのデータ入力を行なうオペレータにより操作されるデータ入出力部、変換処理部、ダイレクトカラーモードでの処理を実行する第1のグラフィックス処理部としてのグラフィックス処理部A、カラールックアップテーブル(CLUT)を適用したインデックスカラーモードでの処理を実行する第2のグラフィックス処理部としてのグラフィックス処理部B、描画処理対象の表示画面を出力するディスプレイにしてデータを出力する表示制御部の各処理を示している。
【0042】
ダイレクトカラーモードでの処理を実行する第1のグラフィックス処理部としてのグラフィックス処理部Aは、例えばJavaにおけるグラフィカル・ユーザインタフェース用クラスであるオブストラクション・ウィンドウ・ツールキット(AWT:Abstraction Window Toolkit)、およびJava実行環境として提供されている「intent」によるグラフィックス処理を実行するグラフィックス処理部である。
【0043】
オペレータは、データ入出力部を介して、カラールックアップテーブル(CLUT)のインデックスに基づいた色指定を行なう。オペレータは、カラールックアップテーブル(CLUT)の内容を認識し、カラールックアップテーブル(CLUT)に設定されたインデックス、例えば0〜255(8ビットインデックス)の指定に基づいて設定される色について認識しているものとする。
【0044】
オペレータがデータ入出力部から入力するインデックス指定データ(8ビットインデックス)は、まず、変換処理部に入力される。変換処理部では、オペレータから入力される8ビットデータの変換処理を実行する。
【0045】
この変換処理は、ダイレクトカラーモードでの処理を実行する第1のグラフィックス処理部としてのグラフィックス処理部Aに対する色指定入力データに適合するRGB24ビットデータ、すなわちR:8ビット、G:8ビット、B:8ビットの各データを生成する処理として実行される。
【0046】
変換処理部において実行する変換処理は、例えば下式に従って実行される。オペレータからの入力8ビットデータをXとする。
【0047】
【数1】
R=(X&0xe0)
G=(X&0x1c)<<3
B=(X&0x03)<<6
・・(式1)
【0048】
上記式(式1)において、[0x..]は16進数を意味する。[&]は、ビットデータ単位のアンド処理を示す。[<<]は、ビットデータ単位の左論理シフト処理を示す。オペレータが例えばインデックス値としてX=170=[10101010]を指定した場合の計算例について説明する。
【0049】
上記式において、0xe0=[11100000]、0x1c=[00011100]、0x03=[00000011]であるので、上記式は、R=[10101010]&[11100000]、G=[10101010]&[00011100]、B=[10101010]&[00000011]となり、Rの値は、オペレータ入力インデックス値から上位3ビットのみを取り出した値、すなわちR=[10100000]となる。Gは、オペレータ入力インデックス値から4〜6ビット目のみを取り出して左へ3ビット論理シフトした値、すなわちG=[01000000]となり、Bは、オペレータ入力インデックス値から下位2ビットのみを取り出して左へ6ビット論理シフトした値、すなわちB=[10000010]となる。
【0050】
この変換値としてのRGB各8ビットデータ、計24ビットデータ、すなわち、上述の具体例では、
R=[10100000]
G=[01000000]
B=[10000000]
のRGB各8ビットデータがオペレータに戻される。
【0051】
オペレータはこの変換処理部からの応答データをJavaグラフィカル・ユーザインタフェースにおいて提供されるダイレクトカラーモードで色設定処理を実行するグラフィックス処理部Aに対して入力する。
【0052】
グラフィックス処理部Aでは、入力される24ビットデータを、ピクセルあたりの設定ビット数に変換する。ここでは、8bppであり、各ピクセルにカラーデータとして8ビットが割り当てられているとする。この変換処理は、図1を参照して説明した既知の技術であるJava実行環境「intent」により実行される。
【0053】
グラフィックス処理部Aにおける変換は、RGB各入力8ビットデータからRの上位3ビット、Gの上位3ビット、Bの上位2ビットを結合して、8ビットデータを設定する処理として実行される。例えば、上記例、すなわちオペレータの入力値に基づいて変換処理部が生成したRGB各8ビットが、
R=[10100000]
G=[01000000]
B=[10000000]
である場合、グラフィックス処理部Aにおける変換によって生成される8ビットデータは、[10101010]となる。
【0054】
次に、グラフィックス処理部Aにおいて入力24ビットデータに基づいて生成された8ビット値[10101010]が、カラールックアップテーブル(CLUT)を適用したインデックスカラーモードでの処理を実行する第2のグラフィックス処理部としてのグラフィックス処理部Bに入力される。
【0055】
グラフィックス処理部Bは、入力値を記憶部に記憶したカラールックアップテーブル(CLUT)におけるインデックス値として認識し、入力値に基づいてカラールックアップテーブル(CLUT)のインデックス検索を実行して、一致するインデックスに対応して格納された色設定データ、例えばYUVαの各値を取得する。
【0056】
グラフィックス処理部Bは、この取得値を表示制御部に色設定データとして出力し、表示制御部が設定データに基づくカラーをディスプレイに対して出力する。
【0057】
なお、図3の処理シーケンス図においては、変換処理部において、オペレータの入力した8ビットCLUTインデックスデータに基づいて生成した24ビットRGBデータを、一旦、オペレータに戻し、オペレータにより、RGB24ビットデータをグラフィックス処理部Aに対して再入力する処理例を示しているが、この再入力処理を省略し、変換処理部において、オペレータの入力した8ビットインデックスデータに基づいて生成した24ビットRGBデータを、直接グラフィックス処理部Aに対して入力するシーケンスとしてもよい。この処理によれば、オペレータによるデータ入力は、最初の8ビットCLUTインデックスデータの入力のみとすることができる。
【0058】
なお、上述の例では、CLUTインデックス値を8ビットとし、ダイレクトカラーモードを実行するグラフィックス処理部に対する入力値をRGB各8ビット、計24ビットのデータとした例を示したが、本発明は、各データのビット数が上記の設定例に限定されるものではない。
【0059】
すなわち、本発明のグラフィックス処理装置における変換処理部は、インデックス値としての入力ビットデータに対する演算処理によって、ダイレクトカラーモード処理実行部(グラフィックス処理部A)への入力用色指定データへの変換を実行する構成であるので、インデックス値のビット長や、ダイレクトカラーモード処理を実行するグラフィックス処理部Aへの入力用データとしての色指定データのビット長が、その他のビット数構成であっても変換処理部の演算処理態様の変更による対応が可能となる。
【0060】
次に、図4を参照して、色設定のためのデータ入力を行なうオペレータ、変換処理部、ダイレクトカラーモードでの処理を実行する第1のグラフィックス処理部としてのグラフィックス処理部A、カラールックアップテーブル(CLUT)を適用したインデックスカラーモードでの処理を実行する第2のグラフィックス処理部としてのグラフィックス処理部B、描画処理対象の表示画面を出力するディスプレイにしてデータを出力する表示制御部において実行する各処理について説明する。
【0061】
まずステップ(a)において、オペレータは、構成を認識しているカラールックアップテーブル(CLUT)のインデックス値(8ビット)を変換処理部に対する入力値として入力する。ステップ(b)において、変換処理部は、入力値(8ビット)をRGB各8ビット、計24ビットデータを生成してオペレータに応答する。この24ビットデータ生成処理は、上述した(式1)に従って実行される。
【0062】
ステップ(c)では、オペレータが、RGB各8ビット、計24ビットデータをダイレクトカラーモードでの処理を実行する第1のグラフィックス処理部としてのグラフィックス処理部Aに入力する。
【0063】
ステップ(d)では、グラフィックス処理部Aが入力24ビットデータを8ビットデータに変換する。具体的には、入力RGB各8ビットデータから、Rの上位3ビット、Gの上位3ビット、Bの上位2ビットを抽出して、8ビットデータを生成する。
【0064】
ステップ(e)では、8ビットデータが、カラールックアップテーブル(CLUT)を適用したインデックスカラーモードでの処理を実行する第2のグラフィックス処理部としてのグラフィックス処理部Bに入力される。
【0065】
ステップ(f)において、グラフィックス処理部Bは、入力値を記憶部に記憶したカラールックアップテーブル(CLUT)におけるインデックス値として認識し、入力値に基づいてカラールックアップテーブル(CLUT)のインデックス検索を実行して、一致するインデックスに対応して格納された色設定データ、例えばYUVαの各値を取得し、取得値を色データを表示制御部に色設定データとして出力する。
【0066】
ステップ(g)において、表示制御部がCLUT設定データに基づくカラーをディスプレイに対して出力する。
【0067】
以上の処理により、インデックスによるカラー指定を行なうインデックスカラーモード形式のハードウェアデバイスを有する機器にダイレクトカラーモードによるグラフィックス環境が設定されている場合にも、インデックスカラーモードを適用してユーザの意図に従ったカラー設定が可能となる。
【0068】
なお、上記処理例では、インデックスカラーモード方式を実行するグラフィックス処理部の有するカラールックアップテーブル(CLUT)をYUVαの設定データとした例を示したが、カラールックアップテーブル(CLUT)はYUVαの設定データ形式のみならず、他のいかなるデータ設定形式であってもよく、インデックスに対応してカラー設定データが格納された形式であればよい。
【0069】
また、上記実施例では、ダイレクトカラーモード方式を実行するグラフィックス処理部においてRGBの各色データを入力する構成例を示したが、このダイレクトカラーモード方式を実行するグラフィックス処理部においてもRGB以外の色設定データを入力し識別する構成としてもよい。また、ダイレクトカラーモード方式を実行するグラフィックス処理部においてRGB24ビットデータを8ビットデータに変換する際、R3ビット、G3ビット、B2ビットのデータ抽出を実行する例を示したが、この抽出処理態様は、R3ビット、G3ビット、B2ビットに限らず、他の抽出処理態様としてもよい。変換処理部においては、その態様に応じた変換処理を実行する。
【0070】
次に、上記処理を実行するグラフィックス処理装置の構成について、図5のブロック図を参照して説明する。図5は、上述した処理を実行する本発明に係るグラフィックス処理装置に必要となる主要機能をブロックとして示している。なお、具体的なハードウェア構成例については、後述する。
【0071】
データ入出力部301は、オペレータによるデータ入力、およびオペレータに対するデータ出力を実行するデータ入出力処理部であり、図3に示すシーケンス図におけるCLUTインデックスデータの入力、および変換処理部302における入力インデックスデータに基づく変換結果としてのRGB各8ビットデータの提示、グラフィックス処理部A303に対するRGB各8ビットデータの入力を実行する処理部である。
【0072】
変換処理部302は、オペレータの入力するCLUTインデックスデータに基づく変換処理を実行し、RGB各8ビット、計24ビットデータを生成する。グラフィックス処理部A303は、データ入出力部301を介して入力される24ビットRGBデータを8ビットデータに変換、例えばRの上位3ビット、Gの上位3ビット、Bの上位2ビットを抽出して、8ビットデータを生成する。
【0073】
グラフィックス処理部B304は、カラールックアップテーブル(CLUT)を記憶した記憶部307を有し、グラフィックス処理部A303から入力される8ビットデータをCLUTのインデックス値として認識し、入力値に基づいて記憶部307に格納したカラールックアップテーブル(CLUT)のインデックス検索を実行して、一致するインデックスに対応して格納された色設定データ、例えばYUVαの各値を取得し、取得値を色データを表示制御部305に色設定データとして出力する。
【0074】
表示制御部305は、グラフィックス処理部B304から入力するCLUT設定データに基づくカラーをCRT,LCD等のディスプレイによって構成される表示部306に出力する。
【0075】
次に、図6を参照して、本発明のグラフィックス処理装置の処理を利用した画像表示例について説明する。上述した説明から理解されるように、本発明のグラフィックス処理装置は、インデックスによるカラー指定を行なうインデックスカラーモード形式のハードウェアデバイスを有する機器にダイレクトカラーモードによるグラフィックス環境が設定されている場合にも、インデックスカラーモードを適用してユーザの意図に従ったカラー設定が可能となる構成である。
【0076】
従って、例えばJava言語に基づいて構成されたアプリケーションプログラムによって提示されるダイレクトカラーモードによってカラー設定のなされた画像データからなるプレーンデータと、上述の処理によってCLUTを適用したインデックスカラーモードに従ってオペレータによって作成されたプレーンを合成した画面構成を持つ表示データを生成し、ディスプレイに提示することが可能となる。
【0077】
図6において、(a)テキストプレーンが、CLUTを適用したインデックスカラーモードに従ってオペレータによって作成されたプレーンであり、(b)ピクチャプレーンが、例えばJava言語に基づいて構成されたアプリケーションプログラムによって提示されるダイレクトカラーモードによってカラー設定のなされたプレーンである。これらの両プレーン(a),(b)を重ね合わせることで、(c)合成プレーンが生成され、ディスプレイに表示することが可能となる。
【0078】
このように、例えばJavaのグラフィカル・ユーザインタフェース用クラスであるオブストラクション・ウィンドウ・ツールキット(AWT:Abstraction Window Toolkit)において適用されるダイレクトカラーモードによる色設定処理方式を適用するJava仮想マシン(JavaVM)を持つ装置であり、かつCLUTを適用したインデックスカラーモードを実行可能なハードウェアを有する装置において、Java言語に基づくアプリケーションに従ったダイレクトカラーモードによってカラー設定のなされたプレーンに対して、さらに、CLUTを適用したインデックスカラーモードによってカラー設定のなされたプレーンを生成して、両プレーンを合成した画面の表示が可能となる。
【0079】
次に、本発明のグラフィックス処理装置のハードウェア構成例について、図7を参照して説明する。図7を参照しながら、グラフィックス処理装置700内の各構成要素について説明する。グラフィックス処理装置700のメイン・コントローラであるCPU(Central Processing Unit)701は、オペレーティング・システム(OS)の制御下で、各種のアプリケーションを実行する。CPU701は、例えば、前述したJava言語に基づくプログラムの実行、具体的には、オブストラクション・ウィンドウ・ツールキット(AWT:Abstraction Window Toolkit)の処理、その他の画像表示プログラム、その他のコマンド処理等を実行する。図示の通り、CPU701は、バス707によって他構成部と相互接続されている。
【0080】
メモリ702は、CPU701において実行されるプログラム・コードを格納したり、実行中の作業データを一時保管するために使用される記憶装置である。
同図に示すメモリ702は、ROMなどの不揮発性メモリ及びDRAMなどの揮発性メモリの双方を含む。
【0081】
インデックスカラーモードグラフィツクス処理チップ750は、カラールックアップテーブル(CLUT)を格納したメモリ751を有し、CLUTに基づくインデックスカラーモードに基づく配色処理を実行する専用のチップである。チップ内には専用の処理回路が組み込まれている。
【0082】
表示制御部としてのディスプレイ・コントローラ703は、CPU701が発行する描画命令を実際に処理するための専用コントローラである。ディスプレイ・コントローラ703において処理された描画データは、例えばフレーム・バッファ(図示しない)に一旦書き込まれた後、ディスプレイ708によって画面出力される。例えば、HDD(711)から再生された画像や、CPU701により処理された画像は、ディスプレイ708で画面表示されて、ユーザはその提示画面を見ることが出来る。
【0083】
入力機器インターフェース704は、キーボード709やマウス710などのユーザ入力機器をグラフィックス処理装置700に接続するための装置である。
ユーザは、キーボード709やマウス710を介して、画像を処理するためや表示するためのコマンドなどを入力することができる。
【0084】
ネットワーク・インターフェース705は、Ethernetなどの所定の通信プロトコルに従って、グラフィックス処理装置700をLAN(Local Area Network)などの局所的ネットワーク、さらにはインターネットのような広域ネットワークに接続することができる。
【0085】
ネットワーク上では、複数のホスト端末やサーバー(図示しない)がトランスペアレントな状態で接続され、分散コンピューティング環境が構築されている。
ネットワーク上では、ソフトウェア・プログラムやデータ・コンテンツなどの配信サービスを行うことができる。例えば、動画像、静止画像等が保存されている他のサーバーから画像データを、ネットワーク経由でHDD(711)へダウンロードすることができる。
【0086】
外部機器インターフェース706は、デジタルカメラや、ハード・ディスク・ドライブ(HDD)711やメディア・ドライブ712などの外部装置をグラフィックス処理装置700に接続するための装置である。
【0087】
HDD711は、記憶媒体としての磁気ディスクを固定的に搭載した外部記憶装置であり、記憶容量やデータ転送速度などの点で優れており、ランダムアクセスも可能である。例えばソフトウェア・プログラムを実行可能な状態でHDD711上に置くプログラム・インストールが可能である。HDD711には、CPU701が実行すべきオペレーティング・システムのプログラム・コードや、アプリケーション・プログラム、デバイス・ドライバなどが不揮発的に格納されている。
【0088】
メディア・ドライブ712は、CD(Compact Disc)やMO(Magneto−Optical disc)、DVD(Digital Versatile Disc)などの可搬型メディア760を装填して、そのデータ記録面にアクセスするための装置である。
【0089】
可搬型メディア760は、主として、ソフトウェア・プログラムやデータ・ファイルなどをコンピュータ可読形式のデータとしてバックアップすることや、これらをシステム間で移動(すなわち販売・流通・配布を含む)する目的で使用される。画像処理を行うためのアプリケーション・プログラムを、これら可搬型メディアを利用して複数の機器間で物理的に流通・配布することができる。
【0090】
なお、図7に示すような装置は、米IBM社のパーソナル・コンピュータ”PC/AT(Personal Computer/Advanced Technology)”の互換機又は後継機として実現可能である。勿論、他のアーキテクチャを備えたコンピュータを適用することも可能である。
【0091】
以上、特定の実施例を参照しながら、本発明について詳解してきた。しかしながら、本発明の要旨を逸脱しない範囲で当業者が該実施例の修正や代用を成し得ることは自明である。すなわち、例示という形態で本発明を開示してきたのであり、限定的に解釈されるべきではない。本発明の要旨を判断するためには、冒頭に記載した特許請求の範囲の欄を参酌すべきである。
【0092】
なお、明細書中において説明した一連の処理はハードウェア、またはソフトウェア、あるいは両者の複合構成によって実行することが可能である。ソフトウェアによる処理を実行する場合は、処理シーケンスを記録したプログラムを、専用のハードウェアに組み込まれたコンピュータ内のメモリにインストールして実行させるか、あるいは、各種処理が実行可能な汎用コンピュータにプログラムをインストールして実行させることが可能である。
【0093】
例えば、プログラムは記録媒体としてのハードディスクやROM(Read Only Memory)に予め記録しておくことができる。あるいは、プログラムはフレキシブルディスク、CD−ROM(Compact Disc Read Only Memory),MO(Magneto optical)ディスク,DVD(Digital Versatile Disc)、磁気ディスク、半導体メモリなどのリムーバブル記録媒体に、一時的あるいは永続的に格納(記録)しておくことができる。このようなリムーバブル記録媒体は、いわゆるパッケージソフトウエアとして提供することができる。
【0094】
なお、プログラムは、上述したようなリムーバブル記録媒体からコンピュータにインストールする他、ダウンロードサイトから、コンピュータに無線転送したり、LAN(Local Area Network)、インターネットといったネットワークを介して、コンピュータに有線で転送し、コンピュータでは、そのようにして転送されてくるプログラムを受信し、内蔵するハードディスク等の記録媒体にインストールすることができる。
【0095】
なお、明細書に記載された各種の処理は、記載に従って時系列に実行されるのみならず、処理を実行する装置の処理能力あるいは必要に応じて並列的にあるいは個別に実行されてもよい。また、本明細書においてシステムとは、複数の装置の論理的集合構成であり、各構成の装置が同一筐体内にあるものには限らない。
【0096】
【発明の効果】
以上説明してきたように、本発明の構成によれば、インデックスによるカラー指定を行なうインデックスカラーモード形式のハードウェアデバイスを有する機器にダイレクトカラーモードによるグラフィックス環境が設定されている場合にも、インデックスカラーモードを適用してユーザの意図に従ったカラー設定が可能となる。
【0097】
本発明によれば、オペレータの入力するカラールックアップテーブル(CLUT)のインデックス値が、ダイレクトカラーモード処理を実行する第1グラフィックス処理部への入力用データとしての色指定データへ変換され、変換結果を入力色指定データとするダイレクトカラーモード処理を実行して表示色指定データを出力し、出力結果を入力インデックス値とするインデックスカラーモード処理を実行して元の入力インデックス値に対応する表示色を設定する構成であるので、オペレータの入力するインデックス値に対応するCLUT設定データに基づく色設定処理を正しく実行することが可能となる。
【0098】
本発明によれば、インデックス値としての入力ビットデータに対する演算処理によって、ダイレクトカラーモード処理実行部への入力用色指定データへの変換を実行する構成であるので、インデックス値のビット長、ダイレクトカラーモード処理を実行する第1グラフィックス処理部への入力用データとしての色指定データのビット長が、様々に異なる設定であった場合にも演算処理態様の変更によって容易に対応することが可能となる。
【図面の簡単な説明】
【図1】ダイレクトカラーモードの処理例について説明する図である。
【図2】カラールックアップテーブル(CLUT)を適用したインデックスカラーモードの処理例について説明する図である。
【図3】本発明のグラフィックス処理シーケンスを示す図である。
【図4】本発明のグラフィックス処理シーケンスを説明する図である。
【図5】本発明のグラフィックス処理装置の機能構成を説明するブロック図である。
【図6】本発明のグラフィックス処理の処理利用例を説明する図である。
【図7】本発明のグラフィックス処理装置のハードウェア構成を示すブロック図である。
【符号の説明】
101 ディスプレイ
102 ピクセル
151 ディスプレイ
152 ピクセル
211 カラールックアップテーブル(CLUT)
221 ディスプレイ
222 ピクセル
301 データ入出力部
302 変換処理部
303 グラフィックス処理部A
304 グラフィックス処理部B
305 表示制御部
306 表示部
307 記憶部
700 グラフィックス処理装置
701 CPU
702 メモリ
703 ディスプレイコントローラ
704 入力機器インターフェース
705 ネットワークインターフェース
706 外部機器インターフェース
707 バス
708 ディスプレイ
709 キーボード
710 マウス
711 HDD
712 メディアドライブ
750 インデックスカラーモードグラフィックス処理チップ
751 記憶部
760 過搬型メディア
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a graphics processing device and method, and a computer program. More specifically, the present invention relates to a graphics processing apparatus and method capable of performing graphics processing in index color mode in a graphics setting environment in direct color mode, and a computer program.
[0002]
[Prior art]
2. Description of the Related Art In PCs, communication terminals, various information home appliances, etc., displays such as CRTs and LCDs are used as user interfaces for data display or data input / output. On such a display, for example, a screen image in which functions according to the usage form of the information home appliance are set is displayed. For example, various functions are set, such as arrangement of input buttons, setting of a data input field, or processing when a button is pressed, and setting of an image of a display screen is also performed. As a programming language for developing an application program for setting the design and functions of such a user interface screen, Sun Microsystems, Inc. Are widely used.
[0003]
A program written in the Java language is converted into byte code (Byte Code) as a Java executable file format independent of a computer and a platform, read by a Java virtual machine (Java VM), and subjected to machine language conversion (interpreter). It is executed on a simple device.
[0004]
In Java, in order to easily produce application software in a short time, software components that do not need to be recompiled are prepared in advance, and a program is created by combining the components. In Java, a technology for reusing these components (Java Beans) has been constructed.
[0005]
Parts are set in units of various components such as windows, buttons, lists, combo boxes, and text input fields to be displayed on a display, and these parts (components) are used as attribute information such as button shapes and arrangement information. "Property", "method" as processing as a result of an action on a part, and further, when an action on a part, for example, data arrival, interrupt occurrence, property change, method call, etc. occurs, an event is sent to another part. An "event" as a function of contact is defined. These “properties”, “methods”, and “events” are component requirements of Java beans.
[0006]
The minimum execution unit of Java is called a "class", and a Java program is generated by one or more classes. The class has variables (Variable) as data and methods (Method) as operations. The program component set as this class can be transferred to and stored in a PC or information home appliance via a network such as the Internet or a LAN, and the device storing the class file does not depend on the platform. A Java virtual machine can execute a program stored in a class file.
[0007]
In the above-mentioned PCs and other information appliances, displays such as CRTs and LCDs are used as user interfaces for data display or data input / output, and most of them are displayed as color images. A Java graphics system based on Java provides such a color setting processing function. In the Java graphics system, a direct color mode for directly specifying a color is adopted.
[0008]
As a method of storing colors in the graphics memory, for example, the direct color mode, which is a format for directly storing the gradation values of R, G, and B, and data of the number of colors that can be simultaneously formed are prepared and indexed. There is an index color mode to add.
[0009]
When expressing colors on a display screen, various colors are synthesized by combining the three primary colors of light, red (R), green (G), and blue (B). That is, by changing the luminance of RGB, white to black with all three primary colors being the maximum luminance are expressed stepwise. For example, if 2 bits are allocated to each color of RGB, 4 × 4 × 4 = 64 colors, if 4 bits are allocated, 16 × 16 × 16 = 4096 colors, and if 8 bits are allocated, 256 × 256 × 256 = 16.770,000 Expression of 7216 colors becomes possible.
[0010]
When colors are combined and displayed, processing is performed for each pixel, which is the minimum display size, and data is recorded as, for example, bitmap data. If bits are simply assigned to one pixel according to the gradation of each color, for example, if each of RGB is 8 bits, it is necessary to assign 8 × 3 = 24 bits per pixel. Therefore, there is a problem that the data amount becomes enormous as the number of pixels increases. Therefore, in such a case, the index color mode is generally used.
[0011]
For example, when “256 colors out of 16.7 million colors can be displayed” is selected, 256 colors to be used are selected from 16.7 million colors in a 256-color color lookup table (referred to as CLUT), and the selected color is selected. A reference number is registered one by one for each color, and the reference number (index) is applied to read and write data. In this way, the data amount required for 24 bits is compressed to 8 bits.
[0012]
Due to the high-speed processing, the limitation of the memory capacity, and the like, many of the information home appliances described above adopt an index color mode to which such a color look-up table (CLUT) is applied.
[0013]
However, the Obstruction Window Toolkit (AWT: Abstraction Window Toolkit), which is a class for a Java graphical user interface provided as a Java-Application Programming Interface (API), does not support the index color mode. And a direct color mode is applied. Therefore, it is intended to execute a color setting process based on CLUT index data by setting a direct color mode execution environment in Java AWT on hardware to which an index color mode using a color lookup table (CLUT) is applied. There is a problem that a color setting completely different from the color is made.
[0014]
[Problems to be solved by the invention]
The present invention has been made in view of the above problems, and provides a graphics processing apparatus and method capable of performing graphics processing in index color mode in a graphics setting environment in direct color mode, and a computer program. The purpose is to:
[0015]
The present invention also applies the index color mode to a user having a hardware environment of the index color mode format in which a color environment is set to perform a color specification by an index, according to the user's intention even when the graphics environment of the direct color mode is set. It is an object of the present invention to provide a graphics processing apparatus and method capable of executing color settings, and a computer program.
[0016]
[Means for Solving the Problems]
According to a first aspect of the present invention,
A graphics processing device that performs a process of setting a pixel display color of a display,
A first graphics processing unit for executing processing according to a direct color mode for inputting color designation data and outputting display color setting data based on the color designation data, and an index set in a color lookup table (CLUT) A second graphics processing unit for executing a process according to an index color mode for inputting a value and outputting a color lookup table (CLUT) setting data corresponding to the index value;
A conversion processing unit that inputs an index value corresponding to the color look-up table (CLUT) and executes a conversion process into color designation data as the first graphics processing unit input data;
The conversion processing unit performs the conversion processing so that display color setting data generated by the first graphics processing unit based on the color designation data of the conversion processing result is equal to an input index value to the conversion processing unit. Executing the second graphics processing section, and using the display color setting data generated in the first graphics processing section as an input index value, outputting the setting data from the color lookup table (CLUT). And a graphics processing device.
[0017]
Further, in one embodiment of the graphics processing device of the present invention, the first graphics processing unit is configured to display, based on the constituent bits of the input color designation data, a display having a number of bits equal to the number of constituent bits of the index value. It is characterized in that it is configured to execute processing for generating color setting data.
[0018]
Further, in one embodiment of the graphics processing device of the present invention, the first graphics processing unit inputs color designation data of 8 bits for each of RGB and displays 8 bits equal to the number of constituent bits of the index value. It is characterized in that it is configured to execute processing for generating color setting data.
[0019]
Further, in one embodiment of the graphics processing device of the present invention, the conversion processing unit inputs an index value of the color look-up table (CLUT), and performs an arithmetic process on the input value as the first graphics processing unit input data. It is characterized in that it is configured to execute conversion processing to color designation data.
[0020]
Further, in one embodiment of the graphics processing device of the present invention, the conversion processing unit inputs 8-bit data as an index value, and obtains the following expression:
R = (X & 0xe0),
G = (X & 0x1c) << 3
B = (X & 0x03) << 6
The first graphics processing unit inputs the 8-bit RGB color designation data generated by the conversion processing unit based on , A process of generating display color setting data including 8 bits of R upper 3 bits, G upper 3 bits, and B upper 2 bits in input data as an input index value for the second graphics processing unit. It is characterized by the following.
[0021]
Further, a second aspect of the present invention provides
A graphics processing method for performing a process of setting a pixel display color of a display,
A data conversion step of inputting an index value set in a color lookup table (CLUT) and converting the index value into color designation data as input data to a first graphics processing unit for executing a direct color mode process;
A first graphics processing step of inputting the color specification data generated by the conversion processing and outputting display color setting data by a direct color mode processing based on the color specification data;
The output display color setting data in the first graphics processing step is input as an index value of a color lookup table (CLUT), and the color lookup table (CLUT) setting data corresponding to the index value is output by the index color mode processing. A second graphics processing step,
Setting the color look-up table (CLUT) setting data output in the second graphics processing step as a pixel display color of a display;
The data conversion processing step includes:
The conversion processing is performed such that display color setting data generated in the first graphics processing step based on the color designation data as a result of the conversion processing is equal to an input index value in the data conversion processing unit. Graphics processing method.
[0022]
Further, in one embodiment of the graphics processing method of the present invention, the first graphics processing step comprises a display comprising a number of bits equal to the number of bits of the index value based on the bits of the input color designation data. The method includes a step of executing a process of generating color setting data.
[0023]
Further, in one embodiment of the graphics processing method according to the present invention, the first graphics processing step comprises inputting 8-bit color designation data for each of RGB and displaying 8 bits equal to the number of constituent bits of the index value. The method includes a step of executing a process of generating color setting data.
[0024]
Further, in one embodiment of the graphics processing method of the present invention, in the data conversion processing step, an index value of the color look-up table (CLUT) is input, and the data is input as the first graphics processing unit input data by arithmetic processing. The conversion processing to the color designation data is executed.
[0025]
Further, in one embodiment of the graphics processing method of the present invention, in the data conversion processing step, 8-bit data as an index value is input, and the following formula:
R = (X & 0xe0),
G = (X & 0x1c) << 3
B = (X & 0x03) << 6
The first graphics processing step inputs the RGB 8-bit color specification data generated in the data conversion processing step based on It is characterized by executing processing for generating display color setting data composed of 8 bits of R upper 3 bits, G upper 3 bits, and B upper 2 bits in data.
[0026]
Further, a third aspect of the present invention provides
A computer program for performing a graphics process of performing a process of setting a pixel display color of a display,
A data conversion step of inputting an index value set in a color lookup table (CLUT) and converting the index value into color designation data as input data to a first graphics processing unit for executing a direct color mode process;
A first graphics processing step of inputting the color specification data generated by the conversion processing and outputting display color setting data by a direct color mode processing based on the color specification data;
The output display color setting data in the first graphics processing step is input as an index value of a color lookup table (CLUT), and the color lookup table (CLUT) setting data corresponding to the index value is output by the index color mode processing. A second graphics processing step,
Setting the color look-up table (CLUT) setting data output in the second graphics processing step as a pixel display color of a display;
The data conversion step includes:
Set as a step of executing the conversion processing so that display color setting data generated in the first graphics processing step based on the color designation data of the conversion processing result is equal to an input index value in the data conversion processing unit. A computer program characterized by the following.
[0027]
[Action]
According to the configuration of the present invention, even when a graphics environment using the direct color mode is set for a device having a hardware device of the index color mode for specifying a color by the index, the user can apply the index color mode. Color setting according to the intention of
[0028]
Further, according to the present invention, an index value of a color lookup table (CLUT) input by an operator is converted into color designation data as input data to a first graphics processing unit for executing a direct color mode process. Executing direct color mode processing using the conversion result as input color specification data to output display color specification data, and executing index color mode processing using the output result as an input index value to correspond to the original input index value Since the display color is set, the color setting process based on the CLUT setting data corresponding to the index value input by the operator can be executed correctly.
[0029]
Further, according to the present invention, since the conversion to the input color designation data to the direct color mode processing execution unit is performed by the arithmetic processing on the input bit data as the index value, the bit length of the index value, Even when the bit length of the color designation data as input data to the first graphics processing unit for executing the direct color mode processing is set to various different values, it is possible to easily cope with it by changing the operation processing mode. It becomes possible.
[0030]
The computer program of the present invention is provided, for example, in a computer-readable format for a general-purpose computer system capable of executing various program codes, in a storage medium or communication medium such as a CD, FD, or MO. And a computer program that can be provided by a communication medium such as a network. By providing such a program in a computer-readable format, processing according to the program is realized on a computer system.
[0031]
Further objects, features, and advantages of the present invention will become apparent from a more detailed description based on embodiments of the present invention described below and the accompanying drawings. In this specification, the term “system” refers to a logical set of a plurality of devices, and is not limited to a device having each configuration in the same housing.
[0032]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a graphics processing apparatus and method and a computer program according to the present invention will be described in detail with reference to the drawings.
[0033]
First, an outline of a color setting processing method in a direct color mode and a color setting method in an index color mode using a color look-up table (CLUT) will be described with reference to FIGS.
[0034]
FIG. 1 shows a color according to a direct color mode applied in an obstruction window toolkit (AWT: Abstraction Window Toolkit), which is a class for a graphical user interface provided as, for example, a Java-API (Application Programming Interface). It is a figure explaining the outline of a setting process. Here, an example of a color setting by an 8 bpp (bit per pixel) method in which a color is set by associating 8-bit data with one pixel of a display is shown.
[0035]
The user can combine various colors by combining the three primary colors of light, red (R), green (G), and blue (B). The user can set a luminance level of 0 to 255 (8 bits) for each of RGB, but when setting 8 bits of data for each of RGB, data becomes 24 bits per pixel (pixel), and the data amount Is large, a conversion process is performed to reduce the color designation data to 8-bit data for each pixel.
[0036]
This conversion process is executed by, for example, “intent” provided as a Java execution environment. For example, the upper 3 bits of the initially set red (R) 8-bit data, the upper 3 bits of the initially set green (G) 8-bit data, and the upper 2 bits of the initially set blue (B) 8-bit data are extracted. And concatenate to set 8-bit data. The color set according to the 8-bit data is output to each pixel 102 forming the display 101.
[0037]
On the other hand, FIG. 2 is a diagram schematically illustrating a color setting method in an index color mode using a color lookup table (CLUT).
[0038]
The color lookup table (CLUT) is a table that stores various color setting data in association with an index. FIG. 2 shows an example in which a color lookup table (CLUT) in which YUVα values constituting YUVα colorimetric data are set is applied. For example, 0 to 255 (8 bits) are set as index values in the color lookup table (CLUT), and a total of 256 types of color data corresponding to each index value are stored.
[0039]
The user specifies an index value of the color lookup table (CLUT): any one of 0 to 255 (8 bits), obtains each value of YUVα corresponding to the specified index, and is determined by each obtained value. Is output to each pixel 152 constituting the display 151.
[0040]
Next, a color setting processing sequence according to the present invention will be described with reference to FIG. The present invention also applies the index color mode to a device having a hardware device of the index color mode format for performing color designation by the index even if the graphics environment of the direct color mode is set, and according to the user's intention. Color setting is possible.
[0041]
In the sequence diagram shown in FIG. 3, a data input / output unit operated by an operator who inputs data for color setting from the left, a conversion processing unit, and a first graphics processing unit for executing processing in a direct color mode A graphics processing unit A, a graphics processing unit B as a second graphics processing unit that executes processing in an index color mode to which a color lookup table (CLUT) is applied, and outputs a display screen to be subjected to drawing processing. 4 shows each process of a display control unit that outputs data by setting a display to be used.
[0042]
A graphics processing unit A as a first graphics processing unit that executes processing in the direct color mode is, for example, an obstruction window toolkit (AWT: Abstraction Window Toolkit) which is a class for a graphical user interface in Java. , And a graphics processing unit that executes graphics processing by “intent” provided as a Java execution environment.
[0043]
An operator specifies a color based on an index of a color lookup table (CLUT) via a data input / output unit. The operator recognizes the contents of the color look-up table (CLUT) and recognizes an index set in the color look-up table (CLUT), for example, a color set based on the designation of 0 to 255 (8-bit index). It is assumed that
[0044]
The index designation data (8-bit index) input by the operator from the data input / output unit is first input to the conversion processing unit. The conversion processing unit performs a conversion process on 8-bit data input from the operator.
[0045]
This conversion processing is RGB 24-bit data conforming to color designation input data for a graphics processing unit A as a first graphics processing unit that executes processing in a direct color mode, that is, R: 8 bits, G: 8 bits , B: are executed as a process of generating 8-bit data.
[0046]
The conversion processing executed by the conversion processing unit is performed according to, for example, the following equation. X is input 8-bit data from the operator.
[0047]
(Equation 1)
R = (X & 0xe0)
G = (X & 0x1c) << 3
B = (X & 0x03) << 6
.. (Equation 1)
[0048]
In the above equation (Equation 1), [0x. . ] Means a hexadecimal number. [&] Indicates AND processing in bit data units. [<<] indicates left logical shift processing in bit data units. A calculation example when the operator specifies, for example, X = 170 = [10101010] as an index value will be described.
[0049]
In the above equation, since 0xe0 = [11100000], 0x1c = [00011100], and 0x03 = [00000011], R = [10101010] & [11100000], G = [10101010] & [00011100], B = [10101010] & [00000011], and the value of R is a value obtained by extracting only the upper 3 bits from the operator input index value, that is, R = [10100000]. G is a value obtained by extracting only the fourth to sixth bits from the operator input index value and logically shifting it to the left by 3 bits, that is, G = [01000000], and B is extracting only the lower two bits from the operator input index value and leftward. , Ie, B = [10000010].
[0050]
The converted value of RGB 8 bit data, a total of 24 bit data, that is, in the above-described specific example,
R = [10100000]
G = [01000000]
B = [10000000]
Are returned to the operator.
[0051]
The operator inputs the response data from the conversion processing unit to the graphics processing unit A that executes the color setting processing in the direct color mode provided on the Java graphical user interface.
[0052]
The graphics processing unit A converts the input 24-bit data into a set number of bits per pixel. Here, it is 8 bpp, and it is assumed that 8 bits are assigned to each pixel as color data. This conversion processing is executed by the Java execution environment “intent” which is a known technique described with reference to FIG.
[0053]
The conversion in the graphics processing unit A is executed as a process of combining the upper 3 bits of R, the upper 3 bits of G, and the upper 2 bits of B from each input 8-bit data of RGB to set 8-bit data. For example, in the above example, that is, each of the 8 bits of RGB generated by the conversion processing unit based on the input value of the operator is:
R = [10100000]
G = [01000000]
B = [10000000]
, The 8-bit data generated by the conversion in the graphics processing unit A is [10101010].
[0054]
Next, the 8-bit value [10101010] generated based on the input 24-bit data in the graphics processing unit A is converted into a second graphic that executes processing in an index color mode to which a color lookup table (CLUT) is applied. It is input to a graphics processing unit B as a graphics processing unit.
[0055]
The graphics processing unit B recognizes the input value as an index value in the color lookup table (CLUT) stored in the storage unit, executes an index search of the color lookup table (CLUT) based on the input value, and The color setting data, for example, each value of YUVα stored corresponding to the index to be obtained is obtained.
[0056]
The graphics processing unit B outputs the obtained value to the display control unit as color setting data, and the display control unit outputs a color based on the setting data to the display.
[0057]
In the processing sequence diagram of FIG. 3, the conversion processing unit returns the 24-bit RGB data generated based on the 8-bit CLUT index data input by the operator to the operator once, and the operator converts the 24-bit RGB data into a graphic. An example of processing for re-input to the data processing unit A is shown, but this re-input processing is omitted, and the conversion processing unit converts 24-bit RGB data generated based on 8-bit index data input by the operator into The sequence may be directly input to the graphics processing unit A. According to this processing, the operator can input only the first 8-bit CLUT index data.
[0058]
In the above-described example, the CLUT index value is set to 8 bits, and the input value to the graphics processing unit that executes the direct color mode is set to 8 bits for each of RGB, that is, data of a total of 24 bits. However, the number of bits of each data is not limited to the above setting example.
[0059]
That is, the conversion processing unit in the graphics processing device of the present invention converts the input bit data as the index value into the input color designation data to the direct color mode processing execution unit (graphics processing unit A) by the arithmetic processing. Therefore, the bit length of the index value and the bit length of the color designation data as input data to the graphics processing unit A for executing the direct color mode processing are other bit number configurations. This can also be handled by changing the operation processing mode of the conversion processing unit.
[0060]
Next, referring to FIG. 4, an operator for inputting data for color setting, a conversion processing unit, a graphics processing unit A as a first graphics processing unit for executing processing in the direct color mode, A graphics processing unit B as a second graphics processing unit that executes processing in an index color mode to which a look-up table (CLUT) is applied, and a display that outputs data to a display that outputs a display screen to be subjected to drawing processing Each process executed by the control unit will be described.
[0061]
First, in step (a), the operator inputs an index value (8 bits) of the color lookup table (CLUT) recognizing the configuration as an input value to the conversion processing unit. In step (b), the conversion processing unit generates 24-bit data of the input value (8 bits) for each of 8 bits of RGB, and responds to the operator. This 24-bit data generation processing is executed according to the above (Equation 1).
[0062]
In step (c), the operator inputs a total of 24 bits of data (8 bits for each of RGB) to a graphics processing unit A as a first graphics processing unit for executing processing in the direct color mode.
[0063]
In step (d), the graphics processing unit A converts the input 24-bit data into 8-bit data. Specifically, the upper 3 bits of R, the upper 3 bits of G, and the upper 2 bits of B are extracted from each of the input RGB 8-bit data to generate 8-bit data.
[0064]
In step (e), the 8-bit data is input to a graphics processing unit B as a second graphics processing unit that executes a process in an index color mode to which a color lookup table (CLUT) is applied.
[0065]
In step (f), the graphics processing unit B recognizes the input value as an index value in the color lookup table (CLUT) stored in the storage unit, and performs an index search of the color lookup table (CLUT) based on the input value. To obtain the color setting data stored in correspondence with the matching index, for example, each value of YUVα, and output the obtained value to the display control unit as the color setting data.
[0066]
In step (g), the display control unit outputs a color based on the CLUT setting data to the display.
[0067]
By the above processing, even if a device having a hardware device of the index color mode format for performing color designation by the index is set to the graphics environment of the direct color mode, the index color mode is applied to the user's intention. According to this, the color setting can be performed.
[0068]
In the above processing example, the color lookup table (CLUT) included in the graphics processing unit that executes the index color mode method is set as the YUVα setting data. However, the color lookup table (CLUT) is used as the YUVα. Not only the setting data format but also any other data setting format may be used as long as the format stores the color setting data corresponding to the index.
[0069]
In the above-described embodiment, the configuration example in which each of the RGB color data is input in the graphics processing unit that executes the direct color mode method has been described. However, the graphics processing unit that executes the direct color mode method also employs a configuration other than RGB. A configuration may be adopted in which color setting data is input and identified. Also, an example has been shown in which, when converting the 24-bit RGB data to the 8-bit data in the graphics processing unit that executes the direct color mode, data extraction of R3 bits, G3 bits, and B2 bits is performed. Is not limited to R3 bits, G3 bits, and B2 bits, and may be other extraction processing modes. The conversion processing unit performs a conversion process according to the mode.
[0070]
Next, the configuration of a graphics processing device that executes the above processing will be described with reference to the block diagram of FIG. FIG. 5 shows, as blocks, main functions required for the graphics processing apparatus according to the present invention which executes the above-described processing. A specific example of the hardware configuration will be described later.
[0071]
The data input / output unit 301 is a data input / output processing unit that executes data input by the operator and data output to the operator, and inputs CLUT index data in the sequence diagram shown in FIG. Is a processing unit that presents 8-bit RGB data as a conversion result based on the RGB data and inputs RGB 8-bit data to the graphics processing unit A303.
[0072]
The conversion processing unit 302 performs a conversion process based on CLUT index data input by the operator, and generates RGB data of 8 bits each, that is, a total of 24 bits data. The graphics processing unit A303 converts 24-bit RGB data input via the data input / output unit 301 into 8-bit data, and extracts, for example, the upper 3 bits of R, the upper 3 bits of G, and the upper 2 bits of B. To generate 8-bit data.
[0073]
The graphics processing unit B304 has a storage unit 307 storing a color lookup table (CLUT), recognizes 8-bit data input from the graphics processing unit A303 as a CLUT index value, and based on the input value. An index search of the color look-up table (CLUT) stored in the storage unit 307 is executed to obtain the color setting data, for example, each value of YUVα stored corresponding to the matching index, and the obtained value is used as the color data. Output to the display control unit 305 as color setting data.
[0074]
The display control unit 305 outputs a color based on the CLUT setting data input from the graphics processing unit B304 to a display unit 306 including a display such as a CRT or an LCD.
[0075]
Next, with reference to FIG. 6, an image display example using the processing of the graphics processing device of the present invention will be described. As can be understood from the above description, the graphics processing apparatus of the present invention can be used in a case where a graphics environment in the direct color mode is set in a device having an index color mode type hardware device for performing color designation by an index. Also, the configuration is such that the color setting according to the user's intention can be performed by applying the index color mode.
[0076]
Therefore, for example, the operator creates plane data including image data that has been color-set in the direct color mode presented by an application program configured based on the Java language and the index color mode to which the CLUT is applied by the above-described processing. It is possible to generate display data having a screen configuration in which the combined planes are combined and present the display data on a display.
[0077]
In FIG. 6, (a) the text plane is a plane created by the operator according to the index color mode to which the CLUT is applied, and (b) the picture plane is presented by an application program configured based on, for example, the Java language. This is a plane for which color settings have been made in the direct color mode. By superimposing these two planes (a) and (b), a composite plane (c) is generated and can be displayed on the display.
[0078]
As described above, for example, a Java virtual machine (Java VM) that applies a color setting processing method in a direct color mode applied in an obstruction window toolkit (AWT: Abstraction Window Toolkit) that is a class for a Java graphical user interface. And an apparatus having hardware capable of executing an index color mode to which a CLUT is applied, further comprising a CLUT for a plane for which a color is set by a direct color mode according to an application based on the Java language. Is generated, a plane for which color setting is performed is generated by the index color mode, and a screen combining both planes can be displayed.
[0079]
Next, an example of a hardware configuration of the graphics processing device of the present invention will be described with reference to FIG. Each component in the graphics processing device 700 will be described with reference to FIG. A CPU (Central Processing Unit) 701, which is a main controller of the graphics processing device 700, executes various applications under the control of an operating system (OS). The CPU 701 executes, for example, the above-described program based on the Java language, specifically, executes the processing of an obstruction window toolkit (AWT: Abstraction Window Toolkit), other image display programs, and other command processing. I do. As shown, the CPU 701 is interconnected with other components by a bus 707.
[0080]
The memory 702 is a storage device used to store a program code executed by the CPU 701 and temporarily store work data being executed.
The memory 702 shown in the figure includes both a nonvolatile memory such as a ROM and a volatile memory such as a DRAM.
[0081]
The index color mode graphics processing chip 750 has a memory 751 in which a color look-up table (CLUT) is stored, and is a dedicated chip for executing a color scheme based on the index color mode based on the CLUT. A dedicated processing circuit is incorporated in the chip.
[0082]
The display controller 703 as a display control unit is a dedicated controller for actually processing a drawing command issued by the CPU 701. The drawing data processed by the display controller 703 is temporarily written to, for example, a frame buffer (not shown) and then output to the screen by the display 708. For example, an image reproduced from the HDD (711) and an image processed by the CPU 701 are displayed on the screen of the display 708, and the user can see the presentation screen.
[0083]
The input device interface 704 is a device for connecting user input devices such as a keyboard 709 and a mouse 710 to the graphics processing device 700.
The user can input a command for processing or displaying an image via the keyboard 709 and the mouse 710.
[0084]
The network interface 705 can connect the graphics processing device 700 to a local network such as a LAN (Local Area Network) or a wide area network such as the Internet according to a predetermined communication protocol such as Ethernet.
[0085]
On a network, a plurality of host terminals and servers (not shown) are connected in a transparent state, and a distributed computing environment is constructed.
On the network, distribution services such as software programs and data contents can be provided. For example, image data can be downloaded to the HDD (711) via a network from another server storing moving images, still images, and the like.
[0086]
The external device interface 706 is a device for connecting an external device such as a digital camera or a hard disk drive (HDD) 711 or a media drive 712 to the graphics processing device 700.
[0087]
The HDD 711 is an external storage device in which a magnetic disk as a storage medium is fixedly mounted, is excellent in storage capacity, data transfer speed, and the like, and is also capable of random access. For example, a program can be installed on the HDD 711 in a state where the software program can be executed. In the HDD 711, a program code of an operating system to be executed by the CPU 701, an application program, a device driver, and the like are stored in a nonvolatile manner.
[0088]
The media drive 712 is a device for loading a portable medium 760 such as a CD (Compact Disc), an MO (Magneto-Optical Disc), a DVD (Digital Versatile Disc), and accessing a data recording surface thereof.
[0089]
The portable medium 760 is mainly used for backing up software programs, data files, and the like as computer-readable data, and for transferring them between systems (that is, including sales, distribution, and distribution). . An application program for performing image processing can be physically distributed / distributed among a plurality of devices using these portable media.
[0090]
The apparatus as shown in FIG. 7 can be realized as a compatible machine or a successor of a personal computer "PC / AT (Personal Computer / Advanced Technology)" of IBM Corporation in the United States. Of course, a computer having another architecture can be applied.
[0091]
The present invention has been described in detail with reference to the specific embodiments. However, it is obvious that those skilled in the art can modify or substitute the embodiment without departing from the spirit of the present invention. That is, the present invention has been disclosed by way of example, and should not be construed as limiting. In order to determine the gist of the present invention, the claims described at the beginning should be considered.
[0092]
The series of processes described in the specification can be executed by hardware, software, or a combined configuration of both. When executing the processing by software, the program recording the processing sequence is installed in a memory in a computer embedded in dedicated hardware and executed, or the program is stored in a general-purpose computer capable of executing various processing. It can be installed and run.
[0093]
For example, the program can be recorded in a hard disk or a ROM (Read Only Memory) as a recording medium in advance. Alternatively, the program is temporarily or permanently stored on a removable recording medium such as a flexible disk, a CD-ROM (Compact Disc Only Memory), an MO (Magneto optical) disk, a DVD (Digital Versatile Disc), a magnetic disk, or a semiconductor memory. It can be stored (recorded). Such a removable recording medium can be provided as so-called package software.
[0094]
The program is installed in the computer from the removable recording medium as described above, and is wirelessly transferred from the download site to the computer, or is transferred to the computer by wire via a network such as a LAN (Local Area Network) or the Internet. The computer can receive the program transferred in this way and install it on a recording medium such as a built-in hard disk.
[0095]
The various processes described in the specification may be executed not only in chronological order according to the description but also in parallel or individually according to the processing capability of the device that executes the processes or as necessary. Further, in this specification, a system is a logical set configuration of a plurality of devices, and is not limited to a device having each configuration in the same housing.
[0096]
【The invention's effect】
As described above, according to the configuration of the present invention, even when a graphics environment in the direct color mode is set in a device having an index color mode type hardware device for performing color designation by an index, the index By applying the color mode, color setting according to the user's intention can be performed.
[0097]
According to the present invention, the index value of the color look-up table (CLUT) input by the operator is converted into color designation data as input data to the first graphics processing unit that executes the direct color mode processing, and is converted. Executes direct color mode processing using the result as input color specification data, outputs display color specification data, executes index color mode processing using the output result as input index value, and displays the display color corresponding to the original input index value Is set, it is possible to correctly execute the color setting process based on the CLUT setting data corresponding to the index value input by the operator.
[0098]
According to the present invention, since the conversion to the input color designation data to the direct color mode processing execution unit is performed by the arithmetic processing on the input bit data as the index value, the bit length of the index value, the direct color It is possible to easily cope with the case where the bit length of the color designation data as input data to the first graphics processing unit for executing the mode processing is variously set by changing the arithmetic processing mode. Become.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a processing example of a direct color mode.
FIG. 2 is a diagram illustrating a processing example of an index color mode to which a color lookup table (CLUT) is applied.
FIG. 3 is a diagram showing a graphics processing sequence of the present invention.
FIG. 4 is a diagram illustrating a graphics processing sequence according to the present invention.
FIG. 5 is a block diagram illustrating a functional configuration of a graphics processing device according to the present invention.
FIG. 6 is a diagram illustrating an example of use of graphics processing of the present invention.
FIG. 7 is a block diagram illustrating a hardware configuration of a graphics processing device according to the present invention.
[Explanation of symbols]
101 Display
102 pixels
151 Display
152 pixels
211 Color Lookup Table (CLUT)
221 display
222 pixels
301 Data input / output unit
302 Conversion unit
303 Graphics Processing Unit A
304 Graphics processing unit B
305 Display control unit
306 Display
307 storage unit
700 Graphics Processing Unit
701 CPU
702 memory
703 display controller
704 Input device interface
705 network interface
706 External device interface
707 bus
708 display
709 keyboard
710 mouse
711 HDD
712 Media Drive
750 index color mode graphics processing chip
751 Storage unit
760 Portable Media

Claims (11)

ディスプレイの画素表示色の設定処理を実行するグラフィックス処理装置であり、
色指定データを入力し、該色指定データに基づく表示色設定データを出力するダイレクトカラーモードに従った処理を実行する第1グラフィックス処理部と、カラールックアップテーブル(CLUT)に設定されたインデックス値を入力し、該インデックス値に対応するカラールックアップテーブル(CLUT)設定データを出力するインデックスカラーモードに従った処理を実行する第2グラフィックス処理部と、
前記カラールックアップテーブル(CLUT)対応のインデックス値を入力し、前記第1グラフィックス処理部入力データとしての色指定データへの変換処理を実行する変換処理部とを有し、
前記変換処理部は、変換処理結果の色指定データに基づいて前記第1グラフィックス処理部が生成する表示色設定データと、前記変換処理部に対する入力インデックス値とが等しくなるように前記変換処理を実行し、前記第2グラフィックス処理部は、前記第1グラフィックス処理部において生成する表示色設定データを入力インデックス値として、前記カラールックアップテーブル(CLUT)から設定データを出力する構成を有することを特徴とするグラフィックス処理装置。
A graphics processing device that performs a process of setting a pixel display color of a display,
A first graphics processing unit for executing processing according to a direct color mode for inputting color designation data and outputting display color setting data based on the color designation data, and an index set in a color lookup table (CLUT) A second graphics processing unit for executing a process according to an index color mode for inputting a value and outputting a color lookup table (CLUT) setting data corresponding to the index value;
A conversion processing unit that inputs an index value corresponding to the color look-up table (CLUT) and executes a conversion process into color designation data as the first graphics processing unit input data;
The conversion processing unit performs the conversion processing so that display color setting data generated by the first graphics processing unit based on the color designation data of the conversion processing result is equal to an input index value to the conversion processing unit. Executing the second graphics processing section, and using the display color setting data generated in the first graphics processing section as an input index value, outputting the setting data from the color lookup table (CLUT). Graphics processing device characterized by the above-mentioned.
前記第1グラフィックス処理部は、
入力する色指定データの構成ビットに基づいて、前記インデックス値の構成ビット数に等しいビット数からなる表示色設定データを生成する処理を実行する構成であることを特徴とする請求項1に記載のグラフィックス処理装置。
The first graphics processing unit includes:
2. The configuration according to claim 1, wherein a process of generating display color setting data having a number of bits equal to the number of bits constituting the index value is performed based on the bits constituting the input color designation data. Graphics processing unit.
前記第1グラフィックス処理部は、
RGB各8ビットの色指定データを入力し、前記インデックス値の構成ビット数に等しい8ビットからなる表示色設定データを生成する処理を実行する構成であることを特徴とする請求項1に記載のグラフィックス処理装置。
The first graphics processing unit includes:
2. The apparatus according to claim 1, wherein a process of inputting 8-bit color designation data for each of RGB and generating display color setting data composed of 8 bits equal to the number of constituent bits of the index value is executed. Graphics processing unit.
前記変換処理部は、
前記カラールックアップテーブル(CLUT)のインデックス値を入力し、演算処理により前記第1グラフィックス処理部入力データとしての色指定データへの変換処理を実行する構成であることを特徴とする請求項1に記載のグラフィックス処理装置。
The conversion processing unit,
2. The configuration according to claim 1, wherein an index value of said color look-up table (CLUT) is input, and conversion processing to color designation data as said first graphics processing unit input data is executed by arithmetic processing. A graphics processing device according to claim 1.
前記変換処理部は、
インデックス値としての8ビットデータを入力し、下記式、
R=(X&0xe0),
G=(X&0x1c)<<3,
B=(X&0x03)<<6,
に基づいて、RGB各8ビットの色指定データを生成する処理を実行する構成であり、
前記第1グラフィックス処理部は、
前記変換処理部の生成するRGB各8ビットの色指定データを入力し、入力データ中のR上位3ビット、G上位3ビット、B上位2ビットの8ビットからなる表示色設定データを前記第2グラフィックス処理部に対する入力インデックス値として生成する処理を実行する構成であることを特徴とする請求項1に記載のグラフィックス処理装置。
The conversion processing unit,
Input 8-bit data as an index value, and
R = (X & 0xe0),
G = (X & 0x1c) << 3
B = (X & 0x03) << 6
Is a configuration for executing a process of generating 8-bit color designation data for each of RGB based on
The first graphics processing unit includes:
The color specification data of 8 bits for each of RGB generated by the conversion processing unit is input, and the display color setting data composed of 8 bits of upper 3 bits of R, upper 3 bits of G, and upper 2 bits of B in the input data is converted into the second color. 2. The graphics processing device according to claim 1, wherein the graphics processing device is configured to execute a process of generating an input index value for the graphics processing unit.
ディスプレイの画素表示色の設定処理を実行するグラフィックス処理方法であり、
カラールックアップテーブル(CLUT)に設定されるインデックス値を入力し、ダイレクトカラーモード処理を実行する第1グラフィックス処理部への入力用データとしての色指定データへ変換するデータ変換ステップと、
前記変換処理により生成された色指定データを入力し、該色指定データに基づくダイレクトカラーモード処理により、表示色設定データを出力する第1グラフィックス処理ステップと、
前記第1グラフィックス処理ステップにおける出力表示色設定データをカラールックアップテーブル(CLUT)のインデックス値として入力し、インデックスカラーモード処理により、インデックス値に対応するカラールックアップテーブル(CLUT)設定データを出力する第2グラフィックス処理ステップと、
前記第2グラフィックス処理ステップにおいて出力するカラールックアップテーブル(CLUT)設定データをディスプレイの画素表示色として設定するステップとを有し、
前記データ変換処理ステップは、
変換処理結果の色指定データに基づいて前記第1グラフィックス処理ステップにおいて生成する表示色設定データと、前記データ変換処理部における入力インデックス値とが等しくなるように前記変換処理を実行することを特徴とするグラフィックス処理方法。
A graphics processing method for performing a process of setting a pixel display color of a display,
A data conversion step of inputting an index value set in a color lookup table (CLUT) and converting the index value into color designation data as input data to a first graphics processing unit for executing a direct color mode process;
A first graphics processing step of inputting the color specification data generated by the conversion processing and outputting display color setting data by a direct color mode processing based on the color specification data;
The output display color setting data in the first graphics processing step is input as an index value of a color lookup table (CLUT), and the color lookup table (CLUT) setting data corresponding to the index value is output by the index color mode processing. A second graphics processing step,
Setting the color look-up table (CLUT) setting data output in the second graphics processing step as a pixel display color of a display;
The data conversion processing step includes:
The conversion processing is performed such that display color setting data generated in the first graphics processing step based on the color designation data as a result of the conversion processing is equal to an input index value in the data conversion processing unit. Graphics processing method.
前記第1グラフィックス処理ステップは、
入力する色指定データの構成ビットに基づいて、前記インデックス値の構成ビット数に等しいビット数からなる表示色設定データを生成する処理を実行するステップを含むことを特徴とする請求項6に記載のグラフィックス処理方法。
The first graphics processing step includes:
7. The method according to claim 6, further comprising: executing a process of generating display color setting data having a number of bits equal to the number of constituent bits of the index value based on constituent bits of the input color designation data. Graphics processing method.
前記第1グラフィックス処理ステップは、
RGB各8ビットの色指定データを入力し、前記インデックス値の構成ビット数に等しい8ビットからなる表示色設定データを生成する処理を実行するステッサプを含むことを特徴とする請求項6に記載のグラフィックス処理方法。
The first graphics processing step includes:
7. The step according to claim 6, further comprising a step for inputting 8-bit color designation data for each of RGB and generating a display color setting data consisting of 8 bits equal to the number of constituent bits of the index value. Graphics processing method.
前記データ変換処理ステップは、
前記カラールックアップテーブル(CLUT)のインデックス値を入力し、演算処理により前記第1グラフィックス処理部入力データとしての色指定データへの変換処理を実行することを特徴とする請求項6に記載のグラフィックス処理方法。
The data conversion processing step includes:
7. The method according to claim 6, wherein an index value of the color look-up table (CLUT) is input, and a conversion process to color designation data as the first graphics processing unit input data is executed by an arithmetic process. Graphics processing method.
前記データ変換処理ステップは、
インデックス値としての8ビットデータを入力し、下記式、
R=(X&0xe0),
G=(X&0x1c)<<3,
B=(X&0x03)<<6,
に基づいて、RGB各8ビットの色指定データを生成する処理を実行し、
前記第1グラフィックス処理ステップは、
前記データ変換処理ステップにおいて生成するRGB各8ビットの色指定データを入力し、入力データ中のR上位3ビット、G上位3ビット、B上位2ビットの8ビットからなる表示色設定データを生成する処理を実行することを特徴とする請求項6に記載のグラフィックス処理方法。
The data conversion processing step includes:
Input 8-bit data as an index value, and
R = (X & 0xe0),
G = (X & 0x1c) << 3
B = (X & 0x03) << 6
And performs a process of generating 8-bit color designation data for each of RGB based on
The first graphics processing step includes:
The color designation data of each of 8 bits of RGB generated in the data conversion processing step is input, and display color setting data including 8 bits of upper 3 bits of R, upper 3 bits of G, and upper 2 bits of B in the input data is generated. The graphics processing method according to claim 6, wherein the processing is performed.
ディスプレイの画素表示色の設定処理を実行するグラフィックス処理を実行するコンピュータ・プログラムであって、
カラールックアップテーブル(CLUT)に設定されるインデックス値を入力し、ダイレクトカラーモード処理を実行する第1グラフィックス処理部への入力用データとしての色指定データへ変換するデータ変換ステップと、
前記変換処理により生成された色指定データを入力し、該色指定データに基づくダイレクトカラーモード処理により、表示色設定データを出力する第1グラフィックス処理ステップと、
前記第1グラフィックス処理ステップにおける出力表示色設定データをカラールックアップテーブル(CLUT)のインデックス値として入力し、インデックスカラーモード処理により、インデックス値に対応するカラールックアップテーブル(CLUT)設定データを出力する第2グラフィックス処理ステップと、
前記第2グラフィックス処理ステップにおいて出力するカラールックアップテーブル(CLUT)設定データをディスプレイの画素表示色として設定するステップとを有し、
前記データ変換ステップは、
変換処理結果の色指定データに基づいて前記第1グラフィックス処理ステップにおいて生成する表示色設定データと、前記データ変換処理部における入力インデックス値とが等しくなるように前記変換処理を実行するステップとして設定されていることを特徴とするコンピュータ・プログラム。
A computer program for performing a graphics process of performing a process of setting a pixel display color of a display,
A data conversion step of inputting an index value set in a color lookup table (CLUT) and converting the index value into color designation data as input data to a first graphics processing unit for executing a direct color mode process;
A first graphics processing step of inputting the color specification data generated by the conversion processing and outputting display color setting data by a direct color mode processing based on the color specification data;
The output display color setting data in the first graphics processing step is input as an index value of a color lookup table (CLUT), and the color lookup table (CLUT) setting data corresponding to the index value is output by the index color mode processing. A second graphics processing step,
Setting the color look-up table (CLUT) setting data output in the second graphics processing step as a pixel display color of a display;
The data conversion step includes:
Set as a step of executing the conversion processing so that display color setting data generated in the first graphics processing step based on the color designation data of the conversion processing result is equal to an input index value in the data conversion processing unit. A computer program characterized by being performed.
JP2002259819A 2002-09-05 2002-09-05 Graphics processing apparatus and method, and computer program Expired - Fee Related JP3941636B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002259819A JP3941636B2 (en) 2002-09-05 2002-09-05 Graphics processing apparatus and method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002259819A JP3941636B2 (en) 2002-09-05 2002-09-05 Graphics processing apparatus and method, and computer program

Publications (2)

Publication Number Publication Date
JP2004101604A true JP2004101604A (en) 2004-04-02
JP3941636B2 JP3941636B2 (en) 2007-07-04

Family

ID=32260708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002259819A Expired - Fee Related JP3941636B2 (en) 2002-09-05 2002-09-05 Graphics processing apparatus and method, and computer program

Country Status (1)

Country Link
JP (1) JP3941636B2 (en)

Also Published As

Publication number Publication date
JP3941636B2 (en) 2007-07-04

Similar Documents

Publication Publication Date Title
KR100954007B1 (en) Gui application development support device and method, and computer program
KR100975458B1 (en) Gui application development support device, gui display device, method, and computer readable recording medium
KR100975457B1 (en) Gui application development support device, gui application program generating method, and recording medium
US7545386B2 (en) Unified mobile display emulator
KR100918532B1 (en) Co-processing device and computing device for employing non-alpha channel image data in an alpha-channel-aware environment
WO2010123048A1 (en) Editing device, edition method, and program
JP3941636B2 (en) Graphics processing apparatus and method, and computer program
JP2007052388A (en) Image display system
KR102092156B1 (en) Encoding method for image using display device
US6784893B2 (en) Raster operation unit
US7834888B2 (en) Mechanism for color-space neutral (video) effects scripting engine
JP2009192670A (en) Information processor, image display method, and program
EP3073482A1 (en) Display apparatus and display method thereof
JP5008653B2 (en) Image forming apparatus and printing control method
JP2000163182A (en) Screen display system
JP2001067059A (en) Graphical user interface(gui) device and gui component data producing device
WO2004023296A1 (en) Gui display device, gui application development support device, and method, and computer program
JPH04149594A (en) Complementary color display device
JP2008052398A (en) Image composition apparatus, program and recording medium
JP2004178204A (en) Image processing method
JP2001149638A (en) Video game device, video game recording method, and medium
JPH06324776A (en) Data output processing method and data input processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050803

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061226

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070209

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070326

LAPS Cancellation because of no payment of annual fees