JP2006209552A - Transfer device, image transfer system, control method of transfer device, control program of transfer device and recording medium with control program of transfer device recorded thereon - Google Patents

Transfer device, image transfer system, control method of transfer device, control program of transfer device and recording medium with control program of transfer device recorded thereon Download PDF

Info

Publication number
JP2006209552A
JP2006209552A JP2005022182A JP2005022182A JP2006209552A JP 2006209552 A JP2006209552 A JP 2006209552A JP 2005022182 A JP2005022182 A JP 2005022182A JP 2005022182 A JP2005022182 A JP 2005022182A JP 2006209552 A JP2006209552 A JP 2006209552A
Authority
JP
Japan
Prior art keywords
transfer
rectangular image
information
storage
image information
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
JP2005022182A
Other languages
Japanese (ja)
Inventor
Akira Suzuki
亮 鈴木
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 JP2005022182A priority Critical patent/JP2006209552A/en
Publication of JP2006209552A publication Critical patent/JP2006209552A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To realize a transfer device capable of efficiently transferring image data of an optional rectangular image in a simpler device configuration and with a small amount of operations. <P>SOLUTION: A transfer controller of this invention is provided with a parameter determining part 23 for calculating a start parameter 50 showing a storage pattern of image data in a VRAM (video random access memory) 6 on the basis of start point coordinates 31 and end point coordinates 32 in a display area which regulate the shape of a rectangular image to be drawn and a row size 34 of a VRAM 1 showing the range of a memory area corresponding to the arrangement of horizontal pixels in the entire display area, a memory transfer starting part 22 for instructing image data transfer, and a DMA (direct memory access) transferring part 21 for transferring the image data to a display device on the basis of the start parameter 50 in response to an instruction of the memory transfer starting part 22. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、矩形画像領域を表示させるための矩形画像情報を保持する記憶装置から、該矩形画像情報を表示装置に転送する転送装置、画像転送システム、転送装置の制御方法、転送装置の制御プログラム、および転送装置の制御プログラムが記録された記録媒体に関するものである。   The present invention relates to a transfer device, an image transfer system, a transfer device control method, and a transfer device control program that transfer rectangular image information from a storage device that holds rectangular image information for displaying a rectangular image region to the display device. And a recording medium on which a control program for the transfer device is recorded.

従来から、外部から与えられた映像または画像データを、映像メモリ(VRAM;video random access memory)に転送する方法として、DMA(direct memory access)転送が広く使われている。   Conventionally, DMA (direct memory access) transfer has been widely used as a method of transferring video or image data given from the outside to video random access memory (VRAM).

上記したDMA転送による映像または画像データの転送を実現するシステムとして、例えば図6に示すようなDMAコントローラ(以下、DMAC)155を用いたコンピュータシステム100がある。図6はDMAC155を用いたコンピュータシステム100の概略構成を示すブロック図である。   As a system for realizing the transfer of video or image data by the DMA transfer described above, there is a computer system 100 using a DMA controller (hereinafter referred to as DMAC) 155 as shown in FIG. FIG. 6 is a block diagram showing a schematic configuration of a computer system 100 using the DMAC 155.

図6に示すように、このDMAC155を用いたコンピュータシステム100は、3つのVRAM151R,151G,151Bを備えている。そして、これらのVRAM151R,151G,151Bそれぞれには、赤色(R)、緑色(G)、青色(B)に色相分解された色データDr,Dg,Dbそれぞれが記憶されている。   As shown in FIG. 6, the computer system 100 using the DMAC 155 includes three VRAMs 151R, 151G, and 151B. Each of these VRAMs 151R, 151G, and 151B stores color data Dr, Dg, and Db that are hue-separated into red (R), green (G), and blue (B).

そして、このコンピュータシステム100では、DMAC155が、アドレスバス153、データバス152、および制御バス154の使用権をCPU159から取得し、3つの映像メモリ151R,151G,151Bから表示用のVRAMそれぞれに、色データDr,Dg,Dbを転送する。このようにして転送された色データDr,Dg,Dbは、VRAM156R,156G,156Bを通じて、モニタ制御部157に送信され、モニタ158に映像が表示される。   In this computer system 100, the DMAC 155 acquires the right to use the address bus 153, the data bus 152, and the control bus 154 from the CPU 159, and assigns the color from each of the three video memories 151R, 151G, and 151B to the display VRAM. Data Dr, Dg, Db is transferred. The color data Dr, Dg, and Db transferred in this way are transmitted to the monitor control unit 157 through the VRAMs 156R, 156G, and 156B, and an image is displayed on the monitor 158.

なお、上記DMAC155によって各映像データの転送を実行する際、CPU159が、R成分用VRAM(VRAM151R)、G成分用VRAM(VRAM151G)、B成分用VRAM(VRAM151B)それぞれにおける各表示開始アドレスを、DMAC155に順次送信する。そして、DMAC155は、受信した開始アドレスごとに色データDr,Dg,Dbそれぞれを順次、表示用のVRAMに転送する。   When the image data is transferred by the DMAC 155, the CPU 159 assigns the display start addresses in the R component VRAM (VRAM 151R), the G component VRAM (VRAM 151G), and the B component VRAM (VRAM 151B) to the DMAC 155. Sequentially. Then, the DMAC 155 sequentially transfers the color data Dr, Dg, Db for each received start address to the display VRAM.

すなわち、上記したコンピュータシステム100では、CPU159が各色データごとの表示開始アドレスを計算している。そして、このCPU159がDMAC155にそれぞれの表示開始アドレスを設定する必要がある。   That is, in the computer system 100 described above, the CPU 159 calculates a display start address for each color data. The CPU 159 needs to set the respective display start addresses in the DMAC 155.

このため、例えばVRAM151R,151G,または151Bに記憶された画像データを転送する場合、転送元のVARMに記憶されている該画像データのアドレスが連続したものとならないときは、1つの開始アドレスにより画像データを一括転送することができない。すなわち、CPU159は、表示開始アドレスを設定する複数回の命令を、DMAコントローラ155に転送する必要がある。   For this reason, for example, when transferring image data stored in the VRAM 151R, 151G, or 151B, if the address of the image data stored in the transfer source VARM is not continuous, the image is generated by one start address. Data cannot be transferred at once. That is, the CPU 159 needs to transfer a plurality of instructions for setting the display start address to the DMA controller 155.

したがって、このようにCPU159が、画像データが記憶されている領域ごとのアドレスをDMAC155に指示して転送を行う必要がある場合、データ転送の処理が煩雑となるという問題が生じる。   Therefore, when the CPU 159 needs to instruct the DMAC 155 for an address for each area in which image data is stored and perform the transfer, there is a problem that the data transfer process becomes complicated.

そこで、データ転送の処理効率を高めるために、特許文献1では、データの転送先のアドレスをDMAC内で算出し、高速にDMA転送できる動画像データ転送装置が開示されている。   Therefore, in order to increase the processing efficiency of data transfer, Patent Document 1 discloses a moving image data transfer apparatus that calculates a data transfer destination address in the DMAC and can perform DMA transfer at high speed.

すなわち、この動画像データ転送装置は、加算アドレス値と垂直方向のカウント値とを乗算する乗算器、オフセットアドレスと上記乗算器の乗算結果とを加算する第1の加算器、この第1の加算器の加算結果と、水平カウンタ部のカウント値とを加算する第2の加算器、および第2の加算器の加算結果とRGB各成分の領域開始アドレスとを加算することによって、DMA転送時のアクセスアドレスを算出する第3の加算器を備えたDMAコントローラを有している。   That is, the moving image data transfer apparatus includes a multiplier that multiplies the addition address value and the count value in the vertical direction, a first adder that adds the offset address and the multiplication result of the multiplier, and the first addition. A second adder that adds the addition result of the adder and the count value of the horizontal counter unit, and the addition result of the second adder and the area start address of each RGB component, A DMA controller having a third adder for calculating an access address;

また、特許文献2では、DMA転送制御装置と画像メモリとの間に、アドレス入力値と変換アドレス出力値との関係が画像メモリ上での画像データ格納部分以外の余領域をスキップするように設定したアドレス変換テーブルを有する静止画処理装置が開示されている。   Further, in Patent Document 2, the relationship between the address input value and the converted address output value is set between the DMA transfer control device and the image memory so as to skip the extra area other than the image data storage portion on the image memory. A still image processing apparatus having an address conversion table is disclosed.

また、特許文献3では、DMA転送を行う開始アドレス値と、データ転送幅を示す転送カウント値が設定される複数組のDMA設定レジスタセットを複数組備え、これらレジスタセットの内容を所定の順序で順次参照し、複数回のDMA転送を実行させるDMAデータ転送装置が開示されている。   Further, Patent Document 3 includes a plurality of sets of DMA setting register sets in which a start address value for performing DMA transfer and a transfer count value indicating a data transfer width are set, and the contents of these register sets are arranged in a predetermined order. A DMA data transfer apparatus that sequentially references and executes a plurality of DMA transfers is disclosed.

このDMAデータ転送装置では、データの転送が終了すると、このレジスタセットを参照して、次のデータ転送を開始することができる。
特開平6−332843号公報(1994年12月2日公開) 特開平5−158866号公報(1993年6月25日公開) 特開平10−154125号公報(1998年6月9日公開)
In this DMA data transfer device, when data transfer is completed, the next data transfer can be started with reference to this register set.
Japanese Patent Laid-Open No. 6-332843 (published December 2, 1994) JP-A-5-158866 (released on June 25, 1993) Japanese Patent Laid-Open No. 10-154125 (released on June 9, 1998)

しかしながら、上記特許文献1の構成では、表示領域における動画領域に対応した映像データのアドレスを算出する処理が煩雑となるという問題が生じる。すなわち、特許文献1に示す構成では、RGB各色の8ビット分の2値データがDMA転送されるたびに、各走査線の左端点から測った位置を示す水平カウンタ数を増加させ、映像データのアドレスを算出するように構成されている。したがって、特許文献1の構成では、上記動画領域を形成する画素数の増加に伴い、アドレスを算出する演算量も増加することとなる。   However, the configuration of Patent Document 1 has a problem that the process of calculating the address of the video data corresponding to the moving image area in the display area becomes complicated. That is, in the configuration shown in Patent Document 1, every time 8-bit binary data of each RGB color is DMA-transferred, the number of horizontal counters indicating the positions measured from the left end point of each scanning line is increased, and the video data It is configured to calculate an address. Therefore, in the configuration of Patent Document 1, the amount of calculation for calculating an address increases as the number of pixels forming the moving image area increases.

また、上記特許文献2に示す構成では、描画領域が固定された画像データの転送にしか利用できないという問題が生じる。すなわち、特許文献2に示す静止画処理装置では、アドレス変換部が、開始アドレスから連続したアドレスとなるように入力アドレスを変換させることができるのは、所定形状の画像データのみに対してである。したがって、特許文献2に示す構成では、アドレス変換部が記録している所定形状となる描画の表示にしか利用することができない。   Further, the configuration shown in Patent Document 2 has a problem that it can be used only for transferring image data in which a drawing area is fixed. That is, in the still image processing apparatus disclosed in Patent Document 2, the address conversion unit can convert the input address so that the address is continuous from the start address only for image data of a predetermined shape. . Therefore, in the configuration shown in Patent Document 2, it can be used only for displaying a drawing having a predetermined shape recorded by the address conversion unit.

また、特許文献3に示す構成では、メモリ上において、転送するデータが連続したアドレスとなる領域の数に応じて、この領域の先頭アドレスとこの領域の転送幅を格納するレジスタを準備しなければならない。すなわち、予め、データの転送を行う前に上記連続したアドレスとなる領域の数分だけレジスタを用意する必要がある。このため、アドレスが連続する領域の数の増加を見越して予め多くのレジスタを用意しておく必要があり装置構成が複雑となるという問題が生じる。   Further, in the configuration shown in Patent Document 3, a register for storing the start address of this area and the transfer width of this area must be prepared in accordance with the number of areas in the memory where the data to be transferred is a continuous address. Don't be. That is, it is necessary to prepare registers in advance for the number of areas that are the continuous addresses before data transfer. For this reason, it is necessary to prepare a large number of registers in advance in anticipation of an increase in the number of areas where addresses are continuous, resulting in a problem that the device configuration becomes complicated.

本発明は、上記の問題点に鑑みてなされたものであり、その目的は、より簡単な装置構成でかつ少ない演算量によって、任意の矩形画像領域の画像データを効率的に転送することができる転送装置、画像転送システム、転送装置の制御方法、転送装置の制御プログラム、および転送装置の制御プログラムが記録された記録媒体を実現することにある。   The present invention has been made in view of the above-described problems, and an object of the present invention is to efficiently transfer image data of an arbitrary rectangular image area with a simpler apparatus configuration and a small amount of calculation. A transfer apparatus, an image transfer system, a transfer apparatus control method, a transfer apparatus control program, and a recording medium on which the transfer apparatus control program is recorded.

本発明に係る転送装置は、上記課題を解決するために、矩形画像領域を表示させるための矩形画像情報を保持する記憶装置から、該矩形画像情報を表示装置に転送する転送装置であって、上記表示装置の表示領域における横方向をx座標、縦方向をy座標としたとき、上記x座標とy座標とによって特定される上記表示領域内の画素と、該画素において表示する矩形画像情報を格納する、上記記憶装置の記憶領域におけるアドレスとが対応づけられ、横方向に隣接する画素同士に対応する上記アドレスは、読み出される順に連続しており、上記矩形画像領域の対角線の端点である始点座標および終点座標と、表示領域全体における横方向の画素数に対応する表示範囲情報とに基づき、上記記憶装置における矩形画像情報の格納パターンを示す格納パターン情報を算出する算出手段と、上記算出手段によって算出された上記格納パターン情報に基づき、矩形画像情報の転送を行うように、上記転送手段に指示する指示手段と、上記指示手段からの指示に応じて、上記格納パターン情報に基づき、該矩形画像情報を表示装置に転送する転送手段とを備えることを特徴とする。   In order to solve the above problems, a transfer device according to the present invention is a transfer device that transfers rectangular image information from a storage device that holds rectangular image information for displaying a rectangular image region to a display device, When the horizontal direction in the display area of the display device is the x coordinate and the vertical direction is the y coordinate, the pixel in the display area specified by the x coordinate and the y coordinate, and the rectangular image information displayed in the pixel The addresses in the storage area of the storage device to be stored are associated with each other, and the addresses corresponding to pixels adjacent in the horizontal direction are consecutive in the order of reading, and are the starting points that are the end points of the diagonal lines of the rectangular image area Based on the coordinates and end point coordinates and the display range information corresponding to the number of pixels in the horizontal direction in the entire display area, the storage pattern of the rectangular image information in the storage device is shown. A calculation means for calculating payment pattern information; an instruction means for instructing the transfer means to transfer rectangular image information based on the storage pattern information calculated by the calculation means; and an instruction from the instruction means And a transfer means for transferring the rectangular image information to a display device based on the storage pattern information.

ところで、上記矩形画像領域は、表示領域の各辺と平行する矩形形状とであり、この矩形画像領域の描画範囲は、表示領域において横方向にあるy座標から他のy座標までの間の画素の並びが、縦方向に複数組み合わされたものである。このため、上記矩形画像領域は、始点座標と終点座標とによって形状を規定することができる。   By the way, the rectangular image area has a rectangular shape parallel to each side of the display area, and a drawing range of the rectangular image area is a pixel between a horizontal y coordinate and another y coordinate in the display area. Are arranged in combination in the vertical direction. For this reason, the rectangular image region can be defined by the start point coordinates and the end point coordinates.

また、表示領域の各画素と、該画素において表示される矩形画像情報を格納するアドレスとが対応付けられており、また上記横方向に隣接する画素同士の記憶領域が、読み出し順に連続するアドレスとなっている。   Also, each pixel in the display area is associated with an address for storing rectangular image information displayed in the pixel, and the storage area between the pixels adjacent in the horizontal direction is an address that is continuous in the readout order. It has become.

したがって、記憶装置では、矩形画像領域の横方向の画素数に応じた矩形画像情報を連続したアドレスの記憶領域に格納している。そして、この連続したアドレスとなる記憶領域が一定間隔で配される特定の格納パターンを示すこととなる。   Therefore, in the storage device, rectangular image information corresponding to the number of pixels in the horizontal direction of the rectangular image area is stored in a storage area of continuous addresses. Then, a specific storage pattern in which the storage areas serving as consecutive addresses are arranged at regular intervals is shown.

上記構成によると、算出手段は、上記始点座標および終点座標と、上記開始アドレスと、表示範囲情報とに基づき、記憶装置における上記矩形画像情報の格納パターンを示す格納パターン情報を算出することができる。   According to the above configuration, the calculation means can calculate storage pattern information indicating a storage pattern of the rectangular image information in the storage device based on the start point coordinates and end point coordinates, the start address, and display range information. .

すなわち、上記算出手段は、始点座標によって、矩形画像情報の読み出しを開始する記憶領域のアドレスを知ることができる。また、算出手段は、始点座標と終点座標とのx座標の値から、矩形画像領域の横方向の画素数に対応する情報を取得することができる。   That is, the calculation means can know the address of the storage area where the reading of the rectangular image information is started from the start point coordinates. Further, the calculation means can acquire information corresponding to the number of pixels in the horizontal direction of the rectangular image area from the value of the x coordinate of the start point coordinate and the end point coordinate.

また、算出手段は、始点座標と終点座標とのy座標の値から、矩形画像領域における縦の並びの画素数を求めることできる。   Further, the calculation means can determine the number of pixels in the vertical arrangement in the rectangular image area from the y-coordinate values of the start point coordinate and the end point coordinate.

また、算出手段は、上記にて算出した矩形画像領域の横方向の画素数に対応する情報と、上記表示範囲情報とに基づき、矩形画像領域の横方向の画素の並びから、次の横方向の画素の並びまでの間の画素数に対応する情報を求めることができる。   Further, the calculating means calculates the next horizontal direction from the horizontal pixel arrangement of the rectangular image area based on the information corresponding to the horizontal pixel number of the rectangular image area calculated above and the display range information. It is possible to obtain information corresponding to the number of pixels until the pixel arrangement.

このようにして、上記算出手段は、上記始点座標および終点座標によって規定された矩形画像領域の矩形画像情報の、記憶装置における格納パターンを求めることができる。   In this way, the calculation means can determine the storage pattern in the storage device of the rectangular image information of the rectangular image area defined by the start point coordinates and the end point coordinates.

そして、上記格納パターンを算出するために上記算出手段が行う演算は、簡単な四則演算であり、また演算に用いる値の情報量は小さいため、少ない演算量で上記格納パターン情報を算出することができる。   The calculation performed by the calculation means to calculate the storage pattern is a simple four arithmetic operation, and the amount of information used for the calculation is small, so the storage pattern information can be calculated with a small calculation amount. it can.

また、本発明に係る転送装置は、指示手段からの指示に応じて、転送手段が上記格納パターン情報に基づき、矩形画像情報を記憶装置から表示装置に転送することができる構成である。このため、本発明に係る転送装置は、上記アドレスが連続する記憶領域ごとに、この領域の先頭アドレスを取得する必要がない。特に、上記転送手段が、例えばDMACによって実現される場合、画像データの転送中において、矩形画像情報を格納するアドレスをCPUなどに問合せる必要がないため、高速に矩形画像領域の矩形画像情報を転送することができる。   The transfer device according to the present invention is configured such that the transfer means can transfer the rectangular image information from the storage device to the display device based on the storage pattern information in response to an instruction from the instruction means. For this reason, the transfer apparatus according to the present invention does not need to acquire the head address of this area for each storage area where the addresses are continuous. In particular, when the transfer means is realized by, for example, DMAC, it is not necessary to inquire the CPU for the address for storing the rectangular image information during the transfer of the image data, so the rectangular image information in the rectangular image area is transferred at high speed. can do.

さらにまた、上記算出手段によって算出された記憶装置における矩形画像情報の格納パターンは、始点座標および終点座標によって規定された矩形画像領域の矩形画像情報に対応するものである。すなわち、上記始点座標および終点座標をユーザが任意に指定してやることにより、上記転送装置は、任意の大きさの矩形画像領域に応じた矩形画像情報の転送を実行することができる。   Furthermore, the storage pattern of the rectangular image information in the storage device calculated by the calculation means corresponds to the rectangular image information of the rectangular image area defined by the start point coordinates and the end point coordinates. That is, when the user arbitrarily designates the start point coordinate and the end point coordinate, the transfer device can execute transfer of rectangular image information corresponding to a rectangular image region having an arbitrary size.

また、本発明に係る転送装置は、矩形画像情報の転送の前に、上記した格納パターン情報を算出し、この算出した情報を例えばレジスタなどに格納しておけばよい。したがって、上記転送装置は、上記した特許文献3のように、連続したアドレスとなる記憶領域の数分だけレジスタを用意する必要がないため、装置構成が複雑となるといった問題も解決できる。   In addition, the transfer apparatus according to the present invention may calculate the storage pattern information described above before transferring the rectangular image information, and store the calculated information in, for example, a register. Therefore, unlike the above-described Patent Document 3, the transfer device does not need to prepare registers for the number of storage areas that are consecutive addresses, and thus can solve the problem of complicated device configuration.

よって、本発明に係る転送装置は、少ない演算量によって、任意の矩形画像領域の画像データを効率的に転送することができるという効果を奏する。   Therefore, the transfer device according to the present invention has an effect that image data in an arbitrary rectangular image area can be efficiently transferred with a small amount of calculation.

また、本発明に係る転送装置は、上記した構成において、上記格納パターン情報は、上記矩形画像情報を格納した記憶領域において最初に読み出されるアドレスと、描画された上記矩形画像領域における横方向の画素数に対応する描画範囲情報と、上記矩形画像領域に含まれる上記縦方向の画素数を示す画素列数情報と、上記矩形画像領域における横方向の画素の並びである画素列から、次の画素列までの間の画素数に対応する間隔範囲情報とを含んでいることが好ましい。   In the transfer device according to the present invention, in the configuration described above, the storage pattern information includes an address read first in the storage area storing the rectangular image information, and a horizontal pixel in the drawn rectangular image area. From the drawing range information corresponding to the number, the pixel column number information indicating the number of pixels in the vertical direction included in the rectangular image region, and the pixel column that is an array of pixels in the horizontal direction in the rectangular image region, the next pixel It is preferable to include interval range information corresponding to the number of pixels between the columns.

すなわち、上記構成によると、上記格納パターン情報を、矩形画像情報を格納した記憶領域範囲において最初に読み出されるアドレスと、描画範囲情報と、画素列数情報と、間隔範囲情報とによって明確に規定することができる。   That is, according to the above configuration, the storage pattern information is clearly defined by the address read first in the storage area range storing the rectangular image information, the drawing range information, the pixel column number information, and the interval range information. be able to.

このように、本発明に係る転送装置は、矩形画像情報の転送時に、転送する画像データの格納位置を示す格納パターンを明確に得ることができる。このため、転送装置は、この格納パターンを参照して効率よく画像データの転送を行うことができる。   As described above, the transfer device according to the present invention can clearly obtain a storage pattern indicating a storage position of image data to be transferred when rectangular image information is transferred. Therefore, the transfer device can efficiently transfer image data with reference to this storage pattern.

また、本発明に係る転送装置は、上記した構成において、上記表示装置は、表示する矩形画像情報を一時記憶するバッファを備えており、上記転送手段は、上記記憶装置に格納された矩形画像情報を上記バッファに転送するように構成されていてもよい。   In the transfer device according to the present invention, in the configuration described above, the display device includes a buffer for temporarily storing rectangular image information to be displayed, and the transfer means stores the rectangular image information stored in the storage device. May be transferred to the buffer.

つまり、本発明に係る転送装置は、表示装置が備えるバッファに、記憶装置に格納されている矩形画像情報を転送する構成である。このため、表示装置側における、転送された矩形画像情報のあふれなどを考慮することなくスムーズに矩形画像情報の転送を行うことができる。   That is, the transfer device according to the present invention is configured to transfer the rectangular image information stored in the storage device to the buffer provided in the display device. Therefore, the rectangular image information can be smoothly transferred without considering the overflow of the transferred rectangular image information on the display device side.

また、本発明に係る転送装置は、上記した構成において、上記転送手段は、矩形画像情報を、転送装置の各種処理を制御するCPUからバスの使用権を得て該CPUを介すことなく上記表示装置に転送するように構成されていることが好ましい。   Further, in the transfer device according to the present invention, in the configuration described above, the transfer means acquires the rectangular image information from the CPU that controls various processes of the transfer device without acquiring the bus use right via the CPU. It is preferably configured to transfer to a display device.

本発明に係る転送装置は、上記転送手段がCPUを介すことなく表示装置に矩形画像情報を転送する構成である場合、CPUに負荷を与えることなく高速に矩形画像情報の転送を実現することができる。   The transfer device according to the present invention realizes high-speed transfer of rectangular image information without imposing a load on the CPU when the transfer means is configured to transfer rectangular image information to the display device without going through the CPU. Can do.

本発明に係る転送装置の制御方法は、上記した課題を解決するために、矩形画像領域を表示させるための矩形画像情報を保持する記憶装置から、該矩形画像情報を表示装置に転送する転送装置の制御方法であって、上記表示装置の表示領域における横方向をx座標、縦方向をy座標としたとき、上記x座標とy座標とによって特定される上記表示領域内の画素と、該画素において表示する矩形画像情報を格納する、上記記憶装置の記憶領域におけるアドレスとが対応づけられ、横方向に隣接する画素同士に対応する上記アドレスは、読み出される順に連続しており、上記矩形画像領域の対角線の端点である始点座標および終点座標と、表示領域全体における横方向の画素数に対応する表示範囲情報とに基づき、上記記憶装置における矩形画像情報の格納パターンを示す格納パターン情報を算出するステップと、算出された上記格納パターン情報に基づき、矩形画像情報の転送を行うように指示するステップと、上記矩形画像情報の転送の指示に応じて、上記格納パターン情報に基づき、矩形画像情報を表示装置に転送するステップとを含むことを特徴とする。   In order to solve the above-described problem, a transfer device control method according to the present invention transfers a rectangular image information from a storage device that holds the rectangular image information for displaying a rectangular image region to the display device. And a pixel in the display area specified by the x coordinate and the y coordinate when the horizontal direction in the display area of the display device is the x coordinate and the vertical direction is the y coordinate, and the pixel The addresses in the storage area of the storage device that store the rectangular image information to be displayed are associated with each other, and the addresses corresponding to pixels adjacent in the horizontal direction are consecutive in the order of reading, and the rectangular image area A rectangular image in the storage device based on the start point coordinates and end point coordinates which are the end points of the diagonal line and the display range information corresponding to the number of pixels in the horizontal direction in the entire display area In accordance with a step of calculating storage pattern information indicating a storage pattern of information, a step of instructing to transfer rectangular image information based on the calculated storage pattern information, and an instruction of transferring the rectangular image information And transferring the rectangular image information to the display device based on the storage pattern information.

上記方法によると、上記始点座標および終点座標と、表示領域全体における横方向の画素数に対応する表示範囲情報とに基づき、記憶装置における上記矩形画像情報の格納パターンを示す格納パターン情報を算出することができる。   According to the above method, the storage pattern information indicating the storage pattern of the rectangular image information in the storage device is calculated based on the start point coordinates and the end point coordinates and the display range information corresponding to the number of pixels in the horizontal direction in the entire display area. be able to.

すなわち、本発明に係る転送装置の制御方法は、上記始点座標および終点座標によって規定された矩形画像領域を描画するための矩形画像情報の、記憶装置における格納パターンを求めることができる。また、上記格納パターンを算出するために上記方法にて行う演算は、簡単な四則演算であり、また演算に用いる値の情報量は小さいため、少ない演算量で格納パターン情報を算出することができる。   That is, the transfer device control method according to the present invention can determine the storage pattern in the storage device of the rectangular image information for drawing the rectangular image area defined by the start point coordinates and the end point coordinates. In addition, the calculation performed by the above method for calculating the storage pattern is a simple four arithmetic operation, and since the amount of information used for the calculation is small, the storage pattern information can be calculated with a small calculation amount. .

さらにまた、算出された記憶装置における矩形画像情報の格納パターンは、始点座標および終点座標によって規定された矩形画像領域の矩形画像情報に対応するものである。すなわち、上記始点座標および終点座標をユーザが任意に指定してやることにより、上記転送装置の制御方法では、任意な大きなの矩形画像領域に応じた矩形画像情報の転送を実行することができる。   Further, the calculated storage pattern of the rectangular image information in the storage device corresponds to the rectangular image information of the rectangular image area defined by the start point coordinates and the end point coordinates. That is, when the user arbitrarily designates the start point coordinates and the end point coordinates, the transfer device control method can execute transfer of rectangular image information corresponding to an arbitrarily large rectangular image region.

また、本発明に係る転送装置の制御方法では、上記にて求めた格納パターン情報に基づき、矩形画像情報を記憶装置から表示装置に転送することができる。このため、本発明に係る転送装置の制御方法では、矩形画像データの転送中に、アドレスが連続する記憶領域ごとの先頭アドレスを取得する必要がない。   In the transfer device control method according to the present invention, the rectangular image information can be transferred from the storage device to the display device based on the storage pattern information obtained above. For this reason, in the control method of the transfer apparatus according to the present invention, it is not necessary to acquire the head address for each storage area where addresses are continuous during transfer of rectangular image data.

よって、本発明に係る転送装置の制御は、少ない演算量によって、任意の矩形画像領域の画像データを効率的に転送することができるという効果を奏する。   Therefore, the control of the transfer apparatus according to the present invention has an effect that image data of an arbitrary rectangular image area can be efficiently transferred with a small amount of calculation.

本発明に係る画像転送システムは、上記した転送装置と、矩形画像領域を表示させるための矩形画像情報を保持する記憶装置と、該矩形画像情報を表示する表示装置とを備えることを特徴とする。   An image transfer system according to the present invention includes the transfer device described above, a storage device that holds rectangular image information for displaying a rectangular image region, and a display device that displays the rectangular image information. .

したがって、画像装置に格納された矩形画像情報を表示装置に効率よく転送し、表示装置において該矩形画像情報に基づく矩形画像領域を表示させることができる。   Therefore, the rectangular image information stored in the image device can be efficiently transferred to the display device, and the rectangular image area based on the rectangular image information can be displayed on the display device.

なお、上記転送装置は、コンピュータによって,実現してもよく、この場合には、コンピュータを上記各手段として動作させることにより上記転送装置をコンピュータにて実現させる転送装置の制御プログラムを記録したコンピュータ読取り可能な記録媒体も本発明の範疇に入る。   The transfer device may be realized by a computer. In this case, the computer reads the control program for the transfer device that causes the transfer device to be realized by the computer by operating the computer as each of the means. Possible recording media also fall within the scope of the present invention.

本発明に係る転送装置は、以上のように、矩形画像領域を表示させるための矩形画像情報を保持する記憶装置から、該矩形画像情報を表示装置に転送する転送装置であって、上記表示装置の表示領域における横方向をx座標、縦方向をy座標としたとき、上記x座標とy座標とによって特定される上記表示領域内の画素と、該画素において表示する矩形画像情報を格納する、上記記憶装置の記憶領域におけるアドレスとが対応づけられ、横方向に隣接する画素同士に対応する上記アドレスは、読み出される順に連続しており、上記矩形画像領域の対角線の端点である始点座標および終点座標と、表示領域全体における横方向の画素数に対応する表示範囲情報とに基づき、上記記憶装置における矩形画像情報の格納パターンを示す格納パターン情報を算出する算出手段と、上記算出手段によって算出された上記格納パターン情報に基づき、矩形画像情報の転送を行うように、上記転送手段に指示する指示手段と、上記指示手段からの指示に応じて、上記格納パターン情報に基づき、該矩形画像情報を表示装置に転送する転送手段とを備えることを特徴とする。   As described above, the transfer device according to the present invention is a transfer device that transfers rectangular image information to a display device from a storage device that holds rectangular image information for displaying a rectangular image region. When the horizontal direction in the display area is x-coordinate and the vertical direction is y-coordinate, the pixels in the display area specified by the x-coordinate and y-coordinate and rectangular image information to be displayed in the pixels are stored. Addresses in the storage area of the storage device are associated with each other, and the addresses corresponding to pixels adjacent in the horizontal direction are consecutive in the order of reading, and start point coordinates and end points that are diagonal end points of the rectangular image area A storage pattern indicating a storage pattern of rectangular image information in the storage device based on coordinates and display range information corresponding to the number of horizontal pixels in the entire display area A calculation means for calculating information, an instruction means for instructing the transfer means to transfer rectangular image information based on the storage pattern information calculated by the calculation means, and an instruction from the instruction means And transfer means for transferring the rectangular image information to a display device based on the storage pattern information.

よって、本発明に係る転送装置は、少ない演算量によって、任意の矩形画像領域の画像データを効率的に転送することができるという効果を奏する。   Therefore, the transfer device according to the present invention has an effect that image data in an arbitrary rectangular image area can be efficiently transferred with a small amount of calculation.

また、本発明に係る転送装置の制御方法は、以上のように、上記した課題を解決するために、矩形画像領域を表示させるための矩形画像情報を保持する記憶装置から、該矩形画像情報を表示装置に転送する転送装置の制御方法であって、上記表示装置の表示領域における横方向をx座標、縦方向をy座標としたとき、上記x座標とy座標とによって特定される上記表示領域内の画素と、該画素において表示する矩形画像情報を格納する、上記記憶装置の記憶領域におけるアドレスとが対応づけられ、横方向に隣接する画素同士に対応する上記アドレスは、読み出される順に連続しており、上記矩形画像領域の対角線の端点である始点座標および終点座標と、表示領域全体における横方向の画素数に対応する表示範囲情報とに基づき、上記記憶装置における矩形画像情報の格納パターンを示す格納パターン情報を算出するステップと、算出された上記格納パターン情報に基づき、矩形画像情報の転送を行うように指示するステップと、上記矩形画像情報の転送の指示に応じて、上記格納パターン情報に基づき、矩形画像情報を表示装置に転送するステップとを含むことを特徴とする。   In addition, as described above, the control method of the transfer device according to the present invention obtains the rectangular image information from the storage device that holds the rectangular image information for displaying the rectangular image region in order to solve the above-described problem. A method for controlling a transfer device for transfer to a display device, wherein the display region is specified by the x coordinate and the y coordinate when the horizontal direction in the display region of the display device is an x coordinate and the vertical direction is a y coordinate. Are associated with addresses in the storage area of the storage device for storing rectangular image information to be displayed in the pixels, and the addresses corresponding to pixels adjacent in the horizontal direction are consecutive in the order of reading. Based on the start point coordinates and end point coordinates which are the end points of the diagonal line of the rectangular image area, and the display range information corresponding to the number of pixels in the horizontal direction in the entire display area. A step of calculating storage pattern information indicating a storage pattern of rectangular image information at a position, a step of instructing transfer of rectangular image information based on the calculated storage pattern information, and a step of transferring the rectangular image information A step of transferring rectangular image information to a display device based on the stored pattern information in response to an instruction.

よって、本発明に係る転送装置の制御は、少ない演算量によって、任意の矩形画像領域の画像データを効率的に転送することができるという効果を奏する。   Therefore, the control of the transfer apparatus according to the present invention has an effect that image data of an arbitrary rectangular image area can be efficiently transferred with a small amount of calculation.

本発明の一実施形態について図1ないし図5に基づいて説明すると以下の通りである。すなわち、本実施の形態に係るLCD(Liquid Crystal Display)表示システム1(画像転送システム)は、VRAM6(記憶装置)に記憶された画像データ(画像情報)に基づき、表示装置13において矩形画像領域(矩形画像70)を表示させるものである。   An embodiment of the present invention will be described below with reference to FIGS. That is, the LCD (Liquid Crystal Display) display system 1 (image transfer system) according to the present embodiment is based on the image data (image information) stored in the VRAM 6 (storage device), and the rectangular image area ( A rectangular image 70) is displayed.

このLCD表示システム1は、図2に示すように、表示装置13、転送制御装置(転送装置)5、およびVRAM6を備えている。なお、図2は、本実施の形態に係るLCD表示システム1の概略的な構成の一例を示す図である。   As shown in FIG. 2, the LCD display system 1 includes a display device 13, a transfer control device (transfer device) 5, and a VRAM 6. FIG. 2 is a diagram showing an example of a schematic configuration of the LCD display system 1 according to the present embodiment.

上記表示装置13は、VRAM6において保持されている画像データを、転送制御装置5を介して受信すると、この画像データに基づき表示を行うものである。この表示装置13は、LCD表示部2、表示制御部3、およびLCD表示用バッファ(バッファ)4を備えている。   When the display device 13 receives the image data held in the VRAM 6 via the transfer control device 5, the display device 13 performs display based on the image data. The display device 13 includes an LCD display unit 2, a display control unit 3, and an LCD display buffer (buffer) 4.

上記VRAM6は、いわゆるビデオメモリ(デュアルポートDRAM)であり、入力画像のデータを画素ごとに記憶している。   The VRAM 6 is a so-called video memory (dual port DRAM) and stores input image data for each pixel.

転送制御装置5は、ユーザからの指示に応じてVRAM6に格納されている画像データを読出し、表示装置13が備えるLCD表示用バッファ4にDMA転送するものである。なお、この転送制御装置5の詳細な説明は後述する。   The transfer control device 5 reads image data stored in the VRAM 6 in accordance with an instruction from the user, and DMA-transfers it to the LCD display buffer 4 provided in the display device 13. A detailed description of the transfer control device 5 will be described later.

LCD表示用バッファ4は、VRAM6から転送された画像データを一時的に保存し、LCD表示部2による画像データの表示タイミングを調整するものである。また、このLCD表示用バッファ4は、転送制御装置5により転送されてきた画像データがあふれないように調整するものでもある。   The LCD display buffer 4 temporarily stores the image data transferred from the VRAM 6 and adjusts the display timing of the image data on the LCD display unit 2. The LCD display buffer 4 also adjusts so that the image data transferred by the transfer control device 5 does not overflow.

表示制御部3は、LCD表示用バッファ4に一時記憶された画像データをLCD表示部2に表示させるように表示処理を行うものである。この表示制御部3によるLCD表示部2に対する表示処理は、該LCD表示部2の画面の更新周期に応じて行われる。   The display control unit 3 performs display processing so that the image data temporarily stored in the LCD display buffer 4 is displayed on the LCD display unit 2. The display processing on the LCD display unit 2 by the display control unit 3 is performed according to the screen update cycle of the LCD display unit 2.

LCD表示部2は、画像データに基づく矩形画像領域(矩形画像70)を画面上に表示可能とする表示装置である。つまり、このLCD表示部2は、液晶を利用した表示装置であり、2枚のガラス板の間に特殊な液体を封入し、電圧をかけることによって液晶分子の向きを変え、光の透過率を増減させることで像を表示する構造になっている。   The LCD display unit 2 is a display device that can display a rectangular image region (rectangular image 70) based on image data on a screen. In other words, the LCD display unit 2 is a display device using liquid crystal. A special liquid is sealed between two glass plates, and a voltage is applied to change the direction of liquid crystal molecules, thereby increasing or decreasing the light transmittance. Thus, the image is displayed.

以上のように、本実施の形態に係るLCD表示システム1では、VRAM6に記憶された画像データを、ユーザからの指示に応じて、転送制御装置5が読み出し、LCD表示バッファ4にDMA転送する。そして、LCD表示バッファ4において一時記憶された画像データは、表示制御部3からの指示に応じて、LCD表示部2に渡され、LCD表示部2によって表示される。   As described above, in the LCD display system 1 according to the present embodiment, the transfer control device 5 reads the image data stored in the VRAM 6 and DMA-transfers it to the LCD display buffer 4 in accordance with an instruction from the user. Then, the image data temporarily stored in the LCD display buffer 4 is transferred to the LCD display unit 2 and displayed by the LCD display unit 2 in accordance with an instruction from the display control unit 3.

次に図3を参照して、本実施の形態に係るLCD表示システム1の要部構成について説明する。なお、この図3は、本実施の形態に係るLCD表示システム1の要部構成を示す図である。そして、この図において、図2で説明した同じ部材には同じ符号を付し、その説明は省略する。   Next, with reference to FIG. 3, the structure of the main part of the LCD display system 1 according to the present embodiment will be described. Note that FIG. 3 is a diagram showing a main configuration of the LCD display system 1 according to the present embodiment. And in this figure, the same code | symbol is attached | subjected to the same member demonstrated in FIG. 2, and the description is abbreviate | omitted.

本実施の形態に係るLCD表示システム1は、図3に示すように、調停部7、DMAC9、CPU10、ROM11、およびSDRAM12を備え、それぞれがシステムバス8に接続されている。   As shown in FIG. 3, the LCD display system 1 according to the present embodiment includes an arbitration unit 7, a DMAC 9, a CPU 10, a ROM 11, and an SDRAM 12, and each is connected to a system bus 8.

上記DMAC9は、CPU10からの転送指示に応じて、VRAM6に記憶された画像データを、LCD表示用バッファ4にDMA転送するものである。また、上記調停部7は、DMAC9からのシステムバス8の使用要求を受けて、CPU10に対してシステムバス8の使用許可を求めるものである。   The DMAC 9 DMA-transfers the image data stored in the VRAM 6 to the LCD display buffer 4 in response to a transfer instruction from the CPU 10. The arbitration unit 7 receives a request for using the system bus 8 from the DMAC 9 and requests the CPU 10 for permission to use the system bus 8.

すなわち、DMAC9は、CPU10からの指示に応じて、調停部7に対して、システムバス8の使用権をCPU10に要求するように指示する。そして、DMAC9は、CPU10からシステムバス8の使用権を認められた場合、画像データを、システムバス8を介してVRAM6からから読み出し、システムバス8を介してLCD表示用バッファ4に転送する。   That is, the DMAC 9 instructs the arbitration unit 7 to request the CPU 10 to use the system bus 8 in accordance with an instruction from the CPU 10. When the right to use the system bus 8 is approved by the CPU 10, the DMAC 9 reads the image data from the VRAM 6 through the system bus 8 and transfers it to the LCD display buffer 4 through the system bus 8.

CPU10は、システムバス8を使用して、転送制御装置5の各部材の各種制御を行うものである。すなわち、ROM11にはプログラムが記憶されており、CPU10は、このプログラムをSDRAM12に読み出し、読み出されたこのプログラムを実行することによって上記各種制御を実現する。   The CPU 10 uses the system bus 8 to perform various controls of each member of the transfer control device 5. That is, the ROM 11 stores a program, and the CPU 10 reads the program to the SDRAM 12 and executes the read program to realize the various controls.

(転送制御装置の概略構成)
ここで、図1を参照して、本実施の形態に係る転送制御装置5の概略構成について説明する。なお、図1は、本実施の形態に係るLCD表示システム1が備える転送制御装置5の要部構成の一例を示すブロック図である。
(Schematic configuration of transfer control device)
Here, a schematic configuration of the transfer control device 5 according to the present embodiment will be described with reference to FIG. FIG. 1 is a block diagram showing an example of a main configuration of the transfer control device 5 provided in the LCD display system 1 according to the present embodiment.

すなわち、上記転送制御装置5は、図1に示すように、DMA転送部(転送手段)21、メモリ転送開始部(指示手段)22、パラメータ決定部(算出手段)23、設定情報記憶部24、開始パラメータ記憶部25、および転送情報記憶部26を備えている。   That is, as shown in FIG. 1, the transfer control device 5 includes a DMA transfer unit (transfer unit) 21, a memory transfer start unit (instruction unit) 22, a parameter determination unit (calculation unit) 23, a setting information storage unit 24, A start parameter storage unit 25 and a transfer information storage unit 26 are provided.

上記DMA転送部21は、メモリ転送開始部22からの指示に応じて、VRAM6に格納された画像データをLCD表示用バッファ4に転送するものである。この機能ブロックは、DMAC9が例えば、ROM11などの記憶媒体からプログラムを読み出し実行することにより実現される。すなわち、本実施の形態に係るDMAC9は、通常のDMACと比較して、機能ブロックとして実現されるDMA転送部21を有する点で異なる。   The DMA transfer unit 21 transfers the image data stored in the VRAM 6 to the LCD display buffer 4 in response to an instruction from the memory transfer start unit 22. This functional block is realized by the DMAC 9 reading and executing a program from a storage medium such as the ROM 11. That is, the DMAC 9 according to the present embodiment is different from the normal DMAC in that it includes a DMA transfer unit 21 that is realized as a functional block.

このDMA転送部21は、開始パラメータ記憶部25に格納された開始パラメータ(格納パターン情報)50に基づき、転送情報記憶部26に格納される各種情報を求め、VRAM6のメモリ領域80に記憶されている画像データをLCD表示用バッファ4に転送するものである。   The DMA transfer unit 21 obtains various information stored in the transfer information storage unit 26 based on the start parameter (storage pattern information) 50 stored in the start parameter storage unit 25 and is stored in the memory area 80 of the VRAM 6. The received image data is transferred to the LCD display buffer 4.

パラメータ決定部23は、ユーザからの画像データの転送指示に応じて、設定情報として設定情報記憶部24に記憶されている各種情報を取得して、開始パラメータ50を算出するものである。そして、パラメータ決定部23は、算出した開始パラメータ50を、開始パラメータ記憶部25に記憶する。   The parameter determination unit 23 obtains various types of information stored in the setting information storage unit 24 as setting information in response to an image data transfer instruction from the user, and calculates a start parameter 50. The parameter determination unit 23 stores the calculated start parameter 50 in the start parameter storage unit 25.

なお、上記開始パラメータ50は、転送開始アドレス41、画像1行サイズ42、オフセット量43、およびループ回数44を含んでいる。この開始パラメータ50に含まれる各種情報の算出方法は後述する。また、このパラメータ決定部23は、開始パラメータを算出するとともに、画像データの転送指示を、メモリ転送開始部22に通知する。   The start parameter 50 includes a transfer start address 41, an image line size 42, an offset amount 43, and a loop count 44. A method for calculating various information included in the start parameter 50 will be described later. The parameter determination unit 23 calculates a start parameter and notifies the memory transfer start unit 22 of an image data transfer instruction.

メモリ転送開始部22は、ユーザからの画像データの転送指示を、パラメータ決定部23を介して受信すると、DMA転送部21に対してVRAM6に記憶されている画像データをLCD表示用バッファ4に転送するように指示するものである。   When the memory transfer start unit 22 receives a transfer instruction of image data from the user via the parameter determination unit 23, the memory transfer start unit 22 transfers the image data stored in the VRAM 6 to the LCD display buffer 4 to the DMA transfer unit 21. It is instructed to do.

なお、これらメモリ転送開始部22およびパラメータ決定部23として示される機能ブロックは、上記CPU10がROM11などの記憶媒体からプログラムを読み出し実行することにより実現されるものである。   Note that the functional blocks shown as the memory transfer start unit 22 and the parameter determination unit 23 are realized by the CPU 10 reading and executing a program from a storage medium such as the ROM 11.

上記設定情報記憶部24は、読み書き可能な不揮発性の記録媒体であって、例えば、SDRAM12などのメモリによって実現される。また、開始パラメータ記憶部25および転送情報記憶部26は、DMAC9が備える内部レジスタによって実現される。   The setting information storage unit 24 is a readable and writable nonvolatile recording medium, and is realized by a memory such as the SDRAM 12, for example. The start parameter storage unit 25 and the transfer information storage unit 26 are realized by internal registers provided in the DMAC 9.

上記設定情報記憶部24は、LCD表示部2において表示される画像の始点座標31(xs、ys)および終点座標32(xe,ye)と、VRAM6のメモリ領域80におけるメモリ開始アドレス33と、VRAM1行サイズとを含んでいる。   The setting information storage unit 24 includes a start point coordinate 31 (xs, ys) and an end point coordinate 32 (xe, ye) of the image displayed on the LCD display unit 2, a memory start address 33 in the memory area 80 of the VRAM 6, and the VRAM1. Includes line size.

また、上記始点座標31および終点座標32は、描画される矩形画像70の形状を規定する座標である。そして、本実施例では、この始点座標31は、VRAM6において、転送制御装置5が、画像データの読み出しを開始するメモリ領域に対応する画素を特定する座標となる。また、上記終了座標32は、転送制御装置5が最後に読み出すメモリ領域に対応する画素を特定する座標となる。   The start point coordinates 31 and the end point coordinates 32 are coordinates that define the shape of the rectangular image 70 to be drawn. In the present embodiment, the start point coordinates 31 are coordinates for specifying a pixel corresponding to a memory area in the VRAM 6 from which the transfer control device 5 starts reading image data. Further, the end coordinates 32 are coordinates for specifying a pixel corresponding to the memory area that is finally read by the transfer control device 5.

これら始点座標31および終点座標32は、ユーザが矩形画像70の描画を所望する描画位置を、マウス、キーボード、またはテンキーなどの入力手段(不図示)によって指定することにより入力される。そして、このユーザによって指定された座標それぞれは、始点座標31、終点座標32として設定情報記憶部24に記憶される。   The start point coordinates 31 and the end point coordinates 32 are input by designating a drawing position where the user desires to draw the rectangular image 70 by an input means (not shown) such as a mouse, a keyboard, or a numeric keypad. The coordinates designated by the user are stored in the setting information storage unit 24 as a start point coordinate 31 and an end point coordinate 32, respectively.

より具体的には、本実施例ではこの始点座標31は、図4に示すように、LCD表示部2の表示領域において描画する矩形画像70の左上の頂点座標となる。また、上記終点座標32は、上記矩形画像70の右下の頂点座標となる。すなわち、LCD表示部2の表示領域の左上頂点を原点とすると、上記矩形画像70において、この原点(0,0)から最も近い距離にある点(xs,ys)が始点座標31である。そして、この原点から最も遠い距離にある点(xe,ye)が終点座標32である。   More specifically, in the present embodiment, the starting point coordinates 31 are the upper left vertex coordinates of the rectangular image 70 drawn in the display area of the LCD display unit 2 as shown in FIG. The end point coordinate 32 is the lower right vertex coordinate of the rectangular image 70. That is, assuming that the upper left vertex of the display area of the LCD display unit 2 is the origin, the point (xs, ys) closest to the origin (0, 0) in the rectangular image 70 is the start point coordinate 31. The point (xe, ye) at the farthest distance from the origin is the end point coordinate 32.

なお、この図4は、LCD表示部2の表示領域と、VRAM6のメモリ領域80との対応関係を示す図である。本実施例では、図4において示すように、表示領域の1画素に対して、VRAM6のメモリ領域80の1アドレスが対応しているものとする。   FIG. 4 is a diagram showing a correspondence relationship between the display area of the LCD display unit 2 and the memory area 80 of the VRAM 6. In this embodiment, as shown in FIG. 4, it is assumed that one address in the memory area 80 of the VRAM 6 corresponds to one pixel in the display area.

また、表示領域における原点(0,0)を含む画素に対応するメモリ領域のアドレスは、メモリ領域80における先頭アドレスとなり、この原点を含む画素から水平方向(x軸方向)に向かって、画素に対応するメモリ領域のアドレスが順に増加するように割り当てられている。なお、各画素の左上点位置のxおよびy座標によって、各画素が特定されるものとする。   In addition, the address of the memory area corresponding to the pixel including the origin (0, 0) in the display area is the start address in the memory area 80, and the pixel from the pixel including the origin to the horizontal direction (x-axis direction) The addresses of the corresponding memory areas are assigned so as to increase in order. Note that each pixel is specified by the x and y coordinates of the upper left point position of each pixel.

上記メモリ開始アドレス33は、LCD表示部2の表示領域全体の各画素に対応するVRAM6のメモリ領域80における先頭アドレスである。すなわち、メモリ開始アドレス33は、図4において、LCD表示部2の表示領域におけるx軸とy軸との交点である原点(0,0)座標によって特定される画素において表示する画像データを格納するためのメモリ領域80を指定するアドレスである。なお、本実施の形態に係るDMA転送部21は、メモリ開始アドレス33が割り当てられたメモリ領域から順次データを読取るように構成されている。従って、特に指定が無い場合は、DMA転送部21は、メモリ開始アドレス33からデータの読取りを順に行うこととなる。   The memory start address 33 is a head address in the memory area 80 of the VRAM 6 corresponding to each pixel in the entire display area of the LCD display unit 2. That is, the memory start address 33 stores image data to be displayed at a pixel specified by an origin (0, 0) coordinate that is an intersection of the x axis and the y axis in the display area of the LCD display unit 2 in FIG. This is an address that designates a memory area 80 for the purpose. The DMA transfer unit 21 according to the present embodiment is configured to sequentially read data from the memory area to which the memory start address 33 is assigned. Therefore, unless otherwise specified, the DMA transfer unit 21 sequentially reads data from the memory start address 33.

なお、このメモリ開始アドレス33は、後述する、転送開始アドレス41を算出するために用いられる情報であるが、例えば、このメモリ開始アドレス33が常に0番地として指定されるアドレスである場合などでは特にこの情報は必要とならない。   The memory start address 33 is information used to calculate a transfer start address 41, which will be described later. Particularly, for example, when the memory start address 33 is an address that is always designated as address 0. This information is not required.

上記VRAM1行サイズ(表示範囲情報)34は、上記表示領域の、水平方向(横軸;x軸方向)に配列される画素の並び(画素配列)により表示される画像データに対して割り当てられる、VRAM6のメモリ領域のビット(バイト)数である。すなわち、図4においてAで示した範囲の表示領域に対応するVRAM6のメモリ領域の記憶容量を示す。   The VRAM 1 row size (display range information) 34 is assigned to image data displayed by the arrangement (pixel arrangement) of pixels arranged in the horizontal direction (horizontal axis; x-axis direction) of the display area. This is the number of bits (bytes) in the memory area of the VRAM 6. That is, the storage capacity of the memory area of the VRAM 6 corresponding to the display area in the range indicated by A in FIG.

つまり、図4では、LCD表示部2の表示領域の各画素を升目で示しており、これらの升目は、VRAM6のメモリ領域に割り当てられた1アドレスと対応している。そして、図4におけるx軸とy軸の交点位置(図4において左上角の升目)に配置される画素に対応する、メモリ領域のアドレスをメモリ開始アドレス33とする。そして、このメモリ開始アドレス33に対応する升目から、x軸方向に向かって配される各画素の順にアドレスが割り当てられている。なお、メモリ開始アドレス33は、図4において「xxxxh」として表している。   That is, in FIG. 4, each pixel in the display area of the LCD display unit 2 is indicated by a square, and these squares correspond to one address assigned to the memory area of the VRAM 6. Then, the memory area address corresponding to the pixel located at the intersection of the x-axis and the y-axis in FIG. Addresses are assigned in the order of the pixels arranged in the x-axis direction from the cell corresponding to the memory start address 33. Note that the memory start address 33 is represented as “xxxxh” in FIG.

また、x軸方向における各画素1行分(A領域)に対応した各メモリ領域では、アドレスは連続するようになっている。また、改行した次の升目の並びにおける先頭画素と、前行の最後尾の升目として示される画素とは、連続したアドレスが割り当てられている。   In each memory area corresponding to one row of pixels (A area) in the x-axis direction, addresses are continuous. Further, consecutive addresses are assigned to the first pixel in the next cell line after the line feed and the pixel indicated as the last cell in the previous line.

また、DMA転送部21によってデータの読取りが行われる順番は、メモリ領域のアドレスの順に従うようになっている。   The order in which data is read by the DMA transfer unit 21 follows the order of addresses in the memory area.

上記開始パラメータ記憶部25は、パラメータ決定部23が、設定情報記憶部24に記憶されている各情報に基づき演算した結果求められる情報である開始パラメータ50を含むものである。この開始パラメータ記憶部25は、開始パラメータ50として、転送開始アドレス41、画像1行サイズ42、オフセット量43、ループ回数44を含んでいる。   The start parameter storage unit 25 includes a start parameter 50 that is information obtained as a result of calculation by the parameter determination unit 23 based on each information stored in the setting information storage unit 24. The start parameter storage unit 25 includes, as start parameters 50, a transfer start address 41, an image line size 42, an offset amount 43, and a loop count 44.

上記転送開始アドレス41は、DMA転送部21によって実際に読出しが開始されるメモリ領域に割り当てられたアドレスである。   The transfer start address 41 is an address assigned to a memory area where the DMA transfer unit 21 actually starts reading.

上記画像1行サイズ(描画範囲情報)42は、描画される矩形画像70の水平方向に配列されている、1行分の画素の並びに対応する画像データを記憶するために割り当てられている、VRAM6のメモリ領域のビット(バイト)数である。すなわち、図4におけるB領域分に対応する画像データを格納するために割り当てられている、VRAM6における記憶容量を示すビット(バイト)数である。   The image one-line size (drawing range information) 42 is assigned to store image data corresponding to the arrangement of pixels for one line arranged in the horizontal direction of the rectangular image 70 to be drawn. The number of bits (bytes) in the memory area. That is, it is the number of bits (bytes) indicating the storage capacity in the VRAM 6 allocated for storing the image data corresponding to the area B in FIG.

オフセット量(間隔範囲情報)43は、VRAM6のメモリ領域において記憶されている画像データ間のアドレスの差を示す情報である。すなわち、オフセット量43は、矩形画像70における横方向の画素の並びの最後の画素に対応するメモリ領域のアドレスと、次行の画素の並びの、最初の画素に対応するアドレスとの差を示す情報である。   The offset amount (interval range information) 43 is information indicating an address difference between image data stored in the memory area of the VRAM 6. That is, the offset amount 43 indicates the difference between the address of the memory area corresponding to the last pixel in the horizontal pixel array in the rectangular image 70 and the address corresponding to the first pixel in the pixel array in the next row. Information.

より具体的には、例えば座標(xe,ys)によって特定される画素から座標(xs,yt)によって特定される画素の前に来る画素までの範囲の画素数に対応する記憶容量である。   More specifically, for example, the storage capacity corresponds to the number of pixels in a range from a pixel specified by coordinates (xe, ys) to a pixel preceding the pixel specified by coordinates (xs, yt).

ループ回数(画素列数情報)44は、上記画像1行サイズ42に相当する画素の並びを何回組み合わせるかを示す値である。すなわち、描画される矩形画像70は、上記画像1行サイズ42に相当する画素の並びを縦方向(y軸方向)に、複数個組み合わせることによって形成することができる。この組み合わせる個数、すなわち画像1行サイズ42に相当する画素の並びの範囲を繰り返す回数がループ回数となる。   The number of loops (pixel column number information) 44 is a value indicating how many times the arrangement of pixels corresponding to the image one-line size 42 is combined. In other words, the drawn rectangular image 70 can be formed by combining a plurality of pixel arrangements corresponding to the image one-line size 42 in the vertical direction (y-axis direction). The number of loops is the number of combinations, that is, the number of repetitions of the pixel arrangement range corresponding to the one-line size 42 of the image.

上記転送情報記憶部26は、転送元アドレス45および現在のループ回数46を含むものである。   The transfer information storage unit 26 includes a transfer source address 45 and a current loop count 46.

上記転送元アドレス45は、転送制御装置5によって転送された画像データを記憶していたメモリ領域範囲における先頭アドレスである。   The transfer source address 45 is a head address in the memory area range in which the image data transferred by the transfer control device 5 is stored.

つまり、本実施の形態に係るDMA転送部21は、画像1行サイズ42分に対応する画像データごとにVRAM6から読み出し、LCD表示用バッファ4に転送するように構成されている。言い換えれば、描画される画像データのx軸方向における1行分の画素に対応するメモリ領域に記憶された画像データごとに転送する。   In other words, the DMA transfer unit 21 according to the present embodiment is configured to read from the VRAM 6 for each image data corresponding to an image line size of 42 minutes, and transfer it to the LCD display buffer 4. In other words, the image data to be drawn is transferred for each image data stored in the memory area corresponding to one row of pixels in the x-axis direction.

また、この画像1行サイズ分に対応する画像データを格納するメモリ領域のアドレスは連続するように割り当てられている。   The addresses of memory areas for storing image data corresponding to the size of one line of the image are assigned so as to be continuous.

したがって、DMA転送部21は、この画像1行サイズ42分に対応する画像データを格納するメモリ領域範囲における先頭アドレスと、1回に転送する画像データ量(つまり、画像1行サイズ42)が分かれば、LCD表示用バッファ4に必要となる、1回分の画像データの転送を行うことができる。   Therefore, the DMA transfer unit 21 separates the start address in the memory area range for storing the image data corresponding to the image one-line size 42 minutes and the amount of image data to be transferred at one time (that is, the image one-line size 42). For example, the image data for one time required for the LCD display buffer 4 can be transferred.

現在のループ回数46は、画像1行サイズ42分に対応する画素データの、現在の読出し回数を示すものである。つまり、このループ回数44が2の場合は、矩形画像70を表示する2行分の画素の並びに対応する画像データをVRAM6から読み出し転送したこととなる。   The current loop count 46 indicates the current read count of pixel data corresponding to an image line size of 42 minutes. That is, when the number of loops 44 is 2, the image data corresponding to the two rows of pixels displaying the rectangular image 70 is read from the VRAM 6 and transferred.

ところで、矩形画像70の1行分に対応する画像データを格納しているメモリ領域間では、異なる行間においては連続したアドレスとならない。このため、通常、DMACは、異なる行にまたがる画像データを、VRAM6から1度に連続して読み出すことができず、1行ずつ読み出すこととなる。このように、1行ずつ画像データを読み出す場合、この各行の画像データが格納されているメモリ領域における先頭アドレスを、DMACはCPUに問合せなければならない。   By the way, between memory areas storing image data corresponding to one line of the rectangular image 70, the addresses are not continuous between different lines. For this reason, normally, the DMAC cannot read image data spanning different rows continuously from the VRAM 6 at a time, but reads them row by row. As described above, when image data is read line by line, the DMAC must inquire the CPU about the head address in the memory area in which the image data of each line is stored.

しかしながら、本実施の形態に係る転送制御装置5では、DMAC9におけるDMA転送部21が、画像データの転送とともに、転送開始アドレス41、画像1行サイズ42、オフセット量43、およびループ回数44に基づき、転送元アドレス45および現在のループ回数46を求める。そして、この求めた転送元アドレス45および現在のループ回数46を利用して、矩形画像70の画像データをVRAM6からLCD表示用バッファ4に転送するように構成されている。   However, in the transfer control device 5 according to the present embodiment, the DMA transfer unit 21 in the DMAC 9 performs the transfer of the image data based on the transfer start address 41, the image 1 row size 42, the offset amount 43, and the loop count 44. The transfer source address 45 and the current loop count 46 are obtained. Then, the image data of the rectangular image 70 is transferred from the VRAM 6 to the LCD display buffer 4 by using the obtained transfer source address 45 and the current loop count 46.

ここで以下おいて、転送制御装置5による、VRAM6からLCD表示用バッファ4への画像データのDMA転送処理の詳細について、上記した図4、および図5を参照して説明する。なお、この図5は、DMA転送処理を示すフローチャートである。   Hereafter, details of the DMA transfer processing of the image data from the VRAM 6 to the LCD display buffer 4 by the transfer control device 5 will be described with reference to FIG. 4 and FIG. 5 described above. FIG. 5 is a flowchart showing the DMA transfer process.

(画像データのDMA転送処理)
まず、前提として、転送する画像データは、矩形画像領域(矩形画像70)のデータであり、この矩形画像70を構成する各画素の情報量は1バイトであるとする。また、VRAM6のメモリ領域80において、1アドレスで指定されるメモリ領域には1バイトの情報が記憶されるものとする。したがって、1アドレスで指定されるVRAM6のメモリ領域には、1画素分の画像データが格納可能となる。
(Image data DMA transfer processing)
First, it is assumed that the image data to be transferred is data of a rectangular image area (rectangular image 70), and the information amount of each pixel constituting the rectangular image 70 is 1 byte. In the memory area 80 of the VRAM 6, it is assumed that 1-byte information is stored in the memory area specified by one address. Accordingly, image data for one pixel can be stored in the memory area of the VRAM 6 designated by one address.

また、VRAM6のメモリ開始アドレス33は0番地から始まるものとする。すなわち、メモリ開始アドレス33は、図4において、LCD表示部2の表示領域におけるx軸とy軸との交点(0,0)座標のデータを格納するためのVRAM6のメモリ領域を指定するアドレスである。   The memory start address 33 of the VRAM 6 starts from address 0. That is, the memory start address 33 is an address that designates a memory area of the VRAM 6 for storing data of the intersection (0, 0) coordinates of the x axis and the y axis in the display area of the LCD display unit 2 in FIG. is there.

また、画像データにおける始点座標31は、図4に示す矩形画像70における、左辺のx軸方向側の端部、すなわち座標(xs,ys)で示される位置とし、終点座標32は、この矩形画像70における始点座標31からの対角線上の位置、つまり始点座標31と隣り合っていない頂点座標である、(xe,ye)で示される位置であるとする。   Further, the start point coordinates 31 in the image data are the end portions on the x-axis direction side of the left side in the rectangular image 70 shown in FIG. 4, that is, the positions indicated by the coordinates (xs, ys), and the end point coordinates 32 are the rectangular image. The position on the diagonal line from the start point coordinate 31 in 70, that is, the position indicated by (xe, ye), which is the vertex coordinate not adjacent to the start point coordinate 31.

まず、ユーザにより、設定情報記憶部24に、上記した矩形領域の画像の始点座標31および終点座標32とが設定される(ステップS11、これ以降はS11のように称する)。また、ユーザにより、パラメータ決定部23に対して、画像データの転送指示がなされる。   First, the user sets the start point coordinates 31 and the end point coordinates 32 of the image of the rectangular area in the setting information storage unit 24 (step S11, hereinafter referred to as S11). In addition, the user instructs the parameter determination unit 23 to transfer image data.

このユーザからの指示に応じて、パラメータ決定部23が、設定情報記憶部24に記憶されている始点座標31、終点座標32、メモリ開始アドレス33、およびVRAM1行サイズ34の各情報に基づき、転送開始アドレス41、画像1行サイズ42、およびループ回数44を算出する(S12)。   In response to the instruction from the user, the parameter determination unit 23 performs transfer based on the start point coordinates 31, end point coordinates 32, memory start address 33, and VRAM 1 row size 34 information stored in the setting information storage unit 24. A start address 41, an image line size 42, and a loop count 44 are calculated (S12).

すなわち、パラメータ決定部23は、転送開始アドレス41を以下の数式(1)に示す計算によって求める。   That is, the parameter determination unit 23 obtains the transfer start address 41 by calculation shown in the following formula (1).

転送開始アドレス
=(始点のy座標)×VRAM1行サイズ+(始点のx座標−1) …(1)
ここで、「(始点のy座標)×VRAM1行サイズ」によって、図4に示す表示領域における、上から3行分の画素領域に対応するメモリ領域の記憶容量が求められる。これに、x座標の値から1減らした分の画素数に対応する記憶容量、すなわち、図4において上から4行目の左端から4つ目までの画素分に対応する記憶容量を加算する。したがって、上記数式(1)によって、原点(0,0)を含む画素から4行目のx軸方向に4つ目までの画素の記憶容量が求まる。
Transfer start address = (y coordinate of start point) × VRAM 1 line size + (x coordinate of start point−1) (1)
Here, the storage capacity of the memory area corresponding to the pixel area for three lines from the top in the display area shown in FIG. 4 is obtained by “(y coordinate of start point) × VRAM one line size”. The storage capacity corresponding to the number of pixels reduced by 1 from the x-coordinate value, that is, the storage capacity corresponding to the pixels from the left end of the fourth row from the top to the fourth in FIG. 4 is added. Therefore, the storage capacity of the pixels from the pixel including the origin (0, 0) to the fourth pixel in the x-axis direction of the fourth row is obtained by the above formula (1).

そして、メモリ領域80における各アドレスと、該各アドレスに対応するメモリ領域の記憶容量との関係から、上記数式(1)に結果に基づき、転送開始アドレス41を算出することができる。   From the relationship between each address in the memory area 80 and the storage capacity of the memory area corresponding to each address, the transfer start address 41 can be calculated based on the result of the above equation (1).

なお、本実施例では、図4において、原点(0,0)からy軸方向に向かって1行目、2行目、3行目、・・・というように行数を定義するものとする。したがって、例えばAに対応する領域は、表示領域における1行目の画素領域となる。   In this embodiment, in FIG. 4, the number of rows is defined as the first row, the second row, the third row,... From the origin (0, 0) in the y-axis direction. . Therefore, for example, the area corresponding to A is the pixel area of the first row in the display area.

また、本実施例では、矩形画像70を描画する画素領域においてもx軸側(原点に近い側)の画素の並びを1行目とし、原点(0,0)からy軸方向に向かって、2行目、3行目、・・・というように矩形画像70を形成する画素の並びの行数を定義する。   Further, in this embodiment, in the pixel region in which the rectangular image 70 is drawn, the arrangement of pixels on the x-axis side (side closer to the origin) is the first line, and from the origin (0, 0) toward the y-axis direction, The number of rows of the pixels forming the rectangular image 70 is defined as the second row, the third row,.

また、パラメータ決定部23は、画像1行サイズ42を以下の数式(2)に示す計算によって求める。   Further, the parameter determining unit 23 obtains the image one-line size 42 by calculation shown in the following mathematical formula (2).

画像1行サイズ=(終点のx座標)−(始点のx座標) ・・・(2)
上記数式(2)を演算することにより、矩形画像70のx軸方向における1行分(Bの範囲)の画素に対応するメモリ領域範囲の記憶容量を算出することができる。すなわち、数式(2)を演算することにより、上記矩形画像70における1行分の画素数が求まる。また、1画素における記憶容量が決まっているため、上記数式(2)によって算出された画素数から、矩形画像70における1行分の記憶容量が求まることとなる。
Line size of image = (x coordinate of end point)-(x coordinate of start point) (2)
By calculating Equation (2) above, it is possible to calculate the storage capacity of the memory area range corresponding to the pixels of one row (B range) in the x-axis direction of the rectangular image 70. That is, the number of pixels for one row in the rectangular image 70 is obtained by calculating the mathematical formula (2). Further, since the storage capacity of one pixel is determined, the storage capacity for one row in the rectangular image 70 is obtained from the number of pixels calculated by the above mathematical formula (2).

また、パラメータ決定部23は、ループ回数44を以下の数式(3)に示す計算によって求める。   Further, the parameter determination unit 23 obtains the loop count 44 by the calculation shown in the following mathematical formula (3).

ループ回数=(終点のy座標)−(始点のy座標) ・・・(3)
上記数式(3)を演算することにより、上記矩形画像70のy軸方向における画素数、すなわち図4におけるE範囲に対応する画素数を求めることができる。なお、このy軸方向における画素数は、上記矩形画像70を描画する画素の行数に相当するものである。
Loop count = (y coordinate of end point) − (y coordinate of start point) (3)
By calculating Equation (3), the number of pixels in the y-axis direction of the rectangular image 70, that is, the number of pixels corresponding to the E range in FIG. 4 can be obtained. The number of pixels in the y-axis direction corresponds to the number of rows of pixels for drawing the rectangular image 70.

したがって、上記数式(3)によって上記矩形画像70を描画するために、矩形画像70の1行分の画素の並びに対応する、画像データを何回分繰り返せばよいか分かる。   Therefore, in order to draw the rectangular image 70 by the mathematical formula (3), it can be understood how many times the image data corresponding to the arrangement of the pixels of one row of the rectangular image 70 should be repeated.

次に、パラメータ決定部23は、数式(2)により算出した画像1行サイズ42と、VRAM1行サイズ34とに基づき、オフセット量43を算出する(S13)。より具体的には、上記パラメータ決定部23は、下記数式(4)によって、オフセット量を算出する。   Next, the parameter determination unit 23 calculates the offset amount 43 based on the image one-line size 42 calculated by the mathematical formula (2) and the VRAM one-line size 34 (S13). More specifically, the parameter determination unit 23 calculates the offset amount by the following mathematical formula (4).

オフセット量=VRAM1行サイズ−画像1行サイズ ・・・(4)
つまり、上記数式(4)による演算を行うことにより、図4におけるC+Dの範囲の画素に対応するメモリ領域における記憶容量を算出することができる。
Offset amount = VRAM 1 line size−Image 1 line size (4)
In other words, the storage capacity in the memory area corresponding to the pixels in the range of C + D in FIG. 4 can be calculated by performing the calculation according to the mathematical formula (4).

以上ステップS12およびステップS13によって算出された転送開始アドレス41、画像1行サイズ42、オフセット量43、およびループ回数44それぞれのパラメータ値を、パラメータ決定部23が開始パラメータ記憶部25に記憶させる(S14)。そして、パラメータ決定部23は、メモリ転送開始部22に画像データの転送指示を通知する。   The parameter determination unit 23 causes the start parameter storage unit 25 to store the parameter values of the transfer start address 41, the image one-line size 42, the offset amount 43, and the loop count 44 calculated in steps S12 and S13 as described above (S14). ). Then, the parameter determination unit 23 notifies the memory transfer start unit 22 of an image data transfer instruction.

メモリ転送開始部22は、パラメータ決定部23から通知された、画像データの転送指示に応じて、DMA転送部21に画像データのDMA転送開始を指示する(S15)。   In response to the image data transfer instruction notified from the parameter determination unit 23, the memory transfer start unit 22 instructs the DMA transfer unit 21 to start DMA transfer of image data (S15).

メモリ転送開始部22から画像データの転送開始の指示を受信すると、DMA転送部21は、転送情報記憶部26に記憶している転送元アドレス45および現在のループ回数46を初期化する(S16)。すなわち、DMA転送部21は、転送元アドレス45および現在のループ回数46に対応する値それぞれを0に設定する。   When receiving an instruction to start image data transfer from the memory transfer start unit 22, the DMA transfer unit 21 initializes the transfer source address 45 and the current loop count 46 stored in the transfer information storage unit 26 (S16). . That is, the DMA transfer unit 21 sets the values corresponding to the transfer source address 45 and the current loop count 46 to 0.

そして、DMA転送部21は、開始パラメータ記憶部25に格納されている転送開始アドレス41を転送元アドレス45に設定する(S17)。次にDMA転送部21は、現在のループ回数46と、開始パラメータ記憶部25に格納されているループ回数44とを比較し、前者が後者以上であるか否かを判定する(S18)。ここでは、現在のループ回数46が初期設定の「0」であるため、ステップS18では「No」となる。   Then, the DMA transfer unit 21 sets the transfer start address 41 stored in the start parameter storage unit 25 as the transfer source address 45 (S17). Next, the DMA transfer unit 21 compares the current loop count 46 with the loop count 44 stored in the start parameter storage unit 25 to determine whether the former is greater than or equal to the latter (S18). Here, since the current loop count 46 is the initial setting “0”, “No” is set in step S18.

ステップS18において「No」の場合、DMA転送部21は、画像1行サイズ42分の画像データをVRAM6から取得し、LCD表示用バッファ4に転送する(S19)。すなわち、DMA転送部21は、転送元アドレス45から、画像1行サイズ42分の記憶容量に対応するアドレスまでの、メモリ領域に記憶された画像データをVRAM6から取得する。   If “No” in step S18, the DMA transfer unit 21 acquires image data for one image line size 42 from the VRAM 6 and transfers it to the LCD display buffer 4 (S19). That is, the DMA transfer unit 21 acquires from the VRAM 6 the image data stored in the memory area from the transfer source address 45 to the address corresponding to the storage capacity for one image line size 42.

そして、DMA転送部21は、現在の転送元アドレス45を、画像1行サイズ42分の記憶容量に対応するアドレス分増加させる。したがって、この時点で、転送元アドレス45は、矩形画像70の1行目の画素領域における最後の画素に対応するアドレスとなる。さらに、DMA転送部21は、開始パラメータ記憶部25に格納されたオフセット量43を参照して、上記現在の転送元アドレス45をオフセット量43分に対応するアドレスだけ増加させる(S20)。   Then, the DMA transfer unit 21 increases the current transfer source address 45 by an address corresponding to the storage capacity of one image line size 42. Therefore, at this time, the transfer source address 45 is an address corresponding to the last pixel in the pixel area of the first row of the rectangular image 70. Further, the DMA transfer unit 21 refers to the offset amount 43 stored in the start parameter storage unit 25, and increases the current transfer source address 45 by an address corresponding to the offset amount 43 minutes (S20).

このように、矩形画像70の1行分の画像データをVRAM6からLCD表示用バッファ4に転送が完了すると、DMA転送部21は現在のループ回数46を1増やす(S21)。   As described above, when the transfer of the image data for one line of the rectangular image 70 from the VRAM 6 to the LCD display buffer 4 is completed, the DMA transfer unit 21 increases the current loop count 46 by 1 (S21).

上記DMA転送部21は、以上ステップS18からS21までの処理を、現在のループ回数46が、開始パラメータ記憶部25に格納されているループ回数44以上となるまで繰り返す。すなわち、上記現在のループ回数46が、上記ループ回数44以上となるということは、矩形画像70全ての画素に対応する画像データがVRAM6からLCD表示用バッファ4に転送されたこととなる。   The DMA transfer unit 21 repeats the processing from steps S18 to S21 until the current loop count 46 becomes equal to or greater than the loop count 44 stored in the start parameter storage unit 25. That is, the current loop count 46 being equal to or greater than the loop count 44 means that the image data corresponding to all the pixels of the rectangular image 70 has been transferred from the VRAM 6 to the LCD display buffer 4.

このようにして、現在のループ回数46が、開始パラメータ記憶部25に格納されているループ回数44以上となると(S18において「YES」)、表示制御部3がLCD表示用バッファ4に記憶されている画像データをLCD表示部2に表示させるように制御する(S22)。   Thus, when the current loop count 46 becomes equal to or greater than the loop count 44 stored in the start parameter storage section 25 (“YES” in S18), the display control section 3 is stored in the LCD display buffer 4. Control is performed so that the displayed image data is displayed on the LCD display unit 2 (S22).

以上が、本実施の形態に係る転送制御装置5における画像データの転送処理の流れである。このように、本実施の形態に係る転送制御装置5は、VRAM6における矩形画像70の画像データの格納パターンを示す情報を、開始パラメータ50として算出する。そして、この算出した開始パラメータ50に基づき、矩形画像70を描画するx軸方向の画素の並び1行分ごとの画像データを、VRAM6からLCD表示用バッファ4に転送することができる。   The above is the flow of the image data transfer process in the transfer control device 5 according to the present embodiment. As described above, the transfer control device 5 according to the present embodiment calculates information indicating the storage pattern of the image data of the rectangular image 70 in the VRAM 6 as the start parameter 50. Then, based on the calculated start parameter 50, image data for each row of pixels arranged in the x-axis direction for drawing the rectangular image 70 can be transferred from the VRAM 6 to the LCD display buffer 4.

また、転送制御装置5では、DMA転送部21が、上記画素の並び1行分ごとの画像データを転送するたびに、この画素の並びを格納するメモリ領域の先頭アドレスをCPU10に問合せる必要がない。このため、本実施の形態に係る転送制御装置5は、CPU10の負荷を低減させ、またより効率的に画像データの転送を行うことができる。   Further, in the transfer control device 5, the DMA transfer unit 21 does not need to inquire the CPU 10 about the start address of the memory area in which the pixel arrangement is stored each time the image data for each row of pixels is transferred. . For this reason, the transfer control device 5 according to the present embodiment can reduce the load on the CPU 10 and more efficiently transfer image data.

また、上記開始パラメータ50を算出するためにパラメータ決定部23によって行われる演算は、簡単な四則演算である。また、このパラメータ決定部23が演算で扱う情報量は非常に小さいものである。したがって、パラメータ決定部23上記開始パラメータを少ない演算量で求めることができる。つまり、転送制御装置5は、少ない演算量によって効率的な画像データの転送を実現することができる。   The calculation performed by the parameter determination unit 23 to calculate the start parameter 50 is a simple four arithmetic operation. In addition, the information amount handled by the parameter determination unit 23 is very small. Therefore, the parameter determination unit 23 can obtain the start parameter with a small amount of calculation. That is, the transfer control device 5 can realize efficient image data transfer with a small amount of calculation.

また、本実施の形態に係る転送制御装置5では、上述したように、DMA転送を実行するDMA転送部21と、このDMA転送部21に画像データの転送を指示するメモリ開始部22と、DMA転送部21による画像データの転送の効率化を実現するための開始パラメータ50を演算するためのパラメータ決定部23とを備えた簡単な構成である。すなわち、本実施の形態に係る転送制御装置5は、簡単な装置構成によって、矩形画像70の画像データを効率的に転送することができると言える。   Further, as described above, in the transfer control device 5 according to the present embodiment, the DMA transfer unit 21 that executes DMA transfer, the memory start unit 22 that instructs the DMA transfer unit 21 to transfer image data, and the DMA This is a simple configuration including a parameter determination unit 23 for calculating a start parameter 50 for realizing the efficiency of transfer of image data by the transfer unit 21. That is, it can be said that the transfer control device 5 according to the present embodiment can efficiently transfer the image data of the rectangular image 70 with a simple device configuration.

また、本実施の形態に係るLCD表示システム1において、転送制御装置5は、任意に指定された始点座標31および終点座標32により、これらの座標によって規定される矩形画像70の画像データをVRAM6から読み出し表示装置13に転送することができる。すなわち、本実施の形態に係るLCD表示システム1では、任意の大きさの矩形画像70を描画することができる。   Further, in the LCD display system 1 according to the present embodiment, the transfer control device 5 receives from the VRAM 6 the image data of the rectangular image 70 defined by these coordinates based on arbitrarily designated start point coordinates 31 and end point coordinates 32. The data can be transferred to the readout display device 13. That is, the LCD display system 1 according to the present embodiment can draw a rectangular image 70 having an arbitrary size.

なお、上述の説明では、表示領域において、画素の左上点の座標の値によって、該画素を特定する場合について説明したが、これに限るものではない。すなわち、画素の右上点の座標によって各画素を特定する構成であってもよいし、右下、あるいは左下の点の座標によって各画素を特定する構成であってもよい。   In the above description, the case where the pixel is specified by the coordinate value of the upper left point of the pixel in the display area has been described. However, the present invention is not limited to this. In other words, each pixel may be specified by the coordinates of the upper right point of the pixel, or each pixel may be specified by the coordinates of the lower right or lower left point.

なお、どの座標点によって1画素を特定するかによって上記した数式(1)〜数式(3)の数式上の表現は異なることとなるが、入力値と出力値との関係は変化しない。すなわち、出力値である、転送開始アドレス、画像1行サイズ、およびループ回数を、始点座標31、終点座標32、およびVRAM1行サイズ34に基づき算出する関係は同じである。   It should be noted that although the expressions on the mathematical expressions (1) to (3) described above differ depending on which coordinate point identifies one pixel, the relationship between the input value and the output value does not change. That is, the relationship of calculating the transfer start address, the image one line size, and the loop count, which are output values, based on the start point coordinates 31, the end point coordinates 32, and the VRAM one line size 34 is the same.

また、本実施の形態に係るLED表示システム1は、表示装置13、転送制御装置5、およびVRAM6を備えるシステムであったが、これら複数の装置が1つの筐体で構成され1台のLED表示装置を構成してもよい。   In addition, the LED display system 1 according to the present embodiment is a system including the display device 13, the transfer control device 5, and the VRAM 6. However, the plurality of devices are configured by a single casing, and one LED display. An apparatus may be configured.

なお、上記実施形態の転送制御装置5のメモリ転送開始部22およびパラメータ決定部23または、これら各部によって実行される各処理ステップは、CPU10などの演算手段が、ROM(Read Only Memory)11などの記憶手段に記憶されたプログラムを実行し、キーボードなどの入力手段、ディスプレイなどの出力手段、あるいは、インターフェース回路などの通信手段を制御することにより実現することができる。   Note that the memory transfer start unit 22 and the parameter determination unit 23 of the transfer control device 5 of the above embodiment, or each processing step executed by these units is performed by a calculation means such as the CPU 10 such as a ROM (Read Only Memory) 11 or the like. This can be realized by executing a program stored in the storage means and controlling input means such as a keyboard, output means such as a display, or communication means such as an interface circuit.

したがって、これらの手段を有するコンピュータが、上記プログラムを記録した記録媒体を読取り、当該プログラムを実行するだけで、本実施形態の転送制御装置の、上記メモリ転送開始部22およびパラメータ決定部23によって実現される各種機能および各種処理を行うことができる。   Therefore, the computer having these means can be realized by the memory transfer start unit 22 and the parameter determination unit 23 of the transfer control device of the present embodiment just by reading the recording medium storing the program and executing the program. Various functions and various processes can be performed.

また、上記実施形態の転送制御装置5のDMA転送部21は、DMAC9がプログラムを読み出し実現する機能ブロックであったが、CPU10がROM11などからプログラムを読み出し実現する機能ブロックであってもよい。すなわち、この場合は、画像データの転送をDMAC9による転送ではなく、CPU10による転送となる。   Further, the DMA transfer unit 21 of the transfer control device 5 of the above embodiment is a functional block that the DMAC 9 reads and realizes the program, but may be a functional block that the CPU 10 reads and realizes the program from the ROM 11 or the like. That is, in this case, image data is transferred not by the DMAC 9 but by the CPU 10.

このようにCPU10による画像データの転送の場合であっても、本実施の形態に係る転送制御装置5は、画像データの転送中に、転送する画像データが格納されているアドレスを確認する必要がないため、効率的な画像データの転送を実現することができる。   As described above, even when the image data is transferred by the CPU 10, the transfer control device 5 according to the present embodiment needs to confirm the address where the image data to be transferred is stored during the transfer of the image data. Therefore, efficient image data transfer can be realized.

また、上記転送部21をCPU10などの演算手段によって実行する場合、この場合も上記したように、CPU10が、ROM11などの記憶手段に記憶されたプログラムを実行し、キーボードなどの入力手段、ディスプレイなどの出力手段、あるいは、インターフェース回路などの通信手段を制御することにより実現することができる。   Further, when the transfer unit 21 is executed by a calculation unit such as the CPU 10, as described above, the CPU 10 executes the program stored in the storage unit such as the ROM 11, and an input unit such as a keyboard, a display, etc. This can be realized by controlling the output means or the communication means such as an interface circuit.

また、上記プログラムをリムーバブルな記録媒体に記録することにより、任意のコンピュータ上で上記の各種機能および各種処理を実現することができる。   In addition, by recording the program on a removable recording medium, the various functions and various processes described above can be realized on an arbitrary computer.

この記録媒体としては、マイクロコンピュータで処理を行うために図示しないメモリ、例えばROMのようなものがプログラムメディアであっても良いし、また、図示していないが外部記憶装置としてプログラム読取り装置が設けられ、そこに記録媒体を挿入することにより読取り可能なプログラムメディアであっても良い。   As the recording medium, a memory (not shown) such as a ROM may be used as a program medium for processing by the microcomputer, and a program reader is provided as an external storage device (not shown). It may be a program medium that can be read by inserting a recording medium therein.

また、何れの場合でも、格納されているプログラムは、マイクロプロセッサがアクセスして実行される構成であることが好ましい。さらに、プログラムを読み出し、読み出されたプログラムは、マイクロコンピュータのプログラム記憶エリアにダウンロードされて、そのプログラムが実行される方式であることが好ましい。なお、このダウンロード用のプログラムは予め本体装置に格納されているものとする。   In any case, the stored program is preferably configured to be accessed and executed by the microprocessor. Furthermore, it is preferable that the program is read out, and the read program is downloaded to the program storage area of the microcomputer and the program is executed. It is assumed that the download program is stored in the main device in advance.

また、上記プログラムメディアとしては、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスクやCD/MO/MD/DVD等のディスクのディスク系、ICカード(メモリカードを含む)等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムを担持する記録媒体等がある。   The program medium is a recording medium configured to be separable from the main body, such as a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a flexible disk or a hard disk, or a disk such as a CD / MO / MD / DVD. Fixed disk system, card system such as IC card (including memory card), or semiconductor memory such as mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, etc. In particular, there are recording media that carry programs.

また、インターネットを含む通信ネットワークを接続可能なシステム構成であれば、通信ネットワークからプログラムをダウンロードするように流動的にプログラムを担持する記録媒体であることが好ましい。   In addition, if the system configuration is capable of connecting to a communication network including the Internet, the recording medium is preferably a recording medium that fluidly carries the program so as to download the program from the communication network.

さらに、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであることが好ましい。   Further, when the program is downloaded from the communication network as described above, it is preferable that the download program is stored in the main device in advance or installed from another recording medium.

また、本実施の形態に係る転送制御装置5における画像データの転送処理に係る制御方法は以下の処理ステップを含むことを特徴とするものであるとも言える。   It can also be said that the control method related to the image data transfer process in the transfer control device 5 according to the present embodiment includes the following processing steps.

すなわち、転送元メモリ領域へ配置された画像データにおける転送矩形の始点座標31と終点座標32から、転送に必要なパラメータ(開始パラメータ50)を決定する転送パラメータ決定ステップと、制御部(CPU10)からDMA転送部21へ転送パラメータ(開始パラメータ50)の送信をするとともに、メモリ転送の開始を指示する転送開始ステップ、およびDMA転送部21が転送元メモリから転送先メモリへと画像情報をコピーする転送ステップからなるメモリ転送方式である。そして、このメモリ転送方式は、転送パラメータ決定ステップでは、転送開始アドレス41と画像1行サイズ数42、次行までのオフセット量43、およびループ回数44を決定することと、転送開始ステップは1回の矩形転送で一度しか行われないことと、転送ステップでは与えられたパラメータから対象とする矩形領域に対応するメモリ領域を、一括して自律的に転送することとを特徴とする。   That is, a transfer parameter determining step for determining a parameter (start parameter 50) required for transfer from the start point coordinates 31 and end point coordinates 32 of the transfer rectangle in the image data arranged in the transfer source memory area, and the control unit (CPU 10). A transfer start step for transmitting a transfer parameter (start parameter 50) to the DMA transfer unit 21 and instructing the start of memory transfer, and a transfer in which the DMA transfer unit 21 copies image information from the transfer source memory to the transfer destination memory This is a memory transfer system consisting of steps. In this memory transfer method, in the transfer parameter determining step, the transfer start address 41, the number of one-line size of the image 42, the offset amount 43 to the next row, and the loop count 44 are determined, and the transfer start step is performed once. The rectangular transfer is performed only once, and in the transfer step, the memory area corresponding to the target rectangular area is autonomously transferred collectively from the given parameters.

また、本実施の形態に係る転送制御装置5は、以下の特徴を有する構成であるとも言える。すなわち、転送制御装置5は、DMA転送部21としてDMAC9と、転送元メモリとしてVRAM6と、転送先メモリとして任意のメモリ領域と、転送に必要なパラメータの計算および転送開始を制御する制御部であるCPU10とを備えている。そして、転送制御装置5は、上記したメモリ転送方法を用いる事を特徴としている。   In addition, it can be said that the transfer control device 5 according to the present embodiment has the following characteristics. In other words, the transfer control device 5 is a control unit that controls the DMAC 9 as the DMA transfer unit 21, the VRAM 6 as the transfer source memory, an arbitrary memory area as the transfer destination memory, and the calculation of parameters required for transfer and the start of transfer. CPU10. The transfer control device 5 is characterized by using the above-described memory transfer method.

また、上記転送先メモリとしては、LCD表示用バッファ4であってもよい。   The transfer destination memory may be the LCD display buffer 4.

また、本実施の形態に係るLED表示システム1は、上記した構成の転送制御装置5を用いて、画面表示手段へ画像表示を行うシステムとすることができる。   Moreover, the LED display system 1 according to the present embodiment can be a system that displays an image on a screen display unit using the transfer control device 5 having the above-described configuration.

なお、本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   In addition, this invention is not limited to embodiment mentioned above, A various change is possible in the range shown to the claim. That is, embodiments obtained by combining technical means appropriately changed within the scope of the claims are also included in the technical scope of the present invention.

本実施の形態に係る転送制御装置は、効率的に矩形画像の画像データを転送することができる。このため、テキスト、またはイラストなどを描いた矩形画像の画像データを効率的にVRAMなどから表示装置に転送し、表示装置において表示させることにより、スムーズな画像の描画を実現できる。   The transfer control device according to the present embodiment can efficiently transfer image data of a rectangular image. For this reason, smooth image drawing can be realized by efficiently transferring image data of a rectangular image in which text or an illustration is drawn from a VRAM or the like to a display device and displaying it on the display device.

本発明の実施形態を示すものであり、転送制御装置の要部構成の一例を示すブロック図である。1, showing an embodiment of the present invention, is a block diagram illustrating an example of a main configuration of a transfer control device. FIG. 本発明の実施形態を示すものであり、LCD表示システムの概略構成を示すブロック図である。1, showing an embodiment of the present invention, is a block diagram showing a schematic configuration of an LCD display system. FIG. 本発明の実施形態を示すものであり、LCD表示システムの要部構成を示す図である。1, showing an embodiment of the present invention, is a diagram showing a main configuration of an LCD display system. FIG. 本発明の実施形態を示すものであり、LCD表示部の表示領域と、VRAMのメモリ領域との対応関係を示す図である。FIG. 4 is a diagram illustrating a correspondence relationship between a display area of an LCD display unit and a memory area of a VRAM according to an embodiment of the present invention. 本発明の実施形態を示すものであり、DMA転送処理を示すフローチャートである。5 is a flowchart illustrating a DMA transfer process according to an embodiment of the present invention. 従来技術を示すものであり、DMACを用いたコンピュータシステムの概略構成を示す図である。It is a figure which shows a prior art and shows schematic structure of the computer system using DMAC.

符号の説明Explanation of symbols

1 LCD表示システム(画像転送システム)
2 LCD表示部
4 LCD表示用バッファ(バッファ)
5 転送制御装置(転送装置)
6 VRAN(記憶装置)
9 DMAC
10 CPU
13 表示装置
21 DMA転送部(転送手段)
22 メモリ転送開始部(指示手段)
23 パラメータ決定部(算出手段)
31 始点座標
32 終点座標
33 メモリ開始アドレス
34 VRAM1行サイズ(表示範囲情報)
41 転送開始アドレス
42 画像1行サイズ(描画範囲情報)
43 オフセット量(間隔範囲情報)
44 ループ回数(画素列数情報)
50 開始パラメータ(格納パターン情報)
70 矩形画像(矩形画像領域)
80 メモリ領域(記憶領域)
1 LCD display system (image transfer system)
2 LCD display 4 LCD display buffer (buffer)
5 Transfer control device (transfer device)
6 VRAN (storage device)
9 DMAC
10 CPU
13 Display device 21 DMA transfer section (transfer means)
22 Memory transfer start unit (instruction means)
23 Parameter determination unit (calculation means)
31 Start point coordinates 32 End point coordinates 33 Memory start address 34 VRAM 1 line size (display range information)
41 Transfer start address 42 Line size of image (drawing range information)
43 Offset amount (interval range information)
44 Loop count (pixel column number information)
50 Start parameter (storage pattern information)
70 Rectangular image (rectangular image area)
80 Memory area (storage area)

Claims (8)

矩形画像領域を表示させるための矩形画像情報を保持する記憶装置から、該矩形画像情報を表示装置に転送する転送装置であって、
上記表示装置の表示領域における横方向をx座標、縦方向をy座標としたとき、
上記x座標とy座標とによって特定される上記表示領域内の画素と、該画素において表示する矩形画像情報を格納する、上記記憶装置の記憶領域におけるアドレスとが対応づけられ、
横方向に隣接する画素同士に対応する上記アドレスは、読み出される順に連続しており、
上記矩形画像領域の対角線の端点である始点座標および終点座標と、表示領域全体における横方向の画素数に対応する表示範囲情報とに基づき、上記記憶装置における矩形画像情報の格納パターンを示す格納パターン情報を算出する算出手段と、
上記算出手段によって算出された上記格納パターン情報に基づき、矩形画像情報の転送を行うように、上記転送手段に指示する指示手段と、
上記指示手段からの指示に応じて、上記格納パターン情報に基づき、該矩形画像情報を表示装置に転送する転送手段とを備えることを特徴とする転送装置。
A transfer device that transfers rectangular image information from a storage device that holds rectangular image information for displaying a rectangular image region to the display device,
When the horizontal direction in the display area of the display device is the x coordinate and the vertical direction is the y coordinate,
A pixel in the display area specified by the x coordinate and the y coordinate is associated with an address in the storage area of the storage device that stores rectangular image information to be displayed in the pixel,
The addresses corresponding to pixels adjacent in the horizontal direction are consecutive in the order of reading,
A storage pattern indicating a storage pattern of rectangular image information in the storage device based on start point coordinates and end point coordinates that are diagonal end points of the rectangular image region and display range information corresponding to the number of pixels in the horizontal direction in the entire display region A calculation means for calculating information;
An instruction means for instructing the transfer means to transfer the rectangular image information based on the storage pattern information calculated by the calculation means;
A transfer device comprising: transfer means for transferring the rectangular image information to a display device based on the storage pattern information in response to an instruction from the instruction means.
上記格納パターン情報は、
上記矩形画像情報を格納した記憶領域において最初に読み出されるアドレスと、
描画された上記矩形画像領域における横方向の画素数に対応する描画範囲情報と、
上記矩形画像領域に含まれる上記縦方向の画素数を示す画素列数情報と、
上記矩形画像領域における横方向の画素の並びである画素列から、次の画素列までの間の画素数に対応する間隔範囲情報とを含むことを特徴とする請求項1に記載の転送装置。
The above storage pattern information is
An address read first in the storage area storing the rectangular image information;
Drawing range information corresponding to the number of pixels in the horizontal direction in the drawn rectangular image area;
Pixel column number information indicating the number of pixels in the vertical direction included in the rectangular image region;
2. The transfer apparatus according to claim 1, further comprising interval range information corresponding to the number of pixels between a pixel column that is an arrangement of pixels in the horizontal direction in the rectangular image region and a next pixel column.
上記表示装置は、表示する矩形画像情報を一時記憶するバッファを備えており、
上記転送手段は、上記記憶装置に格納された矩形画像情報を上記バッファに転送することを特徴とする請求項1または2に記載の転送装置。
The display device includes a buffer for temporarily storing rectangular image information to be displayed,
3. The transfer device according to claim 1, wherein the transfer unit transfers rectangular image information stored in the storage device to the buffer.
上記転送手段は、矩形画像情報を、転送装置の各種処理を制御するCPUからバスの使用権を得て該CPUを介すことなく上記表示装置に転送すること特徴とする請求項1〜3のいずれか1項に記載の転送装置。   4. The transfer unit according to claim 1, wherein the transfer means acquires the right to use the bus from a CPU that controls various processes of the transfer device and transfers the rectangular image information to the display device without going through the CPU. The transfer device according to any one of the above. 矩形画像領域を表示させるための矩形画像情報を保持する記憶装置から、該矩形画像情報を表示装置に転送する転送装置の制御方法であって、
上記表示装置の表示領域における横方向をx座標、縦方向をy座標としたとき、
上記x座標とy座標とによって特定される上記表示領域内の画素と、該画素において表示する矩形画像情報を格納する、上記記憶装置の記憶領域におけるアドレスとが対応づけられ、
横方向に隣接する画素同士に対応する上記アドレスは、読み出される順に連続しており、
上記矩形画像領域の対角線の端点である始点座標および終点座標と、表示領域全体における横方向の画素数に対応する表示範囲情報とに基づき、上記記憶装置における矩形画像情報の格納パターンを示す格納パターン情報を算出するステップと、
算出された上記格納パターン情報に基づき、矩形画像情報の転送を行うように指示するステップと、
上記矩形画像情報の転送の指示に応じて、上記格納パターン情報に基づき、矩形画像情報を表示装置に転送するステップとを含むことを特徴とする転送装置の制御方法。
A control method of a transfer device that transfers rectangular image information to a display device from a storage device that holds rectangular image information for displaying a rectangular image region,
When the horizontal direction in the display area of the display device is the x coordinate and the vertical direction is the y coordinate,
A pixel in the display area specified by the x coordinate and the y coordinate is associated with an address in the storage area of the storage device that stores rectangular image information to be displayed in the pixel,
The addresses corresponding to pixels adjacent in the horizontal direction are consecutive in the order of reading,
A storage pattern indicating a storage pattern of rectangular image information in the storage device based on start point coordinates and end point coordinates that are diagonal end points of the rectangular image region and display range information corresponding to the number of pixels in the horizontal direction in the entire display region Calculating information;
Instructing to transfer rectangular image information based on the calculated storage pattern information;
And a step of transferring the rectangular image information to a display device based on the storage pattern information in response to an instruction to transfer the rectangular image information.
請求項1〜4の何れか1項に記載の転送装置と、
矩形画像領域を表示させるための矩形画像情報を保持する記憶装置と、
該矩形画像情報を表示する表示装置とを備えることを特徴とする画像転送システム。
The transfer device according to any one of claims 1 to 4,
A storage device for holding rectangular image information for displaying a rectangular image region;
An image transfer system comprising: a display device that displays the rectangular image information.
請求項1〜4の何れか1項に記載の転送装置を動作させるための制御プログラムであって、コンピュータを上記各手段として機能させるための転送装置の制御プログラム。   5. A control program for operating the transfer apparatus according to claim 1, wherein the transfer apparatus control program causes a computer to function as each of the means. 請求項7に記載の転送装置の制御プログラムが記録されたコンピュータの読取り可能な記録媒体。   A computer-readable recording medium on which the control program for the transfer apparatus according to claim 7 is recorded.
JP2005022182A 2005-01-28 2005-01-28 Transfer device, image transfer system, control method of transfer device, control program of transfer device and recording medium with control program of transfer device recorded thereon Pending JP2006209552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005022182A JP2006209552A (en) 2005-01-28 2005-01-28 Transfer device, image transfer system, control method of transfer device, control program of transfer device and recording medium with control program of transfer device recorded thereon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005022182A JP2006209552A (en) 2005-01-28 2005-01-28 Transfer device, image transfer system, control method of transfer device, control program of transfer device and recording medium with control program of transfer device recorded thereon

Publications (1)

Publication Number Publication Date
JP2006209552A true JP2006209552A (en) 2006-08-10

Family

ID=36966329

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005022182A Pending JP2006209552A (en) 2005-01-28 2005-01-28 Transfer device, image transfer system, control method of transfer device, control program of transfer device and recording medium with control program of transfer device recorded thereon

Country Status (1)

Country Link
JP (1) JP2006209552A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016045899A (en) * 2014-08-26 2016-04-04 株式会社リコー Data transfer control apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01230157A (en) * 1987-11-24 1989-09-13 Ricoh Co Ltd Dma controller
JPH04130945A (en) * 1990-09-21 1992-05-01 Nec Corp Information processor
JPH05158866A (en) * 1991-12-06 1993-06-25 Mitsui Petrochem Ind Ltd Still picture processor
JPH06332843A (en) * 1992-06-24 1994-12-02 Seiko Epson Corp Moving image video data transfer device and computer system
JPH10154125A (en) * 1996-11-26 1998-06-09 Toshiba Corp Dma data transfer device, moving image decoder using the device and dma data transfer controlling method
JP2002202881A (en) * 2000-10-26 2002-07-19 Matsushita Electric Ind Co Ltd Image display device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01230157A (en) * 1987-11-24 1989-09-13 Ricoh Co Ltd Dma controller
JPH04130945A (en) * 1990-09-21 1992-05-01 Nec Corp Information processor
JPH05158866A (en) * 1991-12-06 1993-06-25 Mitsui Petrochem Ind Ltd Still picture processor
JPH06332843A (en) * 1992-06-24 1994-12-02 Seiko Epson Corp Moving image video data transfer device and computer system
JPH10154125A (en) * 1996-11-26 1998-06-09 Toshiba Corp Dma data transfer device, moving image decoder using the device and dma data transfer controlling method
JP2002202881A (en) * 2000-10-26 2002-07-19 Matsushita Electric Ind Co Ltd Image display device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016045899A (en) * 2014-08-26 2016-04-04 株式会社リコー Data transfer control apparatus

Similar Documents

Publication Publication Date Title
US7583851B2 (en) Apparatus and method for processing an image
JP5703769B2 (en) Image conversion apparatus, image conversion method, program, and electronic apparatus
JP2009015248A (en) Image forming device, method, and program
JP5100611B2 (en) Image processing device
JP2006113801A (en) Apparatus and method for displaying image processing result, and program
US20080111821A1 (en) Dynamic tile sizing in an image pipeline
JP6263025B2 (en) Image processing apparatus and control method thereof
WO2016139889A1 (en) Image processing device, image processing method, and display device
JP2006202211A (en) Image drawing device and image drawing method
JP2006209552A (en) Transfer device, image transfer system, control method of transfer device, control program of transfer device and recording medium with control program of transfer device recorded thereon
US7900021B2 (en) Image processing apparatus and image processing method
JP2004032278A (en) Imaging device
JP4737852B2 (en) Image processing apparatus and image display apparatus
JP4790545B2 (en) Image processing apparatus and image processing method
JPWO2008126227A1 (en) Display control apparatus, information processing apparatus, and display control program
JP2013195963A (en) Image processing device, integrated circuit apparatus, and image display system
JP2006350843A (en) Image processing device, control program for the same, computer-readable storage medium storing control program
JP5575261B2 (en) Drawing apparatus, drawing method and program
JP2019114067A (en) Image processing apparatus, image processing method, and program
JP2006148821A (en) Histogram display apparatus
JP2010032804A (en) Lcd controller
JP2004318138A (en) Picture frame layer for display using no additional display memory
JP4048731B2 (en) Image data transfer apparatus and image display processing system
WO2019116465A1 (en) Unevenness correction system, unevenness correction method, and display device
JP3842968B2 (en) Image data processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070302

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091208

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100608