CN1120207A - Image synthesis device and method - Google Patents
Image synthesis device and method Download PDFInfo
- Publication number
- CN1120207A CN1120207A CN 94115281 CN94115281A CN1120207A CN 1120207 A CN1120207 A CN 1120207A CN 94115281 CN94115281 CN 94115281 CN 94115281 A CN94115281 A CN 94115281A CN 1120207 A CN1120207 A CN 1120207A
- Authority
- CN
- China
- Prior art keywords
- aforementioned
- order
- data
- working storage
- horizontal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000015572 biosynthetic process Effects 0.000 title description 12
- 238000003786 synthesis reaction Methods 0.000 title description 12
- 238000006073 displacement reaction Methods 0.000 claims abstract description 43
- 238000003860 storage Methods 0.000 claims description 66
- 238000004519 manufacturing process Methods 0.000 claims description 3
- 239000000758 substrate Substances 0.000 claims 7
- 230000000052 comparative effect Effects 0.000 claims 4
- 230000011664 signaling Effects 0.000 claims 2
- 230000014759 maintenance of location Effects 0.000 claims 1
- 230000002194 synthesizing effect Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 239000003086 colorant Substances 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 238000001308 synthesis method Methods 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
Abstract
Description
本发明涉及一种图像合成装置及方法。The invention relates to an image synthesis device and method.
目前,一般电视游戏机内的图像产生器都是将图形数据存放在存储器内,再由图像产生器读出图形数据,并且输出显示在电视屏幕上,因此若欲得到较好且较生动的图像效果,则需要使用容量较大的存储器。但是对于一些简单的图像,例如为了改变屏幕显示区大小的遮没图形或是爆炸产生的图形光圈等,这些图像均相当单纯,没有复杂的图形颜色,所以若将这些图像以一般图形影像的方式储存在存储器中,则会占据太多的存储器空间,使得成本相对地提高。为了改进这种缺点,可利用图像的外框数据来显示图像,如此便可不必储存整个图像的图形数据,而仅存图像的外框数据,藉以节省所需的存储器容量。然而这种方法在图形不变的情况下,若要移动图形的位置,仍须改写存储器内所有的外框数据,而影响到即时显示的效果。At present, the image generator in the general TV game machine is to store the graphics data in the memory, and then the image generator reads the graphics data, and the output is displayed on the TV screen. Therefore, if you want to get a better and more vivid image effect, you need to use a larger capacity memory. However, for some simple images, such as masking graphics for changing the size of the screen display area or graphic apertures produced by explosions, these images are quite simple without complex graphic colors, so if these images are used in the form of general graphic images If it is stored in the memory, it will occupy too much memory space, which will relatively increase the cost. In order to improve this shortcoming, the frame data of the image can be used to display the image, so that it is not necessary to store the graphic data of the entire image, but only the frame data of the image, thereby saving the required memory capacity. However, in this method, under the condition that the graphics remain unchanged, if the position of the graphics is to be moved, all the frame data in the memory must be rewritten, which affects the real-time display effect.
有鉴于此,为改进其缺点,本发明的一个目的是提供一种图像合成装置及方法,其可利用图像的外框数据来显示图像,藉以减少所需的存储器容量,降低图像合成装置的制造成本。In view of this, in order to improve its shortcomings, an object of the present invention is to provide an image synthesis device and method, which can use the frame data of the image to display the image, thereby reducing the required memory capacity and reducing the manufacturing cost of the image synthesis device. cost.
本发明的另一个目的是提供一种图像合成装置及方法,其可使所显示的图像可自由移动,藉以增加显示画面的变化。Another object of the present invention is to provide an image synthesizing device and method, which can freely move the displayed image, thereby increasing the variation of the displayed image.
本发明的图像合成装置包括:一起始位置暂存器,用以储存图像外框的起始位置数据;一终止位置暂存器,用以储存图像外框的终止位置数据;一水平位置产生装置,用以对应于屏幕扫描线所在的水平位置而产生一水平位置信号;一位置比较器,用以比较前述图像外框的位置数据和前述水平位置信号;一水平位移暂存装置,用以储存水平位移数据,此水平位移数据可在位置比较器进行比较之前,先分别和前述起始位置数据及终止位置数据相加或是先和前述水平位置信号相加;一垂直位移暂存装置储存垂直位移数据;一图像显示控制装置,用以依据前述位置比较器的比较结果,控制输出的图像数据;一存储器读取装置,其利用一屏幕垂直位置及垂直位移数据作为索引以读取存储器内的外框数据;及一存储器,用以储存外框数据。其中,前述起始位置暂存器及终止位置暂存器内的外框数据可由中央处理器直接写入或从存储器中读入。如此,软件设计人员可选择使用较大的存储器或是利用较多的程序执行时间去执行较复杂的程序,以获得同样的效果,当然在实施上这种选择是可省略的。The image synthesis device of the present invention includes: a starting position register for storing the starting position data of the image outer frame; an end position register for storing the end position data of the image outer frame; a horizontal position generating device , used to generate a horizontal position signal corresponding to the horizontal position of the screen scanning line; a position comparator, used to compare the position data of the aforementioned image frame with the aforementioned horizontal position signal; a horizontal displacement temporary storage device, used to store Horizontal displacement data, the horizontal displacement data can be added to the aforementioned start position data and end position data or first added to the aforementioned horizontal position signal before the position comparator is compared; a vertical displacement temporary storage device stores vertical Displacement data; an image display control device, used to control the output image data according to the comparison result of the aforementioned position comparator; a memory reading device, which uses a screen vertical position and vertical displacement data as an index to read the memory. frame data; and a memory for storing frame data. Wherein, the outer frame data in the aforementioned start position register and end position register can be directly written by the central processing unit or read in from the memory. In this way, software designers can choose to use a larger memory or use more program execution time to execute more complex programs to obtain the same effect. Of course, this option can be omitted in implementation.
利用本发明的图像合成装置合成图像的方法是有下列几种操作模式,其因外框数据的产生及储存方式的不同而各有差异。第一种方式包括步骤如下:(1)存储器读取装置根据基底暂存器,屏幕垂直位置产生器及垂直位移暂存器产生一存储器位址;(2)存储器依前述的存储器位址将外框数据送至位置暂存器中;(3)将水平位移暂存器的内容加上位置暂存器的内容或一水平扫描线的水平位置;(4)接着再利用一位置比较器比较位置暂存器的内容及水平扫描线的水平位置,藉以产生一位置指示信号,并据以产生图形输出。在上述方法中,只要更改水平位移暂存器及垂直位移暂存器,便可移动图形。The image synthesis method of the image synthesis device of the present invention has the following operation modes, which are different due to the different ways of generating and storing the frame data. The first method includes the following steps: (1) the memory reading device generates a memory address according to the base temporary register, the screen vertical position generator and the vertical displacement register; The frame data is sent to the position register; (3) add the content of the horizontal displacement register to the content of the position register or the horizontal position of a horizontal scanning line; (4) then use a position comparator to compare the position The content of the temporary register and the horizontal position of the horizontal scanning line are used to generate a position indication signal, and to generate graphic output accordingly. In the above method, only the horizontal shift register and the vertical shift register can be changed to move the graphics.
第二种合成图像的方法和前述第一种方法类似,只是因为在此方法中存储器读取装置仅根据基底暂存器产生存储器位址,故欲移动图形,需在更换扫描线间重新改写存储器。The second method of synthesizing images is similar to the aforementioned first method, except that in this method, the memory reading device only generates the memory address according to the base temporary register, so to move the graphics, the memory needs to be rewritten between scanning lines .
第三种合成图像的方法包括下列步骤:(1)由一中央处理器直接将外框数据写入位置暂存器中;(2)将水平位移暂存器的内容加上位置暂存器的内容或一水平扫描线的水平位置;(3)接着再利用一位置比较器比较位置暂存器的内容及水平扫描线的水平位置,藉以产生一位置指示信号,并据以产生图形输出。在上述方法中,移动图形需要在换扫描线之间重新改写位置暂存器的内容。The method for the 3rd kind of synthetic image comprises the following steps: (1) by a central processing unit directly writing frame data in the position register; (2) adding the content of the horizontal displacement register to the position register content or the horizontal position of a horizontal scan line; (3) then use a position comparator to compare the content of the position register with the horizontal position of the horizontal scan line, so as to generate a position indicating signal, and generate graphic output accordingly. In the above method, moving the graphics needs to rewrite the content of the position register between scanning lines.
为了更清楚地说明本发明的方法、装置及特征,兹配合附图详细说明较佳实施例如后:In order to illustrate the method, device and features of the present invention more clearly, the preferred embodiments are described in detail below in conjunction with the accompanying drawings:
附图的简单说明:A brief description of the attached drawings:
图1是说明本发明的图像合成装置的一较佳实施例的方框图;FIG. 1 is a block diagram illustrating a preferred embodiment of the image synthesis apparatus of the present invention;
图2是说明本发明的图像合成装置的另一较佳实施例的方框图;2 is a block diagram illustrating another preferred embodiment of the image synthesis device of the present invention;
图3是说明本发明中的图像显示控制装置的方框图;Fig. 3 is a block diagram illustrating an image display control device in the present invention;
图4是说明本发明中存储器位址合成装置的方框图;Fig. 4 is a block diagram illustrating a memory address synthesizing device in the present invention;
图5a是显示实施本发明时的一时序信号图;Figure 5a is a timing signal diagram showing the implementation of the present invention;
图5b是显示实施本发明时的另一时序信号图。Fig. 5b is another timing signal diagram showing the implementation of the present invention.
本发明为一图像合成装置,其经由图像数据所包含的外框数据来产生图像,外框数据是包括图像数据在屏幕的各水平扫描线上的起始位置及终止位置。请参阅图1,本发明的图像合成装置包括:一起始位置暂存器10,用以储存前述外框在一水平扫描线上的起始位置数据;一终止位置暂存器20,用以储存前述外框在前述水平扫描线上的终止位置数据;一水平位移暂存装置30,用以储存一水平位移数据;一第一加法器41,用以接收前述起始位置数据及前述水平位移数据,并在相加后输出为一第一位置数据;一第二加法器42,用以接收前述终止位置数据及前述水平位移数据,并在相加后输出为一第二位置数据;一水平位置显示装置50,用以对应于前述扫描线的水平位置而产生一水平位置信号;一位置比较器60,用以比较前述水平位置信号是否介于前述第一位置数据及前述第二位置数据之间,并且依据比较结果输出一位置指示信号VLD;一图像显示控制装置70,用以接收前述位置比较器60输入的位置指示信号VLD,藉以控制输出的图像数据。The present invention is an image synthesis device, which generates an image through frame data included in the image data. The frame data includes the start position and end position of the image data on each horizontal scanning line of the screen. Referring to Fig. 1, the image synthesis device of the present invention includes: a starting position register 10 for storing the starting position data of the aforementioned outer frame on a horizontal scanning line; an end position register 20 for storing Termination position data of the aforementioned outer frame on the aforementioned horizontal scanning line; a horizontal displacement
请再参阅图2,本发明的图像合成装置的另一较佳实施例包括:一起始位置暂存器10,用以储存前述外框在一水平扫描线上的起始位置数据;一终止位置暂存器20,用以储存前述外框在前述水平扫描线上的终止位置数据;一水平位移暂存装置30,用以储存一水平位移数据;一水平位置显示装置50,用以对应于前述扫描线的水平位置而产生一水平位置信号;一加法器43,用以接收前述水平位移暂存装置30输入的水平位移数据及前述水平位置显示装置50输入的水平位置信号,并在相加后输出为一第三位置数据;一位置比较器60,用以比较前述第三位置数据是否介于前述起始位置数据及前述终止位置数据之间,并且依据比较结果输出一位置指示信号VLD;一图像显示控制装置70,用以接收前述位置比较器60输入的位置指示信号,藉以控制输出的图像数据。Please refer to Fig. 2 again, another preferred embodiment of the image synthesizing device of the present invention comprises: a
在前述的较佳实施例中,前述位置比较器60包括:一起始位置比较器61;一终止位置比较器62;一逻辑运算装置65,可为一及闸或其它等效的逻辑电路,用以将前述起始位置比较器61及终止位置比较器62的输出转变成一位置指示信号VLD。且在图1的实施例中,起始位置比较器61是用以比较前述第一位置数据及水平位置信号,终止位置比较器62是用以比较前述第二位置数据及水平位置信号。而在图2的实施例中,起始位置比较器61用以比较前述第三位置数据及起始位置数据,终止位置比较器62则用以比较前述第三位置数据及终止位置数据。In the aforementioned preferred embodiment, the
请参阅图3,前述图像显示控制装置70包括:复数个暂存器71至73,用以分别存放一颜色代码信号、一透明颜色代码信号及一反白控制信号REV;一信号合成装置74,用以接收前述反白控制信号REV及由前述位置比较器输出的位置指示信号VLD,并且在将其合成为一选择控制信号CC后输出;一颜色代码选择器76,可为一及闸或其它逻辑电路所所组成的线路,用以接收前述颜色代码信号及透明颜色代码信号,并受前述选择控制信号CC控制以输出一颜色代码或透明颜色代码;一透明判断装置78,可为一与非门(NAND),用以判断颜色是否为透明,同时并可输出一透明指示信号。前述颜色代码及透明指示信号均输出至下一级的权位/混色电路(未显示于图中)。其中,前述复数个暂存器71至73的内容均由一中央处理器直接写入。Please refer to Fig. 3, the aforementioned image
请参阅图1及图2,其中,起始位置暂存器10及终止位置暂存器20的内容可由中央处理器直接写入或由存储器90中读取,故前述起始位置暂存器10可包含一第一暂存器12及一第三暂存器11,前述终止位置暂存器20可包含一第二暂存器21及一第四暂存器22。且前述第一暂存器12及第二暂存器21的内容乃是从存储器90中读出的,而前述第三暂存器11及第四暂存器22的内容则是由中央处理器直接写入的。因为起始位置暂存器10及终止位置暂存器20均各包含复数个暂存器,故必须使用一起始位置选择器15及一终止位置选择器25从复数个暂存器中选择输出一起始位置及一终止位置。Please refer to Fig. 1 and Fig. 2, wherein, the content of initial position
当起始位置暂存器10及终止位置暂存器20的内容为从存储器90中读出时,请参阅图1及图2,其更包括一存储器读取装置80及一存储器90。存储器读取装置80是经由一位址总线81及一数据总线91和存储器90连接,并且在水平扫描线开始扫描之前先读取存储器90内储存的外框数据。其读取的方式则是利用存储器读取装置80内的一位址合成装置产生一存储器位址,并且经由位址总线81将此位址送至存储器90中,然后存储器90便依据接收到的位址将其对应的外框数据经由数据总线91送出。请参阅图4,图4显示前述位址合成装置的结构,其包括:一基底暂存器82,用以储存外框数据在存储器上的基底位置;一屏幕垂直位置产生装置84,可为一计数器,用以相对于扫描线目前的位置而产生一垂直位置数据;一垂直位移暂存器86,用以储存使图像垂直移动的一垂直位移量;一运算装置85,用以对前述垂直位置数据以及前述垂直位移量执行相加或相减的运算;一位址产生装置88,用以将前述基底暂存器82以及前述运算装置85的输出合并以产生一存储器位址。其中,前述运算装置85可执行加和减运算,藉以产生镜面(Mirror)的显示效果。而前述位址产生装置88对基底暂存器82及运算装置85的输出的合并方式可为相加、串接(cascade)或选择其中一个输出。When the contents of the initial position register 10 and the
本发明中相关的时序信号显示于图5a及图5b,其中,图5a表示反白控制信号REV为低电位的情形,而图5b表示反白控制信号为高电位的情形。请参阅图5a,起始位置信号START是表示起始位置比较器10输出的比较结果,终止位置信号END是表示终止位置比较器20的输出的比较结果,VLD则为START信号和END信号在经过逻辑运算装置65运算后输出的位置指示信号,用以指出图像外框在水平扫描线上的起始点及终止点,COLOR表示由颜色代码选择器76输出的颜色代码,TRANSPARENCY表示由透明判断装置78输出的透明指示信号,其中,当TRANSPARENCY为高电位时表示其为透明。图5b类似于图5a,只是因反白控制信号不同而造成透明指示信号反相,并导致输出颜色代码数据改变。The timing signals related to the present invention are shown in FIG. 5a and FIG. 5b, wherein FIG. 5a shows the situation where the reverse white control signal REV is low, and FIG. 5b shows the situation when the reverse white control signal is high. Please refer to Fig. 5 a, the start position signal START is the comparison result of the output of the
虽然本发明以较佳实施例说明如上,然其并非用以限定本发明,因此本发明的保护范围当视后附的权利要求范围所界定者为准。Although the present invention is described above with preferred embodiments, it is not intended to limit the present invention, so the protection scope of the present invention should be defined by the appended claims.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN94115281A CN1063858C (en) | 1994-09-16 | 1994-09-16 | Image synthesis device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN94115281A CN1063858C (en) | 1994-09-16 | 1994-09-16 | Image synthesis device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1120207A true CN1120207A (en) | 1996-04-10 |
CN1063858C CN1063858C (en) | 2001-03-28 |
Family
ID=5037452
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN94115281A Expired - Fee Related CN1063858C (en) | 1994-09-16 | 1994-09-16 | Image synthesis device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1063858C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1327389C (en) * | 1997-12-19 | 2007-07-18 | 鸿友科技股份有限公司 | image scanning device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
HU180133B (en) * | 1980-05-07 | 1983-02-28 | Szamitastech Koord | Equipment for displaying and storing tv picture information by means of useiof a computer access memory |
US4755956A (en) * | 1985-11-01 | 1988-07-05 | Allied-Signal Inc. | Freeze frame apparatus for moving map display system |
US4896283A (en) * | 1986-03-07 | 1990-01-23 | Hewlett-Packard Company | Iterative real-time XY raster path generator for bounded areas |
-
1994
- 1994-09-16 CN CN94115281A patent/CN1063858C/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1327389C (en) * | 1997-12-19 | 2007-07-18 | 鸿友科技股份有限公司 | image scanning device |
Also Published As
Publication number | Publication date |
---|---|
CN1063858C (en) | 2001-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5091220B2 (en) | Method and apparatus for encoding texture information | |
JP3056514B2 (en) | Image display device and external storage device used therefor | |
CN101038737A (en) | Multi-panel synthesized display apparatus and process | |
CN86100088A (en) | Image processing system | |
JPH08320946A (en) | Texture pattern memory circuit | |
JPH0375873B2 (en) | ||
EP1847965A1 (en) | Plotting device and plotting method | |
WO2003075253A1 (en) | Frame buffer access device, frame buffer access method, computer program and recording medium | |
CN1120207A (en) | Image synthesis device and method | |
US4393453A (en) | Region information processing system | |
EP0940772B1 (en) | Image processing apparatus | |
JP2003308537A (en) | Graphic rendering device | |
US7583270B2 (en) | Image processing apparatus | |
JPS58136093A (en) | Display controller | |
JP3090644B2 (en) | Image data processing apparatus and system using the same | |
JP4482996B2 (en) | Data storage apparatus and method and image processing apparatus | |
CN1153954A (en) | Switchable memory address generation method and device | |
KR100372090B1 (en) | Virtually Spanning 2D Array Architecture and Memory Mapping Method for Embedded 3D Graphics Accelerator | |
JP2891542B2 (en) | Image processing method and apparatus | |
JPS61122690A (en) | Display controller | |
JPS61162084A (en) | Pattern display unit | |
JP2901631B2 (en) | Image processing device | |
JPS6113756B2 (en) | ||
JPH07311567A (en) | Method and device for outputting image | |
JPH02257293A (en) | Access circuit for memory for mask |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C19 | Lapse of patent right due to non-payment of the annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |