JP2004077839A - Data converting device, display control unit equipped with the data converting device, and display device - Google Patents

Data converting device, display control unit equipped with the data converting device, and display device Download PDF

Info

Publication number
JP2004077839A
JP2004077839A JP2002238538A JP2002238538A JP2004077839A JP 2004077839 A JP2004077839 A JP 2004077839A JP 2002238538 A JP2002238538 A JP 2002238538A JP 2002238538 A JP2002238538 A JP 2002238538A JP 2004077839 A JP2004077839 A JP 2004077839A
Authority
JP
Japan
Prior art keywords
coordinate
bit data
conversion
output
signal
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
Application number
JP2002238538A
Other languages
Japanese (ja)
Inventor
Yasushi Ishii
石井 康史
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2002238538A priority Critical patent/JP2004077839A/en
Publication of JP2004077839A publication Critical patent/JP2004077839A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data converting device whose cost is reduced by making its circuit scale small and which is capable of high-speed processing, a display control unit which performs a process of rotating an image by performing coordinate conversion by the data converting device, and a display device equipped with the display control unit. <P>SOLUTION: Inverted coordinate signals iY<SB>0</SB>to iY<SB>n</SB>outputted from a signal inverting circuit 21 and before-conversion coordinate signals X<SB>0</SB>to X<SB>n</SB>are inputted to an X coordinate selector 22. Further, the before-conversion coordinate signals X<SB>0</SB>to X<SB>n</SB>and before-conversion coordinate signals Y<SB>0</SB>to Y<SB>n</SB>are inputted to a Y coordinate selector 23. In a 90° mode in which image data are rotated clockwise by 90°, the X coordinate selector 22 outputs the inverted coordinate signals iY<SB>0</SB>to iY<SB>n</SB>and the Y coordinate selector 23 outputs the before-conversion coordinate signals X<SB>0</SB>to X<SB>n</SB>. In a normal mode in which the image data are not rotated, the X coordinate selector 22 outputs the before-conversion coordinate signals X<SB>0</SB>to X<SB>n</SB>and the Y coordinate selector 23 outputs the before-conversion coordinate signals Y<SB>0</SB>to Y<SB>n</SB>. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、入力されたビットデータを変換して新たなビットデータを出力するデータ変換装置、該データ変換装置を備え、データ変換装置によって座標変換を行う表示制御装置および表示装置に関する。
【0002】
【従来の技術】
携帯電話機やPDA(Personal Digital Assistance)などの携帯端末装置のディスプレイ(表示装置)に表示された画像を、端末装置を操作しているユーザ以外の人が見る場合、たとえば、ユーザの向かい側にいる人が見る場合がある。このような場合、ユーザが端末装置を操作して画像をディスプレイに表示させただけでは、ユーザの向かい側にいる人は、画像を反対方向から見ることになるので非常に見にくい。ディスプレイを端末装置ごと180°回転させれば、ユーザの向かい側にいる人は、画像データを正しい方向から見ることができる。しかし、複数の画像を切り換えて表示させるような場合、端末装置が180°回転したままでは、ユーザから見て端末装置が逆向きとなり、画像の切換操作が面倒となる。
【0003】
このような問題を解決するために、従来はユーザが端末装置に対してキー操作などの所定の操作を行うことで、画像を180°もしくはそれ以外の角度で回転させ、ディスプレイおよび端末装置の方向を変えることなく、ユーザ以外の人に見やすい表示を行っている。また、一般にディスプレイの縦横の寸法比は異なっているものが多いので、表示させる画像の縦横比がディスプレイの縦横比に合うように、画像を回転させて表示させる場合もある。
【0004】
ディスプレイに表示させる画像の回転処理について説明する。画像をディスプレイに表示させる場合、メモリなどの記録媒体に記憶されている画像データを、一旦フレームメモリに記憶し、フレームメモリから読み出した画像データをディスプレイに表示させる。フレームメモリは、ビットマップイメージの画像データをディスプレイに表示するためのメモリとしてパーソナルコンピュータやPDAなどに使用されている。特にディスプレイがカラー液晶や白黒濃淡階調の液晶表示装置である場合、表示装置の1画素に対して複数ビットの情報が必要である。フレームメモリの各アドレスは、表示装置の各画素の座標に1対1で対応していることが多い。表示装置に画像データを表示させるには、画像データを表示させようとする画素位置の座標に対応するフレームメモリのアドレスを計算し、そのアドレスに表示させたい画像データを書き込むことで実現している。
【0005】
表示装置の各画素の座標と、フレームメモリのアドレスとの対応は一定であることから、画像を回転させて表示するには、座標変換などによって予め回転させた画像データをフレームメモリに書き込む必要がある。このような機能を実現するために、90°回転した画像データ、180°回転した画像データあるいは270度回転した画像データを回転させていない元の画像データとともに予め記憶しておくか、あるいは表示させるときに計算することによって回転させることを行っている。
【0006】
複数の回転した画像データを記憶しておくには、大量の記憶容量が必要となるため、通常は表示させるときに回転角度に応じて計算を行い新たな画像データを生成することが多い。
【0007】
画像データの回転を計算で行うには、ソフトウェアによって実現する場合とハードウェアによって実現する場合とがある。携帯端末装置などでは、ソフトウェアによって回転処理の計算を行っているが、表示装置のサイズが大きく、解像度が高くなるにつれて表示させる画像データのデータ量が大きくなり、計算量が増大することでソフトウェアの負荷、すなわちCPU(中央演算処理装置)やマイクロコンピュータなど制御部の負荷が増大するという問題がある。
【0008】
これに対し、ハードウェアによって回転処理の計算を行うことで、負荷を分散して制御部にかかる負荷を低減することができる。
【0009】
図28は、画像データの回転処理機能を有する従来の表示装置240を示すブロック図である。ここで、画像データはビットマップイメージであって、複数の画素値と各画素値を表示すべき座標とからなる。また、各座標は描画開始座標に対する相対的な座標となっているので、描画開始座標が指定されると、全ての座標が決定する。描画部241では、開始座標指定レジスタ248によって指定される描画開始座標に基づいて、座標生成部247が変換前座標を生成して座標変換部242に出力する。また、座標に対応してフレームメモリ244に対して画素値を出力する。座標変換部242は、座標回転部249、表示モード設定レジスタ24A、第1座標補正部24B、第2座標補正部24C、第1および第2座標補正部24B,24Cに回転基準座標を指定する回転基準座標指定レジスタ24Dで構成されている。
【0010】
第1座標補正部24Bには、回転基準座標指定レジスタ24Dに設定されている基準座標である回転中心座標が入力されており、描画部241から入力された変換前座標から回転基準座標指定レジスタ24Dに指定された座標の値を減算し、回転の中心座標を原点に移動させる。表示モード設定レジスタ24Aには、ユーザの指示などによって、90°、180°など予め回転角度が設定されており、座標回転部249は表示モード設定レジスタ24Aの設定に従って座標の回転計算を行う。第2座標補正部24Cは、座標回転部249から入力された座標に回転基準座標指定レジスタ24Dに指定された座標の値を加算し、変換後座標として、座標アドレス変換部243に出力する。座標アドレス変換部243は、座標変換部242から入力された変換後座標を、対応するフレームメモリ244のアドレスに変換する。
【0011】
タイミング制御部245は、描画部241、座標変換部242、座標アドレス変換部243、フレームメモリ244および表示部246に接続され、これらの動作タイミングをコントロールするための制御信号を出力する。特にフレームメモリ244に画素値を書き込む場合、画素値と対応する座標は、前述のように座標変換およびアドレス変換が必要であるため、座標アドレス変換部243から出力されるアドレスと、描画部241から出力される画素値との対応が保持されるようにタイミング制御部245がタイミングを制御している。表示部246は、タイミング制御部245からの制御信号に従い、フレームメモリ244の各アドレスから画素値を読み出し、アドレスに対応する座標に画像を表示する。
【0012】
特開平7−325753号公報記載の表示制御装置は、ハードウェアによって画像の回転処理を行っている。表示制御装置はフレームメモリとしてマルチポートVRAM(Video Random Access Memory)を使用し、CPUから出力されるアドレスをアドレス変換回路で変更することによって、回転させた画像データをマルチポートVRAMに記憶させる。回転させる角度は、90°,180°,270°に対応している。アドレス変換回路は、ローアドレスの変換およびカラムアドレスの変換それぞれについて減算回路を含んで構成されている。
【0013】
【発明が解決しようとする課題】
前述のように、画像の回転処理を行う従来の表示装置および表示制御装置が備える座標変換回路には、減算器および加算器が必要である。減算器および加算器のような演算回路は、演算の対象となる画像データのデータ量の増大に伴って回路規模が非常に大きくなり、コストが増大するとともに、演算時間も増大して処理速度が低下するという問題がある。
【0014】
本発明の目的は、回路規模を縮小することでコストを低減し、高速処理が可能なデータ変換装置、該データ変換装置によって座標変換することで画像の回転処理を行う表示制御装置および該表示制御装置を備えた表示装置を提供することである。
【0015】
【課題を解決するための手段】
本発明は、入力された複数ビットからなる第1ビットデータおよび第2ビットデータを変換して新たな第1ビットデータおよび第2ビットデータを出力するデータ変換装置であって、
第1および第2ビットデータが入力され、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを新たな第1ビットデータとして出力するとともに、入力された第1ビットデータをそのまま新たな第2ビットデータとして出力する第1出力モードと、入力された第1ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第2ビットデータをそのまま新たな第2ビットデータとして出力する第2出力モードとを有する変換手段と、
所定の制御条件に基づいて、前記変換手段が第1出力モードと第2出力モードのいずれのモードで動作するかを制御する制御手段とを備えることを特徴とするデータ変換装置である。
【0016】
また本発明は、前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第2ビットデータが入力され、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させて反転第2ビットデータを出力する反転回路と、
第1ビットデータおよび反転第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは反転第2ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは第1ビットデータを新たな第1ビットデータとして出力する第1選択回路と、
第1および第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは第1ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは第2ビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする。
【0017】
また本発明は、前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1および第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは第2ビットデータを出力し、第2出力モードが設定されたときは第1ビットデータを出力する第1選択回路と、
前記第1選択回路から出力されたビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力されたビットデータの各ビットの論理値をそれぞれ反転させた反転ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは入力されたビットデータをそのまま新たな第1ビットデータとして出力する制御反転回路と、
第1および第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力された第1ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは入力された第2ビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする。
【0018】
本発明に従えば、制御手段によって変換手段が第1出力モードで動作するときは、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータが新たな第1ビットデータとして出力されるとともに、入力された第1ビットデータがそのまま新たな第2ビットデータとして出力される。一方、制御手段によって変換手段が第2出力モードで動作するときは、入力された第1ビットデータがそのまま新たな第1ビットデータとして出力されるとともに、入力された第2ビットデータがそのまま新たな第2ビットデータとして出力される。
【0019】
変換手段の具体的な構成としては、上記の2種類の構成が挙げられる。2つの構成の違いは、第1の構成では反転第2ビットデータを常に作成するのに対し、第2の構成では反転第2ビットデータを出力モードに応じて作成していることである。
【0020】
まず、第1の構成では、第1選択回路には、出力モードに拘わらず、反転回路から出力された反転第2ビットデータと、第1ビットデータとが入力される。また、第2選択回路には、第1および第2ビットデータが入力される。第1出力モードでは、第1選択回路は新たな第1ビットデータとして反転第2ビットデータを出力し、第2選択回路は新たな第2ビットデータとして第1ビットデータを出力する。第2出力モードでは、第1選択回路は新たな第1ビットデータとして第1ビットデータを出力し、第2選択回路は新たな第2ビットデータとして第2ビットデータを出力する。
【0021】
これに対し、第2の構成では、第1および第2選択回路には、ともに第1および第2ビットデータが入力されており、第1選択回路の出力が出力モードに応じて制御反転回路によって反転されて新たな第1ビットデータとして出力され、第2選択回路の出力が新たな第2ビットデータとして出力される。すなわち、第1出力モードでは、第1選択回路は第2ビットデータを出力し、この第2ビットデータが入力された制御反転手段は反転ビットデータ、すなわち反転第2ビットデータを作成し、反転第2ビットデータを新たな第1ビットデータとして出力する。このとき、第2選択回路は、新たな第2ビットデータとして第1ビットデータをそのまま出力する。第2出力モードでは、第1選択回路は第1ビットデータを出力し、この第1ビットデータが入力された制御反転回路は反転ビットデータを作成することなく、第1ビットデータをそのまま新たな第1ビットデータとして出力する。このとき、第2選択回路は、第2ビットデータを新たな2ビットデータとしてそのまま出力する。
【0022】
ここで、第1ビットデータおよび第2ビットデータを、画像データに含まれる各画素値の配置位置を示すX座標およびY座標とする。X座標およびY座標は、複数のビットで構成される。
【0023】
変換手段が第1出力モードで動作した場合、変換後の新たなX座標は、全ビットが反転された反転Y座標となり、変換後の新たなY座標は、変換前のX座標となる。このように座標変換された画像データは、変換前に対して時計回りに90°回転した画像データとなる。
【0024】
また、変換手段が第2出力モードで動作した場合、変換後の新たなX座標は、変換前のX座標となり、変換後の新たなY座標は、変換前のY座標となる。この場合、X座標およびY座標ともに変換前と変換後とが同じであるので、画像データは、変換前と同じ回転しない画像データとなる。
【0025】
したがって、変換手段が第1出力モードとして動作する制御条件を、画像データを時計回りに90°回転させる場合とし、第2出力モードとして動作する制御条件を、画像データを回転させない場合とする。これにより、制御手段に対し、ユーザなどによって制御条件が設定されると、画像データを時計回りに90°回転させる場合と、回転させない場合とを切り換えて表示させることができる。
【0026】
従来、画像データを時計回りに90°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0027】
また本発明は、入力された複数ビットからなる第1ビットデータおよび第2ビットデータを変換して新たな第1ビットデータおよび第2ビットデータを出力するデータ変換装置であって、
第1および第2ビットデータが入力され、入力された第2ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータを新たな第2ビットデータとして出力する第1出力モードと、入力された第1ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第2ビットデータをそのまま新たな第2ビットデータとして出力する第2出力モードとを有する変換手段と、
所定の制御条件に基づいて、前記変換手段が第1出力モードと第2出力モードのいずれのモードで動作するかを制御する制御手段とを備えることを特徴とするデータ変換装置である。
【0028】
また本発明は、前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1ビットデータが入力され、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させて反転第1ビットデータを出力する反転回路と、
第1ビットデータおよび第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは第2ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは第1ビットデータを新たな第1ビットデータとして出力する第1選択回路と、
反転第1ビットデータおよび第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは反転第1ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは第2ビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする。
【0029】
また本発明は、前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1および第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは第2ビットデータを出力し、第2出力モードが設定されたときは第1ビットデータを出力する第1選択回路と、
第1および第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力された第1ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは入力された第2ビットデータを新たな第2ビットデータとして出力する第2選択回路と、
前記第2選択回路から出力されたビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力されたビットデータの各ビットの論理値をそれぞれ反転させた反転ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは入力されたビットデータをそのまま新たな第2ビットデータとして出力する制御反転回路とを備えることを特徴とする。
【0030】
本発明に従えば、制御手段によって変換手段が第1出力モードで動作するときは、入力された第2ビットデータがそのまま新たな第1ビットデータとして出力されるとともに、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータが新たな第2ビットデータとして出力される。一方、制御手段によって変換手段が第2出力モードで動作するときは、入力された第1ビットデータがそのまま新たな第1ビットデータとして出力されるとともに、入力された第2ビットデータがそのまま新たな第2ビットデータとして出力される。
【0031】
変換手段の具体的な構成としては、上記の2種類の構成が挙げられる。2つの構成の違いは、第1の構成では反転第1ビットデータを常に作成するのに対し、第2の構成では反転第1ビットデータを出力モードに応じて作成していることである。
【0032】
まず、第1の構成では、第1選択回路には、第1および第2ビットデータが入力される。また、第2選択回路には、出力モードに拘わらず、反転回路から出力された反転第1ビットデータと、第2ビットデータとが入力される。第1出力モードでは、第1選択回路は新たな第1ビットデータとして第2ビットデータを出力し、第2選択回路は新たな第2ビットデータとして反転第1ビットデータを出力する。第2出力モードでは、第1選択回路は新たな第1ビットデータとして第1ビットデータを出力し、第2選択回路は新たな第2ビットデータとして第2ビットデータを出力する。
【0033】
これに対し、第2の構成では、第1および第2選択回路には、ともに第1および第2ビットデータが入力されており、第1選択回路の出力が新たな第1ビットデータとして出力され、第2選択回路の出力が出力モードに応じて制御反転回路によって反転されて新たな第2ビットデータとして出力される。すなわち、第1出力モードでは、第2選択回路は第1ビットデータを出力し、この第1ビットデータが入力された制御反転手段は反転ビットデータ、すなわち反転第1ビットデータを作成し、反転第1ビットデータを新たな第2ビットデータとして出力する。このとき、第1選択回路は、新たな第1ビットデータとして第2ビットデータをそのまま出力する。第2出力モードでは、第2選択回路は第2ビットデータを出力し、この第2ビットデータが入力された制御反転回路は反転ビットデータを作成することなく、第2ビットデータをそのまま新たな第2ビットデータとして出力する。このとき、第1選択回路は、第1ビットデータを新たな1ビットデータとしてそのまま出力する。
【0034】
ここで、第1ビットデータおよび第2ビットデータを、画像データに含まれる各画素値の配置位置を示すX座標およびY座標とする。X座標およびY座標は、複数のビットで構成される。
【0035】
変換手段が第1出力モードで動作した場合、変換後の新たなX座標は、変換前のY座標となり、変換後の新たなY座標は、各ビットがそれぞれ反転された反転X座標となる。このように座標変換された画像データは、変換前に対して時計回りに270°回転した画像データとなる。
【0036】
また、変換手段が第2出力モードで動作した場合、変換後の新たなX座標は、変換前のX座標となり、変換後の新たなY座標は、変換前のY座標となる。この場合、X座標およびY座標ともに変換前と変換後とが同じであるので、画像データは、変換前と同じ回転しない画像データとなる。
【0037】
したがって、変換手段が第1出力モードとして動作する制御条件を、画像データを時計回りに270°回転させる場合とし、第2出力モードとして動作する制御条件を、画像データを回転させない場合とする。これにより、制御手段に対し、ユーザなどによって制御条件が設定されると、画像データを時計回りに270°回転させる場合と、回転させない場合とを切り換えて表示させることができる。
【0038】
従来、画像データを時計回りに270°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0039】
また本発明は、入力された複数ビットからなる第1ビットデータおよび第2ビットデータを変換して新たな第1ビットデータおよび第2ビットデータを出力するデータ変換装置であって、
第1および第2ビットデータが入力され、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータを新たな第1ビットデータとして出力するとともに、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを新たな第2ビットデータとして出力する第1出力モードと、入力された第1ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第2ビットデータをそのまま新たな第2ビットデータとして出力する第2出力モードとを有する変換手段と、
所定の制御条件に基づいて、前記変換手段が第1出力モードと第2出力モードのいずれのモードで動作するかを制御する制御手段とを備えることを特徴とするデータ変換装置である。
【0040】
また本発明は、前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1ビットデータが入力され、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させて反転第1ビットデータを出力する第1反転回路と、
第2ビットデータが入力され、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させて反転第2ビットデータを出力する第2反転回路と、
第1ビットデータおよび反転第1ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは反転第1ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは第1ビットデータを新たな第1ビットデータとして出力する第1選択回路と、
第2ビットデータおよび反転第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは反転第2ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは第2ビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする。
【0041】
また本発明は、前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは入力された第1ビットデータをそのまま新たな第1ビットデータとして出力する第1制御反転回路と、
第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは入力された第2ビットデータをそのまま新たな第2ビットデータとして出力する第2制御反転回路とを備えることを特徴とする。
【0042】
本発明に従えば、制御手段によって変換手段が第1出力モードで動作するときは、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータが新たな第1ビットデータとして出力されるとともに、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータが新たな第2ビットデータとして出力される。一方、制御手段によって変換手段が第2出力モードで動作するときは、入力された第1ビットデータがそのまま新たな第1ビットデータとして出力されるとともに、入力された第2ビットデータがそのまま新たな第2ビットデータとして出力される。
【0043】
変換手段の具体的な構成としては、上記の2種類の構成が挙げられる。2つの構成の違いは、第1の構成では反転第1ビットデータおよび反転第2ビットデータを常に作成するのに対し、第2の構成では反転第1ビットデータおよび反転第2ビットデータを出力モードに応じて作成し、セレクタを用いないことである。
【0044】
まず、第1の構成では、第1選択回路には、出力モードに拘らず、第1反転回路から出力された反転第1ビットデータと、第1ビットデータとが入力される。また、第2選択回路には、出力モードに拘わらず、第2反転回路から出力された反転第2ビットデータと、第2ビットデータとが入力される。第1出力モードでは、第1選択回路は新たな第1ビットデータとして反転第1ビットデータを出力し、第2選択回路は新たな第2ビットデータとして反転第2ビットデータを出力する。第2出力モードでは、第1選択回路は新たな第1ビットデータとして第1ビットデータを出力し、第2選択回路は新たな第2ビットデータとして第2ビットデータを出力する。
【0045】
これに対し、第2の構成では、第1ビットデータが出力モードに応じて第1制御反転回路によって反転されて新たな第1ビットデータとして出力され、第2ビットデータが出力モードに応じて第2制御反転回路によって反転されて新たな第2ビットデータとして出力される。すなわち、第1出力モードでは、第1ビットデータが入力された第1制御反転手段は反転ビットデータ、すなわち反転第1ビットデータを作成し、反転第1ビットデータを新たな第1ビットデータとして出力し、第2ビットデータが入力された第2制御反転手段は反転ビットデータ、すなわち反転第2ビットデータを作成し、反転第2ビットデータを新たな第2ビットデータとして出力する。第2出力モードでは、第1ビットデータが入力された第1制御反転回路は反転ビットデータを作成することなく、第1ビットデータをそのまま新たな第1ビットデータとして出力し、第2ビットデータが入力された第2制御反転回路は反転ビットデータを作成することなく、第2ビットデータをそのまま新たな第2ビットデータとして出力する。
【0046】
ここで、第1ビットデータおよび第2ビットデータを、画像データに含まれる各画素値の配置位置を示すX座標およびY座標とする。X座標およびY座標は、複数のビットで構成される。
【0047】
変換手段が第1出力モードで動作した場合、変換後の新たなX座標は、各ビットがそれぞれ反転された反転X座標となり、変換後の新たなY座標は、各ビットがそれぞれ反転された反転Y座標となる。このように座標変換された画像データは、変換前に対して時計回りに180°回転した画像データとなる。
【0048】
また、変換手段が第2出力モードで動作した場合、変換後の新たなX座標は、変換前のX座標となり、変換後の新たなY座標は、変換前のY座標となる。この場合、X座標およびY座標ともに変換前と変換後とが同じであるので、画像データは、変換前と同じ回転しない画像データとなる。
【0049】
したがって、変換手段が第1出力モードとして動作する制御条件を、画像データを時計回りに180°回転させる場合とし、第2出力モードとして動作する制御条件を、画像データを回転させない場合とする。これにより、制御手段に対し、ユーザなどによって制御条件が設定されると、画像データを時計回りに180°回転させる場合と、回転させない場合とを切り換えて表示させることができる。
【0050】
従来、画像データを時計回りに180°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0051】
また本発明は、入力された複数ビットからなる第1ビットデータおよび第2ビットデータを変換して新たな第1ビットデータおよび第2ビットデータを出力するデータ変換装置であって、
第1および第2ビットデータが入力される変換手段であって、
入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを新たな第1ビットデータとして出力するとともに、入力された第1ビットデータをそのまま新たな第2ビットデータとして出力する第1出力モードと、
入力された第2ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータを新たな第2ビットデータとして出力する第2出力モードと、
入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータを新たな第1ビットデータとして出力するとともに、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを新たな第2ビットデータとして出力する第3出力モードと、
入力された第1ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第2ビットデータをそのまま新たな第2ビットデータとして出力する第4出力モードとを有する変換手段と、
所定の制御条件に基づいて、前記変換手段が第1出力モード、第2出力モード、第3出力モードおよび第4出力モードのいずれのモードで動作するかを制御する制御手段とを備えることを特徴とするデータ変換装置である。
【0052】
また本発明は、前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1ビットデータが入力され、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させて反転第1ビットデータを出力する第1反転回路と、
第2ビットデータが入力され、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させて反転第2ビットデータを出力する第2反転回路と、
第1ビットデータ、第2ビットデータ、反転第1ビットデータおよび反転第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは反転第2ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは反転第1ビットデータを新たな第1ビットデータとして出力し、第3出力モードが設定されたときは第2ビットデータを新たな第1ビットデータとして出力し、第4出力モードが設定されたときは第1ビットデータを新たな第1ビットデータとして出力する第1選択回路と、
第1ビットデータ、第2ビットデータ、反転第1ビットデータおよび反転第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは第1ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは反転第2ビットデータを新たな第2ビットデータとして出力し、第3出力モードが設定されたときは反転第1ビットデータを新たな第2ビットデータとして出力し、第4出力モードが設定されたときは第2ビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする。
【0053】
また本発明は、前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1および第2ビットデータが入力され、前記モード設定信号によって第1または第2出力モードが設定されたときは第2ビットデータを出力し、第3または第4出力モードが設定されたときは第1ビットデータを出力する第1選択回路と、
第1および第2ビットデータが入力され、前記モード設定信号によって第1または第2出力モードが設定されたときは第1ビットデータを出力し、第3または第4出力モードが設定されたときは第2ビットデータを出力する第2選択回路と、
前記第1選択回路から出力されたビットデータが入力され、前記モード設定信号によって第1または第3出力モードが設定されたときは入力されたビットデータの各ビットの論理値をそれぞれ反転させた反転ビットデータを新たな第1ビットデータとして出力し、第2または第4出力モードが設定されたときは入力されたビットデータをそのまま新たな第1ビットデータとして出力する第1制御反転回路と、
前記第2選択回路から出力されたビットデータが入力され、前記モード設定信号によって第2または第3出力モードが設定されたときは入力されたビットデータの各ビットの論理値をそれぞれ反転させた反転ビットデータを新たな第2ビットデータとして出力し、第1または第4出力モードが設定されたときは入力されたビットデータをそのまま新たな第2ビットデータとして出力する第2制御反転回路とを備えることを特徴とする。
【0054】
また本発明は、前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1ビットデータが入力され、前記モード設定信号によって第2または第3出力モードが設定されたときは入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータ出力し、第1または第4出力モードが設定されたときは入力された第1ビットデータをそのまま出力する第1制御反転回路と、
第2ビットデータが入力され、前記モード設定信号によって第1または第3出力モードが設定されたときは入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを出力し、第2または第4出力モードが設定されたときは入力された第2ビットデータをそのまま出力する第2制御反転回路と、
前記第1および第2制御回路から出力されたビットデータが入力され、前記モード設定信号によって第1または第2出力モードが設定されたときは前記第2制御反転回路から出力されたビットデータを新たな第1ビットデータとして出力し、第3または第4出力モードが設定されたときは前記第1制御反転回路から出力されたビットデータを新たな第1ビットデータとして出力する第1選択回路と、
前記第1および第2制御回路から出力されたビットデータが入力され、前記モード設定信号によって第1または第2出力モードが設定されたときは前記第1制御反転回路から出力されたビットデータを新たな第2ビットデータとして出力し、第3または第4出力モードが設定されたときは前記第2制御反転回路から出力されたビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする。
【0055】
本発明に従えば、制御手段によって変換手段が第1出力モードで動作するときは、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータが新たな第1ビットデータとして出力されるとともに、入力された第1ビットデータがそのまま新たな第2ビットデータとして出力される。制御手段によって変換手段が第2出力モードで動作するときは、入力された第2ビットデータがそのまま新たな第1ビットデータとして出力されるとともに、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータが新たな第2ビットデータとして出力される。制御手段によって変換手段が第3出力モードで動作するときは、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータが新たな第1ビットデータとして出力されるとともに、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータが新たな第2ビットデータとして出力される。制御手段によって変換手段が第4出力モードで動作するときは、入力された第1ビットデータがそのまま新たな第1ビットデータとして出力されるとともに、入力された第2ビットデータがそのまま新たな第2ビットデータとして出力される。
【0056】
変換手段の具体的な構成としては、上記の3種類の構成が挙げられる。これら構成の違いは、第1の構成では反転第1ビットデータおよび反転第2ビットデータを常に作成するのに対し、第2および第3の構成では反転第1ビットデータおよび反転第2ビットデータを出力モードに応じて作成することである。また、第2の構成では、セレクタから出力されたビットデータを、出力モードに応じて制御反転回路で反転するのに対し、第3の構成では、出力モードに応じて制御反転回路で反転されたビットデータがセレクタに入力されることである。
【0057】
まず、第1の構成では、第1選択回路には、出力モードに拘らず、第1反転回路から出力された反転第1ビットデータと、第2反転回路から出力された反転第2ビットデータと、第1ビットデータと、第2ビットデータとが入力される。また、第2選択回路にも、出力モードに拘らず、第1反転回路から出力された反転第1ビットデータと、第2反転回路から出力された反転第2ビットデータと、第1ビットデータと、第2ビットデータとが入力される。第1出力モードでは、第1選択回路は新たな第1ビットデータとして反転第2ビットデータを出力し、第2選択回路は新たな第2ビットデータとして第1ビットデータを出力する。第2出力モードでは、第1選択回路は新たな第1ビットデータとして第2ビットデータを出力し、第2選択回路は新たな第2ビットデータとして反転第1ビットデータを出力する。第3出力モードでは、第1選択回路は新たな第1ビットデータとして反転第1ビットデータを出力し、第2選択回路は新たな第2ビットデータとして反転第2ビットデータを出力する。第4出力モードでは、第1選択回路は新たな第1ビットデータとして第1ビットデータを出力し、第2選択回路は新たな第2ビットデータとして第2ビットデータを出力する。
【0058】
これに対し、第2の構成では、第1および第2選択回路には、ともに第1および第2ビットデータが入力されており、第1選択回路の出力が出力モードに応じて第1制御反転回路によって反転されて新たな第1ビットデータとして出力され、第2選択回路の出力が出力モードに応じて第2制御反転回路によって反転されて新たな第2ビットデータとして出力される。
【0059】
すなわち、第1出力モードでは、第1選択回路は第2ビットデータを出力し、この第2ビットデータが入力された第1制御反転手段は反転ビットデータ、すなわち反転第2ビットデータを作成し、反転第2ビットデータを新たな第1ビットデータとして出力する。このとき、第2選択回路は、新たな第2ビットデータとして第1ビットデータをそのまま出力する。第2出力モードでは、第2選択回路は第1ビットデータを出力し、この第1ビットデータが入力された第2制御反転手段は反転ビットデータ、すなわち反転第1ビットデータを作成し、反転第1ビットデータを新たな第2ビットデータとして出力する。このとき、第1選択回路は、新たな第1ビットデータとして第2ビットデータをそのまま出力する。第2出力モードでは、第2選択回路は第2ビットデータを出力し、この第2ビットデータが入力された制御反転回路は反転ビットデータを作成することなく、第2ビットデータをそのまま新たな第2ビットデータとして出力する。このとき、第1選択回路は、第1ビットデータを新たな1ビットデータとしてそのまま出力する。第3出力モードでは、第1ビットデータが入力された第1制御反転手段は反転ビットデータ、すなわち反転第1ビットデータを作成し、反転第1ビットデータを新たな第1ビットデータとして出力し、第2ビットデータが入力された第2制御反転手段は反転ビットデータ、すなわち反転第2ビットデータを作成し、反転第2ビットデータを新たな第2ビットデータとして出力する。第4出力モードでは、第1選択回路は第1ビットデータを出力し、この第1ビットデータが入力された第1制御反転回路は反転ビットデータを作成することなく、第1ビットデータをそのまま新たな第1ビットデータとして出力する。このとき、第2選択回路は第2ビットデータを出力し、この第2ビットデータが入力された第2制御反転回路は反転ビットデータを作成することなく、第2ビットデータをそのまま新たな第2ビットデータとして出力する。
【0060】
さらに、第3の構成では、第1および第2選択回路には、ともに第1および第2制御反転回路から出力されたビットデータが入力されており、第1選択回路の出力が新たな第1ビットデータとして出力され、第2選択回路の出力が新たな第2ビットデータとして出力される。すなわち、第1出力モードでは、第1ビットデータが入力された第1制御反転回路は反転ビットデータを作成することなく、第1ビットデータをそのまま出力し、第2ビットデータが入力された第2制御反転回路は反転ビットデータ、すなわち反転第2ビットデータを作成し、この反転第2ビットデータを出力する。第1選択回路は、新たな第1ビットデータとして反転第2ビットデータを出力し、第2選択回路は、新たな第2ビットデータとして第1ビットデータを出力する。第2出力モードでは、第1ビットデータが入力された第1制御反転回路は反転ビットデータ、すなわち反転第1ビットデータを作成し、この反転第1ビットデータを出力し、第2ビットデータが入力された第2制御反転回路は反転ビットデータを作成することなく、第2ビットデータをそのまま出力する。第1選択回路は、新たな第1ビットデータとして第2ビットデータを出力し、第2選択回路は、新たな第2ビットデータとして反転第1ビットデータを出力する。第3出力モードでは、第1ビットデータが入力された第1制御反転回路は反転ビットデータ、すなわち反転第1ビットデータを作成し、この反転第1ビットデータを出力し、第2ビットデータが入力された第2制御反転回路は反転ビットデータ、すなわち反転第2ビットデータを作成し、この反転第2ビットデータを出力する。第1選択回路は、新たな第1ビットデータとして反転第1ビットデータを出力し、第2選択回路は、新たな第2ビットデータとして反転第2ビットデータを出力する。第4出力モードでは、第1ビットデータが入力された第1制御反転回路は反転ビットデータを作成することなく、第1ビットデータをそのまま出力し、第2ビットデータが入力された第2制御反転回路は反転ビットデータを作成することなく、第2ビットデータをそのまま出力する。第1選択回路は、新たな第1ビットデータとして第1ビットデータを出力し、第2選択回路は、新たな第2ビットデータとして第2ビットデータを出力する。
【0061】
ここで、第1ビットデータおよび第2ビットデータを、画像データに含まれる各画素値の配置位置を示すX座標およびY座標とする。X座標およびY座標は、複数のビットで構成される。
【0062】
変換手段が第1出力モードで動作した場合、変換後の新たなX座標は、各ビットがそれぞれ反転された反転Y座標となり、変換後の新たなY座標は、変換前のX座標となる。このように座標変換された画像データは、変換前に対して時計回りに90°回転した画像データとなる。
【0063】
変換手段が第2出力モードで動作した場合、変換後の新たなX座標は、変換前のY座標となり、変換後の新たなY座標は、各ビットがそれぞれ反転された反転X座標となる。このように座標変換された画像データは、変換前に対して時計回りに270°回転した画像データとなる。
【0064】
変換手段が第3出力モードで動作した場合、変換後の新たなX座標は、各ビットがそれぞれ反転された反転X座標となり、変換後の新たなY座標は、各ビットがそれぞれ反転された反転Y座標となる。このように座標変換された画像データは、変換前に対して時計回りに180°回転した画像データとなる。
【0065】
また、変換手段が第4出力モードで動作した場合、変換後の新たなX座標は、変換前のX座標となり、変換後の新たなY座標は、変換前のY座標となる。この場合、X座標およびY座標ともに変換前と変換後とが同じであるので、画像データは、変換前と同じ回転しない画像データとなる。
【0066】
したがって、変換手段が第1出力モードとして動作する制御条件を、画像データを時計回りに90°回転させる場合とし、変換手段が第2出力モードとして動作する制御条件を、画像データを時計回りに270°回転させる場合とし、変換手段が第3出力モードとして動作する制御条件を、画像データを時計回りに270°回転させる場合とし、第4出力モードとして動作する制御条件を、画像データを回転させない場合とする。これにより、制御手段に対し、ユーザなどによって制御条件が設定されると、画像データを時計回りに90°回転させる場合と、時計回りに180°回転させる場合と、時計回りに270°回転させる場合と、回転させない場合とを切り換えて表示させることができる。
【0067】
従来、画像データを時計回りに90°,270°,180°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0068】
また本発明は、フレームメモリの所定のアドレスから画素値を読み出し、読み出した画素値を前記所定のアドレスに対応付けられたX座標とY座標とからなる座標位置に配置して画像を表示する表示部が、画像を相互に異なる複数の向きで表示することができるように、フレームメモリに対して複数の画素値と、各画素値を書き込むアドレスとを出力する表示制御装置において、
前記フレームメモリに対して複数の画素値を出力するとともに、表示させる画像の向きに応じて各画素値のX座標およびY座標を生成して出力する描画部と、上述したデータ変換装置を有し、表示させる画像の向きに応じてデータ変換装置の出力モードを選択して動作させ、前記描画部から出力されたX座標およびY座標を、入力された第1ビットデータおよび第2ビットデータとしてデータ変換を行い、新たな第1ビットデータおよび第2ビットデータを変換後のX座標およびY座標として出力する座標変換部と、
前記座標変換部から出力された変換後のX座標およびY座標を、前記フレームメモリのアドレスに変換し、前記フレームメモリに対して変換したアドレスを出力する座標アドレス変換部とを備えることを特徴とする表示制御装置である。
【0069】
本発明に従えば、表示部はフレームメモリの所定のアドレスから画素値を読み出し、読み出した画素値を所定のアドレスに対応する座標に配置して画像を表示する。表示部が、相互に異なる複数の向き、たとえば画像を時計回りに90°回転させた向き、270°回転させた向き、180°回転させた向き、画像を回転させない向きで画像を表示することができるように、表示制御装置は、フレームメモリに対して複数の画素値と、各画素値を書き込むアドレスとを出力する。ここで画像の向きとは、表示部を所定の向きに固定したときの画像の向きであり、画像を異なる向きで表示するというのは、表示部の向きは変えずに画像の向きだけを変えて表示することである。
【0070】
具体的には、描画部は、フレームメモリに対して複数の画素値を出力するとともに、前述の画像の向きに応じて回転させた画像が、表示部の適切な位置に表示されるように、各画素値の変換前のX座標およびY座標を生成して出力する。
【0071】
座標変換部は、上記のデータ変換装置を有しており、画像の向きに応じた出力モードでデータ変換装置を動作させて、描画部から出力された変換前のX座標およびY座標を変換する。このとき、変換前のX座標およびY座標を、第1ビットデータおよび第2ビットデータとし、データ変換後の新たな第1ビットデータおよび第2ビットデータを変換後のX座標およびY座標として出力する。
【0072】
座標アドレス変換部は、座標変換部から出力された変換後のX座標およびY座標を、フレームメモリのアドレスに変換し、フレームメモリに対して変換したアドレスを出力する。
【0073】
このアドレスに対して描画部が出力した画素値を書き込むことで、フレームメモリには、表示モードに応じて回転させた画像の画素値が記憶される。このようにしてフレームメモリに記憶された画素値を読み出して画像を表示することで、表示部は表示モードに応じて回転させた画像を表示することができる。また、上記のデータ変換装置を用いていることから、表示制御装置は、回路規模を縮小することが可能で、コストを低減することができるとともに処理を高速化することができる。
【0074】
また本発明は、所定のアドレスに画素値を記憶するフレームメモリと、
前記フレームメモリの所定のアドレスから画素値を読み出し、前記所定のアドレスに対応付けられたX座標とY座標とからなる座標位置に読み出した画素値を配置して画像を表示する表示部と、
前記表示部が画像を相互に異なる複数の向きで表示することができるように、フレームメモリに対して複数の画素値と、各画素値を書き込むアドレスとを出力する表示制御部であって、
前記フレームメモリに対して複数の画素値を出力するとともに、表示させる画像の向きに応じて各画素値のX座標およびY座標を生成して出力する描画部と、
上述したデータ変換装置を有し、表示させる画像の向きに応じてデータ変換装置の出力モードを選択して動作させ、前記描画部から出力されたX座標およびY座標を、入力された第1ビットデータおよび第2ビットデータとしてデータ変換を行い、新たな第1ビットデータおよび第2ビットデータを変換後のX座標およびY座標として出力する座標変換部と、
前記座標変換部から出力された変換後のX座標およびY座標を、前記フレームメモリのアドレスに変換し、前記フレームメモリに対して変換したアドレスを出力する座標アドレス変換部とからなる表示制御部とを備えることを特徴とする表示装置である。
【0075】
本発明に従えば、表示部は、フレームメモリの所定のアドレスに記憶された画素値を読み出し、読み出した画素値を所定のアドレスに対応する座標に配置して画像を表示する。表示部が、相互に異なる複数の向き、たとえば画像を時計回りに90°回転させた向き、270°回転させた向き、180°回転させた向き、画像を回転させない向きなどに応じて画像を表示する。
【0076】
描画部は、フレームメモリに対して複数の画素値を出力するとともに、前述の画像の向きに応じて回転させた画像が、表示部の適切な位置に表示されるように、各画素値の変換前のX座標およびY座標を生成して出力する。
【0077】
座標変換部は、上記のデータ変換装置を有しており、表示させる画像の向きに応じた出力モードでデータ変換装置を動作させて、描画部から出力された変換前のX座標およびY座標を変換する。このとき、変換前のX座標およびY座標を、第1ビットデータおよび第2ビットデータとし、データ変換後の新たな第1ビットデータおよび第2ビットデータを変換後のX座標およびY座標として出力する。
【0078】
座標アドレス変換部は、座標変換部から出力された変換後のX座標およびY座標を、フレームメモリのアドレスに変換し、フレームメモリに対して変換したアドレスを出力する。
【0079】
このアドレスに対して描画部が出力した画素値を書き込むことで、フレームメモリには、表示モードに応じて回転させた画像の画素値が記憶される。このようにしてフレームメモリに記憶された画素値を読み出して画像を表示することで、表示部は表示モードに応じて回転させた画像を表示することができる。また、上記のデータ変換装置を用いていることから、表示装置は、回路規模を縮小することが可能で、コストを低減することができるとともに処理を高速化することができる。
【0080】
【発明の実施の形態】
図1は、本発明の実施の一形態である表示装置1の構成を示すブロック図である。表示装置1は、携帯電話機やPDAなどの携帯端末装置を、キー操作部、記憶部、通信部などとともに構成してもよいし、パーソナルコンピュータ(PC)や、ワークステーション(WS)などと接続されていてもよい。携帯端末装置を構成する場合は、ユーザによるキー操作部からの入力などに基づいて、記憶部に記憶された画像データを表示する。PCやWSなどと接続される場合は、ユーザによるキーボードやマウスなどからの入力に基づいてPCのCPUが表示装置1に画像データおよび制御信号などを出力し、表示装置1は入力された制御信号に基づいて画像データを表示する。
【0081】
表示装置1は、描画部11、座標変換部12、座標アドレス変換部13、フレームメモリ14、タイミング制御部15および表示部16を有する。
【0082】
描画部11は、座標生成部17および開始座標指定レジスタ18を備え、図示しない画像データ記憶部に記憶されている画像データ、もしくは図示しない外部接続部を介して無線および有線で表示装置1の外部から入力された画像データに基づいて、各画素の画素値と画素を表示しようとする座標とを、フレームメモリ14と座標変換部12とにそれぞれ出力する。ここで、画像データはビットマップイメージであって、各座標は所定の描画開始画素の座標に対する相対的な座標となっている。
【0083】
画像データ表示時には、予めユーザからの指示などに応じて決定された描画開始座標が開始座標指定レジスタ18に記憶されており、座標生成部17は、この描画開始座標から他の座標を生成し、変換前座標として座標変換部12に出力する。また、各座標に表示する画素値も、変換前座標とともに出力される。
【0084】
座標変換部12は、座標回転部19と表示モード設定レジスタ20とを備える。表示モードは、表示部16に表示される画像の向きごと、すなわち画像データの回転角度ごとに設定されるモードであり、本実施形態では、画像データを回転させずに表示する通常モード、通常モードでの画像データに対して画像データを時計回りに90°回転させて表示する90°モード、通常モードでの画像データに対して時計回りに180°回転させて表示する180°モード、通常モードでの画像データに対して時計回りに270°回転させて表示する270°モードの4つの表示モードがある。また、画像の向きとは、表示部16または表示装置1を所定の向きに固定したときに表示される画像の向きであり、画像を異なる向きで表示するというのは、表示部16の向きは変えずに画像の向きだけを変えて表示することである。たとえば、表示装置1が携帯電話機などの場合、発信操作など通常の操作をするときの表示部16の向きを所定の向きとすると、表示部16の向きはそのままで、表示される画像の向きが、時計回りに90°回転させた向き、180°回転させた向きなどで表示される。また、予めモード切換機能を所定のキーに割り当てておき、ユーザがキー操作によって表示モードを選択して切り換えると、表示モード設定レジスタ20に前述の各モードのいずれのモードで表示するかが記憶される。座標回転部19は、表示モード設定レジスタ20に記憶された表示モードに従って描画部11から出力された変換前座標を座標変換し、変換後座標として座標アドレス変換部13に出力する。
【0085】
座標アドレス変換部13は、座標変換部12から入力された変換後座標をフレームメモリ14のアドレスに変換する。タイミング制御部15は、描画部11、座標変換部12、座標アドレス変換部13、フレームメモリ14および表示部16に接続され、これらの部位の動作タイミングをコントロールする制御信号を出力する。表示部16は、液晶表示パネルなどで実現され、タイミング制御部15からの制御信号に従い、フレームメモリ14の所定のアドレスから画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。
【0086】
以下では、座標回転部19の構成および座標変換処理について説明する。
表示部16の画面構成を図13に示すように6×5画素の構成とする。表示部16の各座標とフレームメモリ14のアドレスとの対応は図14のように設定する。たとえば、座標(X,Y)=(2,1)は、フレームメモリ14のアドレス0x08番地に対応する。一般にフレームメモリ14のアドレスは、連続してデータを書き込むことを想定して、図14に示すように左上から右下に順に連続したアドレスが割り振られている。
【0087】
図13および図14は、表示装置1を通常使用する場合の画面方向を示しており、表示装置1を時計回りに90°回転させても、図15に示すように、座標とフレームメモリ14のアドレスとの対応は変化しない。
【0088】
前述のように表示モードには4種類あり、座標回転部19は、入力されたデータをビット反転させる反転回路によって座標の反転を行い、入力された複数のデータから1つのデータを出力する2つのセレクタと、このセレクタの選択動作を制御する制御回路とによって座標の入れ替えを行うことで、複数の表示モードを実現している。
【0089】
図2は、画像データを時計回りに90°回転させる座標回転部19の構成を示すブロック図である。以下では、所定の角度に回転させると記述した場合、いずれも時計回りに回転させることを示す。
【0090】
変換の対象となるX座標およびY座標を表す信号について、X座標を表す信号およびY座標を表す信号は複数ビットで構成され、信号のビット幅は、表示部16の画素構成のうち画素数の多い方の座標を基準として、X座標およびY座標とも同じビット幅に設定する。
【0091】
図13に示したように、表示部16の画面構成は6×5画素であるので、画素数が多いX座標を基準とし、X座標を表すことの出来る最小ビット幅の3ビット構成とする。もちろん、3ビットより大きな値を設定してもかまわない。図16は、X座標およびY座標とも3ビット幅に設定した場合の画素配列を表す図である。図の太線内の6×5画素の領域100が座標アドレス変換部13において有効な領域である。なお、X座標およびY座標は2進数で表され、各ビットがそれぞれ座標信号X,Yに対応する。座標がnビットで表される場合、第1ビットデータである変換前のX座標の座標信号はX〜X、第2ビットデータである変換前のY座標の座標信号はY〜Yで表される。図16の例のように座標が3ビットで表される場合、X座標は、上位からX,X,Xの順に各ビットで表され、Y座標は、上位からY,Y,Yの順に各ビットで表される。X座標およびY座標の表記は、10進数で表記すると、(X,Y)=(2,6)の場合、(X,Y)=(X,Y)=(010,110)などのように表す。また、変換前座標をX座標およびY座標とし、変換後座標をX’座標およびY’座標とする。
【0092】
座標回転部19は、図2に示すように、信号反転回路21、X座標用セレクタ22、Y座標用セレクタ23および表示モード制御回路24を備える。信号反転回路21は、変換前座標信号Y〜Yの各ビットをそれぞれ反転させて反転座標信号iY〜iYをX座標用セレクタ22に出力する反転回路である。図11は、信号反転回路21の一例を示す回路図である。図に示すように各入力信号IN〜IN(X〜XまたはY〜Y)をインバータで反転することで出力信号OUT〜OUT(iX〜iXまたはiY〜iY)を得ることができる。インバータによって、たとえば入力信号INが1のときは出力信号OUTは0、入力信号INが0のときは出力信号OUTは1に反転される。X座標用セレクタ22は、表示モード制御回路24によって制御され、変換前座標信号X〜Xまたは信号反転回路21の出力信号である反転座標信号iY〜iYのいずれかを選択し、変換後座標信号X’〜X’として出力する第1選択回路である。Y座標用セレクタ23は、表示モード制御回路24によって制御され、変換前座標信号X〜Xまたは変換前座標信号Y〜Yのいずれかを選択し、変換後座標信号Y’〜Y’として出力する第2選択回路である。
【0093】
表示部16の画面構成が図13に示すような6×5画素の構成であるので、変換前のX座標を表す変換前座標信号はX〜Xの3ビット、変換前のY座標を表す変換前座標信号はY〜Yの3ビット、変換後のX座標を表す変換後座標信号はX’〜X’の3ビット、変換後のY座標を表す変換後座標信号はY’〜Yn’の3ビットで構成される。制御手段である表示モード制御回路24は、第1出力モードであって画像データを90°回転させる90°モード、および第2出力モードであって画像データを回転させない通常モードの2種類の表示モードについてX座標用セレクタ22およびY座標用セレクタ23にモード設定信号を出力して制御する。
【0094】
90°モードの場合、X座標用セレクタ22は、表示モード制御回路24の制御によって、変換前座標信号X〜Xと反転座標信号iY〜iYのうち、反転座標信号iY〜iYを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ23は、表示モード制御回路24の制御によって、変換前座標信号X〜Xと変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択して変換後座標信号Y’〜Y’として出力する。
【0095】
通常モードの場合、X座標用セレクタ22は、表示モード制御回路24の制御によって、変換前座標信号X〜Xと反転座標信号iY〜iYのうち、変換前座標信号X〜Xを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ23は、表示モード制御回路24の制御によって、変換前座標信号X〜Xと変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択して変換後座標信号Y’〜Y’として出力する。画像データを回転させないのでX座標、Y座標とも変換前と変換後とが同じである。
【0096】
図17は、90°回転させる場合の座標変換前の画像データを示す図であり、図18は90°回転させた画像データを示す図である。なお図18では、90°回転させた後、表示部16において表示可能な6×5画素領域のみ、説明のため各画素位置に名前が割り振られている。これに対応して、図17では、図18で名前が割り振られた画素位置の座標変換前の位置を示している。
【0097】
90°モードが選択されたときの具体的な処理について説明する。表示させる画像データとして図19に示す画像データ(A,B,C,Dの4画素からなる。)を想定する。なお、図19に示した画像データにおいて、描画開始画素はAであり、画素B,C,DはAの座標に相対的な座標を有している。画素Aの座標を(X,Y)とすると、画素Bの座標は(X+1,Y)、画素Cの座標は(X+1,Y+1)、画素Dの座標は(X+1,Y+2)となる。
【0098】
また図19は、正しい方向から見た場合の画像データの向きを示しており、本実施形態では、ユーザの左側にいる人が正しい方向で画像データを見ることができるように、画像データを90°回転させる。
【0099】
まず、描画部11が座標変換前の画素位置EB,EC,FC,GCに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置EBを描画開始座標としてA(X,Y)=A(001,100)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16の適切な位置である表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(010,100)、C(X,Y)=C(010,101)、D(X,Y)=D(010,110)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0100】
画素Aについて、変換前座標がA(001,100)であるので、第1ビットデータである変換前座標信号X〜XはX(001)、第2ビットデータである変換前座標信号Y〜YはY(100)である。入力された変換前座標信号X(001)は、X座標用セレクタ22およびY座標用セレクタ23に入力される。入力された変換前座標信号Y(100)は、Y座標用セレクタ23および信号反転回路21に入力される。信号反転回路21では、変換前座標信号Y(100)の各ビットの論理値がそれぞれ反転され、反転第2ビットデータである反転座標信号iYiYiY(011)としてX座標用セレクタ22に入力される。
【0101】
90°モードで動作しているので、表示モード制御回路24の制御によって、X座標用セレクタ22は、変換後座標信号X’X’X’として、反転座標信号iYiYiY(011)を選択して出力する。Y座標用セレクタ23は、変換後座標信号Y’Y’Y’として、変換前座標信号X(001)を選択して出力する。
【0102】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(001,100)を、変換後座標A(011,001)に変換して座標アドレス変換部13に出力する。
【0103】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(100)である。表示モード制御回路24の制御によって、X座標用セレクタ22は、変換後座標信号X’X’X’として、変換前座標信号X(010)および反転座標信号iYiYiY(011)のうち、反転座標信号iYiYiY(011)を選択して出力する。Y座標用セレクタ23は、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)および変換前座標信号Y(100)のうち、変換前座標信号X(010)を選択して出力する。
【0104】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(010,100)を、変換後座標B(011,010)に変換して座標アドレス変換部13に出力する。
【0105】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(101)である。表示モード制御回路24の制御によって、X座標用セレクタ22は、変換後座標信号X’X’X’として、変換前座標信号X(010)および反転座標信号iYiYiY(010)のうち、反転座標信号iYiYiY(010)を選択して出力する。Y座標用セレクタ23は、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)および変換前座標信号Y(101)のうち、変換前座標信号X(010)を選択して出力する。
【0106】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(010,101)を、変換後座標C(010,010)に変換して座標アドレス変換部13に出力する。
【0107】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(110)である。表示モード制御回路24の制御によって、X座標用セレクタ22は、変換後座標信号X’X’X’として、変換前座標信号X(010)および反転座標信号iYiYiY(001)のうち、反転座標信号iYiYiY(001)を選択して出力する。Y座標用セレクタ23は、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)および変換前座標信号Y(110)のうち、変換前座標信号X(010)を選択して出力する。
【0108】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(010,110)を、変換後座標D(001,010)に変換して座標アドレス変換部13に出力する。
【0109】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに90°回転させた画像データを表示することができる。
【0110】
次に、通常モードが選択されたときの具体的な処理について説明する。表示する画像データは、90°モードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。
【0111】
まず、描画部11が座標変換前の画素位置BC,BD,CD,DDに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置BCを描画開始座標としてA(X,Y)=A(010,001)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(011,001)、C(X,Y)=C(011,010)、D(X,Y)=D(011,011)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0112】
画素Aについて、変換前座標がA(010,001)であるので、変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(001)である。入力された変換前座標信号X(010)は、X座標用セレクタ22およびY座標用セレクタ23に入力される。入力された変換前座標信号Y(001)は、Y座標用セレクタ23および信号反転回路21に入力される。信号反転回路21では、変換前座標信号Y(001)の各ビットが反転され、反転座標信号iYiYiY(110)としてX座標用セレクタ22に入力される。
【0113】
通常モードで動作しているので、表示モード制御回路24の制御によって、X座標用セレクタ22は、変換後座標信号X’X’X’として、変換前座標信号X(010)を選択して出力する。Y座標用セレクタ23は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(001)を選択して出力する。
【0114】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(010,001)を変換後座標A(010,001)として座標アドレス変換部13に出力する。
【0115】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(001)である。表示モード制御回路24の制御によって、X座標用セレクタ22は、変換後座標信号X’X’X’として、変換前座標信号X(011)および反転座標信号iYiYiY(110)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ23は、変換後座標信号Y’Y’Y’として、変換前座標信号X(011)および変換前座標信号Y(001)のうち、変換前座標信号Y(001)を選択して出力する。
【0116】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(011,001)を変換後座標B(011,001)として座標アドレス変換部13に出力する。
【0117】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(010)である。表示モード制御回路24の制御によって、X座標用セレクタ22は、変換後座標信号X’X’X’として、変換前座標信号X(011)および反転座標信号iYiYiY(101)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ23は、変換後座標信号Y’Y’Y’として、変換前座標信号X(011)および変換前座標信号Y(010)のうち、変換前座標信号Y(010)を選択して出力する。
【0118】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(011,010)を変換後座標C(011,010)として座標アドレス変換部13に出力する。
【0119】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(011)である。表示モード制御回路24の制御によって、X座標用セレクタ22は、変換後座標信号X’X’X’として、変換前座標信号X(011)および反転座標信号iYiYiY(100)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ23は、変換後座標信号Y’Y’Y’として、変換前座標信号X(011)および変換前座標信号Y(011)のうち、変換前座標信号Y(011)を選択して出力する。
【0120】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(011,011)を変換後座標D(011,011)として座標アドレス変換部13に出力する。
【0121】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。
【0122】
表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、回転させずに座標変換前と同様の画像データを表示することができる。
【0123】
図2に示した座標回転部19による座標変換結果を図24および図27に示す。図24は、90°モードにおける座標変換結果であり、図27は、通常モードにおける座標変換結果である。座標回転部19を含む座標変換部12によって、図24および図27に示すような変換結果が得られるので、表示装置1は、画像データを90°回転させる場合とさせない場合とを切り換えて使用することができる。
【0124】
従来、画像データを時計回りに90°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0125】
図3は、画像データを時計回りに270°回転させる座標回転部19の構成を示すブロック図である。座標信号については、表示部16の画面構成は6×5画素であるので、画素数が多いX座標を基準とし、X座標を表すことのできる最小ビット幅の3ビット構成とする。もちろん、3ビットより大きな値を設定してもかまわない。
【0126】
座標回転部19は、信号反転回路31、X座標用セレクタ32、Y座標用セレクタ33および表示モード制御回路34を備える。信号反転回路31は、変換前座標信号X〜Xの各ビットを反転させて反転座標信号iX〜iXをY座標用セレクタ32に出力する反転回路である。信号反転回路31の一例は図11に示した回路図のように構成される。X座標用セレクタ33は、表示モード制御回路34によって制御され、変換前座標信号X〜Xと変換前座標信号Y〜Yのいずれかを選択し、変換後座標信号X’〜X’として出力する第1選択回路である。
【0127】
Y座標用セレクタ32は、表示モード制御回路34によって制御され、信号反転回路31の出力信号である反転座標信号iX〜iXと変換前座標信号Y〜Yのいずれかを選択し、変換後座標信号Y’〜Y’として出力する第2選択回路である。表示部16の画面構成が図13に示すような6×5画素の構成であるので、変換前のX座標を表す変換前座標信号はX〜Xの3ビット、変換前のY座標を表す変換前座標信号はY〜Yの3ビット、変換後のX座標を表す変換後座標信号はX’〜X’の3ビット、変換後のY座標を表す変換後座標信号はY’〜Yn’の3ビットで構成される。制御手段である表示モード制御回路34は、第1出力モードである画像データを270°回転させる270°モード、および第2出力モードである画像データを回転させない通常モードの2種類の表示モードについてX座標用セレクタ32およびY座標用セレクタ33に制御信号を出力して制御する。
【0128】
270°モードの場合、X座標用セレクタ32は、表示モード制御回路34の制御によって、第1ビットデータである変換前座標信号X〜Xと第2ビットデータである変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ33は、表示モード制御回路34の制御によって、反転第1ビットデータである反転座標信号iX〜iXと変換前座標信号Y〜Yのうち、反転座標信号iX〜iXを選択して変換後座標信号Y’〜Y’として出力する。
【0129】
通常モードの場合、X座標用セレクタ32は、表示モード制御回路34の制御によって、変換前座標信号X〜Xと変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択し、変換後座標信号X’〜X’として出力する。
【0130】
Y座標用セレクタ33は、表示モード制御回路24の制御によって、反転座標信号iX〜iXと変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択して変換後座標信号Y’〜Y’として出力する。画像データを回転させないのでX座標、Y座標とも変換前と変換後とが同じである。
【0131】
図20は座標変換前の画像データを示す図であり、図21は270°回転させた画像データを示す図である。なお図21では、270°回転させた後、表示部16において表示可能な6×5画素領域のみ、説明のため各画素位置に名前が割り振られている。これに対応して、図20では、図21で名前が割り振られた画素位置の座標変換前の位置を示している。
【0132】
最初に270°モードが選択されたときの具体的な処理について説明する。表示する画像データは図19に示す画像データ(A,B,C,Dの4画素からなる。)を想定する。
【0133】
図19は、正しい方向から見た場合の画像データの向きを示しており、本実施形態では、ユーザの右側にいる人が正しい方向で画像データを見ることができるように、画像データを270°回転させる。
【0134】
まず、描画部11が座標変換前の画素位置CE,CF,DF,EFに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置CEを描画開始座標としてA(X,Y)=A(100,010)が設定される。描画開始座標は、座標変換後に画像データが、図21に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(101,010)、C(X,Y)=C(101,011)、D(X,Y)=D(101,100)が生成される。描画部11は、生成した変換前座標を座標変換部12に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0135】
画素Aについて、変換前座標がA(100,010)であるので、変換前座標信号X〜XはX(100)、変換前座標信号Y〜YはY(010)である。入力された変換前座標信号X(100)は、X座標用セレクタ32および信号反転回路31に入力される。入力された変換前座標信号Y(010)は、X座標用セレクタ33およびY座標用セレクタ33に入力される。信号反転回路31では、変換前座標信号X(100)の全ビットが反転され、反転座標信号iXiXiX(011)としてY座標用セレクタ32に入力される。
【0136】
270°モードで動作しているので、表示モード制御回路34の制御によって、X座標用セレクタ32は、変換後座標信号X’X’X’として、変換前座標信号Y(010)を選択して出力する。Y座標用セレクタ33は、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(011)を選択して出力する。
【0137】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(100,010)を、変換後座標A(010,011)に変換して座標アドレス変換部13に出力する。
【0138】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(010)である。表示モード制御回路34の制御によって、X座標用セレクタ32は、変換後座標信号X’X’X’として、変換前座標信号X(101)および変換前座標信号Y(010)のうち、変換前座標信号Y(010)を選択して出力する。Y座標用セレクタ33は、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(010)および変換前座標信号Y(010)のうち、反転座標信号iXiXiX(010)を選択して出力する。
【0139】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(101,010)を、変換後座標B(010,010)に変換して座標アドレス変換部13に出力する。
【0140】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(011)である。表示モード制御回路34の制御によって、X座標用セレクタ32は、変換後座標信号X’X’X’として、変換前座標信号X(101)および変換前座標信号Y(011)のうち、変換前座標信号Y(011)を選択して出力する。Y座標用セレクタ23は、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(010)および変換前座標信号Y(011)のうち、反転座標信号iXiXiX(010)を選択して出力する。
【0141】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(101,011)を、変換後座標C(011,010)に変換して座標アドレス変換部13に出力する。
【0142】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(100)である。表示モード制御回路34の制御によって、X座標用セレクタ32は、変換後座標信号X’X’X’として、変換前座標信号X(101)および変換前座標信号Y(100)のうち、変換前座標信号Y(100)を選択して出力する。Y座標用セレクタ33は、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(010)および変換前座標信号Y(100)のうち、反転座標信号iXiXiX(010)を選択して出力する。
【0143】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(101,100)を、変換後座標D(100,010)に変換して座標アドレス変換部13に出力する。
【0144】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに270°回転させた画像データを表示することができる。
【0145】
次に、通常モードが選択されたときの具体的な処理について説明する。表示する画像データは、270°モードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。
【0146】
まず、描画部11が座標変換前の画素位置BC,BD,CD,DDに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置BCを描画開始座標としてA(X,Y)=A(010,001)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(011,001)、C(X,Y)=C(011,010)、D(X,Y)=D(011,011)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0147】
画素Aについて、変換前座標がA(010,001)であるので、変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(001)である。入力された変換前座標信号X(010)は、X座標用セレクタ32および信号反転回路31に入力される。入力された変換前座標信号Y(001)は、X座標用セレクタ32およびY座標用セレクタ33に入力される。信号反転回路31では、変換前座標信号X(010)の全ビットが反転され、反転座標信号iXiXiX(101)としてY座標用セレクタ32に入力される。
【0148】
通常モードで動作しているので、表示モード制御回路34の制御によって、X座標用セレクタ32は、変換後座標信号X’X’X’として、変換前座標信号X(010)を選択して出力する。Y座標用セレクタ33は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(001)を選択して出力する。
【0149】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(010,001)を変換後座標A(010,001)として座標アドレス変換部13に出力する。
【0150】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(001)である。表示モード制御回路34の制御によって、X座標用セレクタ22は、変換後座標信号X’X’X’として、変換前座標信号X(011)および変換前座標信号Y(001)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ33は、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(100)および変換前座標信号Y(001)のうち、変換前座標信号Y(001)を選択して出力する。
【0151】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(011,001)を変換後座標B(011,001)として座標アドレス変換部13に出力する。
【0152】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(010)である。表示モード制御回路34の制御によって、X座標用セレクタ32は、変換後座標信号X’X’X’として、変換前座標信号X(011)および変換前座標信号Y(010)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ33は、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(100)および変換前座標信号Y(010)のうち、変換前座標信号Y(010)を選択して出力する。
【0153】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(011,010)を変換後座標C(011,010)として座標アドレス変換部13に出力する。
【0154】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(011)である。表示モード制御回路34の制御によって、X座標用セレクタ32は、変換後座標信号X’X’X’として、変換前座標信号X(011)および変換前座標信号Y(011)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ33は、変換後座標信号Y’Y’Y’として、反転座標信号X(100)および変換前座標信号Y(011)のうち、変換前座標信号Y(011)を選択して出力する。
【0155】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(011,011)を変換後座標D(011,011)として座標アドレス変換部13に出力する。
【0156】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、回転させずに座標変換前と同様の画像データを表示することができる。
【0157】
図3に示した座標回転部19による座標変換結果を図25および図27に示す。図25は、270°モードにおける座標変換結果であり、図27は、通常モードにおける座標変換結果である。座標回転部19を含む座標変換部12によって、図25および図27に示すような変換結果が得られるので、表示装置1は、画像データを270°回転させる場合とさせない場合とを切り換えて使用することができる。
【0158】
従来、画像データを時計回りに270°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0159】
図4は、画像データを時計回りに180°回転させる座標回転部19の構成を示すブロック図である。座標信号については、表示部16の画面構成は6×5画素であるので、画素数が多いX座標を基準とし、X座標を表すことの出来る最小ビット幅の3ビット構成とする。もちろん、3ビットより大きな値を設定してもかまわない。
【0160】
座標回転部19は、信号反転回路41,42、X座標用セレクタ43、Y座標用セレクタ44および表示モード制御回路45を備える。信号反転回路41は、変換前座標信号X〜Xの各ビットを反転させて反転座標信号iX〜iXをX座標用セレクタ43に出力する第1反転回路である。信号反転回路42は、変換前座標信号Y〜Yの各ビットを反転させて反転座標信号iY〜iYをY座標用セレクタ44に出力する第2反転回路である。信号反転回路41,42の一例は図11に示した回路図のように構成される。
【0161】
X座標用セレクタ43は、表示モード制御回路45によって制御され、変換前座標信号X〜Xと信号反転回路41の出力信号である反転座標信号iX〜iXのいずれかを選択し、変換後座標信号X’〜X’として出力する第1選択回路である。Y座標用セレクタ44は、表示モード制御回路45によって制御され、変換前座標信号Y〜Yと信号反転回路42の出力信号である反転座標信号iY〜iYのいずれかを選択し、変換後座標信号Y’〜Y’として出力する第2選択回路である。表示部16の画面構成が図13に示すような6×5画素の構成であるので、変換前のX座標を表す変換前座標信号はX〜Xの3ビット、変換前のY座標を表す変換前座標信号はY〜Yの3ビット、変換後のX座標を表す変換後座標信号はX’〜X’の3ビット、変換後のY座標を表す変換後座標信号はY’〜Yn’の3ビットで構成される。
【0162】
制御手段である表示モード制御回路34は、第1出力モードであって、画像データを180°回転させる180°モード、および第2出力モードであって回転させない通常モードの2種類の表示モードについてX座標用セレクタ43およびY座標用セレクタ44に制御信号を出力して制御する。
【0163】
180°モードの場合、X座標用セレクタ43は、表示モード制御回路45の制御によって、第1ビットデータである変換前座標信号X〜Xと反転第1ビットデータである反転座標信号iX〜iXのうち、反転座標信号iX〜iXを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ44は、表示モード制御回路45の制御によって、第2ビットデータである変換前座標信号Y〜Yと反転第2ビットデータである反転座標信号iY〜iYのうち、反転座標信号iY〜iYを選択して変換後座標信号Y’〜Y’として出力する。
【0164】
通常モードの場合、X座標用セレクタ43は、表示モード制御回路45の制御によって、変換前座標信号X〜Xと反転座標信号iX〜iXのうち、変換前座標信号X〜Xを選択し、変換後座標信号X’〜X’として出力する。
【0165】
Y座標用セレクタ44は、表示モード制御回路45の制御によって、変換前座標信号Y〜Yと反転座標信号iY〜iYのうち、変換前座標信号Y〜Yを選択して変換後座標信号Y’〜Y’として出力する。画像データを回転させないのでX座標、Y座標とも変換前と変換後とが同じである。
【0166】
図22は座標変換前の画像データを示す図であり、図23は180°回転させた画像データを示す図である。なお図23では、180°回転させた後、表示部16において表示可能な6×5画素領域のみ、説明のため各画素位置に名前が割り振られている。これに対応して、図22では、図23で名前が割り振られた画素位置の座標変換前の位置を示している。
【0167】
最初に180°モードが選択されたときの具体的な処理について説明する。表示する画像データは図19に示す画像データ(A,B,C,Dの4画素からなる。)を想定する。
【0168】
図19は、正しい方向から見た場合の画像データの向きを示しており、本実施形態では、ユーザの向かい側にいる人が正しい方向で画像データを見ることができるように、画像データを180°回転させる。
【0169】
まず、描画部11が座標変換前の画素位置EE,EF,FF,GFに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置EEを描画開始座標としてA(X,Y)=A(100,100)が設定される。描画開始座標は、座標変換後に画像データが、図21に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(101,100)、C(X,Y)=C(101,101)、D(X,Y)=D(101,110)が生成される。描画部11は、生成した変換前座標を座標変換部12に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0170】
画素Aについて、変換前座標がA(100,100)であるので、変換前座標信号X〜XはX(100)、変換前座標信号Y〜YはY(100)である。入力された変換前座標信号X(100)は、X座標用セレクタ43および信号反転回路41に入力される。信号反転回路41では、変換前座標信号X(100)の各ビットが反転され、反転座標信号iXiXiX(011)としてX座標用セレクタ43に入力される。入力された変換前座標信号Y(100)は、Y座標用セレクタ44および信号反転回路42に入力される。信号反転回路42では、変換前座標信号Y(100)の各ビットが反転され、反転座標信号iYiYiY(011)としてY座標用セレクタ44に入力される。
【0171】
180°モードで動作しているので、表示モード制御回路45の制御によって、X座標用セレクタ43は、変換後座標信号X’X’X’として、反転座標信号iXiXiX(011)を選択して出力する。Y座標用セレクタ44は、変換後座標信号Y’Y’Y’として、反転座標信号iYiYiY(011)を選択して出力する。
【0172】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(100,100)を、変換後座標A(011,011)に変換して座標アドレス変換部13に出力する。
【0173】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(100)である。表示モード制御回路45の制御によって、X座標用セレクタ43は、変換後座標信号X’X’X’として、変換前座標信号X(101)および反転座標信号iXiXiX(010)のうち、反転座標信号iXiXiX(010)を選択して出力する。Y座標用セレクタ44は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(100)および反転座標信号iYiYiY(011)のうち、反転座標信号iYiYiY(011)を選択して出力する。
【0174】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(101,100)を、変換後座標B(010,011)に変換して座標アドレス変換部13に出力する。
【0175】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(101)である。表示モード制御回路45の制御によって、X座標用セレクタ43は、変換後座標信号X’X’X’として、変換前座標信号X(101)および反転座標信号iXiXiX(010)のうち、反転座標信号iXiXiX(010)を選択して出力する。Y座標用セレクタ44は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(101)および反転座標信号iYiYiY(010)のうち、反転座標信号iYiYiY(010)を選択して出力する。
【0176】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(101,101)を、変換後座標C(010,010)に変換して座標アドレス変換部13に出力する。
【0177】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(110)である。表示モード制御回路45の制御によって、X座標用セレクタ43は、変換後座標信号X’X’X’として、変換前座標信号X(101)および反転座標信号iXiXiX(010)のうち、反転座標信号iXiXiX(010)を選択して出力する。Y座標用セレクタ44は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(110)および反転座標信号iYiYiY(001)のうち、反転座標信号iYiYiY(001)を選択して出力する。
【0178】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(101,110)を、変換後座標D(010,001)に変換して座標アドレス変換部13に出力する。
【0179】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに180°回転させた画像データを表示することができる。
【0180】
次に、通常モードが選択されたときの具体的な処理について説明する。表示する画像データは、180°モードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。
【0181】
まず、描画部11が座標変換前の画素位置BC,BD,CD,DDに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置BCを描画開始座標としてA(X,Y)=A(010,001)が設定される。描画開始座標は、座標変換後に画像データが、図23に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(011,001)、C(X,Y)=C(011,010)、D(X,Y)=D(011,011)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0182】
画素Aについて、変換前座標がA(010,001)であるので、変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(001)である。入力された変換前座標信号X(010)は、X座標用セレクタ43および信号反転回路41に入力される。信号反転回路41では、変換前座標信号X(010)の各ビットが反転され、反転座標信号iXiXiX(101)としてX座標用セレクタ43に入力される。入力された変換前座標信号Y(001)は、Y座標用セレクタ44および信号反転回路42に入力される。信号反転回路42では、変換前座標信号Y(001)の各ビットが反転され、反転座標信号iYiYiY(110)としてY座標用セレクタ44に入力される。
【0183】
通常モードで動作しているので、表示モード制御回路45の制御によって、X座標用セレクタ43は、変換後座標信号X’X’X’として、変換前座標信号X(010)を選択して出力する。Y座標用セレクタ44は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(001)を選択して出力する。
【0184】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(010,001)を変換後座標A(010,001)として座標アドレス変換部13に出力する。
【0185】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(001)である。表示モード制御回路45の制御によって、X座標用セレクタ43は、変換後座標信号X’X’X’として、変換前座標信号X(011)および反転座標信号iXiXiX(100)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ44は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(001)および反転座標信号iYiYiY(110)のうち、変換前座標信号Y(001)を選択して出力する。
【0186】
以上の座標変換によて、座標変換部19は、入力された変換前座標B(011,001)を変換後座標B(011,001)として座標アドレス変換部13に出力する。
【0187】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(010)である。表示モード制御回路45の制御によって、X座標用セレクタ43は、変換後座標信号X’X’X’として、変換前座標信号X(011)および反転座標信号iXiXiX(100)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ44は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(010)および反転座標信号iYiYiY(101)のうち、変換前座標信号Y(010)を選択して出力する。
【0188】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(011,010)を変換後座標C(011,010)として座標アドレス変換部13に出力する。
【0189】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(011)である。表示モード制御回路45の制御によって、X座標用セレクタ43は、変換後座標信号X’X’X’として、変換前座標信号X(011)および反転座標信号iXiXiX(100)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ44は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(011)および反転座標信号iYiYiY(100)のうち、変換前座標信号Y(011)を選択して出力する。
【0190】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(011,011)を変換後座標D(011,011)として座標アドレス変換部13に出力する。
【0191】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、回転させずに座標変換前と同様の画像データを表示することができる。
【0192】
図4に示した座標回転部19による座標変換結果を図26および図27に示す。図26は、180°モードにおける座標変換結果であり、図27は、通常モードにおける座標変換結果である。座標回転部19を含む座標変換部12によって、図26および図27に示すような変換結果が得られるので、表示装置1は、画像データを180°回転させる場合とさせない場合とを切り換えて使用することができる。
【0193】
従来、画像データを時計回りに180°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0194】
図5は、画像データを時計回りに90°,180°,270°のいずれかの角度に回転させる座標回転部19の構成を示すブロック図である。変換の対象となるX座標およびY座標を表す信号について、図13に示したように、表示部16の画面構成は6×5画素であるので、画素数が多いX座標を基準とし、X座標を表すことの出来る最小ビット幅の3ビット構成とする。もちろん、3ビットより大きな値を設定してもかまわない。
【0195】
座標回転部19は、信号反転回路51、信号反転回路52、X座標用セレクタ53、Y座標用セレクタ54および表示モード制御回路55を備える。信号反転回路51は、変換前座標信号X〜Xの全ビットを反転させて反転座標信号iX〜iXをX座標用セレクタ53およびY座標用セレクタ54に出力する第1反転回路である。信号反転回路52は、変換前座標信号Y〜Yの全ビットを反転させて反転座標信号iY〜iYをX座標用セレクタ53およびY座標用セレクタ54に出力する第2反転回路である。信号反転回路51,52の一例は、図11に示す回路図のように構成される。
【0196】
X座標用セレクタ53は、表示モード制御回路55によって制御され、変換前座標信号X〜X,変換前座標信号Y〜Y,信号反転回路51の出力信号である反転座標信号iX〜iXおよび信号反転回路52の出力信号である反転座標信号iY〜iYのいずれかを選択し、変換後座標信号X’〜X’として出力する第1選択回路である。Y座標用セレクタ54は、表示モード制御回路55によって制御され、変換前座標信号X〜X,変換前座標信号Y〜Y,信号反転回路51の出力信号である反転座標信号iX〜iXおよび信号反転回路52の出力信号である反転座標信号iY〜iYのいずれかを選択し、変換後座標信号Y’〜Y’として出力する第2選択回路である。表示部16の画面構成が図13に示すような6×5画素の構成であるので、変換前のX座標を表す変換前座標信号はX〜Xの3ビット、変換前のY座標を表す変換前座標信号はY〜Yの3ビット、変換後のX座標を表す変換後座標信号はX’〜X’の3ビット、変換後のY座標を表す変換後座標信号はY’〜Yn’の3ビットで構成される。
【0197】
制御手段である表示モード制御回路55は、第1出力モードであって画像データを90°回転させる90°モード、第2出力モードであって画像データを270°回転させる270°モード、第3出力モードであって画像データを180°回転させる180°モードおよび第4出力モードであって画像データを回転させない通常モードの4種類の表示モードについてX座標用セレクタ53およびY座標用セレクタ54の制御信号を出力して制御する。
【0198】
90°モードの場合、X座標用セレクタ53は、表示モード制御回路55の制御によって、第1ビットデータである変換前座標信号X〜X,第2ビットデータである変換前座標信号Y〜Y,反転第1ビットデータである反転座標信号iX〜iXおよび反転第2ビットデータである反転座標信号iY〜iYのうち、反転座標信号iY〜iYを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ54は、表示モード制御回路55の制御によって、変換前座標信号X〜X,変換前座標信号Y〜Y,反転座標信号iX〜iXおよび反転座標信号iY〜iYのうち、変換前座標信号X〜Xを選択し、変換後座標信号Y’〜Y’として出力する。
【0199】
270°モードの場合、X座標用セレクタ53は、表示モード制御回路55の制御によって、変換前座標信号X〜X,変換前座標信号Y〜Y,反転座標信号iX〜iXおよび反転座標信号iY〜iYのうち、変換前座標信号Y〜Yを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ54は、表示モード制御回路55の制御によって、変換前座標信号X〜X,変換前座標信号Y〜Y,反転座標信号iX〜iXおよび反転座標信号iY〜iYのうち、反転座標信号iX〜iXを選択し、変換後座標信号Y’〜Y’として出力する。
【0200】
180°モードの場合、X座標用セレクタ53は、表示モード制御回路55の制御によって、変換前座標信号X〜X,変換前座標信号Y〜Y,反転座標信号iX〜iXおよび反転座標信号iY〜iYのうち、反転座標信号iX〜iXを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ54は、表示モード制御回路55の制御によって、変換前座標信号X〜X,変換前座標信号Y〜Y,反転座標信号iX〜iXおよび反転座標信号iY〜iYのうち、反転座標信号iY〜iYを選択し、変換後座標信号Y’〜Y’として出力する。
【0201】
通常モードの場合、X座標用セレクタ53は、表示モード制御回路55の制御によって、変換前座標信号X〜X,変換前座標信号Y〜Y,反転座標信号iX〜iXおよび反転座標信号iY〜iYのうち、変換前座標信号X〜Xを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ54は、表示モード制御回路55の制御によって、変換前座標信号X〜X,変換前座標信号Y〜Y,反転座標信号iX〜iXおよび反転座標信号iY〜iYのうち、変換前座標信号Y〜Yを選択し、変換後座標信号Y’〜Y’として出力する。画像データを回転させないのでX座標、Y座標とも変換前と変換後とが同じである。
【0202】
90°モードの座標変換前の画像データは、図17に示す図であり、90°回転させた画像データは、図18に示す図である。また、270°モードの座標変換前の画像データは、図20に示す図であり、270°回転させた画像データは、図21に示す図である。また、180°モードの座標変換前の画像データは、図22に示す図であり、180°回転させた画像データは、図22に示す図である。
【0203】
まず、90°モードが選択されたときの具体的な処理について説明する。表示する画像データは、図19に示す画像データ(A,B,C,Dの4画素からなる。)を想定する。
【0204】
また図19は、正しい方向から見た場合の画像データの向きを示しており、90°モードでは、ユーザの左側にいる人が正しい方向で画像データを見ることができるように、画像データを90°回転させる。
【0205】
まず、描画部11が座標変換前の画素位置EB,EC,FC,GCに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置EBを描画開始座標としてA(X,Y)=A(001,100)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(010,100)、C(X,Y)=C(010,101)、D(X,Y)=D(010,110)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0206】
画素Aについて、変換前座標がA(001,100)であるので、変換前座標信号X〜XはX(001)、変換前座標信号Y〜YはY(100)である。入力された変換前座標信号X(001)は、信号反転回路51、X座標用セレクタ53およびY座標用セレクタ54に入力される。入力された変換前座標信号Y(100)は、信号反転回路52、X座標用セレクタ53およびY座標用セレクタ54に入力される。信号反転回路51では、変換前座標信号X(001)の全ビットが反転され、反転座標信号iXiXiX(110)としてX座標用セレクタ53およびY座標用セレクタ54に入力される。信号反転回路52では、変換前座標信号Y(100)の全ビットが反転され、反転座標信号iYiYiY(011)としてX座標用セレクタ53およびY座標用セレクタ54に入力される。
【0207】
90°モードで動作しているので、表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、反転座標信号iYiYiY(011)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(001)を選択して出力する。
【0208】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(001,100)を、変換後座標A(011,001)に変換して座標アドレス変換部13に出力する。
【0209】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(100)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(010)、変換前座標信号Y(100)、反転座標信号iXiXiX(101)および反転座標信号iYiYiY(011)のうち、反転座標信号iYiYiY(011)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)、変換前座標信号Y(100)、反転座標信号iXiXiX(101)および反転座標信号iYiYiY(011)のうち、変換前座標信号X(010)を選択して出力する。
【0210】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(010,100)を、変換後座標B(011,010)に変換して座標アドレス変換部13に出力する。
【0211】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(101)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(010)、変換前座標信号Y(101)、反転座標信号iXiXiX(101)および反転座標信号iYiYiY(010)のうち、反転座標信号iYiYiY(010)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)、変換前座標信号Y(101)、反転座標信号iXiXiX(101)および反転座標信号iYiYiY(010)のうち、変換前座標信号X(010)を選択して出力する。
【0212】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(010,101)を、変換後座標C(010,010)に変換して座標アドレス変換部13に出力する。
【0213】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(110)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(010)、変換前座標信号Y(110)、反転座標信号iXiXiX(101)および反転座標信号iYiYiY(001)のうち、反転座標信号iYiYiY(001)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)、変換前座標信号Y(110)、反転座標信号iXiXiX(101)および反転座標信号iYiYiY(001)のうち、変換前座標信号X(010)を選択して出力する。
【0214】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(010,110)を、変換後座標D(001,010)に変換して座標アドレス変換部13に出力する。
【0215】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに90°回転させた画像データを表示することができる。
【0216】
270°モードが選択されたときの具体的な処理について説明する。表示する画像データは、図19に示す画像データ(A,B,C,Dの4画素からなる。)である。また図19は、正しい方向から見た場合の画像データの方向を示しており、270°モードでは、ユーザの右側にいる人が正しい方向で画像データを見ることができるように、画像データを270°回転させる。
【0217】
まず、描画部11が座標変換前の画素位置CE,CF,DF,EFに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置CEを描画開始座標としてA(X,Y)=A(100,010)が設定される。描画開始座標は、座標変換後に画像データが、図21に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(101,010)、C(X,Y)=C(101,011)、D(X,Y)=D(101,100)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0218】
画素Aについて、変換前座標がA(100,010)であるので、変換前座標信号X〜XはX(100)、変換前座標信号Y〜YはY(010)である。入力された変換前座標信号X(100)は、信号反転回路51、X座標用セレクタ53およびY座標用セレクタ54に入力される。入力された変換前座標信号Y(010)は、信号反転回路52、X座標用セレクタ53およびY座標用セレクタ54に入力される。
【0219】
信号反転回路51では、変換前座標信号X(100)の全ビットが反転され、反転座標信号iXiXiX(011)としてX座標用セレクタ53およびY座標用セレクタ54に入力される。信号反転回路52では、変換前座標信号Y(010)の全ビットが反転され、反転座標信号iYiYiY(101)としてX座標用セレクタ53およびY座標用セレクタ54に入力される。
【0220】
270°モードで動作しているので、表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号Y(010)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(011)を選択して出力する。
【0221】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(100,010)を、変換後座標A(010,011)に変換して座標アドレス変換部13に出力する。
【0222】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(010)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(101)、変換前座標信号Y(010)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(101)のうち、変換前座標信号Y(010)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(101)、変換前座標信号Y(010)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(101)のうち、反転座標信号iXiXiX(010)を選択して出力する。
【0223】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(101,010)を、変換後座標B(010,010)に変換して座標アドレス変換部13に出力する。
【0224】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(011)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(101)、変換前座標信号Y(011)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(100)のうち、変換前座標信号Y(011)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(101)、変換前座標信号Y(011)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(100)のうち、反転座標信号iXiXiX(010)を選択して出力する。
【0225】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(101,011)を、変換後座標C(011,010)に変換して座標アドレス変換部13に出力する。
【0226】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(100)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(101)、変換前座標信号Y(100)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(011)のうち、変換前座標信号Y(100)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(101)、変換前座標信号Y(100)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(011)のうち、反転座標信号iXiXiX(010)を選択して出力する。
【0227】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(101,100)を、変換後座標D(100,010)に変換して座標アドレス変換部13に出力する。
【0228】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに270°回転させた画像データを表示することができる。
【0229】
180°モードが選択されたときの具体的な処理について説明する。表示する画像データは、図19に示す画像データ(A,B,C,Dの4画素からなる。)である。また図19は、ユーザが見た場合の正しい方向を示しており、180°モードでは、ユーザの向かい側にいる人が正しい方向で画像データを見ることができるように、画像データを180°回転させる。
【0230】
まず、描画部11が座標変換前の画素位置EE,EF,FF,GFに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置EEを描画開始座標としてA(X,Y)=A(100,100)が設定される。描画開始座標は、座標変換後に画像データが、図23に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(101,100)、C(X,Y)=C(101,101)、D(X,Y)=D(101,110)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0231】
画素Aについて、変換前座標がA(100,100)であるので、変換前座標信号X〜XはX(100)、変換前座標信号Y〜YはY(100)である。入力された変換前座標信号X(100)は、信号反転回路51、X座標用セレクタ53およびY座標用セレクタ54に入力される。入力された変換前座標信号Y(100)は、信号反転回路52、X座標用セレクタ53およびY座標用セレクタ54に入力される。信号反転回路51では、変換前座標信号X(100)の全ビットが反転され、反転座標信号iXiXiX(011)としてX座標用セレクタ53およびY座標用セレクタ54に入力される。信号反転回路52では、変換前座標信号Y(100)の全ビットが反転され、反転座標信号iYiYiY(011)としてX座標用セレクタ53およびY座標用セレクタ54に入力される。
【0232】
180°モードで動作しているので、表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、反転座標信号iXiXiX(011)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、反転座標信号iYiYiY(011)を選択して出力する。
【0233】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(100,100)を、変換後座標A(011,011)に変換して座標アドレス変換部13に出力する。
【0234】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(100)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(101)、変換前座標信号Y(100)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(011)のうち、反転座標信号iXiXiX(010)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(101)、変換前座標信号Y(100)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(011)のうち、反転座標信号iYiYiY(011)を選択して出力する。
【0235】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(101,100)を、変換後座標B(010,011)に変換して座標アドレス変換部13に出力する。
【0236】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(101)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(101)、変換前座標信号Y(101)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(010)のうち、反転座標信号iXiXiX(010)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(101)、変換前座標信号Y(101)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(010)のうち、反転座標信号iYiYiY(010)を選択して出力する。
【0237】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(101,101)を、変換後座標C(010,010)に変換して座標アドレス変換部13に出力する。
【0238】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(110)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(101)、変換前座標信号Y(110)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(001)のうち、反転座標信号iXiXiX(010)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(101)、変換前座標信号Y(110)、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(001)のうち、反転座標信号iYiYiY(001)を選択して出力する。
【0239】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(101,110)を、変換後座標D(010,001)に変換して座標アドレス変換部13に出力する。
【0240】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに180°回転させた画像データを表示することができる。
【0241】
次に、通常モードが選択されたときの具体的な処理について説明する。表示する画像データは、他のモードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。
【0242】
まず、描画部11が座標変換前の画素位置BC,BD,CD,DDに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置BCを描画開始座標としてA(X,Y)=A(010,001)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(011,001)、C(X,Y)=C(011,010)、D(X,Y)=D(011,011)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0243】
画素Aについて、変換前座標がA(010,001)であるので、変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(001)である。入力された変換前座標信号X(010)は、信号反転回路51、X座標用セレクタ53およびY座標用セレクタ54に入力される。入力された変換前座標信号Y(001)は、信号反転回路52、X座標用セレクタ53およびY座標用セレクタ54に入力される。信号反転回路51では、変換前座標信号X(010)の全ビットが反転され、反転座標信号iXiXiX(101)としてX座標用セレクタ53およびY座標用セレクタ54に入力される。信号反転回路52では、変換前座標信号Y(001)の全ビットが反転され、反転座標信号iYiYiY(110)としてX座標用セレクタ53およびY座標用セレクタ54に入力される。
【0244】
通常モードで動作しているので、表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(010)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(001)を選択して出力する。
【0245】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(010,001)を変換後座標A(010,001)として座標アドレス変換部13に出力する。
【0246】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(001)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(011)、変換前座標信号Y(001)、反転座標信号iXiXiX(100)および反転座標信号iYiYiY(110)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(011)、変換前座標信号Y(001)、反転座標信号iXiXiX(100)および反転座標信号iYiYiY(110)のうち、変換前座標信号Y(001)を選択して出力する。
【0247】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(011,001)を変換後座標B(011,001)として座標アドレス変換部13に出力する。
【0248】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(010)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(011)、変換前座標信号Y(010)、反転座標信号iXiXiX(100)および反転座標信号iYiYiY(101)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(011)、変換前座標信号Y(010)、反転座標信号iXiXiX(100)および反転座標信号iYiYiY(101)のうち、変換前座標信号Y(010)を選択して出力する。
【0249】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(011,010)を変換後座標C(011,010)として座標アドレス変換部13に出力する。
【0250】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(011)である。表示モード制御回路55の制御によって、X座標用セレクタ53は、変換後座標信号X’X’X’として、変換前座標信号X(011)、変換前座標信号Y(011)、反転座標信号iXiXiX(100)および反転座標信号iYiYiY(100)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ54は、変換後座標信号Y’Y’Y’として、変換前座標信号X(011)、変換前座標信号Y(011)、反転座標信号iXiXiX(100)および反転座標信号iYiYiY(100)のうち、変換前座標信号Y(011)を選択して出力する。
【0251】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(011,011)を、変換後座標D(011,011)に変換して座標アドレス変換部13に出力する。
【0252】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、回転させずに座標変換前と同様の画像データを表示することができる。
【0253】
図5に示した座標回転部19による座標変換結果は、図24〜27に示す結果と同様である。座標回転部19を含む座標変換部12によって、図24〜27に示すような変換結果が得られるので、表示装置1は、画像データを90°回転させる場合、180°回転させる場合、270°回転させる場合および回転させない場合を切り換えて使用することができる。
【0254】
従来、画像データを時計回りに90°,270°,180°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0255】
図6は、画像データを時計回りに90°回転させる座標回転部19の他の構成を示すブロック図である。変換の対象となるX座標およびY座標を表す信号については、図13に示したように、表示部16の画面構成は6×5画素であるので、画素数が多いX座標を基準とし、X座標を表すことの出来る最小ビット幅の3ビット構成とする。もちろん、3ビットより大きな値を設定してもかまわない。
【0256】
座標回転部19は、X座標用セレクタ61、Y座標用セレクタ62、信号反転回路63および表示モード制御回路64を備える。X座標用セレクタ61は、表示モード制御回路64によって制御され、変換前座標信号X〜Xと変換前座標信号Y〜Yのいずれかを選択して信号反転回路63に出力する第1選択回路である。信号反転回路63は、X座標用セレクタ61から出力された変換前座標信号X〜Xと変換前座標信号Y〜Yのいずれかを、表示モード制御回路64の制御によって反転させて変換後座標信号X’〜X’として出力する制御反転回路である。
【0257】
図12は、信号反転回路63の一例を示す回路図である。図に示すように各入力信号IN〜IN(X〜XまたはY〜Y)はそれぞれXOR回路(イクスクルーシブオア回路)に入力され、すべてのXOR回路には表示モード制御回路64から反転制御信号が入力されている。反転制御信号が0のときは、すべてのXOR回路は入力信号IN〜INをそのまま出力信号OUT〜OUT(X〜XまたはY〜Y)として出力し、反転制御信号が1のときは、すべてのXOR回路は入力信号IN〜INを反転させて出力信号OUT〜OUT(iX〜iXまたはiY〜iY)として出力する。たとえば反転制御信号が0、入力信号INが1のときは出力信号OUTは1のまま出力され、反転制御信号が1、入力信号INが1のときは出力信号OUTは0に反転されて出力される。
【0258】
Y座標用セレクタ62は、表示モード制御回路64によって制御され、変換前座標信号X〜Xと変換前座標信号Y〜Yのいずれかを選択し、変換後座標信号Y’〜Y’として出力する第2選択回路である。
【0259】
表示部16の画面構成が図13に示すような6×5画素の構成であるので、変換前のX座標を表す変換前座標信号はX〜Xの3ビット、変換前のY座標を表す変換前座標信号はY〜Yの3ビット、変換後のX座標を表す変換後座標信号はX’〜X’の3ビット、変換後のY座標を表す変換後座標信号はY’〜Yn’の3ビットで構成される。制御手段である表示モード制御回路64は、第1出力モードであって画像データを90°回転させる90°モード、および第2出力モードであって画像データを回転させない通常モードの2種類の表示モードについてX座標用セレクタ61、Y座標用セレクタ62および信号反転回路63に制御信号を出力して制御する。
【0260】
90°モードの場合、X座標用セレクタ61は、表示モード制御回路64の制御によって、第1ビットデータである変換前座標信号X〜Xまたは第2ビットデータである変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択し、信号反転回路63に出力する。信号反転回路63は、表示モード制御回路64の制御によって、変換前座標信号Y〜Yを反転して、反転第2ビットデータである反転座標信号iY〜iYを変換後座標信号X’〜X’として出力する。Y座標用セレクタ62は、表示モード制御回路64の制御によって、変換前座標信号X〜Xと変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択して変換後座標信号Y’〜Y’として出力する。
【0261】
通常モードの場合、X座標用セレクタ61は、表示モード制御回路64の制御によって、変換前座標信号X〜Xと変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択し、信号反転回路63に出力する。信号反転回路63は、表示モード制御回路64の制御によって、変換前座標信号X〜Xを反転せずに変換後座標信号X’〜X’として出力する。Y座標用セレクタ62は、表示モード制御回路64の制御によって、変換前座標信号X〜Xと変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択して変換後座標信号Y’〜Y’として出力する。画像データを回転させないのでX座標、Y座標とも変換前と変換後とが同じである。
【0262】
座標変換前および90°回転させた画像データは、それぞれ図17および図18で示した図と同様である。
【0263】
90°モードが選択されたときの具体的な処理について説明する。表示する画像データは、図19に示す画像データ(A,B,C,Dの4画素からなる。)を想定する。また図19は、正しい方向から見た場合の画像データの向きを示しており、本実施形態では、ユーザの左側にいる人が正しい方向で画像データを見ることができるように、画像データを90°回転させる。
【0264】
まず、描画部11が座標変換前の画素位置EB,EC,FC,GCに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置EBを描画開始座標としてA(X,Y)=A(001,100)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(010,100)、C(X,Y)=C(010,101)、D(X,Y)=D(010,110)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0265】
画素Aについて、変換前座標がA(001,100)であるので、変換前座標信号X〜XはX(001)、変換前座標信号Y〜YはY(100)である。入力された変換前座標信号X(001)は、X座標用セレクタ61およびY座標用セレクタ62に入力される。入力された変換前座標信号Y(100)は、X座標用セレクタ61およびY座標用セレクタ62に入力される。
【0266】
90°モードで動作しているので、表示モード制御回路64の制御によって、X座標用セレクタ61は、変換前座標信号Y(100)を選択して信号反転回路63に出力する。信号反転回路63は、変換前座標信号Y(100)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iYiYiY(011)を出力する。Y座標用セレクタ62は、変換後座標信号Y’Y’Y’として、変換前座標信号X(001)を選択して出力する。
【0267】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(001,100)を、変換後座標A(011,001)に変換して座標アドレス変換部13に出力する。
【0268】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(100)である。表示モード制御回路64の制御によって、X座標用セレクタ61は、変換前座標信号X(010)および変換前座標信号Y(100)のうち、変換前座標信号Y(100)を選択して、信号反転回路63に出力する。信号反転回路63は、変換前座標信号Y(100)の全ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iYiYiY(011)を出力する。Y座標用セレクタ62は、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)および変換前座標信号Y(100)のうち、変換前座標信号X(010)を選択して出力する。
【0269】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(010,100)を、変換後座標B(011,010)に変換して座標アドレス変換部13に出力する。
【0270】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(101)である。表示モード制御回路64の制御によって、X座標用セレクタ61は、変換前座標信号X(010)および変換前座標信号Y(101)のうち、変換前座標信号Y(101)を選択して、信号反転回路63に出力する。信号反転回路63は、変換前座標信号Y(101)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iYiYiY(010)を出力する。Y座標用セレクタ62は、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)および変換前座標信号Y(101)のうち、変換前座標信号X(010)を選択して出力する。
【0271】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(010,101)を、変換後座標C(010,010)に変換して座標アドレス変換部13に出力する。
【0272】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(110)である。表示モード制御回路64の制御によって、X座標用セレクタ61は、変換前座標信号X(010)および変換前座標信号Y(110)のうち、変換前座標信号Y(110)を選択して、信号反転回路63に出力する。信号反転回路63は、変換前座標信号Y(110)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iYiYiY(001)を出力する。Y座標用セレクタ62は、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)および変換前座標信号Y(110)のうち、変換前座標信号X(010)を選択して出力する。
【0273】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(010,110)を、変換後座標D(001,010)に変換して座標アドレス変換部13に出力する。
【0274】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに90°回転させた画像データを表示することができる。
【0275】
次に、通常モードが選択されたときの具体的な処理について説明する。表示する画像データは、90°モードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。
【0276】
まず、描画部11が座標変換前の画素位置BC,BD,CD,DDに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置BCを描画開始座標としてA(X,Y)=A(010,001)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(011,001)、C(X,Y)=C(011,010)、D(X,Y)=D(011,011)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0277】
画素Aについて、変換前座標がA(010,001)であるので、変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(001)である。入力された変換前座標信号X(010)は、X座標用セレクタ61およびY座標用セレクタ62に入力される。入力された変換前座標信号Y(001)は、X座標用セレクタ61およびY座標用セレクタ62に入力される。
【0278】
通常モードで動作しているので、表示モード制御回路64の制御によって、X座標用セレクタ61は、変換前座標信号X(010)を選択して信号反転回路63に出力する。信号反転回路63は、変換前座標信号X(010)を反転せずに、変換後座標信号X’X’X’として、変換前座標信号X(010)を出力する。Y座標用セレクタ62は、変換後座標信号Y’Y’Y’として、変換前座標信号Y(001)を選択して出力する。
【0279】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(010,001)を変換後座標A(010,001)として座標アドレス変換部13に出力する。
【0280】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(001)である。表示モード制御回路64の制御によって、X座標用セレクタ61は、変換前座標信号X(011)および変換前座標信号Y(001)のうち、変換前座標信号X(011)を選択して、信号反転回路63に出力する。信号反転回路63は、変換前座標信号X(011)を反転せずに、変換後座標信号X’X’X’として、変換前座標信号X(011)を出力する。Y座標用セレクタ62は、変換後座標信号Y’Y’Y’として、変換前座標信号X(011)および変換前座標信号Y(001)のうち、変換前座標信号Y(001)を選択して出力する。
【0281】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(011,001)を変換後座標B(011,001)として座標アドレス変換部13に出力する。
【0282】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(010)である。表示モード制御回路64の制御によって、X座標用セレクタ61は、変換前座標信号X(011)および変換前座標信号Y(010)のうち、変換前座標信号X(011)を選択して、信号反転回路63に出力する。信号反転回路63は、変換前座標信号X(011)を反転せずに、変換後座標信号X’X’X’として、変換前座標信号X(011)を出力する。Y座標用セレクタ62は、変換後座標信号Y’Y’Y’として、変換前座標信号X(011)および変換前座標信号Y(010)のうち、変換前座標信号Y(010)を選択して出力する。
【0283】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(011,010)を変換後座標C(011,010)として座標アドレス変換部13に出力する。
【0284】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(011)である。表示モード制御回路64の制御によって、X座標用セレクタ61は、変換前座標信号X(011)および変換前座標信号Y(011)のうち、変換前座標信号X(011)を選択して、信号反転回路63に出力する。信号反転回路63は、変換前座標信号X(011)を反転せずに、変換後座標信号X’X’X’として、変換前座標信号X(011)を出力する。Y座標用セレクタ62は、変換後座標信号Y’Y’Y’として、変換前座標信号X(011)および変換前座標信号Y(011)のうち、変換前座標信号Y(011)を選択して出力する。
【0285】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(011,011)を変換後座標D(011,011)として座標アドレス変換部13に出力する。
【0286】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、回転させずに座標変換前と同様の画像データを表示することができる。
【0287】
図6に示した座標回転部19による座標変換結果は図24および図27と同様である。座標回転部19を含む座標変換部12によって、図24および図27に示すような変換結果が得られるので、表示装置1は、画像データを90°回転させる場合とさせない場合とを切り換えて使用することができる。
【0288】
従来、画像データを時計回りに90°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0289】
図7は、画像データを時計回りに270°回転させる座標回転部19の他の構成を示すブロック図である。変換の対象となるX座標およびY座標を表す信号については、図13に示したように、表示部16の画面構成は6×5画素であるので、画素数が多いX座標を基準とし、X座標を表すことの出来る最小ビット幅の3ビット構成とする。もちろん、3ビットより大きな値を設定してもかまわない。
【0290】
座標回転部19は、X座標用セレクタ71、Y座標用セレクタ72、信号反転回路73および表示モード制御回路74を備える。X座標用セレクタ71は、表示モード制御回路74によって制御され、変換前座標信号X〜Xと変換前座標信号Y〜Yのいずれかを選択して、変換後座標信号X’〜X’として出力する第1選択回路である。Y座標用セレクタ72は、表示モード制御回路74によって制御され、変換前座標信号X〜Xと変換前座標信号Y〜Yのいずれかを選択し、信号反転回路73に出力する第2選択回路である。
【0291】
信号反転回路73は、Y座標用セレクタ72から出力された変換前座標信号X〜Xと変換前座標信号Y〜Yのいずれかを、表示モード制御回路74の制御によって反転させて、変換後座標信号Y’〜Y’として出力する制御反転回路である。信号反転回路63の一例は、図12に示す回路図のように構成される。表示部16の画面構成が図13に示すような6×5画素の構成であるので、変換前のX座標を表す変換前座標信号はX〜Xの3ビット、変換前のY座標を表す変換前座標信号はY〜Yの3ビット、変換後のX座標を表す変換後座標信号はX’〜X’の3ビット、変換後のY座標を表す変換後座標信号はY’〜Yn’の3ビットで構成される。
【0292】
制御手段である表示モード制御回路74は、第1出力モードであって画像データを270°回転させる270°モード、および第2出力モードであって回転させない通常モードの2種類の表示モードについてX座標用セレクタ71、Y座標用セレクタ72および信号反転回路73に制御信号を出力して制御する。
【0293】
270°モードの場合、X座標用セレクタ71は、表示モード制御回路64の制御によって、第1ビットデータである変換前座標信号X〜Xまたは第2ビットデータである変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択して、変換後座標信号X’〜X’として出力する。Y座標用セレクタ72は、表示モード制御回路74の制御によって、変換前座標信号X〜Xと変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択して、信号反転回路73に出力する。信号反転回路73は、表示モード制御回路74の制御によって、変換前座標信号X〜Xを反転して、反転第1ビットデータである反転座標信号iX〜iXを変換後座標信号Y’〜Y’として出力する。
【0294】
通常モードの場合、X座標用セレクタ71は、表示モード制御回路74の制御によって、変換前座標信号X〜Xと変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択して、変換後座標信号X’〜X’として出力する。Y座標用セレクタ72は、表示モード制御回路74の制御によって、変換前座標信号X〜Xと変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択して、信号反転回路73に出力する。信号反転回路73は、表示モード制御回路74の制御によって、変換前座標信号Y〜Yを反転せずに変換後座標信号Y’〜Y’として出力する。画像データを回転させないのでX座標、Y座標とも変換前と変換後とが同じである。
【0295】
座標変換前および270°回転させた画像データは、それぞれ図20および図21で示した図と同様である。
【0296】
270°モードが選択されたときの具体的な処理について説明する。表示する画像データは、図19に示す画像データ(A,B,C,Dの4画素からなる。)を想定する。また図19は、正しい方向から見た場合の画像データの向きを示しており、本実施形態では、ユーザの右側にいる人が正しい方向で画像データを見ることができるように、画像データを270°回転させる。
【0297】
まず、描画部11が座標変換前の画素位置CE,CF,DF,EFに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置CEを描画開始座標としてA(X,Y)=A(100,010)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(101,010)、C(X,Y)=C(101,011)、D(X,Y)=D(101,100)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0298】
画素Aについて、変換前座標がA(100,010)であるので、変換前座標信号X〜XはX(100)、変換前座標信号Y〜YはY(010)である。入力された変換前座標信号X(100)は、X座標用セレクタ71およびY座標用セレクタ72に入力される。入力された変換前座標信号Y(010)は、X座標用セレクタ71およびY座標用セレクタ72に入力される。
【0299】
270°モードで動作しているので、表示モード制御回路74の制御によって、X座標用セレクタ71は、変換後座標信号X’X’X’として、変換前座標信号Y(010)を選択して出力する。Y座標用セレクタ72は、変換前座標信号X(100)を選択して、信号反転回路73に出力する。信号反転回路73は、変換前座標信号X(100)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(011)を出力する。
【0300】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(100,010)を、変換後座標A(010,011)に変換して座標アドレス変換部13に出力する。
【0301】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(010)である。表示モード制御回路74の制御によって、X座標用セレクタ71は、変換後座標信号X’X’X’として、変換前座標信号X(101)および変換前座標信号Y(010)のうち、変換前座標信号Y(010)を選択して出力する。Y座標用セレクタ72は、変換前座標信号X(101)および変換前座標信号Y(010)のうち、変換前座標信号X(101)を選択して信号反転回路63に出力する。信号反転回路73は、変換前座標信号X(101)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(010)を出力する。
【0302】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(101,010)を、変換後座標B(010,010)に変換して座標アドレス変換部13に出力する。
【0303】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(011)である。表示モード制御回路74の制御によって、X座標用セレクタ71は、変換後座標信号X’X’X’として、変換前座標信号X(101)および変換前座標信号Y(011)のうち、変換前座標信号Y(011)を選択して出力する。Y座標用セレクタ72は、変換前座標信号X(101)および変換前座標信号Y(011)のうち、変換前座標信号X(101)を選択して信号反転回路73に出力する。信号反転回路73は、変換前座標信号X(101)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(010)を出力する。
【0304】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(101,011)を、変換後座標C(011,010)に変換して座標アドレス変換部13に出力する。
【0305】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(100)である。表示モード制御回路74の制御によって、X座標用セレクタ71は、変換後座標信号X’X’X’として、変換前座標信号X(101)および変換前座標信号Y(100)のうち、変換前座標信号Y(100)を選択して出力する。Y座標用セレクタ72は、変換前座標信号X(101)および変換前座標信号Y(100)のうち、変換前座標信号X(101)を選択して信号反転回路73に出力する。信号反転回路73は、変換前座標信号X(101)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(010)を出力する。
【0306】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(101,100)を、変換後座標D(100,010)に変換して座標アドレス変換部13に出力する。
【0307】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに270°回転させた画像データを表示することができる。
【0308】
次に、通常モードが選択されたときの具体的な処理について説明する。表示する画像データは、270°モードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。
【0309】
まず、描画部11が座標変換前の画素位置BC,BD,CD,DDに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置BCを描画開始座標としてA(X,Y)=A(010,001)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(011,001)、C(X,Y)=C(011,010)、D(X,Y)=D(011,011)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0310】
画素Aについて、変換前座標がA(010,001)であるので、変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(001)である。入力された変換前座標信号X(010)は、X座標用セレクタ71およびY座標用セレクタ72に入力される。入力された変換前座標信号Y(001)は、X座標用セレクタ71およびY座標用セレクタ72に入力される。
【0311】
通常モードで動作しているので、表示モード制御回路74の制御によって、X座標用セレクタ71は、変換後座標信号X’X’X’として、変換前座標信号X(010)を選択して出力する。Y座標用セレクタ72は、変換前座標信号Y(001)を選択して、信号反転回路73に出力する。信号反転回路73は、変換前座標信号Y(001)を反転せずに、変換後座標信号Y’Y’Y’として変換前座標信号Y(001)を出力する。
【0312】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(010,001)を変換後座標A(010,001)として座標アドレス変換部13に出力する。
【0313】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(001)である。表示モード制御回路74の制御によって、X座標用セレクタ71は、変換後座標信号X’X’X’として、変換前座標信号X(011)および変換前座標信号Y(001)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ72は、変換前座標信号X(011)および変換前座標信号Y(001)のうち、変換前座標信号Y(001)を選択して、信号反転回路73に出力する。信号反転回路73は、変換前座標信号Y(001)を反転せずに、変換後座標信号Y’Y’Y’として、変換前座標信号Y(001)を出力する。
【0314】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(011,001)を変換後座標B(011,001)として座標アドレス変換部13に出力する。
【0315】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(010)である。表示モード制御回路74の制御によって、X座標用セレクタ71は、変換後座標信号X’X’X’として、変換前座標信号X(011)および変換前座標信号Y(010)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ72は、変換前座標信号X(011)および変換前座標信号Y(010)のうち、変換前座標信号Y(010)を選択して、信号反転回路73に出力する。信号反転回路73は、変換前座標信号Y(010)を反転せずに、変換後座標信号Y’Y’Y’として、変換前座標信号Y(010)を出力する。
【0316】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(011,010)を変換後座標C(011,010)として座標アドレス変換部13に出力する。
【0317】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(011)である。表示モード制御回路74の制御によって、X座標用セレクタ71は、変換後座標信号X’X’X’として、変換前座標信号X(011)および変換前座標信号Y(011)のうち、変換前座標信号X(011)を選択して出力する。Y座標用セレクタ72は、変換前座標信号X(011)および変換前座標信号Y(011)のうち、変換前座標信号Y(011)を選択して、信号反転回路73に出力する。信号反転回路73は、変換前座標信号Y(011)を反転せずに、変換後座標信号Y’Y’Y’として、変換前座標信号Y(011)を出力する。
【0318】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(011,011)を変換後座標D(011,011)として座標アドレス変換部13に出力する。
【0319】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、回転させずに座標変換前と同様の画像データを表示することができる。
【0320】
図7に示した座標回転部19による座標変換結果は図25および図27と同様である。座標回転部19を含む座標変換部12によって、図25および図27に示すような変換結果が得られるので、表示装置1は、画像データを270°回転させる場合とさせない場合とを切り換えて使用することができる。
【0321】
従来、画像データを時計回りに270°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0322】
図8は、画像データを時計回りに180°回転させる座標回転部19の他の構成を示すブロック図である。変換の対象となるX座標およびY座標を表す信号については、図13に示したように、表示部16の画面構成は6×5画素であるので、画素数が多いX座標を基準とし、X座標を表すことのできる最小ビット幅の3ビット構成とする。もちろん、3ビットより大きな値を設定してもかまわない。
【0323】
座標回転部19は、信号反転回路81、信号反転回路82および表示モード制御回路83を備える。信号反転回路81は、入力された変換前座標信号X〜Xを、表示モード制御回路83の制御によって反転させて、変換後座標信号X’〜X’として出力する第1制御反転回路である。信号反転回路82は、入力された変換前座標信号Y〜Yを、表示モード制御回路83の制御によって反転させて、変換後座標信号Y’〜Y’として出力する第2制御反転回路である。信号反転回路81,82の一例は図12に示す回路図のように構成される。表示部16の画面構成が図13に示すような6×5画素の構成であるので、変換前のX座標を表す変換前座標信号はX〜Xの3ビット、変換前のY座標を表す変換前座標信号はY〜Yの3ビット、変換後のX座標を表す変換後座標信号はX’〜X’の3ビット、変換後のY座標を表す変換後座標信号はY’〜Yn’の3ビットで構成される。
【0324】
制御手段である表示モード制御回路83は、第1出力モードであって画像データを180°回転させる180°モード、および第2出力モードであって画像データを回転させない通常モードの2種類の表示モードについて信号反転回路81および信号回転回路82に制御信号を出力して制御する。
【0325】
180°モードの場合、信号反転回路81は、表示モード制御回路83の制御によって、第1ビットデータである変換前座標信号X〜Xを反転して、反転第1ビットデータである反転座標信号iX〜iXを変換後座標信号X’〜X’として出力する。信号反転回路82は、表示モード制御回路83の制御によって、第2ビットデータである変換前座標信号Y〜Yを反転して、反転第2ビットデータである反転座標信号iY〜iYを変換後座標信号Y’〜Y’として出力する。
【0326】
通常モードの場合、信号反転回路81は、表示モード制御回路83の制御によって、入力された変換前座標信号X〜Xを反転させずに、変換後座標信号X’〜X’として出力する。信号反転回路82は、表示モード制御回路83の制御によって、入力された変換前座標信号Y〜Yを反転させずに、変換後座標信号Y’〜Y’として出力する。画像データを回転させないのでX座標、Y座標とも変換前と変換後とが同じである。
【0327】
座標変換前および180°回転させた画像データは、それぞれ図22および図23で示した図と同様である。
【0328】
180°モードが選択されたときの具体的な処理について説明する。表示する画像データは、図19に示す画像データ(A,B,C,Dの4画素からなる。)を想定する。また図19は、正しい方向から見た場合の画像データの向きを示しており、本実施形態では、ユーザの向かい側にいる人が正しい方向で画像データを見ることができるように、画像データを180°回転させる。
【0329】
まず、描画部11が座標変換前の画素位置EE,EF,FF,GFに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置EEを描画開始座標としてA(X,Y)=A(100,100)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(101,100)、C(X,Y)=C(101,101)、D(X,Y)=D(101,110)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0330】
画素Aについて、変換前座標がA(100,100)であるので、変換前座標信号X〜XはX(100)、変換前座標信号Y〜YはY(100)である。入力された変換前座標信号X(100)は、信号反転回路81に入力され、入力された変換前座標信号Y(100)は、信号反転回路82に入力される。
【0331】
180°モードで動作しているので、表示モード制御回路83の制御によって、信号反転回路81は、変換前座標信号X(100)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iXiXiX(011)を出力する。信号反転回路82は、変換前座標信号Y(100)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iYiYiY(011)を出力する。
【0332】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(100,100)を、変換後座標A(011,011)に変換して座標アドレス変換部13に出力する。
【0333】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(100)である。表示モード制御回路83の制御によって、信号反転回路81は、変換前座標信号X(101)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iXiXiX(010)を出力する。信号反転回路82は、変換前座標信号Y(100)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iYiYiY(011)を出力する。
【0334】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(101,100)を、変換後座標B(010,011)に変換して座標アドレス変換部13に出力する。
【0335】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(101)である。表示モード制御回路83の制御によって、信号反転回路81は、変換前座標信号X(101)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iXiXiX(010)を出力する。信号反転回路82は、変換前座標信号Y(101)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iYiYiY(010)を出力する。
【0336】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(101,101)を、変換後座標C(010,010)に変換して座標アドレス変換部13に出力する。
【0337】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(110)である。表示モード制御回路83の制御によって、信号反転回路81は、変換前座標信号X(101)の全ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iXiXiX(010)を出力する。信号反転回路82は、変換前座標信号Y(110)の全ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iYiYiY(001)を出力する。
【0338】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(101,110)を、変換後座標D(010,001)に変換して座標アドレス変換部13に出力する。
【0339】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに180°回転させた画像データを表示することができる。
【0340】
次に、通常モードが選択されたときの具体的な処理について説明する。表示する画像データは、180°モードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。
【0341】
まず、描画部11が座標変換前の画素位置BC,BD,CD,DDに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置BCを描画開始座標としてA(X,Y)=A(010,001)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(011,001)、C(X,Y)=C(011,010)、D(X,Y)=D(011,011)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0342】
画素Aについて、変換前座標がA(010,001)であるので、変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(001)である。入力された変換前座標信号X(010)は、信号反転回路81に入力され、入力された変換前座標信号Y(001)は、信号反転回路82に入力される。
【0343】
通常モードで動作しているので、表示モード制御回路83の制御によって、信号反転回路81は、変換前座標信号X(010)を反転せずに、変換後座標信号X’X’X’として変換前座標信号X(010)を出力する。信号反転回路82は、変換前座標信号Y(001)を反転せずに、変換後座標信号Y’Y’Y’として変換前座標信号Y(001)を出力する。
【0344】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(010,001)を変換後座標A(010,001)として座標アドレス変換部13に出力する。
【0345】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(001)である。表示モード制御回路83の制御によって、信号反転回路81は、変換前座標信号X(011)を反転せずに、変換後座標信号X’X’X’として、変換前座標信号X(011)を出力する。信号反転回路82は、変換前座標信号Y(001)を反転せずに、変換後座標信号Y’Y’Y’として、変換前座標信号Y(001)を出力する。
【0346】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(011,001)を変換後座標B(011,001)として座標アドレス変換部13に出力する。
【0347】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(010)である。表示モード制御回路83の制御によって、信号反転回路81は、変換前座標信号X(011)を反転せずに、変換後座標信号X’X’X’として、変換前座標信号X(011)を出力する。信号反転回路82は、変換前座標信号Y(010)を反転せずに、変換後座標信号Y’Y’Y’として、変換前座標信号Y(010)を出力する。
【0348】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(011,010)を変換後座標C(011,010)として座標アドレス変換部13に出力する。
【0349】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(011)である。表示モード制御回路83の制御によって、信号反転回路81は、変換前座標信号X(011)を反転せずに、変換後座標信号X’X’X’として、変換前座標信号X(011)を出力する。信号反転回路82は、変換前座標信号Y(011)を反転せずに、変換後座標信号Y’Y’Y’として、変換前座標信号Y(011)を出力する。
【0350】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(011,011)を変換後座標D(011,011)として座標アドレス変換部13に出力する。
【0351】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、回転させずに座標変換前と同様の画像データを表示することができる。
【0352】
図8に示した座標回転部19による座標変換結果は図26および図27と同様である。座標回転部19を含む座標変換部12によって、図26および図27に示すような変換結果が得られるので、表示装置1は、画像データを180°回転させる場合とさせない場合とを切り換えて使用することができる。
【0353】
従来、画像データを時計回りに180°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0354】
図9は、画像データを時計回りに90°,180°,270°のいずれかの角度に回転させる座標回転部19の他の構成を示すブロック図である。変換の対象となるX座標およびY座標を表す信号については、図13に示したように、表示部16の画面構成は6×5画素であるので、画素数が多いX座標を基準とし、X座標を表すことのできる最小ビット幅の3ビット構成とする。もちろん、3ビットより大きな値を設定してもかまわない。
【0355】
座標回転部19は、X座標用セレクタ91、Y座標用セレクタ92、信号反転回路93、信号反転回路94および表示モード制御回路95を備える。X座標用セレクタ91は、表示モード制御回路95によって制御され、変換前座標信号X〜Xまたは変換前座標信号Y〜Yのいずれかを選択し、信号反転回路93に出力する第1選択回路である。信号反転回路93は、X座標用セレクタ91から出力された変換前座標信号X〜Xまたは変換前座標信号Y〜Yのいずれかを、表示モード制御回路95の制御によって反転させて、変換後座標信号X’〜X’として出力する第1制御反転回路である。
【0356】
Y座標用セレクタ92は、表示モード制御回路95によって制御され、変換前座標信号X〜Xまたは変換前座標信号Y〜Yのいずれかを選択し、信号反転回路94に出力する第2選択回路である。信号反転回路94は、Y座標用セレクタ92から出力された変換前座標信号X〜Xまたは変換前座標信号Y〜Yのいずれかを、表示モード制御回路95の制御によって反転させて、変換後座標信号Y’〜Y’として出力する第2制御反転回路である。
【0357】
信号反転回路93,94の一例は図12に示す回路図のように構成される。表示部16の画面構成が図13に示すような6×5画素の構成であるので、変換前のX座標を表す変換前座標信号はX〜Xの3ビット、変換前のY座標を表す変換前座標信号はY〜Yの3ビット、変換後のX座標を表す変換後座標信号はX’〜X’の3ビット、変換後のY座標を表す変換後座標信号はY’〜Yn’の3ビットで構成される。
【0358】
制御手段である表示モード制御回路95は、第1出力モードであって画像データを90°回転させる90°モード、第2出力モードであって画像データを270°回転させる270°モード、第3出力モードであって画像データを180°回転させる180°モードおよび第4出力モードであって画像データを回転させない通常モードの4種類の表示モードについてX座標用セレクタ91、Y座標用セレクタ92、信号反転回路93および信号反転回路94の動作を制御する。
【0359】
90°モードの場合、X座標用セレクタ91は、表示モード制御回路95の制御によって、第1ビットデータである変換前座標信号X〜Xまたは第2ビットデータである変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択して、信号反転回路93に出力する。信号反転回路93は、表示モード制御回路95の制御によって、変換前座標信号Y〜Yを反転して、反転第2ビットデータである反転座標信号iY〜iYを変換後座標信号X’〜X’として出力する。Y座標用セレクタ92は、表示モード制御回路95の制御によって、変換前座標信号X〜Xまたは変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択して、信号反転回路94に出力する。信号反転回路94は、表示モード制御回路95の制御によって、変換前座標信号X〜Xを反転せずに変換後座標信号Y’〜Y’として出力する。
【0360】
270°モードの場合、X座標用セレクタ91は、表示モード制御回路95の制御によって、変換前座標信号X〜Xまたは変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択して、信号反転回路93に出力する。信号反転回路93は、表示モード制御回路95の制御によって、変換前座標信号Y〜Yを反転せずに変換後座標信号X’〜X’として出力する。Y座標用セレクタ92は、表示モード制御回路95の制御によって、変換前座標信号X〜Xまたは変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択して、信号反転回路94に出力する。信号反転回路94は、表示モード制御回路95の制御によって、変換前座標信号X〜Xを反転して、反転第1ビットデータである反転座標信号iX〜iYを変換後座標信号Y’〜Y’として出力する。
【0361】
180°モードの場合、X座標用セレクタ91は、表示モード制御回路95の制御によって、変換前座標信号X〜Xまたは変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択して、信号反転回路93に出力する。信号反転回路93は、表示モード制御回路95の制御によって、変換前座標信号X〜Xを反転して、反転座標信号iX〜iXを変換後座標信号X’〜X’として出力する。Y座標用セレクタ92は、表示モード制御回路95の制御によって、変換前座標信号X〜Xまたは変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択して、信号反転回路94に出力する。信号反転回路94は、表示モード制御回路95の制御によって、変換前座標信号Y〜Yを反転して、反転座標信号iY〜iYを変換後座標信号Y’〜Y’として出力する。
【0362】
通常モードの場合、X座標用セレクタ91は、表示モード制御回路95の制御によって、変換前座標信号X〜Xまたは変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択して、信号反転回路93に出力する。信号反転回路93は、表示モード制御回路95の制御によって、変換前座標信号X〜Xを反転せずに変換後座標信号X’〜X’として出力する。Y座標用セレクタ92は、表示モード制御回路95の制御によって、変換前座標信号X〜Xまたは変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択して、信号反転回路94に出力する。信号反転回路94は、表示モード制御回路95の制御によって、変換前座標信号Y〜Yを反転せずに変換後座標信号Y’〜Y’として出力する。画像データを回転させないのでX座標、Y座標とも変換前と変換後とが同じである。
【0363】
90°モードの座標変換前の画像データは、図17に示す図であり、90°回転させた画像データは、図18に示す図である。また、270°モードの座標変換前の画像データは、図20に示す図であり、270°回転させた画像データは、図21に示す図である。また、180°モードの座標変換前の画像データは、図22に示す図であり、180°回転させた画像データは、図22に示す図である。
【0364】
90°モードが選択されたときの具体的な処理について説明する。表示する画像データは、図19に示す画像データ(A,B,C,Dの4画素からなる。)である。また図19は、正しい方向から見た場合の画像データの向きを示しており、90°モードでは、ユーザの左側にいる人が正しい方向で画像データを見ることができるように、画像データを90°回転させる。
【0365】
まず、描画部11が座標変換前の画素位置EB,EC,FC,GCに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置CEを描画開始座標としてA(X,Y)=A(001,100)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(010,100)、C(X,Y)=C(010,101)、D(X,Y)=D(010,110)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0366】
画素Aについて、変換前座標がA(001,100)であるので、変換前座標信号X〜XはX(001)、変換前座標信号Y〜YはY(100)である。入力された変換前座標信号X(001)は、X座標用セレクタ91およびY座標用セレクタ92に入力される。入力された変換前座標信号Y(100)は、X座標用セレクタ91およびY座標用セレクタ92に入力される。
【0367】
90°モードで動作しているので、表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号Y(100)を選択して、信号反転回路93に出力する。信号反転回路93は、変換前座標信号Y(100)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iYiYiY(011)を出力する。Y座標用セレクタ92は、変換前座標信号X(001)を選択して、信号反転回路94に出力する。信号反転回路94は、変換前座標信号X(001)を反転せずに、変換後座標信号Y’Y’Y’として出力する。
【0368】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(001,100)を、変換後座標A(011,001)に変換して座標アドレス変換部13に出力する。
【0369】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(100)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(010)および変換前座標信号Y(100)のうち、変換前座標信号Y(100)を選択して出力する。信号反転回路93は、変換前座標信号Y(100)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iYiYiY(011)を出力する。Y座標用セレクタ92は、変換前座標信号X(010)および変換前座標信号Y(100)のうち、変換前座標信号X(010)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号X(010)を反転せずに、変換後座標信号Y’Y’Y’として出力する。
【0370】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(010,100)を、変換後座標B(011,010)に変換して座標アドレス変換部13に出力する。
【0371】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(101)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(010)および変換前座標信号Y(101)のうち、変換前座標信号Y(101)を選択して出力する。信号反転回路93は、変換前座標信号Y(101)の全ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iYiYiY(010)を出力する。Y座標用セレクタ92は、変換前座標信号X(010)および変換前座標信号Y(101)のうち、変換前座標信号X(010)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号X(010)を反転せずに、変換後座標信号Y’Y’Y’として出力する。
【0372】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(010,101)を、変換後座標C(010,010)に変換して座標アドレス変換部13に出力する。
【0373】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(110)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(010)および変換前座標信号Y(110)のうち、変換前座標信号Y(110)を選択して出力する。信号反転回路93は、変換前座標信号Y(110)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iYiYiY(001)を出力する。Y座標用セレクタ92は、変換前座標信号X(010)および変換前座標信号Y(110)のうち、変換前座標信号X(010)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号X(010)を反転せずに、変換後座標信号Y’Y’Y’として出力する。
【0374】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(010,110)を、変換後座標D(001,010)に変換して座標アドレス変換部13に出力する。
【0375】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに90°回転させた画像データを表示することができる。
【0376】
次に、270°モードが選択されたときの具体的な処理について説明する。表示する画像データは、90°モードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。また図19は、正しい方向から見た場合の画像データの向きを示しており、270°モードでは、ユーザの右側にいる人が正しい方向で画像データを見ることができるように、画像データを270°回転させる。
【0377】
まず、描画部11が座標変換前の画素位置CE,CF,DF,EFに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置CEを描画開始座標としてA(X,Y)=A(100,010)が設定される。描画開始座標は、座標変換後に画像データが、図21に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(101,010)、C(X,Y)=C(101,011)、D(X,Y)=D(101,100)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。
【0378】
画素Aについて、変換前座標がA(100,010)であるので、変換前座標信号X〜XはX(100)、変換前座標信号Y〜YはY(010)である。入力された変換前座標信号X(100)は、X座標用セレクタ91およびY座標用セレクタ92に入力される。入力された変換前座標信号Y(010)は、X座標用セレクタ91およびY座標用セレクタ92に入力される。
【0379】
270°モードで動作しているので、表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号Y(010)を選択して、信号反転回路93に出力する。信号反転回路93は、変換前座標信号Y(010)を反転せずに、変換後座標信号X’X’X’として出力する。Y座標用セレクタ92は、変換前座標信号X(100)を選択して、信号反転回路94に出力する。信号反転回路94は、変換前座標信号X(100)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(011)を出力する。
【0380】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(100,010)を、変換後座標A(010,011)に変換して座標アドレス変換部13に出力する。
【0381】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(010)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(101)および変換前座標信号Y(010)のうち、変換前座標信号Y(010)を選択して出力する。信号反転回路93は、変換前座標信号Y(010)を反転せずに、変換後座標信号X’X’X’として出力する。Y座標用セレクタ92は、変換前座標信号X(101)および変換前座標信号Y(010)のうち、変換前座標信号X(101)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号X(101)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(010)を出力する。
【0382】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(101,010)を、変換後座標B(010,010)に変換して座標アドレス変換部13に出力する。
【0383】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(011)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(101)および変換前座標信号Y(011)のうち、変換前座標信号Y(011)を選択して出力する。信号反転回路93は、変換前座標信号Y(011)を反転せずに、変換後座標信号X’X’X’として出力する。Y座標用セレクタ92は、変換前座標信号X(101)および変換前座標信号Y(011)のうち、変換前座標信号X(101)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号X(101)の全ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(010)を出力する。
【0384】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(101,011)を、変換後座標C(011,010)に変換して座標アドレス変換部13に出力する。
【0385】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(100)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(101)および変換前座標信号Y(100)のうち、変換前座標信号Y(100)を選択して出力する。信号反転回路93は、変換前座標信号Y(100)を反転せずに、変換後座標信号X’X’X’として出力する。Y座標用セレクタ92は、変換前座標信号X(101)および変換前座標信号Y(100)のうち、変換前座標信号X(101)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号X(101)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iXiXiX(010)を出力する。
【0386】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(101,100)を、変換後座標D(100,010)に変換して座標アドレス変換部13に出力する。
【0387】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに270°回転させた画像データを表示することができる。
【0388】
180°モードが選択されたときの具体的な処理について説明する。表示する画像データは、その他のモードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。また図19は、正しい方向から見た場合の画像データの向きを示しており、180°モードでは、ユーザの向かい側にいる人が正しい方向で画像データを見ることができるように、画像データを180°回転させる。
【0389】
まず、描画部11が座標変換前の画素位置EE,EF,FF,GFに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置EEを描画開始座標としてA(X,Y)=A(100,100)が設定される。描画開始座標は、座標変換後に画像データが、図21に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(101,100)、C(X,Y)=C(101,101)、D(X,Y)=D(101,110)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0390】
画素Aについて、変換前座標がA(100,100)であるので、変換前座標信号X〜XはX(100)、変換前座標信号Y〜YはY(100)である。入力された変換前座標信号X(100)は、X座標用セレクタ91およびY座標用セレクタ92に入力される。入力された変換前座標信号Y(100)は、X座標用セレクタ91およびY座標用セレクタ92に入力される。
【0391】
180°モードで動作しているので、表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(100)を選択して、信号反転回路93に出力する。信号反転回路93は、変換前座標信号X(100)の全ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iXiXiX(011)を出力する。Y座標用セレクタ92は、変換前座標信号Y(100)を選択して、信号反転回路94に出力する。信号反転回路94は、変換前座標信号Y(100)の全ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iYiYiY(011)を出力する。
【0392】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(100,100)を、変換後座標A(011,011)に変換して座標アドレス変換部13に出力する。
【0393】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(100)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(101)および変換前座標信号Y(100)のうち、変換前座標信号X(101)を選択して出力する。信号反転回路93は、変換前座標信号X(101)の各ビットを反転し、変換後座標信号X’X’X’として、iXiXiX(010)を出力する。Y座標用セレクタ92は、変換前座標信号X(101)および変換前座標信号Y(100)のうち、変換前座標信号Y(100)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号Y(100)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iYiYiY(011)を出力する。
【0394】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(101,100)を、変換後座標B(010,011)に変換して座標アドレス変換部13に出力する。
【0395】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(101)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(101)および変換前座標信号Y(101)のうち、変換前座標信号X(101)を選択して出力する。信号反転回路93は、変換前座標信号X(101)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iXiXiX(010)を出力する。Y座標用セレクタ92は、変換前座標信号X(101)および変換前座標信号Y(101)のうち、変換前座標信号Y(101)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号Y(101)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iYiYiY(010)を出力する。
【0396】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(101,101)を、変換後座標C(010,010)に変換して座標アドレス変換部13に出力する。
【0397】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(110)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(101)および変換前座標信号Y(110)のうち、変換前座標信号X(101)を選択して出力する。信号反転回路93は、変換前座標信号X(101)の各ビットを反転し、変換後座標信号X’X’X’として、反転座標信号iXiXiX(010)を出力する。Y座標用セレクタ92は、変換前座標信号X(101)および変換前座標信号Y(110)のうち、変換前座標信号Y(110)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号Y(110)の各ビットを反転し、変換後座標信号Y’Y’Y’として、反転座標信号iYiYiY(001)を出力する。
【0398】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(101,110)を、変換後座標D(010,001)に変換して座標アドレス変換部13に出力する。
【0399】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに180°回転させた画像データを表示することができる。
【0400】
通常モードが選択されたときの具体的な処理について説明する。表示する画像データは、その他のモードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。
【0401】
まず、描画部11が座標変換前の画素位置BC,BD,CD,DDに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置EEを描画開始座標としてA(X,Y)=A(010,001)が設定される。描画開始座標は、座標変換後に画像データが、図21に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(011,001)、C(X,Y)=C(011,010)、D(X,Y)=D(011,011)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0402】
画素Aについて、変換前座標がA(010,001)であるので、変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(001)である。入力された変換前座標信号X(010)は、X座標用セレクタ91およびY座標用セレクタ92に入力される。入力された変換前座標信号Y(001)は、X座標用セレクタ91およびY座標用セレクタ92に入力される。
【0403】
通常モードで動作しているので、表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(010)を選択して、信号反転回路93に出力する。信号反転回路93は、変換前座標信号X(010)を反転せずに、変換後座標信号X’X’X’として出力する。Y座標用セレクタ92は、変換前座標信号Y(001)を選択して、信号反転回路94に出力する。信号反転回路94は、変換前座標信号Y(001)を反転せずに、変換後座標信号Y’Y’Y’として出力する。
【0404】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(010,001)を、変換後座標A(010,001)として座標アドレス変換部13に出力する。
【0405】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(001)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(011)および変換前座標信号Y(001)のうち、変換前座標信号X(011)を選択して出力する。信号反転回路93は、変換前座標信号X(011)を反転せずに、変換後座標信号X’X’X’として出力する。Y座標用セレクタ92は、変換前座標信号X(011)および変換前座標信号Y(001)のうち、変換前座標信号Y(001)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号Y(001)を反転せずに、変換後座標信号Y’Y’Y’としてを出力する。
【0406】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(011,001)を、変換後座標B(011,001)として座標アドレス変換部13に出力する。
【0407】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(010)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(011)および変換前座標信号Y(010)のうち、変換前座標信号X(011)を選択して出力する。信号反転回路93は、変換前座標信号X(011)を反転せずに、変換後座標信号X’X’X’として出力する。Y座標用セレクタ92は、変換前座標信号X(011)および変換前座標信号Y(010)のうち、変換前座標信号Y(010)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号Y(010)を反転せずに、変換後座標信号Y’Y’Y’として出力する。
【0408】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(011,010)を、変換後座標C(011,010)として座標アドレス変換部13に出力する。
【0409】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(011)である。表示モード制御回路95の制御によって、X座標用セレクタ91は、変換前座標信号X(011)および変換前座標信号Y(011)のうち、変換前座標信号X(011)を選択して出力する。信号反転回路93は、変換前座標信号X(011)を反転せずに、変換後座標信号X’X’X’として出力する。Y座標用セレクタ92は、変換前座標信号X(011)および変換前座標信号Y(011)のうち、変換前座標信号Y(011)を選択して信号反転回路94に出力する。信号反転回路94は、変換前座標信号Y(011)を反転せずに、変換後座標信号Y’Y’Y’として出力する。
【0410】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(011,011)を、変換後座標D(011,011)として座標アドレス変換部13に出力する。
【0411】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、回転させずに座標変換前と同様の画像データを表示することができる。
【0412】
図9に示した座標回転部19による座標変換結果は図24〜27と同様である。座標回転部19を含む座標変換部12によって、図24〜27に示すような変換結果が得られるので、表示装置1は、画像データを90°回転させる場合、270°回転させる場合、180°回転させる場合および回転させない場合を切り換えて使用することができる。
【0413】
従来、画像データを時計回りに90°,270°,180°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、反転回路および選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0414】
図10は、画像データを時計回りに90°,180°,270°のいずれかの角度に回転させる座標回転部19の他の構成を示すブロック図である。変換の対象となるX座標およびY座標を表す信号については、図13に示したように、表示部16の画面構成は6×5画素であるので、画素数が多いX座標を基準とし、X座標を表すことのできる最小ビット幅の3ビット構成とする。もちろん、3ビットより大きな値を設定してもかまわない。
【0415】
座標回転部19は、信号反転回路101、信号反転回路102、X座標用セレクタ103、Y座標用セレクタ104および表示モード制御回路105を備える。信号反転回路101は、入力された変換前座標信号X〜Xを表示モード制御回路105の制御によって反転させて、X座標用セレクタ103およびY座標用セレクタ104に出力する第1制御反転回路である。信号反転回路102は、入力された変換前座標信号Y〜Yを表示モード制御回路105の制御によって反転させて、X座標用セレクタ103およびY座標用セレクタ104に出力する第2制御反転回路である。
【0416】
X座標用セレクタ103は、表示モード制御回路105によって制御され、信号反転回路101または信号反転回路102から出力された座標信号のいずれかを選択し、変換後座標信号X’〜X’として出力する第1選択回路である。Y座標用セレクタ104は、表示モード制御回路105によって制御され、信号反転回路101または信号反転回路102から出力された座標信号のいずれかを選択し、変換後座標信号Y’〜Y’として出力する第2選択回路である。表示部16の画面構成が図13に示すような6×5画素の構成であるので、変換前のX座標を表す変換前座標信号はX〜Xの3ビット、変換前のY座標を表す変換前座標信号はY〜Yの3ビット、変換後のX座標を表す変換後座標信号はX’〜X’の3ビット、変換後のY座標を表す変換後座標信号はY’〜Yn’の3ビットで構成される。
【0417】
制御手段である表示モード制御回路105は、第1出力モードであって画像データを90°回転させる90°モード、第2出力モードであって画像データを270°回転させる270°モード、第3出力モードであって画像データを180°回転させる180°モードおよび第4出力モードであって画像データを回転させない通常モードの4種類の表示モードについて信号反転回路101、信号反転回路102、X座標用セレクタ103およびY座標用セレクタ104に制御信号を出力して制御する。
【0418】
90°モードの場合、信号反転回路101は、表示モード制御回路105の制御によって、第1ビットデータである変換前座標信号X〜Xを反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、表示モード制御回路105の制御によって、第2ビットデータえある変換前座標信号Y〜Yを反転し、反転第2ビットデータである反転座標信号iY〜iYをX座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、表示モード制御回路105の制御によって、信号反転回路101から出力された変換前座標信号X〜Xと信号反転回路102から出力された反転座標信号iY〜iYのうち、反転座標信号iY〜iYを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ104は、表示モード制御回路105の制御によって、信号反転回路101から出力された変換前座標信号X〜Xと信号反転回路102から出力された反転座標信号iY〜iYのうち、変換前座標信号X〜Xを選択し、変換後座標信号Y’〜Y’として出力する。
【0419】
270°モードの場合、信号反転回路101は、表示モード制御回路105の制御によって、変換前座標信号X〜Xを反転し、反転第1ビットデータである反転座標信号iX〜iXをX座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、表示モード制御回路105の制御によって、変換前座標信号Y〜Yを反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、表示モード制御回路105の制御によって、信号反転回路101から出力された反転座標信号iX〜iXと信号反転回路102から出力された変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ104は、表示モード制御回路105の制御によって、信号反転回路101から出力された反転座標信号iX〜iXと信号反転回路102から出力された変換前座標信号Y〜Yのうち、反転座標信号iX〜iXを選択し、変換後座標信号Y’〜Y’として出力する。
【0420】
180°モードの場合、信号反転回路101は、表示モード制御回路105の制御によって、変換前座標信号X〜Xを反転し、反転座標信号iX〜iXをX座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、表示モード制御回路105の制御によって、変換前座標信号Y〜Yを反転し、反転座標信号iY〜iYをX座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、表示モード制御回路105の制御によって、信号反転回路101から出力された反転座標信号iX〜iXと信号反転回路102から出力された反転座標信号iY〜iYのうち、反転座標信号iX〜iXを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ104は、表示モード制御回路105の制御によって、信号反転回路101から出力された反転座標信号iX〜iXと信号反転回路102から出力された反転座標信号iY〜iYのうち、反転座標信号iY〜iYを選択し、変換後座標信号Y’〜Y’として出力する。
【0421】
通常モードの場合、信号反転回路101は、表示モード制御回路105の制御によって、変換前座標信号X〜Xを反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、表示モード制御回路105の制御によって、変換前座標信号Y〜Yを反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、表示モード制御回路105の制御によって、信号反転回路101から出力された変換前座標信号X〜Xと信号反転回路102から出力された変換前座標信号Y〜Yのうち、変換前座標信号X〜Xを選択し、変換後座標信号X’〜X’として出力する。Y座標用セレクタ104は、表示モード制御回路105の制御によって、信号反転回路101から出力された変換前座標信号X〜Xと信号反転回路102から出力された変換前座標信号Y〜Yのうち、変換前座標信号Y〜Yを選択し、変換後座標信号Y’〜Y’として出力する。
【0422】
90°モードの座標変換前の画像データは、図17に示す図であり、90°回転させた画像データは、図18に示す図である。また、270°モードの座標変換前の画像データは、図20に示す図であり、270°回転させた画像データは、図21に示す図である。また、180°モードの座標変換前の画像データは、図22に示す図であり、180°回転させた画像データは、図22に示す図である。
【0423】
90°モードが選択されたときの具体的な処理について説明する。表示する画像データは、図19に示す画像データ(A,B,C,Dの4画素からなる。)である。また図19は、正しい方向から見た場合の画像データの向きを示しており、90°モードでは、ユーザの左側にいる人が正しい方向で画像データを見ることができるように、画像データを90°回転させる。
【0424】
まず、描画部11が座標変換前の画素位置EB,EC,FC,GCに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置CEを描画開始座標としてA(X,Y)=A(001,100)が設定される。描画開始座標は、座標変換後に画像データが、図18に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(010,100)、C(X,Y)=C(010,101)、D(X,Y)=D(010,110)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0425】
画素Aについて、変換前座標がA(001,100)であるので、変換前座標信号X〜XはX(001)、変換前座標信号Y〜YはY(100)である。入力された変換前座標信号X(001)は、信号反転回路101に入力される。入力された変換前座標信号Y(100)は、信号反転回路102に入力される。
【0426】
90°モードで動作しているので、表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(001)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(100)の各ビットを反転し、反転座標信号iYiYiY(011)をX座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、反転座標信号iYiYiY(011)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、変換前座標信号X(001)を選択し、変換後座標信号Y’Y’Y’として出力する。
【0427】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(001,100)を、変換後座標A(011,001)に変換して座標アドレス変換部13に出力する。
【0428】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(100)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(010)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(100)の各ビットを反転し、反転座標信号iYiYiY(011)をX座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、変換前座標信号X(010)および反転座標信号iYiYiY(011)のうち、変換後座標信号X’X’X’として、反転座標信号Y(011)を選択して出力する。Y座標用セレクタ104は、変換前座標信号X(010)および反転座標信号iYiYiY(011)のうち、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)を選択して信号反転回路94に出力する。
【0429】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(010,100)を、変換後座標B(011,010)に変換して座標アドレス変換部13に出力する。
【0430】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(101)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(010)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(101)の各ビットを反転し、反転座標信号iYiYiY(010)をX座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、変換前座標信号X(010)および反転座標信号iYiYiY(010)のうち、変換後座標信号X’X’X’として、反転座標信号iYiYiY(010)を選択して出力する。Y座標用セレクタ104は、変換前座標信号X(010)および反転座標信号iYiYiY(010)のうち、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)を選択して信号反転回路94に出力する。
【0431】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(010,101)を、変換後座標C(010,010)に変換して座標アドレス変換部13に出力する。
【0432】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(110)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(010)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(110)の各ビットを反転し、反転座標信号iYiYiY(001)をX座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、変換前座標信号X(010)および反転座標信号iYiYiY(001)のうち、変換後座標信号X’X’X’として、反転座標信号iYiYiY(001)を選択して出力する。Y座標用セレクタ104は、変換前座標信号X(010)および反転座標信号iYiYiY(001)のうち、変換後座標信号Y’Y’Y’として、変換前座標信号X(010)を選択して信号反転回路105に出力する。
【0433】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(010,110)を、変換後座標D(001,010)に変換して座標アドレス変換部13に出力する。
【0434】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに90°回転させた画像データを表示することができる。
【0435】
次に、270°モードが選択されたときの具体的な処理について説明する。表示する画像データは、90°モードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。また図19は、正しい方向から見た場合の画像データの向きを示しており、270°モードでは、ユーザの右側にいる人が正しい方向で画像データを見ることができるように、画像データを270°回転させる。
【0436】
まず、描画部11が座標変換前の画素位置CE,CF,DF,EFに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置CEを描画開始座標としてA(X,Y)=A(100,010)が設定される。描画開始座標は、座標変換後に画像データが、図21に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(101,010)、C(X,Y)=C(101,011)、D(X,Y)=D(101,100)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0437】
画素Aについて、変換前座標がA(100,010)であるので、変換前座標信号X〜XはX(100)、変換前座標信号Y〜YはY(010)である。入力された変換前座標信号X(100)は、信号反転回路101に入力され、入力された変換前座標信号Y(010)は、信号反転回路102に入力される。
【0438】
270°モードで動作しているので、表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(100)の各ビットを反転し、反転座標信号iXiXiX(011)をX座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(010)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、変換前座標信号Y(010)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、反転座標信号iXiXiX(011)を選択し、変換後座標信号Y’Y’Y’として出力する。
【0439】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(100,010)を、変換後座標A(010,011)に変換して座標アドレス変換部13に出力する。
【0440】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(010)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(101)の各ビットを反転し、反転座標信号iXiXiX(010)をX座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(010)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、反転座標信号iXiXiX(010)および変換前座標信号Y(010)のうち、変換前座標信号Y(010)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、反転座標信号iXiXiX(010)および変換前座標信号Y(010)のうち、反転座標信号iXiXiX(010)を選択し、変換後座標信号Y’Y’Y’として出力する。
【0441】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(101,010)を、変換後座標B(010,010)に変換して座標アドレス変換部13に出力する。
【0442】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(011)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(101)の各ビットを反転し、反転座標信号iXiXiX(010)をX座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(011)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、反転座標信号iXiXiX(010)および変換前座標信号Y(011)のうち、変換前座標信号Y(011)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、反転座標信号iXiXiX(010)および変換前座標信号Y(011)のうち、反転座標信号iXiXiX(010)を選択し、変換後座標信号Y’Y’Y’として出力する。
【0443】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(101,011)を、変換後座標C(011,010)に変換して座標アドレス変換部13に出力する。
【0444】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(100)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(101)の各ビットを反転し、反転座標信号iXiXiX(010)をX座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(100)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、反転座標信号iXiXiX(010)および変換前座標信号Y(100)のうち、変換前座標信号Y(100)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、反転座標信号iXiXiX(010)および変換前座標信号Y(100)のうち、反転座標信号iXiXiX(010)を選択し、変換後座標信号Y’X’X’として出力する。
【0445】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(101,100)を、変換後座標D(100,010)に変換して座標アドレス変換部13に出力する。
【0446】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに270°回転させた画像データを表示することができる。
【0447】
180°モードが選択されたときの具体的な処理について説明する。表示する画像データは、その他のモードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。また図19は、正しい方向から見た場合の画像データの向きを示しており、180°モードでは、ユーザの向かい側にいる人が正しい方向で画像データを見ることができるように、画像データを180°回転させる。
【0448】
まず、描画部11が座標変換前の画素位置EE,EF,FF,GFに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置EEを描画開始座標としてA(X,Y)=A(100,100)が設定される。描画開始座標は、座標変換後に画像データが、図21に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(101,100)、C(X,Y)=C(101,101)、D(X,Y)=D(101,110)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0449】
画素Aについて、変換前座標がA(100,100)であるので、変換前座標信号X〜XはX(100)、変換前座標信号Y〜YはY(100)である。入力された変換前座標信号X(100)は、信号反転回路101に入力され、入力された変換前座標信号Y(100)は、信号反転回路102に入力される。
【0450】
180°モードで動作しているので、表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(100)の各ビットを反転し、反転座標信号iXiXiX(011)をX座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(100)の各ビットを反転し、反転座標信号iYiYiY(011)をX座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、反転座標信号iXiXiX(011)を、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、反転座標信号iYiYiY(011)を、変換後座標信号Y’Y’Y’として出力する。
【0451】
以上の座標変換により、座標変換部19は、入力された変換前座標A(100,100)を、変換後座標A(011,011)に変換して座標アドレス変換部13に出力する。
【0452】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(100)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(101)の各ビットを反転し、反転座標信号iXiXiX(010)をX座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(100)の全ビットを反転し、反転座標信号iYiYiY(011)をX座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(011)のうち、反転座標信号iXiXiX(010)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(011)のうち、反転座標信号iYiYiY(011)を選択し、変換後座標信号Y’Y’Y’として出力する。
【0453】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(101,100)を、変換後座標B(010,011)に変換して座標アドレス変換部13に出力する。
【0454】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(101)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(101)の各ビットを反転し、反転座標信号iXiXiX(010)をX座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(101)の各ビットを反転し、反転座標信号iYiYiY(010)をX座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(010)のうち、反転座標信号iXiXiX(010)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(010)のうち、反転座標信号iYiYiY(010)を選択し、変換後座標信号Y’Y’Y’として出力する。
【0455】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(101,101)を、変換後座標C(010,010)に変換して座標アドレス変換部13に出力する。
【0456】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(101)、変換前座標信号Y〜YはY(110)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(101)の全ビットを反転し、反転座標信号iXiXiX(010)をX座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(110)の全ビットを反転し、反転座標信号iYiYiY(001)をX座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(001)のうち、反転座標信号iXiXiX(010)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、反転座標信号iXiXiX(010)および反転座標信号iYiYiY(001)のうち、反転座標信号iYiYiY(001)を選択し、変換後座標信号Y’Y’Y’として出力する。
【0457】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(101,110)を、変換後座標D(010,001)に変換して座標アドレス変換部13に出力する。
【0458】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、座標変換前に対して、時計回りに180°回転させた画像データを表示することができる。
【0459】
通常モードが選択されたときの具体的な処理について説明する。表示する画像データは、その他のモードと同じ図19に示す画像データ(A,B,C,Dの4画素からなる。)である。
【0460】
まず、描画部11が座標変換前の画素位置BC,BD,CD,DDに、画像データ(A,B,C,D)を表示させるように変換前座標を生成する。開始座標指定レジスタ18には、画素位置EEを描画開始座標としてA(X,Y)=A(010,001)が設定される。描画開始座標は、座標変換後に画像データが、図21に示した表示部16で表示可能な6×5画素領域内に表示できるように選ばれる。この描画開始座標に基づいて、B(X,Y)=B(011,001)、C(X,Y)=C(011,010)、D(X,Y)=D(011,011)が生成される。描画部11は、生成した変換前座標を座標変換部19に出力するとともに、各画素の画素値をフレームメモリ14に出力する。座標回転部19では、入力された変換前座標の座標変換を行う。
【0461】
画素Aについて、変換前座標がA(010,001)であるので、変換前座標信号X〜XはX(010)、変換前座標信号Y〜YはY(001)である。入力された変換前座標信号X(010)は、信号反転回路101に入力され、入力された変換前座標信号Y(001)は、信号反転回路102に入力される。
【0462】
通常モードで動作しているので、表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(010)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(001)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、変換前座標信号X(010)を、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、変換前座標信号Y(001)を、変換後座標信号Y’Y’Y’として出力する。
【0463】
以上の座標変換によって、座標変換部19は、入力された変換前座標A(010,001)を、変換後座標A(010,001)に変換して座標アドレス変換部13に出力する。
【0464】
画素Bについても画素Aと同様に、座標変換部19が座標変換を行う。画素Bの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(001)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(011)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(001)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、変換前座標信号X(011)および変換前座標信号Y(001)のうち、変換前座標信号X(011)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、変換前座標信号X(011)および変換前座標信号Y(001)のうち、変換前座標信号Y(001)を選択し、変換後座標信号Y’Y’Y’として出力する。
【0465】
以上の座標変換によって、座標変換部19は、入力された変換前座標B(011,001)を、変換後座標B(011,001)として座標アドレス変換部13に出力する。
【0466】
画素Cについても画素Aと同様に、座標変換部19が座標変換を行う。画素Cの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(010)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(011)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(010)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、変換前座標信号X(011)および変換前座標信号Y(010)のうち、変換前座標信号X(011)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、変換前座標信号X(011)および変換前座標信号Y(010)のうち、変換前座標信号Y(010)を選択し、変換後座標信号Y’Y’Y’として出力する。
【0467】
以上の座標変換によって、座標変換部19は、入力された変換前座標C(011,010)を、変換後座標C(011,010)として座標アドレス変換部13に出力する。
【0468】
画素Dについても画素Aと同様に、座標変換部19が座標変換を行う。画素Dの変換前座標信号X〜XはX(011)、変換前座標信号Y〜YはY(011)である。表示モード制御回路105の制御によって、信号反転回路101は、変換前座標信号X(011)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。信号反転回路102は、変換前座標信号Y(011)を反転せずに、X座標用セレクタ103およびY座標用セレクタ104に出力する。X座標用セレクタ103は、変換前座標信号X(011)および変換前座標信号Y(011)のうち、変換前座標信号X(011)を選択し、変換後座標信号X’X’X’として出力する。Y座標用セレクタ104は、変換前座標信号X(011)および変換前座標信号Y(011)のうち、変換前座標信号Y(011)を選択し、変換後座標信号Y’Y’Y’として出力する。
【0469】
以上の座標変換によって、座標変換部19は、入力された変換前座標D(011,011)を、変換後座標D(011,011)に変換して座標アドレス変換部13に出力する。
【0470】
以上のようにして座標変換部19から出力されたそれぞれの変換後座標は、座標アドレス変換部13でフレームメモリ14のアドレスに変換されてフレームメモリ14に出力される。フレームメモリ14は、座標アドレス変換部13から出力されたアドレスを書き込み可能とし、タイミング制御部15の制御によって、書き込み可能となったアドレスに対応するように、描画部11から出力された画素値を書き込む。表示部16は、フレームメモリ14から画素値を読み出し、画素値を読み出したアドレスに対応する座標に表示する。これによって、回転させずに座標変換前と同様の画像データを表示することができる。
【0471】
図10に示した座標回転部19による座標変換結果は図24〜27と同様である。座標回転部19を含む座標変換部12によって、図24〜27に示すような変換結果が得られるので、表示装置1は、画像データを90°回転させる場合、270°回転させる場合、180°回転させる場合および回転させない場合を切り換えて使用することができる。
【0472】
従来、画像データを時計回りに90°,270°,180°回転させるには、加算回路および減算回路などの演算回路を有する座標変換装置を用いている。これに対して本発明は、座標のビット反転とX座標およびY座標の入れ替えによって画像データの回転を可能にしている。また、これを実現するために、加算回路および減算回路などを含まず、ビット反転回路および出力選択回路を用いているので、回路規模を縮小することが可能で、コストを低減することができるとともに変換処理を高速化することができる。
【0473】
【発明の効果】
以上のように本発明によれば、画像データを回転して表示する場合の座標変換のようなデータ変換が可能であり、これを実現するために、加算回路および減算回路などを含まず、ビット反転回路および出力選択回路を用いているので、回路規模を縮小し、コストを低減することができるとともに変換処理を高速化することができる。
【0474】
また本発明によれば、画像データの回転角度を切り換えて表示させることが可能であり、表示装置の回路規模を縮小し、コストを低減することができるとともに変換処理を高速化することができる。
【図面の簡単な説明】
【図1】本発明の実施の一形態である表示装置1の構成を示すブロック図である。
【図2】座標回転部19の構成を示すブロック図である。
【図3】座標回転部19の構成を示すブロック図である。
【図4】座標回転部19の構成を示すブロック図である。
【図5】座標回転部19の構成を示すブロック図である。
【図6】座標回転部19の構成を示すブロック図である。
【図7】座標回転部19の構成を示すブロック図である。
【図8】座標回転部19の構成を示すブロック図である。
【図9】座標回転部19の構成を示すブロック図である。
【図10】座標回転部19の構成を示すブロック図である。
【図11】信号反転回路21の一例を示す回路図である。
【図12】信号反転回路21の一例を示す回路図である。
【図13】表示部16の画面構成例を示す図である。
【図14】表示部16の各座標とフレームメモリ14のアドレスとの対応を示す図である。
【図15】表示装置1を回転させた場合の表示部16の各座標とフレームメモリ14のアドレスとの対応を示す図である。
【図16】X座標およびY座標とも3ビット幅に設定した場合の画素配列を表す図である。
【図17】90°回転させる場合の座標変換前の画像データを示す図である。
【図18】90°回転させた画像データを示す図である。
【図19】表示させる画像データを示す図である。
【図20】270°回転させる場合の座標変換前の画像データを示す図である。
【図21】270°回転させた画像データを示す図である。
【図22】180°回転させる場合の座標変換前の画像データを示す図である。
【図23】180°回転させた画像データを示す図である。
【図24】90°モードにおける座標変換結果を示す図である。
【図25】270°モードにおける座標変換結果を示す図である。
【図26】180°モードにおける座標変換結果を示す図である。
【図27】通常モードにおける座標変換結果を示す図である。
【図28】従来の表示装置240の構成を示すブロック図である。
【符号の説明】
1,240 表示装置
11,241 描画部
12,242 座標変換部
13,243 座標アドレス変換部
14,244 フレームメモリ
15,245 タイミング制御部
16,246 表示部
17,247 座標生成部
18,248 開始座標指定レジスタ
19,249 座標回転部
20,24A 表示モード設定レジスタ
21,31,41,42,51,52,63,73,81,82,93,94,101,102 信号反転回路
22,32,43,53,61,71,91,103 X座標用セレクタ
23,33,44,54,62,72,92,104 Y座標用セレクタ
24,34,45,55,64,74,83,95,105 表示モード制御回路
24B 第1座標補正部
24C 第2座標補正部
24D 回転基準座標指定レジスタ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a data conversion device that converts input bit data and outputs new bit data, a display control device including the data conversion device, and performing coordinate conversion by the data conversion device, and a display device.
[0002]
[Prior art]
When an image displayed on a display (display device) of a mobile terminal device such as a mobile phone or a PDA (Personal Digital Assistance) is viewed by a person other than the user operating the terminal device, for example, a person in front of the user May see. In such a case, it is very difficult for a person on the opposite side of the user to view the image from the opposite direction by simply operating the terminal device to display the image on the display. If the display is rotated by 180 ° together with the terminal device, a person at the opposite side of the user can view the image data from a correct direction. However, in a case where a plurality of images are switched and displayed, if the terminal device is kept rotated by 180 °, the terminal device is turned in the opposite direction as viewed from the user, and the image switching operation becomes troublesome.
[0003]
Conventionally, in order to solve such a problem, a user performs a predetermined operation such as a key operation on the terminal device to rotate the image at 180 ° or another angle, and the direction of the display and the terminal device is changed. Is displayed without changing the display. In general, many display devices have different vertical / horizontal dimension ratios. Therefore, an image may be rotated and displayed so that the vertical / horizontal ratio of the image to be displayed matches the vertical / horizontal ratio of the display.
[0004]
The rotation process of the image displayed on the display will be described. When displaying an image on a display, image data stored in a recording medium such as a memory is temporarily stored in a frame memory, and the image data read from the frame memory is displayed on the display. The frame memory is used in personal computers, PDAs, and the like as a memory for displaying image data of a bitmap image on a display. In particular, when the display is a liquid crystal display device of a color liquid crystal or a black and white gradation, a plurality of bits of information are required for one pixel of the display device. Each address of the frame memory often corresponds to the coordinates of each pixel of the display device on a one-to-one basis. Displaying image data on a display device is realized by calculating the address of the frame memory corresponding to the coordinates of the pixel position where the image data is to be displayed, and writing the image data to be displayed at that address. .
[0005]
Since the correspondence between the coordinates of each pixel of the display device and the address of the frame memory is constant, it is necessary to write image data rotated in advance by coordinate conversion or the like to the frame memory to rotate and display the image. is there. In order to realize such a function, image data rotated by 90 °, image data rotated by 180 ° or image data rotated by 270 ° is stored in advance together with the original image data that is not rotated, or is displayed. When you do the rotation by calculating.
[0006]
Storing a plurality of rotated image data requires a large amount of storage capacity. Therefore, usually, calculation is performed in accordance with the rotation angle when displaying, and new image data is often generated.
[0007]
The rotation of the image data can be calculated by software or hardware. In a mobile terminal device or the like, the rotation processing is calculated by software. However, as the size of the display device is increased and the resolution is increased, the amount of image data to be displayed is increased, and the amount of calculation is increased. There is a problem that a load, that is, a load on a control unit such as a CPU (Central Processing Unit) or a microcomputer increases.
[0008]
On the other hand, by performing the calculation of the rotation processing by hardware, the load can be distributed and the load on the control unit can be reduced.
[0009]
FIG. 28 is a block diagram showing a conventional display device 240 having a function of rotating image data. Here, the image data is a bitmap image, and includes a plurality of pixel values and coordinates at which each pixel value is to be displayed. Further, since each coordinate is relative to the drawing start coordinate, when the drawing start coordinate is designated, all the coordinates are determined. In the drawing unit 241, the coordinate generation unit 247 generates pre-conversion coordinates based on the drawing start coordinates specified by the start coordinate specification register 248 and outputs the generated coordinates to the coordinate conversion unit 242. Further, it outputs a pixel value to the frame memory 244 corresponding to the coordinates. The coordinate conversion unit 242 is configured to rotate the coordinate rotation unit 249, the display mode setting register 24A, the first coordinate correction unit 24B, the second coordinate correction unit 24C, and the first and second coordinate correction units 24B and 24C to specify rotation reference coordinates. It is composed of a reference coordinate designation register 24D.
[0010]
The first coordinate correction unit 24B receives the rotation center coordinates, which are the reference coordinates set in the rotation reference coordinate designation register 24D, and converts the pre-conversion coordinates input from the drawing unit 241 into the rotation reference coordinate designation register 24D. Subtracts the value of the coordinates specified in, and moves the rotation center coordinates to the origin. A rotation angle such as 90 ° or 180 ° is set in advance in the display mode setting register 24A according to a user's instruction or the like, and the coordinate rotation unit 249 performs a coordinate rotation calculation according to the setting of the display mode setting register 24A. The second coordinate correction unit 24C adds the value of the coordinates specified in the rotation reference coordinate specification register 24D to the coordinates input from the coordinate rotation unit 249, and outputs the added coordinates to the coordinate address conversion unit 243. The coordinate address conversion unit 243 converts the converted coordinates input from the coordinate conversion unit 242 into a corresponding address of the frame memory 244.
[0011]
The timing control unit 245 is connected to the drawing unit 241, the coordinate conversion unit 242, the coordinate address conversion unit 243, the frame memory 244, and the display unit 246, and outputs a control signal for controlling the operation timing. In particular, when a pixel value is written in the frame memory 244, coordinates corresponding to the pixel value need to be subjected to coordinate conversion and address conversion as described above. Therefore, the address output from the coordinate address conversion unit 243 and the drawing unit 241 The timing control unit 245 controls the timing so that the correspondence with the output pixel value is maintained. The display unit 246 reads a pixel value from each address of the frame memory 244 according to a control signal from the timing control unit 245, and displays an image at coordinates corresponding to the address.
[0012]
The display control device described in Japanese Patent Application Laid-Open No. Hei 7-325575 performs image rotation processing by hardware. The display control device uses a multi-port VRAM (Video Random Access Memory) as a frame memory, and stores the rotated image data in the multi-port VRAM by changing an address output from the CPU by an address conversion circuit. The angles to rotate correspond to 90 °, 180 °, and 270 °. The address conversion circuit includes a subtraction circuit for each of the conversion of the row address and the conversion of the column address.
[0013]
[Problems to be solved by the invention]
As described above, a coordinate conversion circuit provided in a conventional display device and a display control device for performing image rotation processing requires a subtractor and an adder. Arithmetic circuits such as a subtractor and an adder have a very large circuit scale with an increase in the amount of image data to be operated, which increases the cost and also increases the operation time and the processing speed. There is a problem of lowering.
[0014]
SUMMARY OF THE INVENTION An object of the present invention is to provide a data conversion device capable of reducing the cost by reducing the circuit scale and performing high-speed processing, a display control device performing image rotation processing by performing coordinate conversion by the data conversion device, and the display control An object of the present invention is to provide a display device provided with the device.
[0015]
[Means for Solving the Problems]
The present invention is a data conversion device that converts input first bit data and second bit data consisting of a plurality of bits and outputs new first bit data and second bit data,
The first and second bit data are input, inverted second bit data obtained by inverting the logical value of each bit of the input second bit data are output as new first bit data, and the input second bit data is output. A first output mode in which 1-bit data is output as new second bit data as it is, an input first bit data is output as new first bit data, and an input second bit data is output as new Conversion means having a second output mode for outputting as the second bit data;
A data conversion apparatus comprising: a control unit that controls whether the conversion unit operates in a first output mode or a second output mode based on a predetermined control condition.
[0016]
Further, according to the present invention, the control means outputs a mode setting signal to the conversion means,
The conversion means,
An inverting circuit to which the second bit data is input, and inverts the logical value of each bit of the input second bit data to output inverted second bit data;
When the first bit data and the inverted second bit data are input and the first output mode is set by the mode setting signal, the inverted second bit data is output as new first bit data, and the second output mode is switched to the second output mode. A first selection circuit for outputting the first bit data as new first bit data when set;
When the first and second bit data are input and the first output mode is set by the mode setting signal, the first bit data is output as new second bit data, and when the second output mode is set And a second selection circuit that outputs the second bit data as new second bit data.
[0017]
Further, according to the present invention, the control means outputs a mode setting signal to the conversion means,
The conversion means,
First and second bit data are input, the second bit data is output when the first output mode is set by the mode setting signal, and the first bit data is output when the second output mode is set. A first selection circuit,
When bit data output from the first selection circuit is input and the first output mode is set by the mode setting signal, inverted bit data obtained by inverting the logical value of each bit of the input bit data is output. A control inverting circuit for outputting as new first bit data, and outputting the input bit data as it is as new first bit data when the second output mode is set;
When the first and second bit data are input and the first output mode is set by the mode setting signal, the input first bit data is output as new second bit data, and the second output mode is set. A second selection circuit that outputs the input second bit data as new second bit data when the input is performed.
[0018]
According to the present invention, when the control means operates the conversion means in the first output mode, the inverted second bit data obtained by inverting the logical value of each bit of the input second bit data is used as the new first bit data. While being output as bit data, the input first bit data is output as new second bit data as it is. On the other hand, when the control means causes the conversion means to operate in the second output mode, the input first bit data is output as new first bit data as it is, and the input second bit data is output as new It is output as the second bit data.
[0019]
Specific configurations of the conversion unit include the above two types of configurations. The difference between the two configurations is that the first configuration always creates inverted second bit data, whereas the second configuration creates inverted second bit data according to the output mode.
[0020]
First, in the first configuration, the second bit data and the first bit data output from the inversion circuit are input to the first selection circuit regardless of the output mode. Further, the first and second bit data are input to the second selection circuit. In the first output mode, the first selection circuit outputs inverted second bit data as new first bit data, and the second selection circuit outputs first bit data as new second bit data. In the second output mode, the first selection circuit outputs first bit data as new first bit data, and the second selection circuit outputs second bit data as new second bit data.
[0021]
On the other hand, in the second configuration, the first and second bit data are both input to the first and second selection circuits, and the output of the first selection circuit is controlled by the control inversion circuit in accordance with the output mode. The output is inverted and output as new first bit data, and the output of the second selection circuit is output as new second bit data. That is, in the first output mode, the first selection circuit outputs the second bit data, and the control inversion means to which the second bit data has been input generates inverted bit data, that is, inverted second bit data, and outputs the inverted second bit data. The 2-bit data is output as new first bit data. At this time, the second selection circuit directly outputs the first bit data as new second bit data. In the second output mode, the first selection circuit outputs the first bit data, and the control inverting circuit to which the first bit data has been input generates the new first bit data as it is without creating inverted bit data. Output as 1-bit data. At this time, the second selection circuit directly outputs the second bit data as new 2-bit data.
[0022]
Here, the first bit data and the second bit data are assumed to be an X coordinate and a Y coordinate indicating an arrangement position of each pixel value included in the image data. The X coordinate and the Y coordinate are composed of a plurality of bits.
[0023]
When the conversion means operates in the first output mode, the new X coordinate after conversion is the inverted Y coordinate with all bits inverted, and the new Y coordinate after conversion is the X coordinate before conversion. The image data that has been subjected to the coordinate conversion in this way is image data that is rotated clockwise by 90 ° with respect to before the conversion.
[0024]
When the conversion unit operates in the second output mode, the new X coordinate after conversion becomes the X coordinate before conversion, and the new Y coordinate after conversion becomes the Y coordinate before conversion. In this case, since both the X coordinate and the Y coordinate are the same before and after conversion, the image data is the same non-rotated image data as before conversion.
[0025]
Therefore, the control condition in which the conversion unit operates in the first output mode is a case where the image data is rotated clockwise by 90 °, and the control condition in which the conversion unit operates in the second output mode is a case where the image data is not rotated. Thus, when a control condition is set by the user or the like for the control means, the image data can be displayed by switching between a case where the image data is rotated clockwise by 90 ° and a case where the image data is not rotated.
[0026]
Conventionally, to rotate image data 90 degrees clockwise, a coordinate conversion device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0027]
The present invention is also a data conversion device for converting input first bit data and second bit data consisting of a plurality of bits and outputting new first bit data and second bit data,
The first and second bit data are input, the input second bit data is output as new first bit data as it is, and the logical value of each bit of the input first bit data is inverted. A first output mode in which the first bit data is output as new second bit data; a first output mode in which the input first bit data is output as new new first bit data; Conversion means having a second output mode for outputting as the second bit data;
A data conversion apparatus comprising: a control unit that controls whether the conversion unit operates in a first output mode or a second output mode based on a predetermined control condition.
[0028]
Further, according to the present invention, the control means outputs a mode setting signal to the conversion means,
The conversion means,
An inverting circuit to which the first bit data is input, and inverts the logical value of each bit of the input first bit data to output inverted first bit data;
When the first bit data and the second bit data are input and the first output mode is set by the mode setting signal, the second bit data is output as new first bit data, and the second output mode is set. A first selection circuit that outputs the first bit data as new first bit data when
When the inverted first bit data and the second bit data are input and the first output mode is set by the mode setting signal, the inverted first bit data is output as new second bit data, and the second output mode is switched to the second output mode. A second selection circuit that outputs the second bit data as new second bit data when set.
[0029]
Further, according to the present invention, the control means outputs a mode setting signal to the conversion means,
The conversion means,
First and second bit data are input, the second bit data is output when the first output mode is set by the mode setting signal, and the first bit data is output when the second output mode is set. A first selection circuit,
When the first and second bit data are input and the first output mode is set by the mode setting signal, the input first bit data is output as new second bit data, and the second output mode is set. A second selection circuit that outputs the input second bit data as new second bit data when
When the bit data output from the second selection circuit is input and the first output mode is set by the mode setting signal, the inverted bit data obtained by inverting the logical value of each bit of the input bit data is output. A control inverting circuit for outputting as new second bit data and outputting the input bit data as new second bit data as it is when the second output mode is set.
[0030]
According to the present invention, when the control means operates the conversion means in the first output mode, the input second bit data is output as new first bit data as it is, and the input first bit data is output. The inverted first bit data obtained by inverting the logical value of each bit is output as new second bit data. On the other hand, when the control means causes the conversion means to operate in the second output mode, the input first bit data is output as new first bit data as it is, and the input second bit data is output as new It is output as the second bit data.
[0031]
Specific configurations of the conversion unit include the above two types of configurations. The difference between the two configurations is that the first configuration always creates inverted first bit data, whereas the second configuration creates inverted first bit data according to the output mode.
[0032]
First, in the first configuration, first and second bit data are input to the first selection circuit. The second selection circuit receives the inverted first bit data and the second bit data output from the inversion circuit regardless of the output mode. In the first output mode, the first selection circuit outputs second bit data as new first bit data, and the second selection circuit outputs inverted first bit data as new second bit data. In the second output mode, the first selection circuit outputs first bit data as new first bit data, and the second selection circuit outputs second bit data as new second bit data.
[0033]
On the other hand, in the second configuration, the first and second bit data are both input to the first and second selection circuits, and the output of the first selection circuit is output as new first bit data. , The output of the second selection circuit is inverted by the control inversion circuit in accordance with the output mode, and is output as new second bit data. That is, in the first output mode, the second selection circuit outputs the first bit data, and the control inversion means to which the first bit data has been input generates inverted bit data, that is, inverted first bit data, and outputs the inverted first bit data. 1-bit data is output as new second bit data. At this time, the first selection circuit directly outputs the second bit data as new first bit data. In the second output mode, the second selection circuit outputs the second bit data, and the control inversion circuit to which the second bit data has been input generates the new second bit data without generating the inverted bit data. Output as 2-bit data. At this time, the first selection circuit directly outputs the first bit data as new 1-bit data.
[0034]
Here, the first bit data and the second bit data are assumed to be an X coordinate and a Y coordinate indicating an arrangement position of each pixel value included in the image data. The X coordinate and the Y coordinate are composed of a plurality of bits.
[0035]
When the conversion means operates in the first output mode, the new X coordinate after conversion is the Y coordinate before conversion, and the new Y coordinate after conversion is the inverted X coordinate in which each bit is inverted. The image data that has been subjected to the coordinate conversion in this manner is image data that is rotated 270 ° clockwise with respect to before the conversion.
[0036]
When the conversion unit operates in the second output mode, the new X coordinate after conversion becomes the X coordinate before conversion, and the new Y coordinate after conversion becomes the Y coordinate before conversion. In this case, since both the X coordinate and the Y coordinate are the same before and after conversion, the image data is the same non-rotated image data as before conversion.
[0037]
Therefore, the control condition in which the conversion means operates in the first output mode is the case where the image data is rotated clockwise by 270 °, and the control condition in which the conversion means operates in the second output mode is the case where the image data is not rotated. Thus, when a control condition is set by the user or the like for the control means, the image data can be displayed by switching between a case where the image data is rotated 270 ° clockwise and a case where the image data is not rotated.
[0038]
Conventionally, in order to rotate image data clockwise by 270 °, a coordinate transformation device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0039]
The present invention is also a data conversion device for converting input first bit data and second bit data consisting of a plurality of bits and outputting new first bit data and second bit data,
The first and second bit data are input, and inverted first bit data obtained by inverting the logical value of each bit of the input first bit data is output as new first bit data. A first output mode in which inverted second bit data obtained by inverting the logical value of each bit of the two-bit data as new second bit data, and new first bit data in which the input first bit data is used as it is And a second output mode for outputting the input second bit data as new second bit data as it is,
A data conversion apparatus comprising: a control unit that controls whether the conversion unit operates in a first output mode or a second output mode based on a predetermined control condition.
[0040]
Further, in the present invention, the control means outputs a mode setting signal to the conversion means,
The conversion means,
A first inverting circuit to which the first bit data is input, and which inverts a logical value of each bit of the input first bit data and outputs inverted first bit data;
A second inverting circuit to which the second bit data is input, and that inverts the logical value of each bit of the input second bit data and outputs inverted second bit data;
When the first bit data and the inverted first bit data are input and the first output mode is set by the mode setting signal, the inverted first bit data is output as new first bit data, and the second output mode is switched to the second output mode. A first selection circuit for outputting the first bit data as new first bit data when set;
When the second bit data and the inverted second bit data are input and the first output mode is set by the mode setting signal, the inverted second bit data is output as new second bit data, and the second output mode is switched to the second output mode. A second selection circuit that outputs the second bit data as new second bit data when set.
[0041]
Further, in the present invention, the control means outputs a mode setting signal to the conversion means,
The conversion means,
When the first bit data is input and the first output mode is set by the mode setting signal, the inverted first bit data obtained by inverting the logical value of each bit of the input first bit data is newly added to the new first bit data. A first control inverting circuit for outputting as 1-bit data and outputting the input first bit data as new first bit data as it is when the second output mode is set;
When the second bit data is input and the first output mode is set by the mode setting signal, the inverted second bit data obtained by inverting the logical value of each bit of the input second bit data is added to the new second bit data. A second control inverting circuit for outputting as 2-bit data and outputting the input second bit data as new second bit data as it is when the second output mode is set.
[0042]
According to the present invention, when the control means operates the conversion means in the first output mode, the inverted first bit data obtained by inverting the logical value of each bit of the input first bit data is used as the new first bit data. In addition to being output as bit data, inverted second bit data obtained by inverting the logical value of each bit of the input second bit data is output as new second bit data. On the other hand, when the control means causes the conversion means to operate in the second output mode, the input first bit data is output as new first bit data as it is, and the input second bit data is output as new It is output as the second bit data.
[0043]
Specific configurations of the conversion unit include the above two types of configurations. The difference between the two configurations is that the first configuration always generates inverted first bit data and inverted second bit data, whereas the second configuration outputs inverted first bit data and inverted second bit data in an output mode. And no selector is used.
[0044]
First, in the first configuration, the first selection circuit receives the inverted first bit data output from the first inversion circuit and the first bit data regardless of the output mode. The second selection circuit receives the inverted second bit data output from the second inversion circuit and the second bit data regardless of the output mode. In the first output mode, the first selection circuit outputs inverted first bit data as new first bit data, and the second selection circuit outputs inverted second bit data as new second bit data. In the second output mode, the first selection circuit outputs first bit data as new first bit data, and the second selection circuit outputs second bit data as new second bit data.
[0045]
On the other hand, in the second configuration, the first bit data is inverted by the first control inversion circuit according to the output mode and output as new first bit data, and the second bit data is output according to the output mode. It is inverted by the two-control inversion circuit and output as new second bit data. That is, in the first output mode, the first control inverting means to which the first bit data is input creates inverted bit data, that is, inverted first bit data, and outputs the inverted first bit data as new first bit data. Then, the second control inverting means to which the second bit data is input creates inverted bit data, that is, inverted second bit data, and outputs the inverted second bit data as new second bit data. In the second output mode, the first control inversion circuit to which the first bit data is input outputs the first bit data as new first bit data without generating inverted bit data, and the second bit data is output. The input second control inversion circuit outputs the second bit data as new second bit data without creating inverted bit data.
[0046]
Here, the first bit data and the second bit data are assumed to be an X coordinate and a Y coordinate indicating an arrangement position of each pixel value included in the image data. The X coordinate and the Y coordinate are composed of a plurality of bits.
[0047]
When the conversion means operates in the first output mode, the new X coordinate after conversion is an inverted X coordinate in which each bit is inverted, and the new Y coordinate after conversion is an inverted X coordinate in which each bit is inverted. This is the Y coordinate. The image data subjected to the coordinate conversion in this manner is image data that is rotated clockwise by 180 ° with respect to the image data before the conversion.
[0048]
When the conversion unit operates in the second output mode, the new X coordinate after conversion becomes the X coordinate before conversion, and the new Y coordinate after conversion becomes the Y coordinate before conversion. In this case, since both the X coordinate and the Y coordinate are the same before and after conversion, the image data is the same non-rotated image data as before conversion.
[0049]
Therefore, the control condition in which the conversion means operates in the first output mode is a case where the image data is rotated clockwise by 180 °, and the control condition in which the conversion means operates in the second output mode is a case where the image data is not rotated. Thus, when a control condition is set by the user or the like for the control means, it is possible to switch between displaying the image data clockwise by 180 ° and not rotating the image data by 180 °.
[0050]
Conventionally, to rotate image data clockwise by 180 °, a coordinate conversion device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0051]
The present invention is also a data conversion device for converting input first bit data and second bit data consisting of a plurality of bits and outputting new first bit data and second bit data,
Conversion means to which the first and second bit data are inputted,
The inverted second bit data obtained by inverting the logical value of each bit of the input second bit data is output as new first bit data, and the input first bit data is directly converted to new second bit data. A first output mode for outputting as
The input second bit data is output as new first bit data as it is, and the inverted first bit data obtained by inverting the logical value of each bit of the input first bit data is converted to new second bit data. A second output mode for outputting as
Inverted first bit data obtained by inverting the logical value of each bit of the input first bit data is output as new first bit data, and the logical value of each bit of the input second bit data is respectively changed. A third output mode for outputting the inverted second bit data as new second bit data,
Conversion means having a fourth output mode for outputting the input first bit data as it is as new first bit data and outputting the input second bit data as it is as new second bit data;
Control means for controlling whether the conversion means operates in a first output mode, a second output mode, a third output mode, or a fourth output mode based on a predetermined control condition. Is a data conversion device.
[0052]
Further, according to the present invention, the control means outputs a mode setting signal to the conversion means,
The conversion means,
A first inverting circuit to which the first bit data is input, and which inverts a logical value of each bit of the input first bit data and outputs inverted first bit data;
A second inverting circuit to which the second bit data is input, and that inverts the logical value of each bit of the input second bit data and outputs inverted second bit data;
When the first bit data, the second bit data, the inverted first bit data, and the inverted second bit data are input, and the first output mode is set by the mode setting signal, the inverted second bit data is replaced with a new first bit data. When the second output mode is set, the inverted first bit data is output as new first bit data. When the third output mode is set, the second bit data is output as a new first bit data. A first selection circuit that outputs 1-bit data, and outputs the first bit data as new first bit data when the fourth output mode is set;
When the first bit data, the second bit data, the inverted first bit data, and the inverted second bit data are input and the first output mode is set by the mode setting signal, the first bit data is changed to a new second bit. Data, and outputs the inverted second bit data as new second bit data when the second output mode is set, and outputs the inverted first bit data as new new bit data when the third output mode is set. A second selection circuit that outputs the data as 2-bit data and outputs the second bit data as new second bit data when the fourth output mode is set.
[0053]
Further, according to the present invention, the control means outputs a mode setting signal to the conversion means,
The conversion means,
When the first and second bit data are input and the first or second output mode is set by the mode setting signal, the second bit data is output. When the third or fourth output mode is set, A first selection circuit that outputs first bit data;
When the first and second bit data are input and the first or second output mode is set by the mode setting signal, the first bit data is output, and when the third or fourth output mode is set, A second selection circuit that outputs second bit data;
When the bit data output from the first selection circuit is input and the first or third output mode is set by the mode setting signal, the logical value of each bit of the input bit data is inverted. A first control inverting circuit that outputs bit data as new first bit data, and outputs the input bit data as new first bit data as it is when the second or fourth output mode is set;
When the bit data output from the second selection circuit is input and the second or third output mode is set by the mode setting signal, the logical value of each bit of the input bit data is inverted. A second control inverting circuit for outputting bit data as new second bit data, and outputting the input bit data as new second bit data as it is when the first or fourth output mode is set. It is characterized by the following.
[0054]
Further, according to the present invention, the control means outputs a mode setting signal to the conversion means,
The conversion means,
When the first bit data is input and the second or third output mode is set by the mode setting signal, an inverted first bit data output in which the logical value of each bit of the input first bit data is inverted. A first control inversion circuit that outputs the input first bit data as it is when the first or fourth output mode is set;
When the second bit data is input and the first or third output mode is set by the mode setting signal, the inverted second bit data obtained by inverting the logical value of each bit of the input second bit data is output. A second control inverting circuit for outputting and outputting the input second bit data as it is when the second or fourth output mode is set;
When the bit data output from the first and second control circuits is input and the first or second output mode is set by the mode setting signal, the bit data output from the second control inversion circuit is newly updated. A first selection circuit for outputting as the first bit data, and when the third or fourth output mode is set, outputting the bit data output from the first control inversion circuit as new first bit data;
When the bit data output from the first and second control circuits are input and the first or second output mode is set by the mode setting signal, the bit data output from the first control inversion circuit is newly updated. And a second selection circuit that outputs the second bit data output from the second control inversion circuit as new second bit data when the third or fourth output mode is set. It is characterized by having.
[0055]
According to the present invention, when the control means operates the conversion means in the first output mode, the inverted second bit data obtained by inverting the logical value of each bit of the input second bit data is used as the new first bit data. While being output as bit data, the input first bit data is output as new second bit data as it is. When the control means operates the conversion means in the second output mode, the input second bit data is output as new first bit data as it is, and the logical value of each bit of the input first bit data is changed. Are output as new second bit data. When the control means operates the conversion means in the third output mode, inverted first bit data obtained by inverting the logical value of each bit of the input first bit data is output as new first bit data. At the same time, inverted second bit data obtained by inverting the logical value of each bit of the input second bit data is output as new second bit data. When the control means operates the conversion means in the fourth output mode, the input first bit data is output as new first bit data as it is, and the input second bit data is output as a new second bit data as it is. Output as bit data.
[0056]
Specific configurations of the conversion unit include the above three types of configurations. The difference between these configurations is that the first configuration always generates the inverted first bit data and the inverted second bit data, whereas the second and third configurations generate the inverted first bit data and the inverted second bit data. That is, it is created according to the output mode. In the second configuration, the bit data output from the selector is inverted by the control inversion circuit according to the output mode, whereas in the third configuration, the bit data is inverted by the control inversion circuit according to the output mode. Bit data is input to the selector.
[0057]
First, in the first configuration, regardless of the output mode, the first selection circuit stores the inverted first bit data output from the first inversion circuit and the inverted second bit data output from the second inversion circuit. , First bit data and second bit data are input. Also, regardless of the output mode, the second selection circuit also outputs the inverted first bit data output from the first inversion circuit, the inverted second bit data output from the second inversion circuit, and the first bit data. , Second bit data. In the first output mode, the first selection circuit outputs inverted second bit data as new first bit data, and the second selection circuit outputs first bit data as new second bit data. In the second output mode, the first selection circuit outputs second bit data as new first bit data, and the second selection circuit outputs inverted first bit data as new second bit data. In the third output mode, the first selection circuit outputs inverted first bit data as new first bit data, and the second selection circuit outputs inverted second bit data as new second bit data. In the fourth output mode, the first selection circuit outputs first bit data as new first bit data, and the second selection circuit outputs second bit data as new second bit data.
[0058]
On the other hand, in the second configuration, the first and second selection circuits are both supplied with the first and second bit data, and the output of the first selection circuit is controlled by the first control inversion in accordance with the output mode. The output is inverted by the circuit and output as new first bit data, and the output of the second selection circuit is inverted by the second control inversion circuit in accordance with the output mode and output as new second bit data.
[0059]
That is, in the first output mode, the first selection circuit outputs the second bit data, and the first control inversion means to which the second bit data is input creates inverted bit data, that is, inverted second bit data, The inverted second bit data is output as new first bit data. At this time, the second selection circuit directly outputs the first bit data as new second bit data. In the second output mode, the second selection circuit outputs the first bit data, and the second control inversion means to which the first bit data has been input generates inverted bit data, that is, inverted first bit data, and outputs the inverted first bit data. 1-bit data is output as new second bit data. At this time, the first selection circuit directly outputs the second bit data as new first bit data. In the second output mode, the second selection circuit outputs the second bit data, and the control inversion circuit to which the second bit data has been input generates the new second bit data without generating the inverted bit data. Output as 2-bit data. At this time, the first selection circuit directly outputs the first bit data as new 1-bit data. In the third output mode, the first control inversion means to which the first bit data has been input creates inverted bit data, that is, inverted first bit data, and outputs the inverted first bit data as new first bit data; The second control inversion means to which the second bit data is input creates inverted bit data, that is, inverted second bit data, and outputs the inverted second bit data as new second bit data. In the fourth output mode, the first selection circuit outputs the first bit data, and the first control inverting circuit to which the first bit data has been input does not generate the inverted bit data, but newly outputs the first bit data as it is. Is output as the first bit data. At this time, the second selection circuit outputs the second bit data, and the second control inversion circuit to which the second bit data has been input generates the new second bit data as it is without creating the inverted bit data. Output as bit data.
[0060]
Furthermore, in the third configuration, the bit data output from the first and second control inversion circuits are both input to the first and second selection circuits, and the output of the first selection circuit is changed to a new first data. The data is output as bit data, and the output of the second selection circuit is output as new second bit data. That is, in the first output mode, the first control inverting circuit to which the first bit data has been input outputs the first bit data as it is without generating inverted bit data, and outputs the second bit data to which the second bit data has been input. The control inversion circuit creates inverted bit data, that is, inverted second bit data, and outputs the inverted second bit data. The first selection circuit outputs inverted second bit data as new first bit data, and the second selection circuit outputs first bit data as new second bit data. In the second output mode, the first control inverting circuit to which the first bit data has been input creates inverted bit data, that is, inverted first bit data, outputs the inverted first bit data, and outputs the second bit data. The generated second control inverting circuit outputs the second bit data as it is without creating inverted bit data. The first selection circuit outputs second bit data as new first bit data, and the second selection circuit outputs inverted first bit data as new second bit data. In the third output mode, the first control inversion circuit to which the first bit data has been input generates inverted bit data, that is, inverted first bit data, outputs the inverted first bit data, and outputs the second bit data. The generated second control inversion circuit generates inverted bit data, that is, inverted second bit data, and outputs the inverted second bit data. The first selection circuit outputs inverted first bit data as new first bit data, and the second selection circuit outputs inverted second bit data as new second bit data. In the fourth output mode, the first control inversion circuit to which the first bit data has been input outputs the first bit data as it is without generating inverted bit data, and the second control inversion circuit to which the second bit data has been input. The circuit outputs the second bit data as it is without creating inverted bit data. The first selection circuit outputs first bit data as new first bit data, and the second selection circuit outputs second bit data as new second bit data.
[0061]
Here, the first bit data and the second bit data are assumed to be an X coordinate and a Y coordinate indicating an arrangement position of each pixel value included in the image data. The X coordinate and the Y coordinate are composed of a plurality of bits.
[0062]
When the conversion means operates in the first output mode, the new X coordinate after conversion is the inverted Y coordinate in which each bit is inverted, and the new Y coordinate after conversion is the X coordinate before conversion. The image data that has been subjected to the coordinate conversion in this way is image data that is rotated clockwise by 90 ° with respect to before the conversion.
[0063]
When the conversion means operates in the second output mode, the new X coordinate after conversion is the Y coordinate before conversion, and the new Y coordinate after conversion is the inverted X coordinate in which each bit is inverted. The image data that has been subjected to the coordinate conversion in this manner is image data that is rotated 270 ° clockwise with respect to before the conversion.
[0064]
When the conversion means operates in the third output mode, the new X coordinate after conversion is the inverted X coordinate in which each bit is inverted, and the new Y coordinate after conversion is the inverted X coordinate in which each bit is inverted. This is the Y coordinate. The image data subjected to the coordinate conversion in this manner is image data that is rotated clockwise by 180 ° with respect to the image data before the conversion.
[0065]
When the conversion unit operates in the fourth output mode, the new X coordinate after conversion becomes the X coordinate before conversion, and the new Y coordinate after conversion becomes the Y coordinate before conversion. In this case, since both the X coordinate and the Y coordinate are the same before and after conversion, the image data is the same non-rotated image data as before conversion.
[0066]
Therefore, the control condition in which the conversion means operates in the first output mode is the case where the image data is rotated by 90 ° clockwise, and the control condition in which the conversion means operates in the second output mode is 270 clockwise. When the image data is rotated by 270 ° in the clockwise direction, and when the image data is not rotated, the control condition in which the conversion means operates in the third output mode is clockwise. And Thus, when a control condition is set by the user or the like to the control means, the image data is rotated 90 ° clockwise, 180 ° clockwise, and 270 ° clockwise. And the case of not rotating can be displayed by switching.
[0067]
Conventionally, to rotate image data 90 °, 270 °, and 180 ° clockwise, a coordinate transformation device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0068]
Further, according to the present invention, a display for reading an image by reading a pixel value from a predetermined address of a frame memory and arranging the read pixel value at a coordinate position consisting of an X coordinate and a Y coordinate associated with the predetermined address In a display control device that outputs a plurality of pixel values to a frame memory and an address at which each pixel value is written, so that the unit can display an image in a plurality of different directions.
A rendering unit that outputs a plurality of pixel values to the frame memory, and generates and outputs an X coordinate and a Y coordinate of each pixel value according to the orientation of an image to be displayed; and a data conversion device described above. Selecting and operating the output mode of the data conversion device in accordance with the orientation of the image to be displayed, and converting the X coordinate and the Y coordinate output from the drawing unit into input first bit data and second bit data. A coordinate conversion unit that performs conversion, and outputs new first bit data and second bit data as converted X coordinates and Y coordinates;
A coordinate address conversion unit that converts the converted X coordinate and Y coordinate output from the coordinate conversion unit into an address of the frame memory and outputs the converted address to the frame memory. Display control device.
[0069]
According to the present invention, the display unit reads a pixel value from a predetermined address of the frame memory, and arranges the read pixel value at coordinates corresponding to the predetermined address to display an image. The display unit may display an image in a plurality of different directions, for example, a direction in which the image is rotated 90 ° clockwise, a direction in which the image is rotated 270 °, a direction in which the image is rotated 180 °, and a direction in which the image is not rotated. The display control device outputs a plurality of pixel values and an address at which each pixel value is written to the frame memory so as to be able to do so. Here, the orientation of the image is the orientation of the image when the display unit is fixed at a predetermined orientation, and displaying the image in a different orientation means that the orientation of the image is changed without changing the orientation of the display unit. Display.
[0070]
Specifically, the drawing unit outputs a plurality of pixel values to the frame memory, and an image rotated according to the direction of the image is displayed at an appropriate position on the display unit. An X coordinate and a Y coordinate before conversion of each pixel value are generated and output.
[0071]
The coordinate conversion unit has the data conversion device described above, and operates the data conversion device in an output mode corresponding to the direction of the image to convert the unconverted X and Y coordinates output from the drawing unit. . At this time, the X coordinate and Y coordinate before conversion are output as first bit data and second bit data, and the new first bit data and second bit data after data conversion are output as X coordinate and Y coordinate after conversion. I do.
[0072]
The coordinate address conversion unit converts the converted X coordinate and Y coordinate output from the coordinate conversion unit into an address of the frame memory, and outputs the converted address to the frame memory.
[0073]
By writing the pixel value output by the drawing unit to this address, the pixel value of the image rotated according to the display mode is stored in the frame memory. By reading out the pixel values stored in the frame memory and displaying the image in this manner, the display unit can display the image rotated according to the display mode. Further, since the above-described data conversion device is used, the display control device can reduce the circuit scale, can reduce the cost, and can increase the processing speed.
[0074]
The present invention also provides a frame memory for storing a pixel value at a predetermined address,
A display unit that reads a pixel value from a predetermined address of the frame memory, arranges the read pixel value at a coordinate position consisting of an X coordinate and a Y coordinate associated with the predetermined address, and displays an image;
A display control unit that outputs a plurality of pixel values to a frame memory and an address at which each pixel value is written, so that the display unit can display an image in a plurality of different directions.
A drawing unit that outputs a plurality of pixel values to the frame memory, and generates and outputs an X coordinate and a Y coordinate of each pixel value according to an orientation of an image to be displayed;
It has the data conversion device described above, operates by selecting an output mode of the data conversion device according to the direction of an image to be displayed, and converts the X coordinate and the Y coordinate output from the drawing unit into the input first bit. A coordinate conversion unit that performs data conversion as data and second bit data, and outputs new first and second bit data as converted X and Y coordinates;
A display control unit comprising: a coordinate address conversion unit that converts the converted X coordinate and Y coordinate output from the coordinate conversion unit to an address of the frame memory and outputs the converted address to the frame memory. A display device comprising:
[0075]
According to the present invention, the display unit reads a pixel value stored at a predetermined address in the frame memory, and arranges the read pixel value at coordinates corresponding to the predetermined address to display an image. The display unit displays images according to a plurality of different directions, for example, a direction in which the image is rotated 90 ° clockwise, a direction in which the image is rotated 270 °, a direction in which the image is rotated 180 °, and a direction in which the image is not rotated. I do.
[0076]
The drawing unit outputs a plurality of pixel values to the frame memory, and converts each pixel value so that the image rotated according to the orientation of the image is displayed at an appropriate position on the display unit. Generate and output the previous X and Y coordinates.
[0077]
The coordinate conversion unit has the data conversion device described above, operates the data conversion device in an output mode corresponding to the direction of the image to be displayed, and converts the X and Y coordinates before conversion output from the drawing unit. Convert. At this time, the X coordinate and Y coordinate before conversion are output as first bit data and second bit data, and the new first bit data and second bit data after data conversion are output as X coordinate and Y coordinate after conversion. I do.
[0078]
The coordinate address conversion unit converts the converted X coordinate and Y coordinate output from the coordinate conversion unit into an address of the frame memory, and outputs the converted address to the frame memory.
[0079]
By writing the pixel value output by the drawing unit to this address, the pixel value of the image rotated according to the display mode is stored in the frame memory. By reading out the pixel values stored in the frame memory and displaying the image in this manner, the display unit can display the image rotated according to the display mode. In addition, since the above data conversion device is used, the display device can reduce the circuit scale, can reduce the cost, and can speed up the processing.
[0080]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 is a block diagram illustrating a configuration of a display device 1 according to an embodiment of the present invention. The display device 1 may include a mobile terminal device such as a mobile phone or a PDA together with a key operation unit, a storage unit, a communication unit, and the like, or may be connected to a personal computer (PC), a workstation (WS), or the like. May be. When the portable terminal device is configured, the image data stored in the storage unit is displayed based on the input from the key operation unit by the user. When connected to a PC, WS, or the like, the CPU of the PC outputs image data and a control signal to the display device 1 based on a user's input from a keyboard, a mouse, or the like, and the display device 1 receives the input control signal. Is displayed based on the image data.
[0081]
The display device 1 includes a drawing unit 11, a coordinate conversion unit 12, a coordinate address conversion unit 13, a frame memory 14, a timing control unit 15, and a display unit 16.
[0082]
The drawing unit 11 includes a coordinate generation unit 17 and a start coordinate designation register 18, and stores image data stored in an image data storage unit (not shown), or wirelessly and wiredly outside the display device 1 via an external connection unit (not shown). The pixel value of each pixel and the coordinates at which the pixel is to be displayed are output to the frame memory 14 and the coordinate conversion unit 12 based on the image data input from the. Here, the image data is a bitmap image, and each coordinate is a coordinate relative to the coordinate of a predetermined drawing start pixel.
[0083]
At the time of displaying the image data, the drawing start coordinates determined in advance according to an instruction from the user or the like are stored in the start coordinate designation register 18, and the coordinate generation unit 17 generates other coordinates from the drawing start coordinates, The coordinates are output to the coordinate conversion unit 12 as coordinates before conversion. Further, the pixel value to be displayed at each coordinate is output together with the coordinates before conversion.
[0084]
The coordinate conversion unit 12 includes a coordinate rotation unit 19 and a display mode setting register 20. The display mode is a mode that is set for each direction of an image displayed on the display unit 16, that is, for each rotation angle of image data. In the present embodiment, a normal mode in which image data is displayed without being rotated, a normal mode In the 90 ° mode in which image data is rotated clockwise by 90 ° with respect to the image data in the above, the 180 ° mode in which the image data in the normal mode is rotated clockwise by 180 ° and in the normal mode. There are four display modes, ie, a 270 ° mode in which the image data is rotated 270 ° clockwise for display. The image orientation is the orientation of the image displayed when the display unit 16 or the display device 1 is fixed in a predetermined orientation, and displaying the image in a different orientation means that the orientation of the display unit 16 is This is to change the orientation of the image without changing it. For example, when the display device 1 is a mobile phone or the like, if the orientation of the display unit 16 when performing a normal operation such as a call operation is a predetermined orientation, the orientation of the display unit 16 is not changed and the orientation of the displayed image is changed. , The direction rotated 90 ° clockwise, the direction rotated 180 °, or the like. Further, a mode switching function is assigned to a predetermined key in advance, and when the user selects and switches the display mode by operating the key, the display mode setting register 20 stores which of the above-described modes is to be displayed. You. The coordinate rotation unit 19 performs coordinate conversion on the pre-conversion coordinates output from the drawing unit 11 according to the display mode stored in the display mode setting register 20, and outputs the converted coordinates to the coordinate address conversion unit 13.
[0085]
The coordinate address conversion unit 13 converts the converted coordinates input from the coordinate conversion unit 12 into an address in the frame memory 14. The timing control unit 15 is connected to the drawing unit 11, the coordinate conversion unit 12, the coordinate address conversion unit 13, the frame memory 14, and the display unit 16, and outputs a control signal for controlling the operation timing of these parts. The display unit 16 is implemented by a liquid crystal display panel or the like, reads a pixel value from a predetermined address of the frame memory 14 according to a control signal from the timing control unit 15, and displays the pixel value at coordinates corresponding to the read address.
[0086]
Hereinafter, the configuration of the coordinate rotation unit 19 and the coordinate conversion processing will be described.
The screen configuration of the display unit 16 is a 6 × 5 pixel configuration as shown in FIG. The correspondence between each coordinate of the display unit 16 and the address of the frame memory 14 is set as shown in FIG. For example, the coordinates (X, Y) = (2, 1) correspond to the address 0x08 of the frame memory 14. In general, the addresses of the frame memory 14 are sequentially allocated from the upper left to the lower right as shown in FIG. 14 on the assumption that data is written continuously.
[0087]
FIGS. 13 and 14 show screen directions when the display device 1 is normally used. Even if the display device 1 is rotated by 90 ° clockwise, as shown in FIG. The correspondence with the address does not change.
[0088]
As described above, there are four types of display modes, and the coordinate rotation unit 19 inverts the coordinates by an inversion circuit that inverts the input data by bits, and outputs two data that output one data from the plurality of input data. A plurality of display modes are realized by exchanging coordinates by a selector and a control circuit that controls the selection operation of the selector.
[0089]
FIG. 2 is a block diagram illustrating a configuration of the coordinate rotation unit 19 that rotates the image data clockwise by 90 degrees. Hereinafter, when it is described that the rotation is performed at a predetermined angle, it indicates that the rotation is performed clockwise.
[0090]
Regarding the signal representing the X coordinate and the Y coordinate to be converted, the signal representing the X coordinate and the signal representing the Y coordinate are composed of a plurality of bits. The X-coordinate and the Y-coordinate are set to the same bit width based on the larger coordinate.
[0091]
As shown in FIG. 13, since the screen configuration of the display unit 16 is 6 × 5 pixels, a 3-bit configuration having a minimum bit width capable of representing the X coordinate is set based on the X coordinate having a large number of pixels. Of course, a value larger than 3 bits may be set. FIG. 16 is a diagram illustrating a pixel array when both the X coordinate and the Y coordinate are set to have a 3-bit width. An area 100 of 6 × 5 pixels in a bold line in the drawing is an area effective in the coordinate address conversion unit 13. The X coordinate and the Y coordinate are represented by binary numbers, and each bit is represented by a coordinate signal X. n , Y n Corresponding to When the coordinates are represented by n bits, the coordinate signal of the X coordinate before conversion, which is the first bit data, is X 0 ~ X n , The coordinate signal of the Y coordinate before conversion as the second bit data is Y 0 ~ Y n Is represented by In the case where the coordinates are represented by 3 bits as in the example of FIG. 0 , X 1 , X 2 , And the Y coordinate is Y 0 , Y 1 , Y 2 In the order of. When the notation of the X coordinate and the Y coordinate is represented by a decimal number, when (X, Y) = (2, 6), (X, Y) = (X 0 X 1 X 2 , Y 0 Y 1 Y 2 ) = (010,110). Also, the coordinates before conversion are defined as X coordinates and Y coordinates, and the coordinates after conversion are defined as X ′ coordinates and Y ′ coordinates.
[0092]
The coordinate rotation unit 19 includes a signal inversion circuit 21, an X coordinate selector 22, a Y coordinate selector 23, and a display mode control circuit 24, as shown in FIG. The signal inverting circuit 21 outputs the coordinate signal Y before conversion. 0 ~ Y n Are inverted respectively to obtain an inverted coordinate signal iY 0 ~ IY n Is output to the X coordinate selector 22. FIG. 11 is a circuit diagram showing an example of the signal inversion circuit 21. As shown in FIG. 0 ~ IN n (X 0 ~ X n Or Y 0 ~ Y n ) Is inverted by an inverter to output signal OUT 0 ~ OUT n (IX 0 ~ IX n Or iY 0 ~ IY n ) Can be obtained. By the inverter, for example, the input signal IN 0 Is 1 when the output signal OUT 0 Is 0, the input signal IN 0 Is 0, the output signal OUT 0 Is inverted to 1. The X-coordinate selector 22 is controlled by the display mode control circuit 24, and outputs the pre-conversion coordinate signal X. 0 ~ X n Alternatively, an inverted coordinate signal iY which is an output signal of the signal inverting circuit 21 0 ~ IY n Is selected, and the coordinate signal X after the conversion is selected. 0 '~ X n The first selection circuit outputs the signal as'. The Y-coordinate selector 23 is controlled by the display mode control circuit 24, and outputs a coordinate signal X before conversion. 0 ~ X n Or coordinate signal Y before conversion 0 ~ Y n Is selected, and the coordinate signal Y after the conversion is selected. 0 '~ Y n 'Is a second selection circuit that outputs as'.
[0093]
Since the screen configuration of the display unit 16 is a configuration of 6 × 5 pixels as shown in FIG. 13, the coordinate signal before conversion indicating the X coordinate before conversion is X 0 ~ X 2 The three-bit coordinate signal before conversion representing the Y coordinate before conversion is Y 0 ~ Y 2 , The converted coordinate signal representing the converted X coordinate is X 0 '~ X 2 ', The converted coordinate signal representing the converted Y coordinate is Y 0 '~ Yn' 2 Is composed of three bits. The display mode control circuit 24, which is a control means, has two types of display modes, a first output mode, a 90 ° mode in which image data is rotated by 90 °, and a second output mode, a normal mode in which image data is not rotated. Is controlled by outputting a mode setting signal to the selector 22 for the X coordinate and the selector 23 for the Y coordinate.
[0094]
In the case of the 90 ° mode, the X-coordinate selector 22 controls the coordinate signal X before conversion under the control of the display mode control circuit 24. 0 ~ X 2 And the inverted coordinate signal iY 0 ~ IY 2 Of the inverted coordinate signal iY 0 ~ IY 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 24, the Y coordinate selector 23 controls the coordinate signal X before conversion. 0 ~ X 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 Is selected and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0095]
In the case of the normal mode, the X coordinate selector 22 controls the coordinate signal X before conversion under the control of the display mode control circuit 24. 0 ~ X 2 And the inverted coordinate signal iY 0 ~ IY 2 Of the coordinate signal X before conversion 0 ~ X 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 24, the Y coordinate selector 23 controls the coordinate signal X before conversion. 0 ~ X 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 Is selected and the converted coordinate signal Y 0 '~ Y 2 Output as'. Since the image data is not rotated, both the X coordinate and the Y coordinate are the same before and after the conversion.
[0096]
FIG. 17 is a diagram showing image data before coordinate conversion when rotated by 90 °, and FIG. 18 is a diagram showing image data rotated by 90 °. In FIG. 18, only the 6 × 5 pixel area that can be displayed on the display unit 16 after rotation by 90 ° is assigned a name to each pixel position for explanation. Correspondingly, FIG. 17 shows the pixel positions to which the names are assigned in FIG. 18 before the coordinate conversion.
[0097]
Specific processing when the 90 ° mode is selected will be described. Assume that image data to be displayed is image data (consisting of four pixels A, B, C, and D) shown in FIG. In the image data shown in FIG. 19, the drawing start pixel is A, and the pixels B, C, and D have coordinates relative to the coordinates of A. Assuming that the coordinates of the pixel A are (X, Y), the coordinates of the pixel B are (X + 1, Y), the coordinates of the pixel C are (X + 1, Y + 1), and the coordinates of the pixel D are (X + 1, Y + 2).
[0098]
FIG. 19 shows the direction of the image data when viewed from the correct direction. In the present embodiment, the image data is set to 90 degrees so that the person on the left side of the user can view the image data in the correct direction. Rotate °.
[0099]
First, the drawing unit 11 generates pre-conversion coordinates so that image data (A, B, C, D) is displayed at the pixel positions EB, EC, FC, and GC before the coordinate conversion. A (X, Y) = A (001, 100) is set in the start coordinate designation register 18 with the pixel position EB as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a displayable 6 × 5 pixel area which is an appropriate position on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (010,100), C (X, Y) = C (010,101), and D (X, Y) = D (010,110) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0100]
For the pixel A, since the pre-conversion coordinates are A (001, 100), the pre-conversion coordinate signal X which is the first bit data 0 ~ X n Is X 0 X 1 X 2 (001), the pre-conversion coordinate signal Y which is the second bit data 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Input pre-conversion coordinate signal X 0 X 1 X 2 (001) is input to the selector 22 for the X coordinate and the selector 23 for the Y coordinate. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (100) is input to the Y coordinate selector 23 and the signal inversion circuit 21. In the signal inversion circuit 21, the coordinate signal Y before conversion is used. 0 Y 1 Y 2 The logical value of each bit of (100) is inverted, and the inverted coordinate signal iY which is the inverted second bit data 0 iY 1 iY 2 (011) is input to the X coordinate selector 22.
[0101]
Since it operates in the 90 ° mode, under the control of the display mode control circuit 24, the X coordinate selector 22 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is selected and output. The Y coordinate selector 23 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (001) is selected and output.
[0102]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (001, 100) before conversion into the converted coordinates A (011, 001) and outputs the converted coordinates A (011, 001) to the coordinate address conversion unit 13.
[0103]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 24, the X coordinate selector 22 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 Of (011), the inverted coordinate signal iY 0 iY 1 iY 2 (011) is selected and output. The Y coordinate selector 23 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output.
[0104]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (010, 100) before conversion into the converted coordinates B (011, 010) and outputs the converted coordinates B (011, 010) to the coordinate address conversion unit 13.
[0105]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (101). Under the control of the display mode control circuit 24, the X coordinate selector 22 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (010), the inverted coordinate signal iY 0 iY 1 iY 2 (010) is selected and output. The Y coordinate selector 23 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (101), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output.
[0106]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates C (010, 101) before conversion into the converted coordinates C (010, 010) and outputs the converted coordinates C (010, 010) to the coordinate address conversion unit 13.
[0107]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (110). Under the control of the display mode control circuit 24, the X coordinate selector 22 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (001), the inverted coordinate signal iY 0 iY 1 iY 2 (001) is selected and output. The Y coordinate selector 23 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (110), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output.
[0108]
Through the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates D (010, 110) before conversion into the converted coordinates D (001, 010) and outputs the converted coordinates D (001, 010) to the coordinate address conversion unit 13.
[0109]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated clockwise by 90 ° with respect to before the coordinate conversion.
[0110]
Next, a specific process when the normal mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the 90 ° mode.
[0111]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at pixel positions BC, BD, CD, and DD before coordinate conversion. A (X, Y) = A (010, 001) is set in the start coordinate designation register 18 with the pixel position BC as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (011,001), C (X, Y) = C (011,010), and D (X, Y) = D (011,011) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0112]
Since the pre-conversion coordinates of the pixel A are A (010,001), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Input pre-conversion coordinate signal X 0 X 1 X 2 (010) is input to the X coordinate selector 22 and the Y coordinate selector 23. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is input to the Y-coordinate selector 23 and the signal inversion circuit 21. In the signal inversion circuit 21, the coordinate signal Y before conversion is used. 0 Y 1 Y 2 Each bit of (001) is inverted, and the inverted coordinate signal iY 0 iY 1 iY 2 (110) is input to the X coordinate selector 22.
[0113]
Since the X coordinate selector 22 operates in the normal mode, the X coordinate selector 22 controls the converted coordinate signal X under the control of the display mode control circuit 24. 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) is selected and output. The Y coordinate selector 23 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (001) is selected and output.
[0114]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates A (010, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates A (010, 001).
[0115]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Under the control of the display mode control circuit 24, the X coordinate selector 22 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and inverted coordinate signal iY 0 iY 1 iY 2 Of (110), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y coordinate selector 23 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is selected and output.
[0116]
By the coordinate conversion described above, the coordinate conversion unit 19 outputs the input coordinates B (011, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates B (011, 001).
[0117]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 24, the X coordinate selector 22 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and inverted coordinate signal iY 0 iY 1 iY 2 Of (101), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y coordinate selector 23 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output.
[0118]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates C (011, 010) before conversion to the coordinate address conversion unit 13 as the converted coordinates C (011, 010).
[0119]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 24, the X coordinate selector 22 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and inverted coordinate signal iY 0 iY 1 iY 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y coordinate selector 23 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output.
[0120]
Through the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates D (011, 011) before conversion to the coordinate address conversion unit 13 as the converted coordinates D (011, 011).
[0121]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write.
[0122]
The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. Thereby, the same image data as before the coordinate conversion can be displayed without rotating.
[0123]
FIGS. 24 and 27 show the result of coordinate conversion by the coordinate rotation unit 19 shown in FIG. FIG. 24 shows a coordinate conversion result in the 90 ° mode, and FIG. 27 shows a coordinate conversion result in the normal mode. The conversion results shown in FIGS. 24 and 27 are obtained by the coordinate conversion unit 12 including the coordinate rotation unit 19, so that the display device 1 switches between using and not rotating the image data by 90 °. be able to.
[0124]
Conventionally, to rotate image data 90 degrees clockwise, a coordinate conversion device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0125]
FIG. 3 is a block diagram showing the configuration of the coordinate rotation unit 19 that rotates image data by 270 degrees clockwise. As for the coordinate signal, since the screen configuration of the display unit 16 is 6 × 5 pixels, a 3-bit configuration having a minimum bit width capable of representing the X coordinate is set based on the X coordinate having a large number of pixels. Of course, a value larger than 3 bits may be set.
[0126]
The coordinate rotation unit 19 includes a signal inversion circuit 31, an X coordinate selector 32, a Y coordinate selector 33, and a display mode control circuit. The signal inverting circuit 31 outputs the coordinate signal X before conversion. 0 ~ X n Are inverted to obtain an inverted coordinate signal iX. 0 ~ IX n Is output to the Y coordinate selector 32. An example of the signal inversion circuit 31 is configured as shown in the circuit diagram of FIG. The X-coordinate selector 33 is controlled by the display mode control circuit 34, and outputs the coordinate signal X before conversion. 0 ~ X n And coordinate signal Y before conversion 0 ~ Y n Is selected, and the coordinate signal X after the conversion is selected. 0 '~ X n The first selection circuit outputs the signal as'.
[0127]
The Y coordinate selector 32 is controlled by the display mode control circuit 34, and outputs the inverted coordinate signal iX which is the output signal of the signal inversion circuit 31. 0 ~ IX n And coordinate signal Y before conversion 0 ~ Y n Is selected, and the coordinate signal Y after the conversion is selected. 0 '~ Y n 'Is a second selection circuit that outputs as'. Since the screen configuration of the display unit 16 is a configuration of 6 × 5 pixels as shown in FIG. 13, the coordinate signal before conversion indicating the X coordinate before conversion is X 0 ~ X 2 The three-bit coordinate signal before conversion representing the Y coordinate before conversion is Y 0 ~ Y 2 , The converted coordinate signal representing the converted X coordinate is X 0 '~ X 2 ', The converted coordinate signal representing the converted Y coordinate is Y 0 '~ Yn' 2 Is composed of three bits. The display mode control circuit 34, which is a control means, controls X in two types of display modes: a 270 ° mode in which image data is rotated by 270 ° in the first output mode, and a normal mode in which image data is not rotated in the second output mode. Control signals are output to the coordinate selector 32 and the Y coordinate selector 33 for control.
[0128]
In the case of the 270 ° mode, the X-coordinate selector 32 controls the display mode control circuit 34 to control the X-coordinate signal X as the first bit data. 0 ~ X 2 And the pre-conversion coordinate signal Y as the second bit data 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 34, the Y coordinate selector 33 controls the inverted coordinate signal iX which is the inverted first bit data. 0 ~ IX 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the inverted coordinate signal iX 0 ~ IX 2 Is selected and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0129]
In the case of the normal mode, the X coordinate selector 32 controls the coordinate signal X before conversion under the control of the display mode control circuit 34. 0 ~ X 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'.
[0130]
The Y coordinate selector 33 controls the display mode control circuit 24 to control the inverted coordinate signal iX 0 ~ IX 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 Is selected and the converted coordinate signal Y 0 '~ Y 2 Output as'. Since the image data is not rotated, both the X coordinate and the Y coordinate are the same before and after the conversion.
[0131]
FIG. 20 is a diagram showing image data before coordinate conversion, and FIG. 21 is a diagram showing image data rotated by 270 °. In FIG. 21, only the 6 × 5 pixel area that can be displayed on the display unit 16 after rotation by 270 ° is assigned a name to each pixel position for explanation. Correspondingly, FIG. 20 shows the positions of the pixel positions to which the names are assigned in FIG. 21 before the coordinate conversion.
[0132]
First, a specific process when the 270 ° mode is selected will be described. The image data to be displayed is assumed to be the image data (consisting of four pixels A, B, C, and D) shown in FIG.
[0133]
FIG. 19 shows the orientation of the image data when viewed from the correct direction. In the present embodiment, the image data is set at 270 ° so that a person on the right side of the user can view the image data in the correct direction. Rotate.
[0134]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at the pixel positions CE, CF, DF, and EF before coordinate conversion. A (X, Y) = A (100, 010) is set in the start coordinate designation register 18 using the pixel position CE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (101,010), C (X, Y) = C (101,011), and D (X, Y) = D (101,100) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 12, and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0135]
Since the pre-conversion coordinates of the pixel A are A (100,010), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (100), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Input pre-conversion coordinate signal X 0 X 1 X 2 (100) is input to the X coordinate selector 32 and the signal inversion circuit 31. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (010) is input to the selector 33 for the X coordinate and the selector 33 for the Y coordinate. In the signal inverting circuit 31, the coordinate signal X before conversion is used. 0 X 1 X 2 All bits of (100) are inverted, and the inverted coordinate signal iX 0 iX 1 iX 2 (011) is input to the Y coordinate selector 32.
[0136]
Since it operates in the 270 ° mode, under the control of the display mode control circuit 34, the X coordinate selector 32 0 'X 1 'X 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output. The Y coordinate selector 33 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (011) is selected and output.
[0137]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (100, 010) before conversion into the converted coordinates A (010, 011) and outputs the converted coordinates A (010, 011) to the coordinate address conversion unit 13.
[0138]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 34, the X coordinate selector 32 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output. The Y coordinate selector 33 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 (010), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output.
[0139]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (101, 010) before conversion into the coordinates B (010, 010) after conversion and outputs the converted coordinates B (010, 010) to the coordinate address conversion unit 13.
[0140]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 34, the X coordinate selector 32 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output. The Y coordinate selector 23 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 (011) of the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output.
[0141]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates C (101, 011) before conversion into the converted coordinates C (011, 010) and outputs the converted coordinates C (011, 010) to the coordinate address conversion unit 13.
[0142]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 34, the X coordinate selector 32 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion Y 0 Y 1 Y 2 (100) is selected and output. The Y coordinate selector 33 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 (100), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output.
[0143]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (101, 100) before conversion into the converted coordinates D (100, 010) and outputs the converted coordinates D (100, 010) to the coordinate address conversion unit 13.
[0144]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated 270 ° clockwise relative to before the coordinate conversion.
[0145]
Next, a specific process when the normal mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the 270 ° mode.
[0146]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at pixel positions BC, BD, CD, and DD before coordinate conversion. A (X, Y) = A (010, 001) is set in the start coordinate designation register 18 with the pixel position BC as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (011,001), C (X, Y) = C (011,010), and D (X, Y) = D (011,011) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0147]
Since the pre-conversion coordinates of the pixel A are A (010,001), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Input pre-conversion coordinate signal X 0 X 1 X 2 (010) is input to the X coordinate selector 32 and the signal inversion circuit 31. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is input to the X coordinate selector 32 and the Y coordinate selector 33. In the signal inverting circuit 31, the coordinate signal X before conversion is used. 0 X 1 X 2 All bits of (010) are inverted, and the inverted coordinate signal iX 0 iX 1 iX 2 (101) is input to the Y coordinate selector 32.
[0148]
Since it operates in the normal mode, under the control of the display mode control circuit 34, the X coordinate selector 32 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) is selected and output. The Y coordinate selector 33 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (001) is selected and output.
[0149]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates A (010, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates A (010, 001).
[0150]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Under the control of the display mode control circuit 34, the X coordinate selector 22 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal X 0 X 1 X 2 (011) is selected and output. The Y coordinate selector 33 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (100) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is selected and output.
[0151]
By the coordinate conversion described above, the coordinate conversion unit 19 outputs the input coordinates B (011, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates B (011, 001).
[0152]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 34, the X coordinate selector 32 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y coordinate selector 33 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (100) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output.
[0153]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates C (011, 010) before conversion to the coordinate address conversion unit 13 as the converted coordinates C (011, 010).
[0154]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 34, the X coordinate selector 32 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y coordinate selector 33 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The inverted coordinate signal X 0 X 1 X 2 (100) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output.
[0155]
Through the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates D (011, 011) before conversion to the coordinate address conversion unit 13 as the converted coordinates D (011, 011).
[0156]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. Thereby, the same image data as before the coordinate conversion can be displayed without rotating.
[0157]
FIGS. 25 and 27 show the result of the coordinate conversion by the coordinate rotating unit 19 shown in FIG. FIG. 25 shows the result of the coordinate conversion in the 270 ° mode, and FIG. 27 shows the result of the coordinate conversion in the normal mode. The conversion results shown in FIGS. 25 and 27 are obtained by the coordinate conversion unit 12 including the coordinate rotation unit 19, so that the display device 1 switches between using and not rotating the image data by 270 °. be able to.
[0158]
Conventionally, in order to rotate image data clockwise by 270 °, a coordinate transformation device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0159]
FIG. 4 is a block diagram showing the configuration of the coordinate rotation unit 19 that rotates the image data clockwise by 180 °. Regarding the coordinate signal, since the screen configuration of the display unit 16 is 6 × 5 pixels, a 3-bit configuration having a minimum bit width capable of representing the X coordinate is set based on the X coordinate having a large number of pixels. Of course, a value larger than 3 bits may be set.
[0160]
The coordinate rotation unit 19 includes signal inversion circuits 41 and 42, an X coordinate selector 43, a Y coordinate selector 44, and a display mode control circuit 45. The signal inversion circuit 41 outputs the coordinate signal X before conversion. 0 ~ X n Are inverted to obtain an inverted coordinate signal iX. 0 ~ IX n Is a first inverting circuit that outputs to the X coordinate selector 43. The signal inversion circuit 42 outputs the coordinate signal Y before conversion. 0 ~ Y n Is inverted to obtain an inverted coordinate signal iY 0 ~ IY n Is output to the Y coordinate selector 44. One example of the signal inversion circuits 41 and 42 is configured as shown in the circuit diagram of FIG.
[0161]
The X-coordinate selector 43 is controlled by the display mode control circuit 45, and outputs the pre-conversion coordinate signal X. 0 ~ X n And an inverted coordinate signal iX which is an output signal of the signal inverting circuit 41 0 ~ IX n Is selected, and the coordinate signal X after the conversion is selected. 0 '~ X n The first selection circuit outputs the signal as'. The Y-coordinate selector 44 is controlled by the display mode control circuit 45, and outputs the pre-conversion coordinate signal Y 0 ~ Y n And an inverted coordinate signal iY which is an output signal of the signal inverting circuit 42 0 ~ IY n Is selected, and the coordinate signal Y after the conversion is selected. 0 '~ Y n 'Is a second selection circuit that outputs as'. Since the screen configuration of the display unit 16 is a configuration of 6 × 5 pixels as shown in FIG. 13, the coordinate signal before conversion indicating the X coordinate before conversion is X 0 ~ X 2 The three-bit coordinate signal before conversion representing the Y coordinate before conversion is Y 0 ~ Y 2 , The converted coordinate signal representing the converted X coordinate is X 0 '~ X 2 ', The converted coordinate signal representing the converted Y coordinate is Y 0 '~ Yn' 2 Is composed of three bits.
[0162]
The display mode control circuit 34, which is a control means, controls two types of display modes: the first output mode, a 180 ° mode in which image data is rotated by 180 °, and the second output mode, a normal mode in which the image data is not rotated. A control signal is output to the coordinate selector 43 and the Y coordinate selector 44 for control.
[0163]
In the case of the 180 ° mode, the X coordinate selector 43 controls the display mode control circuit 45 to control the X-coordinate signal X which is the first bit data. 0 ~ X 2 And the inverted coordinate signal iX which is the inverted first bit data 0 ~ IX 2 Of the inverted coordinate signal iX 0 ~ IX 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 45, the Y-coordinate selector 44 controls the pre-conversion coordinate signal Y which is the second bit data. 0 ~ Y 2 And the inverted coordinate signal iY which is the inverted second bit data 0 ~ IY 2 Of the inverted coordinate signal iY 0 ~ IY 2 Is selected and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0164]
In the case of the normal mode, the X-coordinate selector 43 controls the X-coordinate signal X under the control of the display mode control circuit 45. 0 ~ X 2 And the inverted coordinate signal iX 0 ~ IX 2 Of the coordinate signal X before conversion 0 ~ X 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'.
[0165]
The Y-coordinate selector 44 controls the display mode control circuit 45 to control the coordinate signal Y before conversion. 0 ~ Y 2 And the inverted coordinate signal iY 0 ~ IY 2 Of the coordinate signal Y before conversion 0 ~ Y 2 Is selected and the converted coordinate signal Y 0 '~ Y 2 Output as'. Since the image data is not rotated, both the X coordinate and the Y coordinate are the same before and after the conversion.
[0166]
FIG. 22 is a diagram showing image data before coordinate conversion, and FIG. 23 is a diagram showing image data rotated by 180 °. In FIG. 23, only the 6 × 5 pixel area that can be displayed on the display unit 16 after rotation by 180 ° is assigned a name to each pixel position for explanation. Correspondingly, FIG. 22 shows the positions of the pixel positions to which the names are assigned in FIG. 23 before the coordinate conversion.
[0167]
First, a specific process when the 180 ° mode is selected will be described. The image data to be displayed is assumed to be the image data (consisting of four pixels A, B, C, and D) shown in FIG.
[0168]
FIG. 19 shows the orientation of the image data when viewed from the correct direction. In the present embodiment, the image data is rotated by 180 ° so that a person on the opposite side of the user can view the image data in the correct direction. Rotate.
[0169]
First, the drawing unit 11 generates pre-transform coordinates so that image data (A, B, C, D) is displayed at the pixel positions EE, EF, FF, and GF before the coordinate transformation. A (X, Y) = A (100, 100) is set in the start coordinate designation register 18 using the pixel position EE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (101,100), C (X, Y) = C (101,101), and D (X, Y) = D (101,110) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 12, and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0170]
For the pixel A, the pre-conversion coordinates are A (100, 100), so the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (100), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Input pre-conversion coordinate signal X 0 X 1 X 2 (100) is input to the X coordinate selector 43 and the signal inversion circuit 41. In the signal inversion circuit 41, the coordinate signal X before conversion 0 X 1 X 2 Each bit of (100) is inverted, and the inverted coordinate signal iX 0 iX 1 iX 2 (011) is input to the X coordinate selector 43. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (100) is input to the Y coordinate selector 44 and the signal inversion circuit 42. In the signal inverting circuit 42, the pre-conversion coordinate signal Y 0 Y 1 Y 2 Each bit of (100) is inverted, and the inverted coordinate signal iY 0 iY 1 iY 2 (011) is input to the Y coordinate selector 44.
[0171]
Since it operates in the 180 ° mode, under the control of the display mode control circuit 45, the X coordinate selector 43 0 'X 1 'X 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (011) is selected and output. The Y coordinate selector 44 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is selected and output.
[0172]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (100, 100) before conversion into the converted coordinates A (011, 011) and outputs the converted coordinates A (011, 011) to the coordinate address conversion unit 13.
[0173]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 45, the X coordinate selector 43 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101) and inverted coordinate signal iX 0 iX 1 iX 2 (010), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output. The Y coordinate selector 44 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (100) and inverted coordinate signal iY 0 iY 1 iY 2 Of (011), the inverted coordinate signal iY 0 iY 1 iY 2 (011) is selected and output.
[0174]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (101, 100) before conversion into the converted coordinates B (010, 011) and outputs the converted coordinates B (010, 011) to the coordinate address conversion unit 13.
[0175]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (101). Under the control of the display mode control circuit 45, the X coordinate selector 43 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101) and inverted coordinate signal iX 0 iX 1 iX 2 (010), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output. The Y coordinate selector 44 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (101) and inverted coordinate signal iY 0 iY 1 iY 2 (010), the inverted coordinate signal iY 0 iY 1 iY 2 (010) is selected and output.
[0176]
Through the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates C (101, 101) before conversion into the converted coordinates C (010, 010) and outputs the converted coordinates C (010, 010) to the coordinate address conversion unit 13.
[0177]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (110). Under the control of the display mode control circuit 45, the X coordinate selector 43 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101) and inverted coordinate signal iX 0 iX 1 iX 2 (010), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output. The Y coordinate selector 44 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (110) and the inverted coordinate signal iY 0 iY 1 iY 2 (001), the inverted coordinate signal iY 0 iY 1 iY 2 (001) is selected and output.
[0178]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (101, 110) before conversion into the converted coordinates D (010, 001) and outputs the converted coordinates D (010, 001) to the coordinate address conversion unit 13.
[0179]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated clockwise by 180 ° with respect to before the coordinate conversion.
[0180]
Next, a specific process when the normal mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the 180 ° mode.
[0181]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at pixel positions BC, BD, CD, and DD before coordinate conversion. A (X, Y) = A (010, 001) is set in the start coordinate designation register 18 with the pixel position BC as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (011,001), C (X, Y) = C (011,010), and D (X, Y) = D (011,011) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0182]
Since the pre-conversion coordinates of the pixel A are A (010,001), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Input pre-conversion coordinate signal X 0 X 1 X 2 (010) is input to the X-coordinate selector 43 and the signal inversion circuit 41. In the signal inversion circuit 41, the coordinate signal X before conversion 0 X 1 X 2 Each bit of (010) is inverted, and the inverted coordinate signal iX 0 iX 1 iX 2 (101) is input to the X coordinate selector 43. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is input to the Y coordinate selector 44 and the signal inverting circuit 42. In the signal inverting circuit 42, the pre-conversion coordinate signal Y 0 Y 1 Y 2 Each bit of (001) is inverted, and the inverted coordinate signal iY 0 iY 1 iY 2 (110) is input to the Y coordinate selector 44.
[0183]
Since it operates in the normal mode, under the control of the display mode control circuit 45, the X coordinate selector 43 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) is selected and output. The Y coordinate selector 44 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (001) is selected and output.
[0184]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates A (010, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates A (010, 001).
[0185]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Under the control of the display mode control circuit 45, the X coordinate selector 43 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and the inverted coordinate signal iX 0 iX 1 iX 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y coordinate selector 44 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (001) and the inverted coordinate signal iY 0 iY 1 iY 2 (110), the coordinate signal Y before conversion 0 Y 1 Y 2 (001) is selected and output.
[0186]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates B (011, 001) before conversion to the coordinate address conversion unit 13 as converted coordinates B (011, 001).
[0187]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 45, the X coordinate selector 43 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and the inverted coordinate signal iX 0 iX 1 iX 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y coordinate selector 44 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 Of (101), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (010) is selected and output.
[0188]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates C (011, 010) before conversion to the coordinate address conversion unit 13 as the converted coordinates C (011, 010).
[0189]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 45, the X coordinate selector 43 outputs the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and the inverted coordinate signal iX 0 iX 1 iX 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y coordinate selector 44 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (011) and inverted coordinate signal iY 0 iY 1 iY 2 Of (100), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output.
[0190]
Through the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates D (011, 011) before conversion to the coordinate address conversion unit 13 as the converted coordinates D (011, 011).
[0191]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. Thereby, the same image data as before the coordinate conversion can be displayed without rotating.
[0192]
FIGS. 26 and 27 show the result of coordinate conversion by the coordinate rotation unit 19 shown in FIG. FIG. 26 shows a coordinate conversion result in the 180 ° mode, and FIG. 27 shows a coordinate conversion result in the normal mode. 26 and 27 are obtained by the coordinate conversion unit 12 including the coordinate rotation unit 19, the display device 1 switches between using and not rotating the image data by 180 °. be able to.
[0193]
Conventionally, to rotate image data clockwise by 180 °, a coordinate conversion device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0194]
FIG. 5 is a block diagram showing the configuration of the coordinate rotation unit 19 that rotates the image data clockwise by any one of 90 °, 180 °, and 270 °. As shown in FIG. 13, since the screen configuration of the display unit 16 is 6 × 5 pixels with respect to signals representing the X coordinate and the Y coordinate to be converted, the X coordinate having a large number of pixels is used as a reference. Is a 3-bit configuration with a minimum bit width capable of expressing Of course, a value larger than 3 bits may be set.
[0195]
The coordinate rotation unit 19 includes a signal inversion circuit 51, a signal inversion circuit 52, an X coordinate selector 53, a Y coordinate selector 54, and a display mode control circuit 55. The signal inversion circuit 51 outputs the coordinate signal X before conversion. 0 ~ X n Are inverted to obtain an inverted coordinate signal iX 0 ~ IX n Is output to the X coordinate selector 53 and the Y coordinate selector 54. The signal inverting circuit 52 outputs the coordinate signal Y before conversion. 0 ~ Y n Are inverted to obtain an inverted coordinate signal iY 0 ~ IY n Is output to the X coordinate selector 53 and the Y coordinate selector 54. One example of the signal inversion circuits 51 and 52 is configured as shown in a circuit diagram of FIG.
[0196]
The X-coordinate selector 53 is controlled by the display mode control circuit 55, and outputs the X-coordinate signal X before conversion. 0 ~ X n , Coordinate signal Y before conversion 0 ~ Y n , The inverted coordinate signal iX which is the output signal of the signal inverting circuit 51 0 ~ IX n And an inverted coordinate signal iY which is an output signal of the signal inverting circuit 52. 0 ~ IY n Is selected, and the coordinate signal X after the conversion is selected. 0 '~ X n The first selection circuit outputs the signal as'. The Y-coordinate selector 54 is controlled by the display mode control circuit 55, and outputs the coordinate signal X before conversion. 0 ~ X n , Coordinate signal Y before conversion 0 ~ Y n , The inverted coordinate signal iX which is the output signal of the signal inverting circuit 51 0 ~ IX n And an inverted coordinate signal iY which is an output signal of the signal inverting circuit 52. 0 ~ IY n Is selected, and the coordinate signal Y after the conversion is selected. 0 '~ Y n 'Is a second selection circuit that outputs as'. Since the screen configuration of the display unit 16 is a configuration of 6 × 5 pixels as shown in FIG. 13, the coordinate signal before conversion indicating the X coordinate before conversion is X 0 ~ X 2 The three-bit coordinate signal before conversion representing the Y coordinate before conversion is Y 0 ~ Y 2 , The converted coordinate signal representing the converted X coordinate is X 0 '~ X 2 ', The converted coordinate signal representing the converted Y coordinate is Y 0 '~ Yn' 2 Is composed of three bits.
[0197]
The display mode control circuit 55 as a control means is a first output mode, a 90 ° mode for rotating image data by 90 °, a second output mode, a 270 ° mode for rotating image data by 270 °, and a third output mode. Control signals for the X-coordinate selector 53 and the Y-coordinate selector 54 for four types of display modes: a 180 ° mode in which image data is rotated by 180 ° and a normal mode in which the image data is not rotated in the fourth output mode. Is output and controlled.
[0198]
In the case of the 90 ° mode, the X-coordinate selector 53 controls the pre-conversion coordinate signal X which is the first bit data under the control of the display mode control circuit 55. 0 ~ X 2 , The pre-conversion coordinate signal Y that is the second bit data 0 ~ Y 2 , The inverted coordinate signal iX which is the inverted first bit data 0 ~ IX 2 And an inverted coordinate signal iY as inverted second bit data 0 ~ IY 2 Of the inverted coordinate signal iY 0 ~ IY 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 55, the Y-coordinate selector 54 controls the coordinate signal X before conversion. 0 ~ X 2 , Coordinate signal Y before conversion 0 ~ Y 2 , Inverted coordinate signal iX 0 ~ IX 2 And the inverted coordinate signal iY 0 ~ IY 2 Of the coordinate signal X before conversion 0 ~ X 2 Is selected, and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0199]
In the case of the 270 ° mode, the X coordinate selector 53 controls the coordinate signal X before conversion under the control of the display mode control circuit 55. 0 ~ X 2 , Coordinate signal Y before conversion 0 ~ Y 2 , Inverted coordinate signal iX 0 ~ IX 2 And the inverted coordinate signal iY 0 ~ IY 2 Of the coordinate signal Y before conversion 0 ~ Y 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 55, the Y-coordinate selector 54 controls the coordinate signal X before conversion. 0 ~ X 2 , Coordinate signal Y before conversion 0 ~ Y 2 , Inverted coordinate signal iX 0 ~ IX 2 And the inverted coordinate signal iY 0 ~ IY 2 Of the inverted coordinate signal iX 0 ~ IX 2 Is selected, and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0200]
In the case of the 180 ° mode, the X-coordinate selector 53 controls the coordinate signal X before conversion under the control of the display mode control circuit 55. 0 ~ X 2 , Coordinate signal Y before conversion 0 ~ Y 2 , Inverted coordinate signal iX 0 ~ IX 2 And the inverted coordinate signal iY 0 ~ IY 2 Of the inverted coordinate signal iX 0 ~ IX 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 55, the Y-coordinate selector 54 controls the coordinate signal X before conversion. 0 ~ X 2 , Coordinate signal Y before conversion 0 ~ Y 2 , Inverted coordinate signal iX 0 ~ IX 2 And the inverted coordinate signal iY 0 ~ IY 2 Of the inverted coordinate signal iY 0 ~ IY 2 Is selected, and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0201]
In the case of the normal mode, the X-coordinate selector 53 controls the X-coordinate signal X under the control of the display mode control circuit 55. 0 ~ X 2 , Coordinate signal Y before conversion 0 ~ Y 2 , Inverted coordinate signal iX 0 ~ IX 2 And the inverted coordinate signal iY 0 ~ IY 2 Of the coordinate signal X before conversion 0 ~ X 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 55, the Y-coordinate selector 54 controls the coordinate signal X before conversion. 0 ~ X 2 , Coordinate signal Y before conversion 0 ~ Y 2 , Inverted coordinate signal iX 0 ~ IX 2 And the inverted coordinate signal iY 0 ~ IY 2 Of the coordinate signal Y before conversion 0 ~ Y 2 Is selected, and the converted coordinate signal Y 0 '~ Y 2 Output as'. Since the image data is not rotated, both the X coordinate and the Y coordinate are the same before and after the conversion.
[0202]
Image data before coordinate conversion in the 90 ° mode is a diagram shown in FIG. 17, and image data rotated by 90 ° is a diagram shown in FIG. The image data before the coordinate conversion in the 270 ° mode is a diagram shown in FIG. 20, and the image data rotated by 270 ° is a diagram shown in FIG. The image data before the coordinate conversion in the 180 ° mode is a diagram shown in FIG. 22, and the image data rotated 180 ° is a diagram shown in FIG.
[0203]
First, a specific process when the 90 ° mode is selected will be described. The image data to be displayed is assumed to be the image data (consisting of four pixels A, B, C, and D) shown in FIG.
[0204]
FIG. 19 shows the orientation of the image data when viewed from the correct direction. In the 90 ° mode, the image data is shifted 90 degrees so that a person on the left side of the user can view the image data in the correct direction. Rotate °.
[0205]
First, the drawing unit 11 generates pre-conversion coordinates so that image data (A, B, C, D) is displayed at the pixel positions EB, EC, FC, and GC before the coordinate conversion. A (X, Y) = A (001, 100) is set in the start coordinate designation register 18 with the pixel position EB as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (010,100), C (X, Y) = C (010,101), and D (X, Y) = D (010,110) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0206]
For the pixel A, since the coordinates before conversion are A (001, 100), the coordinate signal X before conversion is 0 ~ X n Is X 0 X 1 X 2 (001), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Input pre-conversion coordinate signal X 0 X 1 X 2 (001) is input to the signal inversion circuit 51, the X coordinate selector 53, and the Y coordinate selector 54. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (100) is input to the signal inversion circuit 52, the X coordinate selector 53, and the Y coordinate selector 54. In the signal inversion circuit 51, the coordinate signal X before conversion is used. 0 X 1 X 2 (001) are inverted, and the inverted coordinate signal iX 0 iX 1 iX 2 (110) is input to the X coordinate selector 53 and the Y coordinate selector 54. In the signal inverting circuit 52, the pre-conversion coordinate signal Y 0 Y 1 Y 2 All bits of (100) are inverted, and the inverted coordinate signal iY 0 iY 1 iY 2 (011) is input to the X coordinate selector 53 and the Y coordinate selector 54.
[0207]
Since it operates in the 90 ° mode, under the control of the display mode control circuit 55, the X coordinate selector 53 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (001) is selected and output.
[0208]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (001, 100) before conversion into the converted coordinates A (011, 001) and outputs the converted coordinates A (011, 001) to the coordinate address conversion unit 13.
[0209]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010), coordinate signal Y before conversion 0 Y 1 Y 2 (100), inverted coordinate signal iX 0 iX 1 iX 2 (101) and inverted coordinate signal iY 0 iY 1 iY 2 Of (011), the inverted coordinate signal iY 0 iY 1 iY 2 (011) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010), coordinate signal Y before conversion 0 Y 1 Y 2 (100), inverted coordinate signal iX 0 iX 1 iX 2 (101) and inverted coordinate signal iY 0 iY 1 iY 2 Of (011), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output.
[0210]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (010, 100) before conversion into the converted coordinates B (011, 010) and outputs the converted coordinates B (011, 010) to the coordinate address conversion unit 13.
[0211]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (101). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010), coordinate signal Y before conversion 0 Y 1 Y 2 (101), inverted coordinate signal iX 0 iX 1 iX 2 (101) and inverted coordinate signal iY 0 iY 1 iY 2 (010), the inverted coordinate signal iY 0 iY 1 iY 2 (010) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010), coordinate signal Y before conversion 0 Y 1 Y 2 (101), inverted coordinate signal iX 0 iX 1 iX 2 (101) and inverted coordinate signal iY 0 iY 1 iY 2 (010), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output.
[0212]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates C (010, 101) before conversion into the converted coordinates C (010, 010) and outputs the converted coordinates C (010, 010) to the coordinate address conversion unit 13.
[0213]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (110). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010), coordinate signal Y before conversion 0 Y 1 Y 2 (110), inverted coordinate signal iX 0 iX 1 iX 2 (101) and inverted coordinate signal iY 0 iY 1 iY 2 (001), the inverted coordinate signal iY 0 iY 1 iY 2 (001) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010), coordinate signal Y before conversion 0 Y 1 Y 2 (110), inverted coordinate signal iX 0 iX 1 iX 2 (101) and inverted coordinate signal iY 0 iY 1 iY 2 (001), the pre-conversion coordinate signal X 0 X 1 X 2 (010) is selected and output.
[0214]
Through the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates D (010, 110) before conversion into the converted coordinates D (001, 010) and outputs the converted coordinates D (001, 010) to the coordinate address conversion unit 13.
[0215]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated clockwise by 90 ° with respect to before the coordinate conversion.
[0216]
Specific processing when the 270 ° mode is selected will be described. The image data to be displayed is the image data (consisting of four pixels A, B, C, and D) shown in FIG. FIG. 19 shows the direction of the image data when viewed from the correct direction. In the 270 ° mode, the image data is converted to 270 ° so that a person on the right side of the user can view the image data in the correct direction. Rotate °.
[0217]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at the pixel positions CE, CF, DF, and EF before coordinate conversion. A (X, Y) = A (100, 010) is set in the start coordinate designation register 18 using the pixel position CE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (101,010), C (X, Y) = C (101,011), and D (X, Y) = D (101,100) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0218]
Since the pre-conversion coordinates of the pixel A are A (100,010), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (100), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Input pre-conversion coordinate signal X 0 X 1 X 2 (100) is input to the signal inversion circuit 51, the X coordinate selector 53, and the Y coordinate selector 54. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (010) is input to the signal inversion circuit 52, the X coordinate selector 53, and the Y coordinate selector 54.
[0219]
In the signal inversion circuit 51, the coordinate signal X before conversion is used. 0 X 1 X 2 All bits of (100) are inverted, and the inverted coordinate signal iX 0 iX 1 iX 2 (011) is input to the X coordinate selector 53 and the Y coordinate selector 54. In the signal inverting circuit 52, the pre-conversion coordinate signal Y 0 Y 1 Y 2 All bits of (010) are inverted, and the inverted coordinate signal iY 0 iY 1 iY 2 (101) is input to the X coordinate selector 53 and the Y coordinate selector 54.
[0220]
Since it operates in the 270 ° mode, under the control of the display mode control circuit 55, the X coordinate selector 53 0 'X 1 'X 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (011) is selected and output.
[0221]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (100, 010) before conversion into the converted coordinates A (010, 011) and outputs the converted coordinates A (010, 011) to the coordinate address conversion unit 13.
[0222]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (010), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 Of (101), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (010) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (010), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 Of (101), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output.
[0223]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (101, 010) before conversion into the coordinates B (010, 010) after conversion and outputs the converted coordinates B (010, 010) to the coordinate address conversion unit 13.
[0224]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (011), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 Of (100), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (011), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (100), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output.
[0225]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates C (101, 011) before conversion into the converted coordinates C (011, 010) and outputs the converted coordinates C (011, 010) to the coordinate address conversion unit 13.
[0226]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (100), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (100) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (100), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (011) of the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output.
[0227]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (101, 100) before conversion into the converted coordinates D (100, 010) and outputs the converted coordinates D (100, 010) to the coordinate address conversion unit 13.
[0228]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated 270 ° clockwise relative to before the coordinate conversion.
[0229]
Specific processing when the 180 ° mode is selected will be described. The image data to be displayed is the image data (consisting of four pixels A, B, C, and D) shown in FIG. FIG. 19 shows the correct direction when viewed by the user. In the 180 ° mode, the image data is rotated by 180 ° so that the person on the opposite side of the user can view the image data in the correct direction. .
[0230]
First, the drawing unit 11 generates pre-transform coordinates so that image data (A, B, C, D) is displayed at the pixel positions EE, EF, FF, and GF before the coordinate transformation. A (X, Y) = A (100, 100) is set in the start coordinate designation register 18 using the pixel position EE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (101,100), C (X, Y) = C (101,101), and D (X, Y) = D (101,110) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0231]
For the pixel A, the pre-conversion coordinates are A (100, 100), so the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (100), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Input pre-conversion coordinate signal X 0 X 1 X 2 (100) is input to the signal inversion circuit 51, the X coordinate selector 53, and the Y coordinate selector 54. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (100) is input to the signal inversion circuit 52, the X coordinate selector 53, and the Y coordinate selector 54. In the signal inversion circuit 51, the coordinate signal X before conversion is used. 0 X 1 X 2 All bits of (100) are inverted, and the inverted coordinate signal iX 0 iX 1 iX 2 (011) is input to the X coordinate selector 53 and the Y coordinate selector 54. In the signal inverting circuit 52, the pre-conversion coordinate signal Y 0 Y 1 Y 2 All bits of (100) are inverted, and the inverted coordinate signal iY 0 iY 1 iY 2 (011) is input to the X coordinate selector 53 and the Y coordinate selector 54.
[0232]
Since it operates in the 180 ° mode, under the control of the display mode control circuit 55, the X coordinate selector 53 0 'X 1 'X 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (011) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is selected and output.
[0233]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (100, 100) before conversion into the converted coordinates A (011, 011) and outputs the converted coordinates A (011, 011) to the coordinate address conversion unit 13.
[0234]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (100), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (011) of the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (100), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 Of (011), the inverted coordinate signal iY 0 iY 1 iY 2 (011) is selected and output.
[0235]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (101, 100) before conversion into the converted coordinates B (010, 011) and outputs the converted coordinates B (010, 011) to the coordinate address conversion unit 13.
[0236]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (101). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (101), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (010), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (101), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (010), the inverted coordinate signal iY 0 iY 1 iY 2 (010) is selected and output.
[0237]
Through the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates C (101, 101) before conversion into the converted coordinates C (010, 010) and outputs the converted coordinates C (010, 010) to the coordinate address conversion unit 13.
[0238]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (110). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (110), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (001), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101), coordinate signal Y before conversion 0 Y 1 Y 2 (110), inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (001), the inverted coordinate signal iY 0 iY 1 iY 2 (001) is selected and output.
[0239]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (101, 110) before conversion into the converted coordinates D (010, 001) and outputs the converted coordinates D (010, 001) to the coordinate address conversion unit 13.
[0240]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated clockwise by 180 ° with respect to before the coordinate conversion.
[0241]
Next, a specific process when the normal mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the other modes.
[0242]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at pixel positions BC, BD, CD, and DD before coordinate conversion. A (X, Y) = A (010, 001) is set in the start coordinate designation register 18 with the pixel position BC as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (011,001), C (X, Y) = C (011,010), and D (X, Y) = D (011,011) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0243]
Since the pre-conversion coordinates of the pixel A are A (010,001), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Input pre-conversion coordinate signal X 0 X 1 X 2 (010) is input to the signal inversion circuit 51, the X coordinate selector 53, and the Y coordinate selector 54. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is input to the signal inversion circuit 52, the X coordinate selector 53, and the Y coordinate selector 54. In the signal inversion circuit 51, the coordinate signal X before conversion is used. 0 X 1 X 2 All bits of (010) are inverted, and the inverted coordinate signal iX 0 iX 1 iX 2 (101) is input to the X coordinate selector 53 and the Y coordinate selector 54. In the signal inverting circuit 52, the pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) are inverted, and the inverted coordinate signal iY 0 iY 1 iY 2 (110) is input to the X coordinate selector 53 and the Y coordinate selector 54.
[0244]
Since it operates in the normal mode, under the control of the display mode control circuit 55, the X coordinate selector 53 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (001) is selected and output.
[0245]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates A (010, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates A (010, 001).
[0246]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011), coordinate signal Y before conversion 0 Y 1 Y 2 (001), inverted coordinate signal iX 0 iX 1 iX 2 (100) and inverted coordinate signal iY 0 iY 1 iY 2 Of (110), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011), coordinate signal Y before conversion 0 Y 1 Y 2 (001), inverted coordinate signal iX 0 iX 1 iX 2 (100) and inverted coordinate signal iY 0 iY 1 iY 2 (110), the coordinate signal Y before conversion 0 Y 1 Y 2 (001) is selected and output.
[0247]
By the coordinate conversion described above, the coordinate conversion unit 19 outputs the input coordinates B (011, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates B (011, 001).
[0248]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011), coordinate signal Y before conversion 0 Y 1 Y 2 (010), inverted coordinate signal iX 0 iX 1 iX 2 (100) and inverted coordinate signal iY 0 iY 1 iY 2 Of (101), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011), coordinate signal Y before conversion 0 Y 1 Y 2 (010), inverted coordinate signal iX 0 iX 1 iX 2 (100) and inverted coordinate signal iY 0 iY 1 iY 2 Of (101), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (010) is selected and output.
[0249]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates C (011, 010) before conversion to the coordinate address conversion unit 13 as the converted coordinates C (011, 010).
[0250]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 55, the X coordinate selector 53 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011), coordinate signal Y before conversion 0 Y 1 Y 2 (011), inverted coordinate signal iX 0 iX 1 iX 2 (100) and inverted coordinate signal iY 0 iY 1 iY 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y-coordinate selector 54 outputs the converted coordinate signal Y. 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011), coordinate signal Y before conversion 0 Y 1 Y 2 (011), inverted coordinate signal iX 0 iX 1 iX 2 (100) and inverted coordinate signal iY 0 iY 1 iY 2 Of (100), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output.
[0251]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (011, 011) before conversion into the converted coordinates D (011, 011) and outputs the converted coordinates D (011, 011) to the coordinate address conversion unit 13.
[0252]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. Thereby, the same image data as before the coordinate conversion can be displayed without rotating.
[0253]
The result of the coordinate conversion by the coordinate rotating unit 19 shown in FIG. 5 is the same as the result shown in FIGS. The conversion results as shown in FIGS. 24 to 27 are obtained by the coordinate conversion unit 12 including the coordinate rotation unit 19, so that the display device 1 rotates the image data by 90 degrees, 180 degrees, 270 degrees It is possible to switch between using and not rotating.
[0254]
Conventionally, to rotate image data 90 °, 270 °, and 180 ° clockwise, a coordinate transformation device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0255]
FIG. 6 is a block diagram illustrating another configuration of the coordinate rotation unit 19 that rotates image data by 90 degrees clockwise. Regarding the signals representing the X coordinate and the Y coordinate to be converted, as shown in FIG. 13, the screen configuration of the display unit 16 is 6 × 5 pixels. It has a 3-bit configuration with a minimum bit width capable of representing coordinates. Of course, a value larger than 3 bits may be set.
[0256]
The coordinate rotation unit 19 includes an X coordinate selector 61, a Y coordinate selector 62, a signal inversion circuit 63, and a display mode control circuit 64. The X-coordinate selector 61 is controlled by the display mode control circuit 64, and outputs the pre-conversion coordinate signal X. 0 ~ X n And coordinate signal Y before conversion 0 ~ Y n Is a first selection circuit that selects any one of them and outputs it to the signal inversion circuit 63. The signal inverting circuit 63 outputs the pre-conversion coordinate signal X output from the X-coordinate selector 61. 0 ~ X n And coordinate signal Y before conversion 0 ~ Y n Is inverted under the control of the display mode control circuit 64 to convert the converted coordinate signal X 0 '~ X n This is a control inversion circuit that outputs as'.
[0257]
FIG. 12 is a circuit diagram showing an example of the signal inversion circuit 63. As shown in FIG. 0 ~ IN n (X 0 ~ X n Or Y 0 ~ Y n ) Are input to an XOR circuit (exclusive OR circuit), and all the XOR circuits are input with an inversion control signal from the display mode control circuit 64. When the inversion control signal is 0, all the XOR circuits are connected to the input signal IN. 0 ~ IN n Output signal OUT 0 ~ OUT n (X 0 ~ X n Or Y 0 ~ Y n ), And when the inversion control signal is 1, all the XOR circuits output the input signal IN. 0 ~ IN n And output signal OUT 0 ~ OUT n (IX 0 ~ IX n Or iY 0 ~ IY n ). For example, if the inversion control signal is 0 and the input signal IN 0 Is 1 when the output signal OUT 0 Is output as 1 and the inversion control signal is 1 and the input signal IN 0 Is 1 when the output signal OUT 0 Is inverted to 0 and output.
[0258]
The Y-coordinate selector 62 is controlled by the display mode control circuit 64, and outputs the pre-conversion coordinate signal X. 0 ~ X n And coordinate signal Y before conversion 0 ~ Y n Is selected, and the coordinate signal Y after the conversion is selected. 0 '~ Y n 'Is a second selection circuit that outputs as'.
[0259]
Since the screen configuration of the display unit 16 is a configuration of 6 × 5 pixels as shown in FIG. 13, the coordinate signal before conversion indicating the X coordinate before conversion is X 0 ~ X 2 The three-bit coordinate signal before conversion representing the Y coordinate before conversion is Y 0 ~ Y 2 , The converted coordinate signal representing the converted X coordinate is X 0 '~ X 2 ', The converted coordinate signal representing the converted Y coordinate is Y 0 '~ Yn' 2 Is composed of three bits. The display mode control circuit 64, which is a control means, has two types of display modes, a first output mode, a 90 ° mode in which image data is rotated by 90 °, and a second output mode, a normal mode in which image data is not rotated. , A control signal is output to the X-coordinate selector 61, the Y-coordinate selector 62, and the signal inversion circuit 63 for control.
[0260]
In the case of the 90 ° mode, the X-coordinate selector 61 controls the pre-conversion coordinate signal X which is the first bit data under the control of the display mode control circuit 64. 0 ~ X 2 Alternatively, the pre-conversion coordinate signal Y which is the second bit data 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 And outputs it to the signal inverting circuit 63. The signal inverting circuit 63 controls the coordinate signal Y before conversion under the control of the display mode control circuit 64. 0 ~ Y 2 Is inverted to obtain an inverted coordinate signal iY which is inverted second bit data. 0 ~ IY 2 Is converted to a coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 64, the Y coordinate selector 62 0 ~ X 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 Is selected and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0261]
In the case of the normal mode, the X-coordinate selector 61 controls the coordinate signal X before conversion under the control of the display mode control circuit 64. 0 ~ X 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 And outputs it to the signal inverting circuit 63. The signal inverting circuit 63 controls the coordinate signal X before conversion under the control of the display mode control circuit 64. 0 ~ X 2 Without inverting the coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 64, the Y coordinate selector 62 0 ~ X 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 Is selected and the converted coordinate signal Y 0 '~ Y 2 Output as'. Since the image data is not rotated, both the X coordinate and the Y coordinate are the same before and after the conversion.
[0262]
Image data before coordinate conversion and rotated by 90 ° are the same as those shown in FIGS. 17 and 18, respectively.
[0263]
Specific processing when the 90 ° mode is selected will be described. The image data to be displayed is assumed to be the image data (consisting of four pixels A, B, C, and D) shown in FIG. FIG. 19 shows the direction of the image data when viewed from the correct direction. In the present embodiment, the image data is set to 90 degrees so that the person on the left side of the user can view the image data in the correct direction. Rotate °.
[0264]
First, the drawing unit 11 generates pre-conversion coordinates so that image data (A, B, C, D) is displayed at the pixel positions EB, EC, FC, and GC before the coordinate conversion. A (X, Y) = A (001, 100) is set in the start coordinate designation register 18 with the pixel position EB as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (010,100), C (X, Y) = C (010,101), and D (X, Y) = D (010,110) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0265]
For the pixel A, since the coordinates before conversion are A (001, 100), the coordinate signal X before conversion is 0 ~ X n Is X 0 X 1 X 2 (001), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Input pre-conversion coordinate signal X 0 X 1 X 2 (001) is input to the selector 61 for the X coordinate and the selector 62 for the Y coordinate. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (100) is input to the selector 61 for the X coordinate and the selector 62 for the Y coordinate.
[0266]
Since it operates in the 90 ° mode, under the control of the display mode control circuit 64, the X coordinate selector 61 0 Y 1 Y 2 (100) is selected and output to the signal inversion circuit 63. The signal inversion circuit 63 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (100) and convert the coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is output. The Y coordinate selector 62 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (001) is selected and output.
[0267]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (001, 100) before conversion into the converted coordinates A (011, 001) and outputs the converted coordinates A (011, 001) to the coordinate address conversion unit 13.
[0268]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 64, the X-coordinate selector 61 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion Y 0 Y 1 Y 2 (100) is selected and output to the signal inversion circuit 63. The signal inversion circuit 63 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 All the bits of (100) are inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is output. The Y coordinate selector 62 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output.
[0269]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (010, 100) before conversion into the converted coordinates B (011, 010) and outputs the converted coordinates B (011, 010) to the coordinate address conversion unit 13.
[0270]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (101). Under the control of the display mode control circuit 64, the X coordinate selector 61 sets the X coordinate 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (101), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (101) is selected and output to the signal inversion circuit 63. The signal inversion circuit 63 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Each bit of (101) is inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (010) is output. The Y coordinate selector 62 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (101), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output.
[0271]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates C (010, 101) before conversion into the converted coordinates C (010, 010) and outputs the converted coordinates C (010, 010) to the coordinate address conversion unit 13.
[0272]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (110). Under the control of the display mode control circuit 64, the X coordinate selector 61 sets the X coordinate 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 (110), the coordinate signal Y before conversion 0 Y 1 Y 2 (110) is selected and output to the signal inversion circuit 63. The signal inversion circuit 63 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (110) and convert the coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (001) is output. The Y coordinate selector 62 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (110), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output.
[0273]
Through the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates D (010, 110) before conversion into the converted coordinates D (001, 010) and outputs the converted coordinates D (001, 010) to the coordinate address conversion unit 13.
[0274]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated clockwise by 90 ° with respect to before the coordinate conversion.
[0275]
Next, a specific process when the normal mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the 90 ° mode.
[0276]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at pixel positions BC, BD, CD, and DD before coordinate conversion. A (X, Y) = A (010, 001) is set in the start coordinate designation register 18 with the pixel position BC as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (011,001), C (X, Y) = C (011,010), and D (X, Y) = D (011,011) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0277]
Since the pre-conversion coordinates of the pixel A are A (010,001), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Input pre-conversion coordinate signal X 0 X 1 X 2 (010) is input to the X-coordinate selector 61 and the Y-coordinate selector 62. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is input to the selector 61 for the X coordinate and the selector 62 for the Y coordinate.
[0278]
Since it operates in the normal mode, under the control of the display mode control circuit 64, the X coordinate selector 61 0 X 1 X 2 (010) is selected and output to the signal inversion circuit 63. The signal inverting circuit 63 outputs the coordinate signal X before conversion. 0 X 1 X 2 Without inverting (010), the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) is output. The Y coordinate selector 62 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (001) is selected and output.
[0279]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates A (010, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates A (010, 001).
[0280]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Under the control of the display mode control circuit 64, the X coordinate selector 61 sets the X coordinate 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal X 0 X 1 X 2 (011) is selected and output to the signal inversion circuit 63. The signal inverting circuit 63 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) is not inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) is output. The Y coordinate selector 62 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is selected and output.
[0281]
By the coordinate conversion described above, the coordinate conversion unit 19 outputs the input coordinates B (011, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates B (011, 001).
[0282]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 64, the X coordinate selector 61 sets the X coordinate 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output to the signal inversion circuit 63. The signal inverting circuit 63 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) is not inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) is output. The Y coordinate selector 62 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output.
[0283]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates C (011, 010) before conversion to the coordinate address conversion unit 13 as the converted coordinates C (011, 010).
[0284]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 64, the X coordinate selector 61 sets the X coordinate 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output to the signal inversion circuit 63. The signal inverting circuit 63 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) is not inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) is output. The Y coordinate selector 62 outputs the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output.
[0285]
Through the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates D (011, 011) before conversion to the coordinate address conversion unit 13 as the converted coordinates D (011, 011).
[0286]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. Thereby, the same image data as before the coordinate conversion can be displayed without rotating.
[0287]
The result of the coordinate conversion by the coordinate rotating unit 19 shown in FIG. 6 is the same as in FIGS. 24 and 27. The conversion results shown in FIGS. 24 and 27 are obtained by the coordinate conversion unit 12 including the coordinate rotation unit 19, so that the display device 1 switches between using and not rotating the image data by 90 °. be able to.
[0288]
Conventionally, to rotate image data 90 degrees clockwise, a coordinate conversion device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0289]
FIG. 7 is a block diagram illustrating another configuration of the coordinate rotation unit 19 that rotates the image data clockwise by 270 °. Regarding the signals representing the X coordinate and the Y coordinate to be converted, as shown in FIG. 13, the screen configuration of the display unit 16 is 6 × 5 pixels. It has a 3-bit configuration with a minimum bit width capable of representing coordinates. Of course, a value larger than 3 bits may be set.
[0290]
The coordinate rotation unit 19 includes an X coordinate selector 71, a Y coordinate selector 72, a signal inversion circuit 73, and a display mode control circuit 74. The X-coordinate selector 71 is controlled by the display mode control circuit 74, and outputs the X-coordinate signal X before conversion. 0 ~ X n And coordinate signal Y before conversion 0 ~ Y n Is selected, and the coordinate signal X after conversion is selected. 0 '~ X n The first selection circuit outputs the signal as'. The Y-coordinate selector 72 is controlled by the display mode control circuit 74, and outputs the pre-conversion coordinate signal X. 0 ~ X n And coordinate signal Y before conversion 0 ~ Y n Is a second selection circuit that selects any one of the above and outputs the selected signal to the signal inversion circuit 73.
[0291]
The signal inverting circuit 73 outputs the unconverted coordinate signal X output from the Y coordinate selector 72. 0 ~ X n And coordinate signal Y before conversion 0 ~ Y n Is inverted under the control of the display mode control circuit 74, and the converted coordinate signal Y 0 '~ Y n This is a control inversion circuit that outputs as'. An example of the signal inversion circuit 63 is configured as shown in a circuit diagram of FIG. Since the screen configuration of the display unit 16 is a configuration of 6 × 5 pixels as shown in FIG. 13, the coordinate signal before conversion indicating the X coordinate before conversion is X 0 ~ X 2 The three-bit coordinate signal before conversion representing the Y coordinate before conversion is Y 0 ~ Y 2 , The converted coordinate signal representing the converted X coordinate is X 0 '~ X 2 ', The converted coordinate signal representing the converted Y coordinate is Y 0 '~ Yn' 2 Is composed of three bits.
[0292]
The display mode control circuit 74, which is a control means, controls the X coordinate for two types of display modes, a first output mode, that is, a 270 ° mode in which image data is rotated by 270 °, and a second output mode, a normal mode in which image data is not rotated. And outputs a control signal to the selector 71 for Y coordinate, the selector 72 for Y coordinate, and the signal inverting circuit 73 for control.
[0293]
In the case of the 270 ° mode, the X coordinate selector 71 controls the display mode control circuit 64 to control the X-coordinate signal X which is the first bit data. 0 ~ X 2 Alternatively, the pre-conversion coordinate signal Y which is the second bit data 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 To select the coordinate signal X after conversion. 0 '~ X 2 Output as'. The Y-coordinate selector 72 controls the coordinate signal X before conversion under the control of the display mode control circuit 74. 0 ~ X 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 And outputs it to the signal inverting circuit 73. The signal inversion circuit 73 controls the coordinate signal X before conversion under the control of the display mode control circuit 74. 0 ~ X 2 And an inverted coordinate signal iX which is the inverted first bit data 0 ~ IX 2 Is converted to a coordinate signal Y 0 '~ Y 2 Output as'.
[0294]
In the case of the normal mode, the X-coordinate selector 71 controls the X-coordinate signal X under the control of the display mode control circuit 74. 0 ~ X 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 To select the coordinate signal X after conversion. 0 '~ X 2 Output as'. The Y-coordinate selector 72 controls the coordinate signal X before conversion under the control of the display mode control circuit 74. 0 ~ X 2 And coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 And outputs it to the signal inverting circuit 73. The signal inversion circuit 73 controls the coordinate signal Y before conversion under the control of the display mode control circuit 74. 0 ~ Y 2 Coordinate signal Y without conversion 0 '~ Y 2 Output as'. Since the image data is not rotated, both the X coordinate and the Y coordinate are the same before and after the conversion.
[0295]
The image data before the coordinate transformation and the image data rotated by 270 ° are the same as those shown in FIGS. 20 and 21, respectively.
[0296]
Specific processing when the 270 ° mode is selected will be described. The image data to be displayed is assumed to be the image data (consisting of four pixels A, B, C, and D) shown in FIG. FIG. 19 shows the direction of the image data when viewed from the correct direction. In the present embodiment, the image data is converted to 270 so that a person on the right side of the user can view the image data in the correct direction. Rotate °.
[0297]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at the pixel positions CE, CF, DF, and EF before coordinate conversion. A (X, Y) = A (100, 010) is set in the start coordinate designation register 18 using the pixel position CE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (101,010), C (X, Y) = C (101,011), and D (X, Y) = D (101,100) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0298]
Since the pre-conversion coordinates of the pixel A are A (100,010), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (100), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Input pre-conversion coordinate signal X 0 X 1 X 2 (100) is input to the selector 71 for the X coordinate and the selector 72 for the Y coordinate. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (010) is input to the selector 71 for the X coordinate and the selector 72 for the Y coordinate.
[0299]
Since it operates in the 270 ° mode, under the control of the display mode control circuit 74, the X coordinate selector 71 0 'X 1 'X 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output. The Y-coordinate selector 72 outputs the coordinate signal X before conversion. 0 X 1 X 2 (100) is selected and output to the signal inversion circuit 73. The signal inverting circuit 73 outputs the coordinate signal X before conversion. 0 X 1 X 2 Invert each bit of (100) and convert the coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (011) is output.
[0300]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (100, 010) before conversion into the converted coordinates A (010, 011) and outputs the converted coordinates A (010, 011) to the coordinate address conversion unit 13.
[0301]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 74, the X coordinate selector 71 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output. The Y-coordinate selector 72 outputs the coordinate signal X before conversion. 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion X 0 X 1 X 2 (101) is selected and output to the signal inversion circuit 63. The signal inverting circuit 73 outputs the coordinate signal X before conversion. 0 X 1 X 2 Each bit of (101) is inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output.
[0302]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (101, 010) before conversion into the coordinates B (010, 010) after conversion and outputs the converted coordinates B (010, 010) to the coordinate address conversion unit 13.
[0303]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 74, the X coordinate selector 71 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output. The Y-coordinate selector 72 outputs the coordinate signal X before conversion. 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion X 0 X 1 X 2 (101) is selected and output to the signal inversion circuit 73. The signal inverting circuit 73 outputs the coordinate signal X before conversion. 0 X 1 X 2 Each bit of (101) is inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output.
[0304]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates C (101, 011) before conversion into the converted coordinates C (011, 010) and outputs the converted coordinates C (011, 010) to the coordinate address conversion unit 13.
[0305]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 74, the X coordinate selector 71 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion Y 0 Y 1 Y 2 (100) is selected and output. The Y-coordinate selector 72 outputs the coordinate signal X before conversion. 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (101) is selected and output to the signal inversion circuit 73. The signal inverting circuit 73 outputs the coordinate signal X before conversion. 0 X 1 X 2 Each bit of (101) is inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output.
[0306]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (101, 100) before conversion into the converted coordinates D (100, 010) and outputs the converted coordinates D (100, 010) to the coordinate address conversion unit 13.
[0307]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated 270 ° clockwise relative to before the coordinate conversion.
[0308]
Next, a specific process when the normal mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the 270 ° mode.
[0309]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at pixel positions BC, BD, CD, and DD before coordinate conversion. A (X, Y) = A (010, 001) is set in the start coordinate designation register 18 with the pixel position BC as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (011,001), C (X, Y) = C (011,010), and D (X, Y) = D (011,011) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0310]
Since the pre-conversion coordinates of the pixel A are A (010,001), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Input pre-conversion coordinate signal X 0 X 1 X 2 (010) is input to the selector 71 for the X coordinate and the selector 72 for the Y coordinate. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is input to the X coordinate selector 71 and the Y coordinate selector 72.
[0311]
Since it operates in the normal mode, under the control of the display mode control circuit 74, the X coordinate selector 71 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) is selected and output. The Y-coordinate selector 72 outputs the pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is selected and output to the signal inversion circuit 73. The signal inverting circuit 73 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (001) without inverting the converted coordinate signal Y 0 'Y 1 'Y 2 The coordinate signal before conversion Y 0 Y 1 Y 2 (001) is output.
[0312]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates A (010, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates A (010, 001).
[0313]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Under the control of the display mode control circuit 74, the X coordinate selector 71 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal X 0 X 1 X 2 (011) is selected and output. The Y-coordinate selector 72 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is selected and output to the signal inversion circuit 73. The signal inverting circuit 73 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (001) without inverting the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (001) is output.
[0314]
By the coordinate conversion described above, the coordinate conversion unit 19 outputs the input coordinates B (011, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates B (011, 001).
[0315]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 74, the X coordinate selector 71 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y-coordinate selector 72 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output to the signal inversion circuit 73. The signal inverting circuit 73 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (010) is not inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (010) is output.
[0316]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates C (011, 010) before conversion to the coordinate address conversion unit 13 as the converted coordinates C (011, 010).
[0317]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 74, the X coordinate selector 71 sets the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The Y-coordinate selector 72 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output to the signal inversion circuit 73. The signal inverting circuit 73 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Without inverting (011), the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (011) is output.
[0318]
Through the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates D (011, 011) before conversion to the coordinate address conversion unit 13 as the converted coordinates D (011, 011).
[0319]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. Thereby, the same image data as before the coordinate conversion can be displayed without rotating.
[0320]
The result of the coordinate conversion by the coordinate rotating unit 19 shown in FIG. 7 is the same as in FIGS. 25 and 27. The conversion results shown in FIGS. 25 and 27 are obtained by the coordinate conversion unit 12 including the coordinate rotation unit 19, so that the display device 1 switches between using and not rotating the image data by 270 °. be able to.
[0321]
Conventionally, in order to rotate image data clockwise by 270 °, a coordinate transformation device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0322]
FIG. 8 is a block diagram illustrating another configuration of the coordinate rotation unit 19 that rotates the image data clockwise by 180 °. Regarding the signals representing the X coordinate and the Y coordinate to be converted, as shown in FIG. 13, the screen configuration of the display unit 16 is 6 × 5 pixels. It is a 3-bit configuration having a minimum bit width capable of representing coordinates. Of course, a value larger than 3 bits may be set.
[0323]
The coordinate rotation unit 19 includes a signal inversion circuit 81, a signal inversion circuit 82, and a display mode control circuit 83. The signal inverting circuit 81 outputs the input coordinate signal X before conversion. 0 ~ X n Is inverted under the control of the display mode control circuit 83, and the converted coordinate signal X 0 '~ X n This is the first control inversion circuit that outputs as'. The signal inverting circuit 82 receives the pre-conversion coordinate signal Y 0 ~ Y n Is inverted under the control of the display mode control circuit 83, and the converted coordinate signal Y 0 '~ Y n The second control inverting circuit outputs as'. One example of the signal inversion circuits 81 and 82 is configured as shown in the circuit diagram of FIG. Since the screen configuration of the display unit 16 is a configuration of 6 × 5 pixels as shown in FIG. 13, the coordinate signal before conversion indicating the X coordinate before conversion is X 0 ~ X 2 The three-bit coordinate signal before conversion representing the Y coordinate before conversion is Y 0 ~ Y 2 , The converted coordinate signal representing the converted X coordinate is X 0 '~ X 2 ', The converted coordinate signal representing the converted Y coordinate is Y 0 '~ Yn' 2 Is composed of three bits.
[0324]
The display mode control circuit 83, which is a control means, has two types of display modes: a first output mode, a 180 ° mode in which image data is rotated by 180 °, and a second output mode, a normal mode in which image data is not rotated. Is controlled by outputting a control signal to the signal inversion circuit 81 and the signal rotation circuit 82.
[0325]
In the case of the 180 ° mode, the signal inversion circuit 81 controls the display mode control circuit 83 to control the pre-conversion coordinate signal X which is the first bit data. 0 ~ X 2 And an inverted coordinate signal iX which is the inverted first bit data 0 ~ IX 2 Is converted to a coordinate signal X 0 '~ X n Output as'. Under the control of the display mode control circuit 83, the signal inversion circuit 82 controls the coordinate signal Y before conversion, which is the second bit data. 0 ~ Y n Is inverted to obtain an inverted coordinate signal iY which is inverted second bit data. 0 ~ IY 2 Is converted to a coordinate signal Y 0 '~ Y n Output as'.
[0326]
In the case of the normal mode, the signal inversion circuit 81 controls the input pre-conversion coordinate signal X under the control of the display mode control circuit 83. 0 ~ X 2 Without inverting the coordinate signal X 0 '~ X 2 Output as'. The signal inversion circuit 82 controls the input pre-conversion coordinate signal Y under the control of the display mode control circuit 83. 0 ~ Y 2 Without inverting the coordinate signal Y 0 '~ Y 2 Output as'. Since the image data is not rotated, both the X coordinate and the Y coordinate are the same before and after the conversion.
[0327]
The image data before the coordinate conversion and the image data rotated by 180 ° are the same as those shown in FIGS. 22 and 23, respectively.
[0328]
Specific processing when the 180 ° mode is selected will be described. The image data to be displayed is assumed to be the image data (consisting of four pixels A, B, C, and D) shown in FIG. FIG. 19 shows the orientation of the image data when viewed from the correct direction. In the present embodiment, the image data is displayed in a 180-degree direction so that a person on the opposite side of the user can view the image data in the correct direction. Rotate °.
[0329]
First, the drawing unit 11 generates pre-transform coordinates so that image data (A, B, C, D) is displayed at the pixel positions EE, EF, FF, and GF before the coordinate transformation. A (X, Y) = A (100, 100) is set in the start coordinate designation register 18 using the pixel position EE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (101,100), C (X, Y) = C (101,101), and D (X, Y) = D (101,110) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0330]
For the pixel A, the pre-conversion coordinates are A (100, 100), so the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (100), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Input pre-conversion coordinate signal X 0 X 1 X 2 (100) is input to the signal inversion circuit 81, and the input pre-conversion coordinate signal Y 0 Y 1 Y 2 (100) is input to the signal inversion circuit 82.
[0331]
The signal inversion circuit 81 operates under the control of the display mode control circuit 83 to operate in the 180 ° mode. 0 X 1 X 2 Invert each bit of (100) and convert the coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (011) is output. The signal inverting circuit 82 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (100) and convert the coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is output.
[0332]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (100, 100) before conversion into the converted coordinates A (011, 011) and outputs the converted coordinates A (011, 011) to the coordinate address conversion unit 13.
[0333]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 83, the signal inversion circuit 81 outputs the coordinate signal X before conversion. 0 X 1 X 2 Each bit of (101) is inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output. The signal inverting circuit 82 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (100) and convert the coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is output.
[0334]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (101, 100) before conversion into the converted coordinates B (010, 011) and outputs the converted coordinates B (010, 011) to the coordinate address conversion unit 13.
[0335]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (101). Under the control of the display mode control circuit 83, the signal inversion circuit 81 outputs the coordinate signal X before conversion. 0 X 1 X 2 Each bit of (101) is inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output. The signal inverting circuit 82 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Each bit of (101) is inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (010) is output.
[0336]
Through the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates C (101, 101) before conversion into the converted coordinates C (010, 010) and outputs the converted coordinates C (010, 010) to the coordinate address conversion unit 13.
[0337]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (110). Under the control of the display mode control circuit 83, the signal inversion circuit 81 outputs the coordinate signal X before conversion. 0 X 1 X 2 All bits of (101) are inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output. The signal inverting circuit 82 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 All the bits of (110) are inverted and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (001) is output.
[0338]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (101, 110) before conversion into the converted coordinates D (010, 001) and outputs the converted coordinates D (010, 001) to the coordinate address conversion unit 13.
[0339]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated clockwise by 180 ° with respect to before the coordinate conversion.
[0340]
Next, a specific process when the normal mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the 180 ° mode.
[0341]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at pixel positions BC, BD, CD, and DD before coordinate conversion. A (X, Y) = A (010, 001) is set in the start coordinate designation register 18 with the pixel position BC as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (011,001), C (X, Y) = C (011,010), and D (X, Y) = D (011,011) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0342]
Since the pre-conversion coordinates of the pixel A are A (010,001), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Input pre-conversion coordinate signal X 0 X 1 X 2 (010) is input to the signal inversion circuit 81, and the input pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is input to the signal inversion circuit 82.
[0343]
Since the operation is performed in the normal mode, the signal inversion circuit 81 controls the coordinate signal X before conversion under the control of the display mode control circuit 83. 0 X 1 X 2 Without inverting (010), the converted coordinate signal X 0 'X 1 'X 2 Coordinate signal X before conversion 0 X 1 X 2 (010) is output. The signal inverting circuit 82 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (001) without inverting the converted coordinate signal Y 0 'Y 1 'Y 2 The coordinate signal before conversion Y 0 Y 1 Y 2 (001) is output.
[0344]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates A (010, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates A (010, 001).
[0345]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Under the control of the display mode control circuit 83, the signal inversion circuit 81 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) is not inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) is output. The signal inverting circuit 82 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (001) without inverting the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (001) is output.
[0346]
By the coordinate conversion described above, the coordinate conversion unit 19 outputs the input coordinates B (011, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates B (011, 001).
[0347]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 83, the signal inversion circuit 81 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) is not inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) is output. The signal inverting circuit 82 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (010) is not inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (010) is output.
[0348]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates C (011, 010) before conversion to the coordinate address conversion unit 13 as the converted coordinates C (011, 010).
[0349]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 83, the signal inversion circuit 81 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) is not inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The coordinate signal X before conversion 0 X 1 X 2 (011) is output. The signal inverting circuit 82 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Without inverting (011), the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal before conversion Y 0 Y 1 Y 2 (011) is output.
[0350]
Through the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates D (011, 011) before conversion to the coordinate address conversion unit 13 as the converted coordinates D (011, 011).
[0351]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. Thereby, the same image data as before the coordinate conversion can be displayed without rotating.
[0352]
The result of the coordinate conversion by the coordinate rotating unit 19 shown in FIG. 8 is the same as in FIGS. 26 and 27. 26 and 27 are obtained by the coordinate conversion unit 12 including the coordinate rotation unit 19, the display device 1 switches between using and not rotating the image data by 180 °. be able to.
[0353]
Conventionally, to rotate image data clockwise by 180 °, a coordinate conversion device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0354]
FIG. 9 is a block diagram illustrating another configuration of the coordinate rotation unit 19 that rotates the image data clockwise by any one of 90 °, 180 °, and 270 °. Regarding the signals representing the X coordinate and the Y coordinate to be converted, as shown in FIG. 13, the screen configuration of the display unit 16 is 6 × 5 pixels. It is a 3-bit configuration having a minimum bit width capable of representing coordinates. Of course, a value larger than 3 bits may be set.
[0355]
The coordinate rotation unit 19 includes an X coordinate selector 91, a Y coordinate selector 92, a signal inversion circuit 93, a signal inversion circuit 94, and a display mode control circuit 95. The X-coordinate selector 91 is controlled by the display mode control circuit 95, and outputs the pre-conversion coordinate signal X. 0 ~ X n Or coordinate signal Y before conversion 0 ~ Y n Is a first selection circuit that selects any one of the above and outputs the selected signal to the signal inversion circuit 93. The signal inverting circuit 93 outputs the pre-conversion coordinate signal X output from the X-coordinate selector 91. 0 ~ X n Or coordinate signal Y before conversion 0 ~ Y n Is inverted under the control of the display mode control circuit 95, and the converted coordinate signal X 0 '~ X n This is the first control inversion circuit that outputs as'.
[0356]
The Y-coordinate selector 92 is controlled by the display mode control circuit 95, and outputs the pre-conversion coordinate signal X. 0 ~ X n Or coordinate signal Y before conversion 0 ~ Y n Is a second selection circuit for selecting any one of the above and outputting the selected signal to the signal inversion circuit 94. The signal inverting circuit 94 outputs the unconverted coordinate signal X output from the Y coordinate selector 92. 0 ~ X n Or coordinate signal Y before conversion 0 ~ Y n Is inverted under the control of the display mode control circuit 95, and the converted coordinate signal Y 0 '~ Y n The second control inverting circuit outputs as'.
[0357]
One example of the signal inverting circuits 93 and 94 is configured as shown in the circuit diagram of FIG. Since the screen configuration of the display unit 16 is a configuration of 6 × 5 pixels as shown in FIG. 13, the coordinate signal before conversion indicating the X coordinate before conversion is X 0 ~ X 2 The three-bit coordinate signal before conversion representing the Y coordinate before conversion is Y 0 ~ Y 2 , The converted coordinate signal representing the converted X coordinate is X 0 '~ X 2 ', The converted coordinate signal representing the converted Y coordinate is Y 0 '~ Yn' 2 Is composed of three bits.
[0358]
The display mode control circuit 95 as a control means is a first output mode, a 90 ° mode for rotating image data by 90 °, a second output mode, a 270 ° mode for rotating image data by 270 °, and a third output mode. X-coordinate selector 91, Y-coordinate selector 92, and signal inversion for four types of display modes: a 180 ° mode in which image data is rotated by 180 ° and a normal mode in which the image data is not rotated in the fourth output mode. The operation of the circuit 93 and the signal inversion circuit 94 is controlled.
[0359]
In the case of the 90 ° mode, the X-coordinate selector 91 controls the X-coordinate signal X, which is the first bit data, under the control of the display mode control circuit 95. 0 ~ X 2 Alternatively, the pre-conversion coordinate signal Y which is the second bit data 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 And outputs it to the signal inversion circuit 93. The signal inverting circuit 93 controls the coordinate signal Y before conversion under the control of the display mode control circuit 95. 0 ~ Y 2 Is inverted to obtain an inverted coordinate signal iY which is inverted second bit data. 0 ~ IY 2 Is converted to a coordinate signal X 0 '~ X 2 Output as'. The Y-coordinate selector 92 controls the coordinate signal X before conversion under the control of the display mode control circuit 95. 0 ~ X 2 Or coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 And outputs it to the signal inverting circuit 94. The signal inversion circuit 94 controls the coordinate signal X before conversion under the control of the display mode control circuit 95. 0 ~ X 2 Coordinate signal Y without conversion 0 '~ Y 2 Output as'.
[0360]
In the 270 ° mode, the X-coordinate selector 91 controls the coordinate signal X before conversion under the control of the display mode control circuit 95. 0 ~ X 2 Or coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 And outputs it to the signal inversion circuit 93. The signal inverting circuit 93 controls the coordinate signal Y before conversion under the control of the display mode control circuit 95. 0 ~ Y 2 Without inverting the coordinate signal X 0 '~ X 2 Output as'. The Y-coordinate selector 92 controls the coordinate signal X before conversion under the control of the display mode control circuit 95. 0 ~ X 2 Or coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 And outputs it to the signal inverting circuit 94. The signal inversion circuit 94 controls the coordinate signal X before conversion under the control of the display mode control circuit 95. 0 ~ X 2 And an inverted coordinate signal iX which is the inverted first bit data 0 ~ IY 2 Is converted to a coordinate signal Y 0 '~ Y 2 Output as'.
[0361]
In the case of the 180 ° mode, the X-coordinate selector 91 controls the coordinate signal X before conversion under the control of the display mode control circuit 95. 0 ~ X 2 Or coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 And outputs it to the signal inversion circuit 93. The signal inverting circuit 93 controls the coordinate signal X before conversion under the control of the display mode control circuit 95. 0 ~ X 2 Is inverted to obtain an inverted coordinate signal iX 0 ~ IX 2 Is converted to a coordinate signal X 0 '~ X 2 Output as'. The Y-coordinate selector 92 controls the coordinate signal X before conversion under the control of the display mode control circuit 95. 0 ~ X 2 Or coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 And outputs it to the signal inverting circuit 94. The signal inversion circuit 94 controls the coordinate signal Y before conversion under the control of the display mode control circuit 95. 0 ~ Y 2 Is inverted to obtain an inverted coordinate signal iY 0 ~ IY 2 Is converted to a coordinate signal Y 0 '~ Y 2 Output as'.
[0362]
In the case of the normal mode, the X-coordinate selector 91 controls the X-coordinate signal X under control of the display mode control circuit 95. 0 ~ X 2 Or coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 And outputs it to the signal inversion circuit 93. The signal inverting circuit 93 controls the coordinate signal X before conversion under the control of the display mode control circuit 95. 0 ~ X 2 Without inverting the coordinate signal X 0 '~ X 2 Output as'. The Y-coordinate selector 92 controls the coordinate signal X before conversion under the control of the display mode control circuit 95. 0 ~ X 2 Or coordinate signal Y before conversion 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 And outputs it to the signal inverting circuit 94. The signal inversion circuit 94 controls the coordinate signal Y before conversion under the control of the display mode control circuit 95. 0 ~ Y 2 Coordinate signal Y without conversion 0 '~ Y 2 Output as'. Since the image data is not rotated, both the X coordinate and the Y coordinate are the same before and after the conversion.
[0363]
Image data before coordinate conversion in the 90 ° mode is a diagram shown in FIG. 17, and image data rotated by 90 ° is a diagram shown in FIG. The image data before the coordinate conversion in the 270 ° mode is a diagram shown in FIG. 20, and the image data rotated by 270 ° is a diagram shown in FIG. The image data before the coordinate conversion in the 180 ° mode is a diagram shown in FIG. 22, and the image data rotated 180 ° is a diagram shown in FIG.
[0364]
Specific processing when the 90 ° mode is selected will be described. The image data to be displayed is the image data (consisting of four pixels A, B, C, and D) shown in FIG. FIG. 19 shows the orientation of the image data when viewed from the correct direction. In the 90 ° mode, the image data is shifted 90 degrees so that a person on the left side of the user can view the image data in the correct direction. Rotate °.
[0365]
First, the drawing unit 11 generates pre-conversion coordinates so that image data (A, B, C, D) is displayed at the pixel positions EB, EC, FC, and GC before the coordinate conversion. A (X, Y) = A (001, 100) is set in the start coordinate designation register 18 using the pixel position CE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (010,100), C (X, Y) = C (010,101), and D (X, Y) = D (010,110) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0366]
For the pixel A, since the coordinates before conversion are A (001, 100), the coordinate signal X before conversion is 0 ~ X n Is X 0 X 1 X 2 (001), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Input pre-conversion coordinate signal X 0 X 1 X 2 (001) is input to the selector 91 for the X coordinate and the selector 92 for the Y coordinate. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (100) is input to the selector 91 for the X coordinate and the selector 92 for the Y coordinate.
[0367]
Since it operates in the 90 ° mode, under the control of the display mode control circuit 95, the X coordinate selector 91 0 Y 1 Y 2 (100) is selected and output to the signal inversion circuit 93. The signal inversion circuit 93 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (100) and convert the coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is output. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (001) is selected and output to the signal inversion circuit 94. The signal inversion circuit 94 outputs the coordinate signal X before conversion. 0 X 1 X 2 (001) without inverting the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0368]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (001, 100) before conversion into the converted coordinates A (011, 001) and outputs the converted coordinates A (011, 001) to the coordinate address conversion unit 13.
[0369]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion Y 0 Y 1 Y 2 (100) is selected and output. The signal inversion circuit 93 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (100) and convert the coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is output. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output to the signal inversion circuit 94. The signal inverting circuit 94 outputs the coordinate signal X before conversion. 0 X 1 X 2 (010) is not inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0370]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (010, 100) before conversion into the converted coordinates B (011, 010) and outputs the converted coordinates B (011, 010) to the coordinate address conversion unit 13.
[0371]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (101). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (101), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (101) is selected and output. The signal inversion circuit 93 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 All bits of (101) are inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (010) is output. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (101), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output to the signal inversion circuit 94. The signal inverting circuit 94 outputs the coordinate signal X before conversion. 0 X 1 X 2 (010) is not inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0372]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates C (010, 101) before conversion into the converted coordinates C (010, 010) and outputs the converted coordinates C (010, 010) to the coordinate address conversion unit 13.
[0373]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (110). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 (110), the coordinate signal Y before conversion 0 Y 1 Y 2 (110) is selected and output. The signal inversion circuit 93 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (110) and convert the coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (001) is output. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (110), the coordinate signal before conversion X 0 X 1 X 2 (010) is selected and output to the signal inversion circuit 94. The signal inverting circuit 94 outputs the coordinate signal X before conversion. 0 X 1 X 2 (010) is not inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0374]
Through the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates D (010, 110) before conversion into the converted coordinates D (001, 010) and outputs the converted coordinates D (001, 010) to the coordinate address conversion unit 13.
[0375]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated clockwise by 90 ° with respect to before the coordinate conversion.
[0376]
Next, a specific process when the 270 ° mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the 90 ° mode. FIG. 19 shows the orientation of the image data when viewed from the correct direction. In the 270 ° mode, the image data is set to 270 degrees so that the person on the right side of the user can view the image data in the correct direction. Rotate °.
[0377]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at the pixel positions CE, CF, DF, and EF before coordinate conversion. A (X, Y) = A (100, 010) is set in the start coordinate designation register 18 using the pixel position CE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (101,010), C (X, Y) = C (101,011), and D (X, Y) = D (101,100) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14.
[0378]
Since the pre-conversion coordinates of the pixel A are A (100,010), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (100), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Input pre-conversion coordinate signal X 0 X 1 X 2 (100) is input to the selector 91 for the X coordinate and the selector 92 for the Y coordinate. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (010) is input to the selector 91 for the X coordinate and the selector 92 for the Y coordinate.
[0379]
Since it operates in the 270 ° mode, under the control of the display mode control circuit 95, the X-coordinate selector 91 sets the pre-conversion coordinate signal Y 0 Y 1 Y 2 (010) is selected and output to the signal inversion circuit 93. The signal inversion circuit 93 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Without inverting (010), the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (100) is selected and output to the signal inversion circuit 94. The signal inverting circuit 94 outputs the coordinate signal X before conversion. 0 X 1 X 2 Invert each bit of (100) and convert the coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (011) is output.
[0380]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (100, 010) before conversion into the converted coordinates A (010, 011) and outputs the converted coordinates A (010, 011) to the coordinate address conversion unit 13.
[0381]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output. The signal inversion circuit 93 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Without inverting (010), the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion X 0 X 1 X 2 (101) is selected and output to the signal inversion circuit 94. The signal inverting circuit 94 outputs the coordinate signal X before conversion. 0 X 1 X 2 Each bit of (101) is inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output.
[0382]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (101, 010) before conversion into the coordinates B (010, 010) after conversion and outputs the converted coordinates B (010, 010) to the coordinate address conversion unit 13.
[0383]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output. The signal inversion circuit 93 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (011) is not inverted, and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion X 0 X 1 X 2 (101) is selected and output to the signal inversion circuit 94. The signal inverting circuit 94 outputs the coordinate signal X before conversion. 0 X 1 X 2 All bits of (101) are inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output.
[0384]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates C (101, 011) before conversion into the converted coordinates C (011, 010) and outputs the converted coordinates C (011, 010) to the coordinate address conversion unit 13.
[0385]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion Y 0 Y 1 Y 2 (100) is selected and output. The signal inversion circuit 93 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Without inverting (100), the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (101) is selected and output to the signal inversion circuit 94. The signal inverting circuit 94 outputs the coordinate signal X before conversion. 0 X 1 X 2 Each bit of (101) is inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output.
[0386]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (101, 100) before conversion into the converted coordinates D (100, 010) and outputs the converted coordinates D (100, 010) to the coordinate address conversion unit 13.
[0387]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated 270 ° clockwise relative to before the coordinate conversion.
[0388]
Specific processing when the 180 ° mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the other modes. FIG. 19 shows the orientation of the image data when viewed from the correct direction. In the 180 ° mode, the image data is converted to the 180-degree direction so that a person on the opposite side of the user can view the image data in the correct direction. Rotate °.
[0389]
First, the drawing unit 11 generates pre-transform coordinates so that image data (A, B, C, D) is displayed at the pixel positions EE, EF, FF, and GF before the coordinate transformation. A (X, Y) = A (100, 100) is set in the start coordinate designation register 18 using the pixel position EE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (101,100), C (X, Y) = C (101,101), and D (X, Y) = D (101,110) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0390]
For the pixel A, the pre-conversion coordinates are A (100, 100), so the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (100), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Input pre-conversion coordinate signal X 0 X 1 X 2 (100) is input to the selector 91 for the X coordinate and the selector 92 for the Y coordinate. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (100) is input to the selector 91 for the X coordinate and the selector 92 for the Y coordinate.
[0391]
Since it is operating in the 180 ° mode, under the control of the display mode control circuit 95, the X coordinate selector 91 0 X 1 X 2 (100) is selected and output to the signal inversion circuit 93. The signal inversion circuit 93 outputs the coordinate signal X before conversion. 0 X 1 X 2 All the bits of (100) are inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (011) is output. The Y-coordinate selector 92 outputs the pre-conversion coordinate signal Y. 0 Y 1 Y 2 (100) is selected and output to the signal inversion circuit 94. The signal inversion circuit 94 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 All bits of (100) are inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is output.
[0392]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (100, 100) before conversion into the converted coordinates A (011, 011) and outputs the converted coordinates A (011, 011) to the coordinate address conversion unit 13.
[0393]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion X 0 X 1 X 2 (101) is selected and output. The signal inversion circuit 93 outputs the coordinate signal X before conversion. 0 X 1 X 2 Each bit of (101) is inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', IX 0 iX 1 iX 2 (010) is output. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion Y 0 Y 1 Y 2 (100) is selected and output to the signal inversion circuit 94. The signal inversion circuit 94 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (100) and convert the coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (011) is output.
[0394]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (101, 100) before conversion into the converted coordinates B (010, 011) and outputs the converted coordinates B (010, 011) to the coordinate address conversion unit 13.
[0395]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (101). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (101), the coordinate signal before conversion X 0 X 1 X 2 (101) is selected and output. The signal inversion circuit 93 outputs the coordinate signal X before conversion. 0 X 1 X 2 Each bit of (101) is inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (101), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (101) is selected and output to the signal inversion circuit 94. The signal inversion circuit 94 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Each bit of (101) is inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (010) is output.
[0396]
Through the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates C (101, 101) before conversion into the converted coordinates C (010, 010) and outputs the converted coordinates C (010, 010) to the coordinate address conversion unit 13.
[0397]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (110). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (110), the coordinate signal before conversion X 0 X 1 X 2 (101) is selected and output. The signal inversion circuit 93 outputs the coordinate signal X before conversion. 0 X 1 X 2 Each bit of (101) is inverted, and the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iX 0 iX 1 iX 2 (010) is output. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (101) and coordinate signal Y before conversion 0 Y 1 Y 2 (110), the coordinate signal Y before conversion 0 Y 1 Y 2 (110) is selected and output to the signal inversion circuit 94. The signal inversion circuit 94 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Each bit of (110) is inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (001) is output.
[0398]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (101, 110) before conversion into the converted coordinates D (010, 001) and outputs the converted coordinates D (010, 001) to the coordinate address conversion unit 13.
[0399]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated clockwise by 180 ° with respect to before the coordinate conversion.
[0400]
A specific process when the normal mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the other modes.
[0401]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at pixel positions BC, BD, CD, and DD before coordinate conversion. A (X, Y) = A (010, 001) is set in the start coordinate designation register 18 using the pixel position EE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (011,001), C (X, Y) = C (011,010), and D (X, Y) = D (011,011) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0402]
Since the pre-conversion coordinates of the pixel A are A (010,001), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Input pre-conversion coordinate signal X 0 X 1 X 2 (010) is input to the selector 91 for the X coordinate and the selector 92 for the Y coordinate. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is input to the selector 91 for the X coordinate and the selector 92 for the Y coordinate.
[0403]
Since it operates in the normal mode, under the control of the display mode control circuit 95, the X coordinate selector 91 0 X 1 X 2 (010) is selected and output to the signal inversion circuit 93. The signal inversion circuit 93 outputs the coordinate signal X before conversion. 0 X 1 X 2 Without inverting (010), the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y-coordinate selector 92 outputs the pre-conversion coordinate signal Y. 0 Y 1 Y 2 (001) is selected and output to the signal inversion circuit 94. The signal inversion circuit 94 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (001) without inverting the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0404]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates A (010, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates A (010, 001).
[0405]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal X 0 X 1 X 2 (011) is selected and output. The signal inversion circuit 93 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) is not inverted, and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is selected and output to the signal inversion circuit 94. The signal inversion circuit 94 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (001) without inverting the converted coordinate signal Y 0 'Y 1 'Y 2 As'.
[0406]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates B (011, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates B (011, 001).
[0407]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The signal inversion circuit 93 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) is not inverted, and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and output to the signal inversion circuit 94. The signal inversion circuit 94 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (010) is not inverted, and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0408]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates C (011, 010) before conversion to the coordinate address conversion unit 13 as the converted coordinates C (011, 010).
[0409]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 95, the X-coordinate selector 91 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and output. The signal inversion circuit 93 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) is not inverted, and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y-coordinate selector 92 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and output to the signal inversion circuit 94. The signal inversion circuit 94 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Without inverting (011), the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0410]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates D (011, 011) before conversion to the coordinate address conversion unit 13 as the converted coordinates D (011, 011).
[0411]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. Thereby, the same image data as before the coordinate conversion can be displayed without rotating.
[0412]
The result of the coordinate conversion by the coordinate rotating unit 19 shown in FIG. 9 is the same as in FIGS. The conversion results as shown in FIGS. 24 to 27 are obtained by the coordinate conversion unit 12 including the coordinate rotation unit 19. Therefore, the display device 1 rotates the image data by 90 degrees, 270 degrees, 180 degrees. It is possible to switch between using and not rotating.
[0413]
Conventionally, to rotate image data 90 °, 270 °, and 180 ° clockwise, a coordinate transformation device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. Further, to realize this, an addition circuit and a subtraction circuit are not included, and an inversion circuit and a selection circuit are used. Therefore, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be performed. Can be speeded up.
[0414]
FIG. 10 is a block diagram illustrating another configuration of the coordinate rotation unit 19 that rotates the image data clockwise by any angle of 90 °, 180 °, and 270 °. Regarding the signals representing the X coordinate and the Y coordinate to be converted, as shown in FIG. 13, the screen configuration of the display unit 16 is 6 × 5 pixels. It is a 3-bit configuration having a minimum bit width capable of representing coordinates. Of course, a value larger than 3 bits may be set.
[0415]
The coordinate rotation unit 19 includes a signal inversion circuit 101, a signal inversion circuit 102, an X coordinate selector 103, a Y coordinate selector 104, and a display mode control circuit 105. The signal inverting circuit 101 receives the input coordinate signal X before conversion. 0 ~ X n Is a first control inverting circuit that inverts the signal under the control of the display mode control circuit 105 and outputs the inverted signal to the X coordinate selector 103 and the Y coordinate selector 104. The signal inverting circuit 102 receives the input coordinate signal Y before conversion. 0 ~ Y n Are inverted under the control of the display mode control circuit 105 and output to the X coordinate selector 103 and the Y coordinate selector 104.
[0416]
The X coordinate selector 103 is controlled by the display mode control circuit 105, selects one of the coordinate signals output from the signal inversion circuit 101 or the signal inversion circuit 102, and converts the coordinate signal X after conversion. 0 '~ X n The first selection circuit outputs the signal as'. The Y-coordinate selector 104 is controlled by the display mode control circuit 105, selects one of the coordinate signals output from the signal inversion circuit 101 or the signal inversion circuit 102, and selects the converted coordinate signal Y 0 '~ Y n 'Is a second selection circuit that outputs as'. Since the screen configuration of the display unit 16 is a configuration of 6 × 5 pixels as shown in FIG. 13, the coordinate signal before conversion indicating the X coordinate before conversion is X 0 ~ X 2 The three-bit coordinate signal before conversion representing the Y coordinate before conversion is Y 0 ~ Y 2 , The converted coordinate signal representing the converted X coordinate is X 0 '~ X 2 ', The converted coordinate signal representing the converted Y coordinate is Y 0 '~ Yn' 2 Is composed of three bits.
[0417]
The display mode control circuit 105 as a control means is a first output mode, a 90 ° mode for rotating image data by 90 °, a second output mode, a 270 ° mode for rotating image data by 270 °, and a third output mode. A signal inverting circuit 101, a signal inverting circuit 102, and an X-coordinate selector for four types of display modes: a 180 ° mode in which image data is rotated by 180 ° and a normal mode in which the image data is not rotated by a fourth output mode. A control signal is output to the selector 103 and the Y coordinate selector 104 for control.
[0418]
In the case of the 90 ° mode, under the control of the display mode control circuit 105, the signal inversion circuit 101 controls the coordinate signal X before conversion, which is the first bit data. 0 ~ X 2 Are output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The signal inversion circuit 102 controls the display mode control circuit 105 to control the second bit data or the pre-conversion coordinate signal Y. 0 ~ Y 2 And an inverted coordinate signal iY which is inverted second bit data. 0 ~ IY 2 To the selector 103 for the X coordinate and the selector 104 for the Y coordinate. Under the control of the display mode control circuit 105, the X coordinate selector 103 controls the coordinate signal X before conversion output from the signal inversion circuit 101. 0 ~ X 2 And the inverted coordinate signal iY output from the signal inversion circuit 102 0 ~ IY 2 Of the inverted coordinate signal iY 0 ~ IY 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 105, the Y coordinate selector 104 controls the coordinate signal X before conversion output from the signal inversion circuit 101. 0 ~ X 2 And the inverted coordinate signal iY output from the signal inversion circuit 102 0 ~ IY 2 Of the coordinate signal X before conversion 0 ~ X 2 Is selected, and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0419]
In the case of the 270 ° mode, the signal inversion circuit 101 controls the coordinate signal X before conversion under the control of the display mode control circuit 105. 0 ~ X 2 And an inverted coordinate signal iX which is the inverted first bit data 0 ~ IX 2 To the selector 103 for the X coordinate and the selector 104 for the Y coordinate. The signal inversion circuit 102 controls the coordinate signal Y before conversion under the control of the display mode control circuit 105. 0 ~ Y 2 Are output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The X coordinate selector 103 controls the inverted coordinate signal iX output from the signal inverting circuit 101 under the control of the display mode control circuit 105. 0 ~ IX 2 And the coordinate signal Y before conversion output from the signal inversion circuit 102 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. The Y coordinate selector 104 controls the display mode control circuit 105 to control the inverted coordinate signal iX output from the signal inversion circuit 101. 0 ~ IX 2 And the coordinate signal Y before conversion output from the signal inversion circuit 102 0 ~ Y 2 Of the inverted coordinate signal iX 0 ~ IX 2 Is selected, and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0420]
In the case of the 180 ° mode, the signal inversion circuit 101 controls the coordinate signal X before conversion under the control of the display mode control circuit 105. 0 ~ X 2 And invert the coordinate signal iX 0 ~ IX 2 To the selector 103 for the X coordinate and the selector 104 for the Y coordinate. The signal inversion circuit 102 controls the coordinate signal Y before conversion under the control of the display mode control circuit 105. 0 ~ Y 2 Is inverted to obtain an inverted coordinate signal iY 0 ~ IY 2 To the selector 103 for the X coordinate and the selector 104 for the Y coordinate. The X coordinate selector 103 controls the inverted coordinate signal iX output from the signal inverting circuit 101 under the control of the display mode control circuit 105. 0 ~ IX 2 And the inverted coordinate signal iY output from the signal inverting circuit 102 0 ~ IY 2 Of the inverted coordinate signal iX 0 ~ IX 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. The Y coordinate selector 104 controls the inverted mode signal iX output from the signal inverting circuit 101 under the control of the display mode control circuit 105. 0 ~ IX 2 And the inverted coordinate signal iY output from the signal inverting circuit 102 0 ~ IY 2 Of the inverted coordinate signal iY 0 ~ IY 2 Is selected, and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0421]
In the normal mode, the signal inversion circuit 101 controls the display mode control circuit 105 to control the coordinate signal X before conversion. 0 ~ X 2 Are output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The signal inversion circuit 102 controls the coordinate signal Y before conversion under the control of the display mode control circuit 105. 0 ~ Y 2 Are output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. Under the control of the display mode control circuit 105, the X coordinate selector 103 controls the coordinate signal X before conversion output from the signal inversion circuit 101. 0 ~ X 2 And the coordinate signal Y before conversion output from the signal inversion circuit 102 0 ~ Y 2 Of the coordinate signal X before conversion 0 ~ X 2 Is selected and the converted coordinate signal X 0 '~ X 2 Output as'. Under the control of the display mode control circuit 105, the Y coordinate selector 104 controls the coordinate signal X before conversion output from the signal inversion circuit 101. 0 ~ X 2 And the coordinate signal Y before conversion output from the signal inversion circuit 102 0 ~ Y 2 Of the coordinate signal Y before conversion 0 ~ Y 2 Is selected, and the converted coordinate signal Y 0 '~ Y 2 Output as'.
[0422]
Image data before coordinate conversion in the 90 ° mode is a diagram shown in FIG. 17, and image data rotated by 90 ° is a diagram shown in FIG. The image data before the coordinate conversion in the 270 ° mode is a diagram shown in FIG. 20, and the image data rotated by 270 ° is a diagram shown in FIG. The image data before the coordinate conversion in the 180 ° mode is a diagram shown in FIG. 22, and the image data rotated 180 ° is a diagram shown in FIG.
[0423]
Specific processing when the 90 ° mode is selected will be described. The image data to be displayed is the image data (consisting of four pixels A, B, C, and D) shown in FIG. FIG. 19 shows the orientation of the image data when viewed from the correct direction. In the 90 ° mode, the image data is shifted 90 degrees so that a person on the left side of the user can view the image data in the correct direction. Rotate °.
[0424]
First, the drawing unit 11 generates pre-conversion coordinates so that image data (A, B, C, D) is displayed at the pixel positions EB, EC, FC, and GC before the coordinate conversion. A (X, Y) = A (001, 100) is set in the start coordinate designation register 18 using the pixel position CE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (010,100), C (X, Y) = C (010,101), and D (X, Y) = D (010,110) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0425]
For the pixel A, since the coordinates before conversion are A (001, 100), the coordinate signal X before conversion is 0 ~ X n Is X 0 X 1 X 2 (001), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Input pre-conversion coordinate signal X 0 X 1 X 2 (001) is input to the signal inversion circuit 101. Input pre-conversion coordinate signal Y 0 Y 1 Y 2 (100) is input to the signal inversion circuit 102.
[0426]
Since the display mode control circuit 105 controls the signal inversion circuit 101, the signal inversion circuit 101 operates in the 90 ° mode. 0 X 1 X 2 (001) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (100) to obtain an inverted coordinate signal iY 0 iY 1 iY 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104. The X coordinate selector 103 outputs the inverted coordinate signal iY 0 iY 1 iY 2 (011) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (001) is selected and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0427]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (001, 100) before conversion into the converted coordinates A (011, 001) and outputs the converted coordinates A (011, 001) to the coordinate address conversion unit 13.
[0428]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (100) to obtain an inverted coordinate signal iY 0 iY 1 iY 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104. The X coordinate selector 103 outputs the coordinate signal X before conversion. 0 X 1 X 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 Of (011), the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal Y 0 Y 1 Y 2 (011) is selected and output. The Y coordinate selector 104 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 Of (011), the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) is selected and output to the signal inversion circuit 94.
[0429]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (010, 100) before conversion into the converted coordinates B (011, 010) and outputs the converted coordinates B (011, 010) to the coordinate address conversion unit 13.
[0430]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (101). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (101) to obtain an inverted coordinate signal iY 0 iY 1 iY 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104. The X coordinate selector 103 outputs the coordinate signal X before conversion. 0 X 1 X 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (010), the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (010) is selected and output. The Y coordinate selector 104 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (010), the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) is selected and output to the signal inversion circuit 94.
[0431]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates C (010, 101) before conversion into the converted coordinates C (010, 010) and outputs the converted coordinates C (010, 010) to the coordinate address conversion unit 13.
[0432]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (110). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (110) to obtain an inverted coordinate signal iY 0 iY 1 iY 2 (001) is output to the X coordinate selector 103 and the Y coordinate selector 104. The X coordinate selector 103 outputs the coordinate signal X before conversion. 0 X 1 X 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (001), the converted coordinate signal X 0 'X 1 'X 2 ', The inverted coordinate signal iY 0 iY 1 iY 2 (001) is selected and output. The Y coordinate selector 104 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (001), the converted coordinate signal Y 0 'Y 1 'Y 2 ', The coordinate signal X before conversion 0 X 1 X 2 (010) is selected and output to the signal inversion circuit 105.
[0433]
Through the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates D (010, 110) before conversion into the converted coordinates D (001, 010) and outputs the converted coordinates D (001, 010) to the coordinate address conversion unit 13.
[0434]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated clockwise by 90 ° with respect to before the coordinate conversion.
[0435]
Next, a specific process when the 270 ° mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the 90 ° mode. FIG. 19 shows the orientation of the image data when viewed from the correct direction. In the 270 ° mode, the image data is set to 270 degrees so that the person on the right side of the user can view the image data in the correct direction. Rotate °.
[0436]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at the pixel positions CE, CF, DF, and EF before coordinate conversion. A (X, Y) = A (100, 010) is set in the start coordinate designation register 18 using the pixel position CE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (101,010), C (X, Y) = C (101,011), and D (X, Y) = D (101,100) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0437]
Since the pre-conversion coordinates of the pixel A are A (100,010), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (100), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Input pre-conversion coordinate signal X 0 X 1 X 2 (100) is input to the signal inversion circuit 101, and the input pre-conversion coordinate signal Y 0 Y 1 Y 2 (010) is input to the signal inversion circuit 102.
[0438]
Since it operates in the 270 ° mode, the signal inverting circuit 101 controls the coordinate signal X before conversion under the control of the display mode control circuit 105. 0 X 1 X 2 Invert each bit of (100) to obtain an inverted coordinate signal iX 0 iX 1 iX 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The X coordinate selector 103 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (010) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (011) is selected and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0439]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (100, 010) before conversion into the converted coordinates A (010, 011) and outputs the converted coordinates A (010, 011) to the coordinate address conversion unit 13.
[0440]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 Invert each bit of (101) to obtain an inverted coordinate signal iX 0 iX 1 iX 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The X coordinate selector 103 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion Y 0 Y 1 Y 2 (010) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 (010), the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0441]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (101, 010) before conversion into the coordinates B (010, 010) after conversion and outputs the converted coordinates B (010, 010) to the coordinate address conversion unit 13.
[0442]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 Invert each bit of (101) to obtain an inverted coordinate signal iX 0 iX 1 iX 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104 without inversion. The X coordinate selector 103 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 (011) of the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0443]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates C (101, 011) before conversion into the converted coordinates C (011, 010) and outputs the converted coordinates C (011, 010) to the coordinate address conversion unit 13.
[0444]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 Invert each bit of (101) to obtain an inverted coordinate signal iX 0 iX 1 iX 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (100) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The X coordinate selector 103 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 Of (100), the coordinate signal before conversion Y 0 Y 1 Y 2 (100) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the coordinate signal Y before conversion 0 Y 1 Y 2 (100), the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the converted coordinate signal Y 0 'X 1 'X 2 Output as'.
[0445]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (101, 100) before conversion into the converted coordinates D (100, 010) and outputs the converted coordinates D (100, 010) to the coordinate address conversion unit 13.
[0446]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated 270 ° clockwise relative to before the coordinate conversion.
[0447]
Specific processing when the 180 ° mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the other modes. FIG. 19 shows the orientation of the image data when viewed from the correct direction. In the 180 ° mode, the image data is converted to the 180-degree direction so that a person on the opposite side of the user can view the image data in the correct direction. Rotate °.
[0448]
First, the drawing unit 11 generates pre-transform coordinates so that image data (A, B, C, D) is displayed at the pixel positions EE, EF, FF, and GF before the coordinate transformation. A (X, Y) = A (100, 100) is set in the start coordinate designation register 18 using the pixel position EE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (101,100), C (X, Y) = C (101,101), and D (X, Y) = D (101,110) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0449]
For the pixel A, the pre-conversion coordinates are A (100, 100), so the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (100), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Input pre-conversion coordinate signal X 0 X 1 X 2 (100) is input to the signal inversion circuit 101, and the input pre-conversion coordinate signal Y 0 Y 1 Y 2 (100) is input to the signal inversion circuit 102.
[0450]
The signal inversion circuit 101 operates under the control of the display mode control circuit 105 to operate in the 180 ° mode. 0 X 1 X 2 Invert each bit of (100) to obtain an inverted coordinate signal iX 0 iX 1 iX 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (100) to obtain an inverted coordinate signal iY 0 iY 1 iY 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104. The X coordinate selector 103 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (011) is converted to a coordinate signal X after conversion. 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the inverted coordinate signal iY 0 iY 1 iY 2 (011) is converted to the coordinate signal Y after conversion. 0 'Y 1 'Y 2 Output as'.
[0451]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates A (100, 100) before conversion into the converted coordinates A (011, 011) and outputs the converted coordinates A (011, 011) to the coordinate address conversion unit 13.
[0452]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (100). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 Invert each bit of (101) to obtain an inverted coordinate signal iX 0 iX 1 iX 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 All the bits of (100) are inverted, and the inverted coordinate signal iY 0 iY 1 iY 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104. The X coordinate selector 103 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (011) of the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 Of (011), the inverted coordinate signal iY 0 iY 1 iY 2 (011) is selected and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0453]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates B (101, 100) before conversion into the converted coordinates B (010, 011) and outputs the converted coordinates B (010, 011) to the coordinate address conversion unit 13.
[0454]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (101). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 Invert each bit of (101) to obtain an inverted coordinate signal iX 0 iX 1 iX 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 Invert each bit of (101) to obtain an inverted coordinate signal iY 0 iY 1 iY 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104. The X coordinate selector 103 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (010), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (010), the inverted coordinate signal iY 0 iY 1 iY 2 (010) and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0455]
Through the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates C (101, 101) before conversion into the converted coordinates C (010, 010) and outputs the converted coordinates C (010, 010) to the coordinate address conversion unit 13.
[0456]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (101), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (110). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 All the bits of (101) are inverted, and the inverted coordinate signal iX 0 iX 1 iX 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 All the bits of (110) are inverted, and the inverted coordinate signal iY 0 iY 1 iY 2 (001) is output to the X coordinate selector 103 and the Y coordinate selector 104. The X coordinate selector 103 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (001), the inverted coordinate signal iX 0 iX 1 iX 2 (010) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the inverted coordinate signal iX 0 iX 1 iX 2 (010) and the inverted coordinate signal iY 0 iY 1 iY 2 (001), the inverted coordinate signal iY 0 iY 1 iY 2 (001) is selected and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0457]
Through the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (101, 110) before conversion into the converted coordinates D (010, 001) and outputs the converted coordinates D (010, 001) to the coordinate address conversion unit 13.
[0458]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. This makes it possible to display image data that has been rotated clockwise by 180 ° with respect to before the coordinate conversion.
[0459]
A specific process when the normal mode is selected will be described. The image data to be displayed is the same image data (consisting of four pixels A, B, C, and D) shown in FIG. 19 as in the other modes.
[0460]
First, the drawing unit 11 generates coordinates before conversion so that image data (A, B, C, D) is displayed at pixel positions BC, BD, CD, and DD before coordinate conversion. A (X, Y) = A (010, 001) is set in the start coordinate designation register 18 using the pixel position EE as the drawing start coordinate. The drawing start coordinates are selected so that the image data after the coordinate conversion can be displayed in a 6 × 5 pixel area that can be displayed on the display unit 16 shown in FIG. Based on the drawing start coordinates, B (X, Y) = B (011,001), C (X, Y) = C (011,010), and D (X, Y) = D (011,011) Generated. The drawing unit 11 outputs the generated pre-conversion coordinates to the coordinate conversion unit 19 and outputs the pixel value of each pixel to the frame memory 14. The coordinate rotation unit 19 performs coordinate conversion of the input coordinates before the conversion.
[0461]
Since the pre-conversion coordinates of the pixel A are A (010,001), the pre-conversion coordinates signal X 0 ~ X n Is X 0 X 1 X 2 (010), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Input pre-conversion coordinate signal X 0 X 1 X 2 (010) is input to the signal inversion circuit 101, and the input pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is input to the signal inversion circuit 102.
[0462]
The signal inverting circuit 101 operates under the control of the display mode control circuit 105 because the signal inverting circuit 101 operates in the normal mode. 0 X 1 X 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (001) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The X coordinate selector 103 outputs the coordinate signal X before conversion. 0 X 1 X 2 (010) is converted to the coordinate signal X after conversion. 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (001) is converted to the coordinate signal Y after conversion. 0 'Y 1 'Y 2 Output as'.
[0463]
By the coordinate conversion described above, the coordinate conversion unit 19 converts the input coordinates A (010, 001) before conversion into the converted coordinates A (010, 001) and outputs the converted coordinates A (010, 001) to the coordinate address conversion unit 13.
[0464]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel B. Pre-conversion coordinate signal X of pixel B 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (001). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104 without inversion. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (001) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The X coordinate selector 103 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal X 0 X 1 X 2 (011) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (001), the pre-conversion coordinate signal Y 0 Y 1 Y 2 (001) is selected and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0465]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates B (011, 001) before conversion to the coordinate address conversion unit 13 as the converted coordinates B (011, 001).
[0466]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel C. Pre-conversion coordinate signal X of pixel C 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (010). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104 without inversion. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (010) is output to the X coordinate selector 103 and the Y coordinate selector 104 without being inverted. The X coordinate selector 103 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 (010), the coordinate signal before conversion Y 0 Y 1 Y 2 (010) and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0467]
By the above coordinate conversion, the coordinate conversion unit 19 outputs the input coordinates C (011, 010) before conversion to the coordinate address conversion unit 13 as the converted coordinates C (011, 010).
[0468]
Similarly to the pixel A, the coordinate conversion unit 19 performs the coordinate conversion on the pixel D. Pre-conversion coordinate signal X of pixel D 0 ~ X n Is X 0 X 1 X 2 (011), coordinate signal Y before conversion 0 ~ Y n Is Y 0 Y 1 Y 2 (011). Under the control of the display mode control circuit 105, the signal inverting circuit 101 0 X 1 X 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104 without inversion. The signal inversion circuit 102 outputs the coordinate signal Y before conversion. 0 Y 1 Y 2 (011) is output to the X coordinate selector 103 and the Y coordinate selector 104 without inversion. The X coordinate selector 103 outputs the coordinate signal X before conversion. 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion X 0 X 1 X 2 (011) is selected and the converted coordinate signal X 0 'X 1 'X 2 Output as'. The Y coordinate selector 104 outputs the pre-conversion coordinate signal X 0 X 1 X 2 (011) and coordinate signal Y before conversion 0 Y 1 Y 2 Of (011), the coordinate signal before conversion Y 0 Y 1 Y 2 (011) is selected and the converted coordinate signal Y 0 'Y 1 'Y 2 Output as'.
[0469]
By the above coordinate conversion, the coordinate conversion unit 19 converts the input coordinates D (011, 011) before conversion into the converted coordinates D (011, 011) and outputs the converted coordinates D (011, 011) to the coordinate address conversion unit 13.
[0470]
The converted coordinates output from the coordinate conversion unit 19 as described above are converted into addresses in the frame memory 14 by the coordinate address conversion unit 13 and output to the frame memory 14. The frame memory 14 makes the address output from the coordinate address conversion unit 13 writable, and controls the pixel value output from the drawing unit 11 so as to correspond to the writable address under the control of the timing control unit 15. Write. The display unit 16 reads a pixel value from the frame memory 14 and displays the pixel value at coordinates corresponding to the address at which the pixel value was read. Thereby, the same image data as before the coordinate conversion can be displayed without rotating.
[0471]
The result of the coordinate conversion by the coordinate rotating unit 19 shown in FIG. 10 is the same as in FIGS. The conversion results as shown in FIGS. 24 to 27 are obtained by the coordinate conversion unit 12 including the coordinate rotation unit 19. Therefore, the display device 1 rotates the image data by 90 degrees, 270 degrees, 180 degrees. It is possible to switch between using and not rotating.
[0472]
Conventionally, to rotate image data 90 °, 270 °, and 180 ° clockwise, a coordinate transformation device having an arithmetic circuit such as an addition circuit and a subtraction circuit is used. On the other hand, according to the present invention, it is possible to rotate the image data by bit inversion of the coordinates and exchange of the X coordinate and the Y coordinate. In order to realize this, an addition circuit and a subtraction circuit are not included, and a bit inversion circuit and an output selection circuit are used. Therefore, the circuit scale can be reduced, and the cost can be reduced. Conversion processing can be sped up.
[0473]
【The invention's effect】
As described above, according to the present invention, data conversion such as coordinate conversion in the case of rotating and displaying image data is possible, and in order to realize this, an addition circuit and a subtraction circuit are not included, and bit conversion is performed. Since the inversion circuit and the output selection circuit are used, the circuit scale can be reduced, the cost can be reduced, and the conversion processing can be speeded up.
[0474]
Further, according to the present invention, it is possible to switch and display the rotation angle of the image data, thereby reducing the circuit scale of the display device, reducing the cost, and speeding up the conversion process.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a display device 1 according to an embodiment of the present invention.
FIG. 2 is a block diagram illustrating a configuration of a coordinate rotation unit 19;
FIG. 3 is a block diagram illustrating a configuration of a coordinate rotation unit 19;
FIG. 4 is a block diagram illustrating a configuration of a coordinate rotation unit 19;
FIG. 5 is a block diagram showing a configuration of a coordinate rotation unit 19;
FIG. 6 is a block diagram illustrating a configuration of a coordinate rotation unit 19;
FIG. 7 is a block diagram showing a configuration of a coordinate rotation unit 19;
FIG. 8 is a block diagram illustrating a configuration of a coordinate rotation unit 19;
FIG. 9 is a block diagram showing a configuration of a coordinate rotation unit 19;
FIG. 10 is a block diagram illustrating a configuration of a coordinate rotation unit 19;
FIG. 11 is a circuit diagram showing an example of a signal inversion circuit 21.
FIG. 12 is a circuit diagram illustrating an example of a signal inversion circuit 21;
FIG. 13 is a diagram showing a screen configuration example of a display unit 16;
FIG. 14 is a diagram showing a correspondence between each coordinate of the display unit 16 and an address of the frame memory 14;
FIG. 15 is a diagram showing a correspondence between each coordinate of the display unit 16 and an address of the frame memory 14 when the display device 1 is rotated.
FIG. 16 is a diagram illustrating a pixel array when both the X coordinate and the Y coordinate are set to have a 3-bit width.
FIG. 17 is a diagram showing image data before coordinate conversion when rotating by 90 °.
FIG. 18 is a diagram showing image data rotated 90 °.
FIG. 19 is a diagram showing image data to be displayed.
FIG. 20 is a diagram showing image data before coordinate conversion when rotating by 270 °.
FIG. 21 is a diagram showing image data rotated by 270 °.
FIG. 22 is a diagram showing image data before coordinate conversion when rotating by 180 °.
FIG. 23 is a diagram showing image data rotated by 180 °.
FIG. 24 is a diagram illustrating a coordinate conversion result in a 90 ° mode.
FIG. 25 is a diagram illustrating a coordinate conversion result in the 270 ° mode.
FIG. 26 is a diagram illustrating a coordinate conversion result in a 180 ° mode.
FIG. 27 is a diagram illustrating a coordinate conversion result in a normal mode.
FIG. 28 is a block diagram showing a configuration of a conventional display device 240.
[Explanation of symbols]
1,240 display device
11,241 Drawing unit
12,242 coordinate transformation unit
13,243 coordinate address conversion unit
14,244 frame memory
15,245 Timing control unit
16,246 display unit
17,247 Coordinate generation unit
18,248 Start coordinate designation register
19,249 Coordinate rotation unit
20, 24A Display mode setting register
21, 31, 41, 42, 51, 52, 63, 73, 81, 82, 93, 94, 101, 102 Signal inverting circuit
22, 32, 43, 53, 61, 71, 91, 103 X coordinate selector
23, 33, 44, 54, 62, 72, 92, 104 Y-coordinate selector
24, 34, 45, 55, 64, 74, 83, 95, 105 Display mode control circuit
24B first coordinate correction unit
24C second coordinate correction unit
24D Rotation reference coordinate designation register

Claims (15)

入力された複数ビットからなる第1ビットデータおよび第2ビットデータを変換して新たな第1ビットデータおよび第2ビットデータを出力するデータ変換装置であって、
第1および第2ビットデータが入力され、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを新たな第1ビットデータとして出力するとともに、入力された第1ビットデータをそのまま新たな第2ビットデータとして出力する第1出力モードと、入力された第1ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第2ビットデータをそのまま新たな第2ビットデータとして出力する第2出力モードとを有する変換手段と、
所定の制御条件に基づいて、前記変換手段が第1出力モードと第2出力モードのいずれのモードで動作するかを制御する制御手段とを備えることを特徴とするデータ変換装置。
A data converter for converting input first and second bit data consisting of a plurality of bits to output new first and second bit data,
The first and second bit data are input, inverted second bit data obtained by inverting the logical value of each bit of the input second bit data are output as new first bit data, and the input second bit data is output. A first output mode in which 1-bit data is output as new second bit data as it is, an input first bit data is output as new first bit data, and an input second bit data is output as new Conversion means having a second output mode for outputting as the second bit data;
A data conversion apparatus comprising: a control unit that controls whether the conversion unit operates in a first output mode or a second output mode based on a predetermined control condition.
前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第2ビットデータが入力され、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させて反転第2ビットデータを出力する反転回路と、
第1ビットデータおよび反転第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは反転第2ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは第1ビットデータを新たな第1ビットデータとして出力する第1選択回路と、
第1および第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは第1ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは第2ビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする請求項1記載のデータ変換装置。
The control means outputs a mode setting signal to the conversion means,
The conversion means,
An inverting circuit to which the second bit data is input, and inverts the logical value of each bit of the input second bit data to output inverted second bit data;
When the first bit data and the inverted second bit data are input and the first output mode is set by the mode setting signal, the inverted second bit data is output as new first bit data, and the second output mode is switched to the second output mode. A first selection circuit for outputting the first bit data as new first bit data when set;
When the first and second bit data are input and the first output mode is set by the mode setting signal, the first bit data is output as new second bit data, and when the second output mode is set 2. The data conversion device according to claim 1, further comprising a second selection circuit that outputs the second bit data as new second bit data.
前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1および第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは第2ビットデータを出力し、第2出力モードが設定されたときは第1ビットデータを出力する第1選択回路と、
前記第1選択回路から出力されたビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力されたビットデータの各ビットの論理値をそれぞれ反転させた反転ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは入力されたビットデータをそのまま新たな第1ビットデータとして出力する制御反転回路と、
第1および第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力された第1ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは入力された第2ビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする請求項1記載データ変換装置。
The control means outputs a mode setting signal to the conversion means,
The conversion means,
First and second bit data are input, the second bit data is output when the first output mode is set by the mode setting signal, and the first bit data is output when the second output mode is set. A first selection circuit,
When bit data output from the first selection circuit is input and the first output mode is set by the mode setting signal, inverted bit data obtained by inverting the logical value of each bit of the input bit data is output. A control inverting circuit for outputting as new first bit data, and outputting the input bit data as it is as new first bit data when the second output mode is set;
When the first and second bit data are input and the first output mode is set by the mode setting signal, the input first bit data is output as new second bit data, and the second output mode is set. 2. The data conversion device according to claim 1, further comprising a second selection circuit that outputs the input second bit data as new second bit data when the data is input.
入力された複数ビットからなる第1ビットデータおよび第2ビットデータを変換して新たな第1ビットデータおよび第2ビットデータを出力するデータ変換装置であって、
第1および第2ビットデータが入力され、入力された第2ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータを新たな第2ビットデータとして出力する第1出力モードと、入力された第1ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第2ビットデータをそのまま新たな第2ビットデータとして出力する第2出力モードとを有する変換手段と、
所定の制御条件に基づいて、前記変換手段が第1出力モードと第2出力モードのいずれのモードで動作するかを制御する制御手段とを備えることを特徴とするデータ変換装置。
A data converter for converting input first and second bit data consisting of a plurality of bits to output new first and second bit data,
The first and second bit data are input, the input second bit data is output as new first bit data as it is, and the logical value of each bit of the input first bit data is inverted. A first output mode in which the first bit data is output as new second bit data; a first output mode in which the input first bit data is output as new new first bit data; Conversion means having a second output mode for outputting as the second bit data;
A data conversion apparatus comprising: a control unit that controls whether the conversion unit operates in a first output mode or a second output mode based on a predetermined control condition.
前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1ビットデータが入力され、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させて反転第1ビットデータを出力する反転回路と、
第1ビットデータおよび第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは第2ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは第1ビットデータを新たな第1ビットデータとして出力する第1選択回路と、
反転第1ビットデータおよび第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは反転第1ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは第2ビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする請求項4記載のデータ変換装置。
The control means outputs a mode setting signal to the conversion means,
The conversion means,
An inverting circuit to which the first bit data is input, and inverts the logical value of each bit of the input first bit data to output inverted first bit data;
When the first bit data and the second bit data are input and the first output mode is set by the mode setting signal, the second bit data is output as new first bit data, and the second output mode is set. A first selection circuit that outputs the first bit data as new first bit data when
When the inverted first bit data and the second bit data are input and the first output mode is set by the mode setting signal, the inverted first bit data is output as new second bit data, and the second output mode is switched to the second output mode. 5. The data conversion device according to claim 4, further comprising a second selection circuit that outputs the second bit data as new second bit data when set.
前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1および第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは第2ビットデータを出力し、第2出力モードが設定されたときは第1ビットデータを出力する第1選択回路と、
第1および第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力された第1ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは入力された第2ビットデータを新たな第2ビットデータとして出力する第2選択回路と、
前記第2選択回路から出力されたビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力されたビットデータの各ビットの論理値をそれぞれ反転させた反転ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは入力されたビットデータをそのまま新たな第2ビットデータとして出力する制御反転回路とを備えることを特徴とする請求項4記載のデータ変換装置。
The control means outputs a mode setting signal to the conversion means,
The conversion means,
First and second bit data are input, the second bit data is output when the first output mode is set by the mode setting signal, and the first bit data is output when the second output mode is set. A first selection circuit,
When the first and second bit data are input and the first output mode is set by the mode setting signal, the input first bit data is output as new second bit data, and the second output mode is set. A second selection circuit that outputs the input second bit data as new second bit data when
When the bit data output from the second selection circuit is input and the first output mode is set by the mode setting signal, inverted bit data obtained by inverting the logical value of each bit of the input bit data is output. 5. A control inverting circuit for outputting as new second bit data and outputting the input bit data as new second bit data as it is when the second output mode is set. The data conversion device according to the above.
入力された複数ビットからなる第1ビットデータおよび第2ビットデータを変換して新たな第1ビットデータおよび第2ビットデータを出力するデータ変換装置であって、
第1および第2ビットデータが入力され、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータを新たな第1ビットデータとして出力するとともに、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを新たな第2ビットデータとして出力する第1出力モードと、入力された第1ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第2ビットデータをそのまま新たな第2ビットデータとして出力する第2出力モードとを有する変換手段と、
所定の制御条件に基づいて、前記変換手段が第1出力モードと第2出力モードのいずれのモードで動作するかを制御する制御手段とを備えることを特徴とするデータ変換装置。
A data conversion device for converting input first and second bit data composed of a plurality of bits and outputting new first and second bit data,
The first and second bit data are input, and inverted first bit data obtained by inverting the logical value of each bit of the input first bit data is output as new first bit data. A first output mode in which inverted second bit data obtained by inverting the logical value of each bit of the two-bit data as new second bit data, and new first bit data in which the input first bit data is used as it is And a second output mode for outputting the input second bit data as new second bit data as it is,
A data conversion apparatus comprising: a control unit that controls whether the conversion unit operates in a first output mode or a second output mode based on a predetermined control condition.
前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1ビットデータが入力され、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させて反転第1ビットデータを出力する第1反転回路と、
第2ビットデータが入力され、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させて反転第2ビットデータを出力する第2反転回路と、
第1ビットデータおよび反転第1ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは反転第1ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは第1ビットデータを新たな第1ビットデータとして出力する第1選択回路と、
第2ビットデータおよび反転第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは反転第2ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは第2ビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする請求項7記載のデータ変換装置。
The control means outputs a mode setting signal to the conversion means,
The conversion means,
A first inverting circuit to which the first bit data is input, and which inverts a logical value of each bit of the input first bit data and outputs inverted first bit data;
A second inverting circuit to which the second bit data is input, and that inverts the logical value of each bit of the input second bit data and outputs inverted second bit data;
When the first bit data and the inverted first bit data are input and the first output mode is set by the mode setting signal, the inverted first bit data is output as new first bit data, and the second output mode is switched to the second output mode. A first selection circuit for outputting the first bit data as new first bit data when set;
When the second bit data and the inverted second bit data are input and the first output mode is set by the mode setting signal, the inverted second bit data is output as new second bit data, and the second output mode is switched to the second output mode. 8. The data conversion device according to claim 7, further comprising a second selection circuit that outputs the second bit data as new second bit data when set.
前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは入力された第1ビットデータをそのまま新たな第1ビットデータとして出力する第1制御反転回路と、
第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは入力された第2ビットデータをそのまま新たな第2ビットデータとして出力する第2制御反転回路とを備えることを特徴とする請求項7記載のデータ変換装置。
The control means outputs a mode setting signal to the conversion means,
The conversion means,
When the first bit data is input and the first output mode is set by the mode setting signal, the inverted first bit data obtained by inverting the logical value of each bit of the input first bit data is newly added to the new first bit data. A first control inverting circuit for outputting as 1-bit data and outputting the input first bit data as new first bit data as it is when the second output mode is set;
When the second bit data is input and the first output mode is set by the mode setting signal, the inverted second bit data obtained by inverting the logical value of each bit of the input second bit data is added to the new second bit data. A second control inverting circuit for outputting as 2-bit data and outputting the inputted second bit data as new second bit data as it is when the second output mode is set. 8. The data conversion device according to 7.
入力された複数ビットからなる第1ビットデータおよび第2ビットデータを変換して新たな第1ビットデータおよび第2ビットデータを出力するデータ変換装置であって、
第1および第2ビットデータが入力される変換手段であって、
入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを新たな第1ビットデータとして出力するとともに、入力された第1ビットデータをそのまま新たな第2ビットデータとして出力する第1出力モードと、
入力された第2ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータを新たな第2ビットデータとして出力する第2出力モードと、
入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータを新たな第1ビットデータとして出力するとともに、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを新たな第2ビットデータとして出力する第3出力モードと、
入力された第1ビットデータをそのまま新たな第1ビットデータとして出力するとともに、入力された第2ビットデータをそのまま新たな第2ビットデータとして出力する第4出力モードとを有する変換手段と、
所定の制御条件に基づいて、前記変換手段が第1出力モード、第2出力モード、第3出力モードおよび第4出力モードのいずれのモードで動作するかを制御する制御手段とを備えることを特徴とするデータ変換装置。
A data conversion device for converting input first and second bit data composed of a plurality of bits and outputting new first and second bit data,
Conversion means to which the first and second bit data are inputted,
The inverted second bit data obtained by inverting the logical value of each bit of the input second bit data is output as new first bit data, and the input first bit data is directly converted to new second bit data. A first output mode for outputting as
The input second bit data is output as new first bit data as it is, and the inverted first bit data obtained by inverting the logical value of each bit of the input first bit data is converted to new second bit data. A second output mode for outputting as
Inverted first bit data obtained by inverting the logical value of each bit of the input first bit data is output as new first bit data, and the logical value of each bit of the input second bit data is respectively changed. A third output mode for outputting the inverted second bit data as new second bit data,
Conversion means having a fourth output mode for outputting the input first bit data as it is as new first bit data and outputting the input second bit data as it is as new second bit data;
Control means for controlling whether the conversion means operates in a first output mode, a second output mode, a third output mode, or a fourth output mode based on a predetermined control condition. Data conversion device.
前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1ビットデータが入力され、入力された第1ビットデータの各ビットの論理値をそれぞれ反転させて反転第1ビットデータを出力する第1反転回路と、
第2ビットデータが入力され、入力された第2ビットデータの各ビットの論理値をそれぞれ反転させて反転第2ビットデータを出力する第2反転回路と、
第1ビットデータ、第2ビットデータ、反転第1ビットデータおよび反転第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは反転第2ビットデータを新たな第1ビットデータとして出力し、第2出力モードが設定されたときは反転第1ビットデータを新たな第1ビットデータとして出力し、第3出力モードが設定されたときは第2ビットデータを新たな第1ビットデータとして出力し、第4出力モードが設定されたときは第1ビットデータを新たな第1ビットデータとして出力する第1選択回路と、
第1ビットデータ、第2ビットデータ、反転第1ビットデータおよび反転第2ビットデータが入力され、前記モード設定信号によって第1出力モードが設定されたときは第1ビットデータを新たな第2ビットデータとして出力し、第2出力モードが設定されたときは反転第2ビットデータを新たな第2ビットデータとして出力し、第3出力モードが設定されたときは反転第1ビットデータを新たな第2ビットデータとして出力し、第4出力モードが設定されたときは第2ビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする請求項10記載のデータ変換装置。
The control means outputs a mode setting signal to the conversion means,
The conversion means,
A first inverting circuit to which the first bit data is input, and which inverts a logical value of each bit of the input first bit data and outputs inverted first bit data;
A second inverting circuit to which the second bit data is input, and that inverts the logical value of each bit of the input second bit data and outputs inverted second bit data;
When the first bit data, the second bit data, the inverted first bit data, and the inverted second bit data are input, and the first output mode is set by the mode setting signal, the inverted second bit data is replaced with a new first bit data. When the second output mode is set, the inverted first bit data is output as new first bit data. When the third output mode is set, the second bit data is output as a new first bit data. A first selection circuit that outputs 1-bit data, and outputs the first bit data as new first bit data when the fourth output mode is set;
When the first bit data, the second bit data, the inverted first bit data, and the inverted second bit data are input and the first output mode is set by the mode setting signal, the first bit data is changed to a new second bit. Data, and outputs the inverted second bit data as new second bit data when the second output mode is set, and outputs the inverted first bit data as new new bit data when the third output mode is set. 11. The data converter according to claim 10, further comprising a second selection circuit that outputs the data as 2-bit data and outputs the second bit data as new second bit data when the fourth output mode is set. apparatus.
前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1および第2ビットデータが入力され、前記モード設定信号によって第1または第2出力モードが設定されたときは第2ビットデータを出力し、第3または第4出力モードが設定されたときは第1ビットデータを出力する第1選択回路と、
第1および第2ビットデータが入力され、前記モード設定信号によって第1または第2出力モードが設定されたときは第1ビットデータを出力し、第3または第4出力モードが設定されたときは第2ビットデータを出力する第2選択回路と、
前記第1選択回路から出力されたビットデータが入力され、前記モード設定信号によって第1または第3出力モードが設定されたときは入力されたビットデータの各ビットの論理値をそれぞれ反転させた反転ビットデータを新たな第1ビットデータとして出力し、第2または第4出力モードが設定されたときは入力されたビットデータをそのまま新たな第1ビットデータとして出力する第1制御反転回路と、
前記第2選択回路から出力されたビットデータが入力され、前記モード設定信号によって第2または第3出力モードが設定されたときは入力されたビットデータの各ビットの論理値をそれぞれ反転させた反転ビットデータを新たな第2ビットデータとして出力し、第1または第4出力モードが設定されたときは入力されたビットデータをそのまま新たな第2ビットデータとして出力する第2制御反転回路とを備えることを特徴とする請求項10記載のデータ変換装置。
The control means outputs a mode setting signal to the conversion means,
The conversion means,
When the first and second bit data are input and the first or second output mode is set by the mode setting signal, the second bit data is output. When the third or fourth output mode is set, A first selection circuit that outputs first bit data;
When the first and second bit data are input and the first or second output mode is set by the mode setting signal, the first bit data is output, and when the third or fourth output mode is set, A second selection circuit that outputs second bit data;
When the bit data output from the first selection circuit is input and the first or third output mode is set by the mode setting signal, the logical value of each bit of the input bit data is inverted. A first control inverting circuit that outputs bit data as new first bit data, and outputs the input bit data as new first bit data as it is when the second or fourth output mode is set;
When the bit data output from the second selection circuit is input and the second or third output mode is set by the mode setting signal, the logical value of each bit of the input bit data is inverted. A second control inverting circuit for outputting bit data as new second bit data, and outputting the input bit data as new second bit data as it is when the first or fourth output mode is set. The data conversion device according to claim 10, wherein:
前記制御手段は、前記変換手段にモード設定信号を出力し、
前記変換手段は、
第1ビットデータが入力され、前記モード設定信号によって第2または第3出力モードが設定されたときは入力された第1ビットデータの各ビットの論理値をそれぞれ反転させた反転第1ビットデータ出力し、第1または第4出力モードが設定されたときは入力された第1ビットデータをそのまま出力する第1制御反転回路と、
第2ビットデータが入力され、前記モード設定信号によって第1または第3出力モードが設定されたときは入力された第2ビットデータの各ビットの論理値をそれぞれ反転させた反転第2ビットデータを出力し、第2または第4出力モードが設定されたときは入力された第2ビットデータをそのまま出力する第2制御反転回路と、
前記第1および第2制御回路から出力されたビットデータが入力され、前記モード設定信号によって第1または第2出力モードが設定されたときは前記第2制御反転回路から出力されたビットデータを新たな第1ビットデータとして出力し、第3または第4出力モードが設定されたときは前記第1制御反転回路から出力されたビットデータを新たな第1ビットデータとして出力する第1選択回路と、
前記第1および第2制御回路から出力されたビットデータが入力され、前記モード設定信号によって第1または第2出力モードが設定されたときは前記第1制御反転回路から出力されたビットデータを新たな第2ビットデータとして出力し、第3または第4出力モードが設定されたときは前記第2制御反転回路から出力されたビットデータを新たな第2ビットデータとして出力する第2選択回路とを備えることを特徴とする請求項10記載のデータ変換装置。
The control means outputs a mode setting signal to the conversion means,
The conversion means,
When the first bit data is input and the second or third output mode is set by the mode setting signal, an inverted first bit data output in which the logical value of each bit of the input first bit data is inverted. A first control inversion circuit that outputs the input first bit data as it is when the first or fourth output mode is set;
When the second bit data is input and the first or third output mode is set by the mode setting signal, the inverted second bit data obtained by inverting the logical value of each bit of the input second bit data is output. A second control inverting circuit for outputting and outputting the input second bit data as it is when the second or fourth output mode is set;
When the bit data output from the first and second control circuits is input and the first or second output mode is set by the mode setting signal, the bit data output from the second control inversion circuit is newly updated. A first selection circuit for outputting as the first bit data, and when the third or fourth output mode is set, outputting the bit data output from the first control inversion circuit as new first bit data;
When the bit data output from the first and second control circuits is input and the first or second output mode is set by the mode setting signal, the bit data output from the first control inversion circuit is newly updated. And a second selection circuit that outputs the second bit data output from the second control inversion circuit as new second bit data when the third or fourth output mode is set. The data conversion device according to claim 10, further comprising:
フレームメモリの所定のアドレスから画素値を読み出し、読み出した画素値を前記所定のアドレスに対応付けられたX座標とY座標とからなる座標位置に配置して画像を表示する表示部が、画像を相互に異なる複数の向きで表示することができるように、フレームメモリに対して複数の画素値と、各画素値を書き込むアドレスとを出力する表示制御装置において、
前記フレームメモリに対して複数の画素値を出力するとともに、表示させる画像の向きに応じて各画素値のX座標およびY座標を生成して出力する描画部と、請求項1〜13のいずれかに記載のデータ変換装置を有し、表示させる画像の向きに応じてデータ変換装置の出力モードを選択して動作させ、前記描画部から出力されたX座標およびY座標を、入力された第1ビットデータおよび第2ビットデータとしてデータ変換を行い、新たな第1ビットデータおよび第2ビットデータを変換後のX座標およびY座標として出力する座標変換部と、
前記座標変換部から出力された変換後のX座標およびY座標を、前記フレームメモリのアドレスに変換し、前記フレームメモリに対して変換したアドレスを出力する座標アドレス変換部とを備えることを特徴とする表示制御装置。
A display unit that reads a pixel value from a predetermined address of the frame memory, arranges the read pixel value at a coordinate position composed of an X coordinate and a Y coordinate associated with the predetermined address, and displays an image, In a display control device that outputs a plurality of pixel values to a frame memory and an address at which each pixel value is written, so that the image data can be displayed in a plurality of different directions,
14. A drawing unit, which outputs a plurality of pixel values to the frame memory, and generates and outputs an X coordinate and a Y coordinate of each pixel value according to the direction of an image to be displayed, and a drawing unit according to any one of claims 1 to 13. Wherein the output mode of the data conversion device is selected and operated according to the direction of the image to be displayed, and the X coordinate and the Y coordinate output from the drawing unit are input to the first input device. A coordinate conversion unit that performs data conversion as bit data and second bit data and outputs new first bit data and second bit data as converted X coordinates and Y coordinates;
A coordinate address conversion unit that converts the converted X coordinate and Y coordinate output from the coordinate conversion unit into an address of the frame memory and outputs the converted address to the frame memory. Display control device.
所定のアドレスに画素値を記憶するフレームメモリと、
前記フレームメモリの所定のアドレスから画素値を読み出し、前記所定のアドレスに対応付けられたX座標とY座標とからなる座標位置に読み出した画素値を配置して画像を表示する表示部と、
前記表示部が画像を相互に異なる複数の向きで表示することができるように、フレームメモリに対して複数の画素値と、各画素値を書き込むアドレスとを出力する表示制御部であって、
前記フレームメモリに対して複数の画素値を出力するとともに、表示させる画像の向きに応じて各画素値のX座標およびY座標を生成して出力する描画部と、
請求項1〜13のいずれかに記載のデータ変換装置を有し、表示させる画像の向きに応じてデータ変換装置の出力モードを選択して動作させ、前記描画部から出力されたX座標およびY座標を、入力された第1ビットデータおよび第2ビットデータとしてデータ変換を行い、新たな第1ビットデータおよび第2ビットデータを変換後のX座標およびY座標として出力する座標変換部と、
前記座標変換部から出力された変換後のX座標およびY座標を、前記フレームメモリのアドレスに変換し、前記フレームメモリに対して変換したアドレスを出力する座標アドレス変換部とからなる表示制御部とを備えることを特徴とする表示装置。
A frame memory for storing a pixel value at a predetermined address;
A display unit that reads a pixel value from a predetermined address of the frame memory, arranges the read pixel value at a coordinate position consisting of an X coordinate and a Y coordinate associated with the predetermined address, and displays an image;
A display control unit that outputs a plurality of pixel values to a frame memory and an address at which each pixel value is written, so that the display unit can display an image in a plurality of different directions.
A drawing unit that outputs a plurality of pixel values to the frame memory, and generates and outputs an X coordinate and a Y coordinate of each pixel value according to an orientation of an image to be displayed;
14. An X-coordinate and a Y-coordinate output from the drawing unit, comprising the data conversion device according to any one of claims 1 to 13, selecting and operating an output mode of the data conversion device according to the direction of an image to be displayed. A coordinate conversion unit that performs data conversion of the coordinates as the input first bit data and second bit data, and outputs new first bit data and second bit data as converted X coordinates and Y coordinates;
A display control unit comprising: a coordinate address conversion unit that converts the converted X coordinate and Y coordinate output from the coordinate conversion unit to an address of the frame memory and outputs the converted address to the frame memory. A display device comprising:
JP2002238538A 2002-08-19 2002-08-19 Data converting device, display control unit equipped with the data converting device, and display device Pending JP2004077839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002238538A JP2004077839A (en) 2002-08-19 2002-08-19 Data converting device, display control unit equipped with the data converting device, and display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002238538A JP2004077839A (en) 2002-08-19 2002-08-19 Data converting device, display control unit equipped with the data converting device, and display device

Publications (1)

Publication Number Publication Date
JP2004077839A true JP2004077839A (en) 2004-03-11

Family

ID=32021931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002238538A Pending JP2004077839A (en) 2002-08-19 2002-08-19 Data converting device, display control unit equipped with the data converting device, and display device

Country Status (1)

Country Link
JP (1) JP2004077839A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100356404C (en) * 2004-05-06 2007-12-19 佳能株式会社 Image information processing circuit and image display apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100356404C (en) * 2004-05-06 2007-12-19 佳能株式会社 Image information processing circuit and image display apparatus

Similar Documents

Publication Publication Date Title
JP3952641B2 (en) Image processing apparatus and image processing system
JP4093196B2 (en) Display driver and electronic device
JP2007048300A (en) On-screen transparent keyboard interface
US6140996A (en) Display control apparatus
JP2002118738A5 (en) Image display device and method, and storage medium
JP2005114773A (en) Controller driver, display device, and operating method therefor
JP2004157526A (en) Controller-driver, display device, and display method
JP3491471B2 (en) Driving device and electronic equipment
EP1411490A1 (en) Image display apparatus and electronic apparatus
JP2006349757A (en) Information processor and image processing method
KR100620372B1 (en) Method for rotating image, computer and recoding media
JP4148170B2 (en) Display driver and electronic device
JP2004077839A (en) Data converting device, display control unit equipped with the data converting device, and display device
US5488390A (en) Apparatus, systems and methods for displaying a cursor on a display screen
JP2002023731A (en) Device and method for display control
EP1282108A1 (en) Image half-tone processor and method thereof
US20040105336A1 (en) Range selectable address decoder and frame memory device for processing graphic data at high speed using the same
JP2004252102A (en) Image display device, image display method and image display program
JP2005202423A (en) Image display device
JP2001228818A (en) Display device
JP2001051657A (en) Color liquid crystal display
JPS63109497A (en) Image display device
JP4987230B2 (en) Driving method, driving circuit, and driving apparatus for display system
JP3795189B2 (en) Display control circuit
KR100448939B1 (en) Resolution transform circuit of liquid crystal display device, especially implementing multi-synch

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050525

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080902

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090120

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090804