CN101563711A - Post-render graphics transparency - Google Patents

Post-render graphics transparency Download PDF

Info

Publication number
CN101563711A
CN101563711A CNA2007800462456A CN200780046245A CN101563711A CN 101563711 A CN101563711 A CN 101563711A CN A2007800462456 A CNA2007800462456 A CN A2007800462456A CN 200780046245 A CN200780046245 A CN 200780046245A CN 101563711 A CN101563711 A CN 101563711A
Authority
CN
China
Prior art keywords
transparency
mixed process
scheme
pixel
transparency parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2007800462456A
Other languages
Chinese (zh)
Inventor
斯蒂文·托德·韦布鲁
西蒙·威尔逊
布莱恩·埃利斯
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.)
Qualcomm Inc
Original Assignee
Qualcomm Inc
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 Qualcomm Inc filed Critical Qualcomm Inc
Publication of CN101563711A publication Critical patent/CN101563711A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

An apparatus, method, and computer program product for applying transparency to a rendered surface. The apparatus comprises a graphics processor configured to render a surface, wherein a transparency parameter is associated with the surface, the transparency parameter defining a blending process. The apparatus further includes a display processor configured to blend the rendered surface in accordance with the transparency parameter. Preferably, the transparency parameter is an EGL surface attribute.

Description

Post-render graphics transparency
Related application
The application's case is advocated the rights and interests of the 60/870th, No. 361 U.S. Provisional Application case of application on Dec 15th, 2006, and described application case is incorporated herein by reference.
Technical field
The present invention relates to graphics process, and more particularly, relate to after render process surperficial application transparency.
Background technology
Availability or " the apparent and sensation " of effect to improve environment or specific operation as the surface transparent degree used at modern day user interface (UI).Use an example the relocating of transparency as window.When window moved, window becomes background transparent and window and window rear can be in sight.Embedded system shape library (EGL) specification does not provide the method for the appointment 3D surface transparent degree except that color is seted the tone.Thereby content provider and founder must know required color to realize the transparency of being wanted.And, because (for example, do not support α to mix in the time of eglSwapbuffers), the surface being posted to display so it is all or noon model.
Summary of the invention
In view of above, the present invention proposes by using constant or every pixel α to realize method, equipment and the computer program with the realization partially transparent of mixing with another content of the irrelevant surface transparent degree of content and surface (comprising the 3D surface) and display.
According to an embodiment, described equipment comprises graphic process unit, and it is configured to play up the surface, and wherein the transparency parameter is associated with described surface, and described transparency parameter defines mixed process.Described equipment further comprises video-stream processor, and it is configured to mix the surface of being played up according to described transparency parameter.Described transparency parametric optimization is the EGL surface properties.
The details of one or more embodiment of statement in the following drawings and description.From describing and graphic, and will understand further feature of the present invention, target and advantage from claim.
Description of drawings
Fig. 1 is the block diagram of GPU and video-stream processor.
Fig. 2 is with transparency scheme and the horizontal application process flow diagram to the method on surface.
Fig. 3 is the GPU in the mobile device and the block diagram of video-stream processor.
Fig. 4 is with transparency scheme and the horizontal application process flow diagram to the method on surface.
Fig. 5 shows the EGL surface properties that comprises the transparency parameter.
Embodiment
Fig. 1 shows the block diagram of GPU and video-stream processor.Graphics Processing Unit (GPU) is in order to play up, to handle and to show the dedicated graphics rendering device of computerized figure.Usually put GPU to come together to build with the height parallel construction, described height parallel construction is compared with typical general CPU (central processing unit) (CPU) in the scope of complex figure related algorithm more effective processing is provided.For instance, complicated algorithm can be corresponding to the expression of the figure of three-dimensional computerization.GPU can implement some so-called " pel " graphic operation (for example, forming point, line and triangle), with using CPU image is drawn directly into the 3-D view that display is compared generation complexity quickly on display.
GPU 110 is the graphic process unit of the graphic frame that is used to play up final display.For the present invention, term " is played up " and is referred to that 3D and 2D play up.As example, GPU 110 can utilize open graphic library (OpenGL) instruction to play up the 3D graphic frame, maybe can utilize open vector graphics (OpenVG) instruction to play up the 2D graphic frame.Yet GPU 110 can utilize any standard, method or the technology that is used for render graphics.
The GPU 110 practicable instructions that are stored in the storer 150.Storer 150 can comprise can storage instruction any permanent or volatile memory.In addition, GPU 110 can carry out the instruction that receives via air interface (for example, CDMA 1x, EV-DO, WiFi).The surface storage of being played up by GPU 110 is in impact damper 120.Impact damper 120 can be any permanent or volatile memory that can store data.The user program of employing GPU 110 can select to be applied to the transparency scheme and the level wanted on the surface of being played up.For purposes of the present invention, transparency " level " is defined as constant α value, every pixel α value or its linear combination (that is multiplication).To select transparency scheme and level is stored in the storer 150 for video-stream processor 130 uses.The example of possible transparency scheme comprises constant α transparency and every pixel α transparency.Yet, can adopt any transparency scheme.
Specifically, the transparency scheme can be stored as the parameter that is associated with the surface that will play up and show.As an example, this parameter can be the embedded system shape library (EGL that is included in the surface TM) attribute in the description.EGL is the interface between API such as for example OpenGL ES or OpenVG and basic local platen window system.In this way, the third party developer of application program can use familiar programming language to define the surface transparent degree and needn't develop and be used to instruct specific video-stream processor to carry out the independent order of mixed process.Fig. 8 shows the example of the EGL surface properties 500 that comprises transparency parameter 525.
When MDP transferred to actual display with the surface of being played up, mixed with the constant α of other content of display on the surface (comprising the surface that 3D plays up) that the transparency parameter 525 in the EGL surface properties 500 allows the specification support of single α value to be played up.Perhaps, this transparency parameter can use the α passage on the surface of being played up or separately pre-stored or dynamic calculation α figure and realize that the surface of being played up mixes with every pixel of existing displaying contents.In addition, this transparency parameter can use with the α passage on the surface of being played up of constant α value combination or separately pre-stored or dynamic calculation α figure and realize that the surface of being played up mixes with every pixel of existing displaying contents.Use the EGL surface properties to allow user program (or window manager) with the designated surface transparencies in some patterns.Provide support to allow, thereby in the specific color that does not need in the application content, allow modern UI effect than the more flexibility of setting the tone by the simple color of EGL support to more transparency schemes.
Constant α transparency and every pixel α transparency are example α and mix.α mixes and refers to image (for example, the surface of being played up) and the technology of background combination with the outward appearance of generation partially transparent.The degree or the level of mixing the pixel in the surface of being played up are stored in the α passage.The α passage is attended by the rgb value of each pixel.Usually, the α channel value at 0 (transparent fully) in the scope of 255 (opaque fully).Yet, can adopt any scope or the precision of α.Having α and be 0 the surface pixels of being played up will be for fully transparent, and therefore with the color of the pixel in the display background, and will can't see the color of the surface pixels of being played up.On the contrary, having α and be 255 the surface pixels of being played up will be for opaque fully, and will can't see the pixel in the background image.For the α value between 0 and 255, the color-values of graphical pixel of being played up and background image pixel is added on together through independent convergent-divergent and with linear forms.
By baud (Porter) and daf (Duff) in Thomas's baud (Thomas Porter) and Tom's daf (TomDuff), composite number word image (Compositing Digital Images), computer graphical (Computer Graphics), 18 (3), in July, 1984, the 253-259 page or leaf is described the common technique that a kind of α of being used for mixes.Its equation is as follows:
r=k 1s+k 2d
R=result
The s=source pixel
D=has destination pixel (background pixel) now
k 1=α or 1-α
k 2=1-α or α
Modally be, by adding the result who realizes mixing source pixel and destination pixel (for example, background pixel) by the destination pixel of (1-α) convergent-divergent to by α value convergent-divergent source pixel and with it.On the contrary, source pixel can be by the α convergent-divergent by (1-α) convergent-divergent and destination pixel.k 1And k 2Variable can be any value, but usually through designing so that k 1+ k 2=1, in above example.If k1 and k2's and greater than 1, the brightness that non-1 gain and image then will take place will increase.Equally, if k1 and k2 addition less than 1, then the brightness of image will reduce.
In constant α transparency, identical alpha levels is applied to all pixels in the surface of being played up.In every pixel α transparency, himself alpha levels of each pixel in the figure that can give to be played up.When specifying constant α value and α figure, scheme every pixel α of retrieval from α to determine effective α value by constant α value convergent-divergent (that is multiplication).
Return Fig. 1, video-stream processor 130 is for being used for driving display 140 (that is, the pixel colour being sent to display) and being used for the processor of render process is afterwards carried out on the surface of being played up.Video-stream processor 130 can be the processor of any kind.As an example, video-stream processor 130 can be embedding by Qualcomm (San Diego, CA city) (Qualcomm, the mobile video-stream processor (MDP) in the transfer table modulator-demodular unit of Inc. (San Diego, CA)) design.MDP be exclusively used in and through optimize be used for driving display and the surface of being played up carried out after play up the processor of function.This function can comprise convergent-divergent, rotation and transparent.Video-stream processor 130 can be stored in instruction in the storer 150 through construction with execution.
When GPU 110 has played up the surface and be stored in it in impact damper 120, video-stream processor 130 from surface that impact damper 120 retrieval is played up and will select the transparency scheme and horizontal application to the surface of being played up.Can obtain transparency scheme and level from storer 150.By using different processor to come application transparency scheme and level, for GPU has saved processing expenditure.In addition, complicated multipass window manager algorithm and frequent hardware graphics pipeline environment change have been avoided.
When using every pixel α transparency, the level of selecting by user program can point to the α figure of pre-stored rather than the surface of being played up in the alpha levels of dynamic calculation of each pixel.These a little α figure can define normally used transparency scheme.For instance, but pre-stored is used for the α figure of irregular window edge.As an example, all pixels in the boundary shape outside can be assigned complete transparent alpha levels, and all pixels in boundary shape inside can be assigned complete opaque alpha levels.Yet, need when using every pixel α transparency, not select the α figure of pre-stored.Can produce indivedual α values of each pixel when needed.
Fig. 2 is with transparency scheme and the horizontal application process flow diagram to the method on surface.In step 201, play up the surface.In step 202, select transparency scheme and level.Then in step 203, with selected transparency scheme and horizontal application to the surface of being played up.
Fig. 3 is the GPU in the mobile device and the block diagram of video-stream processor.The instruction that GPU 310 carries out from the user program of being stored in the storer 350 390.As an example, GPU 310 can be for by Sani Wei Er city, California (Sunnyvale, Advanced Micro Devices(AMD) CA) (Advanced Micro Devices, the Imageon7 that Inc.) makes series GPU.Storer 350 can be embodied as the quickflashing random-access memory (ram).User program 390 can be any program of utilizing GPU 310.For instance, user program 390 can be video-game.GPU 310 carries out from the instruction of user program 390 and plays up the surface that will be shown in the impact damper 320.Impact damper 320 can be synchronous dynamic ram (SDRAM).User program 390 can be configured to be established to the connection of display 340 and/or definite systematic parameter so that determine to be applied to the transparency scheme and the level on the surface of being played up.These a little systematic parameters can be stored in the storer 350.In case user program 390 has been selected transparency scheme and level, user program 390 just is stored in scheme and level in the storer 350 as controlled variable 370.
Storer 350 also can be in order to application storing DLL (dynamic link library) (API) 380.API 380 serves as the pipeline between user program 390 and the MDP 330.When GPU 310 arrived impact damper 320 with surface rendering, user program 390 can be carried out in order to show the instruction on described surface.This idsplay order can be the function that calls API 380.API 380 then instruction control processor 360 control MDP 330 is applied to the surface of being played up in the impact damper 320 will select transparency scheme and level (being stored as controlled variable 370).Processor controls 360 can be senior RISC (Reduced Instruction Set Computer) machine (ARM) processor, for example, embedding is by Qualcomm (San Diego, CA city) (Qualcomm, the ARM in the transfer table modulator-demodular unit of Inc. (San Diego, CA)) design 11Processor.MDP 330 can be embedding by Qualcomm (San Diego, CA city) (Qualcomm, the mobile video-stream processor in the transfer table modulator-demodular unit of Inc. (San Diego, CA)) design.MDP 330 from surface that impact damper 320 retrieval is played up, will select transparency scheme and horizontal application to the surface of being played up, and driving display 340 has the surface that gained is played up of applied transparency with demonstration.
Fig. 4 is with transparency scheme and the horizontal application process flow diagram to the method on surface.In step 401, be established to the connection of display.Then in step 402, determine the characteristic of display.Can be according to the data that before were stored in the storer, or by determining this a little characteristics with the display direct communication.In step 403, select transparency scheme and level.In step 404, will select transparency scheme and level and send to API or make it can be used for API.In step 405, play up the surface.In step 406, display command (for example, eglSwapBuffers) is sent to API.In step 407, AP will order I to send to MDP will select transparency scheme and horizontal application to the surface of being played up.
Equipment as described above, method and computer program product can be adopted by various types of devices, for example, wireless telephone, cellular phone, laptop computer, radio multimedium device are (for example, portable video player or portable video game device), radio communication personal computer (PC) card, PDA(Personal Digital Assistant), outside or internal modems, or any device that communicates by wireless channel.
These a little devices can have various titles, for example, (AT), access unit, subscriber unit, transfer table, mobile device, mobile unit, mobile phone, mobile device, distant station, remote terminal, remote unit, user's set, subscriber's installation, handheld apparatus etc. access terminal.
Any device as described above can have the private memory that is used for storage instruction and data, and specialized hardware, software, firmware or its combination.If with software implementation, so described technology can be presented as can be by the instruction on the computer-readable media of one or more processors execution, and described computer-readable media for example is random-access memory (ram), ROM (read-only memory) (ROM), nonvolatile RAM (NVRAM), Electrically Erasable Read Only Memory (EEPROM), flash memory, magnetic or optical data storage device etc.Described instruction causes one or more processors to carry out described in the present invention functional some aspect.
Technology described in the present invention may be implemented in general purpose microprocessor, digital signal processor (DSP), special IC (ASIC), field programmable gate array (FPGA), or in other equivalent logical unit.Therefore, the assembly that is described as module can form the programmable feature of this process or separate processes.
Can make up various embodiment described herein whole or in part.These and other embodiment is in the scope of appended claims.

Claims (24)

1. equipment that is used for processing graphics, it comprises:
Graphic process unit, it is configured to play up the surface, and wherein the transparency parameter is associated with described surface, and described transparency parameter defines mixed process; And
Video-stream processor, it is configured to mix described surface of playing up according to described transparency parameter.
2. equipment according to claim 1, wherein the EGL surface properties is in described transparency parameter.
3. equipment according to claim 1, wherein said transparency parameter defines constant α mixed process.
4. equipment according to claim 1, wherein said transparency parameter defines every pixel α mixed process.
5. equipment according to claim 1, wherein said transparency parameter define constant α mixed process and every pixel α mixed process.
6. equipment according to claim 1, it further comprises:
Storer, it is configured to store described transparency parameter; And
Processor controls, it is configured to instruct described video-stream processor to mix described surface of playing up according to described transparency parameter.
7. equipment that is used for processing graphics, it comprises:
Be used to play up the device on surface, wherein the transparency parameter is associated with described surface, and described transparency parameter defines mixed process; And
Be used for mixing the mixing arrangement on described surface of playing up according to described transparency parameter.
8. equipment according to claim 7, wherein the EGL surface properties is in described transparency parameter.
9. equipment according to claim 7, wherein said transparency parameter defines constant α mixed process.
10. equipment according to claim 7, wherein said transparency parameter defines every pixel α mixed process.
11. equipment according to claim 7, wherein said transparency parameter define constant α mixed process and every pixel α mixed process.
12. equipment according to claim 7, it further comprises:
Be used to store the device of described transparency parameter; And
Be used to instruct described mixing arrangement to mix the device on described surface of playing up according to described transparency parameter.
13. a method that is used to rotate the surface of being played up, it comprises:
Play up the surface;
Select the transparency scheme; And
Mix described surface of playing up according to described transparency scheme.
14. method according to claim 13 wherein makes described selected transparency scheme be associated with described surface by the EGL surface properties.
15. method according to claim 13 wherein defines described transparency scheme by constant α mixed process.
16. method according to claim 13 wherein defines described transparency scheme by every pixel α mixed process.
17. method according to claim 13 wherein defines described transparency scheme by constant α mixed process and every pixel α mixed process.
18. method according to claim 13, it further comprises:
Be established to the connection of display;
Determine display characteristics;
Described transparency scheme is sent to API;
Send display command; And
Send the instruction video-stream processor and carry out the order of described blend step.
19. a computer-readable media, its storage is used to rotate the computer executable instructions on the surface of being played up, and described computer executable instructions comprises:
Be used to cause computing machine to play up the code on surface;
Be used to cause computing machine to select the code of transparency scheme; And
Be used to cause computing machine to mix the code on described surface of playing up according to described selected transparency scheme.
20. computer-readable media according to claim 19, wherein said selected transparency scheme is associated with described surface by the EGL surface properties.
21. computer-readable media according to claim 19, wherein said transparency scheme are to be defined by constant α mixed process.
22. computer-readable media according to claim 19, wherein said transparency scheme are to be defined by every pixel α mixed process.
23. computer-readable media according to claim 19, wherein said transparency scheme are to be defined by constant α mixed process and every pixel α mixed process.
24. computer-readable media according to claim 19, it further comprises:
Be used to cause computing machine to be established to the code of the connection of display;
Be used to cause computing machine to determine the code of display characteristics;
Be used to cause computing machine described transparency scheme to be sent to the code of API;
Be used to cause computing machine to send the code of display command; And
Be used to cause computing machine to send the code that the instruction video-stream processor is carried out the order of described blend step.
CNA2007800462456A 2006-12-15 2007-12-15 Post-render graphics transparency Pending CN101563711A (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US87036106P 2006-12-15 2006-12-15
US60/870,361 2006-12-15
US11/955,239 2007-12-12

Publications (1)

Publication Number Publication Date
CN101563711A true CN101563711A (en) 2009-10-21

Family

ID=41221587

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007800462456A Pending CN101563711A (en) 2006-12-15 2007-12-15 Post-render graphics transparency

Country Status (1)

Country Link
CN (1) CN101563711A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105427366A (en) * 2015-11-11 2016-03-23 广州华多网络科技有限公司 Image rendering method and image rendering system
CN107016638A (en) * 2016-01-22 2017-08-04 联发科技股份有限公司 The method and its graphics device of α promptings are produced in system storage

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105427366A (en) * 2015-11-11 2016-03-23 广州华多网络科技有限公司 Image rendering method and image rendering system
CN105427366B (en) * 2015-11-11 2018-07-27 广州华多网络科技有限公司 A kind of image rendering method and image rendering system
CN107016638A (en) * 2016-01-22 2017-08-04 联发科技股份有限公司 The method and its graphics device of α promptings are produced in system storage

Similar Documents

Publication Publication Date Title
CN109377546B (en) Virtual reality model rendering method and device
CN106575445B (en) Fur avatar animation
KR20100004119A (en) Post-render graphics overlays
US20090184972A1 (en) Multi-buffer support for off-screen surfaces in a graphics processing system
US20150287220A1 (en) Rendering text using anti-aliasing techniques, cached coverage values, and/or reuse of font color values
WO2023231537A1 (en) Topographic image rendering method and apparatus, device, computer readable storage medium and computer program product
JP2008170988A (en) Graphics controller, method of generating composite image from main image and tile image, and method of superimposing main image on tile background image using graphics controller
CN107320956B (en) A kind of interface generation method and device
CN108664454A (en) E-book page display method, device and terminal device
KR20090087504A (en) Post-render graphics rotation
WO2021189995A1 (en) Video rendering method and apparatus, electronic device, and storage medium
US11699221B2 (en) Image processing apparatus, storage medium and image processing method
CN111338743B (en) Interface processing method and device and storage medium
US10325569B2 (en) Method and apparatus for coding image information for display
US20110018890A1 (en) Computer graphics method for creating differing fog effects in lighted and shadowed areas
KR20090087503A (en) Post-render graphics transparency
CN115375815A (en) Shadow rendering method and device, electronic equipment and storage medium
JP2017111719A (en) Video processing device, video processing method and video processing program
US20090080803A1 (en) Image processing program, computer-readable recording medium recording the program, image processing apparatus and image processing method
CN109065001B (en) Image down-sampling method and device, terminal equipment and medium
CN101563711A (en) Post-render graphics transparency
CN111340684B (en) Method and device for processing graphics in game
JP5256153B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP2023525945A (en) Data Optimization and Interface Improvement Method for Realizing Augmented Reality of Large-Scale Buildings on Mobile Devices
US9092911B2 (en) Subpixel shape smoothing based on predicted shape background information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20091021