JP2009198639A - Image display apparatus and scroll control method and scroll control program for image display apparatus, electronic equipment having image display apparatus - Google Patents
Image display apparatus and scroll control method and scroll control program for image display apparatus, electronic equipment having image display apparatus Download PDFInfo
- Publication number
- JP2009198639A JP2009198639A JP2008038383A JP2008038383A JP2009198639A JP 2009198639 A JP2009198639 A JP 2009198639A JP 2008038383 A JP2008038383 A JP 2008038383A JP 2008038383 A JP2008038383 A JP 2008038383A JP 2009198639 A JP2009198639 A JP 2009198639A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- scroll
- reduced image
- degrees
- dma controller
- 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.)
- Withdrawn
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
本発明は、情報となる文字や写真を縦方向(上下方向)または横方向(左右方向)にスクロールさせて表示する画像表示装置及び画像表示装置のスクロール制御方法及びスクロール制御プログラム、画像表示装置を備えた電子機器に関する。 The present invention relates to an image display device, a scroll control method of the image display device, a scroll control program, and an image display device for scrolling and displaying information characters and photographs in the vertical direction (vertical direction) or the horizontal direction (left and right direction). It is related with the provided electronic equipment.
パーソナルコンピュータなどが備える高機能なLCD(LCD:Liquid Crystal Display)コントローラは、例えば特許文献1や非特許文献1に示すように、大量のVRAM(Video Random Access Memory)を使った仮想スクリーン機能を備えており、その機能を使用することにより情報となる文字や写真を縦方向(上下方向)または横方向(左右方向)にスクロールさせて表示することが可能である。例えば、数十枚の写真を横方向にスクロールで表示しようとすると、仮想スクリーン領域に大量のVRAMを割り付けなければならない。
A high-performance LCD (LCD: Liquid Crystal Display) controller provided in a personal computer or the like has a virtual screen function using a large amount of VRAM (Video Random Access Memory) as shown in
しかしながら、プリンタやデジタルカメラなどの小型機器は大量のVRAMを搭載することができず、せいぜい数枚の仮想スクリーン領域しか確保できないので、仮想スクリーン領域に入りきらない画像はCPUが仮想スクリーン領域の表示位置を計算しながら書き換えなければならず、横方向のスクロールをスムースかつ高速に行うことはできない。 However, small devices such as printers and digital cameras cannot be equipped with a large amount of VRAM, and only a few virtual screen areas can be secured. Therefore, an image that does not fit in the virtual screen area is displayed by the CPU in the virtual screen area. It must be rewritten while calculating the position, and horizontal scrolling cannot be performed smoothly and at high speed.
このような小型機器では、CPUに掛かる負担を軽くするために、メモリからメモリまたはメモリから周辺機器の間をCPUを介さずに直接転送できるダイレクトメモリーアクセス(DMA:Direct Memory Access)コントローラが使われており、外部のメモリカードの画像データを内部のVRAMに高速に転送することができる。 In such small devices, a direct memory access (DMA) controller that can transfer data directly from memory to memory or from memory to peripheral devices without going through the CPU is used to lighten the load on the CPU. The image data of the external memory card can be transferred to the internal VRAM at high speed.
しかしながら、従来の方法では、縦方向のスクロールの場合は、DMAコントローラの開始アドレスをずらしていくだけで高速に表示切替できたが、横方向のスクロールでは、スクロールバッファから切り取ったバッファを一旦別のVRAM転送用バッファへとコピーしてからVRAMにコピーする必要があり、縦スクロール時と同様な高速な表示切替ができないという課題がある。 However, in the conventional method, in the case of vertical scrolling, the display can be switched at high speed only by shifting the start address of the DMA controller. However, in horizontal scrolling, the buffer cut from the scroll buffer is temporarily stored in another VRAM. There is a problem that it is necessary to copy the data to the transfer buffer and then to the VRAM, and the display cannot be switched at the same high speed as in vertical scrolling.
本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態または適用例として実現することが可能である。 SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.
[適用例1]
表示部と、前記表示部の表示領域を含む記憶域を有するVRAMと、外部記憶媒体に記憶された複数の画像データから前記表示部に表示可能なサイズの縮小画像データを生成する縮小画像生成部と、データの配列を右90度または左90度に回転させることを指示する制御レジスタに基づき入力したデータの配列を回転させて転送するDMAコントローラと、前記縮小画像データを右90度回転した状態で1列にm個(mは3以上の整数)配置可能な記憶域を含むスクロールバッファと、前記VRAMに転送する前記スクロールバッファの開始位置を指示する操作部と、前記制御レジスタを右90度に設定した前記DMAコントローラにより前記縮小画像データを順次前記スクロールバッファに転送させる右回転転送部と、前記制御レジスタを左90度に設定した前記DMAコントローラにより前記スクロールバッファの前記開始位置から所定のデータ量を前記VRAMに転送させる左回転転送部と、を含む、ことを特徴とする画像表示装置。
[Application Example 1]
A reduced image generating unit that generates reduced image data having a size that can be displayed on the display unit from a plurality of image data stored in an external storage medium, a display unit, a VRAM having a storage area including a display area of the display unit A DMA controller that rotates and transfers the input data array based on the control register that instructs to rotate the data array to the right 90 degrees or the left 90 degrees, and the reduced image data rotated 90 degrees to the right A scroll buffer including a storage area in which m (m is an integer of 3 or more) can be arranged in one column, an operation unit for instructing the start position of the scroll buffer to be transferred to the VRAM, and the control register at 90 degrees to the right A right rotation transfer unit for sequentially transferring the reduced image data to the scroll buffer by the DMA controller set to Including a left rotation transfer unit for a predetermined amount of data from the start position of the scroll buffer by the DMA controller set at 90 degrees to the left is transferred to the VRAM, the image display apparatus, characterized in that.
この構成によれば、DMAコントローラにより、画像データを右90度回転させてスクロールバッファに転送し、スクロールバッファの指定された開始位置から左90度回転させてVRAMに転送するので、表示部で複数の画像データを左右方向に滑らかにスクロールさせることができる。 According to this configuration, the image data is rotated 90 degrees to the right by the DMA controller and transferred to the scroll buffer, and the image data is rotated 90 degrees to the left from the specified start position of the scroll buffer and transferred to the VRAM. The image data can be smoothly scrolled in the left-right direction.
[適用例2]
上記に記載の画像表示装置において、前記スクロールバッファはリングバッファであることを特徴とする画像表示装置。
[Application Example 2]
The image display apparatus according to the above, wherein the scroll buffer is a ring buffer.
この構成によれば、スクロールバッファをリングバッファで構成することにより大量の画像データに対しても少ない容量で左右方向のスクロールを実現できる。 According to this configuration, by configuring the scroll buffer with a ring buffer, it is possible to realize horizontal scrolling with a small capacity even for a large amount of image data.
[適用例3]
上記に記載の画像表示装置を備えたことを特徴とする電子機器。
[Application Example 3]
An electronic apparatus comprising the image display device described above.
この構成によれば、DMAコントローラにより、画像データを右90度回転させてスクロールバッファに転送し、スクロールバッファの指定された開始位置から左90度回転させてVRAMに転送するので、表示部で複数の画像データを左右方向に滑らかにスクロールさせることができる電子機器を提供できる。 According to this configuration, the image data is rotated 90 degrees to the right by the DMA controller and transferred to the scroll buffer, and the image data is rotated 90 degrees to the left from the specified start position of the scroll buffer and transferred to the VRAM. It is possible to provide an electronic apparatus that can smoothly scroll the image data in the left-right direction.
[適用例4]
表示部と、前記表示部の表示領域を含む記憶域を有するVRAMと、外部記憶媒体に記憶された複数の画像データから前記表示部に表示可能なサイズの縮小画像データを生成する縮小画像生成工程と、データの配列を右90度または左90度に回転させることを指示する制御レジスタに基づき入力したデータの配列を回転させて転送するDMAコントローラと、前記縮小画像データを右90度回転した状態で1列にm個(mは3以上の整数)配置可能な記憶域を含むスクロールバッファと、前記VRAMに転送する前記スクロールバッファの開始位置を指示する操作部と、を含む画像表示装置のスクロール制御方法であって、前記制御レジスタを右90度に設定した前記DMAコントローラにより前記縮小画像データを順次前記スクロールバッファに転送させる右回転転送工程と、前記制御レジスタを左90度に設定した前記DMAコントローラにより前記スクロールバッファの前記開始位置から所定のデータ量を前記VRAMに転送させる左回転転送工程と、を含む、ことを特徴とする画像表示装置のスクロール制御方法。
[Application Example 4]
Reduced image generation step of generating reduced image data having a size that can be displayed on the display unit from a plurality of image data stored in an external storage medium and a VRAM having a display unit, a storage area including a display area of the display unit A DMA controller that rotates and transfers the input data array based on the control register that instructs to rotate the data array to the right 90 degrees or the left 90 degrees, and the reduced image data rotated 90 degrees to the right Scrolling of an image display device including a scroll buffer including a storage area in which m (m is an integer of 3 or more) can be arranged in one column and an operation unit for instructing a start position of the scroll buffer to be transferred to the VRAM In the control method, the reduced image data is sequentially transferred to the scroll bar by the DMA controller in which the control register is set to 90 degrees to the right. A right rotation transfer step for transferring the data to the device, and a left rotation transfer step for transferring a predetermined amount of data from the start position of the scroll buffer to the VRAM by the DMA controller with the control register set to 90 degrees to the left. A scroll control method for an image display device.
この構成によれば、DMAコントローラにより、画像データを右90度回転させてスクロールバッファに転送し、スクロールバッファの指定された開始位置から左90度回転させてVRAMに転送するので、表示部で複数の画像データを左右方向に滑らかにスクロールさせることができる。 According to this configuration, the image data is rotated 90 degrees to the right by the DMA controller and transferred to the scroll buffer, and the image data is rotated 90 degrees to the left from the specified start position of the scroll buffer and transferred to the VRAM. The image data can be smoothly scrolled in the left-right direction.
[適用例5]
表示部と、前記表示部の表示領域を含む記憶域を有するVRAMと、外部記憶媒体に記憶された複数の画像データから前記表示部に表示可能なサイズの縮小画像データを生成する縮小画像生成ステップと、データの配列を右90度または左90度に回転させることを指示する制御レジスタに基づき入力したデータの配列を回転させて転送するDMAコントローラと、前記縮小画像データを右90度回転した状態で1列にm個(mは3以上の整数)配置可能な記憶域を含むスクロールバッファと、前記VRAMに転送する前記スクロールバッファの開始位置を指示する操作部と、を含む画像表示装置のスクロール制御プログラムであって、前記制御レジスタを右90度に設定した前記DMAコントローラにより前記縮小画像データを順次前記スクロールバッファに転送させる右回転転送ステップと、前記制御レジスタを左90度に設定した前記DMAコントローラにより前記スクロールバッファの前記開始位置から所定のデータ量を前記VRAMに転送させる左回転転送ステップと、を含む、ことを特徴とする画像表示装置のスクロール制御プログラム。
[Application Example 5]
Reduced image generation step of generating reduced image data having a size that can be displayed on the display unit from a display unit, a VRAM having a storage area including a display area of the display unit, and a plurality of image data stored in an external storage medium A DMA controller that rotates and transfers the input data array based on the control register that instructs to rotate the data array to the right 90 degrees or the left 90 degrees, and the reduced image data rotated 90 degrees to the right Scroll of an image display device including a scroll buffer including a storage area that can be arranged in m (m is an integer of 3 or more) in one column and an operation unit that indicates a start position of the scroll buffer to be transferred to the VRAM. A control program for sequentially reducing the reduced image data by the DMA controller with the control register set to 90 degrees to the right. A right rotation transfer step for transferring to the roll buffer, and a left rotation transfer step for transferring a predetermined amount of data from the start position of the scroll buffer to the VRAM by the DMA controller with the control register set to 90 degrees to the left. A scroll control program for an image display device.
この構成によれば、DMAコントローラにより、画像データを右90度回転させてスクロールバッファに転送し、スクロールバッファの指定された開始位置から左90度回転させてVRAMに転送するので、表示部で複数の画像データを左右方向に滑らかにスクロールさせることができる。 According to this configuration, the image data is rotated 90 degrees to the right by the DMA controller and transferred to the scroll buffer, and the image data is rotated 90 degrees to the left from the specified start position of the scroll buffer and transferred to the VRAM. The image data can be smoothly scrolled in the left-right direction.
以下、画像表示装置の実施形態について図面に従って説明する。 Hereinafter, an embodiment of an image display device will be described with reference to the drawings.
(第1実施形態)
<画像表示装置の構成>
まず、第1実施形態に係る画像表示装置を備えた電子機器である印刷装置の構成について、図1を参照して説明する。図1は、第1実施形態に係る画像表示装置を備えた印刷装置の構成を示すブロック図である。
(First embodiment)
<Configuration of image display device>
First, the configuration of a printing apparatus that is an electronic apparatus including the image display apparatus according to the first embodiment will be described with reference to FIG. FIG. 1 is a block diagram illustrating a configuration of a printing apparatus including an image display apparatus according to the first embodiment.
図1に示すように、印刷装置1000は、画像表示装置100と、プリンタコントローラ300と、を含んで構成されている。なお、図1では説明の簡略化のためプリンタコントローラ300以降の処理部や印刷機構は省略する。
As shown in FIG. 1, the
画像表示装置100は、CPU110と、ROM120と、RAM130と、表示部であるLCD(Liquid Crystal Display)150と、LCD150を制御するLCDコントローラ140と、操作部160と、VRAM(Video Random Access Memory)170と、外部記憶媒体190とのデータの送受信を行うためのインターフェース(I/F:interface)部180と、DMA(Direct Memory Access)コントローラ200と、が内部バス102を介して相互に接続されている。
The
ROM120には、縮小画像生成部122と、右回転転送部124と、左回転転送部126と、を含む制御プログラム121が記憶され、CPU110により実行される。RAM130は、縮小画像生成部122が外部記憶媒体190に記憶された複数の画像データからLCD150に表示可能なサイズに縮小した縮小画像データ132と、スクロールバッファ134と、を記憶する。
The
図2は、印刷装置の表示部と操作部の構成を示す構成図である。印刷装置1000は、LCD150と、操作部160と、を備えている。LCD150には、複数の縮小画像データ132が横方向にスクロールされるように表示されている。
FIG. 2 is a configuration diagram illustrating configurations of a display unit and an operation unit of the printing apparatus. The
操作部160は、複数の操作ボタン161〜164が配置され、操作ボタン163を押すと複数の縮小画像データ132を向かって左手方向にスクロールし、操作ボタン164を押すと複数の縮小画像データ132を向かって右手方向にスクロールし、操作ボタン161を押すことにより現在表示されている縮小画像データ132が選択される。
The
<DMAコントローラの構成>
次に、DMAコントローラの構成について図3を参照して説明する。図3は、DMAコントローラの構成を示すブロック図である。
<Configuration of DMA controller>
Next, the configuration of the DMA controller will be described with reference to FIG. FIG. 3 is a block diagram showing the configuration of the DMA controller.
図3に示すように、DMAコントローラ200は、図1の内部バス102に接続された制御部210と、バイトカウンタ(Bc:Byte Counter)230と、カラムカウンタ(Cc:Column Counter)232と、ローカウンタ(Rc:Row Counter)234と、ソースアドレス(Sa:Source Address)算出部236と、デスティネーションアドレス(Da:Destination Address)算出部238と、データバッファ240と、レジスタ220と、加算器250と、乗算器252と、が内部バス201に相互に接続されている。
As shown in FIG. 3, the
レジスタ220は、制御レジスタCRと、ソース側のカラムサイズCxと、ソース側のローサイズRxと、総バイト数Tbと、ソース側スタートアドレスS0と、デスティネーション側スタートアドレスD0と、を格納している。
The
図4は、制御レジスタの構成を示す構成図である。図4に示すように、制御レジスタCRは、0ビット目b0に「0:右回転/1:左回転」を設定するフラグが格納され、1ビット目b1に「0:回転なし/1:回転あり」を設定するフラグが格納され、7ビット目b7に「0:転送終了/1:転送開始」を設定するフラグが格納されている。 FIG. 4 is a configuration diagram showing the configuration of the control register. As shown in FIG. 4, the control register CR stores a flag for setting “0: right rotation / 1: left rotation” in the 0th bit b0, and “0: no rotation / 1: rotation” in the first bit b1. A flag for setting “Yes” is stored, and a flag for setting “0: transfer end / 1: transfer start” is stored in the seventh bit b7.
<DMAコントローラの動作>
次に、DMAコントローラの動作について図5〜8を参照して説明する。図5は、DMAコントローラの右回転転送の動作を説明するブロック図である。図6は、DMAコントローラの右回転転送の動作を説明するフローチャートである。図7は、DMAコントローラの左回転転送の動作を説明するブロック図である。図8は、DMAコントローラの左回転転送の動作を説明するフローチャートである。
<Operation of DMA controller>
Next, the operation of the DMA controller will be described with reference to FIGS. FIG. 5 is a block diagram for explaining the clockwise rotation operation of the DMA controller. FIG. 6 is a flowchart for explaining the right rotation transfer operation of the DMA controller. FIG. 7 is a block diagram for explaining the left rotation transfer operation of the DMA controller. FIG. 8 is a flowchart for explaining the left rotation transfer operation of the DMA controller.
<DMAコントローラの右回転転送の動作>
先ず、DMAコントローラ200の右回転転送の動作(右回転転送部124)について図5,6を参照して説明する。なお、説明の簡略化のため、ソース側のカラムサイズCx=4、ソース側のローサイズRx=3の場合について説明する。
<Operation of DMA controller clockwise rotation>
First, the right rotation transfer operation (right rotation transfer unit 124) of the
図5に示すように、ソース側配列は、ソース側アドレスSa=100〜111で構成され、デスティネーション側配列は、デスティネーション側アドレスDa=200〜211で構成されている。ソース側配列を右90度回転させてデスティネーション側配列に転送するようにDMAコントローラ200を動作させるために、右回転転送部124(図1)は、レジスタ220に格納する値を、ソース側のカラムサイズCx=4、ソース側のローサイズRx=3、総バイト数Tb=12、ソース側スタートアドレスS0=100、デスティネーション側スタートアドレスD0=200に設定する。
As shown in FIG. 5, the source side array includes source side addresses Sa = 100 to 111, and the destination side array includes destination side addresses Da = 200 to 211. In order to operate the
次に、図6のフローチャートに基づきDMAコントローラ200の右回転転送の動作を説明する。
Next, the right rotation transfer operation of the
先ず、ステップS300では、右回転転送に設定するため、右回転転送部124は、制御レジスタCRの各々のビット値を、b0=0,b1=1,b7=1に設定する。
First, in step S300, the right
次に、ステップS302では、バイトカウンタ230の値Bc、カラムカウンタ232の値Cc及びローカウンタ234の値Rcを0にリセットする。
Next, in step S302, the value Bc of the
次に、ステップS304では、ソースアドレス算出部236によりソース側アドレスSa=S0+Bcを算出する。
Next, in step S304, the source
次に、ステップS306では、デスティネーションアドレス算出部238によりデスティネーション側アドレスDa=(D0+Rx−1−Rc)+(Rx×Cc)を算出する。
Next, in step S306, the destination
次に、ステップS308では、ソース側アドレスSaのデータをデスティネーション側アドレスDaに転送する。 In step S308, the data on the source side address Sa is transferred to the destination side address Da.
次に、ステップS310では、バイトカウンタ230の値Bcに1を加算(++Bc)し、加算後のバイトカウンタ230の値Bcが総バイト数Tb以上か否かを判定し、総バイト数Tb以上(Tb≦Bc)の場合はステップS316に移行し、総バイト数Tb未満(Tb>Bc)の場合はステップS312に移行する。
Next, in step S310, 1 is added to the value Bc of the byte counter 230 (++ Bc), and it is determined whether or not the value Bc of the
次に、ステップS312では、カラムカウンタ232の値Ccに1を加算(++Cc)し、加算後のカラムカウンタ232の値Ccがソース側のカラムサイズCx以上か否かを判定し、ソース側のカラムサイズCx以上(Cx≦Cc)の場合はステップS314に移行し、ソース側のカラムサイズCx未満(Cx>Cc)の場合はステップS304に移行する。
Next, in step S312, 1 is added to the value Cc of the column counter 232 (++ Cc), and it is determined whether or not the value Cc of the
次に、ステップS314では、カラムカウンタ232の値Ccを0にリセットし、ローカウンタ234の値Rcに1を加算(++Rc)し、ステップS304に移行する。
Next, in step S314, the value Cc of the
一方、ステップS316では、転送終了に設定するため、右回転転送部124は、制御レジスタCRのビット値を、b7=0に設定し、処理を終了する。
On the other hand, in step S316, in order to set the transfer to end, the right
図6のフローチャートで説明した動作を図5のソース側配列で説明すると、ソース側アドレスSa=100のデータC(0,0)は、デスティネーション側アドレスDa=(200+3−1−0)+(3×0)=202に転送される。また、ソース側アドレスSa=100+1のデータC(0,1)は、デスティネーション側アドレスDa=(200+3−1−0)+(3×1)=205に転送される。以下同様に転送が行われ、図5のソース側配列がデスティネーション側配列に右90度回転して転送される。 The operation described with reference to the flowchart of FIG. 6 will be described with reference to the source side arrangement of FIG. 5. The data C (0, 0) of the source side address Sa = 100 is represented by the destination side address Da = (200 + 3-1-0) + ( 3 × 0) = 202. Further, the data C (0, 1) of the source side address Sa = 100 + 1 is transferred to the destination side address Da = (200 + 3-1-0) + (3 × 1) = 205. Thereafter, transfer is performed in the same manner, and the source side array of FIG. 5 is transferred to the destination side array by rotating 90 degrees to the right.
<DMAコントローラの左回転転送の動作>
次に、DMAコントローラ200の左回転転送の動作(左回転転送部126)について図7,8を参照して説明する。なお、説明の簡略化のため、ソース側のカラムサイズCx=3、ソース側のローサイズRx=4の場合について説明する。
<Operation of DMA controller counterclockwise transfer>
Next, the left rotation transfer operation (left rotation transfer unit 126) of the
図7に示すように、ソース側配列は、ソース側アドレスSa=200〜211で構成され、デスティネーション側配列は、デスティネーション側アドレスDa=300〜311で構成されている。ソース側配列を左90度回転させてデスティネーション側配列に転送するようにDMAコントローラ200を動作させるために、左回転転送部126(図1)は、レジスタ220に格納する値を、ソース側のカラムサイズCx=3、ソース側のローサイズRx=4、総バイト数Tb=12、ソース側スタートアドレスS0=200、デスティネーション側スタートアドレスD0=300に設定する。
As shown in FIG. 7, the source side array is configured with source side addresses Sa = 200 to 211, and the destination side array is configured with destination side addresses Da = 300 to 311. In order to operate the
次に、図8のフローチャートに基づきDMAコントローラ200の左回転転送の動作を説明する。
Next, the left rotation transfer operation of the
先ず、ステップS400では、左回転転送に設定するため、左回転転送部126は、制御レジスタCRの各々のビット値を、b0=1,b1=1,b7=1に設定する。
First, in step S400, in order to set left rotation transfer, the left
次に、ステップS402では、バイトカウンタ230の値Bc、カラムカウンタ232の値Cc及びローカウンタ234の値Rcを0にリセットする。
Next, in step S402, the value Bc of the
次に、ステップS404では、ソースアドレス算出部236によりソース側アドレスSa=S0+Bcを算出する。
Next, in step S404, the source
次に、ステップS406では、デスティネーションアドレス算出部238によりデスティネーション側アドレスDa=(D0+Tb−Rx)+Rc−(Rx×Cc)を算出する。
Next, in step S406, the destination
次に、ステップS408では、ソース側アドレスSaのデータをデスティネーション側アドレスDaに転送する。 In step S408, the data on the source side address Sa is transferred to the destination side address Da.
次に、ステップS410では、バイトカウンタ230の値Bcに1を加算(++Bc)し、加算後のバイトカウンタ230の値Bcが総バイト数Tb以上か否かを判定し、総バイト数Tb以上(Tb≦Bc)の場合はステップS416に移行し、総バイト数Tb未満(Tb>Bc)の場合はステップS412に移行する。
Next, in step S410, 1 is added to the value Bc of the byte counter 230 (++ Bc), and it is determined whether or not the value Bc of the
次に、ステップS412では、カラムカウンタ232の値Ccに1を加算(++Cc)し、加算後のカラムカウンタ232の値Ccがソース側のカラムサイズCx以上か否かを判定し、ソース側のカラムサイズCx以上(Cx≦Cc)の場合はステップS414に移行し、ソース側のカラムサイズCx未満(Cx>Cc)の場合はステップS404に移行する。
Next, in step S412, 1 is added to the value Cc of the column counter 232 (++ Cc), and it is determined whether or not the value Cc of the
次に、ステップS414では、カラムカウンタ232の値Ccを0にリセットし、ローカウンタ234の値Rcに1を加算(++Rc)し、ステップS404に移行する。
Next, in step S414, the value Cc of the
一方、ステップS416では、転送終了に設定するため、左回転転送部126は、制御レジスタCRのビット値を、b7=0に設定し、処理を終了する。
On the other hand, in step S416, in order to set the transfer to end, the left
図8のフローチャートで説明した動作を図7のソース側配列で説明すると、ソース側アドレスSa=200のデータC(2,0)は、デスティネーション側アドレスDa=(300+12−4)+0−(4×0)=308に転送される。また、ソース側アドレスSa=200+1のデータC(1,0)は、デスティネーション側アドレスDa=(300+12−4)+0−(4×1)=304に転送される。以下同様に転送が行われ、図7のソース側配列がデスティネーション側配列に左90度回転して転送される。 The operation described with reference to the flowchart of FIG. 8 will be described with reference to the source side arrangement of FIG. 7. The data C (2, 0) of the source side address Sa = 200 is the destination side address Da = (300 + 12-4) + 0− (4 X0) = 308. Further, the data C (1, 0) of the source side address Sa = 200 + 1 is transferred to the destination side address Da = (300 + 12-4) + 0− (4 × 1) = 304. Thereafter, transfer is performed in the same manner, and the source side array in FIG. 7 is rotated 90 degrees to the left and transferred to the destination side array.
<スクロールバッファの構成>
次に、スクロールバッファの構成について図9,10を参照して説明する。図9は、スクロールバッファの構成を示す構成図である。
<Configuration of scroll buffer>
Next, the configuration of the scroll buffer will be described with reference to FIGS. FIG. 9 is a configuration diagram showing the configuration of the scroll buffer.
図9(A)は、外部記憶媒体190に記憶された複数の画像データの1つを縮小画像生成部122(図1)によりLCD150に表示可能なサイズに縮小した縮小画像データ132である。図9(B)は、縮小画像データ132を右回転転送部124により右90度回転させて順次スクロールバッファ134に転送した状態を示す。図9(B)に示すように、スクロールバッファ134は、縮小画像データ132を右90度回転させた幅よりも若干の余裕を持たせ、上下に隣り合う縮小画像データ132の間にも若干の余裕を持たせている。これは、図2のLCD150に示すように縮小画像データ132間に余裕を持たせることにより見栄えを良くするためである。
FIG. 9A shows reduced
図9(B)のスクロールバッファ134から図9(C)のVRAM170に転送するための開始位置であるソース側スタートアドレスS0からVRAM170へ左回転転送部126により左90度回転させてデータが転送される。VRAM170に転送されたデータは、図9(D)のLCD150に表示される。操作部160の操作ボタン163,164によりスクロールバッファ134のソース側スタートアドレスS0が移動する。
Data is transferred from the source side start address S0, which is the starting position for transferring from the
図10は、スクロールバッファをリングバッファで構成した場合の動作を示す構成図である。図10(A)〜(C)に示すスクロールバッファ134は、縮小画像データ132を右90度回転した状態で1列にm=7個配置可能な記憶域を含む。また、縮小画像データ132は、100個あるものとする。
FIG. 10 is a configuration diagram showing an operation when the scroll buffer is configured by a ring buffer. The
図10(A)は、スクロールバッファ134のソース側スタートアドレスS0が1番目の縮小画像データ132の位置にあり、図10(A)の1番目の縮小画像データ132の下方向に2〜4番目の縮小画像データ132が配置され、1番目の縮小画像データ132の上方向に98〜100番目の縮小画像データ132が配置されている。
In FIG. 10A, the source side start address S0 of the
図10(B)は、スクロールバッファ134のソース側スタートアドレスS0が2番目の縮小画像データ132の位置にあり、図10(A)の98番目の縮小画像データ132の替わりに5番目の縮小画像データ132が配置されている。以下同様に、スクロールバッファ134のソース側スタートアドレスS0が3番目の縮小画像データ132の位置に来ると、図10(B)の99番目の縮小画像データ132の替わりに6番目の縮小画像データ132が配置される。
10B, the source-side start address S0 of the
図10(C)は、スクロールバッファ134のソース側スタートアドレスS0が100番目の縮小画像データ132の位置にあり、図10(A)の4番目の縮小画像データ132の替わりに97番目の縮小画像データ132が配置されている。以下同様に、スクロールバッファ134のソース側スタートアドレスS0が99番目の縮小画像データ132の位置に来ると、図10(C)の3番目の縮小画像データ132の替わりに96番目の縮小画像データ132が配置される。
10C, the source side start address S0 of the
<画像表示装置の動作>
次に、画像表示装置の動作について図11,12を参照して説明する。図11は、スクロールバッファへの転送処理の動作を示すフローチャートである。
<Operation of image display device>
Next, the operation of the image display apparatus will be described with reference to FIGS. FIG. 11 is a flowchart showing the operation of the transfer process to the scroll buffer.
先ず、ステップS200では、外部記憶媒体190からI/F部180を介して1つの画像データがRAM130の所定の領域に読み込まれる。ここで画像データ形式に応じた展開も行われる。
First, in
次に、ステップS202では、縮小画像生成部122により、画像データからLCD150に表示可能なサイズに縮小した縮小画像データ132が生成される。
Next, in step S202, the reduced
次に、ステップS204では、右回転転送部124により、縮小画像データ132を右90度回転させスクロールバッファ134に順次転送する。
In step S204, the right
次に、ステップS206では、スクロールバッファ134に転送可能な必要枚数(図10の場合、m=7)を転送終了したか否かを判定し、転送終了した場合はステップS208に移行し、転送終了していない場合はステップS200に移行する。 Next, in step S206, it is determined whether or not the necessary number of sheets that can be transferred to the scroll buffer 134 (m = 7 in the case of FIG. 10) has been transferred. If the transfer has been completed, the process proceeds to step S208 and the transfer is completed. If not, the process proceeds to step S200.
次に、ステップS208では、DMAコントローラ200のレジスタ220のソース側スタートアドレスS0の値を設定する。
Next, in step S208, the value of the source side start address S0 of the
次に、ステップS210では、左回転転送部126により、スクロールバッファ134のソース側スタートアドレスS0から左90度回転させVRAM170にデータを転送し、処理を終了する。
Next, in step S210, the left
図12は、画像表示装置の動作の動作を示すフローチャートである。ここでは、操作ボタン163が1回押されると縮小画像データ132が左方向に5ドット分スクロールし、操作ボタン164が1回押されると縮小画像データ132が右方向に5ドット分スクロールする場合について説明する。
FIG. 12 is a flowchart showing the operation of the image display apparatus. Here, when the
先ず、ステップS100では、スクロールバッファ134への転送処理が行われる。
First, in step S100, transfer processing to the
次に、ステップS102では、操作ボタン164が押され、右方向へのスクロール指示が来たか否かを判定し、来た場合はステップS104に移行し、来ない場合はステップS106に移行する。
Next, in step S102, it is determined whether or not the
次に、ステップS104では、ソース側スタートアドレスS0にソース側のカラムサイズCx×5が加算され、ステップS110に移行する。 Next, in step S104, the source-side column size Cx × 5 is added to the source-side start address S0, and the process proceeds to step S110.
一方、ステップS106では、操作ボタン163が押され、左方向へのスクロール指示が来たか否かを判定し、来た場合はステップS108に移行し、来ない場合はステップS116に移行する。
On the other hand, in step S106, it is determined whether or not the
次に、ステップS108では、ソース側スタートアドレスS0からソース側のカラムサイズCx×5が減算され、ステップS110に移行する。 Next, in step S108, the source side column size Cx × 5 is subtracted from the source side start address S0, and the process proceeds to step S110.
次に、ステップS110では、左回転転送部126により、スクロールバッファ134のソース側スタートアドレスS0からVRAM170への転送処理が行われる。
Next, in step S110, the left
次に、ステップS112では、ソース側スタートアドレスS0が次の縮小画像データ132に達した(右スクロールの場合)、または、ソース側スタートアドレスS0が1つ前の縮小画像データ132に達した(左スクロールの場合)か否かを判定し、達した場合はステップS114に移行し、達しない場合は、ステップS102に移行する。 Next, in step S112, the source side start address S0 has reached the next reduced image data 132 (in the case of right scrolling), or the source side start address S0 has reached the previous reduced image data 132 (left). In the case of scrolling), the process proceeds to step S114 if reached, and to step S102 if not reached.
次に、ステップS114では、次にスクロールバッファ134に転送すべき縮小画像データ132を決定し、ステップS100に移行する。
Next, in step S114, the reduced
一方、ステップS116では、スクロールが終了したか否かを判定し、終了した場合は処理を終了し、終了していない場合はステップS102に移行する。 On the other hand, in step S116, it is determined whether or not the scrolling is finished. If finished, the process is finished, and if not finished, the process proceeds to step S102.
以上に述べた本実施形態によれば、以下の効果が得られる。 According to the present embodiment described above, the following effects can be obtained.
本実施形態では、DMAコントローラ200により、縮小画像データ132を右90度回転させてスクロールバッファ134に転送し、スクロールバッファ134の指定された開始位置(ソース側スタートアドレスS0)から左90度回転させてVRAM170に転送するので、表示部(LCD150)で複数の画像データを左右方向に滑らかにスクロールさせることができる。
In the present embodiment, the
以上、画像表示装置の実施形態を説明したが、こうした実施の形態に何ら限定されるものではなく、趣旨を逸脱しない範囲内において様々な形態で実施し得ることができる。以下、変形例を挙げて説明する。 Although the embodiments of the image display device have been described above, the present invention is not limited to these embodiments, and can be implemented in various forms without departing from the scope of the invention. Hereinafter, a modification will be described.
(変形例1)画像表示装置の変形例1について説明する。前記第1実施形態では、電子機器として印刷装置の場合を説明したが、画像ビューア装置やデジタルカメラなどの表示部に利用しても良い。
(Modification 1)
100…画像表示装置、102…内部バス、110…CPU、120…ROM、121…制御プログラム、122…縮小画像生成部、124…右回転転送部、126…左回転転送部、130…RAM、132…縮小画像データ、134…スクロールバッファ、140…LCDコントローラ、150…LCD、160…操作部、161〜164…操作ボタン、170…VRAM、180…I/F部、190…外部記憶媒体、200…DMAコントローラ、201…内部バス、210…制御部、220…レジスタ、230…バイトカウンタ、232…カラムカウンタ、234…ローカウンタ、236…ソースアドレス算出部、238…デスティネーションアドレス算出部、240…データバッファ、250…加算器、252…乗算器、300…プリンタコントローラ、1000…印刷装置。
DESCRIPTION OF
Claims (5)
前記表示部の表示領域を含む記憶域を有するVRAMと、
外部記憶媒体に記憶された複数の画像データから前記表示部に表示可能なサイズの縮小画像データを生成する縮小画像生成部と、
データの配列を右90度または左90度に回転させることを指示する制御レジスタに基づき入力したデータの配列を回転させて転送するDMAコントローラと、
前記縮小画像データを右90度回転した状態で1列にm個(mは3以上の整数)配置可能な記憶域を含むスクロールバッファと、
前記VRAMに転送する前記スクロールバッファの開始位置を指示する操作部と、
前記制御レジスタを右90度に設定した前記DMAコントローラにより前記縮小画像データを順次前記スクロールバッファに転送させる右回転転送部と、
前記制御レジスタを左90度に設定した前記DMAコントローラにより前記スクロールバッファの前記開始位置から所定のデータ量を前記VRAMに転送させる左回転転送部と、
を含む、
ことを特徴とする画像表示装置。 A display unit;
A VRAM having a storage area including a display area of the display unit;
A reduced image generating unit that generates reduced image data of a size that can be displayed on the display unit from a plurality of image data stored in an external storage medium;
A DMA controller that rotates and transfers an array of input data based on a control register that instructs to rotate the array of data 90 degrees to the right or 90 degrees to the left;
A scroll buffer including a storage area in which m pieces (m is an integer of 3 or more) can be arranged in a row with the reduced image data rotated 90 degrees to the right;
An operation unit for instructing a start position of the scroll buffer to be transferred to the VRAM;
A right rotation transfer unit for sequentially transferring the reduced image data to the scroll buffer by the DMA controller in which the control register is set to 90 degrees to the right;
A left rotation transfer unit for transferring a predetermined amount of data from the start position of the scroll buffer to the VRAM by the DMA controller having the control register set to 90 degrees to the left;
including,
An image display device characterized by that.
前記表示部の表示領域を含む記憶域を有するVRAMと、
外部記憶媒体に記憶された複数の画像データから前記表示部に表示可能なサイズの縮小画像データを生成する縮小画像生成工程と、
データの配列を右90度または左90度に回転させることを指示する制御レジスタに基づき入力したデータの配列を回転させて転送するDMAコントローラと、
前記縮小画像データを右90度回転した状態で1列にm個(mは3以上の整数)配置可能な記憶域を含むスクロールバッファと、
前記VRAMに転送する前記スクロールバッファの開始位置を指示する操作部と、
を含む画像表示装置のスクロール制御方法であって、
前記制御レジスタを右90度に設定した前記DMAコントローラにより前記縮小画像データを順次前記スクロールバッファに転送させる右回転転送工程と、
前記制御レジスタを左90度に設定した前記DMAコントローラにより前記スクロールバッファの前記開始位置から所定のデータ量を前記VRAMに転送させる左回転転送工程と、
を含む、
ことを特徴とする画像表示装置のスクロール制御方法。 A display unit;
A VRAM having a storage area including a display area of the display unit;
A reduced image generation step of generating reduced image data of a size that can be displayed on the display unit from a plurality of image data stored in an external storage medium;
A DMA controller that rotates and transfers an array of input data based on a control register that instructs to rotate the array of data 90 degrees to the right or 90 degrees to the left;
A scroll buffer including a storage area in which m pieces (m is an integer of 3 or more) can be arranged in a row with the reduced image data rotated 90 degrees to the right;
An operation unit for instructing a start position of the scroll buffer to be transferred to the VRAM;
A scroll control method for an image display device including:
A clockwise rotation transfer step of sequentially transferring the reduced image data to the scroll buffer by the DMA controller in which the control register is set to 90 degrees to the right;
A left rotation transfer step of transferring a predetermined amount of data from the start position of the scroll buffer to the VRAM by the DMA controller having the control register set to 90 degrees to the left;
including,
A scroll control method for an image display device.
前記表示部の表示領域を含む記憶域を有するVRAMと、
外部記憶媒体に記憶された複数の画像データから前記表示部に表示可能なサイズの縮小画像データを生成する縮小画像生成ステップと、
データの配列を右90度または左90度に回転させることを指示する制御レジスタに基づき入力したデータの配列を回転させて転送するDMAコントローラと、
前記縮小画像データを右90度回転した状態で1列にm個(mは3以上の整数)配置可能な記憶域を含むスクロールバッファと、
前記VRAMに転送する前記スクロールバッファの開始位置を指示する操作部と、
を含む画像表示装置のスクロール制御プログラムであって、
前記制御レジスタを右90度に設定した前記DMAコントローラにより前記縮小画像データを順次前記スクロールバッファに転送させる右回転転送ステップと、
前記制御レジスタを左90度に設定した前記DMAコントローラにより前記スクロールバッファの前記開始位置から所定のデータ量を前記VRAMに転送させる左回転転送ステップと、
を含む、
ことを特徴とする画像表示装置のスクロール制御プログラム。 A display unit;
A VRAM having a storage area including a display area of the display unit;
A reduced image generating step for generating reduced image data of a size that can be displayed on the display unit from a plurality of image data stored in an external storage medium;
A DMA controller that rotates and transfers an array of input data based on a control register that instructs to rotate the array of data 90 degrees to the right or 90 degrees to the left;
A scroll buffer including a storage area in which m pieces (m is an integer of 3 or more) can be arranged in a row with the reduced image data rotated 90 degrees to the right;
An operation unit for instructing a start position of the scroll buffer to be transferred to the VRAM;
A scroll control program for an image display device including:
A clockwise rotation transfer step of sequentially transferring the reduced image data to the scroll buffer by the DMA controller in which the control register is set to 90 degrees to the right;
A left rotation transfer step of transferring a predetermined amount of data from the start position of the scroll buffer to the VRAM by the DMA controller having the control register set to 90 degrees to the left;
including,
A scroll control program for an image display device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008038383A JP2009198639A (en) | 2008-02-20 | 2008-02-20 | Image display apparatus and scroll control method and scroll control program for image display apparatus, electronic equipment having image display apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008038383A JP2009198639A (en) | 2008-02-20 | 2008-02-20 | Image display apparatus and scroll control method and scroll control program for image display apparatus, electronic equipment having image display apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009198639A true JP2009198639A (en) | 2009-09-03 |
Family
ID=41142214
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008038383A Withdrawn JP2009198639A (en) | 2008-02-20 | 2008-02-20 | Image display apparatus and scroll control method and scroll control program for image display apparatus, electronic equipment having image display apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009198639A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013105666A1 (en) * | 2012-01-13 | 2013-07-18 | 株式会社 エヌ・ティ・ティ・ドコモ | Information terminal which displays image and image display method |
US10600145B2 (en) | 2013-12-13 | 2020-03-24 | Samsung Electronics Co., Ltd. | Image processor, for scaling image data in two directions. Computing system comprising same, and related method of operation |
US11579763B2 (en) * | 2019-01-15 | 2023-02-14 | Fujifilm Medical Systems U.S.A., Inc. | Smooth image scrolling with disk I/O activity optimization and enhancement to memory consumption |
-
2008
- 2008-02-20 JP JP2008038383A patent/JP2009198639A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013105666A1 (en) * | 2012-01-13 | 2013-07-18 | 株式会社 エヌ・ティ・ティ・ドコモ | Information terminal which displays image and image display method |
JP2013145464A (en) * | 2012-01-13 | 2013-07-25 | Ntt Docomo Inc | Information terminal for displaying image and image display method |
US10600145B2 (en) | 2013-12-13 | 2020-03-24 | Samsung Electronics Co., Ltd. | Image processor, for scaling image data in two directions. Computing system comprising same, and related method of operation |
US11579763B2 (en) * | 2019-01-15 | 2023-02-14 | Fujifilm Medical Systems U.S.A., Inc. | Smooth image scrolling with disk I/O activity optimization and enhancement to memory consumption |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200393944A1 (en) | Electronic picture frame and image display method thereof | |
US20070211159A1 (en) | Portable image communication system, transmitting and receiving units constructing said system, and methods of controlling said units | |
WO2011139928A2 (en) | Image capture | |
JP2005123707A (en) | Image projection apparatus and image projection system, and display image generating apparatus and display image generating method | |
JP2009092969A (en) | Image transfer device, and image display control method in image transfer | |
JP2009198639A (en) | Image display apparatus and scroll control method and scroll control program for image display apparatus, electronic equipment having image display apparatus | |
US20060236012A1 (en) | Memory controller, image processing controller, and electronic instrument | |
JP2007272449A (en) | Server device for computer system | |
JP5365541B2 (en) | Image transfer apparatus and image display control method in image transfer | |
US11200007B2 (en) | Display method, display device, and printing device | |
US11146698B2 (en) | Terminal device, non-transitory computer-readable storage medium storing display control program, and display control method | |
JP2008116812A (en) | Display apparatus, projector, and display method | |
JP2009098281A (en) | Projection video display system, and projection video display device used for the same | |
JP4621551B2 (en) | Image data acquisition method, image data acquisition device, and program | |
JP2005228073A (en) | Image processor, microcomputer and electronic apparatus | |
JP2007298796A (en) | Osd data processing system, projector and osd data processing method | |
JP4780126B2 (en) | Image processing apparatus, image forming apparatus, and program | |
JP2007121839A (en) | Display controller | |
JP6981215B2 (en) | Multifunction device, screen display method, and computer program | |
JP7413673B2 (en) | Image forming device and display control method | |
JP5575261B2 (en) | Drawing apparatus, drawing method and program | |
JP2008059452A (en) | Image processor and image processing method | |
JP6202991B2 (en) | Image display apparatus, control method thereof, and program | |
JP2006343511A (en) | Controller for electronic equipment and display control method for liquid crystal display apparatus | |
JP6234301B2 (en) | Display data creation system, display data creation method, and computer program for display data creation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20110510 |