WO2004093043A1 - 描画装置および表示制御装置 - Google Patents

描画装置および表示制御装置 Download PDF

Info

Publication number
WO2004093043A1
WO2004093043A1 PCT/JP2003/004772 JP0304772W WO2004093043A1 WO 2004093043 A1 WO2004093043 A1 WO 2004093043A1 JP 0304772 W JP0304772 W JP 0304772W WO 2004093043 A1 WO2004093043 A1 WO 2004093043A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame buffer
result
temporary memory
drawn
image
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.)
Ceased
Application number
PCT/JP2003/004772
Other languages
English (en)
French (fr)
Inventor
Hidefumi Nishi
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to AU2003227503A priority Critical patent/AU2003227503A1/en
Priority to EP03717591A priority patent/EP1583072A4/en
Priority to JP2004570875A priority patent/JP4268142B2/ja
Priority to PCT/JP2003/004772 priority patent/WO2004093043A1/ja
Publication of WO2004093043A1 publication Critical patent/WO2004093043A1/ja
Priority to US11/091,435 priority patent/US7554554B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/00Three-dimensional [3D] image rendering
    • G06T15/50Lighting effects
    • G06T15/503Blending, e.g. for anti-aliasing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/393Arrangements for updating the contents of the bit-mapped memory
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/10Mixing of images, i.e. displayed pixel being the result of an operation, e.g. adding, on the corresponding input pixels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/399Control of the bit-mapped memory using two or more bit-mapped memories, the operations of which are switched in time, e.g. ping-pong buffers

Definitions

  • the present invention relates to a drawing device and a display control device having an alpha blend function.
  • drawing is performed on a frame buffer to store image data, and then data for a display screen is read from a frame buffer and displayed on a display.
  • Alpha blending transparent rendering
  • Background art is a function that combines two images translucently.
  • an inexpensive and low-speed memory such as SDRAM (synchronous DRAM) is used.
  • SDRAM synchronous DRAM
  • drawing device there is a configuration in which a small-capacity high-speed and expensive SRAM is mounted as a temporary memory, drawing is performed on the temporary memory, and the drawing result is written from the temporary memory to a frame buffer.
  • drawing device drawing is performed on high-speed SRAM, so that drawing can be performed at high speed.
  • a temporary memory and a plurality of drawing units for performing drawing with respect to the temporary memory are provided, and by operating them in parallel, the drawing speed can be further increased. It is considered possible. However, in the alpha blending process, it is necessary to refer to the previous drawing result. Therefore, simply preparing a plurality of drawing units and temporary memories each refers to the drawing result of one drawing unit by the other drawing unit. Does not work properly.
  • one temporary memory 2 is provided for the frame buffer 1, and a plurality of drawing units 3 and 4 are used for this temporary memory 2.
  • the configuration of accessing is considered.
  • the SRAM used as the temporary memory 2 cannot process many accesses at the same time. Therefore, when a plurality of drawing units 3 and 4 access the temporary memory 2 at the same time, the access of one of the drawing units 3 is enabled, and the access of the other drawing unit 4 is stopped until the access is completed. It is necessary to wait, and the arbitration unit 5 for that is required.
  • FIG. 15 the configuration of accessing is considered.
  • the SRAM used as the temporary memory 2 cannot process many accesses at the same time. Therefore, when a plurality of drawing units 3 and 4 access the temporary memory 2 at the same time, the access of one of the drawing units 3 is enabled, and the access of the other drawing unit 4 is stopped until the access is completed. It is necessary to wait, and the arbitration unit 5 for that is required.
  • a plurality of temporary memories 6 and 7 are provided for the frame buffer 1, and the drawing units 3 and 4 are connected to the temporary memories 6 and 7 one by one, and each temporary memory 6 and 7 is connected to each temporary memory 6 and 7.
  • a configuration is conceivable in which the contents of memories 6 and 7 are limited to an area on frame buffer 1 that does not overlap at all. In this case, since it is necessary to determine in advance that the shapes to be drawn do not overlap at all, the duplication determination / distribution unit 8 is required.
  • display control devices that perform both alpha blending of drawing and transparent / non-transparent display processing
  • display control devices that perform both alpha blending of rendering and alpha blending of display.
  • Display Transparency Non-transparent processing reads data from multiple display screen areas from the frame buffer and performs transparent / non-transparent processing between screens.
  • a method of setting a specific color as a transparent color and switching whether or not to transmit the light depending on whether or not the color is used see Fig. 17
  • Fig. 17 (a) is the transparency processing screen when there is no drawing alpha blending processing, (b) is the transmissive processing screen, and (c) is the screen showing the transparent Z non-transparent processing result of the display. It is.
  • a pattern in which the lower half of the triangle 12 is embedded in the trapezoid 11 is drawn.
  • Fig. 17 (c) the surroundings of the pattern consisting of the trapezoid 11 and the triangle 12 are the backgrounds 13 and 14 shown in Fig. 17 (b).
  • Triangle 1 2 is not transparent.
  • alpha blending is performed between the image drawn in the frame buffer and the image to be drawn in one screen. It is. There is an initial value in the state where nothing is drawn in the drawing, and the drawing is performed based on the initial value. Generally, the frame buffer is cleared to 0 in advance, and drawing is performed for color correction 0, that is, black.
  • FIG. 18 (b) shows the image shown in FIG. 18 (a) (same as FIG. 17 (a)) subjected to drawing alpha blending of triangle 12.
  • FIG. 18 (a) since the triangle 12 is not transparent, the portion of the trapezoid 11 and the background 15 overlapping the triangle 12 is not visible.
  • Fig. 18 (b) since the triangle 12 is transparent, the color and pattern of the background 15 appear lighter in the upper half 16 of the triangle 12 and the lower part of the triangle 12 In the half 17, the color and pattern of the trapezoid 11 appear faint.
  • the display alpha blending process performs blending between multiple screens where drawing is performed.
  • the data of a plurality of display screen areas is read from the frame buffer, and the processing is performed between the blended screen and the blended screen.
  • the arbitration unit 5 performs arbitration. As a result, access to one drawing unit 3 becomes effective, and the other drawing units 4 are in a standby state. Therefore, there is a problem that the speed of drawing cannot be increased as a whole apparatus, and there is a problem S.
  • the alpha blending process for rendering is performed on black, so that the rendering result of the frame buffer is transparent to black. If this screen is subjected to display blending processing, the black color that has been rendered and blended will be used as the blend screen. Even in the case of transparent / non-transparent processing of the display, the non-transparent part of the display has a blackish color and does not blend with the translucent screen (see Fig. 19).
  • FIG. 19 shows the transparency when there is a drawing alpha blending process.
  • (B) is a screen to be transmitted, and
  • (c) is a screen showing the result of the transmission and non-transmission processing of the display.
  • the triangle 12 is transparent in the trapezoid 11 with the lower half of the triangle 12 embedded, so the upper half 16 of the triangle 12 In, the color and pattern of the background 15 appear pale, and in the lower half 17 of the triangle 12 the color and pattern of the trapezoid 11 appear pale.
  • the upper half of the triangle formed by the trapezoid 11 and the triangle 12 is the background 13 and 14 shown in Fig. 19 (b). In part 16, the color and pattern of the background 15 in FIG. 19 (a) remain faint.
  • the triangle 12 is transparent, so as shown in Fig. 19 (d), the upper half 18 of the triangle 12 has the color of the background 13 of the upper half of Fig. 19 (b). And the pattern must look thin.
  • a screen different from the originally intended screen is obtained. Is displayed on the screen.
  • the present invention has been made in view of the above problems, and achieves high-speed drawing by simultaneously performing drawing processing on a plurality of high-speed temporary memories, and also causes inconsistency during alpha blending processing. It is an object of the present invention to provide a drawing apparatus capable of performing normal drawing without using the same.
  • the present invention can be applied to both the alpha blending process of drawing and the transparent / non-transparent process of display, and both the alpha blending process of rendering and the alpha blending process of display are performed.
  • An object of the present invention is to provide a display control device capable of correctly obtaining a synthesized display result. Disclosure of the invention
  • a drawing apparatus includes a low-speed, large-capacity frame buffer, and a high-speed, small-capacity temporary memory. Then, the temporary memory drawing unit stores the drawing already stored in the temporary memory. The result is blended with the drawing result to be drawn in the temporary memory, and the result of the blending process is stored in the temporary memory.
  • the temporary memory drawing section has the following configuration. Ie, from Ji image color codes to be drawn therefrom in the temporary memory, it has already a first subtractor for subtracting the color code C t of the image drawn in the temporary memory.
  • a first multiplier is provided for multiplying the operation result of the first subtractor by a blend ratio ⁇ of an image to be drawn in a temporary memory.
  • the adder adds the color code C of the image to be drawn in the temporary memory to the result of the operation of the first multiplier, and uses the result of the calculation as a new color code of the image already drawn in the temporary memory.
  • a second subtractor for subtracting, from 1, the blend ratio of an image to be drawn in the temporary memory. Further, the calculation result of the second subtractor, already multiplied by the blend ratio a t the image drawn in the temporary memory, the operation result, already new shelf Purendo ratio of the image rendered in the temporary memory And a second multiplier.
  • the frame buffer drawing section has the following configuration. That is, it has a third multiplier for multiplying the color code C f of the image drawn in the frame buffer by the blend ratio t of the image drawn in the temporary memory. Also,
  • the second addition is performed by adding the color code C t of the image drawn in the temporary memory to the operation result of the multiplier of Step 3, and using the operation result as a new color code of the image drawn in the frame buffer. It has a vessel.
  • the temporary memory drawing unit blends a drawing result already stored in the temporary memory and a drawing result to be drawn in the temporary memory, and the frame buffer drawing unit stores the drawing result in the frame buffer. Blend the rendered result and the rendered result stored in the temporary memory. Therefore, high-speed drawing is possible and alpha blending processing can be performed normally.
  • the drawing unit performs a blending process on a drawing result already stored in the frame buffer and a drawing result to be drawn in the frame buffer from now on. Store the result of the blending process in the frame buffer. Then, the display control unit synthesizes a plurality of drawing results already stored in the frame buffer by performing transmission or non-transmission processing on a pixel-by-pixel basis.
  • the drawing section has the following configuration. That is, it has a first subtractor for subtracting the color code C f of the image already drawn in the frame buffer from the color code C of the image to be drawn in the frame buffer.
  • the image processing apparatus further includes a first multiplier that multiplies the operation result of the first subtractor by a blend ratio ⁇ of an image to be drawn in a frame buffer. Also, the color code C of the image to be drawn in the frame buffer is added to the calculation result of the first multiplier, and the calculation result is used as a new color code of the image already drawn in the frame buffer. It has an adder.
  • a second subtractor for subtracting the blending ratio ⁇ of the image to be drawn in the frame buffer from 1 from 1. Also, the operation result of the second subtractor is multiplied by the blend ratio a f of the image already drawn in the frame buffer, and the operation result is calculated as the new blend ratio of the image already drawn in the frame buffer. And a second multiplier.
  • the display control unit has the following configuration. That is, a third multiplier for multiplying the color code C d of the image being bounded drawing to be transmitted through the screen, the Blend ratio as the image drawn on the transmission screen. Further, the calculation result of the third multiplier, a second adder adding the color coding KC S of the image being drawn on transparently screen, the result of the operation and the synthetic results.
  • the drawing unit blends the drawing result already stored in the frame buffer with the drawing result to be drawn in the frame buffer, and the display control unit is already stored in the frame buffer.
  • Multiple drawing results in pixel units Transparent or non-transparent processing is performed for synthesis, so even if the display is translucent or non-transparent as well as the alpha blending process for drawing, the display result obtained by combining the respective processes can be obtained correctly.
  • the drawing unit performs a blending process on a drawing result already stored in the frame buffer and a drawing result to be drawn in the frame buffer from now on.
  • the result of the blending process is stored in the frame buffer.
  • the display controller blends a plurality of drawing results already stored in the frame buffer by performing a blending process.
  • the drawing unit has the following configuration. That is, it has a first subtractor for subtracting the color code C f of the image already drawn in the frame buffer from the color code of the image to be drawn in the frame buffer.
  • the image processing apparatus further includes a first multiplier for multiplying a calculation result of the first subtractor by a blend ratio ⁇ of an image to be drawn in a frame buffer.
  • the color code C of the image to be drawn in the frame buffer is added to the calculation result of the first multiplier, and the calculation result is added as a new color code of the image already drawn in the frame buffer.
  • It has a vessel.
  • a second subtractor for subtracting the blending ratio ⁇ of the image to be drawn in the frame buffer from 1 from 1. Further, the calculation result of the second subtractor, already multiplied by the blend ratio ct f of the image being drawn in the frame buffer, the operation result, and already new Purendo ratio of the image being drawn in the frame buffer And a second multiplier.
  • the display control unit has the following configuration. That is, a third multiplier for multiplying the color code C d of the image being bounded drawing to be transmitted through the screen, the Blend ratio a s the image drawn on the transmission screen. Also, the color coding KC S of the image being drawn on transparent screen, that having a third subtractor for subtracting the calculation result of the third multiplier. In addition, a fourth multiplier is provided for multiplying the operation result of the third subtractor by the display transmittance x of the transmissive screen and the transmissive screen.
  • the drawing unit blends the drawing result already stored in the frame buffer with the drawing result to be drawn in the frame buffer, and the display control unit is already stored in the frame buffer. Since a plurality of drawing results are blended and synthesized, even if the alpha blending process of the drawing and the alpha blending process of the display are performed, the display result obtained by combining the respective processes can be correctly obtained.
  • FIG. 1 is a block diagram illustrating a schematic configuration of a drawing apparatus according to the first embodiment of the present invention.
  • FIG. 2 is a configuration of a temporary memory drawing unit of the drawing apparatus according to the first embodiment of the present invention.
  • FIG. 3 is a block diagram showing a configuration of a frame buffer drawing unit of the drawing apparatus according to the first embodiment of the present invention.
  • FIG. 4 is a block diagram showing the first embodiment of the present invention.
  • FIG. 5 is a flowchart showing a schematic configuration of a program in a configuration for realizing the drawing apparatus according to the present invention by software processing.
  • FIG. 5 is a block diagram showing a schematic configuration of the drawing apparatus according to the second embodiment of the present invention; FIG.
  • FIG. 6 is a flowchart showing a schematic configuration of a program in a configuration for realizing the drawing apparatus according to the second embodiment of the present invention by software processing
  • FIG. FIG. 8 is a block diagram illustrating a schematic configuration of a display control device according to Embodiment 3
  • FIG. 8 is a block diagram illustrating a configuration of a drawing unit of the display control device according to Embodiment 3 of the present invention
  • FIG. 10 is a block diagram showing a configuration of a display control unit of the display control device according to the third embodiment of the present invention.
  • FIG. 10 is a diagram showing a part of the display control device according to the third embodiment of the present invention.
  • FIG. 11 is a flowchart showing a schematic configuration of a program in a configuration realized by hardware processing.
  • FIG. 11 is a block diagram showing a configuration of a display control unit of a display control device according to a fourth embodiment of the present invention.
  • FIG. 12 is a block diagram showing a schematic configuration of a display control device according to the fifth embodiment of the present invention.
  • FIG. 13 is a block diagram showing a drawing device according to the fifth embodiment of the present invention.
  • FIG. 14 is a flowchart showing a schematic configuration of a program in a configuration realized by air processing.
  • FIG. 14 is a flowchart showing a schematic configuration of a program in a configuration realizing the drawing apparatus according to the sixth embodiment of the present invention by software processing.
  • FIG. 15 is a block diagram showing a schematic configuration of a conventional drawing apparatus, FIG.
  • FIG. 16 is a block diagram showing a schematic configuration of a conventional drawing apparatus
  • FIG. FIG. 18 is a schematic diagram illustrating the result of display transparency and non-transparency processing when there is no drawing alpha blending process.
  • FIG. 18 is a schematic diagram illustrating the drawing result when rendering alpha blending is performed.
  • FIG. 7 is a schematic diagram illustrating a result of display transmission and non-transmission processing when there is drawing alpha blending processing.
  • the operation for the frame buffer and the operation for the temporary memory are performed separately, and therefore, a method of separating the operation will be described first.
  • the color code already drawn in the frame buffer by the blending process expressed by equation (1) becomes C1F .
  • the color code to draw to the second and C 2 the blend ratio used in the second to (0-0 to 1.0) and alpha 2.
  • the frame buffer color C 1F already drawn, blends result C 21F of the force color C 2 to draw the second is represented by the following equation (2).
  • the color code and the alpha element recorded in the temporary memory at each drawing stage are d 'and (1— in the first drawing, and in the second drawing. C 21 ′ and (1— ⁇ 2 ) (1), and in the third drawing, C 321 ′ and (1— “ 3 ) (1 1 2 ) (1—H,). The color code and alpha element recorded in the temporary memory are overwritten.
  • FIG. 1 is a block diagram showing a schematic configuration of a writing apparatus according to the first embodiment. As shown in FIG.
  • the drawing device 20 includes a frame buffer 21 configured by an SDRAM or the like, a frame buffer drawing unit 22 configured to perform drawing on the frame buffer 21, an SRAM, and the like.
  • High-speed first temporary memory 26 with small capacity for example, 64 x 64 pixels
  • high-speed second temporary memory 27 with small capacity for example, 64 x 64 pixels
  • first temporary memory 1st temporary memory drawing unit 23 that draws on 26, 2nd temporary memory
  • a second temporary memory drawing unit 24 for drawing to the memory 27 and a distribution unit 25 for allocating a range in which the figure drawn by the drawing command is accommodated to the first temporary memory 26 or the second temporary memory 27.
  • FIG. 2 is a block diagram showing a configuration of the first temporary memory drawing section 23 (second temporary memory drawing section 24).
  • the first temporary memory drawing unit 23 (the second temporary memory drawing unit 24) includes a first subtractor 31, a first multiplier 32, a first adder 33, a second subtractor 34, and a second The multiplier 35 is provided.
  • the multiplier 35 is provided.
  • the color code and the alpha element of each drawing stage described above are obtained. That is, C and (1—ctj, C 21 ′ and (1— ⁇ 2 ) (1 1, and C 321 , and (1— ⁇ 3 ) (1 ⁇ 2 ) (1 ⁇ :) are obtained.
  • the first subtractor 31 the color code C of the image to be drawn in the future temporary memory 26 (27), already subtracted color code C t of images rendered in the temporary memory 26 (27).
  • the first The multiplier 32 multiplies the operation result of the first subtractor 31 by the blend ratio of the image to be drawn in the temporary memory 26 (27).
  • the first adder 33 adds the color code C of the image to be drawn in the temporary memory 26 (27) to the operation result of the first multiplier 32.
  • the operation result C t 'of the first adder 33 is the image already drawn in the temporary memory 26 (27). Is stored in the temporary memory 26 (27) as a new color code, and when the next temporary memory 26 (27) is drawn, the color code C t of the image that has already been drawn in the temporary memory 26 (27) It becomes.
  • the second subtractor 34 subtracts the blend ratio ⁇ of the image to be drawn in the temporary memory 26 (27) from the first subtractor.
  • the second multiplier 35 multiplies the operation result of the second subtractor 34 by the blend ratio t of the image already drawn in the temporary memory 26 (27).
  • Calculation result a t ' is the second multiplier 35, already as a new blend ratio of the image drawn in the temporary memory 26 (27), stored in the temporary memory 26 (27), the following temporary
  • the render rate a t of the image already drawn on the temporary memory 26 (27) is obtained.
  • FIG. 3 is a block diagram showing the configuration of the frame buffer drawing unit 22.
  • the frame buffer drawing unit 22 includes a third multiplier 36 and a second adder 37.
  • the third multiplier 36 and the second adder 37 By the operation of the third multiplier 36 and the second adder 37, the operation of the above equation (7) is performed.
  • C t C T
  • ⁇ ⁇
  • C f C F.
  • the third multiplier 36 multiplies the color code C f of the image drawn in the frame buffer 21 by the blend ratio o; t of the image drawn in the temporary memory 26 (or 27).
  • Second adder 37 the calculation result of the third multiplier 36, adds the color code C t of the image drawn in ten Borarimemori 26 (or 27).
  • the operation result C f ′ of the second adder 37 (C TF in the above equation (7)) is stored in the frame buffer 21 as a new color code of the image drawn in the frame buffer 21.
  • Next temporary memory 27 (or 26) and frame bar When performing a final operation between the image data and the buffer 21, the color code C f of the image drawn in the frame buffer 21 is obtained.
  • the operation of the drawing apparatus 20 according to the first embodiment will be described.
  • the distribution unit 25 allocates, to the first temporary memory 26, a range in which a figure drawn by a drawing command can be accommodated, for example, a range of 64 ⁇ 64 pixels.
  • the range assigned to the first temporary memory 26 is denoted as range ⁇ for convenience.
  • the distribution unit 25 continues to send the drawing command to the first temporary memory drawing unit 23 as long as the figure drawn by the drawing command falls within the range A.
  • the first temporary memory drawing section 23 performs drawing processing on the first temporary memory 26 in accordance with the sent drawing command.
  • the distribution unit 25 sends a new 6 Allocate an area of 4 ⁇ 64 pixels to the second temporary memory 27.
  • the color code and the alpha element recorded in the first temporary memory 26 are C 1 T and H 1 T , respectively.
  • the range allocated to the second temporary memory 26 is represented as a range ⁇ for convenience.
  • the distributing unit 25 transmits the drawing command to the second temporary memory 26 as long as the figure drawn by the drawing command is within the range ⁇ .
  • the second temporary memory drawing section 24 performs drawing processing on the second temporary memory 27 in accordance with the sent drawing command.
  • the frame buffer drawing unit 22 performs a blending process between the first temporary memory 26 and the frame buffer 21. No, write the result to frame buffer 21.
  • the color and alpha elements recorded in the first temporary memory 26 are C 1T and ⁇ 1T , respectively.
  • color code C 1F wither newly written to the frame buffer 2 1 Is expressed by the following equation (8).
  • the distribution unit 25 sends a new 6 including the figure out of the range ⁇ . Allocate a range of 4 x 6 4 pixels to the first temporary memory 26.
  • the color code and the alpha element recorded in the second temporary memory 27 at this time are C 2T and ⁇ 2 ⁇ , respectively.
  • the range allocated to the first temporary memory 26 at this time is referred to as a range C for convenience, and the distribution unit 25 transmits the drawing command to the first temporary memory 26 as long as the figure drawn by the drawing command falls within the range C. It keeps sending to the temporary memory drawing unit 23 of 1.
  • the first temporary memory drawing unit 23 performs a drawing process on the first temporary memory 26 in accordance with the sent drawing command.
  • the frame buffer drawing unit 22 performs a blending process between the second temporary memory 27 and the frame buffer 21, and writes the result into the frame buffer 21.
  • the color code and alpha component recorded in the second temporary memory 2 7 is a C 2T and alpha 2.tau each frame buffer 2 1 a force error code is C 1F. Therefore, a color code C2F expressed by the following equation (9) is newly written in the frame buffer 21.
  • the operation of the drawing apparatus 20 according to the first embodiment can be realized by software.
  • a processing device (not shown) executes the program of the flowchart shown in FIG. 4 so that the frame buffer drawing section 22, the first temporary memory drawing section 23, and the second temporary memory drawing section 24. And the function of the distribution unit 25 is realized.
  • step S401 when the program 1 is executed, the first temporary memory 26 and the second temporary memory 27 are tallied, and then the range A is allocated to the first temporary memory 26 (step S401). . Then, as long as the figure drawn by the drawing command falls within the range A (step S402: Yes), the drawing process is performed on the first temporary memory 26 (step S403).
  • Step S402 While the drawing process is being performed on the first temporary memory 26, if the figure drawn by the drawing command is out of the range A (Step S402: No), the program 2 is notified (Step S402). S404). In the program 2, the range B is allocated to the second temporary memory 27 (step S406). As long as the figure drawn by the drawing command falls within the range B (step S407: Yes), drawing processing is performed on the second temporary memory 27 (step S408).
  • Step S405 blend processing is performed between the first temporary memory 26 and the frame buffer 21 and the result is written to the frame buffer 21.
  • Step S407 if the figure drawn by the drawing command goes out of the range B while the drawing processing is being performed on the second temporary memory 27 (Step S407: No), the program 1 is notified. (Step S409).
  • step S410 a blending process is performed between the second temporary memory 27 and the frame buffer 21 and the result is written in the frame buffer 21 (step S410).
  • the range C is allocated to the first temporary memory 26 (step S401), and thereafter, steps S402 to S405 are executed.
  • the rendering process already stored in the temporary memory and the rendering result to be rendered in the temporary memory can be independently executed, and the rendering already stored in the frame buffer 21 can be performed. Since the blending process of the result and the drawing result stored in each of the temporary memories 26 and 27 is performed in the order of the drawing commands, high-speed drawing is possible and the alpha blending process can be performed normally.
  • FIG. 5 is a block diagram showing a schematic configuration of a writing apparatus according to the second embodiment.
  • the drawing device 40 according to the second embodiment includes a frame buffer 21, a frame buffer drawing unit 22, a first temporary memory 26, a second temporary memory 27, Select the temporary memory drawing unit 43 that draws on the temporary memory 26 and the second temporary memory 27, and the first temporary memory 26 or the second temporary memory 27. Selection units 44 and 45 are provided.
  • the temporary memory drawing section 43 is the same as the first temporary memory drawing section 23 and the second temporary memory drawing section 24 of the first embodiment. Therefore, the description of the temporary memory drawing unit 43 is omitted.
  • the same components as those in the first embodiment are denoted by the same reference numerals as in the first embodiment, and description thereof will be omitted.
  • the operation of the drawing apparatus 40 according to the second embodiment will be described.
  • the first selection unit 44 allocates, for example, a range of 64 ⁇ 64 pixels (range ⁇ ) in which the figure drawn by the drawing command fits, to the first temporary memory 26. Then, the first selection unit 44 continues to select the first temporary memory 26 as long as the figure drawn by the drawing command falls within the range ⁇ . Accordingly, the temporary memory drawing unit 43 performs a drawing process on the first temporary memory 26 in accordance with the sent drawing command.
  • the second temporary memory 27 is selected by the second selecting section 45. Then, the frame buffer drawing unit 22 performs a blending process between the second temporary memory 27 and the frame buffer 21, and writes the result into the frame buffer 21.
  • the drawing is performed between the second temporary memory 27 and the frame buffer 21.
  • the first selection unit 44 selects a new 64 ⁇ 64 pixel range (range B) including the figure out of range A, Allocate to second temporary memory 27.
  • the color code and the alpha element recorded in the first temporary memory 26 at this time are C 1 T and ⁇ , respectively.
  • the first selection unit 44 continues to select the second temporary memory 27 as long as the figure drawn by the drawing command falls within the range ⁇ . Accordingly, the temporary memory drawing unit 43 performs a drawing process on the second temporary memory 27 according to the sent drawing command.
  • the first temporary memory 26 is selected by the second selecting section 45. Then, the frame buffer drawing unit 22 performs a blending process between the first temporary memory 26 and the frame buffer 21, and writes the result in the frame buffer 21. In the frame buffer 21, a color code C 1 F represented by the above equation (8) is newly written.
  • the drawing is performed between the first temporary memory 26 and the frame buffer 21.
  • the first selection unit 44 selects a new range of 64 ⁇ 64 pixels (range C) including the figure out of range B, Allocate to the first temporary memory 26.
  • the color code and the analog element recorded in the second temporary memory 27 are C 2T and ⁇ 2 ⁇ , respectively.
  • the first selection unit 44 continues to select the first temporary memory 26 as long as the figure drawn by the drawing command falls within the range C. Accordingly, the temporary memory drawing unit 43 performs a drawing process on the first temporary memory 26 according to the sent drawing command.
  • the second temporary memory 27 is selected by the second selecting section 45. Then, the frame buffer drawing unit 22 performs a blending process between the second temporary memory 27 and the frame buffer 21, and writes the result into the frame buffer 21. In the frame buffer 2 1, the (9) color one code C 2 F of the formula newly written.
  • the operation of the drawing apparatus 40 according to the second embodiment described above can be realized by software.
  • the functions of the frame buffer drawing unit 22, the temporary memory drawing unit 43, and the selection units 44 and 45 are realized by the processing device (not shown) executing the program of the flowchart shown in FIG. You.
  • step S60 the first temporary memory 26 and the second temporary memory 27 are cleared, and then the range A is allocated to the first temporary memory 26 (step S60). 1). Then, as long as the figure drawn by the drawing command falls within the range A (step S602: Yes), the drawing process is performed on the first temporary memory 26 (step S603).
  • step S602 While the drawing process is being performed on the first temporary memory 26, if the figure drawn by the drawing command is out of the range A (step S602: No), the program 2 is notified (step S602). S604). In the program 2, a blend process is performed between the first temporary memory 26 and the frame buffer 21 and the result is written to the frame buffer 21 (step S609).
  • program 1 allocates range B to second temporary memory 2 7 (Step S605). Then, as long as the figure drawn by the drawing command falls within the range B (step S606: Yes), the drawing process is performed on the second temporary memory 27 (step S607).
  • step S606 If the figure drawn by the drawing command is out of the range B (step S606: No) while drawing processing is being performed on the second temporary memory 27, the program 2 is notified (step S608). ). In the program 2, the blend processing is performed between the second temporary memory 27 and the frame buffer 21, and the result is written to the frame buffer 21 (step S610). On the other hand, in the program 1, the range C is allocated to the first temporary memory 26 (step S601), and thereafter, steps S602 to S608 are executed.
  • the blending process between the drawing result already stored in the temporary memory and the drawing result to be drawn in the temporary memory is performed.
  • High-speed drawing is possible because the drawing result already stored in the frame buffer 21 is blended with the drawing results stored in the temporary memories 26 and 27 in the order of the drawing commands.
  • the alpha blending process can be performed normally.
  • the calculation for the frame buffer and the calculation for the display are performed separately, so that a method of separating the calculation will be described first.
  • the image is already drawn in the frame buffer.
  • the drawn color code is C 1 F.
  • the color code to draw to the second and C 2 the blend ratio used in the second to (0.0 to 1.0) and alpha 2.
  • the blending result C 21 F of the already drawn frame buffer color and the second drawn color C 2 is expressed by the following equation (11).
  • the color code and the alpha element recorded in the frame buffer at each drawing stage are C and (11-1) in the first drawing, and C 21 , and (1— ⁇ 2 ) (1 - ⁇ ,), and in the third drawing, C 321 , and (1— “ 3 ) (1 ⁇ 1 2 ) (1— J J.
  • the color code recorded in the frame buffer and Alpha elements are overwritten.
  • Such method by drawing Purendo processing performed screen drawing information, i.e. the force error code and the alpha component and C s Oyobihi s respectively, and the screen display blanking trend screen.
  • the operations performed by the display blurring command processing represented by the following equation (16). That is, the calculation for the color C F of the first drawing is replaced with the calculation for the color C D of the displayed blended screen.
  • FIG. 7 is a block diagram showing a schematic configuration of a display control device according to a third embodiment.
  • the display control device 50 of the third embodiment includes a first frame buffer 51 for storing data of a transparent screen, a second frame buffer 52 for storing data of a transparent screen, A drawing unit 53 that draws on the frame buffer 51 of the first frame buffer, and a pixel of the first frame buffer 51 and a pixel of the second frame buffer 52 are blended, and a result of the blending process is displayed on a display device 55 such as a display.
  • a display control unit 54 for displaying is provided.
  • FIG. 8 is a block diagram showing a configuration of the drawing unit 53.
  • the drawing unit 53 includes a first 'subtractor 61, a first multiplier 62, a first adder 63, a second subtractor 64, and a second multiplier 65. .
  • the calculation by the first subtractor 61, the first multiplier 62, the first adder 63, the second subtractor 64, and the second multiplier 65 allows the above-described drawing steps to be performed.
  • the first subtracter 61 subtracts the color code C f of the image already drawn in the first frame buffer 51 from the color code C of the image to be drawn in the first frame buffer 51 now.
  • the first multiplier 62 multiplies the operation result of the first subtractor 61 by a blend ratio ⁇ of an image to be drawn in the first frame buffer 51.
  • the first adder 63 adds the color code C of the image to be drawn in the first frame buffer 51 to the operation result of the first multiplier 62.
  • the operation result C f ′ of the first adder 63 is stored in the first frame buffer 51 as a new color code of the image already drawn in the first frame buffer 51, and When the image is drawn on the first frame buffer 51, the color code KC f of the image already drawn on the first frame buffer 51 is obtained.
  • the second subtractor 64 subtracts from 1 the blend ratio of the image to be drawn in the first frame buffer 51 from now.
  • the second multiplier 65 multiplies the operation result of the second subtractor 64 by the blend ratio f of the image already drawn in the first frame buffer 51.
  • the operation result a f ′ of the second multiplier 65 is stored in the first frame buffer 51 as a new blend ratio of the image already drawn in the first frame buffer 51, and on drawing for the next first frame buffer 5 1, described previously in the first frame buffer 5 1 a blend ratio a f of the image drawn in the next display control unit 5 4 configuration.
  • the first Let the color code and blend ratio of the transparent screen drawn in the frame buffer 51 be C s and a s , respectively, and let the color code of the transmissive screen drawn in the second frame buffer 52 be C d .
  • FIG. 9 is a block diagram showing a configuration of the display control unit 54.
  • the display control unit 54 includes a third multiplier 66 and a second adder 67.
  • the calculation of the expression (16) is performed by the calculation by the third multiplier 66 and the second adder 67.
  • C S C S
  • a s a s
  • C d C D.
  • Third multiplier 6 6 the force error code C d of the image drawn in the second frame buffer 5 2, multiplied by a first frame buffer 5 blend ratio of the image drawn in 1 "s to.
  • the second adder 6 7 the calculation result of the third multiplier 6 6 adds color one code C S of the image drawn in the first frame buffer 5 1.
  • the calculation result C sd of the unit 67 (C SD in the expression (16)) is displayed on the display device 55 .
  • the operation of the display control device 50 according to the third embodiment will be described.
  • the drawing unit 53 draws on the first frame buffer 51 (transparent screen).
  • the display control unit 5.4 reads the data stored in the first frame buffer 51 and the data stored in the second frame buffer 52 (transparent screen), and sets the transmission or non-transmission provided for each pixel. Check the flag that controls transmission (hereinafter referred to as the transmission non-transmission control flag).
  • the display control unit 54 displays the data of the second frame buffer 52 for the pixels for which the transmission / non-transmission control flag is off. Further, the display control unit 54 performs a blending process on the pixel data of the first frame buffer 51 and the pixel data of the second frame buffer 52 for the pixels for which the transmission / non-transmission control flag is on. Display on the display device 55.
  • a part of the operation of the display control device 50 according to the third embodiment can be realized by software.
  • the function of the drawing unit 53 that is, the alpha blending process of the drawing, is realized by the processing device (not shown) executing the program of the flowchart shown in FIG.
  • step S1003 the color code C f and the blend ratio a f are read from the first frame buffer 51.
  • Cf expressed by the following equation (17) is obtained (step S1002).
  • step S1003 the peak value represented by the following equation (18) is obtained (step S1003).
  • step S1004 C f , and f f ′ obtained from the expressions (17) and (18) are written to the first frame buffer 51 (step S1004).
  • the above processing is repeated until the processing is completed for all the pixels (step S1005).
  • C f which is newly written to the first frame buffer 51, and a f ′ force are read out as the color code C f and the pre-ratio a f of the first frame buffer 51.
  • the drawing unit 53 blends the drawing result already stored in the first frame buffer 51 with the drawing result to be drawn in the first frame buffer 51. Then, the display control unit 54 performs a process of transmitting or not transmitting the drawing result stored in the first frame buffer 51 and the drawing result stored in the second frame buffer 52 in pixel units. Even if the transparency and non-transparency processing of the display are performed together with the alpha blending processing of the drawing, the display result obtained by combining the respective processings can be obtained correctly.
  • the display control unit 54 transmits or renders the drawing result stored in the first frame buffer 51 and the drawing result stored in the second frame buffer 52 in pixel units. It is assumed that the composition is made by processing the transmission. In contrast, in the fourth embodiment, the display control unit 54 performs a blend process on the drawing result stored in the first frame buffer 51 and the drawing result stored in the second frame buffer 52. Combine. Other configurations are the same as those of the third embodiment, and a duplicate description will be omitted.
  • the configuration of the display control unit 54 will be described.
  • the color code and the blend ratio of the transmission screen being drawn in the first frame buffer 5 1 and their respective C s Oyobihi s, the are drawn into the second frame buffer 5 2
  • the color code of the transparent screen be C d .
  • FIG. 11 is a block diagram showing a configuration of the display control unit 54.
  • the display control unit 54 includes a third multiplier 71, a third subtractor 72, a fourth multiplier 73, and a second adder 74.
  • the third multiplier 71 and the second adder 74 By the operation of the third multiplier 71 and the second adder 74, the operation of the expression (16) is performed.
  • C S C S
  • a s a s
  • C d C D.
  • the third multiplier 71 is the force Rako FC d of image drawn in the second frame buffer 5 2, multiplies the blend ratio a s the image drawn in the first frame buffer 5 1 .
  • the third subtracter 72, the color code C s of the image drawn in the first frame buffer 5 1 subtracts the third multiplier 7 1 of the result.
  • Fourth multiplier 7 3, the third subtractor 7 2 of the result is multiplied by the blend ratio a s the image drawn in the first frame buffer 5 1.
  • the second adder 74 adds the operation result of the third multiplier 71 to the operation result of the fourth multiplier 73.
  • the display device 55 displays the output C sd of the second adder 74.
  • the operation result C sd of the second adder 74 is expressed by the following equation (19).
  • the drawing unit 53 draws on the first frame buffer 51 (transparent screen).
  • the display control unit 54 reads the data stored in the first frame buffer 51 and the data stored in the second frame buffer 52 (transparent screen), and calculates the display transmittance ⁇ ⁇ . Perform blend processing. Then, the display control unit 54 displays a result obtained by blending the pixel data of the first frame buffer 51 and the pixel data of the second frame buffer 52 with the display transmittance ⁇ .
  • the functions of the drawing unit 53 are realized by the processing device (not shown) executing the program of the flowchart shown in FIG. 10. be able to.
  • the description of the flowchart shown in FIG. 10 will not be repeated here because the description is redundant.
  • the drawing unit 53 blends the drawing result already stored in the first frame buffer 51 with the drawing result to be drawn in the first frame buffer 51. Then, the display control unit 54 blends the drawing result stored in the first frame buffer 51 with the drawing result stored in the second frame buffer 52 and synthesizes the drawing result. Even if the alpha blending process of the display is performed together with the alpha blending process of, the display result obtained by combining the respective processes can be obtained correctly.
  • FIG. 12 is a block diagram showing a schematic configuration of a display control device according to the fifth embodiment.
  • a display control device 70 according to the fifth embodiment includes a first frame buffer 51 for storing data of a transmissive screen, and a second frame buffer for storing data of a transmissive screen. 5 2, Drawing on the first frame buffer 51 Drawing unit (first drawing unit) 53 3, Blending process of the pixels of the first frame buffer 51 and the pixels of the second frame buffer 52 A second drawing unit 71, a third frame buffer 72 for storing the blending result of the second drawing unit 71, and a display device 5 such as a display for storing the data stored in the third frame buffer 72. 5 is provided with a display control section 73 for displaying.
  • the second drawing unit 71 has the same blending function as the display control unit 54 of the third embodiment. That is, the second drawing unit 71 has the configuration shown in FIG. In the fifth embodiment, the display control unit 73 is not provided with a blend processing function.
  • the operation of the display control device 70 of the fifth embodiment will be described.
  • the first drawing unit 53 draws on the first frame buffer 51 (transparent screen).
  • the second drawing unit 71 reads out the data stored in the first frame buffer 51 and the data stored in the second frame buffer 52 (transparent screen), and is provided for each pixel. Check the transmission non-transmission control flag.
  • the second drawing unit 71 stores the data of the second frame buffer 52 in the third frame buffer 72 for the pixels for which the transmission / non-transmission control flag is off.
  • the second drawing unit 71 blends the pixel data of the first frame buffer 51 with the pixel data of the second frame buffer 52 for the pixels for which the transmission / non-transmission control flag is on.
  • the processing result is stored in the third frame buffer 72.
  • the display controller 73 reads out the third frame buffer 72 and displays the content on a display device 55 such as a display.
  • the operation of the display control device 70 of the fifth embodiment can be realized by software.
  • the functions of the first drawing unit 53 and the second drawing unit 71 are realized by a processing device (not shown) executing the program of the flowchart shown in FIG.
  • step S1304 C f , and ⁇ obtained from the expressions (17) and (18) are written to the first frame buffer 51 (step S1304).
  • the above processing is repeated until the processing is completed for all the pixels (step S1305).
  • Ru read as a new first frame buffer 5 1 the written C f 'and the ⁇ -Pas mosquito first frame buffer 5 1 color coding KC f and blend ratio a f.
  • step S 1305 When the process of writing C f , and a f , into the first frame buffer 51 is completed for all the pixels (step S 1305: Yes), the color of the transparent screen is transmitted from the first frame buffer 51. reading the code C s and blend ratio ct s (stearyl-up S 1 306). Further, read out the color code C d of the transparent screen from the second frame buffer 52 (Step S 1 307). Then, the following equation (20) is operated to obtain C sd (step S1308).
  • step S1309: No If the transmission non-transparency control flag is non-transparent (step S1309: No), C sd is written into the third frame buffer 72 (step S1310 ), and on the other hand, the transmission / If the non-transparency control flag is transparent (step S1309: Yes), C sd is not written to the third frame buffer 72. Until the processing for all the pixels is completed (step S1311), steps S1306 to S1311 are repeated.
  • the first drawing unit 53 outputs drawing results already stored in the first frame buffer 51, and drawing results to be drawn in the first frame buffer 51.
  • the second drawing unit 71 forces s, the drawing result stored in the first frame buffer 51 and the drawing result stored in the second frame buffer 52 are transmitted or non- Since the composition is performed by the transparency processing, the display result obtained by combining the respective processings can be obtained correctly even if the transparency and non-transmission processing of the display are performed together with the alpha blending processing of the drawing. (Embodiment 6)
  • the same configuration as that of the display control device 70 of the fifth embodiment shown in FIG. 12 is used to perform the same alpha blending process and alpha blending process as in the fourth embodiment. Things. Since the overall configuration is as shown in FIG. 12, duplicate description will be omitted.
  • the second drawing unit 71 has the same blending function as the display control unit 54 of the third embodiment. That is, the second drawing unit 71 has the configuration shown in FIG. Further, the display control section 73 is not provided with a blend processing function.
  • the operation of the display control device 70 of the sixth embodiment will be described.
  • the first drawing unit 53 draws on the first frame buffer 51 (transparent screen).
  • the second drawing unit 71 reads out the data stored in the first frame buffer 51 and the data stored in the second frame buffer 52 (transparent screen), and displays the display transmittance ⁇ ⁇ To perform the blending process.
  • the second rendering unit 71 includes a first frame buffer 5 1 of pixel data and the second frame buffer 5 second pixel data, the Purendo treated results in display transmittance alpha chi third frame Stored in buffer 72.
  • the display controller 73 reads out the third frame buffer 72 and displays the content on a display device 55 such as a display.
  • the operation of the display control device 70 of the sixth embodiment can be realized by software.
  • the functions of the first drawing unit 53 and the second drawing unit 71 are realized by the processing device (not shown) executing the program of the flowchart shown in FIG.
  • step S 1404 C f ′ and ⁇ obtained from the expressions (17) and (18) are written into the first frame buffer 51 (step S 1404).
  • the above processing is repeated until the processing is completed for all the pixels (step S1405).
  • C and a f ′ I newly written to the first frame buffer 51 are read out as the color code C f and the blend ratio a f of the first frame buffer 51.
  • step S 1405 For all pixels, if the first frame buffer 51 C f, and a f 'processing write the is completed (step S 1405: Y es) ⁇ color code C of the transmission screen from the first frame buffer 51 s and the blending ratio s are read out (step S1406). Further, read out the color code C d of the transparent screen from the second frame buffer 52 (step S 1407). Then, the calculation of the above equation (19) is performed to obtain C sd (step S1408).
  • Step S1406 to S1410 are repeated until the processing for all pixels is completed (step S1410).
  • the first drawing unit 53 outputs a drawing result already stored in the first frame buffer 51 and a drawing result to be drawn in the first frame buffer 51.
  • the blending process is performed, and the second drawing unit 71 blends the drawing result stored in the first frame buffer 51 with the drawing result stored in the second frame buffer 52 by blending. Even if the alpha blending process of the display is performed together with the alpha blending process of the drawing, the display result obtained by combining the processes can be obtained correctly.
  • the present invention is not limited to the above-described embodiments, but can be variously modified.
  • a drawing apparatus capable of performing high-speed drawing and capable of normally performing the alpha blending process is provided. can get. Also, with the alpha blending process of drawing In particular, a display control device capable of correctly obtaining a display result obtained by combining the respective processes even when performing the transparent Z non-transparent process of the display and the alpha blend process of the display is obtained.
  • the present invention is suitable for normally and rapidly drawing an alpha-blended drawing result without inconsistency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Graphics (AREA)
  • Image Generation (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)

Abstract

 低速のフレームバッファ(21)と、高速で、かつ記憶容量の小さい第1のテンポラリメモリ(26)および第2のテンポラリメモリ(27)とを備える。第1のテンポラリメモリ描画部(23)は、第1のテンポラリメモリ(26)に既に記憶されている描画結果と、第1のテンポラリメモリ(26)にこれから描画する描画結果とをブレンド処理し、そのブレンド処理結果を第1のテンポラリメモリ(26)に格納する。第2のテンポラリメモリ描画部(24)と第2のテンポラリメモリ(27)も同様とする。フレームバッファ描画部(22)は、フレームバッファ(21)に既に記憶されている描画結果と、第1のテンポラリメモリ(26)および第2のテンポラリメモリ(27)に記憶されている描画結果とをブレンド処理し、そのブレンド処理結果をフレームバッファ(21)に格納する。

Description

明 細 書 描画装置およぴ表示制御装置 技術分野
本発明は、 アルファプレンド機能を具えた描画装置および表示制御装置に関す る。 コンピュータシステムやカーナビゲーシヨンシステムなどでは、 フレームバ ッファに対して描画をおこなって画像データを記憶させた後、 フレームバッファ から表示画面分のデータを読み出してディスプレイに表示している。 アルファブ レンド処理 (透過描画処理) は、 二つの画像を半透明合成する機能である。 背景技術
一般に、 フレームバッファには大きなメモリ空間が要求されるので、 S D R A M (シンクロナス D R AM) 等の安価で低速なメモリが用いられる。 このような 描画装置において、 テンポラリメモリとして高速で高価な S R AMを小容量搭載 し、 そのテンポラリメモリに対して描画をおこない、 その描画結果をテンポラリ メモリからフレームバッファに書き出す構成のものがある。 この描画装置では、 高速な S R AMに対して描画をおこなうので、 描画を高速におこなうことができ る。
このようなテンポラリメモリを搭載した描画装置において、 テンポラリメモリ と、 テンポラリメモリに対して描画をおこなう描画部を複数ずつ設け、 それらを 並列に動作させれば、 より一層描画の高速化を図ることが可能であると考えられ る。 しかし、 アルファブレンド処理では、 以前の描画結果を参照する必要がある ため、 単純に描画部とテンポラリメモリを複数ずつ用意しただけでは、 一方の描 画部の描画結果をもう一方の描画部が参照する際に正しく動作しない。
そこで、 第 1 5図に示すように、 フレームバッファ 1に対して一つのテンポラ リメモリ 2を設け、 このテンポラリメモリ 2に対して複数の描画部 3, 4がァク セスするという構成が考えられる。 この場合、 テンポラリメモリ 2として用いら れる S R AMは、 同時に多くのアクセスを処理することができない。 したがって 、 複数の描画部 3, 4が同時にテンポラリメモリ 2にアクセスした場合に、 いず れか一つの描画部 3のアクセスを有効とし、 そのアクセスが終了するまで他の描 画部 4のアクセスを待機させる必要があり、 そのための調停部 5が必要となる。 あるいは、 第 1 6図に示すように、 フレームバッファ 1に对して複数のテンポ ラリメモリ 6, 7を設け、 各テンポラリメモリ 6, 7に一つずつ描画部 3, 4を 接続するとともに、 各テンポラリメモリ 6, 7の内容をフレームバッファ 1上で 全く重ならない領域に限定するという構成が考えられる。 この場合、 描画する図 形が全く重ならないことを予め判定する必要があるため、 重複判定 ·分配部 8が 必要となる。
また、 描画のアルファプレンド処理と表示の透過 非透過処理の両方をおこな う表示制御装置や、 描画のアルファブレンド処理と表示のアルファブレンド処理 の両方をおこなう表示制御装置がある。
表示の透過 非透過処理は、 フレームバッファから複数の表示画面領域のデー タを読み出し、 画面相互間で透過/非透過処理をおこなうものである。 この場合 、 特定の色を透過色とし、 その色であるか否かによって透過するかしないかを切 り替える方法 (第 1 7図参照) や、 色情報に透過率情報を加えておき、 その透過 率でもつて表示の透過 非透過処理をおこなう方法がある。
第 1 7図では、 (a ) が描画アルファブレンド処理がない場合の透過処理画面 であり、 (b ) が被透過処理画面であり、 (c ) が表示の透過 Z非透過処理結果 を示す画面である。 第 1 7図 (a ) の透過処理画面では、 台形 1 1に三角形 1 2 の下半部を埋め込んだような図柄が描かれている。 第 1 7図 (c ) では、 その台 形 1 1と三角形 1 2からなる図柄の周囲が、 第 1 7図 (b ) に示す背景 1 3, 1 4となっているが、 台形 1 1と三角形 1 2は透けてはいない。
描画のアルファブレンド処理は、 一つの画面内で、 フレームバッファに描画さ れた画像と、 これから描画する画像との間でアルファプレンド処理をおこなうも のである。 描画には何も描かれていない状態の初期値があり、 その初期値に対し て描画をおこなう。 一般的には、 フレームバッファを予め 0でクリアしておき、 カラー ί直 0、 すなわち黒に対して描画をおこなう。
第 1 8図 (b ) は、 第 1 8図 (a ) に示す画像 (第 1 7図 (a ) と同じ) に対 して、 三角形 1 2を描画アルファブレンド処理したものである。 第 1 8図 (a ) では、 三角形 1 2が透けていないので、 台形 1 1や背景 1 5の、 三角形 1 2と重 なる部分は見えていない。 それに対して、 第 1 8図 (b ) では、 三角形 1 2が透 けているので、 三角形 1 2の上半部 1 6では背景 1 5の色や模様が薄く見え、 三 角形 1 2の下半部 1 7では台形 1 1の色や模様が薄く見えている。
表示のアルファブレンド処理は、 描画処理がおこなわれる複数の画面間でブレ ンド処理をおこなうものである。 フレームバッファから複数の表示画面領域のデ ータを読み出し、 プレンド画面と被プレンド画面との間での処理となる。
しかしながら、 第 1 5図に示す構成の装置では、 複数の描画部 3, 4が同時に テンポラリメモリ 2にアクセスした場合に、 調停部 5により調停がおこなわれる 。 その結果、 一つの描画部 3のアクセスが有効となり、 その他の描画部 4は待機 状態となるため、 装置全体として描画の高速化を図ることができないという問題 点、力 Sある。
また、 第 1 6図に示す構成の装置では、 重複判定 ·分配部 8が、 描画する図形 が全く重ならないことを予め判定するのに時間がかかるため、 装置全体として描 画の高速化を図ることができないという問題点がある。
また、 描画のアルファブレンド処理と表示のアルファブレンド処理の両方をお こなう場合、 描画のアルファブレンド処理が黒に対しておこなわれるので、 フレ ームバッファの描画結果は黒が透過される。 この画面を表示プレンド処理した場 合、 描画ブレンドの済んだ黒つぼい色が、 ブレンド画面とされてしまう。 表示の 透過/非透過処理の場合でも、 表示非透過部分が黒っぽい色になり、 被透過画面 とのブレンドはおこなわれない (第 1 9図参照) 。
すなわち、 第 1 9図では、 (a ) が描画アルファブレンド処理がある場合の透 過処理画面であり、 (b ) が被透過処理画面であり、 (c ) が表示の透過 非透 過処理結果を示す画面である。 第 1 9図 (a ) の透過処理画面では、 台形 1 1に 三角形 1 2の下半部を埋め込んだような図柄において、 三角形 1 2が透けている ので、 三角形 1 2の上半部 1 6では背景 1 5の色や模様が薄く見え、 三角形 1 2 の下半部 1 7では台形 1 1の色や模様が薄く見えている。 第 1 9図 (c ) では、 その台形 1 1と三角形 1 2からなる図柄の周囲が、 第 1 9図 (b ) に示す背景 1 3, 1 4となっている力 三角形 1 2の上半部 1 6では第 1 9図 (a ) の背景 1 5の色や模様が薄く見えたままである。
本来ならば、 三角形 1 2が透けるので、 第 1 9図 (d ) に示すように、 三角形 1 2の上半部 1 8では第 1 9図 (b ) の上半部の背景 1 3の色や模様が薄く見え なければならない。 このように、 従来は、 描画のアルファブレンド処理と表示の 透過 非透過処理の両方をおこなったり、 あるいは描画のアルファブレンド処理 と表示のアルファブレンド処理の両方をおこなうと、 本来意図する画面とは異な る画面が表示されてしまうという問題点がある。
本発明は、 上記問題点に鑑みてなされたものであって、 複数の高速なテンポラ リメモリに対する描画処理を同時におこなうことにより描画の高速化を図り、 か つ、 アルファブレンド処理時に、 不整合を起こさずに正常な描画をおこなうこと ができる描画装置を提供することを目的とする。
また、 本発明は、 描画のアルファブレンド処理と表示の透過ノ非透過処理の両 方をおこなっても、 また描画のアルファブレンド処理と表示のアルファブレンド 処理の両方をおこなっても、 それぞれの処理が合成された表示結果を正しく得る ことができる表示制御装置を提供することを目的とする。 発明の開示
上記目的を達成するため、 本発明にかかる描画装置は、 低速で大容量のフレー ムバッファと、 高速で、 かつ記憶容量の小さいテンポラリメモリとを備える。 そ して、 テンポラリメモリ描画部は、 テンポラリメモリに既に記憶されている描画 結果と、 テンポラリメモリにこれから描画する描画結果とをブレンド処理し、 そ のプレンド処理結果をテンポラリメモリに格納する。 フレームバッファ描画部は
、 フレームバッファに既に記憶されている描画結果と、 テンポラリメモリに記憶 されている描画結果とをブレンド処理し、 そのプレンド処理結果をフレームバッ ファに格納する。
この発明において、 テンポラリメモリ描画部は、 つぎの構成となっている。 す なわち、 これからテンポラリメモリに描画する画像のカラーコードじから、 既に テンポラリメモリに描画されている画像のカラーコード C tを減算する第 1の減算 器を有する。 また、 第 1の減算器の演算結果に、 これからテンポラリメモリに描 画する画像のブレンド率 αを乗算する第 1の乗算器を有する。 また、 第 1の乗算 器の演算結果に、 これからテンポラリメモリに描画する画像のカラーコード Cを 加算し、 その演算結果を、 既にテンポラリメモリに描画されている画像の新たな カラーコードとする加算器を有する。 また、 1から、 これからテンポラリメモリ に描画する画像のブレンド率ひを減算する第 2の減算器を有する。 また、 第 2の 減算器の演算結果に、 既にテンポラリメモリに描画されている画像のブレンド率 a tを乗算し、 その演算結果を、 既にテンポラリメモリに描画されている画像の新 たなプレンド率とする第 2の乗算器を有する。
さらに、 フレームバッファ描画部は、 つぎの構成となっている。 すなわち、 フ レームバッファに描画されている画像のカラーコ一ド C fに、 テンポラリメモリに 描画されている画像のブレンド率ひ tを乗算する第 3の乗算器を有する。 また、 第
3の乗算器の演算結果に、 テンポラリメモリに描画されている画像のカラーコー ド C tを加算し、 その演算結果を、 フレームバッファに描画されている画像の新た なカラーコードとする第 2の加算器を有する。
この発明によれば、 テンポラリメモリ描画部が、 テンポラリメモリに既に記憶 されている描画結果と、 テンポラリメモリにこれから描画する描画結果とをブレ ンド処理し、 フレームバッファ描画部が、 フレームバッファに既に記憶されてい る描画結果と、 テンポラリメモリに記憶されている描画結果とをプレンド処理す るので、 高速描画が可能で、 かつアルファブレンド処理を正常におこなうことが できる。
また、 上記目的を達成するため、 本発明にかかる表示制御装置では、 描画部は 、 フレームバッファに既に記憶されている描画結果と、 フレームバッファにこれ から描画する描画結果とをブレンド処理し、 そのブレンド処理結果をフレームバ ッファに格納する。 そして、 表示制御部は、 フレームバッファに既に記憶されて いる複数の描画結果を画素単位で透過もしくは非透過の処理をして合成する。 この発明において、 描画部は、 つぎの構成となっている。 すなわち、 これから フレームバッファに描画する画像のカラーコード Cから、 既にフレームバッファ に描画されている画像のカラーコード C fを減算する第 1の減算器を有する。 また 、 第 1の減算器の演算結果に、 これからフレームバッファに描画する画像のブレ ンド率 αを乗算する第 1の乗算器を有する。 また、 第 1の乗算器の演算結果に、 これからフレームバッファに描画する画像のカラ一コード Cを加算し、 その演算 結果を、 既にフレームバッファに描画されている画像の新たなカラーコードとす る加算器を有する。 また、 1から、 これからフレームバッファに描画する画像の ブレンド率 αを減算する第 2の減算器を有する。 また、 第 2の減算器の演算結果 に、 既にフレームバッファに描画されている画像のブレンド率 a fを乗算し、 その 演算結果を、 既にフレームバッファに描画されている画像の新たなプレンド率と する第 2の乗算器を有する。
さらに、 表示制御部は、 つぎの構成となっている。 すなわち、 被透過画面に描 画されている画像のカラーコード C dに、 透過画面に描画されている画像のブレン ド率 a sを乗算する第 3の乗算器を有する。 また、 第 3の乗算器の演算結果に、 透 過画面に描画されている画像のカラーコー K C Sを加算し、 その演算結果を合成結 果とする第 2の加算器を有する。
この発明によれば、 描画部が、 フレームバッファに既に記憶されている描画結 果と、 フレームバッファにこれから描画する描画結果とをブレンド処理し、 表示 制御部が、 フレームバッファに既に記憶されている複数の描画結果を画素単位で 透過もしくは非透過の処理をして合成するので、 描画のアルファブレンド処理と ともに、 表示の透過 非透過処理をおこなっても、 それぞれの処理が合成された 表示結果を正しく得ることができる。
また、 上記目的を達成するため、 本発明にかかる表示制御装置では、 描画部は 、 フレームバッファに既に記憶されている描画結果と、 フレームバッファにこれ から描画する描画結果とをプレンド処理し、 そのプレンド処理結果をフレームバ ッファに格納する。 そして、 表示制御部は、 フレームバッファに既に記憶されて いる複数の描画結果をプレンド処理して合成する。
' この発明において、 描画部は、 つぎの構成となっている。 すなわち、 これから フレームバッファに描画する画像のカラーコードじから、 既にフレームバッファ に描画されている画像のカラ一コード C fを減算する第 1の減算器を有する。 また 、 第 1の減算器の演算結果に、 これからフレームバッファに描画する画像のブレ ンド率 αを乗算する第 1の乗算器を有する。 また、 第 1の乗算器の演算結果に、 これからフレームバッファに描画する画像のカラーコード Cを加算し、 その演算 結果を、 既にフレームバッファに描画されている画像の新たなカラーコードとす る加算器を有する。 また、 1から、 これからフレームバッファに描画する画像の ブレンド率 αを減算する第 2の減算器を有する。 また、 第 2の減算器の演算結果 に、 既にフレームバッファに描画されている画像のブレンド率 ct fを乗算し、 その 演算結果を、 既にフレームバッファに描画されている画像の新たなプレンド率と する第 2の乗算器を有する。
さらに、 表示制御部は、 つぎの構成となっている。 すなわち、 被透過画面に描 画されている画像のカラーコード C dに、 透過画面に描画されている画像のブレン ド率 a sを乗算する第 3の乗算器を有する。 また、 透過画面に描画されている画像 のカラーコー K C Sから、 第 3の乗算器の演算結果を減算する第 3の減算器を有す る。 また、 第 3の減算器の演算結果に、 透過画面と被透過画面の表示透過率ひ xを 乗算する第 4の乗算器を有する。 また、 第 4の乗算器の演算結果と、 第 3の乗算 器の演算結果とを加算し、 その演算結果を合成結果とする第 2の加算器を有する この発明によれば、 描画部が、 フレームバッファに既に記憶されている描画結 果と、 フレームバッファにこれから描画する描画結果とをブレンド処理し、 表示 制御部が、 フレームバッファに既に記憶されている複数の描画結果をブレンド処 理して合成するので、 描画のアルファブレンド処理とともに、 表示のアルファブ レンド処理をおこなっても、 それぞれの処理が合成された表示結果を正しく得る ことができる。 図面の簡単な説明
第 1図は、 本発明の実施の形態 1にかかる描画装置の概略構成を示すブロック 図であり、 第 2図は、 本発明の実施の形態 1にかかる描画装置のテンポラリメモ リ描画部の構成を示すブロック図であり、 第 3図は、 本発明の実施の形態 1にか かる描画装置のフレームバッファ描画部の構成を示すプロック図であり、 第 4図 は、 本発明の実施の形態 1にかかる描画装置をソフトウエア処理によって実現す る構成におけるプログラムの概略構成を示すフローチャートであり、 第 5図は、 本発明の実施の形態 2にかかる描画装置の概略構成を示すプロック図であり、 第 6図は、 本発明の実施の形態 2にかかる描画装置をソフトウエア処理によって実 現する構成におけるプログラムの概略構成を示すフローチャートであり、 第 7図 は、 本発明の実施の形態 3にかかる表示制御装置の概略構成を示すブロック図で あり、 第 8図は、 本発明の実施の形態 3にかかる表示制御装置の描画部の構成を 示すブロック図であり、 第 9図は、 本発明の実施の形態 3にかかる表示制御装置 の表示制御部の構成を示すブロック図であり、 第 1 0図は、 本発明の実施の形態 3にかかる表示制御装置の一部をソフトウエア処理によって実現する構成におけ るプログラムの概略構成を示すフローチャートであり、 第 1 1図は、 本発明の実 施の形態 4にかかる表示制御装置の表示制御部の構成を示すプロック図であり、 第 1 2図は、 本発明の実施の形態 5にかかる表示制御装置の概略構成を示すプロ ック図であり、 第 1 3図は、 本発明の実施の形態 5にかかる描画装置をソフトゥ エア処理によって実現する構成におけるプログラムの概略構成を示すフローチヤ ートであり、 第 14図は、 本発明の実施の形態 6にかかる描画装置をソフ トゥェ ァ処理によって実現する構成におけるプログラムの概略構成を示すフローチヤ一 トであり、 第 15図は、 従来の描画装置の概略構成を示すブロック図であり、 第 16図は、 従来の描画装置の概略構成を示すブロック図であり、 第 17図は、 描 画アルフアブレンド処理がない場合の表示透過 非透過処理結果を説明する模式 図であり、 第 18図は、 描画アルファブレンド処理した場合の描画結果を説明す る模式図であり、 第 19図は、 描画アルファブレンド処理がある場合の表示透過 非透過処理結果を説明する模式図である。 発明を実施するための最良の形態
以下に、 本発明の実施の形態について図面を参照しつつ詳細に説明する。
(実施の形態 1 )
実施の形態 1では、 フレームバッファに対する演算と、 テンポラリメモリに対 する演算とを分離しておこなうので、 まず、 この演算の分離の仕方について説明 する。
フレームバッファに既に描画されているカラーコードを CFとし、 1番目に描画 するカラーコードを とする。 そして、 1番目に使用するブレンド率 (0. 0〜 1. 0) をひ ,とすると、 既に描画されているフレームバッファカラー CFと、 1 番目に描画するカラー とのブレンド結果 C1Fは、 つぎの (1) 式で表される。
C 1F= α! ^! + ( 1— a J し F · · · ( 丄 )
この (1) 式で表されるブレンド処理によって、 フレームバッファに既に描画 されているカラーコードは C1Fとなる。 つぎに、 2番目に描画するカラーコード を C2とし、 2番目に使用するブレンド率 (0· 0〜1. 0) を α2とする。 この 場合、 既に描画されているフレームバッファカラー C1Fと、 2番目に描画する力 ラー C2とのブレンド結果 C21Fは、 つぎの (2) 式で表される。
し 21F= a 2し 2 + 、 1— CK 2) C IF · · · ( 2 ) この (2) 式で表されるブレンド処理によって、 フレームバッファに既に描画 されているカラ一コードは C 21 Fとなる。 したがって、 3番目に描画するカラーコ ードを C3とし、 3番目に使用するブレンド率 (0. 0〜1. 0) を α3とすると 、 既に描画されているフレームバッファカラー C 21 Fと、 3番目に描画するカラー C3とのブレンド結果 C321 Fは、 つぎの (3) 式で表される。
し 3'2 i C 3+ 、 1— α3) C2IF · · · (3)
以下、 省略するが、 4番目以降に描画するカラーとのブレンド結果についても 同様である。 上述した (1) 〜 (3) 式の演算をそれぞれつぎの (4) 〜 (6) 式のように変形する。 この演算の変形は、 4番目以降に描画するカラーとのブレ ンド結果についても同様である。
IF= « 1 ! + 1 ~ a iJ C F
= C,' + ( Ι - α ,) CF · · · (4)
Figure imgf000012_0001
= 2 C 2 + ( 1— a 2) C! ' + ( 1— a 2) (1— a ) C F
= C21, + ( 1— a 2) ( 1— a i) CF · · · (5)
Figure imgf000012_0002
= 3C3+ ( 1— a 3) C 21 ' + ( 1— a 3) ( 1— a 2) (
C,
= C ' + l— 3) 、 1一 a 2) 1— a 1) CF · · · (6) 上述したように演算を変形することにより、 テンポラリメモリに対する演算 C 、 C21, および C321, と、 フレームバッファに対する演算 — CF、 (1 - a2) (1一 C ) CFおよび (1— a3) ( 1 - a 2) (1一 a J CFが分離 される。 したがって、 テンポラリメモリが複数存在する場合、 各テンポラリメモ リで独立して、 テンポラリメモリに対する演算 、 C21' および C321' をお こなうことができる。
そして、 各描画段階においてテンポラリメモリに記録されるカラ一コードとァ ルファ要素は、 1回目の描画では d' と (1— となり、 2回目の描画では C21' と (1— α2) (1 となり、 3回目の描画では C321' と (1— "3 ) (1一ひ 2) (1— ひ,) となる。 以下、 同様にして、 テンポラリメモリに記録 されるカラーコードとアルファ要素は上書きされていく。
テンポラリメモリに格納された描画情報、 すなわちカラーコードおよびアルフ ァ要素をそれぞれ CTおよび ctTとすると、 最終的にテンポラリメモリとフレーム バッファとの間でおこなう演算は、 つぎの (7) 式で表される。
TF=GT+aTF · · · ( / )
上述したように、 テンポラリメモリが複数存在する場合、 テンポラリメモリに 対する演算 CTは、 各テンポラリメモリで独立しておこなうことができる。 ただし 、 複数のテンポラリメモリとフレームバッファとの間で上記 (7) 式の演算をお こなう際には、 上記 (7) 式の演算対象となるテンポラリメモリの順番を、 描画 命令の順番に合わせる必要がある。
具体的に説明すると、 たとえば 1番目から 5番目までの描画命令に基づく描画 を第 1のテンポラリメモリに対しておこない、 6番目から 10番目までの描画命 令に基づく描画を第 2のテンポラリメモリに対しておこなう場合、 それぞれのテ ンポラリメモリに対する演算 CTは、 並行しておこなうことができる。 そして、 テ ンポラリメモリとフレームバッファとの間の最終的な演算 CTFについては、 第 1 のテンポラリメモリについての演算を先におこない、 そのあとに第 2のテンポラ リメモリについての演算をおこなうことにより、 整合性を保つことができる。 つぎに、 実施の形態 1の具体的な構成について説明する。 第 1図は、 実施の形 態 1の描画装置の概略構成を示すブロック図である。 第 1図に示すように、 実施 の形態 1の描画装置 20は、 SDRAM等で構成されるフレームバッファ 21、 フレームバッファ 21に対して描画をおこなうフレームバッファ描画部 22、 S RAM等で構成される小容量 (たとえば 64 X 64ピクセル) で高速な第 1のテ ンポラリメモリ 26、 SRAM等で構成される小容量 (たとえば 64 X 64ピク セル) で高速な第 2のテンポラリメモリ 27、 第 1のテンポラリメモリ 26に対 して描画をおこなう第 1のテンポラリメモリ描画部 23、 第 2のテンポラリメモ リ 27に対して描画をおこなう第 2のテンポラリメモリ描画部 24、 および描画 命令により描かれる図形が収まる範囲を、 第 1のテンポラリメモリ 26または第 2のテンポラリメモリ 27に割り当てる分配部 25を備えている。
つぎに第 1のテンポラリメモリ描画部 23および第 2のテンポラリメモリ描画 部 24の構成について説明する。 ただし、 第 1のテンポラリメモリ描画部 23と 第 2のテンポラリメモリ描画部 24とは同一構成であるので、 ここでは第 1のテ ンポラリメモリ描画部 23について説明し、 第 2のテンポラリメモリ描画部 24 については、 符号を括弧書きにして説明を省略する。 また、 この説明においては 、 既にテンポラリメモリ 26, 27に描画されている画像のカラーコードおよび ブレンド率をそれぞれ Ctおよび a tとし、 これからテンポラリメモリ 26, 27 に描画する画像のカラーコードおよびプレンド率をそれぞれ Cおよびひとする。 第 2図は、 第 1のテンポラリメモリ描画部 23 (第 2のテンポラリメモリ描画 部 24) の構成を示すブロック図である。 第 1のテンポラリメモリ描画部 23 ( 第 2のテンポラリメモリ描画部 24) は、 第 1の減算器 31、 第 1の乗算器 32 、 第 1の加算器 33、 第 2の減算器 34および第 2の乗算器 35を備えている。 これら第 1の減算器 31、 第 1の乗算器 32、 第 1の加算器 33、 第 2の減算器 34および第 2の乗算器 35による演算によって、 上述した各描画段階のカラー コードとアルファ要素、 すなわち C と (1— ctj 、 C21' と (1— α2) (1 一 、 および C321, と (1— α3) (1 - α2) (1 -α:) が求められる。 第 1の減算器 31は、 これからテンポラリメモリ 26 (27) に描画する画像 のカラーコード Cから、 既にテンポラリメモリ 26 (27) に描画されている画 像のカラーコード Ctを減算する。 第 1の乗算器 32は、 第 1の減算器 31の演算 結果に、 これからテンポラリメモリ 26 (27) に描画する画像のブレンド率ひ を乗算する。
第 1の加算器 33は、 第 1の乗算器 32の演算結果に、 これからテンポラリメ モリ 26 (27) に描画する画像のカラーコード Cを加算する。 第 1の加算器 3 3の演算結果 Ct' は、 既にテンポラリメモリ 26 (27) に描画されている画像 の新たなカラーコードとして、 テンポラリメモリ 26 (27) に格納され、 この 次のテンポラリメモリ 26 (27) に対する描画の際に、 既にテンポラリメモリ 26 (27) に描画されている画像のカラーコード Ctとなる。
第 2の減算器 34は、 1力 ら、 これからテンポラリメモリ 26 (27) に描画 する画像のブレンド率 αを減算する。 第 2の乗算器 35は、 第 2の減算器 34の 演算結果に、 既にテンポラリメモリ 26 (27) に描画されている画像のプレン ド率ひ tを乗算する。 第 2の乗算器 35の演算結果 a t ' は、 既にテンポラリメモ リ 26 (27) に描画されている画像の新たなブレンド率として、 テンポラリメ モリ 26 (27) に格納され、 この次のテンポラリメモリ 26 (27) に対する 描画の際に、 既にテンポラリメモリ 26 (27) に描画されている画像のプレン ド率 a tとなる。
つぎに、 フレームバッファ描画部 22の構成について説明する。 この説明にお いては、 テンポラリメモリ 26, 27に描画されている画像のカラーコードおよ びプレンド率をそれぞれ Ctおよび a tとし、 フレームバッファ 21に描画されて いる画像のカラ一コードを Cf とする。
第 3図は、 フレームバッファ描画部 22の構成を示すブロック図である。 フレ ームバッファ描画部 22は、 第 3の乗算器 36および第 2の加算器 37を備えて レ、る。 これら第 3の乗算器 36および第 2の加算器 37による演算によって、 前 記 (7) 式の演算がおこなわれる。 ただし、 Ct = CTであり、 ατ=α,であり、 Cf = CFである。
第 3の乗算器 36は、 フレームバッファ 21に描画されている画像のカラーコ ード Cfに、 テンポラリメモリ 26 (または 27) に描画されている画像のプレン ド率 o;tを乗算する。 第 2の加算器 37は、 第 3の乗算器 36の演算結果に、 テン ボラリメモリ 26 (または 27) に描画されている画像のカラーコード Ctを加算 する。 第 2の加算器 37の演算結果 Cf' (前記 (7) 式の CTF) は、 フレームバ ッファ 21に描画されている画像の新たなカラーコードとして、 フレームバッフ ァ 21に格納され、 この次のテンポラリメモリ 27 (または 26) とフレームバ ッファ 2 1との間の最終的な演算をおこなう際に、 フレームバッファ 2 1に描画 されている画像のカラーコード C f となる。
つぎに、 実施の形態 1の描画装置 2 0の動作について説明する。 まず、 あらか じめ、 第 1のテンポラリメモリ 2 6および第 2のテンポラリメモリ 2 7を、 C = 0、 a = l . 0でクリアしておく。 このクリア処理は、 第 2図に示す第 1のテン ボラリメモリ描画部 2 3および第 2のテンポラリメモリ描画部 2 4におけるブレ ンド処理動作において、 初回動作時に C t = a C、 a t = ( 1 - α ) とするためで あ 。
まず、 分配部 2 5は、 描画命令により描かれる図形が収まる範囲、 たとえば 6 4 X 6 4ピクセルの範囲を、 第 1のテンポラリメモリ 2 6に割り当てる。 この第 1のテンポラリメモリ 2 6に割り当てられた範囲を、 便宜上、 範囲 Αと表す。 そ して、 分配部 2 5は、 描画命令により描かれる図形が範囲 Aに収まる限り、 描画 命令を第 1のテンポラリメモリ描画部 2 3に送りつづける。 第 1のテンポラリメ モリ描画部 2 3は、 送られてきた描画命令にしたがって、 第 1のテンポラリメモ リ 2 6に対して描画処理をおこなう。
第 1のテンポラリメモリ 2 6に対して描画処理をおこなっている途中で、 描画 命令により描かれる図形が範囲 Aから外れると、 分配部 2 5は、 その範囲 Aから 外れた図形を含む新たな 6 4 X 6 4ピクセルの範囲を、 第 2のテンポラリメモリ 2 7に割り当てる。 このときの第 1のテンポラリメモリ 2 6に記録されたカラー コードおょぴアルファ要素を、 それぞれ C 1 Tおよびひ 1 Tとする。 また、 このとき に第 2のテンポラリメモリ 2 6に割り当てられた範囲を、 便宜上、 範囲 Βと表す そして、 分配部 2 5は、 描画命令により描かれる図形が範囲 Βに収まる限り、 描画命令を第 2のテンポラリメモリ描画部 2 4に送りつづける。 第 2のテンポラ リメモリ描画部 2 4は、 送られてきた描画命令にしたがって、 第 2のテンポラリ メモリ 2 7に対して描画処理をおこなう。 一方、 フレームバッファ描画部 2 2は 、 第 1のテンポラリメモリ 2 6とフレームバッファ 2 1の間でブレンド処理をお こない、 その結果をフレームバッファ 2 1に書き込む。
上述したように、 第 1のテンポラリメモリ 2 6に記録されたカラー ドおよ びアルファ要素は、 それぞれ C1Tおよび α 1Tである。 フレームバッファ 2 1に書 かれていたカラー ドを CFとすると、 第 1のテンポラリメモリ 2 6とフレーム バッファ 2 1との間のブレンド処理によって、 フレームバッファ 2 1に新たに書 かれるカラーコード C1Fは、 つぎの (8) 式で表される。
し 1 F =し 1 T + ひ 1 Tし F · · · ( ¾ )
第 2のテンポラリメモリ 2 7に対して描画処理をおこなっている途中で、 描画 命令により描かれる図形が範囲 Βから外れると、 分配部 2 5は、 その範囲 Βから 外れた図形を含む新たな 6 4 X 6 4ピクセルの範囲を、 第 1のテンポラリメモリ 2 6に割り当てる。 このときの第 2のテンポラリメモリ 2 7に記録されたカラー コードおよびアルファ要素を、 それぞれ C2Tおよび α とする。 また、 このとき に第 1のテンポラリメモリ 2 6に割り当てられた範囲を、 便宜上、 範囲 Cと表す そして、 分配部 2 5は、 描画命令により描かれる図形が範囲 Cに収まる限り、 描画命令を第 1のテンポラリメモリ描画部 2 3に送りつづける。 第 1のテンポラ リメモリ描画部 2 3は、 送られてきた描画命令にしたがって、 第 1のテンポラリ メモリ 2 6に対して描画処理をおこなう。 一方、 フレームバッファ描画部 2 2は 、 第 2のテンポラリメモリ 2 7とフレームバッファ 2 1の間でプレンド処理をお こない、 その結果をフレームバッファ 2 1に書き込む。
上述したように、 第 2のテンポラリメモリ 2 7に記録されたカラーコードおよ びアルファ要素は、 それぞれ C2Tおよび α であり、 フレームバッファ 2 1の力 ラーコードは C1Fである。 したがって、 フレームバッファ 2 1には、 新たにつぎ の (9) 式で表されるカラーコード C2Fが書かれる。
し 2F 2T + ひ 2T I F · · * ( «J V
これ以降、 上述した第 1のテンポラリメモリ 2 6に対する描画処理と第 2のテ ンポラリメモリ 2 7に対する描画処理を交互に繰り返す。 丄 0
なお、 上 した実施の形態 1の描画装置 2 0の動作をソフトウエアで実現する こともできる。 この場合には、 第 4図に示すフローチャートのプログラムを図示 しない処理装置が実行することにより、 フレームバッファ描画部 2 2、 第 1のテ ンポラリメモリ描画部 2 3、 第 2のテンポラリメモリ描画部 2 4および分配部 2 5の機能が実現される。
第 4図に示すフローチャートについて説明する。 まず、 プログラム 1が実行さ れると、 第 1のテンポラリメモリ 2 6および第 2のテンポラリメモリ 2 7をタリ ァした後、 第 1のテンポラリメモリ 2 6に範囲 Aを割り当てる (ステップ S 4 0 1 ) 。 そして、 描画命令により描かれる図形が範囲 Aに収まる限り (ステップ S 4 0 2 : Y e s ) 、 第 1のテンポラリメモリ 2 6に対して描画処理をおこなう ( ステップ S 4 0 3 ) 。
第 1のテンポラリメモリ 2 6に対して描画処理をおこなっている途中で、 描画 命令により描かれる図形が範囲 Aから外れると (ステップ S 4 0 2 : N o ) 、 プ ログラム 2に通知する (ステップ S 4 0 4 ) 。 プログラム 2では、 第 2のテンポ ラリメモリ 2 7に範囲 Bを割り当てる (ステップ S 4 0 6 ) 。 そして、 描画命令 により描かれる図形が範囲 Bに収まる限り (ステップ S 4 0 7 : Y e s ) 、 第 2 のテンポラリメモリ 2 7に対して描画処理をおこなう (ステップ S 4 0 8 ) 。
一方、 プログラム 1では、 第 1のテンポラリメモリ 2 6とフレームバッファ 2 1の間でブレンド処理をおこない、 その結果をフレームバッファ 2 1に書き込む (ステップ S 4 0 5 ) 。 他方、 第 2のテンポラリメモリ 2 7に対して描画処理を おこなつている途中で、 描画命令により描かれる図形が範囲 Bから外れると (ス テツプ S 4 0 7 : N o ) 、 プログラム 1に通知する (ステップ S 4 0 9 ) 。
また、 第 2のテンポラリメモリ 2 7とフレームバッファ 2 1の間でブレンド処 理をおこない、 その結果をフレームバッファ 2 1に書き込む (ステップ S 4 1 0 ) 。 プログラム 1では、 第 1のテンポラリメモリ 2 6に範囲 Cを割り当て (ステ ップ S 4 0 1 ) 、 以降、 ステップ S 4 0 2〜S 4 0 5が実行される。
上述した実施の形態 1によれば、 第 1のテンポラリメモリ 2 6およぴ第 2のテ ンポラリメモリ 2 7において、 テンポラリメモリに既に記憶されている描画結果 と、 テンポラリメモリにこれから描画する描画結果とのプレンド処理を独立して おこなうことができ、 またフレームバッファ 2 1に既に記憶されている描画結果 と、 各テンポラリメモリ 2 6, 2 7に記憶されている描画結果とのブレンド処理 を、 描画命令の順にしたがっておこなうので、 高速描画が可能で、 かつアルファ プレンド処理を正常におこなうことができる。
(実施の形態 2 )
第 5図は、 実施の形態 2の描画装置の概略構成を示すブロック図である。 第 5 図に示すように、 実施の形態 2の描画装置 4 0は、 フレームバッファ 2 1、 フレ —ムバッファ描画部 2 2、 第 1のテンポラリメモリ 2 6、 第 2のテンポラリメモ リ 2 7、 第 1のテンポラリメモリ 2 6および第 2のテンポラリメモリ 2 7に対し て描画をおこなうテンポラリメモリ描画部 4 3、 および第 1のテンポラリメモリ 2 6または第 2のテンポラリメモリ 2 7を択一的に選択する選択部 4 4, 4 5を 備えている。
テンポラリメモリ描画部 4 3は、 実施の形態 1の第 1のテンポラリメモリ描画 部 2 3および第 2のテンポラリメモリ描画部 2 4と同じである。 したがって、 テ ンポラリメモリ描画部 4 3の説明を省略する。 なお、 実施の形態 2において実施 の形態 1と同様の構成については、 実施の形態 1と同一の符号を付して、 その説 明を省略する。
つぎに、 実施の形態 2の描画装置 4 0の動作について説明する。 まず、 あらか じめ、 第 1のテンポラリメモリ 2 6およぴ第 2のテンポラリメモリ 2 7を、 C = 0、 α = 1 . 0でクリアしておく。 第 1の選択部 4 4は、 描画命令により描かれ る図形が収まるたとえば 6 4 X 6 4ピクセルの範囲 (範囲 Α) を、 第 1のテンポ ラリメモリ 2 6に割り当てる。 そして、 第 1の選択部 4 4は、 描画命令により描 かれる図形が範囲 Αに収まる限り、 第 1のテンポラリメモリ 2 6を選択しつづけ る。 それによつて、 テンポラリメモリ描画部 4 3は、 送られてきた描画命令にし たがって、 第 1のテンポラリメモリ 2 6に対して描画処理をおこなう。 一方、 第 2の選択部 4 5により第 2のテンポラリメモリ 2 7が選択される。 そ して、 フレームバッファ描画部 2 2は、 第 2のテンポラリメモリ 2 7とフレーム バッファ 2 1との間でプレンド処理をおこない、 その結果をフレームバッファ 2 1に書き込む。
第 1のテンポラリメモリ 2 6に対して描画処理をおこなっている途中で、 描画 命令により描かれる図形が範囲 Aから外れると、 第 2のテンポラリメモリ 2 7と フレームバッファ 2 1との間でおこなわれたブレンド処理結果がフレームバッフ ァ 2 1に書き込まれた後、 第 1の選択部 4 4は、 範囲 Aから外れた図形を含む新 たな 6 4 X 6 4ピクセルの範囲 (範囲 B ) を、 第 2のテンポラリメモリ 2 7に割 り当てる。 このときの第 1のテンポラリメモリ 2 6に記録されたカラーコードお よびアルファ要素を、 それぞれ C 1 Tおよび α ι τとする。
そして、 第 1の選択部 4 4は、 描画命令により描かれる図形が範囲 Βに収まる 限り、 第 2のテンポラリメモリ 2 7を選択しつづける。 それによつて、 テンポラ リメモリ描画部 4 3は、 送られてきた描画命令にしたがって、 第 2のテンポラリ メモリ 2 7に対して描画処理をおこなう。
一方、 第 2の選択部 4 5により第 1のテンポラリメモリ 2 6が選択される。 そ して、 フレームバッファ描画部 2 2は、 第 1のテンポラリメモリ 2 6とフレーム バッファ 2 1との間でプレンド処理をおこない、 その結果をフレームバッファ 2 1に書き込む。 フレームバッファ 2 1には、 前記 (8 ) 式で表されるカラーコー ド C 1 Fが新たに書き込まれる。
第 2のテンポラリメモリ 2 7に対して描画処理をおこなっている途中で、 描画 命令により描かれる図形が範囲 Bから外れると、 第 1のテンポラリメモリ 2 6と フレームバッファ 2 1との間でおこなわれたブレンド処理結果がフレームバッフ ァ 2 1に書き込まれた後、 第 1の選択部 4 4は、 範囲 Bから外れた図形を含む新 たな 6 4 X 6 4ピクセルの範囲 (範囲 C) を、 第 1のテンポラリメモリ 2 6に割 り当てる。 このときの第 2のテンポラリメモリ 2 7に記録されたカラーコ一ドぉ よびァノレファ要素を、 それぞれ C 2Tおよび α 2 τとする。 そして、 第 1の選択部 4 4は、 描画命令により描かれる図形が範囲 Cに収まる 限り、 第 1のテンポラリメモリ 2 6を選択しつづける。 それによつて、 テンポラ リメモリ描画部 4 3は、 送られてきた描画命令にしたがって、 第 1のテンポラリ メモリ 2 6に対して描画処理をおこなう。
一方、 第 2の選択部 4 5により第 2のテンポラリメモリ 2 7が選択される。 そ して、 フレームバッファ描画部 2 2は、 第 2のテンポラリメモリ 2 7とフレーム ノ ッファ 2 1との間でプレンド処理をおこない、 その結果をフレームバッファ 2 1に書き込む。 フレームバッファ 2 1には、 前記 (9 ) 式で表されるカラ一コー ド C 2 Fが新たに書き込まれる。
これ以降、 上述した第 1のテンポラリメモリ 2 6に対する描画処理と第 2のテ ンポラリメモリ 2 7に対する描画処理を交互に繰り返す。
なお、 上述した実施の形態 2の描画装置 4 0の動作をソフトウユアで実現する こともできる。 この場合には、 第 6図に示すフローチャートのプログラムを図示 しない処理装置が実行することにより、 フレームバッファ描画部 2 2、 テンポラ リメモリ描画部 4 3および選択部 4 4, 4 5の機能が実現される。
第 6図に示すフローチャートについて説明する。 まず、 プログラム 1が実行さ れると、 第 1のテンポラリメモリ 2 6およぴ第 2のテンポラリメモリ 2 7をクリ ァした後、 第 1のテンポラリメモリ 2 6に範囲 Aを割り当てる (ステップ S 6 0 1 ) 。 そして、 描画命令により描かれる図形が範囲 Aに収まる限り (ステップ S 6 0 2 : Y e s ) 、 第 1のテンポラリメモリ 2 6に対して描画処理をおこなう ( ステップ S 6 0 3 ) 。
第 1のテンポラリメモリ 2 6に対して描画処理をおこなっている途中で、 描画 命令により描かれる図形が範囲 Aから外れると (ステップ S 6 0 2 : N o ) 、 プ ログラム 2に通知する (ステップ S 6 0 4 ) 。 プログラム 2では、 第 1のテンポ ラリメモリ 2 6とフレームバッファ 2 1の間でブレンド処理をおこない、 その結 果をフレームバッファ 2 1に書き込む (ステップ S 6 0 9 ) 。
—方、 プログラム 1では、 第 2のテンポラリメモリ 2 7に範囲 Bを割り当てる (ステップ S 605) 。 そして、 描画命令により描かれる図形が範囲 Bに収まる 限り (ステップ S 606 : Y e s) 、 第 2のテンポラリメモリ 27に対して描画 処理をおこなう (ステップ S 607) 。
そして、 第 2のテンポラリメモリ 27に対して描画処理をおこなっている途中 で、 描画命令により描かれる図形が範囲 Bから外れると (ステップ S 606 : N o) 、 プログラム 2に通知する (ステップ S 608) 。 プログラム 2では、 第 2 のテンポラリメモリ 27とフレームバッファ 21の間でプレンド処理をおこない 、 その結果をフレームバッファ 21に書き込む (ステップ S 610) 。 一方、 プ ログラム 1では、 第 1のテンポラリメモリ 26に範囲 Cを割り当て (ステップ S 601) 、 以降、 ステップ S 602〜S 608が実行される。
上述した実施の形態 2によれば、 第 1のテンポラリメモリ 26および第 2のテ ンポラリメモリ 27において、 テンポラリメモリに既に記憶されている描画結果 と、 テンポラリメモリにこれから描画する描画結果とのブレンド処理をおこなう ことができ、 またフレームバッファ 21に既に記憶されている描画結果と、 各テ ンポラリメモリ 26, 27に記憶されている描画結果とのブレンド処理を、 描画 命令の順にしたがっておこなうので、 高速描画が可能で、 かつアルファブレンド 処理を正常におこなうことができる。
(実施の形態 3)
実施の形態 3では、 フレームバッファに対する演算と、 表示に対する演算とを 分離しておこなうので、 まず、 この演算の分離の仕方について説明する。
フレームバッファに既に描画されているカラーコードを CFとし、 1番目に描画 するカラーコードを とする。 そして、 1番目に使用するブレンド率 (0. 0〜 1. 0) を tt lとすると、 既に描画されているフレームバッファカラー CFと、 1 番目に描画するカラー とのブレンド結果 C1Fは、 つぎの (10) 式で表される
C1F=a1C1 + ( 1 - a CF · · · (10)
この (10) 式で表されるブレンド処理によって、 フレームバッファに既に描 画されているカラーコードは C 1 Fとなる。 つぎに、 2番目に描画するカラーコー ドを C 2とし、 2番目に使用するブレンド率 (0. 0〜1. 0) を α2とする。 こ の場合、 既に描画されているフレームバッファカラーじ と、 2番目に描画する カラー C2とのブレンド結果 C 21 Fは、 つぎの (1 1 ) 式で表される。
C 2IF= a 2C 2+ ^ 1— α 2) し IF · · · (1 1 )
この (1 1) 式で表されるブレンド処理によって、 フレームバッファに既に描 画されているカラーコードは C21 Fとなる。 したがって、 3番目に描画するカラー コードを C3とし、 3番目に使用するブレンド率 (0. 0〜 1. 0) を ct3とする と、 既に描画されているフレームバッファカラー C2Fと、 3番目に描画するカラ 一 C3とのブレンド結果 C321 Fは、 つぎの (1 2) 式で表される。
321 ? = ひ 3し 3 + 、丄一 0;3 21 F ♦ , · 1 ム )
以下、 省略するが、 4番目以降に描画するカラーとのブレンド結果についても 同様である。 上述した (1 0) 〜 (1 2) 式の演算をそれぞれつぎの (1 3) 〜 (1 5) 式のように変形する。 この演算の変形は、 4番目以降に描画するカラー とのブレンド結果についても同様である。
C! F = a! C + 1— i) し F
= C + (1 -α CK · · · (1 3)
Figure imgf000023_0001
= a 2 C 2 + ( 1— a 2) C 1 ' + ( 1— 2) ( 1— a :) C F
= C21 ' + (1 -a2) ( 1 - a CF · · · (1 4)
321 F― " 3 C 3 + ( 1― K 3 ) 21 F
= 3 C 3 + ( 1— 3) C 21 ' + l— a3) ( 1— a 2) ( 1— J
CF
= C321' + 1— a 3) — a 2) ^ 1— a 1) CF · · · (1 5) 上述したように演算を変形することにより、 フレームバッファに対する 2回目 以降の演算 C 、 C 21, および C32 と、 フレームバッファの初期値に対する 演算 (1— a J CF、 (1 -a2) (1一 ct J CFおよび (1—a 3) (1 -a2) (1 -αχ) CFが分離される。 したがって、 フレームバッファに対する 2回目以 降の演算 、 C21' および C321' を、 通常の描画処理としておこなうことが できる。
そして、 各描画段階においてフレームバッファに記録されるカラーコ一ドとァ ルファ要素は、 1回目の描画では C と (1一 となり、 2回目の描画では C21, と (1— α2) (1 -α,) となり、 3回目の描画では C321, と (1— "3 ) (1一ひ 2) (1—ひ J となる。 以下、 同様にして、 フレームバッファに記録 されるカラーコードとアルファ要素は上書きされていく。
このような方式で描画プレンド処理をおこなった画面の描画情報、 すなわち力 ラーコードおよびアルファ要素をそれぞれ Csおよびひ sとし、 その画面を表示ブ レンド画面とする。 被表示ブレンド画面のカラーコードを CDとすると、 表示ブレ ンド処理でおこなう演算は、 つぎの (16) 式で表される。 つまり、 描画初回の カラー CFに対する演算を、 被表示プレンド画面のカラー CDに対する演算に置き 換えることになる。
CSD=CS+ asCD · · · (16)
つぎに、 実施の形態 3の具体的な構成について説明する。 第 7図は、 実施の形 態 3の表示制御装置の概略構成を示すプロック図である。 第 7図に示すように、 実施の形態 3の表示制御装置 50は、 透過画面のデータを格納する第 1のフレー ムバッファ 51、 被透過画面のデータを格納する第 2のフレームバッファ 52、 第 1のフレームバッファ 51に対して描画をおこなう描画部 53、 および第 1の フレームバッファ 51の画素と第 2のフレームバッファ 52の画素をブレンド処 理し、 そのブレンド処理結果をディスプレイ等の表示装置 55に表示する表示制 御部 54を備えている。
つぎに、 描画部 53の構成について説明する。 この説明においては、 既に第 1 のフレームバッファ 51に描画されている画像のカラーコードおよびブレンド率 をそれぞれ Cfおよび af とし、 これから第 1のフレームバッファ 51に描画する 画像のカラーコードおよぴブレンド率をそれぞれ Cおよび αとする。 第 8図は、 描画部 5 3の構成を示すブロック図である。 描画部 5 3は、 第 1の '減算器 6 1、 第 1の乗算器 6 2、 第 1の加算器 6 3、 第 2の減算器 6 4および第 2の乗算器 6 5を備えている。 これら第 1の減算器 6 1、 第 1の乗算器 6 2、 第 1の加算器 6 3、 第 2の減算器 6 4および第 2の乗算器 6 5による演算によって 、 上述した各描画段階のカラーコードとアルファ要素、 すなわち と (1一ひ i ) 、 C 2! ' と ( 1一 α 2) ( 1— α:) 、 および C 3 2 1 と 、 丄一 α 3リ 丄 _ α 2 ) ( 1一ひ が求められる。
第 1の減算器 6 1は、 これから第 1のフレームバッファ 5 1に描画する画像の カラーコード Cから、 既に第 1のフレームバッファ 5 1に描画されている画像の カラーコード C fを減算する。 第 1の乗算器 6 2は、 第 1の減算器 6 1の演算結果 に、 これから第 1のフレームバッファ 5 1に描画する画像のプレンド率 αを乗算 する。
第 1の加算器 6 3は、 第 1の乗算器 6 2の演算結果に、 これから第 1のフレー ムバッファ 5 1に描画する画像のカラーコード Cを加算する。 第 1の加算器 6 3 の演算結果 C f ' は、 既に第 1のフレームバッファ 5 1に描画されている画像の新 たなカラーコードとして、 第 1のフレームバッファ 5 1に格納され、 この次の第 1のフレームバッファ 5 1に対する描画の際に、 既に第 1のフレームバッファ 5 1に描画されている画像のカラーコー K C f となる。
第 2の減算器 6 4は、 1から、 これから第 1のフレームバッファ 5 1に描画す る画像のブレンド率ひを減算する。 第 2の乗算器 6 5は、 第 2の減算器 6 4の演 算結果に、 既に第 1のフレームバッファ 5 1に描画されている画像のプレンド率 ひ fを乗算する。 第 2の乗算器 6 5の演算結果 a f ' は、 既に第 1のフレームバッ ファ 5 1に描画されている画像の新たなブレンド率として、 第 1のフレームバッ ファ 5 1に格納され、 この次の第 1のフレームバッファ 5 1に対する描画の際に 、 既に第 1のフレームバッファ 5 1に描画されている画像のブレンド率 a f となる つぎに表示制御部 5 4の構成について説明する。 この説明においては、 第 1の フレームバッファ 5 1に描画されている透過画面のカラーコ一ドおよびブレンド 率をそれぞれ Csおよび a sとし、 第 2のフレームバッファ 5 2に描画されている 被透過画面のカラーコードを Cdとする。
第 9図は、 表示制御部 5 4の構成を示すブロック図である。 表示制御部 5 4は 、 第 3の乗算器 6 6および第 2の加算器 6 7を備えている。 これら第 3の乗算器 6 6および第 2の加算器 6 7による演算によって、 前記 (1 6) 式の演算がおこ なわれる。 ただし、 CS = CSであり、 a s= a sであり、 Cd = CDである。
第 3の乗算器 6 6は、 第 2のフレームバッファ 5 2に描画されている画像の力 ラーコード Cdに、 第 1のフレームバッファ 5 1に描画されている画像のブレンド 率 "sを乗算する。 第 2の加算器 6 7は、 第 3の乗算器 6 6の演算結果に、 第 1の フレームバッファ 5 1に描画されている画像のカラ一コー CSを加算する。 第 2 の加算器 6 7の演算結果 Cs d (前記 (1 6) 式の CSD) は、 表示装置 5 5に表示 される。
つぎに、 実施の形態 3の表示制御装置 5 0の動作について説明する。 まず、 あ らかじめ、 第 1のフレームバッファ 5 1を、 C= 0、 α = 1. 0でクリアしてお く。 このクリア処理は、 第 8図に示す描画部 5 3におけるブレンド処理動作にお いて、 初回動作時に Cf = a C、 a f = ( 1 - α) とするためである。
まず、 描画部 5 3は、 第 1のフレームバッファ 5 1 (透過画面) に対して描画 をおこなう。 表示制御部 5.4は、 第 1のフレームバッファ 5 1に格納されている データと第 2のフレームバッファ 5 2 (被透過画面) に格納されているデータを 読み出し、 画素毎に設けられた透過または非透過を制御するフラグ (以下、 透過 非透過制御フラグとする) を確認する。
そして、 表示制御部 54は、 透過 非透過制御フラグがオフである画素につい ては、 第 2のフレームバッファ 5 2のデータを表示する。 また、 表示制御部 5 4 は、 透過ノ非透過制御フラグがオンである画素については、 第 1のフレームバッ ファ 5 1の画素データと第 2のフレームバッファ 5 2の画素データをブレンド処 理してから、 表示装置 5 5に表示する。 なお、 上述した実施の形態 3の表示制御装置 50の動作の一部をソフトウエア で実現することもできる。 この場合には、 第 1 0図に示すフローチャートのプロ グラムを図示しない処理装置が実行することにより、 描画部 5 3の機能、 すなわ ち描画のアルファプレンド処理が実現される。
第 1 0図に示すフローチャートについて説明する。 まず、 第 1のフレームバッ ファ 5 1をクリアした後、 第 1のフレームバッファ 5 1からカラーコード Cfおよ びプレンド率 a fを読み出す (ステップ S 1 00 1) 。 そして、 つぎの (1 7) 式 で表される Cf, を求める (ステップ S 1 00 2) 。 また、 つぎの (1 8) 式で表 されるひ を求める (ステップ S 1 003) 。
Cf' = a C+ (1 -a) Cf · · · ( 1 7)
a f ' = , ( 1— ) · · · (1 8)
ついで、 (1 7) 式および (1 8) 式より得られた Cf, とひ f' を、 第 1のフ レームバッファ 5 1に書き込む (ステップ S 1 004) 。 以上の処理を、 すべて の画素について終了するまで、 繰り返す (ステップ S 1 00 5) 。 その際、 新た に第 1のフレームバッファ 5 1に書き込まれた C f, と a f' 力 第 1のフレーム バッファ 5 1のカラーコード Cfおよびプレンド率 a f として読み出される。
上述した実施の形態 3によれば、 描画部 5 3が、 第 1のフレームバッファ 5 1 に既に記憶されている描画結果と、 第 1のフレームバッファ 5 1にこれから描画 する描画結果とをブレンド処理し、 表示制御部 54が、 第 1のフレームバッファ 5 1に記憶されている描画結果と、 第 2のフレームバッファ 5 2に記憶されてい る描画結果を画素単位で透過もしくは非透過の処理をして合成するので、 描画の アルファブレンド処理とともに、 表示の透過 非透過処理をおこなっても、 それ ぞれの処理が合成された表示結果を正しく得ることができる。
(実施の形態 4)
実施の形態 3では、 表示制御部 54は、 第 1のフレームバッファ 5 1に記憶さ れている描画結果と、 第 2のフレームバッファ 5 2に記憶されている描画結果を 画素単位で透過もしくは非透過の処理をして合成するとした。 それに対して、 実 施の形態 4では、 表示制御部 54は、 第 1のフレームバッファ 5 1に記憶されて レ、る描画結果と、 第 2のフレームバッファ 5 2に記憶されている描画結果をブレ ンド処理して合成する。 その他の構成は、 実施の形態 3と同じであるので、 重複 する説明を省略する。
表示制御部 54の構成について説明する。 この説明においては、 第 1のフレー ムバッファ 5 1に描画されている透過画面のカラーコードおよびブレンド率をそ れぞれ Csおよびひ sとし、 第 2のフレームバッファ 5 2に描画されている被透過 画面のカラーコードを Cdとする。 また、 透過画面と被透過画面の表示透過率、 す なわち表示のブレンド率を αχとする。
第 1 1図は、 表示制御部 54の構成を示すブロック図である。 表示制御部 54 は、 第 3の乗算器 7 1、 第 3の減算器 72、 第 4の乗算器 7 3および第 2の加算 器 74を備えている。 これら第 3の乗算器 7 1および第 2の加算器 74による演 算によって、 前記 (1 6) 式の演算がおこなわれる。 ただし、 CS = CSであり、 as= asであり、 Cd = CDである。
第 3の乗算器 7 1は、 第 2のフレームバッファ 5 2に描画されている画像の力 ラーコー FCdに、 第 1のフレームバッファ 5 1に描画されている画像のブレンド 率 a sを乗算する。 第 3の減算器 72は、 第 1のフレームバッファ 5 1に描画され ている画像のカラーコード Csから、 第 3の乗算器 7 1の演算結果を減算する。 第 4の乗算器 7 3は、 第 3の減算器 7 2の演算結果に、 第 1のフレームバッフ ァ 5 1に描画されている画像のブレンド率 a sを乗算する。 第 2の加算器 74は、 第 4の乗算器 7 3の演算結果に、 第 3の乗算器 7 1の演算結果を加算する。 表示 装置 5 5には、 第 2の加算器 74の出力 Csdが表示される。 第 2の加算器 74の 演算結果 Csdは、 つぎの (1 9) 式で表される。
C s d = a x C s + 、 1一 a x) asd
=ax (C3- a sCd) + a sCd · · · (1 9)
つぎに、 実施の形態 4の表示制御装置 50の動作について説明する。 まず、 あ らかじめ、 第 1のフレームバッファ 5 1を、 C = 0、 a= 1. 0でクリアしてお く。 描画部 5 3は、 第 1のフレームバッファ 5 1 (透過画面) に対して描画をお こなう。 表示制御部 5 4は、 第 1のフレームバッファ 5 1に格納されているデー タと第 2のフレームバッファ 5 2 (被透過画面) に格納されているデータを読み 出し、 表示透過率 α χでブレンド処理をおこなう。 そして、 表示制御部 5 4は、 第 1のフレームバッファ 5 1の画素データと第 2のフレームバッファ 5 2の画素デ ータを、 表示透過率 α χでブレンド処理した結果を表示する。
なお、 実施の形態 4においても、 上述した実施の形態 3と同様に、 第 1 0図に 示すフローチヤ一トのプログラムを図示しない処理装置が実行することにより、 描画部 5 3の機能を実現することができる。 第 1 0図に示すフローチヤ一トにつ いては、 説明が重複するので、 ここでは省略する。
上述した実施の形態 4によれば、 描画部 5 3が、 第 1のフレームバッファ 5 1 に既に記憶されている描画結果と、 第 1のフレームバッファ 5 1にこれから描画 する描画結果とをブレンド処理し、 表示制御部 5 4が、 第 1のフレームバッファ 5 1に記憶されている描画結果と、 第 2のフレームバッファ 5 2に記憶されてい る描画結果とをブレンド処理して合成するので、 描画のアルファブレンド処理と ともに、 表示のアルファブレンド処理をおこなっても、 それぞれの処理が合成さ れた表示結果を正しく得ることができる。
(実施の形態 5 )
第 1 2図は、 実施の形態 5の表示制御装置の概略構成を示すブロック図である 。 第 1 2図に示すように、 実施の形態 5の表示制御装置 7 0は、 透過画面のデー タを格納する第 1のフレームバッファ 5 1、 被透過画面のデータを格納する第 2 のフレームバッファ 5 2、 第 1のフレームバッファ 5 1に対して描画をおこなう 描画部 (第 1の描画部) 5 3、 第 1のフレームバッファ 5 1の画素と第 2のフレ ームバッファ 5 2の画素をブレンド処理する第 2の描画部 7 1、 第 2の描画部 7 1のブレンド処理結果を格納する第 3のフレームバッファ 7 2、 第 3のフレーム バッファ 7 2に格納されたデータをディスプレイ等の表示装置 5 5に表示する表 示制御部 7 3を備えている。 以下、 実施の形態 5の表示制御装置 7 0が実施の形態 3の表示制御装置 5 0と 異なる構成についてのみ説明し、 実施の形態 3と同様の構成については実施の形 態 3と同一の符号を付して説明を省略する。 第 2の描画部 7 1は、 実施の形態 3 の表示制御部 5 4と同じブレンド処理機能を備えている。 つまり、 第 2の描画部 7 1は、 図 9に示す構成を備えている。 実施の形態 5では、 表示制御部 7 3には プレンド処理機能が設けられていない。
つぎに、 実施の形態 5の表示制御装置 7 0の動作について説明する。 まず、 あ らかじめ、 第 1のフレームバッファ 5 1を、 C = 0、 α = 1 . 0でクリアしてお く。 第 1の描画部 5 3は、 第 1のフレームバッファ 5 1 (透過画面) に対して描 画をおこなう。 第 2の描画部 7 1は、 第 1のフレームバッファ 5 1に格納されて いるデータと第 2のフレームバッファ 5 2 (被透過画面) に格納されているデー タを読み出し、 画素毎に設けられた透過 非透過制御フラグを確認する。
そして、 第 2の描画部 7 1は、 透過 非透過制御フラグがオフである画素につ いては、 第 2のフレームバッファ 5 2のデータを第 3のフレームバッファ 7 2に 格納する。 また、 第 2の描画部 7 1は、 透過/非透過制御フラグがオンである画 素については、 第 1のフレームバッファ 5 1の画素データと第 2のフレームバッ ファ 5 2の画素データをブレンド処理した結果を第 3のフレームバッファ 7 2に 格納する。 表示制御部 7 3は、 第 3のフレームバッファ 7 2を読み出し、 その内 容をディスプレイ等の表示装置 5 5に表示する。
なお、 実施の形態 5の表示制御装置 7 0の動作をソフトウェアで実現すること もできる。 この場合には、 第 1 3図に示すフローチャートのプログラムを図示し ない処理装置が実行することにより、 第 1の描画部 5 3および第 2の描画部 7 1 の機能が実現される。
第 1 3図に示すフローチャートについて説明する。 まず、 第 1のフレームバッ ファ 5 1をクリアした後、 第 1のフレームバッファ 5 1からカラーコード C fおよ びブレンド率 α ίを読み出す (ステップ S 1 3 0 1 ) 。 そして、 前記 (1 7 ) 式で 表される C f ' を求める (ステップ S 1 3 0 2 ) 。 また、 前記 (1 8 ) 式で表され る a f ' を求める (ステップ S 1 303) 。
ついで、 前記 (1 7) 式および前記 (1 8) 式より得られた Cf, と α を、 第 1のフレームバッファ 51に書き込む (ステップ S 1 304) 。 以上の処理を 、 すべての画素について終了するまで、 繰り返す (ステップ S 1 305) 。 その 際、 新たに第 1のフレームバッファ 5 1に書き込まれた Cf' と αパ カ 第 1の フレームバッファ 5 1のカラーコー KCfおよびブレンド率 a fとして読み出され る。
すべての画素について、 第 1のフレームバッファ 51に Cf, および af, を書 き込む処理が終了したら (ステップ S 1 305 : Ye s) 、 第 1のフレームバッ ファ 5 1から透過画面のカラーコード Csおよびブレンド率 ct sを読み出す (ステ ップ S 1 306) 。 また、 第 2のフレームバッファ 52から被透過画面のカラー コード Cdを読み出す (ステップ S 1 307) 。 ついで、 つぎの (20) 式の演算 をおこない、 Csdを求める (ステップ S 1 308) 。
Csd=a SC5 + (l -as) Cd · · · (20)
そして、 透過ノ非透過制御フラグが非透過になっていれば (ステップ S 1 30 9 : No) 、 第 3のフレームバッファ 72に Csdを書き込み (ステップ S 1 3 1 0) 、 一方、 透過/非透過制御フラグが透過になっていれば (ステップ S 1 30 9 : Y e s) 、 第 3のフレームバッファ 72に Csdを書き込まない。 すべての画 素についての処理が終了するまで (ステップ S 1 3 1 1) 、 ステップ S 1 306 〜 S 1 3 1 1を繰り返す。
上述した実施の形態 5によれば、 第 1の描画部 53力 第 1のフレームバッフ ァ 5 1に既に記憶されている描画結果と、 第 1のフレームバッファ 51にこれか ら描画する描画結果とをブレンド処理し、 第 2の描画部 71力 s、 第 1のフレーム バッファ 5 1に記憶されている描画結果と、 第 2のフレームバッファ 52に記憶 されている描画結果を画素単位で透過もしくは非透過の処理をして合成するので 、 描画のアルファブレンド処理とともに、 表示の透過 非透過処理をおこなって も、 それぞれの処理が合成された表示結果を正しく得ることができる。 (実施の形態 6 )
実施の形態 6は、 第 1 2図に示す実施の形態 5の表示制御装置 7 0と同様の構 成により、 実施の形態 4と同様の描画のアルファプレンド処理および表示のアル ファブレンド処理をおこなうものである。 全体の構成は第 1 2図に示す通りであ るので、 重複する説明を省略する。 実施の形態 6では、 第 2の描画部 7 1は、 実 施の形態 3の表示制御部 5 4と同じブレンド処理機能を備えている。 つまり、 第 2の描画部 7 1は、 第 1 1図に示す構成を備えている。 また、 表示制御部 7 3に はブレンド処理機能が設けられていない。
つぎに、 実施の形態 6の表示制御装置 7 0の動作について説明する。 まず、 あ らかじめ、 第 1のフレームバッファ 5 1を、 C = 0、 α = 1 . 0でクリアしてお く。 第 1の描画部 5 3は、 第 1のフレームバッファ 5 1 (透過画面) に対して描 画をおこなう。 第 2の描画部 7 1は、 第 1のフレームバッファ 5 1に格納されて いるデータと第 2のフレームバッファ 5 2 (被透過画面) に格納されているデー タを読み出し、 表示透過率 α χでプレンド処理をおこなう。
そして、 第 2の描画部 7 1は、 第 1のフレームバッファ 5 1の画素データと第 2のフレームバッファ 5 2の画素データを、 表示透過率 α χでプレンド処理した結 果を第 3のフレームバッファ 7 2に格納する。 表示制御部 7 3は、 第 3のフレー ムバッファ 7 2を読み出し、 その内容をディスプレイ等の表示装置 5 5に表示す る。
なお、 実施の形態 6の表示制御装置 7 0の動作をソフトウェアで実現すること もできる。 この場合には、 第 1 4図に示すフローチャートのプログラムを図示し ない処理装置が実行することにより、 第 1の描画部 5 3および第 2の描画部 7 1 の機能が実現される。
第 1 4図に示すフローチャートについて説明する。 まず、 第 1のフレームバッ ファ 5 1をクリアした後、 第 1のフレームバッファ 5 1からカラーコード C fおよ びプレンド率 α fを読み出す (ステップ S 1 4 0 1 ) 。 そして、 前記 (1 7 ) 式で 表される Cパ を求める (ステップ S 1 4 0 2 ) 。 また、 前記 (1 8 ) 式で表され る af' を求める (ステップ S 1403) 。
ついで、 前記 (1 7) 式および前記 (18) 式より得られた Cf' とひ を、 第 1のフレームバッファ 51に書き込む (ステップ S 1404) 。 以上の処理を 、 すべての画素について終了するまで、 繰り返す (ステップ S 1405) 。 その 際、 新たに第 1のフレームバッファ 51に書き込まれた C と af' I 第 1の フレームバッファ 51のカラーコード Cfおよびブレンド率 a f として読み出され る。
すべての画素について、 第 1のフレームバッファ 51に Cf, および af' を書 き込む処理が終了したら (ステップ S 1405 : Y e s) Λ 第 1のフレームバッ ファ 51から透過画面のカラーコード Csおよびブレンド率ひ sを読み出す (ステ ップ S 1406) 。 また、 第 2のフレームバッファ 52から被透過画面のカラー コード Cdを読み出す (ステップ S 1407) 。 ついで、 前記 (19) 式の演算を おこない、 Csdを求める (ステップ S 1408) 。
そして、 第 3のフレームバッファ 72に Csdを書き込む (ステップ S 1409 ) 。 すべての画素についての処理が終了するまで (ステップ S 1410) 、 ステ ップ S 1406〜S 1410を繰り返す。
上述した実施の形態 6によれば、 第 1の描画部 53力 第 1のフレームバッフ ァ 51に既に記憶されている描画結果と、 第 1のフレームバッファ 51にこれか ら描画する描画結果とをブレンド処理し、 第 2の描画部 71が、 第 1のフレーム バッファ 51に記憶されている描画結果と、 第 2のフレームバッファ 52に記憶 されている描画結果とをプレンド処理して合成するので、 描画のアルファプレン ド処理とともに、 表示のアルファブレンド処理をおこなっても、 それぞれの処理 が合成された表示結果を正しく得ることができる。
以上において本発明は、 上述した各実施の形態に限らず、 種々変更可能である 本発明によれば、 高速描画が可能で、 かつアルファブレンド処理を正常におこ なうことが可能な描画装置が得られる。 また、 描画のアルファブレンド処理とと もに、 表示の透過 Z非透過処理や表示のアルファプレンド処理をおこなっても、 それぞれの処理が合成された表示結果を正しく得ることが可能な表示制御装置が 得られる。 産業上の利用可能性
以上のように本発明は、 アルファブレンド処理した描画結果を、 不整合を起こ さずに正常に高速で描画することに適している。

Claims

請 求 の 範 囲
1 . 描画結果を記憶するフレームバッファと、
前記フレームバッファよりも高速で、 かつ記憶容量が小さいテンポラリメモリ と、
前記テンポラリメモリに既に記憶されている描画結果と、 前記テンポラリメモ リにこれから描画する描画結果とをプレンド処理し、 プレンド処理結果を前記テ ンポラリメモリに格納するテンポラリメモリ描画部と、
前記フレームバッファに既に記憶されている描画結果と、 前記テンポラリメモ リに記憶されている描画結果とをプレンド処理し、 プレンド処理結果を前記フレ ームバッファに格納するフレームバッファ描画部と、
を具備することを特徴とする描画装置。
2 . 前記テンポラリメモリと前記テンポラリメモリ描画部との組みを複数組有し 前記フレームバッファ描画部は、 前記フレームバッファに既に記憶されている 描画結果と、 複数の前記テンポラリメモリに記憶されている描画結果とをプレン ド処理し、 プレンド処理結果を前記フレームバッファに格納することを特徴とす る請求の範囲第 1項に記載の描画装置。
3 . 前記テンポラリメモリを複数有し、
複数の前記テンポラリメモリの中から前記テンポラリメモリ描画部および前記 フレームバッファ描画部の処理対象を選択する選択部をさらに具備することを特 徴とする請求の範囲第 1項に記載の描画装置。
4 . 前記テンポラリメモリ描画部は、
これから前記テンポラリメモリに描画する画像のカラーコードじから、 既に前 記テンポラリメモリに描画されている画像のカラーコード C tを減算する第 1の減 算器と、
前記第 1の減算器の演算結果に、 これから前記テンポラリメモリに描画する画 像のプレンド率 αを乗算する第 1の乗算器と、
前記第 1の乗算器の演算結果に、 これから前記テンポラリメモリに描画する画 像のカラーコード Cを加算し、 加算演算結果を、 既に前記テンポラリメモリに描 画されている画像の新たなカラーコードとする加算器と、
1から、 これから前記テンポラリメモリに描画する画像のプレンド率 αを減算 する第 2の減算器と、
前記第 2の減算器の演算結果に、 既に前記テンポラリメモリに描画されている 画像のブレンド率 a tを乗算し、 乗算演算結果を、 既に前記テンポラリメモリに描 画されている画像の新たなブレンド率とする第 2の乗算器と、
を具備することを特徴とする請求の範囲第 1項に記載の描画装置。
5 . 前記フレームバッファ描画部は、
前記フレームバッファに描画されている画像のカラーコー K C fに、 前記テンポ ラリメモリに描画されている画像のプレンド率ひ tを乗算する第 3の乗算器と、 前記第 3の乗算器の演算結果に、 前記テンポラリメモリに描画されている画像 のカラーコード C tを加算し、 加算演算結果を、 前記フレームバッファに描画され ている画像の新たなカラーコードとする第 2の加算器と、
を具備することを特徴とする請求の範囲第 4項に記載の描画装置。
6 . 描画結果を記憶するフレームバッファと、
前記フレームバッファに既に記憶されてレ、る描画結果と、 前記フレームバッフ ァにこれから描画する描画結果とをブレンド処理し、 ブレンド処理結果を前記フ レームバッファに格納する描画部と、
前記フレームバッファに既に記憶されている複数の描画結果を画素単位で透過 もしくは非透過の処理をして合成する表示制御部と、
を具備することを特徴とする表示制御装置。
7 . 前記描画部は、
これから前記フレームバッファに描画する画像のカラーコードじから、 既に前 記フレームバッファに描画されている画像のカラーコード C fを減算する第 1の減 算器と、
前記第 1の減算器の演算結果に、 これから前記フレームバッファに描画する画 像のプレンド率ひを乗算する第 1の乗算器と、
前記第 1の乗算器の演算結果に、 これから前記フレームバッファに描画する画 像のカラーコード Cを加算し、 加算演算結果を、 既に前記フレームバッファに描 画されている画像の新たなカラーコードとする加算器と、
1から、 これから前記フレームバッファに描画する画像のプレンド率 αを減算 する第 2の減算器と、
前記第 2の減算器の演算結果に、 既に前記フレームバッファに描画されている 画像のブレンド率 a fを乗算し、 乗算演算結果を、 既に前記フレームバッファに描 画されている画像の新たなプレンド率とする第 2の乗算器と、
を具備することを特徴とする請求の範囲第 6項に記載の表示制御装置。
8 . 前記表示制御部は、
被透過画面に描画されている画像のカラーコー K C dに、 透過画面に描画されて いる画像のプレンド率 a sを乗算する第 3の乗算器と、
前記第 3の乗算器の演算結果に、 前記透過画面に描画されている画像のカラー コード C sを加算し、 加算演算結果を前記合成結果とする第 2の加算器と、 を具備することを特徴とする請求の範囲第 7項に記載の表示制御装置。
9 . 描画結果を記憶するフレームバッファと、 前記フレームバッファに既に記憶されている描画結果と、 前記フレームバッフ ァにこれから描画する描画結果とをプレンド処理し、 プレンド処理結果を前記フ レームバッファに格納する描画部と、
前記フレームバッファに既に記憶されている複数の描画結果をプレンド処理し て合成する表示制御部と、
を具備することを特徴とする表示制御装置。
1 0 . 前記描画部は、
これから前記フレームバッファに描画する画像のカラーコ一ドじから、 既に前 記フレームバッファに描画されている画像のカラ一コード C fを減算する第 1の減 算器と、
前記第 1の減算器の演算結果に、 これから前記フレームバッファに描画する画 像のプレンド率 αを乗算する第 1の乗算器と、
前記第 1の乗算器の演算結果に、 これから前記フレームバッファに描画する画 像のカラーコード Cを加算し、 加算結果を、 既に前記フレームバッファに描画さ れている画像の新たなカラーコードとする加算器と、
1から、 これから前記フレームバッファに描画する画像のプレンド率 αを減算 する第 2の減算器と、
前記第 2の減算器の演算結果に、 既に前記フレームバッファに描画されている 画像のブレンド率 a fを乗算し、 乗算演算結果を、 既に前記フレームバッファに描 画されている画像の新たなプレンド率とする第 2の乗算器と、
を具備することを特徴とする請求の範囲第 9項に記載の表示制御装置。
1 1 . 前記表示制御部は、
被透過画面に描画されている画像のカラーコード C dに、 透過画面に描画されて いる画像のプレンド率 a sを乗算する第 3の乗算器と、
前記透過画面に描画されている画像のカラーコード C sから、 前記第 3の乗算器 の演算結果を減算する第 3の減算器と、
前記第 3の減算器の演算結果に、 前記透過画面と前記被透過画面の表示透過率 a xを乗算する第 4の乗算器と、
前記第 4の乗算器の演算結果と、 前記第 3の乗算器の演算結果とを加算し、 加 算演算結果を前記合成結果とする第 2の加算器と、
を具備することを特徴とする請求の範囲第 1 0項に記載の表示制御装置。
1 2 . 描画結果を記憶するフレームバッファと、
前記フレームバッファよりも高速で、 かつ記憶容量が小さいテンポラリメモリ と、
前記テンポラリメモリに既に記憶されている描画結果と、 前記テンポラリメモ リにこれから描画する描画結果とをプレンド処理し、 プレンド処理結果を前記テ ンポラリメモリに格納する工程、 および前記フレームバッファに既に記憶されて いる描画結果と、 前記テンポラリメモリに記憶されている描画結果とをプレンド 処理し、 ブレンド処理結果を前記フレームバッファに格納する工程を処理装置に おこなわせるプログラムと、
前記プログラムを実行する前記処理装置と、
を具備することを特徴とする描画装置。
1 3 . 描画結果を記憶するフレームバッファと、
前記フレームバッファよりも高速で、 かつ記憶容量が小さい第 1のテンポラリ メモリおょぴ第 2のテンポラリメモリと、
前記第 1のテンポラリメモリに描画範囲を割り当て、 割り当てた描画範囲に収 まる限り、 前記第 1のテンポラリメモリに対して描画をおこなう第 1の工程、 前 記第 1のテンポラリメモリと前記フレームバッファの間でプレンド処理をおこな レ、、 処理結果を前記フレームバッファに書き込みながら、 前記第 2のテンポラリ メモリに、 前記第 1のテンポラリメモリに割り当てた描画範囲と異なる描画範囲 を割り当て、 割り当てた描画範囲に収まる限り、 前記第 2のテンポラリメモリに 対して描画をおこなう第 2の工程、 前記第 2のテンポラリメモリと前記フレーム バッファの間でプレンド処理をおこない、 処理結果を前記フレームバッファに書 き込みながら、 前記第 1のテンポラリメモリに、 前記第 2のテンポラリメモリに 割り当てた描画範囲と異なる描画範囲を割り当て、 割り当てた描画範囲に収まる 限り、 前記第 1のテンポラリメモリに対して描画をおこなう第 3の工程、 以下第 2の工程と第 3の工程の交互の繰り返しを処理装置におこなわせるプログラムと 前記プログラムを実行する前記処理装置と、
を具備することを特徴とする描画装置。
1 4 . 描画結果を記憶するフレームバッファと、
前記フレームバッファよりも高速で、 かつ記憶容量が小さい第 1のテンポラリ メモリおよび第 2のテンポラリメモリと、
前記第 1のテンポラリメモリに描画範囲を割り当て、 割り当てた描画範囲に収 まる限り、 前記第 1のテンポラリメモリに対して描画をおこなう第 1の工程、 前記第 2のテンポラリメモリに、 前記第 1のテンポラリメモリに割り当てた描 画範囲と異なる描画範囲を割り当て、 割り当てた描画範囲に収まる限り、 前記第 2のテンポラリメモリに対して描画をおこなう第 2の工程、
前記第 1のテンポラリメモリと前記フレームバッファの間でプレンド処理をお こない、 処理結果を前記フレームバッファに書き込む第 3の工程、
前記第 1のテンポラリメモリに、 前記第 2のテンポラリメモリに割り当てた描 画範囲と異なる描画範囲を割り当て、 割り当てた描画範囲に収まる限り、 前記第 1のテンポラリメモリに対して描画をおこなう第 4の工程、
前記第 2のテンポラリメモリと前記フレームバッファの間でプレンド処理をお こない、 処理結果を前記フレームバッファに書き込む第 5の工程、
以下第 2の工程から第 5の工程の繰り返しを処理装置におこなわせるプログラ ムと、
前記プログラムを実行する前記処理装置と、
を具備することを特徴とする描画装置。
1 5 . 描画結果を記憶するフレームバッファと、
前記フレームバッファに既に記憶されている描画結果と、 前記フレームバッフ ァにこれから描画する描画結果とをプレンド処理する工程を処理装置におこなわ せるプログラムと、
前記プログラムを実行し、 前記フレームバッファに既に記憶されている描画結 果と、 前記フレームバッファにこれから描画する描画結果とのブレンド処理結果 を、 前記フレームバッファに格納する前記処理装置と、
前記フレームバッファに既に記憶されている複数の描画結果を画素単位で透過 もしくは非透過の処理をして合成する表示制御部と、
を具備することを特徴とする表示制御装置。
1 6 . 描画結果を記憶するフレームバッファと、
前記フレームバッファに既に記憶されている描画結果と、 前記フレームバッフ ァにこれから描画する描画結果とをプレンド処理する工程を処理装置におこなわ せるプログラムと、
前記プログラムを実行し、 前記フレームバッファに既に記憶されている描画結 果と、 前記フレームバッファにこれから描画する描画結果とのプレンド処理結果 を、 前記フレームバッファに格納する前記処理装置と、
前記フレームバッファに既に記憶されている複数の描画結果をプレンド処理し て合成する表示制御部と、
を具備することを特徴とする表示制御装置。
1 7 . 描画結果を記憶する第 1のフレームバッファおよぴ第 2のフレームバッフ ァと、
前記第 1のフレームバッファに既に記憶されている描画結果と、 前記第 1のフ レームバッファにこれから描画する描画結果とをブレンド処理し、 ブレンド処理 結果を前記第 1のフレームバッファに格納する第 1の描画部と、
前記第 1のフレームバッファに既に記憶されている複数の描画結果を画素単位 で透過もしくは非透過の処理をして合成し、 合成結果を前記第 2のフレームバッ ファに格納する第 2の描画部と、
前記第 2のフレームバッファに格納された描画結果を表示する表示制御部と、 を具備することを特徴とする表示制御装置。
1 8 . 描画結果を記憶する第 1のフレームバッファおよび第 2のフレ一ムバッフ ァと、
前記第 1のフレームバッファに既に記憶されている描画結果と、 前記第 1のフ レームバッファにこれから描画する描画結果とをブレンド処理し、 ブレンド処理 結果を前記第 1のフレームバッファに格納する第 1の描画部と、
前記第 1のフレームバッファに既に記憶されている複数の描画結果をブレンド 処理して合成し、 合成結果を前記第 2のフレームバッファに格納する第 2の描画 部と、
前記第 2のフレームバッファに格納された描画結果を表示する表示制御部と、 を具備することを特徴とする表示制御装置。
1 9 . 描画結果を記憶する第 1のフレームバッファおよび第 2のフレームバッフ ァと、
前記第 1のフレームバッファに既に記憶されている描画結果と、 前記第 1のフ レームバッファにこれから描画する描画結果とをブレンド処理する工程、 前記第
1のフレームバッファに既に記憶されている複数の描画結果を画素単位で透過も しくは非透過の処理をして合成する工程、 前記第 2のフレームバッファに格納さ れた描画結果を表示する工程、 を処理装置におこなわせるプログラムと、 前記プログラムを実行し、 前記第 1のフレームバッファに既に記憶されている 描画結果と、 前記第 1のフレームバッファにこれから描画する描画結果とのブレ ンド処理結果を、 前記第 1のフレームバッファに格納し、 前記第 1のフレームバ ッファに既に記憶されている複数の描画結果を画素単位で透過もしくは非透過の 処理をして合成した結果を、 前記第 2のフレームバッファに格納する前記処理装 置と、
を具備することを特徴とする表示制御装置。
2 0 . 描画結果を記憶する第 1のフレームバッファおよび第 2のフレームバッフ ァと、
前記第 1のフレームバッファに既に記憶されている描画結果と、 前記第 1のフ レームバッファにこれから描画する描画結果とをプレンド処理する工程、 前記第 1のフレームバッファに既に記憶されている複数の描画結果をブレンド処理して 合成する工程、 前記第 2のフレームバッファに格納された描画結果を表示するェ 程、 を処理装置におこなわせるプログラムと、
前記プログラムを実行し、 前記第 1のフレームバッファに既に記憶されている 描画結果と、 前記第 1のフレームバッファにこれから描画する描画結果とのブレ ンド処理結果を、 前記第 1のフレームバッファに格納し、 前記第 1のフレームバ ッファに既に記憶されている複数の描画結果をプレンド処理して合成した結果を 、 前記第 2のフレームバッファに格納する前記処理装置と、
を具備することを特徴とする表示制御装置。
PCT/JP2003/004772 2003-04-15 2003-04-15 描画装置および表示制御装置 Ceased WO2004093043A1 (ja)

Priority Applications (5)

Application Number Priority Date Filing Date Title
AU2003227503A AU2003227503A1 (en) 2003-04-15 2003-04-15 Drawing device and display controller
EP03717591A EP1583072A4 (en) 2003-04-15 2003-04-15 CHARACTERIZATION AND DISPLAY CONTROL
JP2004570875A JP4268142B2 (ja) 2003-04-15 2003-04-15 描画装置
PCT/JP2003/004772 WO2004093043A1 (ja) 2003-04-15 2003-04-15 描画装置および表示制御装置
US11/091,435 US7554554B2 (en) 2003-04-15 2005-03-29 Rendering apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2003/004772 WO2004093043A1 (ja) 2003-04-15 2003-04-15 描画装置および表示制御装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US11/091,435 Continuation US7554554B2 (en) 2003-04-15 2005-03-29 Rendering apparatus

Publications (1)

Publication Number Publication Date
WO2004093043A1 true WO2004093043A1 (ja) 2004-10-28

Family

ID=33193226

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2003/004772 Ceased WO2004093043A1 (ja) 2003-04-15 2003-04-15 描画装置および表示制御装置

Country Status (5)

Country Link
US (1) US7554554B2 (ja)
EP (1) EP1583072A4 (ja)
JP (1) JP4268142B2 (ja)
AU (1) AU2003227503A1 (ja)
WO (1) WO2004093043A1 (ja)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013024506A1 (ja) * 2011-08-15 2013-02-21 三菱電機株式会社 描画制御装置
JP2018013540A (ja) * 2016-07-19 2018-01-25 株式会社アクセル 画像処理システム、遊技機
JP2019109518A (ja) * 2019-01-16 2019-07-04 株式会社アクセル 画像処理システム、遊技機

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4882626B2 (ja) * 2006-09-15 2012-02-22 富士ゼロックス株式会社 画像処理装置、画像形成装置及びプログラム
US8089493B2 (en) * 2007-08-14 2012-01-03 Seiko Epson Corporation Image processing circuit, display device, and printing device
JP4404116B2 (ja) * 2007-08-14 2010-01-27 セイコーエプソン株式会社 画像処理回路、表示装置及び印刷装置
US20090262125A1 (en) * 2008-04-18 2009-10-22 Vasanth Swaminathan Rendering A Multiple Viewpoint Image Into A Single Frame Buffer Using Off-Screen Rendering Surfaces
JP5408906B2 (ja) * 2008-05-28 2014-02-05 キヤノン株式会社 画像処理装置
US9035969B2 (en) 2012-11-29 2015-05-19 Seiko Epson Corporation Method for multiple projector display using a GPU frame buffer
JP6969295B2 (ja) * 2017-10-31 2021-11-24 富士フイルムビジネスイノベーション株式会社 情報処理装置及び画像処理システム
CN109538189B (zh) * 2018-09-27 2022-05-20 核工业北京地质研究院 基于超声成像测井数据采集过程中图像实时显示的方法
US20250078389A1 (en) * 2023-08-31 2025-03-06 Arm Limited Double buffering for accumulated history

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11272846A (ja) * 1998-03-23 1999-10-08 Mitsubishi Electric Corp 図形表示装置
EP0952546A2 (en) * 1998-03-27 1999-10-27 Nec Corporation Image color blending processor
JP2001167289A (ja) * 1999-12-13 2001-06-22 Sega Corp ブレンディング処理を含む画像処理装置及びその方法
JP2002033904A (ja) * 2000-07-19 2002-01-31 Hitachi Ltd 画像処理装置
JP2003006665A (ja) * 2001-06-22 2003-01-10 Hitachi Ltd 画像処理システム及びカーナビゲーションシステム

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5351067A (en) * 1991-07-22 1994-09-27 International Business Machines Corporation Multi-source image real time mixing and anti-aliasing
JP3626514B2 (ja) * 1994-01-21 2005-03-09 株式会社ルネサステクノロジ 画像処理回路
US5740343A (en) * 1995-11-03 1998-04-14 3Dfx Interactive, Incorporated Texture compositing apparatus and method
US6144365A (en) * 1998-04-15 2000-11-07 S3 Incorporated System and method for performing blending using an over sampling buffer
US6134345A (en) * 1998-08-28 2000-10-17 Ultimatte Corporation Comprehensive method for removing from an image the background surrounding a selected subject
US6259462B1 (en) * 1998-12-09 2001-07-10 Ati International Srl Method and apparatus for texture blending in a video graphics circuit
US6369830B1 (en) 1999-05-10 2002-04-09 Apple Computer, Inc. Rendering translucent layers in a display system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11272846A (ja) * 1998-03-23 1999-10-08 Mitsubishi Electric Corp 図形表示装置
EP0952546A2 (en) * 1998-03-27 1999-10-27 Nec Corporation Image color blending processor
JP2001167289A (ja) * 1999-12-13 2001-06-22 Sega Corp ブレンディング処理を含む画像処理装置及びその方法
JP2002033904A (ja) * 2000-07-19 2002-01-31 Hitachi Ltd 画像処理装置
JP2003006665A (ja) * 2001-06-22 2003-01-10 Hitachi Ltd 画像処理システム及びカーナビゲーションシステム

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP1583072A4 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013024506A1 (ja) * 2011-08-15 2013-02-21 三菱電機株式会社 描画制御装置
JPWO2013024506A1 (ja) * 2011-08-15 2015-03-05 三菱電機株式会社 描画制御装置
JP2018013540A (ja) * 2016-07-19 2018-01-25 株式会社アクセル 画像処理システム、遊技機
JP2019109518A (ja) * 2019-01-16 2019-07-04 株式会社アクセル 画像処理システム、遊技機

Also Published As

Publication number Publication date
JP4268142B2 (ja) 2009-05-27
EP1583072A4 (en) 2010-03-10
AU2003227503A1 (en) 2004-11-04
JPWO2004093043A1 (ja) 2006-07-06
EP1583072A1 (en) 2005-10-05
US20050168473A1 (en) 2005-08-04
US7554554B2 (en) 2009-06-30

Similar Documents

Publication Publication Date Title
US6999087B2 (en) Dynamically adjusting sample density in a graphics system
EP0547784B1 (en) Managing display windows of interrelated applications
US6975322B2 (en) Dynamically adjusting a number of rendering passes in a graphics system
KR100989010B1 (ko) 그래픽 데이터 및 디지털 문서 프로세싱의 시각적표현들을 생성하는 시스템 및 방법
CN103686304B (zh) 一种图层合成方法、装置及终端设备
WO2004093043A1 (ja) 描画装置および表示制御装置
US6985149B2 (en) System and method for decoupling the user interface and application window in a graphics application
NO337350B1 (no) Forenkling av vekselvirkning mellom videorendrere og grafikkanordningsdrivere
CN110599564A (zh) 图像展示方法、装置、计算机设备和存储介质
US5195174A (en) Image data processing apparatus capable of composing one image from a plurality of images
JPS6191777A (ja) ビデオ画像形成装置
EP1345168B1 (en) Dynamically adjusting sample density and/or number of rendering passes in a graphics system
JP2008116874A (ja) マルチディスプレイシステム、及びこのシステム上で実行されるプログラム
US20110157199A1 (en) Method and Device for Processing Digital Images
JP3043077B2 (ja) フレームバッファ制御装置
JPH04156496A (ja) 画像表示装置
JPH07295546A (ja) 画像処理装置
CN117863869A (zh) 一种指针式仪表盘显示方法、装置、显示设备和存储介质
JPH10124039A (ja) 図形表示装置
JPH1031573A (ja) 情報処理装置
JP4661112B2 (ja) 画像情報処理装置及び画像情報処理方法
JP2003150970A (ja) 画像作成方法、画像表示処理装置、画像表示処理方法および画像表示処理プログラム
JP2006227555A (ja) マルチウィンドウ表示装置及びマルチウィンドウ画像管理方法
CN111986131A (zh) 图像合成方法、装置及电子设备
WO2025246854A1 (zh) 图像处理方法和装置

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NI NO NZ OM PH PL PT RO RU SC SD SE SG SK SL TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2004570875

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 2003717591

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 11091435

Country of ref document: US

WWP Wipo information: published in national office

Ref document number: 2003717591

Country of ref document: EP