JP5228326B2 - Image display device - Google Patents
Image display device Download PDFInfo
- Publication number
- JP5228326B2 JP5228326B2 JP2007014816A JP2007014816A JP5228326B2 JP 5228326 B2 JP5228326 B2 JP 5228326B2 JP 2007014816 A JP2007014816 A JP 2007014816A JP 2007014816 A JP2007014816 A JP 2007014816A JP 5228326 B2 JP5228326 B2 JP 5228326B2
- Authority
- JP
- Japan
- Prior art keywords
- transfer
- coordinate
- frame
- destination address
- address
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Transforming Electric Information Into Light Information (AREA)
- Controls And Circuits For Display Device (AREA)
Description
本発明は、ディスプレイ装置の画面上に枠が有る四角形のマスクウィンドウを描画させることができる機能を有する画像表示装置に関し、特に、DMA転送が可能であるが、矩形単位や方形単位などの四角形単位ではDMA転送ができないハードウェアを有する画像表示装置に関する。 The present invention relates to an image display device having a function capable of drawing a rectangular mask window having a frame on the screen of a display device, and more particularly to a rectangular unit such as a rectangular unit or a rectangular unit, although DMA transfer is possible. The present invention relates to an image display apparatus having hardware that cannot perform DMA transfer.
テレビジョン受像機などのディスプレイ装置のOSD(オン・スクリーン・ディスプレイ)などに適用される画像表示装置では、ディスプレイ装置の画面上に枠が有る四角形のマスクウィンドウを設定し、このマスクウィンドウに、例えば、画面のスクロール表示などが行われることがある。 In an image display device applied to an OSD (on-screen display) of a display device such as a television receiver, a rectangular mask window having a frame on the screen of the display device is set, and for example, In some cases, scroll display of the screen is performed.
ところで、DMA転送が可能であるが、四角形単位ではDMA転送ができないハードウェア(CPU)を有する画像表示装置では、ディスプレイ装置の画面上に枠が有る四角形のマスクウィンドウを表示するときに、CPUが、画像メモリに一つ一つ四角形に関する画素データ(画素値)を書き込み、また、画像メモリから画素データを読み出すことにより、ディスプレイ装置に枠が有る四角形のマスクウィンドウを表示させるようにしている。
しかしながら、このような従来の画像表示装置では、前述したように、ディスプレイ装置の画面上に枠が有る四角形のマスクウィンドウを表示するときに、CPUが、画像メモリに一つ一つ四角形に関する画素データを書き込み、また、画像メモリから画素データを読み出すことにより、ディスプレイ装置に枠が有る四角形のマスクウィンドウを表示させるようにしているが、DMA転送の割り込み毎に四角形を形成するラインを描画する場合に、ライン数分の割り込み処理や、次のラインのアドレス値の設定処理などが多く発生するので、四角形の描画速度が遅くなると言う課題が生じる。 However, in such a conventional image display device, as described above, when a square mask window having a frame is displayed on the screen of the display device, the CPU stores pixel data relating to each rectangle in the image memory. In addition, by reading out pixel data from the image memory, a square mask window with a frame is displayed on the display device. However, when a line forming a square is drawn for each DMA transfer interrupt, Since many interrupt processes for the number of lines and address value setting processes for the next line occur, there arises a problem that the drawing speed of the quadrangle is slowed down.
なお、特許文献1の従来技術は、操作部からマスクウィンドウ領域の範囲の指定信号、マスクウィンドウ領域への属性指定信号および色指定信号が入力設定されると、OSD制御ユニットの指令に基づき、垂直表示制御回路によって、マスクウィンドウ領域の垂直方向領域の範囲が設定され、水平表示制御回路によって、マスクウィンドウ領域の水平方向領域の範囲が設定され、属性制御回路によって、マスクウィンドウ領域への枠体付加などの属性制御が行われ、色制御回路によって、マスクウィンドウ領域内とマスクウィンドウ領域外との少なくとも一方に対して着色制御が行われ、視覚に効果的に訴える多様なマスクウィンドウの表示画像を作成することができるようにしているが、枠が有る四角形のマスクウィンドウを描画する際に、DMA転送を使用し、高速にOSD描画を行うようにしたり、四角形単位でDMA転送できないハードウェアを備えた場合でも、OSDの四角形描画を高速に行うことができるようにした画像表示装置を提供するものではない。 In the prior art disclosed in Patent Document 1, when the designation signal for the range of the mask window area, the attribute designation signal to the mask window area, and the color designation signal are input and set from the operation unit, the vertical direction is determined based on the command of the OSD control unit. The range of the vertical area of the mask window area is set by the display control circuit, the range of the horizontal area of the mask window area is set by the horizontal display control circuit, and the frame body is added to the mask window area by the attribute control circuit. The color control circuit controls the coloring of at least one of the mask window area and the outside of the mask window area, creating various mask window display images that appeal to the eye effectively. But when drawing a rectangular mask window with a frame Provided is an image display device that can perform OSD drawing at high speed using DMA transfer, or can perform OSD rectangle drawing at high speed even when hardware that cannot perform DMA transfer in units of squares is provided. It is not a thing.
本発明は、上記のような課題を解決するためになされたもので、枠が有る四角形のマスクウィンドウを描画する際に、DMA転送を使用し、高速にOSD描画を行うようにすると共に、四角形単位でDMA転送できないハードウェアを備えていても、OSDの四角形描画を高速に行うことができる画像表示装置を提供することを目的とする。 The present invention has been made to solve the above-described problems. When a rectangular mask window having a frame is drawn, DMA transfer is used to perform OSD drawing at a high speed. An object of the present invention is to provide an image display device capable of performing OSD quadrangle drawing at high speed even when hardware that cannot be DMA-transferred in units is provided.
上記目的を達成するために、本発明の画像表示装置は、ディスプレイ装置の画面上に枠が有る四角形のマスクウィンドウを描画させることができる機能を有する画像表示装置において、DMA(ダイレクト・メモリ・アクセス)転送単位分の四角形の枠色データを画像メモリに格納する色データ格納手段と、DMAの転送元アドレスを前記色データ格納手段により枠色データが格納された前記画像メモリの先頭アドレスに設定し、DMAの転送先アドレスをディスプレイ装置の画面上に実際に描画する四角形のX座標とY座標のアドレスに設定し、更に、DMAの転送サイズを前記描画する四角形の横幅に設定する第1の転送元/転送先アドレス/転送サイズ設定手段と、前記転送元アドレスのX座標と前記転送先アドレスのX座標をインクリメントして四角形の枠の1ライン分の描画を行う1ライン描画手段と、前記枠の1ライン分の描画が完了すると、転送元アドレスのX座標を枠の上側部分の左端の位置のX座標に設定し、DMAの転送元アドレスのY座標を先ほど描画した前記1ライン分のラインのY座標の値に設定し、DMAの転送先アドレスのX座標を枠の上側部分の左端の位置のX座標に設定し、DMAの転送先アドレスのY座標を前記1ライン分のラインの次のラインのY座標に設定し、更に、DMAの転送サイズを四角形の横幅×残りの枠高さで示すサイズに設定する第2の転送元/転送先アドレス/転送サイズ設定手段と、DMAの転送元アドレスのX座標と転送先アドレスのX座標をインクリメントし、DMAの転送元アドレスのY座標と転送先アドレスのY座標をインクリメントすることにより、枠aの高さ−1ラインの高さ分のサイズの画素データをまとめてディスプレイ装置に転送して、枠の上側部分の描画を行う枠上側部分描画手段と、枠の上側部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の左側部分に対する同様な処理を経て、枠の左側部分の描画を行う枠左側部分描画手段と、枠の左側部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の中身部分に対する同様な処理を経て、枠の中身部分を描画する中身部分描画手段と、枠の中身部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の右側部分に対する同様な処理を経て、右側部分を描画する枠右側部分描画手段と、枠の右側部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の下側部分に対する同様な処理を経て、枠の下側部分を描画する枠下側部分描画手段とを有することを特徴とする。
In order to achieve the above object, an image display device of the present invention is a DMA (Direct Memory Access) in an image display device having a function capable of drawing a rectangular mask window having a frame on the screen of a display device. ) A color data storage means for storing rectangular frame color data for the transfer unit in the image memory, and a DMA transfer source address is set to the start address of the image memory in which the frame color data is stored by the color data storage means. The DMA transfer destination address is set to the address of the X and Y coordinates of the rectangle that is actually drawn on the screen of the display device, and the DMA transfer size is set to the horizontal width of the rectangle to be drawn. Source / transfer destination address / transfer size setting means, and the X coordinate of the transfer source address and the X coordinate of the transfer destination address One line drawing means for drawing one line of a rectangular frame and when drawing of one line of the frame is completed, the X coordinate of the transfer source address is set to the X coordinate of the left end position of the upper part of the frame. The Y coordinate of the DMA transfer source address is set to the Y coordinate value of the line for the one line drawn earlier, and the X coordinate of the DMA transfer destination address is set to the X at the left end position of the upper part of the frame. Set the coordinates, set the Y coordinate of the DMA transfer destination address to the Y coordinate of the line next to the line for one line, and further indicate the DMA transfer size by the width of the rectangle x the remaining frame height Second transfer source / destination address / transfer size setting means to be set, DMA transfer source address X coordinate and transfer destination address X coordinate, DMA transfer source address Y coordinate and transfer destination address Y A frame upper part drawing means for drawing the upper part of the frame by collectively transferring the pixel data having a size corresponding to the height of the frame a minus one line by incrementing the coordinates to the display device; After the drawing of the upper portion of the frame is completed, the left side of the frame formed by the first transfer source / transfer destination address / transfer size setting means, one line drawing means, and the second transfer source / transfer destination address / transfer size setting means Through the same processing for the part, the frame left part drawing means for drawing the left part of the frame, and after the drawing of the left part of the frame is completed, the first transfer source / transfer destination address / transfer size setting means, Through the same processing for the contents of the frame by the one-line drawing means and the second transfer source / destination address / transfer size setting means, the contents part drawing means for drawing the contents of the frame, After the image is completed, the same applies to the right portion of the frame by the first transfer source / transfer destination address / transfer size setting means, the one line drawing means, and the second transfer source / transfer destination address / transfer size setting means. After processing, the right side portion drawing means for drawing the right side portion, the drawing of the right side portion of the frame is completed, and then the first transfer source / transfer destination address / transfer size setting means, the one line drawing means, and the second through the same process for the transfer source / destination address / lower portion of the transfer size setting means and by the frame of, you; and a frame lower part drawing means for drawing the lower portion of the frame.
この構成において、色データ格納手段は、DMA転送単位分の四角形の枠の色を示す枠色データを、画像メモリに格納する。次に、第1の転送元/転送先アドレス/転送サイズ設定手段は、DMAの転送元アドレスを、前記枠色データを格納した画像メモリの先頭アドレスに設定し、DMAの転送先アドレスを、実際に描画する矩形のX座標とY座標のアドレスに設定し、更に、DMAの転送サイズを、描画する四角形の横幅に設定する。 In this configuration, the color data storage means stores frame color data indicating the color of the rectangular frame for the DMA transfer unit in the image memory. Next, the first transfer source / transfer destination address / transfer size setting means sets the DMA transfer source address to the start address of the image memory storing the frame color data, and sets the DMA transfer destination address to the actual transfer destination address. Are set to the addresses of the X and Y coordinates of the rectangle to be drawn, and the DMA transfer size is set to the horizontal width of the rectangle to be drawn.
この後、1ライン描画手段は、DMAの転送元アドレスと転送先アドレスをインクリメントすることにより、四角形の枠の1ライン分の描画を行う。枠の1ライン分の描画が完了すると、第2の転送元/転送先アドレス/転送サイズ設定手段は、転送元アドレスのX座標を、枠の上側部分の左端の位置のX座標に設定し、転送元アドレスのY座標を先ほど描画したラインのY座標の値に設定し、また、転送先アドレスのX座標を、四角形の枠の上側部分の左端の位置のX座標に設定し、転送先アドレスのY座標を、前記ラインの次のラインのY座標に設定する。更に、転送元/転送先アドレス/転送サイズ設定手段は、転送サイズを四角形幅×残りの枠高さで示すサイズに設定する。 Thereafter, the one-line drawing means draws one line of a rectangular frame by incrementing the DMA transfer source address and transfer destination address. When the drawing for one line of the frame is completed, the second transfer source / transfer destination address / transfer size setting means sets the X coordinate of the transfer source address to the X coordinate of the left end position of the upper part of the frame, Set the Y coordinate of the transfer source address to the value of the Y coordinate of the line drawn earlier, and set the X coordinate of the transfer destination address to the X coordinate of the left end position of the upper part of the rectangular frame. Is set to the Y coordinate of the next line of the line. Further, the transfer source / transfer destination address / transfer size setting means sets the transfer size to the size indicated by the square width × the remaining frame height.
枠上側部分描画手段は、転送元アドレスのX座標と転送先アドレスのX座標をインクリメントし、また、転送元アドレスのY座標と転送先アドレスのY座標をインクリメントして、(枠の高さ)−(1ラインの高さ)分のサイズの画素データをまとめてディスプレイ装置に転送することにより、四角形の枠の上側部分の描画を行う。 The frame upper side partial drawing means increments the X coordinate of the transfer source address and the X coordinate of the transfer destination address, and also increments the Y coordinate of the transfer source address and the Y coordinate of the transfer destination address (the height of the frame). -The pixel data of the size of (the height of one line) is collectively transferred to the display device, thereby drawing the upper part of the rectangular frame.
枠の上側部分の描画が完了した後、四角形の枠の上側部分よりも以下の部分の描画が行われる。先ず、枠の左側部分を描画する処理は、次のように行われる。枠左側部分描画手段は、第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の左側部分に対する同様な処理を経て、枠の左側部分の描画を行う。以下、第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる同様な処理を経て、枠の中身部分が中身部分描画手段により描画され、次に、枠の右側部分が右側部分描画手段により描画され、更に、枠の下側部分が下側部分描画手段により描画される。 After the drawing of the upper part of the frame is completed, the following part is drawn rather than the upper part of the rectangular frame. First, the process of drawing the left part of the frame is performed as follows. The frame left portion drawing means is similar to the left portion of the frame by the first transfer source / transfer destination address / transfer size setting means, the one-line drawing means, and the second transfer source / transfer destination address / transfer size setting means. After processing, the left part of the frame is drawn. Thereafter, after the same processing by the first transfer source / transfer destination address / transfer size setting means, one line drawing means, and the second transfer source / transfer destination address / transfer size setting means, the contents of the frame are the contents. Drawing is performed by the partial drawing unit, then the right part of the frame is drawn by the right part drawing unit, and the lower part of the frame is drawn by the lower partial drawing unit.
この構成によれば、枠が有る四角形のマスクウィンドウを描画する際に、DMA転送を使用しているので、CPUが、画像メモリに一つ一つ四角形に関する画素データを書き込み、また、画像メモリから画素データを読み出すことにより、ディスプレイ装置に枠が有る四角形のマスクウィンドウを表示させるものに比べ、高速にOSD描画を行うことができる。また、DMA転送の割り込み毎に四角形を形成するラインを描画する場合に、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により、割り込み処理や、次のラインのアドレス値の設定処理などの回数が少なくなるので、四角形の描画速度が高速になり、高速にOSD描画を行うことができると共に、四角形単位でDMA転送できないハードウェアを有していても、OSDの四角形描画を高速に行うことができる。 According to this configuration, when drawing a rectangular mask window with a frame, DMA transfer is used, so the CPU writes pixel data for each rectangle to the image memory, and from the image memory. By reading out the pixel data, OSD drawing can be performed at a higher speed than that in which a square mask window having a frame is displayed on the display device. In addition, when drawing a line that forms a rectangle for each DMA transfer interrupt, the processing including the increment of the DMA transfer source address and the transfer destination address can be used for interrupt processing, address value setting processing for the next line, etc. Since the number of times is reduced, the drawing speed of the rectangle is increased, so that the OSD drawing can be performed at a high speed, and the OSD rectangle drawing can be performed at a high speed even if hardware that cannot be DMA-transferred in units of a rectangle is provided Can do.
また、上記目的を達成するために、本発明の画像表示装置は、ディスプレイ装置の画面上に枠が有る四角形のマスクウィンドウを描画させることができる機能を有する画像表示装置において、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により枠の上側部分の描画を行う枠上側部分描画手段と、枠の上側部分の描画が完了すると、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により枠の左側部分を描画する枠左側部分描画手段と、枠の左側部分の描画が完了すると、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により枠の中身部分を描画する中身部分描画手段と、枠の中身部分の描画が完了すると、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により枠の右側部分を描画する枠右側部分描画手段と、枠の右側部分の描画が完了すると、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により枠の下側部分を描画する枠下側部分描画手段と、を有することを特徴とする。
In order to achieve the above object, the image display apparatus according to the present invention is a DMA transfer source address in an image display apparatus having a function capable of drawing a rectangular mask window having a frame on the screen of the display apparatus. The frame upper part drawing means for drawing the upper part of the frame by the process including the increment of the transfer destination address, and the process including the increment of the DMA transfer source address and the transfer destination address when the drawing of the upper part of the frame is completed. Frame left part drawing means for drawing the left side part of the frame, and content part drawing means for drawing the content part of the frame by a process including incrementing of the DMA transfer source address and the transfer destination address when drawing of the left side part of the frame is completed When the drawing of the contents of the frame is completed, the DMA transfer source address and transfer destination address are incremented. When the drawing of the right part of the frame is completed, the lower part of the frame is drawn by the process including the DMA transfer source address and the transfer destination address increment. and a frame lower part drawing means, characterized by having.
この構成において、枠左側部分描画手段は、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により、枠の上側部分の描画を行う。枠の上側部分の描画が完了すると、枠左側部分描画手段は、枠の左側部分を描画する。枠の左側部分の描画が完了すると、中身部分描画手段は、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により、枠の中身部分を描画する。枠の中身部分の描画が完了すると、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により、枠右側部分描画手段は、枠の右側部分を描画する。枠の右側部分の描画が完了すると、枠下側部分描画手段は、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により、枠の下側部分を描画する。 In this configuration, the frame left portion drawing means draws the upper portion of the frame by a process including the increment of the DMA transfer source address and the transfer destination address. When the drawing of the upper part of the frame is completed, the frame left part drawing means draws the left part of the frame. When the drawing of the left portion of the frame is completed, the content portion drawing means draws the content portion of the frame by a process including the increment of the DMA transfer source address and the transfer destination address. When the drawing of the contents of the frame is completed, the frame right portion drawing means draws the right portion of the frame by a process including incrementing the DMA transfer source address and transfer destination address. When the drawing of the right part of the frame is completed, the frame lower part drawing means draws the lower part of the frame by a process including the increment of the DMA transfer source address and the transfer destination address.
この構成によれば、枠が有る四角形のマスクウィンドウを描画する際に、DMA転送を使用しているので、CPUが、画像メモリに一つ一つ四角形に関する画素データを書き込み、また、画像メモリから画素データを読み出すことにより、ディスプレイ装置に枠が有る四角形のマスクウィンドウを表示させるものに比べ、高速にOSD描画を行うことができる。また、DMA転送の割り込み毎に四角形を形成するラインを描画する場合に、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により、割り込み処理や、次のラインのアドレス値の設定処理などの回数が少なくなるので、四角形の描画速度が高速になり、高速にOSD描画を行うことができると共に、四角形単位でDMA転送できないハードウェアでも、OSDの四角形描画を高速に行うことができる。 According to this configuration, when drawing a rectangular mask window with a frame, DMA transfer is used, so the CPU writes pixel data for each rectangle to the image memory, and from the image memory. By reading out the pixel data, OSD drawing can be performed at a higher speed than that in which a square mask window having a frame is displayed on the display device. In addition, when drawing a line that forms a rectangle for each DMA transfer interrupt, the processing including the increment of the DMA transfer source address and the transfer destination address can be used for interrupt processing, address value setting processing for the next line, etc. Since the number of times is reduced, the drawing speed of the rectangle is increased, so that the OSD drawing can be performed at a high speed, and the OSD rectangle drawing can be performed at high speed even with hardware that cannot perform DMA transfer in units of a rectangle.
上記構成の画像形成装置において、DMA(ダイレクト・メモリ・アクセス)転送単位分の四角形の枠色データを画像メモリに格納する色データ格納手段と、DMAの転送元アドレスを前記色データ格納手段により枠色データが格納された前記画像メモリの先頭アドレスに設定し、DMAの転送先アドレスをディスプレイ装置の画面上に実際に描画する四角形のX座標とY座標のアドレスに設定し、更に、DMAの転送サイズを前記描画する四角形の横幅に設定する第1の転送元/転送先アドレス/転送サイズ設定手段と、前記転送元アドレスのX座標と前記転送先アドレスのX座標をインクリメントして四角形の枠の1ライン分の描画を行う1ライン描画手段と、前記枠の1ライン分の描画が完了すると、転送元アドレスのX座標を枠の上側部分の左端の位置のX座標に設定し、DMAの転送元アドレスのY座標を先ほど描画した前記1ライン分のラインのY座標の値に設定し、DMAの転送先アドレスのX座標を枠の上側部分の左端の位置のX座標に設定し、DMAの転送先アドレスのY座標を前記1ライン分のラインの次のラインのY座標に設定し、更に、DMAの転送サイズを四角形の横幅×残りの枠高さで示すサイズに設定する第2の転送元/転送先アドレス/転送サイズ設定手段とを有し、前記枠上側部分描画手段は、DMAの転送元アドレスのX座標と転送先アドレスのX座標をインクリメントし、DMAの転送元アドレスのY座標と転送先アドレスのY座標をインクリメントすることにより、枠の高さ−1ラインの高さ分のサイズの画素データをまとめてディスプレイ装置に転送して、枠の上側部分の描画を行い、前記枠左側部分描画手段は、枠の上側部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の左側部分に対する同様な処理を経て、枠の左側部分の描画を行い、前記中身部分描画手段は、枠の左側部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の中身部分に対する同様な処理を経て、枠の中身部分の描画を行い、前記枠右側部分描画手段は、枠の中身部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の中身部分に対する同様な処理を経て、右側部分を描画し、前記枠下側部分描画手段は、枠の右側部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の下側部分に対する同様な処理を経て、枠の下側部分を描画してもよい。
In the image forming apparatus having the above-described configuration, color data storage means for storing rectangular frame color data for a DMA (direct memory access) transfer unit in the image memory, and a DMA transfer source address by the color data storage means. Set the start address of the image memory in which the color data is stored, set the DMA transfer destination address to the address of the X and Y coordinates of the rectangle that is actually drawn on the screen of the display device, and further transfer the DMA A first transfer source / transfer destination address / transfer size setting means for setting the size to the width of the rectangle to be drawn; and the X coordinate of the transfer source address and the X coordinate of the transfer destination address are incremented to When one line drawing means for drawing one line and drawing of one line of the frame is completed, the X coordinate of the transfer source address is displayed on the frame. Set the X coordinate of the leftmost position of the part, set the Y coordinate of the DMA transfer source address to the Y coordinate value of the line for the one line drawn earlier, and set the X coordinate of the DMA transfer destination address to the frame Set the X coordinate of the left end position of the upper part, set the Y coordinate of the DMA transfer destination address to the Y coordinate of the next line of the line for one line, and further set the DMA transfer size to the width of the rectangle × A second transfer source / transfer destination address / transfer size setting means for setting the size indicated by the remaining frame height, and the frame upper side partial drawing means includes an X coordinate and a transfer destination address of the DMA transfer source address By incrementing the X coordinate of the DMA and incrementing the Y coordinate of the transfer source address of the DMA and the Y coordinate of the transfer destination address, the pixel data having a size corresponding to the height of the frame minus one line is displayed together. The frame upper left portion drawing means, after the drawing of the upper portion of the frame is completed, the first transfer source / destination address / transfer size setting means The left portion of the frame is drawn through the same processing for the left portion of the frame by the one line drawing means and the second transfer source / destination address / transfer size setting means, and the contents portion drawing means After the drawing of the left portion of the frame is completed, the contents of the frame by the first transfer source / transfer destination address / transfer size setting means, the one line drawing means, and the second transfer source / transfer destination address / transfer size setting means Through the same processing for the portion, the contents of the frame are drawn, and the frame right side drawing means sets the first transfer source / transfer destination address / transfer size after the drawing of the contents of the frame is completed. Means and one line drawing Through the same processing for the contents of the frame by the stage and the second transfer source / destination address / transfer size setting means, the right part is drawn, and the lower part drawing means draws the right part of the frame Is completed for the lower part of the frame by the first transfer source / transfer destination address / transfer size setting means, the one line drawing means, and the second transfer source / transfer destination address / transfer size setting means. Through the processing, the lower part of the frame may be drawn.
この構成において、色データ格納手段は、DMA転送単位分の四角形の枠の色を示す枠色データを、画像メモリに格納する。次に、第1の転送元/転送先アドレス/転送サイズ設定手段は、DMAの転送元アドレスを、前記枠色データを格納した画像メモリの先頭アドレスに設定し、DMAの転送先アドレスを、実際に描画する矩形のX座標とY座標のアドレスに設定し、更に、DMAの転送サイズを、描画する四角形の横幅に設定する。 In this configuration, the color data storage means stores frame color data indicating the color of the rectangular frame for the DMA transfer unit in the image memory. Next, the first transfer source / transfer destination address / transfer size setting means sets the DMA transfer source address to the start address of the image memory storing the frame color data, and sets the DMA transfer destination address to the actual transfer destination address. Are set to the addresses of the X and Y coordinates of the rectangle to be drawn, and the DMA transfer size is set to the horizontal width of the rectangle to be drawn.
この後、1ライン描画手段は、DMAの転送元アドレスと転送先アドレスをインクリメントすることにより、四角形の枠の1ライン分の描画を行う。枠の1ライン分の描画が完了すると、第2の転送元/転送先アドレス/転送サイズ設定手段は、転送元アドレスのX座標を、枠の上側部分の左端の位置のX座標に設定し、転送元アドレスのY座標を先ほど描画したラインのY座標の値に設定し、また、転送先アドレスのX座標を、四角形の枠の上側部分の左端の位置のX座標に設定し、転送先アドレスのY座標を、前記ラインの次のラインのY座標に設定する。更に、転送元/転送先アドレス/転送サイズ設定手段は、転送サイズを四角形幅×残りの枠高さで示すサイズに設定する。 Thereafter, the one-line drawing means draws one line of a rectangular frame by incrementing the DMA transfer source address and transfer destination address. When the drawing for one line of the frame is completed, the second transfer source / transfer destination address / transfer size setting means sets the X coordinate of the transfer source address to the X coordinate of the left end position of the upper part of the frame, Set the Y coordinate of the transfer source address to the value of the Y coordinate of the line drawn earlier, and set the X coordinate of the transfer destination address to the X coordinate of the left end position of the upper part of the rectangular frame. Is set to the Y coordinate of the next line of the line. Further, the transfer source / transfer destination address / transfer size setting means sets the transfer size to the size indicated by the square width × the remaining frame height.
枠上側部分描画手段は、転送元アドレスのX座標と転送先アドレスのX座標をインクリメントし、また、転送元アドレスのY座標と転送先アドレスのY座標をインクリメントして、(枠の高さ)−(1ラインの高さ)分のサイズの画素データをまとめてディスプレイ装置に転送することにより、四角形の枠の上側部分の描画を行う。 The frame upper side partial drawing means increments the X coordinate of the transfer source address and the X coordinate of the transfer destination address, and also increments the Y coordinate of the transfer source address and the Y coordinate of the transfer destination address (the height of the frame). -The pixel data of the size of (the height of one line) is collectively transferred to the display device, thereby drawing the upper part of the rectangular frame.
枠の上側部分の描画が完了した後、四角形の枠の上側部分よりも以下の部分の描画が行われる。先ず、枠の左側部分を描画する処理は、次のように行われる。枠左側部分描画手段は、第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の左側部分に対する同様な処理を経て、枠の左側部分の描画を行う。以下、第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる同様な処理を経て、枠の中身部分が中身部分描画手段により描画され、次に、枠の右側部分が右側部分描画手段により描画され、更に、枠の下側部分が下側部分描画手段により描画される。 After the drawing of the upper part of the frame is completed, the following part is drawn rather than the upper part of the rectangular frame. First, the process of drawing the left part of the frame is performed as follows. The frame left portion drawing means is similar to the left portion of the frame by the first transfer source / transfer destination address / transfer size setting means, the one-line drawing means, and the second transfer source / transfer destination address / transfer size setting means. After processing, the left part of the frame is drawn. Thereafter, after the same processing by the first transfer source / transfer destination address / transfer size setting means, one line drawing means, and the second transfer source / transfer destination address / transfer size setting means, the contents of the frame are the contents. Drawing is performed by the partial drawing unit, then the right part of the frame is drawn by the right part drawing unit, and the lower part of the frame is drawn by the lower partial drawing unit.
この構成によれば、枠が有る四角形のマスクウィンドウを描画する際に、DMA転送を使用しているので、CPUが、画像メモリに一つ一つ四角形に関する画素データを書き込み、また、画像メモリから画素データを読み出すことにより、ディスプレイ装置に枠が有る四角形のマスクウィンドウを表示させるものに比べ、高速にOSD描画を行うことができる。また、DMA転送の割り込み毎に四角形を形成するラインを描画する場合に、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により、割り込み処理や、次のラインのアドレス値の設定処理などの回数が少なくなるので、四角形の描画速度が高速になり、高速にOSD描画を行うことができると共に、四角形単位でDMA転送できないハードウェアでも、OSDの四角形描画を高速に行うことができる。 According to this configuration, when drawing a rectangular mask window with a frame, DMA transfer is used, so the CPU writes pixel data for each rectangle to the image memory, and from the image memory. By reading out the pixel data, OSD drawing can be performed at a higher speed than that in which a square mask window having a frame is displayed on the display device. In addition, when drawing a line that forms a rectangle for each DMA transfer interrupt, the processing including the increment of the DMA transfer source address and the transfer destination address can be used for interrupt processing, address value setting processing for the next line, etc. Since the number of times is reduced, the drawing speed of the rectangle is increased, so that the OSD drawing can be performed at a high speed, and the OSD rectangle drawing can be performed at high speed even with hardware that cannot perform DMA transfer in units of a rectangle.
以上のように本発明によれば、枠が有る四角形のマスクウィンドウを描画する際に、DMA転送を使用しているので、CPUが、画像メモリに一つ一つ四角形に関する画素データを書き込み、また、画像メモリから画素データを読み出すことにより、ディスプレイ装置に枠が有る四角形のマスクウィンドウを表示させるものに比べ、高速にOSD描画を行うことができる。また、DMA転送の割り込み毎に四角形を形成するラインを描画する場合に、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により、割り込み処理や、次のラインのアドレス値の設定処理などの回数が少なくなるので、四角形の描画速度が高速になり、高速にOSD描画を行うことができると共に、四角形単位でDMA転送できないハードウェアでも、OSDの四角形描画を高速に行うことができる。 As described above, according to the present invention, since DMA transfer is used when drawing a rectangular mask window with a frame, the CPU writes pixel data relating to each rectangle to the image memory, and By reading out the pixel data from the image memory, OSD drawing can be performed at a higher speed than that in which the display device displays a rectangular mask window having a frame. In addition, when drawing a line that forms a rectangle for each DMA transfer interrupt, the processing including the increment of the DMA transfer source address and the transfer destination address can be used for interrupt processing, address value setting processing for the next line, etc. Since the number of times is reduced, the drawing speed of the rectangle is increased, so that the OSD drawing can be performed at a high speed, and the OSD rectangle drawing can be performed at high speed even with hardware that cannot perform DMA transfer in units of a rectangle.
以下、添付図面を参照しつつ、本発明の実施の形態について説明する。図1は本発明の一実施形態に係る画像表示装置の構成を示すブロック図である。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a block diagram showing a configuration of an image display apparatus according to an embodiment of the present invention.
図1に示すように、この画像表示装置は、ディスプレイ装置13の画面上に表示する四角形(マクスウィンドウ領域)の垂直方向の領域を設定制御する垂直表示制御回路1と、ディスプレイ装置13の画面上に表示する四角形の水平方向の領域を設定制御する水平表示制御回路2と、文字コードデータ、文字色データ、四角形の枠データ、四角形の枠の色を示す枠色データなど、文字表示データや図形表示データが格納されるVRAM(画像メモリ)3、前記文字表示データに対応するフォントデータが格納されるCGROM(キャラクタ・ジェネレータROM)4と、入力信号のパラレル/シリアル変換を行うP/S変換回路5と、入力信号に対する枠体付加などの属性制御を行う属性制御回路6と、入力信号に対する着色制御を行う色制御回路7とを備えている。
As shown in FIG. 1, the image display device includes a vertical display control circuit 1 for setting and controlling a vertical region of a quadrangle (Max window region) displayed on the screen of the
また、この画像表示装置は、ディスプレイ装置13にOSD(オン・スクリーン・ディスプレイ)の表示制御を行うOSD制御ユニット8と、操作データを入力するための複数のキーを有する操作部9と、装置全体を制御するCPU10と、CPU10の演算や制御を行うためにデータを一時的に格納するRAM11と、CPU1の動作に必要なプログラムやデータを記憶するフラッシュROM12と、画像を表示するディスプレイ装置13とを備えている。
The image display device also includes an
OSD制御ユニット8には、OSD制御バス14を介して、垂直表示制御回路1、水平表示制御回路2、VRAM3、CGROM4、P/S変換回路5、属性制御回路6、色制御回路7、および操作部9が接続されている。また、OSD制御ユニット8には、CPU10が接続されている。色制御回路7のOSD出力端子は、ディスプレイ装置13のビデオ入力端子に接続されている。
The
OSD制御ユニット8は、DMA(ダイレクト・メモリ・アクセス)転送単位分の四角形の枠色データをVRAM3に格納する色データ格納手段と、DMAの転送元アドレスを前記色データ格納手段により枠色データが格納されたVRAM3の先頭アドレスに設定し、DMAの転送先アドレスをディスプレイ装置13の画面上に実際に描画する四角形のX座標とY座標のアドレスに設定し、更に、DMAの転送サイズを前記描画する四角形の横幅に設定する第1の転送元/転送先アドレス/転送サイズ設定手段と、前記転送元アドレスのX座標と前記転送先アドレスのX座標をインクリメントして四角形の枠の1ライン分の描画を行う1ライン描画手段と、前記枠の1ライン分の描画が完了すると、転送元アドレスのX座標を枠の上側部分の左端の位置のX座標に設定し、DMAの転送元アドレスのY座標を先ほど描画した前記1ライン分のラインのY座標の値に設定し、DMAの転送先アドレスのX座標を枠の上側部分の左端の位置のX座標に設定し、DMAの転送先アドレスのY座標を前記1ライン分のラインの次のラインのY座標に設定し、更に、DMAの転送サイズを四角形の横幅×残りの枠高さで示すサイズに設定する第2の転送元/転送先アドレス/転送サイズ設定手段と、DMAの転送元アドレスのX座標と転送先アドレスのX座標をインクリメントし、DMAの転送元アドレスのY座標と転送先アドレスのY座標をインクリメントすることにより、枠の高さ−1ラインの高さ分のサイズの画素データをまとめてディスプレイ装置13に転送して、枠の上側部分の描画を行う枠上側部分描画手段とを有する。
The
また、OSD制御ユニット8は、枠の上側部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の左側部分に対する同様な処理を経て、枠の左側部分の描画を行う枠左側部分描画手段と、枠の左側部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の中身部分に対する同様な処理を経て、枠の中身部分を描画する中身部分描画手段と、枠の中身部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の右側部分に対する同様な処理を経て、右側部分を描画する枠右側部分描画手段と、枠の右側部分の描画が完了した後、前記第1の転送元/転送先アドレス/転送サイズ設定手段と1ライン描画手段と第2の転送元/転送先アドレス/転送サイズ設定手段とによる枠の下側部分に対する同様な処理を経て、枠の下側部分を描画する枠下側部分描画手段とを有する。
Further, after the drawing of the upper portion of the frame is completed, the
図2は本実施形態において矩形を描画する処理を説明するためのフローチャートである。図3は本実施形態において矩形を描画する処理を説明するための描画画面図である。図1〜図3を参照して矩形を描画する場合の処理について説明する。但し、本実施形態における矩形の描画は、ディスプレイ装置の画面の横方向(水平方向)に他のOSD描画と重ならない場合の枠が有る矩形描画であることが条件になる。また、本実施形態では、枠が有る四角形として矩形(長方形)の描画について説明するが、矩形に限らず、方形(正方形)の描画についても同様な処理により実現することができる。また、ここで言うDMA転送とは、OSD制御ユニット8がVRAM3に対して直接にアクセス(書き込み/読み出し)を行うことを言う。
FIG. 2 is a flowchart for explaining a process of drawing a rectangle in the present embodiment. FIG. 3 is a drawing screen diagram for explaining a process of drawing a rectangle in the present embodiment. Processing when a rectangle is drawn will be described with reference to FIGS. However, it is a condition that the rectangular drawing in the present embodiment is a rectangular drawing having a frame in a case where it does not overlap with other OSD drawing in the horizontal direction (horizontal direction) of the screen of the display device. Further, in the present embodiment, description will be made on drawing a rectangle (rectangle) as a quadrilateral with a frame, but the drawing is not limited to a rectangle, and drawing of a square (square) can be realized by the same processing. The DMA transfer referred to here means that the
先ず、ユーザによる操作部9の操作により矩形Aを描画する指示がCPU10にされると、CPU10は、OSD制御ユニット8を制御し、これに応答してOSD制御ユニット8の色データ格納手段は、DMA転送単位分(例えば16バイト)の矩形Aの枠aの色を示す枠色データを、VRAM3に格納する(ステップS1)。次に、OSD制御ユニット8の第1の転送元/転送先アドレス/転送サイズ設定手段は、DMAの転送元アドレスを、前記枠色データを格納したVRAM3の先頭アドレスに設定し、DMAの転送先アドレスを、ディスプレイ装置13の画面D上に実際に描画する矩形AのX座標とY座標のアドレスに設定し、更に、DMAの転送サイズを、ディスプレイ装置13の画面D上に描画する矩形Aの横幅である矩形幅Wに設定する(ステップS2)。
First, when the
この後、OSD制御ユニット8の1ライン描画手段は、DMAの転送元アドレスと転送先アドレスをインクリメントし(ステップS3)、即ち、転送元アドレスのX座標と転送先アドレスのX座標を複数回インクリメントすることにより、矩形Aの枠aの1ライン分(ラインL1)の描画を行う(ステップS4)。枠aの1ライン分の描画が完了すると、OSD制御ユニット8の枠上側部分描画手段は、枠aの上側部分の1ライン分の描画データを、枠aの高さH分だけDMA転送して矩形Aの枠aの上側部分の描画を行う処理を開始させる(ステップS5)。
Thereafter, the one-line drawing means of the
矩形Aの枠aの上側部分の描画を行う処理が開始すると、このとき、OSD制御ユニット8の第2の転送元/転送先アドレス/転送サイズ設定手段は、転送元アドレスのX座標を、矩形Aの枠aの上側部分の左端の位置のX座標に設定し(枠aの左側部分の左端が画面Dの左端にある場合は0に設定し)、転送元アドレスのY座標を先ほど描画したラインL1のY座標の値に設定し、また、転送先アドレスのX座標を、矩形Aの枠aの上側部分の左端の位置のX座標に設定し(枠aの左側部分の左端が画面Dの左端にある場合は0に設定し)、転送先アドレスのY座標を、ラインL1の次のラインのY座標に設定する(ステップS6)。更に、OSD制御ユニット8の第2の転送元/転送先アドレス/転送サイズ設定手段は、転送サイズを(矩形幅W×残りの枠高さ)で示すサイズに設定する。なお、転送サイズは、矩形幅Wがディスプレイ装置13の画面Dの幅一杯のときは、例えば、NTSC方式の場合であれば720(画素数)×残りの枠aの高さで示すサイズに設定する。
When the process of drawing the upper part of the frame a of the rectangle A starts, at this time, the second transfer source / transfer destination address / transfer size setting means of the
ステップS6の処理の後、OSD制御ユニット8の枠上側部分描画手段は、DMAの転送元アドレスと転送先アドレスをインクリメントし、即ち、転送元アドレスのX座標と転送先アドレスのX座標を複数回インクリメントし、また、転送先アドレスのY座標をインクリメントして(ステップS7)、(枠aの高さ)−(1ラインの高さ)分のサイズの画素データをまとめてディスプレイ装置13に転送することにより、矩形Aの枠aの上側部分の描画を行う(ステップS8)。
After the process of step S6, the upper frame portion drawing means of the
矩形Aの枠aの上側部分の描画が完了した後、矩形Aの枠aの上側部分よりも以下の部分の描画を行うときは、即ち、枠aの左側部分(枠aの上側部分の左端側部分a1および枠aの下側部分の左端側部分a3を除く部分)と、枠aの中身部分Mと、枠aの右側部分(枠aの上側部分の右端側部分a2および枠aの下側部分の右端側部分a4を除く部分)との描画を行うときは、次のような処理が行われる。 After drawing the upper part of the frame A of the rectangle A, when drawing the following part from the upper part of the frame a of the rectangle A, that is, the left part of the frame a (the left end of the upper part of the frame a) A portion excluding the left end portion a3 of the side portion a1 and the lower portion of the frame a), a content portion M of the frame a, and a right portion of the frame a (under the right end portion a2 of the upper portion of the frame a and the frame a When drawing with the side portion except the right end side portion a4), the following processing is performed.
先ず、枠aの左側部分を描画する処理は次のように行われる。即ち、OSD制御ユニット8の1ライン描画手段は、枠aの左側部分の先頭アドレスを転送元アドレスとして設定し、画面Dに実際に描画する左側部分のX座標とY座標のアドレスを転送先アドレスとして設定し、更に、転送サイズを描画する枠aの幅Hに設定し、枠aの左側部分の1ライン分を描画する。そして、左側部分の1ライン分の描画が完了すると、OSD制御ユニット8の枠左側部分描画手段は、左側部分の1ライン分の描画を、左側部分の高さH1分だけDMA転送して、枠aの左側部分の描画を行う(ステップS9)。
First, the process of drawing the left part of the frame a is performed as follows. That is, the one-line drawing unit of the
なお、枠aの左側部分の描画は、左側部分の幅Hは小さいので、DMA転送を利用せずに、CPU10による処理により、枠aの左側部分の画素データを通常通りにVRAM3に格納し、また、VRAM3から枠aの左側部分の画素データを読み出すことにより、矩形Aの枠aの左側部分の描画を行うようにしても良い。
In the drawing of the left part of the frame a, since the width H of the left part is small, the pixel data of the left part of the frame a is stored in the
次に、矩形Aの中身部分Mを描画する処理は次のように行われる。即ち、OSD制御ユニット8の色データ格納手段は、DMA転送単位分の中身色データをVRAM3に格納する。OSD制御ユニット8の1ライン描画手段は、中身部分Mの先頭アドレスを転送元アドレスとして設定し、画面Dに実際に描画する中身部分MのX座標とY座標のアドレスを転送先アドレスとして設定し、更に、転送サイズを描画する中身部分Mの幅W1に設定し、中身部分Mの1ライン分を描画する。そして、中身部分Mの1ライン分の描画が完了すると、OSD制御ユニット8の中身部分描画手段は、中身部分Mの1ライン分の描画を、中身部分Mの高さH1分だけDMA転送して、中身部分Mの描画を行う(ステップS10)。
Next, the process of drawing the content portion M of the rectangle A is performed as follows. That is, the color data storage means of the
次に、枠aの右側部分を描画する処理は、次のように行われる。即ち、OSD制御ユニット8の転送元/転送先アドレス/転送サイズ設定手段は、DMAの転送元アドレスを、枠色データを格納したVRAM3の先頭アドレスに設定し、DMAの転送先アドレスを、ディスプレイ装置13の画面D上に実際に描画する矩形Aの枠aの右側部分のX座標とY座標のアドレスに設定し、更に、DMAの転送サイズを、ディスプレイ装置13の画面D上に描画する枠aの右側部分の幅Hに設定する。
Next, the process of drawing the right part of the frame a is performed as follows. That is, the transfer source / transfer destination address / transfer size setting means of the
この後、OSD制御ユニット8の1ライン描画手段は、DMAの転送元アドレスと転送先アドレスをインクリメントし、即ち、転送元アドレスのX座標と転送先アドレスのX座標を複数回インクリメントすることにより、矩形Aの枠aの右側部分の1ライン分の描画を行う。枠aの右側部分の1ライン分の描画が完了すると、OSD制御ユニット8の枠右側部分描画手段は、枠aの右側部分の1ライン分の描画を、枠aの右側部分の高さH1分だけDMA転送して、矩形Aの枠aの右側部分の描画を行う(ステップS11)。
Thereafter, the one-line drawing means of the
なお、枠aの右側部分の描画は、右側部分の幅Hは小さいので、DMA転送を利用せずに、CPU10による処理により、枠aの右側部分の画素データを通常通りにVRAM3に格納し、また、VRAM3から枠aの右側部分の画素データを読み出すことにより、矩形Aの枠aの右側部分の描画を行うようにしても良い。
In the drawing of the right part of the frame a, since the width H of the right part is small, the pixel data of the right part of the frame a is stored in the
このような処理により、矩形Aの枠aの左側部分と、中身部分Mと、枠aの右側部分の描画が完了すると、OSD制御ユニット8は矩形Aの枠aの下側部分を描画する処理を行う。即ち、OSD制御ユニット8の転送元/転送先アドレス/転送サイズ設定手段は、DMAの転送元アドレスを、枠色データを格納したVRAM3の先頭アドレスに設定し、DMAの転送先アドレスを、ディスプレイ装置13の画面D上に実際に描画する矩形Aの枠aの下側部分のX座標とY座標のアドレスに設定し、更に、DMAの転送サイズを、ディスプレイ装置13の画面D上に描画する矩形Aの枠aの矩形幅Wに設定する。
When the drawing of the left part of the frame A of the rectangle A, the contents part M, and the right part of the frame a is completed by such processing, the
この後、OSD制御ユニット8の1ライン描画手段は、転送元アドレスのX座標と転送先アドレスのX座標を複数回インクリメントすることにより、矩形Aの枠aの下側部分の1ライン分の描画を行う。枠aの下側部分の1ライン分の描画が完了すると、OSD制御ユニット8の枠下側部分描画手段は、枠aの下側部分の1ライン分の描画を、枠aの高さH分だけDMA転送して、矩形Aの枠aの下側部分の描画を行う(ステップS12)。これにより、矩形Aの枠aの下側部分の描画が完了する。
Thereafter, the one-line drawing means of the
以上説明したように本実施形態によれば、枠aが有る矩形Aのマスクウィンドウを描画する際に、DMA転送を使用しているので、CPU10が、VRAM3に一つ一つ矩形に関する画素データを書き込み、また、VRAM3から画素データを読み出すことにより、ディスプレイ装置13に枠aが有る矩形Aのマスクウィンドウを表示させるものに比べ、高速にOSD描画を行うことができる。また、DMA転送の割り込み毎に矩形Aを形成するラインを描画する場合に、DMAの転送元アドレスと転送先アドレスのインクリメントを含む処理により、割り込み処理や、次のラインのアドレス値の設定処理などの回数が少なくなるので、矩形Aの描画速度が高速になり、高速にOSD描画を行うことができると共に、矩形単位でDMA転送できないCPU10(ハードウェア)を備えていても、OSDの矩形描画を高速に行うことができる。
As described above, according to the present embodiment, when the mask window of the rectangle A having the frame a is drawn, the DMA transfer is used, so that the
本発明は、ディスプレイ装置に画像を表示させる画像表示装置に利用可能であり、枠が有る四角形のマスクウィンドウを描画する際に、DMA転送を使用し、高速にOSD描画を行うようにすると共に、四角形単位でDMA転送できないハードウェアでも、OSDの四角形描画を高速に行うことができるようにする。 The present invention is applicable to an image display device that displays an image on a display device. When a rectangular mask window having a frame is drawn, DMA transfer is used to perform OSD drawing at high speed. Even hardware that cannot perform DMA transfer in units of squares can perform OSD square drawing at high speed.
3 VRAM(画像メモリ)
8 OSD制御ユニット(色データ格納手段、第1の転送元/転送元アドレス/転送サイズ設定手段、1ライン描画手段、第2の転送元/転送元アドレス/転送サイズ設定手段、枠上側部分描画手段、枠左側部分描画手段、中身部分描画手段、枠右側部分描画手段、枠下側部分描画手段)
13 ディスプレイ装置
3 VRAM (image memory)
8 OSD control unit (color data storage means, first transfer source / transfer source address / transfer size setting means, one line drawing means, second transfer source / transfer source address / transfer size setting means, frame upper side partial drawing means Frame left side drawing means, contents part drawing means, frame right side drawing means, frame lower side drawing means)
13 Display device
Claims (3)
前記第1〜第5四角形をそれぞれ前記画面上に描画するための第1〜第5データを前記ディスプレイ装置にDMA(ダイレクト・メモリ・アクセス)転送し、前記画面上に前記第1〜第5四角形を描画する表示制御ユニットを有し、
前記表示制御ユニットは、前記第1〜第5データの各転送元アドレス及び各転送先アドレスをインクリメントすることにより、前記第1〜第5データをDMA転送することを特徴とする画像表示装置。 An image having a function of drawing on a screen of a display device a quadrilateral mask window composed of a frame composed of first to fourth rectangles and a fifth rectangle whose outer periphery coincides with the inner periphery of the frame. In the display device,
The first to fifth data for drawing the first to fifth squares on the screen are DMA-transferred to the display device, and the first to fifth squares are transferred to the screen. A display control unit for drawing
The image display device, wherein the display control unit DMA-transfers the first to fifth data by incrementing each transfer source address and each transfer destination address of the first to fifth data.
前記表示制御ユニットは、前記第1〜第5画素データの各転送元アドレスのX座標と各転送先アドレスのX座標及びY座標とをインクリメントすることにより、前記第1〜第5画素データをDMA転送することを特徴とする請求項1に記載の画像表示装置。 The first to fifth data are first to first lines for drawing one line having the same length as the width in the X coordinate direction of the first to fifth squares in the X coordinate direction on the screen, respectively. Comprising 5 pixel data,
The display control unit DMAs the first to fifth pixel data by incrementing the X coordinate of each transfer source address of the first to fifth pixel data and the X coordinate and Y coordinate of each transfer destination address. The image display device according to claim 1, wherein the image display device transfers the image.
前記表示制御ユニットは、
前記第1〜第5画素データの各転送元アドレスをそれぞれ前記画像メモリの先頭アドレスに設定し、各転送先アドレスのX座標をそれぞれ前記画面上の前記第1〜第5四角形の最小のX座標に設定するとともに、各転送先アドレスのY座標をそれぞれ前記画面上の前記第1〜第5四角形の最小のY座標に設定し、前記第1〜第5画素データのDMA転送の各サイズをそれぞれ前記第1〜第5四角形のX座標方向の幅に設定する第1の転送元/転送先アドレス/転送サイズ設定手段と、
前記第1の転送元/転送先アドレス/転送サイズ設定手段により設定された前記第1〜第5画素データの各転送元アドレスのX座標及び各転送先アドレスのX座標をインクリメントすることにより、前記第1〜第5画素データにそれぞれ対応する線を前記画面上に描画する線描画手段と、
前記第1〜第5画素データの各転送元アドレスのX座標をそれぞれ前記線描画手段が前記画面上に描画した各線の最小のX座標に設定するとともに、各転送元アドレスのY座標をそれぞれ前記線描画手段が前記画面上に描画した各線のY座標に設定し、各転送先アドレスのX座標をそれぞれ前記画面上の前記第1〜第5四角形の最小のX座標に設定するとともに、各転送先アドレスのY座標をそれぞれ前記第1の転送元/転送先アドレス/転送サイズ設定手段が設定した転送先アドレスのY座標をインクリメントしたY座標に設定し、前記第1〜第5画素データのDMA転送のサイズをそれぞれ前記第1〜第5四角形のX座標方向の幅と前記第1〜第5四角形のY座標方向の高さ及び前記線描画手段が前記画面上に描画した各線のY座標方向の高さの差との積に設定する第2の転送元/転送先アドレス/転送サイズ設定手段と、
前記第1〜第5画素データの各転送元アドレスのX座標と各転送先アドレスのX座標及びY座標とをそれぞれインクリメントすることにより、前記第2の転送元/転送先アドレス/転送サイズ設定手段が設定した各転送サイズ分の前記第1〜第5画素データを前記ディスプレイ装置にDMA転送し、第1〜第5四角形をそれぞれ前記画面に描画する前記第1〜第5部分描画手段と、
をさらに有することを特徴とする請求項2に記載の画像表示装置。 An image memory for storing the first to fifth data;
The display control unit includes:
Each transfer source address of the first to fifth pixel data is set as the start address of the image memory, and the X coordinate of each transfer destination address is the minimum X coordinate of the first to fifth squares on the screen, respectively. And the Y coordinate of each transfer destination address is set to the minimum Y coordinate of the first to fifth squares on the screen, and each size of the DMA transfer of the first to fifth pixel data is set respectively. First transfer source / transfer destination address / transfer size setting means for setting the width in the X coordinate direction of the first to fifth squares;
By incrementing the X coordinate of each transfer source address and the X coordinate of each transfer destination address of the first to fifth pixel data set by the first transfer source / transfer destination address / transfer size setting means, Line drawing means for drawing lines respectively corresponding to the first to fifth pixel data on the screen;
The X coordinate of each transfer source address of the first to fifth pixel data is set to the minimum X coordinate of each line drawn on the screen by the line drawing unit, and the Y coordinate of each transfer source address is set to the above The line drawing means sets the Y coordinate of each line drawn on the screen, sets the X coordinate of each transfer destination address to the minimum X coordinate of the first to fifth squares on the screen, and transfers each transfer The Y coordinate of the destination address is set to the Y coordinate obtained by incrementing the Y coordinate of the transfer destination address set by the first transfer source / transfer destination address / transfer size setting means, and the DMA of the first to fifth pixel data. The size of the transfer, the width in the X coordinate direction of the first to fifth squares, the height in the Y coordinate direction of the first to fifth squares, and the Y coordinate direction of each line drawn on the screen by the line drawing means A second transfer source / destination address / transfer size setting means for setting the product of the difference in height,
Second transfer source / transfer destination address / transfer size setting means by incrementing the X coordinate of each transfer source address of the first to fifth pixel data and the X coordinate and Y coordinate of each transfer destination address, respectively. The first to fifth partial drawing means for DMA-transferring the first to fifth pixel data for each transfer size set to the display device and drawing the first to fifth squares on the screen, respectively.
The image display device according to claim 2, further comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007014816A JP5228326B2 (en) | 2007-01-25 | 2007-01-25 | Image display device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007014816A JP5228326B2 (en) | 2007-01-25 | 2007-01-25 | Image display device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008180940A JP2008180940A (en) | 2008-08-07 |
JP5228326B2 true JP5228326B2 (en) | 2013-07-03 |
Family
ID=39724883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007014816A Expired - Fee Related JP5228326B2 (en) | 2007-01-25 | 2007-01-25 | Image display device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5228326B2 (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3451722B2 (en) * | 1994-05-13 | 2003-09-29 | セイコーエプソン株式会社 | Video data transfer device |
JPH07320037A (en) * | 1994-05-20 | 1995-12-08 | Seiko Epson Corp | Video data transfer device |
JP2004078075A (en) * | 2002-08-22 | 2004-03-11 | Fuji Photo Film Co Ltd | On-screen display device |
-
2007
- 2007-01-25 JP JP2007014816A patent/JP5228326B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008180940A (en) | 2008-08-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2005092742A (en) | Video output controller and video card | |
KR100770622B1 (en) | Display controller enabling superposed display | |
JP2014239304A (en) | Image processing device and image processing method | |
JP5228326B2 (en) | Image display device | |
JP3707950B2 (en) | Frame buffer transfer method for computer graphics | |
JP2002258827A (en) | Image display device | |
JP3729187B2 (en) | Image display device | |
JP2007298796A (en) | Osd data processing system, projector and osd data processing method | |
JP3812361B2 (en) | Image display device | |
JPH07311568A (en) | Method and device for outputting image | |
JPH0720833A (en) | Graphics computer | |
JP3379723B2 (en) | Display screen superimposition control device | |
JP2005128689A (en) | Image drawing device | |
JPH0588838A (en) | Multi window display device | |
JP3846142B2 (en) | Image data transfer apparatus and image display processing system | |
JP3533197B2 (en) | Image processing device | |
JP4887885B2 (en) | Image processing device | |
JP4048731B2 (en) | Image data transfer apparatus and image display processing system | |
JP5575261B2 (en) | Drawing apparatus, drawing method and program | |
JP2537223B2 (en) | Graphic processing device | |
JPH05158450A (en) | Display control device for scanning type display | |
JPH08110770A (en) | Film memory control method and device | |
JPH06180565A (en) | Computer game device | |
JPH04354069A (en) | Picture processor | |
JPS6364085A (en) | Display controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090820 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120403 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120523 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121009 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121203 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130219 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130304 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160329 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |