本發明係有關於一種圖像處理技術領域,特別是有關於一種圖像渲染(image rendering)方法、裝置及電子設備。The present invention relates to the field of image processing technologies, and in particular, to an image rendering method, apparatus, and electronic device.
圖像渲染主要應用在遊戲,圖形3D演示(如房地產3D演示),虛擬仿真等領域;為了保證圖像渲染的流暢性,保證較高的圖像幀數是非常必要的。圖像幀數是指GPU(Graphic Processing Unit,圖形處理器)每秒鐘能夠刷新(refresh)的次數,通常用fps(Frames Per Second)表示,每一幀都是靜止的圖像,快速連續地顯示幀便形成了運動的假像,較高的幀率可以得到更流暢、更逼真的動畫,幀數(fps)愈高,所顯示的動作就會愈流暢。Image rendering is mainly used in games, graphical 3D presentations (such as real estate 3D presentation), virtual simulation and other fields; in order to ensure the smoothness of image rendering, it is necessary to ensure a high number of image frames. The number of image frames refers to the number of times the GPU (Graphic Processing Unit) can refresh (re), which is usually expressed by fps (Frames Per Second). Each frame is a still image, which is fast and continuous. The display frame forms a motion artifact, and a higher frame rate results in a smoother, more realistic animation. The higher the number of frames (fps), the smoother the displayed motion.
習知技術提高圖像幀數的主要方式為:在進行圖像渲染之前執行一段測試程式,對進行圖像渲染的電子設備的軟硬體配置進行測試,得到電子設備的軟硬體配置的評分,利用評分設置對應的圖像渲染效果;如評分較高時,可相應的設置較高的圖像渲染效果,評分較低時,可相應的設置較低的圖像渲染效果,從而保證電子設備的軟硬體配置與合理的圖像渲染效果相對應,保證較高的圖像幀數。The main way to improve the number of image frames is to execute a test program before the image is rendered, and test the software and hardware configuration of the electronic device for image rendering to obtain the score of the hardware and software configuration of the electronic device. The score is used to set the corresponding image rendering effect; if the score is higher, the higher image rendering effect can be set correspondingly, and when the score is lower, the lower image rendering effect can be set accordingly, thereby ensuring the electronic device. The hardware and software configuration corresponds to a reasonable image rendering effect, ensuring a high number of image frames.
本發明的發明人在研究和實現過程中發現,習知技術至少存在以下的技術問題:在圖像渲染的過程中,圖像渲染所要求的電子設備的軟硬體配置性能是不斷變化的,如在圖像渲染的過程中,簡單場景和複雜場景所需要的軟硬體配置性能是不同的,如空曠的荒野這一場景和多人同時動作這一場景所需要的軟硬體配置性能是不同的,雖然現有技術初始設置的圖像渲染效果與電子設備的軟硬體配置較為合理對應,但當需要對複雜的場景進行圖像渲染時,電子設備的軟硬體配置存在較難滿足所設置的圖像渲染效果的現象,從而使得圖像幀數將大幅降低,無法保證較高的圖像幀數;並且現有技術所得到的電子設備的軟硬體配置的評分也僅與測試程式執行的時刻相對應,如果在執行測試程式的同時執行了佔用資源較大的軟體,或者在實際圖像渲染的過程中開啟了佔用資源較大的軟體時,都將導致影響所設置的圖像渲染效果與電子設備的軟硬體配置的合理性,無法保證較高的圖像幀數,影響圖像渲染的流暢性。The inventors of the present invention found in the research and implementation process that the prior art technology exists at leastIn the following technical problem: in the process of image rendering, the software and hardware configuration performance required for image rendering is constantly changing, such as in the process of image rendering, simple scenes and complex scenes. The performance of the hardware and software configuration is different. For example, the scene of the open wilderness and the performance of the software and hardware configuration required for the simultaneous action of multiple people are different, although the image rendering effect of the prior art is initially set with the electronic device. The configuration of the software and hardware is more reasonable, but when the image is to be rendered in a complex scene, the software and hardware configuration of the electronic device may be difficult to satisfy the image rendering effect, so that the number of image frames will be greatly increased. If the number of image frames cannot be guaranteed, the score of the software and hardware configuration of the electronic device obtained in the prior art is only corresponding to the time when the test program is executed, and if the test program is executed, the occupied resources are executed. Large software, or when the software that occupies a large amount of resources is opened during the actual image rendering process, it will affect the image rendering set. Rationality, can not guarantee a higher number of image frames, image rendering influence of fruit and fluency hardware and software configuration of the electronic device.
因此,習知技術進行圖像渲染的方式無法保證較高的圖像幀數,致使無法保證圖像渲染的流暢性。Therefore, the method of image rendering by conventional techniques cannot guarantee a high image frame.The number does not guarantee the smoothness of image rendering.
有鑒於此,本發明實施例提供一種圖像渲染方法、裝置及電子設備,以解決現有進行圖像渲染的方式無法保證較高的圖像幀數致使無法保證圖像渲染的流暢性的問題。In view of this, the embodiments of the present invention provide an image rendering method, apparatus, and electronic device, so as to solve the problem that the existing image rendering method cannot guarantee a high image frame number, which cannot ensure the smoothness of image rendering.
為實現上述目的,本發明實施例提供如下技術方案:一種圖像渲染方法,應用於電子設備,所述方法包括:透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率;若所述圖像幀率低於設定圖像幀率,對圖像渲染效果參數進行調節,將圖像渲染效果由所述第一圖像渲染效果調整為第二圖像渲染效果,所述第二圖像渲染效果低於所述第一圖像渲染效果;利用所述第二圖像渲染效果進行圖像渲染。To achieve the above objective, the embodiment of the present invention provides the following technical solution: an image rendering method is applied to an electronic device, and the method includes: detecting an image frame rate when performing image rendering through a first image rendering effect;If the image frame rate is lower than the set image frame rate, adjusting the image rendering effect parameter, and adjusting the image rendering effect from the first image rendering effect to the second image rendering effect, The second image rendering effect is lower than the first image rendering effect; the second image rendering effect is used for image rendering.
本發明實施例還提供一種圖像渲染裝置,應用於電子設備,所述裝置包括:圖像幀率檢測模組,用以透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率;第一調整模組,用於在所述圖像幀率低於設定圖像幀率時,對圖像渲染效果參數進行調節,將圖像渲染效果由所述第一圖像渲染效果調整為第二圖像渲染效果,所述第二圖像渲染效果低於所述第一圖像渲染效果;第一圖像渲染模組,用於利用所述第二圖像渲染效果進行圖像渲染。The embodiment of the present invention further provides an image rendering apparatus, which is applied to an electronic device, and the apparatus includes: an image frame rate detecting module, configured to detect an image frame rate when performing image rendering through the first image rendering effect. a first adjustment module, configured to adjust an image rendering effect parameter when the image frame rate is lower than a set image frame rate, and adjust an image rendering effect from the first image rendering effect to a second image rendering effect, the second image rendering effect is lower than the first image rendering effect; and the first image rendering module is configured to perform image rendering by using the second image rendering effect.
本發明實施例還提供一種電子設備,包括上述所述的圖像渲染裝置。An embodiment of the present invention further provides an electronic device, including the image rendering apparatus described above.
基於上述技術方案,本發明實施例提供的圖像渲染方法,透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率,當所檢測的圖像幀率低於設定圖像幀率時,可將圖像渲染效果由所述第一圖像渲染效果調整為第二圖像渲染效果,所述第二圖像渲染效果低於所述第一圖像渲染效果,從而使得圖像渲染效果降低,提升圖像幀率,保證了較高的圖像幀數,確保了圖像渲染的流暢性。本發明實施例可在圖像渲染的過程中,圖像幀率低於設定圖像幀率時,利用降低圖像渲染效果的方式保證較高的圖像幀數,和圖像渲染的流暢性,從而減少了圖像渲染過程中停頓、畫面不順等情況的發生,保證了用戶的視覺體驗。Based on the foregoing technical solution, the image rendering method provided by the embodiment of the present invention detects an image frame rate when the image is rendered by using the first image rendering effect, and when the detected image frame rate is lower than the set image frame rate. The image rendering effect may be adjusted by the first image rendering effect to a second image rendering effect, the second image rendering effect being lower than the first image rendering effect, thereby rendering the image The effect is reduced, the image frame rate is increased, and a high number of image frames is ensured, ensuring smoothness of image rendering. Embodiments of the present invention may be in the process of image rendering, image framesWhen the rate is lower than the set image frame rate, the image rendering effect is reduced to ensure a higher number of image frames, and the smoothness of the image rendering, thereby reducing the pause in the image rendering process, the image is not smooth, etc. Occurs to ensure the user's visual experience.
100‧‧‧圖像幀率檢測模組100‧‧‧Image frame rate detection module
200‧‧‧第一調整模組200‧‧‧First adjustment module
210‧‧‧第一逐級調整單元210‧‧‧First step-by-step adjustment unit
2101‧‧‧第一調整執行子單元2101‧‧‧First adjustment execution subunit
2102‧‧‧第二調整執行子單元2102‧‧‧Second adjustment execution subunit
300‧‧‧第一圖像渲染模組300‧‧‧First Image Rendering Module
400‧‧‧第二調整模組400‧‧‧Second adjustment module
410‧‧‧第二逐級調整單元410‧‧‧Second step by step adjustment unit
500‧‧‧配置資訊檢測模組500‧‧‧Configure information detection module
600‧‧‧對應圖像渲染效果設置模組600‧‧‧ corresponding image rendering effect setting module
700‧‧‧初始渲染模組700‧‧‧Initial Rendering Module
800‧‧‧資訊儲存模組800‧‧‧Information Storage Module
900‧‧‧調取渲染模組900‧‧‧Retrieve the rendering module
1110‧‧‧射頻(RF)電路1110‧‧‧ Radio Frequency (RF) Circuit
1120‧‧‧記憶體1120‧‧‧ memory
1130‧‧‧輸入單元1130‧‧‧ Input unit
1131‧‧‧觸控面板1131‧‧‧ touch panel
1132‧‧‧其他輸入設備1132‧‧‧Other input devices
1140‧‧‧顯示單元1140‧‧‧Display unit
1141‧‧‧顯示面板1141‧‧‧ display panel
1150‧‧‧感測器1150‧‧‧ sensor
1160‧‧‧音頻電路1160‧‧‧ audio circuit
1161‧‧‧揚聲器1161‧‧‧Speakers
1162‧‧‧傳聲器1162‧‧‧Microphone
1170‧‧‧WiFi模組1170‧‧‧WiFi module
1180‧‧‧處理器1180‧‧‧ processor
1190‧‧‧電源1190‧‧‧Power supply
S100~S120‧‧‧步驟S100~S120‧‧‧Steps
S200~S220‧‧‧步驟S200~S220‧‧‧Steps
S300~S330‧‧‧步驟S300~S330‧‧‧Steps
S400~S420‧‧‧步驟S400~S420‧‧‧Steps
S500~S550‧‧‧步驟S500~S550‧‧‧Steps
S600~S690‧‧‧步驟S600~S690‧‧‧Steps
為了更清楚地說明本發明實施例中的技術方案,下面將對實施例描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明的一些實施例,對於本發明所屬技術領域中具有通常知識者來講,還可以根據這些附圖獲得其他的附圖。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art to which the invention pertains.
第1圖為本發明實施例提供的圖像渲染方法的流程圖;第2圖為本發明實施例提供的圖像渲染方法的另一流程圖;第3圖為本發明實施例提供的圖像渲染方法的再一流程圖;第4圖為本發明實施例提供的圖像渲染方法的又一流程圖;第5圖為本發明實施例提供的圖像渲染方法的又另一流程圖;第6圖為本發明實施例提供的圖像渲染方法的又再一流程圖;第7圖為本發明實施例提供的圖像渲染裝置的結構方塊圖;第8圖為本發明實施例提供的第一調整模組的結構方塊圖;第9圖為本發明實施例提供的第一逐級調整單元的結構方塊圖;第10圖為本發明實施例提供的第一逐級調整單元的另一結構方塊圖;第11圖為本發明實施例體提供的圖像渲染裝置的另一結構方塊圖;第12圖為本發明實施例體提供的第二調整模組的結構方塊圖;第13圖為本發明實施例提供的圖像渲染裝置的再一結構方塊圖;第14圖為本發明實施例提供的圖像渲染裝置的又一結構方塊圖;以及第15圖為本發明實施例提供的電子設備相關的手機的部分結構的方塊圖。1 is a flowchart of an image rendering method according to an embodiment of the present invention; FIG. 2 is another flowchart of an image rendering method according to an embodiment of the present invention; FIG. 4 is still another flowchart of an image rendering method according to an embodiment of the present invention; FIG. 5 is still another flowchart of an image rendering method according to an embodiment of the present invention; FIG. 7 is a block diagram of an image rendering apparatus according to an embodiment of the present invention; FIG. 8 is a block diagram of an image rendering apparatus according to an embodiment of the present invention; FIG. 9 is a structural block diagram of a first step-by-step adjustment unit according to an embodiment of the present invention; FIG. 10 is another structure of a first step-by-step adjustment unit according to an embodiment of the present invention; FIG. 11 is a block diagram showing another structure of an image rendering apparatus according to an embodiment of the present invention; FIG. 12 is a block diagram showing a second adjustment module provided by an embodiment of the present invention; Image rendering device provided by embodiment of the invention A block diagram showing a further configuration;FIG. 14 is still another block diagram of an image rendering apparatus according to an embodiment of the present invention;FIG. 15 is a block diagram showing a partial structure of an electronic device related to an electronic device according to an embodiment of the present invention.
下面將結合本發明實施例中的附圖,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments.
第1圖為本發明實施例提供的圖像渲染方法的流程圖,該方法可應用於能夠進行圖像渲染的電子設備上,如安裝有網路遊戲的電子設備,安裝有圖像渲染軟體(如圖形3D演示,虛擬仿真等)的電子設備,電子設備可以是手機,筆記本等可進行圖形顯示的設備,參照第1圖,該方法可以包括:步驟S100、透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率;圖像幀率可以是GPU在一段時間內所處理的圖像平均幀數。FIG. 1 is a flowchart of an image rendering method according to an embodiment of the present invention. The method can be applied to an electronic device capable of image rendering, such as an electronic device equipped with a network game, and an image rendering software is installed ( As shown in FIG. 1 , the method may include: step S100, performing a rendering through the first image rendering effect. When rendering, the image frame rate is detected; the image frame rate can be the average number of frames processed by the GPU over a period of time.
在一實施例中,第一圖像渲染效果可以是電子設備在開始進行圖像渲染時,所使用的圖像渲染效果,第一圖像渲染效果可由用戶手動設定,也可以是系統所推薦的圖像渲染效果,顯然也可以是利用現有技術對電子設備的軟硬體配置進行評分後,所設置的與評分較為合理的圖像渲染效果。In an embodiment, the first image rendering effect may be an image rendering effect used by the electronic device when starting image rendering, and the first image rendering effect may be manually set by the user, or may be recommended by the system. The image rendering effect can obviously be an image rendering effect that is set and scored reasonably after scoring the software and hardware configuration of the electronic device by using the prior art.
在一實施例中,第一圖像渲染效果也可以是電子設備在開始進行圖像渲染之後,調整過後的圖像渲染效果;即第一圖像渲染效果可以是電子設備在開始進行圖像渲染之後,進行過任意次數的圖像渲染效果調整後,所使用的圖像渲染效果。In an embodiment, the first image rendering effect may also be an adjusted image rendering effect after the electronic device starts to perform image rendering; that is, the first image rendering effect may beIt is the image rendering effect used by the electronic device after adjusting the image rendering effect after starting the image rendering.
步驟S110、若所述圖像幀率低於設定圖像幀率,對圖像渲染效果參數進行調節,將圖像渲染效果由所述第一圖像渲染效果調整為第二圖像渲染效果,所述第二圖像渲染效果低於所述第一圖像渲染效果;在一實施例中,設定圖像幀率可與第一圖像渲染效果相對應;本發明實施例可在不同的圖像渲染效果下設置對應的設定圖像幀率,在當前圖像幀率低於當前圖像渲染效果所對應的設定圖像幀率時,可對當前圖像渲染效果進行調整,降低圖像渲染效果,提高圖像幀率。Step S110, if the image frame rate is lower than a set image frame rate, rendering the imageThe effect parameter is adjusted to adjust an image rendering effect from the first image rendering effect to a second image rendering effect, the second image rendering effect being lower than the first image rendering effect; In an example, the set image frame rate may correspond to the first image rendering effect; in the embodiment of the present invention, the corresponding set image frame rate may be set under different image rendering effects, and the current image frame rate is lower than the current image frame rate. When the image frame rate corresponding to the image rendering effect is set, the current image rendering effect can be adjusted to reduce the image rendering effect and increase the image frame rate.
在一實施例中,設定圖像幀率也可以是反應圖像流暢性的標準值(即設定圖像幀率為定值),該標準值可視實際應用情況而定。In an embodiment, setting the image frame rate may also be a target for responsive image fluency.The quasi value (that is, set the image frame rate to a fixed value), the standard value may depend on the actual application.
圖像渲染效果參數與圖像渲染效果相對應,圖像渲染效果參數可以是圖像渲染效果的表徵;圖像渲染效果參數可以是圖像畫質參數,如全螢幕泛光參數,陰影級別參數,特效級別等參數。Image rendering effect parameters correspond to image rendering effects, image rendering effectsThe number can be a representation of the image rendering effect; the image rendering effect parameter can be an image quality parameter, such as a full screen flooding parameter, a shadow level parameter, an effect level, and the like.
在一實施例中,第二圖像渲染效果可利用所檢測的圖像幀率與設定圖像幀率的差值進行確定,在確定了所檢測的圖像幀率與設定圖像幀率的差值後,可利用預定圖像幀率差值與圖像渲染效果的對應關係,確定與所確定的差值相對應的圖像渲染效果,該所確定的圖像渲染效果即為第二圖像渲染效果;其中,預定圖像幀率差值與圖像渲染效果的對應關係可利用實際應用情況設定,本發明實施例並不作限制。In an embodiment, the second image rendering effect may utilize the detected image frame rateDetermining the difference from the set image frame rate, and after determining the difference between the detected image frame rate and the set image frame rate, the correspondence between the predetermined image frame rate difference and the image rendering effect may be utilized. Determining an image rendering effect corresponding to the determined difference, the determined image rendering effect being a second image rendering effect; wherein, the correspondence between the predetermined image frame rate difference and the image rendering effect The embodiment of the present invention is not limited by the actual application.
步驟S120、利用所述第二圖像渲染效果進行圖像渲染。Step S120: Perform image rendering by using the second image rendering effect.
由於第二圖像渲染效果低於第一圖像渲染效果,因此在圖像幀率低於設定圖像幀率時,利用降低圖像渲染效果,降低圖像畫質,達到提升圖像幀率的目的。Since the second image rendering effect is lower than the first image rendering effect, the image isWhen the frame rate is lower than the set image frame rate, the image rendering effect is reduced, the image quality is reduced, and the image frame rate is improved.
值得注意的是,第一圖像渲染效果和第二圖像渲染效果並不特指,其表示的是圖像渲染過程中任意的兩個圖像渲染效果。當透過所述第二圖像渲染效果進行圖像渲染時,若檢測到圖像幀率低於設定圖像幀率時,可利用第1圖所示方法進行圖像渲染效果的調整。It is worth noting that the first image rendering effect and the second image rendering effect are notSpecifically, it represents any two image rendering effects in the image rendering process. When image rendering is performed by the second image rendering effect, if it is detected that the image frame rate is lower than the set image frame rate, the image rendering effect can be adjusted by the method shown in FIG.
本發明實施例提供的圖像渲染方法,透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率,當所檢測的圖像幀率低於設定圖像幀率時,可將圖像渲染效果由所述第一圖像渲染效果調整為第二圖像渲染效果,所述第二圖像渲染效果低於所述第一圖像渲染效果,從而使得圖像渲染效果降低,提升圖像幀率,保證了較高的圖像幀數,確保了圖像渲染的流暢性。本發明實施例可在圖像渲染的過程中,圖像幀率低於設定圖像幀率時,利用降低圖像渲染效果的方式保證較高的圖像幀數,和圖像渲染的流暢性,從而減少了圖像渲染過程中停頓、畫面停住等情況的發生,保證了用戶的視覺體驗。The image rendering method provided by the embodiment of the invention transmits the first image rendering effectWhen performing image rendering, detecting an image frame rate, when the detected image frame rate is lower than a set image frame rate, the image rendering effect may be adjusted from the first image rendering effect to the second image a rendering effect, the second image rendering effect is lower than the first image rendering effect, thereby reducing image rendering effect, increasing image frame rate, ensuring a higher number of image frames, and ensuring an image The fluency of rendering. In the image rendering process, when the image frame rate is lower than the set image frame rate, the image rendering effect is reduced to ensure a higher number of image frames, and the image rendering is smooth. , thereby reducing the occurrence of pauses, screen stops, etc. during image rendering, and ensuring the user's visual experience.
在一實施例中,本發明實施例可設置複數級別的圖像渲染效果,第一圖像渲染效果和第二圖像渲染效果為所設置的複數級別的圖像渲染效果中的兩個級別,各相鄰級別的圖像渲染效果的差別均設定在預定範圍內,保證各相鄰級別的圖像渲染效果的變化是均勻的;一種在一實施例中保證各相鄰級別的圖像渲染效果的變化是均勻的方式可以是:將各相鄰級別的圖像渲染效果所對應的圖像渲染效果參數的差別控制在預定差別範圍內,從而保證各級圖像渲染效果之間的變化不是很明顯。以設置7級圖像渲染效果為例,則第7級與第6級的圖像渲染效果的差別設定在預定範圍內,第6級與第5級圖像渲染效果的差別也設定在預定範圍內,以此類推,保證7級圖像渲染效果中的各相鄰級別的圖像渲染效果的差別均設定在預定範圍內,從而實現各相鄰級別的圖像渲染效果是均勻變化的,從而使得各相鄰級別的圖像渲染效果之間的變化不是很明顯。在此基礎上,第2圖繪示了本發明實施例提供的圖像渲染方法的另一流程,參照第2圖,該方法可以包括:步驟S200、透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率;步驟S210、若所述圖像幀率低於設定圖像幀率,確定第二圖像渲染效果與第一圖像渲染效果之間間隔的各級圖像渲染效果,將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為第二圖像渲染效果;其中,第二圖像渲染效果為步驟S210中調整後的最終圖像渲染效果,第二圖像渲染效果低於第一圖像渲染效果;在一實施例中,第二圖像渲染效果可利用所檢測的圖像幀率與設定圖像幀率的差值進行確定;在預先設置複數級別的圖像渲染效果,且保證各相鄰級別的圖像渲染效果是均勻變化的基礎上,本發明實施例在確定了第二圖像渲染效果與第一圖像渲染效果之間間隔的各級圖像渲染效果後,可利用逐級圖像渲染效果調整的方式,將圖像渲染效果由第一圖像渲染效果調整為第二圖像渲染效果。In an embodiment, the embodiment of the present invention can set multiple levels of image rendering effects.The first image rendering effect and the second image rendering effect are two levels in the set image rendering effect of the plurality of levels, and the difference in image rendering effects of each adjacent level is set within a predetermined range. It is ensured that the change of the image rendering effect of each adjacent level is uniform; in one embodiment, the change of the image rendering effect of each adjacent level is ensured to be uniform: the image of each adjacent level may be rendered The difference between the image rendering effect parameters corresponding to the effect is controlled within a predetermined difference range, thereby ensuring that the change between the image rendering effects of the various levels is not obvious. To set the level 7 imageFor example, if the rendering effect is different, the difference between the image rendering effects of the 7th and 6th levels is set within a predetermined range, and the difference between the rendering effects of the 6th and 5th levels is also set within a predetermined range, and so on. It is ensured that the difference of the image rendering effects of each adjacent level in the 7-level image rendering effect is set within a predetermined range, so that the image rendering effects of the adjacent levels are uniformly changed, thereby making each adjacent level The change between image rendering effects is not very obvious. On the basis of this, FIG. 2 illustrates another flow of the image rendering method provided by the embodiment of the present invention. Referring to FIG. 2, the method may include: step S200, performing image rendering through the first image rendering effect. At the same time, the image frame rate is detected; in step S210, if the image frame rate is lower than the set image frame rate, determining the image rendering effect of each level between the second image rendering effect and the first image rendering effect The first image rendering effect is adjusted to a second image rendering effect by using a stepwise image rendering effect adjustment manner; wherein the second image rendering effect is the final image rendering effect adjusted in step S210, The second image rendering effect is lower than the first image rendering effect; in an embodiment, the second image rendering effect may be determined by using a difference between the detected image frame rate and the set image frame rate; The embodiment of the present invention determines the interval between the second image rendering effect and the first image rendering effect, based on the image rendering effect of the plurality of levels, and ensuring that the image rendering effects of the adjacent levels are uniformly changed. Level image After transfection efficiency, level by level can be used to adjust the image rendering, the rendering of the image is adjusted by the first image to a second image rendering rendering.
逐級調整方式可借助下述示例進行理解:如第一圖像渲染效果為第6級圖像渲染效果,第二圖像渲染效果為第3級圖像渲染效果,由於本發明實施例預先設置有複數級別的圖像渲染效果,因此在第一圖像渲染效果與第二圖像渲染效果之間還間隔有第5級圖像渲染效果和第4級圖像渲染效果,本發明實施例可利用逐級調整的方式,將圖像渲染效果由第一圖像渲染效果先調整至第5級圖像渲染效果,再由第5級圖像渲染效果調整至第4級圖像渲染效果,最後由第4級圖像渲染效果調整至第二圖像渲染效果,從而實現第一圖像渲染效果至第二圖像渲染效果的調整。The step-by-step adjustment method can be understood by the following example: the first image rendering effectThe result is a level 6 image rendering effect, and the second image rendering effect is a level 3 image rendering effect. Since the image rendering effect of the plurality of levels is preset in the embodiment of the present invention, the first image rendering effect is The second image rendering effect is also separated by a fifth-level image rendering effect and a fourth-level image rendering effect. In the embodiment of the present invention, the image rendering effect is rendered by the first image by using a step-by-step adjustment manner. The effect is first adjusted to the 5th level image rendering effect, and then the 5th level image rendering effect is adjusted to the 4th level image rendering effect, and finally the 4th level image rendering effect is adjusted to the second image rendering effect, thereby The adjustment of the first image rendering effect to the second image rendering effect is achieved.
由於各相鄰級別的圖像渲染效果是均勻變化的,因此利用逐級調整的方式將第一圖像渲染效果調整至第二圖像渲染效果,可保證在圖像渲染效果的調整過程中,實現平滑無縫的圖像渲染效果調整,減少在圖像渲染效果的調整過程中出現畫面停頓等現象,保證用戶的視覺體驗。Since the image rendering effects of adjacent levels are uniformly changed,The level adjustment method adjusts the first image rendering effect to the second image rendering effect, which ensures smooth and seamless image rendering effect adjustment during the image rendering effect adjustment process, and reduces the image rendering effect. During the adjustment process, screen pauses and other phenomena occur to ensure the user's visual experience.
第2圖所示步驟S210可認為是第1圖所示步驟S110的一種較佳實施方式。Step S210 shown in Fig. 2 can be considered as a preferred embodiment of step S110 shown in Fig. 1.
步驟S220、利用所述第二圖像渲染效果進行圖像渲染。Step S220: Perform image rendering by using the second image rendering effect.
顯然,本發明實施例也可將第一圖像渲染效果直接調整為第二圖像渲染效果,不過這種方式在第一圖像渲染效果與第二圖像渲染效果的效果差別較大時,很可能出現畫面停頓的現象;但同樣可在所檢測的圖像幀率降低時,提升圖像幀率的目的。Obviously, the embodiment of the present invention can also directly adjust the first image rendering effect to the second image rendering effect, but when the effect of the first image rendering effect and the second image rendering effect is different, It is very likely that the screen pauses; but it is also possible to increase the image frame rate when the detected image frame rate is lowered.
在逐級圖像渲染效果調整的基礎上,本發明實施例提供的圖像渲染方法還可加入電子設備負載的考量因素,電子設備負載可決定逐級調整的速率;對應的,第3圖繪示了本發明實施例提供的圖像渲染方法的再一流程,參照第3圖,該方法可以包括:步驟S300、透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率;步驟S310、在所述圖像幀率低於設定圖像幀率,且電子設備負載高於第一負載時,確定第二圖像渲染效果與第一圖像渲染效果之間間隔的各級圖像渲染效果,將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為第二圖像渲染效果,其中,每隔第一時間調整一級圖像渲染效果;在一實施例中,電子設備負載可以是CPU負載(CPU使用率),記憶體負載(記憶體使用情況),顯卡負載(顯卡使用情況)等與圖像渲染相關的電子設備的硬體負載。第一負載可以是預先設定的負載處於較高情況的界限值,第一時間的設置可以視具體應用情況而定,本發明實施例不作限制;其中,第二圖像渲染效果低於第一圖像渲染效果。On the basis of the adjustment of the progressive image rendering effect, the image rendering method provided by the embodiment of the present invention can also add the consideration factor of the load of the electronic device, and the load of the electronic device can determine the rate of the stepwise adjustment; correspondingly, the third drawing A further flow of the image rendering method provided by the embodiment of the present invention is shown. Referring to FIG. 3, the method may include:Step S300: detecting an image frame rate when performing image rendering by using the first image rendering effect; and step S310, when the image frame rate is lower than a set image frame rate, and the electronic device load is higher than the first load And determining an image rendering effect of each level between the second image rendering effect and the first image rendering effect, and adjusting the first image rendering effect to the second image by using a stepwise image rendering effect adjustment manner a rendering effect, wherein the first-level image rendering effect is adjusted every first time; in an embodiment, the electronic device load may be a CPU load (CPU usage rate), a memory load (memory usage), a graphics card load (a graphics card) Use case) The hardware load of the electronic device related to image rendering. The first load may be a threshold value in which the preset load is in a higher condition, and the setting of the first time may be determined according to a specific application, which is not limited in the embodiment of the present invention; wherein the second image rendering effect is lower than the first image Like rendering effects.
以將第6級圖像渲染效果調整為第3級圖像渲染效果為例,則本發明實施例可在電子設備負載高於第一負載時,在第一次的第一時間到來時,將第6級圖像渲染效果調整為第5級圖像渲染效果,在第二次的第一時間到來時,將第5級圖像渲染效果調整為第4級圖像渲染效果,以此類推,直至第3級圖像渲染效果。For example, when the level 6 image rendering effect is adjusted to the level 3 image rendering effect, the embodiment of the present invention may be when the first time of the first time comes when the electronic device load is higher than the first load. The 6th level image rendering effect is adjusted to the 5th level image rendering effect, and when the first time of the second time comes, the 5th level image rendering effect is adjusted to the 4th level image rendering effect, and so on. Until the level 3 image rendering effect.
步驟S320、在所述圖像幀率低於設定圖像幀率,且電子設備負載低於第一負載時,確定第二圖像渲染效果與第一圖像渲染效果之間間隔的各級圖像渲染效果,將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為第二圖像渲染效果,其中,每隔第二時間調整一級圖像渲染效果;第二時間大於第一時間,第二時間的設置可以視具體應用情況而定,本發明實施例不作限制。Step S320, when the image frame rate is lower than the set image frame rate, and the electronic device load is lower than the first load, determining each level of the interval between the second image rendering effect and the first image rendering effect Like the rendering effect, the first image rendering effect is adjusted to the second image rendering effect by adjusting the progressive image rendering effect, wherein the first-level image rendering effect is adjusted every second time;The second time is greater than the first time, and the setting of the second time may be determined according to the specific application, and is not limited in the embodiment of the present invention.
步驟S330、利用所述第二圖像渲染效果進行圖像渲染。Step S330, performing image rendering by using the second image rendering effect.
可見,本發明實施例可在圖像幀率較低負載較高時,較快速平滑逐級下調圖像渲染效果,從而儘快的提升圖像幀率,具體的逐級調整速率可視具體應用情況進行設定;在圖像幀率較低而負載並不高時,相對慢速的平滑逐級下調圖像渲染效果,從而保證圖像渲染效果調整過程中畫質的穩定,保證用戶視覺體驗。It can be seen that, in the embodiment of the present invention, when the image frame rate is lower and the load is higher, the image rendering effect is adjusted to be faster and smoother, and the image frame rate is improved as soon as possible, and the specific step-by-step adjustment rate can be performed according to the specific application. Setting; when the image frame rate is low and the load is not high, the relatively slow speed smoothing down the image rendering effect, thereby ensuring the image quality stability during the image rendering effect adjustment process and ensuring the user's visual experience.
在一實施例中,本發明實施例除了可在圖像幀率低於設定圖像幀率時,利用降低圖像渲染效果的方式提升圖像幀率外,還可在圖像幀率不低於設定圖像幀率,而電子設備負載較低時,進一步的提升圖像渲染效果,從而保證畫質和用戶視覺體驗。對應的,第4圖繪示了本發明實施例提供的圖像渲染方法的又一流程,參照第4圖,該方法可以包括:步驟S400、檢測圖像幀率;步驟S410、若所檢測的圖像幀率不低於設定圖像幀率,且電子設備負載低於第二負載時,將第一圖像渲染效果調整為第三圖像渲染效果,第三圖像渲染效果高於第一圖像渲染效果;第三圖像渲染效果可根據所檢測的圖像幀率與設定圖像幀率的差值進行確定;顯然也可結合所檢測的圖像幀率與設定圖像幀率的差值,和電子設備負載與第二負載的差值進行確定。在一實施例中,第二負載可以是與電子設備的低負載相對應,電子設備的低負載可視具體應用情況而定。In an embodiment, the embodiment of the present invention can increase the image frame rate by reducing the image rendering effect when the image frame rate is lower than the set image frame rate, and the image frame rate is not low. When the image frame rate is set and the electronic device load is low, the image rendering effect is further improved, thereby ensuring the image quality and the user's visual experience. Correspondingly, FIG. 4 is still another flowchart of the image rendering method provided by the embodiment of the present invention. Referring to FIG. 4, the method may include: step S400: detecting an image frame rate; and step S410, if the detected When the image frame rate is not lower than the set image frame rate, and the electronic device load is lower than the second load, the first image rendering effect is adjusted to the third image rendering effect, and the third image rendering effect is higher than the first image rendering effect. The image rendering effect; the third image rendering effect may be determined according to the difference between the detected image frame rate and the set image frame rate; obviously, the detected image frame rate and the set image frame rate may also be combined The difference, and the difference between the electronic device load and the second load are determined. In an embodiment, the second load may correspond to a low load of the electronic device, and the low load of the electronic device may depend on the specific application.
在一實施例中,在本發明實施例設置複數級別的圖像渲染效果,且各相鄰級別的圖像渲染效果是均勻變化的基礎上,本發明實施例可將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整至第三圖像渲染效果,每隔第三時間調整一級圖像渲染效果。在一實施例中,本發明實施例可在平均幀數較高負載較低時,例如30秒內平均幀數低於35幀,較慢速平滑逐級上調圖像渲染效果(例如35秒間隔),提升畫質和提升用戶視覺體驗。In an embodiment, multiple levels of image rendering are set in the embodiment of the present invention.If the image rendering effect of each adjacent level is uniformly changed, the embodiment of the present invention can adjust the first image rendering effect to the third image rendering effect by using a stepwise image rendering effect adjustment manner. , adjust the first-level image rendering effect every third time. In an embodiment, in the embodiment of the present invention, when the average number of frames is high and the load is low, for example, the average number of frames is less than 35 frames in 30 seconds, and the image rendering effect is increased in a slower and smoother manner (for example, a 35 second interval). ), improve picture quality and enhance the user's visual experience.
步驟S420、利用第三圖像渲染效果進行圖像渲染。Step S420: Perform image rendering by using a third image rendering effect.
在一實施例中,第4圖所示方法可應用於第1圖~第3圖所示的方法中。In an embodiment, the method shown in FIG. 4 can be applied to the methods shown in FIGS. 1 to 3.
在一實施例中,本發明實施例也可在進行圖像渲染之前,檢測電子設備的軟硬體配置資訊,為電子設備設置合理的圖像渲染效果;對應的,第5圖繪示了本發明實施例提供的圖像渲染方法的又另一流程,參照第5圖,該方法可以包括:步驟S500、對電子設備的軟硬體配置資訊進行檢測;步驟S510、根據預定的軟硬體配置資訊與圖像渲染效果的對應關係,為所檢測的軟硬體配置資訊設置對應的圖像渲染效果;在一實施例中,在對電子設備的軟硬體配置資訊進行檢測後,本發明實施例可給出所檢測的軟硬體配置資訊的評分,根據預定軟硬體配置資訊的評分與圖像渲染效果的對應關係,為所給出的評分設置對應的圖像渲染效果。In an embodiment, the embodiment of the present invention may also detect the software and hardware configuration information of the electronic device before performing image rendering, and set a reasonable image rendering effect for the electronic device; correspondingly, FIG. 5 illustrates the present embodiment. Still another process of the image rendering method provided by the embodiment of the present invention, with reference to FIG. 5, the method may include: step S500, detecting software and hardware configuration information of the electronic device; and step S510, according to a predetermined software and hardware configuration Corresponding relationship between the information and the image rendering effect, setting a corresponding image rendering effect for the detected hardware and software configuration information; in an embodiment, after detecting the hardware and software configuration information of the electronic device, the present invention is implemented For example, the score of the detected hardware and software configuration information may be given, and the corresponding image rendering effect is set for the given score according to the correspondence between the score of the predetermined software and hardware configuration information and the image rendering effect.
在一實施例中,預定軟硬體配置資訊的評分與圖像渲染效果的對應關係的建立方式可以是:步驟S1、收集大量電子設備的軟硬體配置資訊;本發明實施例可在電子設備上加入資訊收集統計工具,獲得大量用戶使用電腦的軟硬體配置資訊,例如CPU,記憶體,硬碟,顯卡等。收集之後進行去重得到每一種目標環境,例如微軟視窗XP系統,酷睿1.2G主頻率的CPU(中央處理單元),2G記憶體,5600GT顯卡,800G硬碟等;根據這些資訊挑選出有代表意義(佔有量高,有代表性,比較典型,比較特殊)的一些軟硬體配置資訊,隨後為所挑選出的軟硬體配置資訊搭建相同的圖像渲染測試環境。In an embodiment, the score of the predetermined hardware and software configuration information and the image rendering effectThe corresponding relationship may be established in the following steps: Step S1, collecting software and hardware configuration information of a large number of electronic devices; in the embodiment of the present invention, an information collection and statistics tool may be added to the electronic device to obtain a software and hardware configuration information of a large number of users using the computer. For example, CPU, memory, hard drive, graphics card, etc.After collection, we will de-receive each target environment, such as Microsoft Windows XP system, CPU of CPU 1.2G main frequency (central processing unit), 2G memory, 5600GT graphics card, 800G hard disk, etc. Some software and hardware configuration information (high occupancy, representative, typical, special), and then set up the same image rendering test environment for the selected hardware and software configuration information.
步驟S2、根據收集到的軟硬體配置資訊進行圖像渲染測試環境的建立模擬,建立關鍵的軟硬體測試環境並在測試環境上進行圖像渲染測試,依據幀數,畫質表現,CPU,GPU記憶體佔用等參數進行評分;評分就是對軟硬體配置資訊進行圖像渲染的能力作數據量化處理,評分較高則說明軟硬體配置資訊對應有較高的圖像渲染能力,評分較低則說明軟硬體配置資訊對應有較低的圖像渲染能力。Step S2: performing image rendering test according to the collected hardware and software configuration informationThe establishment of the environment simulation, the establishment of a key software and hardware test environment and image rendering test in the test environment, according to the number of frames, image quality performance, CPU, GPU memory occupancy and other parameters to score; scoring is the configuration of software and hardware The information is image-rendered for data quantization. The higher score indicates that the hardware and software configuration information has higher image rendering capability. The lower score indicates that the software and hardware configuration information corresponds to lower image rendering. ability.
步驟S3、保證各評分的軟硬體配置資訊均對應有設定圖像幀率的圖像渲染效果,建立各評分的軟硬體配置資訊與對應圖像渲染效果的對應關係。Step S3, ensuring that the software and hardware configuration information of each score corresponds to the set imageThe image rendering effect of the frame rate establishes the correspondence between the software and hardware configuration information of each score and the corresponding image rendering effect.
在一實施例中,一個圖像渲染效果可對應一個評分區間的軟硬體配置資訊,由於圖像渲染效果是由圖像渲染效果參數反應的,因此一個圖像渲染效果參數的集合可與一個評分區間的軟硬體配置資訊相對應。在一實施例中,評分結束後可對評分進行修正,無法建立的測試環境可利用硬體參數和經驗值進行人工設定。In an embodiment, an image rendering effect may correspond to a hardware and software configuration information of a scoring interval. Since the image rendering effect is reflected by the image rendering effect parameter, a set of image rendering effect parameters may be combined with one The software and hardware configuration information of the score interval corresponds. In an embodiment, the score can be corrected after the score is over, and the test environment that cannot be established can be profitable.Manually set with hardware parameters and empirical values.
步驟S520、在進行圖像渲染之初,利用所設置的圖像渲染效果進行圖像渲染;步驟S530、透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率;在一實施例中,第一圖像渲染效果可以是圖像渲染之初所使用的圖像渲染效果,也可以是電子設備在開始進行圖像渲染之後,進行過任意次數的圖像渲染效果調整後,所使用的圖像渲染效果。Step S520, performing image rendering using the set image rendering effect at the beginning of image rendering; step S530, detecting image frame rate when performing image rendering through the first image rendering effect; The first image rendering effect may be an image rendering effect used at the beginning of the image rendering, or may be used after the electronic device starts to perform image rendering and adjusts the image rendering effect any number of times. Image rendering effect.
步驟S540、若所述圖像幀率低於設定圖像幀率,對圖像渲染效果參數進行調節,將圖像渲染效果由所述第一圖像渲染效果調整為第二圖像渲染效果,所述第二圖像渲染效果低於所述第一圖像渲染效果;步驟S550、利用所述第二圖像渲染效果進行圖像渲染。Step S540: If the image frame rate is lower than the set image frame rate, adjust the image rendering effect parameter, and adjust the image rendering effect from the first image rendering effect to the second image rendering effect. The second image rendering effect is lower than the first image rendering effect; and in step S550, image rendering is performed by using the second image rendering effect.
下面對本發明實施例提供的一種較佳的圖像渲染方法進行介紹,第6圖為本發明實施例提供的圖像渲染方法的又再一流程圖,參照第6圖,該方法可以包括:步驟S600、透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率;在一實施例中,本發明實施例可在每隔一定時間間隔後,進行圖像幀率的檢測;如每10秒檢測一次圖像幀率;顯然具體的數值設置還可依據實際使用情況設定。A preferred image rendering method provided by the embodiment of the present invention is described below. FIG. 6 is still another flowchart of an image rendering method according to an embodiment of the present invention. Referring to FIG. 6, the method may include: S600, detecting an image frame rate when performing image rendering by using a first image rendering effect; in an embodiment, the embodiment of the present invention may perform image frame rate detection after every certain time interval; The image frame rate is detected once every 10 seconds; obviously, the specific value setting can also be set according to the actual usage.
步驟S610、判斷所述圖像幀率是否低於設定圖像幀率,若是,執行步驟S620,若否,執行步驟S660;在一實施例中,設定圖像幀率可設置為10秒的平均幀數為20幀,若在每10秒檢測一次圖像幀率時,平均幀數低於20幀,則執行步驟S620,若否,則執行步驟S660;顯然具體的數值設置還可依據實際使用情況設定。Step S610, determining whether the image frame rate is lower than the set image frame rate, and if so, executing step S620, if not, executing step S660;In an embodiment, the average frame number of the image frame rate that can be set to 10 seconds is 20 frames. If the image frame rate is detected every 10 seconds, and the average number of frames is less than 20 frames, step S620 is performed. If not, step S660 is performed; it is obvious that the specific numerical setting can also be set according to actual usage.
步驟S620、檢測電子設備負載是否高於第一負載,若是,執行步驟S630,若否,執行步驟S640;步驟S630、確定第二圖像渲染效果與第一圖像渲染效果之間間隔的各級圖像渲染效果,將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為第二圖像渲染效果,其中,每隔第一時間調整一級圖像渲染效果,第二圖像渲染效果低於第一圖像渲染效果;第二圖像渲染效果為在圖像幀率低於設定圖像幀率時需要調整至的圖像渲染效果,第二圖像渲染效果的多種確定方式前文已述,此處不再贅述。Step S620: detecting whether the load of the electronic device is higher than the first load, if yes, executing step S630; if not, executing step S640; and step S630, determining the interval between the second image rendering effect and the first image rendering effect The image rendering effect adjusts the first image rendering effect to the second image rendering effect by adjusting the progressive image rendering effect, wherein the first image rendering effect is adjusted every second time, and the second image is adjusted. The rendering effect is lower than the first image rendering effect; the second image rendering effect is an image rendering effect that needs to be adjusted when the image frame rate is lower than the set image frame rate, and the second image rendering effect is determined in multiple ways. As mentioned above, it will not be repeated here.
步驟S640、確定第二圖像渲染效果與第一圖像渲染效果之間間隔的各級圖像渲染效果,將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為第二圖像渲染效果,其中,每隔第二時間調整一級圖像渲染效果;步驟S650、利用第二圖像渲染效果進行圖像渲染;其中,第二時間大於第一時間,第一時間的設置可視具體應用情況而定,只要保證在第一時間時,較快速平滑逐級下調圖像渲染效果即可;第二時間的設置可視具體應用情況而定,只要保證在第二時間時,較慢速平滑逐級下調圖像渲染效果即可。在一實施例中,第一時間可以是10秒,第二時間可以是30秒。Step S640, determining an image rendering effect of each level between the second image rendering effect and the first image rendering effect, and adjusting the first image rendering effect by using a stepwise image rendering effect adjustment An image rendering effect, wherein the first-level image rendering effect is adjusted every second time; in step S650, the second image rendering effect is used to perform image rendering; wherein the second time is greater than the first time, and the first time setting is visible Depending on the specific application, as long as the first time is guaranteed, the image rendering effect can be lowered smoothly and smoothly. The setting of the second time can be determined according to the specific application, as long as the second time is slower. Smooth down the image rendering effect step by step. In an embodiment, the first time may be10 seconds, the second time can be 30 seconds.
步驟S660、檢測電子設備負載是否低於第二負載,若是,執行步驟S670,若否,執行步驟S690;第二負載可以是與電子設備的低負載相對應,電子設備的低負載可視具體應用情況而定。Step S660: detecting whether the load of the electronic device is lower than the second load, if yes, executing step S670; if not, executing step S690; the second load may be corresponding to a low load of the electronic device, and the low load of the electronic device may be determined by a specific application. And set.
步驟S670、確定第三圖像渲染效果與第一圖像渲染效果之間間隔的各級圖像渲染效果,將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為第三圖像渲染效果,其中,每隔第三時間調整一級圖像渲染效果,第三圖像渲染效果高於第一圖像渲染效果;第三時間的設置可視具體應用情況而定,只要保證較慢速平滑逐級上調圖像渲染效果即可。Step S670, determining an image rendering effect of each level between the third image rendering effect and the first image rendering effect, and adjusting the first image rendering effect to a third by using a stepwise image rendering effect adjustment manner. The image rendering effect, wherein the first-level image rendering effect is adjusted every third time, the third image rendering effect is higher than the first image rendering effect; the third time setting may be determined depending on the specific application, as long as the slowness is ensured Speed smoothing up and down the image rendering effect.
步驟S680、利用第三圖像渲染效果進行圖像渲染;步驟S690、結束流程。Step S680, performing image rendering by using the third image rendering effect; in step S690, ending the process.
在一實施例中,在每次對圖像渲染效果進行調整後,本發明實施例可儲存調整後的圖像渲染效果資訊與對應的電子設備負載資訊;這樣,當用戶在下一次開啟圖像渲染的功能時(如圖像渲染功能中途退出後再開啟,當機後再開啟或者更換電腦後再開啟),可直接根據當前的電子設備負載資訊,調取相對應的圖像渲染效果資訊,利用與所調取的圖像渲染效果資訊相對應的圖像渲染效果進行圖像渲染,從而保證用戶在下一次開啟圖像渲染的功能時,可直接匹配較好的圖像渲染效果。In an embodiment, after the image rendering effect is adjusted, the embodiment of the present invention may store the adjusted image rendering effect information and the corresponding electronic device load information; thus, when the user turns on the image rendering next time. When the function is enabled (such as the image rendering function is turned off after the middle exit, and then turned on or replaced after the computer is turned on), the corresponding image rendering effect information can be directly retrieved according to the current electronic device load information, and utilized. The image rendering effect corresponding to the captured image rendering effect information is image rendered, thereby ensuring that the user can directly match the better image rendering effect when the image rendering function is turned on next time.
在一實施例中,本發明實施例提供的圖像渲染方法的一個應用可以是:網路遊戲領域;可利用本發明實施例提供的圖像渲染方法對網路遊戲中的遊戲圖像進行渲染,從而在遊戲過程中保證較高的圖像幀數,保證遊戲的流暢進行。以多人同顯示畫面對戰這一場景(對應複雜場景)和空曠的荒野這一場景(對應簡單場景)為例,當電子設備在第一圖像渲染效果下,對多人同顯示畫面對戰這一場景進行渲染時,若檢測到圖像幀率低於設定圖像幀率,可將第一圖像渲染效果利用逐級渲染效果調整的方式調整到第二圖像渲染效果,第二圖像效果低於第一圖像渲染效果,這樣可在較低的圖像渲染效果下對多人同顯示畫面對戰這一場景進行渲染,從而保證較高的圖像幀數,保證遊戲的流暢性;當電子設備由多人同顯示畫面對戰這一場景變為對空曠的荒野這一場景進行渲染時,若檢測到圖像幀率不低於設定圖像幀率,且電子設備的負載降低時,可利用逐級渲染效果調整的方式,提升圖像渲染效果,從而保證圖像畫質,並維持較高的圖像幀數,同時保證遊戲的流暢性和圖像畫質。In an embodiment, an application of the image rendering method provided by the embodiment of the present invention may be: an online game field;The game image in the road game is rendered to ensure a high number of image frames during the game to ensure smooth running of the game. For example, when a multiplayer plays a screen against a scene (corresponding to a complex scene) and an open wilderness (corresponding to a simple scene), when the electronic device performs the first image rendering effect, the multiplayer plays the same screen. When a scene is rendered, if the image frame rate is detected to be lower than the set image frame rate, the first image rendering effect may be adjusted to the second image rendering effect by using a stepwise rendering effect adjustment, the second image The effect is lower than the first image rendering effect, so that the scene of multiplaying with the display screen can be rendered under the lower image rendering effect, thereby ensuring a higher number of image frames and ensuring the smoothness of the game; When the scene in which the electronic device is played by the multiplayer to the display screen becomes a scene of the open wilderness, if the image frame rate is detected to be not lower than the set image frame rate, and the load of the electronic device is lowered, The effect of step-by-step rendering effect adjustment can be used to enhance the image rendering effect, thereby ensuring the image quality and maintaining a high number of image frames, while ensuring the smoothness of the game and the image quality.
下面對本發明實施例提供的圖像渲染裝置進行介紹,下文描述的圖像渲染裝置與上文描述的圖像渲染方法可相互對應參照。The image rendering apparatus provided by the embodiment of the present invention is described below. The image rendering apparatus described below and the image rendering method described above can be referred to each other.
第7圖為本發明實施例提供的圖像渲染裝置的結構框圖,該裝置可應用於電子設備中,參照第7圖,該裝置可以包括:圖像幀率檢測模組100,用於透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率;第一調整模組200,用於在所述圖像幀率低於設定圖像幀率時,對圖像渲染效果參數進行調節,將圖像渲染效果由所述第一圖像渲染效果調整為第二圖像渲染效果,所述第二圖像渲染效果低於所述第一圖像渲染效果;第一圖像渲染模組300,用於利用所述第二圖像渲染效果進行圖像渲染。FIG. 7 is a structural block diagram of an image rendering apparatus according to an embodiment of the present invention. The apparatus may be applied to an electronic device. Referring to FIG. 7, the apparatus may include: an image frame rate detecting module 100 for transmitting When the first image rendering effect is used for image rendering, the image frame rate is detected; the first adjusting module 200 is configured to perform image rendering effect parameters when the image frame rate is lower than the set image frame rate. Adjusting, the image rendering effect is adjusted by the first image rendering effect to a second image rendering effect, and the second image rendering effect is lower than the first image rendering effect;The first image rendering module 300 is configured to perform image rendering by using the second image rendering effect.
在一實施例中,一種確定第二圖像渲染效果的方式可以是:確定所檢測的圖像幀率與設定圖像幀率的差值;根據預定圖像幀率差值與圖像渲染效果的對應關係,確定與所確定的差值相對應的圖像渲染效果,所確定的圖像渲染效果為所述第二圖像渲染效果。顯然,本發明實施例還可以利用其他方式確定第二圖像渲染效果,如可結合圖像幀率差值(所檢測的圖像幀率與設定圖像幀率的差值),和電子設備負載差值(當前負載與預定負載的差值)進行第二圖像渲染效果的確定。In an embodiment, a manner of determining a second image rendering effect may be: determining a difference between the detected image frame rate and a set image frame rate; and determining an image frame rate difference and an image rendering effect according to a predetermined image frame rate Corresponding relationship, determining an image rendering effect corresponding to the determined difference, the determined image rendering effect being the second image rendering effect. Obviously, the embodiment of the present invention may further determine a second image rendering effect by using other methods, such as an image frame rate difference (a difference between the detected image frame rate and the set image frame rate), and an electronic device. The load difference (the difference between the current load and the predetermined load) determines the second image rendering effect.
在一實施例中,本發明實施例可設置複數級別的圖像渲染效果,其中,第一圖像渲染效果和第二圖像渲染效果為所設置的複數級別的圖像渲染效果中的兩個級別的圖像渲染效果,在預先設置的複數級別的圖像渲染效果中,各相鄰級別的圖像渲染效果是均勻變化的,對應的,第8圖繪示了第一調整模組200的一種較佳結構,參照第8圖,第一調整模組200可以包括:第一逐級調整單元210,用於根據預先設置的複數級別的圖像渲染效果,確定所述第二圖像渲染效果與所述第一圖像渲染效果之間間隔的各級圖像渲染效果,將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為所述第二圖像渲染效果。In an embodiment, the embodiment of the present invention may set a plurality of levels of image rendering effects, wherein the first image rendering effect and the second image rendering effect are two of the set multiple levels of image rendering effects. Level image rendering effect, in the image rendering effect of the preset multiple levels, the image rendering effect of each adjacent level is uniformly changed. Correspondingly, FIG. 8 illustrates the first adjustment module 200. A preferred structure, with reference to FIG. 8 , the first adjustment module 200 may include: a first step-by-step adjustment unit 210, configured to determine the second image rendering effect according to a preset image rendering effect of a plurality of levels The image rendering effect of each level is separated from the first image rendering effect, and the first image rendering effect is adjusted to the second image rendering effect by using a stepwise image rendering effect adjustment.
在一實施例中,第9圖繪示了第一逐級調整單元210的一種較佳結構,參照第9圖,第一逐級調整單元210可以包括:第一調整執行子單元2101,用於在所述圖像幀率低於設定圖像幀率,且電子設備負載高於第一負載時,將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為第二圖像渲染效果,其中,每隔第一時間調整一級圖像渲染效果。In an embodiment, FIG. 9 illustrates a preferred structure of the first step-by-step adjustment unit 210. Referring to FIG. 9, the first step-by-step adjustment unit 210 may include: a first adjustment execution sub-unit 2101, configured to: The image frame rate is lower than the setting mapWhen the image rate is higher than the first load, the first image rendering effect is adjusted to a second image rendering effect by using a stepwise image rendering effect adjustment, wherein the first time is adjusted. One-level image rendering effect.
第一時間的設置可視具體應用情況而定,只要保證在第一時間時,較快速平滑逐級下調圖像渲染效果即可。The setting of the first time can be determined according to the specific application situation, as long as the image rendering effect is lowered in a relatively smooth and step-by-step manner at the first time.
第10圖繪示了第一逐級調整單元210的另一種較佳結構,結合第9圖和第10圖所示,第一逐級調整單元210還可以包括:第二調整執行子單元2102,用於在所述圖像幀率低於設定圖像幀率,且電子設備負載低於第一負載時,將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為第二圖像渲染效果,其中,每隔第二時間調整一級圖像渲染效果,所述第二時間大於所述第一時間。FIG. 10 illustrates another preferred configuration of the first step-by-step adjustment unit 210. The first step-by-step adjustment unit 210 may further include: a second adjustment execution sub-unit 2102, as shown in FIG. 9 and FIG. When the image frame rate is lower than the set image frame rate, and the electronic device load is lower than the first load, adjusting the first image rendering effect by using a stepwise image rendering effect, adjusting to the second An image rendering effect, wherein the first-level image rendering effect is adjusted every second time, the second time being greater than the first time.
第二時間的設置可視具體應用情況而定,只要保證在第二時間時,較慢速平滑逐級下調圖像渲染效果即可。The setting of the second time may be determined according to the specific application situation, as long as the second time is guaranteed, the slower smoothing and smoothing down the image rendering effect step by step.
第11圖為本發明實施例體提供的圖像渲染裝置的另一結構框圖,結合第7圖和第11圖所示,在第7圖所示圖像渲染裝置的基礎上,第11圖所示圖像渲染裝置還可以包括:第二調整模組400,用於在所述圖像幀率不低於設定圖像幀率,且電子設備負載低於第二負載時,將所述第一圖像渲染效果調整為第三圖像渲染效果,所述第三圖像渲染效果高於所述第一圖像渲染效果。11 is another structural block diagram of an image rendering apparatus provided by an embodiment of the present invention. In combination with FIG. 7 and FIG. 11 , based on the image rendering apparatus shown in FIG. 7 , FIG. 11 The image rendering apparatus may further include: a second adjustment module 400, configured to: when the image frame rate is not lower than a set image frame rate, and the electronic device load is lower than the second load An image rendering effect is adjusted to a third image rendering effect, the third image rendering effect being higher than the first image rendering effect.
在一實施例中,第12圖繪示了第二調整模組400的一種較佳結構,參照第12圖,第二調整模組400可以包括:第二逐級調整單元410,用於根據預先設置的複數級別的圖像渲染效果,確定所述第三圖像渲染效果與所述第一圖像渲染效果之間間隔的各級圖像渲染效果,將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為所述第三圖像渲染效果;其中,預先設置的複數級別的圖像渲染效果中,各相鄰級別的圖像渲染效果是均勻變化的。In an embodiment, FIG. 12 illustrates a preferred structure of the second adjustment module 400. Referring to FIG. 12, the second adjustment module 400 may include: a second step-by-step adjustment unit 410, configured to Set of multiple level mapsa rendering effect, determining a level of image rendering effect between the third image rendering effect and the first image rendering effect, and adjusting the first image rendering effect by using a stepwise image rendering effect And adjusting to the third image rendering effect; wherein, in a preset multiple level image rendering effect, the image rendering effects of each adjacent level are uniformly changed.
在一實施例中,在將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為第三圖像渲染效果的過程中,本發明實施例可將第一圖像渲染效果利用逐級圖像渲染效果調整的方式,調整為第三圖像渲染效果,每隔第三時間調整一級圖像渲染效果;第三時間的設置可視具體應用情況而定,只要保證較慢速平滑逐級上調圖像渲染效果即可。In an embodiment, the first image rendering effect is rendered by using progressive image renderingIn the process of adjusting the third image rendering effect, the embodiment of the present invention may adjust the first image rendering effect to a third image rendering effect by using a stepwise image rendering effect adjustment manner. The first-level image rendering effect is adjusted every third time; the setting of the third time may depend on the specific application situation, as long as the image rendering effect is improved by slower and smoother step by step.
第13圖為本發明實施例提供的圖像渲染裝置的再一結構框圖,結合第7圖和第13圖所示,在第7圖所示圖像渲染裝置的基礎上,第13圖所示圖像渲染裝置還可以包括:配置資訊檢測模組500,用於在進行圖像渲染之前,對電子設備的軟硬體配置資訊進行檢測;對應圖像渲染效果設置模組600,用於根據預定的軟硬體配置資訊與圖像渲染效果的對應關係,為所檢測的軟硬體配置資訊設置對應的圖像渲染效果;初始渲染模組700,用於在進行圖像渲染之初,利用對應圖像渲染效果設置模組600所設置的圖像渲染效果進行圖像渲染。FIG. 13 is still another structural block of an image rendering apparatus according to an embodiment of the present invention.In addition, as shown in FIG. 7 and FIG. 13 , on the basis of the image rendering apparatus shown in FIG. 7 , the image rendering apparatus shown in FIG. 13 may further include: a configuration information detecting module 500 for Before performing image rendering, detecting the software and hardware configuration information of the electronic device; and corresponding image rendering effect setting module 600, configured to detect the correspondence between the predetermined software and hardware configuration information and the image rendering effect The software and hardware configuration information sets the corresponding image rendering effect; the initial rendering module 700 is configured to perform image rendering using the image rendering effect set by the corresponding image rendering effect setting module 600 at the beginning of image rendering. Rendering.
第14圖為本發明實施例提供的圖像渲染裝置的又一結構框圖,結合第7圖和第14圖所示,在第7圖所示圖像渲染裝置的基礎上,第14圖所示圖像渲染裝置還可以包括:資訊儲存模組800,用於在每次對圖像渲染效果進行調整後,儲存調整後的圖像渲染效果資訊與對應的電子設備負載資訊;調取渲染模組900,用於在下一次開啟圖像渲染的功能時,根據當前的電子設備負載資訊,調取相對應的圖像渲染效果資訊,利用與所調取的圖像渲染效果資訊相對應的圖像渲染效果進行圖像渲染。FIG. 14 is still another block diagram of an image rendering apparatus according to an embodiment of the present invention. Referring to FIG. 7 and FIG. 14 , based on the image rendering apparatus shown in FIG. 7 , the 14thThe image rendering apparatus shown in the figure may further include: an information storage module 800, configured to store the adjusted image rendering effect information and the corresponding electronic device load information after each adjustment of the image rendering effect; The rendering module 900 is configured to: when the function of the image rendering is next turned on, retrieve the corresponding image rendering effect information according to the current electronic device load information, and use the image rendering effect information corresponding to the captured image Image rendering effects for image rendering.
本發明實施例可在圖像渲染的過程中,圖像幀率低於設定圖像幀率時,利用降低圖像渲染效果的方式保證較高的圖像幀數,和圖像渲染的流暢性,從而減少了圖像渲染過程中停頓、畫面不順等情況的發生,保證了用戶的視覺體驗。In the embodiment of the present invention, the image frame rate is lower than the setting graph in the process of image rendering.When the frame rate is used, the image rendering effect is reduced to ensure a higher number of image frames, and the smoothness of image rendering, thereby reducing the occurrence of pauses and unsatisfactory images during image rendering, and ensuring the user. Visual experience.
本發明實施例還提供一種電子設備,該電子設備包括上述所述的圖像渲染裝置,圖像渲染裝置的具體描述可參照上文第7圖~第14圖對應部分的描述。An embodiment of the present invention further provides an electronic device, where the electronic device includes the foregoingFor a detailed description of the image rendering apparatus and the image rendering apparatus, reference may be made to the description of the corresponding portions of FIGS. 7 to 14 above.
下面對本發明實施例提供的電子設備的硬體結構進行描述,下文描述中涉及圖像渲染方法的部分可與上文描述的圖像渲染方法相合對應參照。The following describes the hardware structure of the electronic device provided by the embodiment of the present invention.As described above, the portion related to the image rendering method in the following description may correspond to the image rendering method described above.
電子設備可以包括手機、平板電腦、PDA(Personal Digital Assistant,個人數位助理)、POS(Point of Sales,銷售終端)、車載電腦等,以電子設備為手機為例:第15圖繪示的是與本發明實施例提供的電子設備相關的手機的部分結構的框圖。參考第15圖,手機包括:射頻(Radio Frequency,RF)電路1110、記憶體1120、輸入單元1130、顯示單元1140、感測器1150、音頻電路1160、無線保真(wireless fidelity,WiFi)模組1170、處理器1180、以及電源1190等元件。本領域技術人員可以理解,第15圖中繪示的手機結構並不構成對手機的限定,可以包括比圖示更多或更少的部件,或者組合某些部件,或者不同的部件佈置。Electronic devices can include mobile phones, tablets, PDAs (Personal DigitalAssistant, personal digital assistant, POS (Point of Sales), on-board computer, etc., taking an electronic device as a mobile phone as an example: FIG. 15 is a part of a mobile phone related to the electronic device provided by the embodiment of the present invention. A block diagram of the structure. Referring to FIG. 15, the mobile phone includes: a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, and a sensor 1150.An audio circuit 1160, a wireless fidelity (WiFi) module 1170, a processor 1180, and a power source 1190 and the like. It will be understood by those skilled in the art that the structure of the mobile phone illustrated in FIG. 15 does not constitute a limitation to the mobile phone, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
下面結合第15圖對手機的各個構成部件進行具體的介紹:RF電路1110可用於收發資訊或通話過程中,信號的接收和發送,特別地,將基站的下行資訊接收後,給處理器1180處理;另外,將設計上行的資料發送給基站。通常,RF電路包括但不限於天線、至少一個放大器、收發信機、耦合器、低雜訊放大器(Low Noise Amplifier,LNA)、雙工器等。此外,RF電路110還可以利用無線通信與網路和其他設備通信。上述無線通信可以使用任一通信標準或協定,包括但不限於全球移動通訊系統(Global System of Mobile communication,GSM)、通用分組無線服務(General Packet Radio Service,GPRS)、碼分多址(Code Division Multiple Access,CDMA)、寬頻碼分多址(Wideband Code Division Multiple Access,WCDMA)、長期演進(Long Term Evolution,LTE))、電子郵件、短消息服務(Short Messaging Service,SMS)等。The following describes the components of the mobile phone in detail with reference to FIG. 15: the RF circuit 1110 can be used for receiving and transmitting signals during the transmission or reception of information or during a call, and in particular, after receiving the downlink information of the base station, the processor 1180 is processed. In addition, the design of the uplink data is sent to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 110 can also communicate with the network and other devices using wireless communications. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
記憶體1120可用於儲存軟體程式以及模組,處理器1180利用執行儲存在記憶體1120的軟體程式以及模組,從而執行手機的各種功能應用以及資料處理。記憶體1120可主要包括儲存程式區和儲存資料區,其中,儲存程式區可儲存作業系統、至少一個功能所需的應用程式(比如聲音播放功能、圖像播放功能等)等;儲存資料區可儲存根據手機的使用所創建的資料(比如音頻資料、電話本等)等。此外,記憶體1120可以包括高速隨機存取記憶體,還可以包括非易失性記憶體,例如至少一個磁盤記憶體件、快閃記憶體器件、或其他易失性固態記憶體件。The memory 1120 can be used to store software programs and modules. The processor 1180 can execute various software applications and data processing of the mobile phone by executing software programs and modules stored in the memory 1120. The memory 1120 can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, at least one function required application (such as a sound playing function, an image playing function, etc.); Store data created based on the use of the phone (such as audio data, phone book, etc.). In addition, the memory 1120 can include high speedThe random access memory may also include non-volatile memory, such as at least one disk memory device, flash memory device, or other volatile solid state memory device.
輸入單元1130可用於接收輸入的數位或字元資訊,以及產生與手機的用戶設置以及功能控制有關的鍵信號輸入。具體地,輸入單元1130可包括觸控面板1131以及其他輸入設備1132。觸控面板1131,也稱為觸控螢幕,可收集用戶在其上或附近的觸控操作(比如用戶使用手指、觸筆等任何適合的物體或附件在觸控面板1131上或在觸控面板1131附近的操作),並根據預先設定的程式驅動相應的連接裝置。在一實施例中,觸控面板1131可包括觸控檢測裝置和觸控控制器兩個部分。其中,觸控檢測裝置檢測用戶的觸控方位,並檢測觸控操作帶來的信號,將信號傳送給觸控控制器;觸控控制器從觸控檢測裝置上接收觸控資訊,並將它轉換成觸點座標,再送給處理器1180,並能接收處理器1180發來的命令並加以執行。此外,可以採用電阻式、電容式、紅外線以及表面聲波等多種類型實現觸控面板1131。除了觸控面板1131,輸入單元1130還可以包括其他輸入設備1132。具體地,其他輸入設備1132可以包括但不限於物理鍵盤、功能鍵(比如音量控制按鍵、開關按鍵等)、軌跡球、滑鼠、搖桿等中的一種或多種。The input unit 1130 can be configured to receive input digit or character information, and generateKey signal input related to user settings and function control of the mobile phone. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. The touch panel 1131, also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 1131 or on the touch panel. The operation near 1131), and the corresponding connection device is driven according to a preset program. In an embodiment, the touch panel 1131 can include two parts: a touch detection device and a touch controller. The touch detection device detects the touch orientation of the user, detects the signal from the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and It is converted into a contact coordinate, sent to the processor 1180, and can receive commands from the processor 1180 and execute them. In addition, the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1131, the input unit 1130 may also include other input devices 1132. Specifically, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
顯示單元1140可用於顯示由用戶輸入的資訊或提供給用戶的資訊以及手機的各種功能表。顯示單元1140可包括顯示面板1141,在一實施例中,可以採用液晶顯示器(Liquid Crystal Display,LCD)、有機發光二極體(Organic Light-Emitting Diode,OLED)等形式來配置顯示面板1141。進一步的,觸控面板1131可覆蓋顯示面板1141,當觸控面板1131檢測到在其上或附近的觸控操作後,傳送給處理器1180以確定觸控事件的類型,隨後處理器1180根據觸控事件的類型在顯示面板1141上提供相應的視覺輸出。雖然在第15圖中,觸控面板1131與顯示面板1141是作為兩個獨立的部件來實現手機的輸入和輸入功能,但是在某些實施例中,可以將觸控面板1131與顯示面板1141集成而實現手機的輸入和輸出功能。The display unit 1140 can be used to display information input by the user or provide the user withInformation and various menus of mobile phones. The display unit 1140 may include a display panel 1141. In an embodiment, the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.Further, the touch panel 1131 can cover the display panel 1141. After the touch panel 1131 detects a touch operation on or near the touch panel 1131, the touch panel 1131 transmits to the processor 1180 to determine the type of the touch event.The processor 1180 provides a corresponding visual output on the display panel 1141 based on the type of touch event. Although in FIG. 15 , the touch panel 1131 and the display panel 1141 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated. And realize the input and output functions of the mobile phone.
手機還可包括至少一種感測器1150,比如光感測器、運動感測器以及其他感測器。具體地,光感測器可包括環境光感測器及接近感測器,其中,環境光感測器可根據環境光線的明暗來調節顯示面板1141的亮度,接近感測器可在手機移動到耳邊時,關閉顯示面板1141和/或背光。作為運動感測器的一種,加速計感測器可檢測各個方向上(一般為三軸)加速度的大小,靜止時可檢測出重力的大小及方向,可用於識別手機姿態的應用(比如橫豎顯示切換、相關遊戲、磁力計姿態校準)、振動識別相關功能(比如計步器、敲擊)等;至於手機還可配置的陀螺儀、氣壓計、濕度計、溫度計、紅外線感測器等其他感測器,在此不再贅述。The handset can also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the proximity sensor may move to the mobile phone to When the ear is closed, the display panel 1141 and/or the backlight are turned off. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical display). Switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. The detector will not be described here.
音頻電路1160、揚聲器1161,傳聲器(microphone)1162可提供用戶與手機之間的音頻介面。音頻電路1160可將接收到的音頻資料轉換後的電信號,傳輸到揚聲器1161,由揚聲器1161轉換為聲音信號輸出;另一方面,傳聲器1162將收集的聲音信號轉換為電信號,由音頻電路1160接收後轉換為音頻資料,再將音頻資料輸出處理器1180處理後,經RF電路1110以發送給比如另一手機,或者將音頻資料輸出至記憶體1120以便進一步處理。An audio circuit 1160, a speaker 1161, and a microphone 1162 can provide an audio interface between the user and the handset. The audio circuit 1160 can transmit the converted electrical signal of the audio data to the speaker 1161, and convert it into a sound signal output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the audio circuit 1160 After receiving, it is converted into audio data, and then processed by the audio data output processor 1180, sent to another mobile phone via the RF circuit 1110, or output audio data to the memory 1120 for further processing.
WiFi屬於短距離無線傳輸技術,手機利用WiFi模組1170可以幫助用戶收發電子郵件、瀏覽網頁和訪問串流式媒體等,其為用戶提供了無線的寬頻互聯網訪問。雖然第15圖繪示了WiFi模組1170,但是可以理解的是,其並不屬於手機的必要元件,完全可以根據需要在不改變發明的本質的範圍內而省略。WiFi is a short-range wireless transmission technology, and the mobile phone uses the WiFi module 1170 to help users send and receive emails, browse web pages, and access streaming media, etc., which provides users withWireless broadband internet access. Although FIG. 15 illustrates the WiFi module 1170, it can be understood that it does not belong to the necessary components of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
處理器1180是手機的控制中心,利用各種介面和線路連接整個手機的各個部分,利用運行或執行儲存在記憶體1120內的軟體程式和/或模組,以及調用儲存在記憶體1120內的資料,執行手機的各種功能和處理資料,從而對手機進行整體監控。在一實施例中,處理器1180可包括一個或多個處理單元;較佳實施例中,處理器1180可集成應用處理器和調變解調處理器,其中,應用處理器主要處理作業系統、用戶介面和應用程式等,調變解調處理器主要處理無線通信。可以理解的是,上述調變/解調處理器也可以不整合到處理器1180中。The processor 1180 is a control center of the mobile phone. The various parts of the entire mobile phone are connected by various interfaces and lines, and the software programs and/or modules stored in the memory 1120 are operated or executed, and the data stored in the memory 1120 is called. The mobile phone's various functions and processing data are implemented to monitor the mobile phone as a whole. In an embodiment, the processor 1180 may include one or more processing units; in a preferred embodiment, the processor 1180 may integrate an application processor and a modulation and demodulation processor, where the application processor mainly processes the operating system, The user interface and applications, etc., the modulation and demodulation processor mainly handles wireless communication. It can be understood that the above modulation/demodulation processor may also not be integrated into the processor 1180.
手機還包括給各個部件供電的電源1190(比如電池),較佳實施例中,電源可以利用電源管理系統與處理器1180邏輯相連,從而利用電源管理系統實現管理充電、放電、以及功耗管理等功能。The handset also includes a power source 1190 (such as a battery) that supplies power to the various components. In the preferred embodiment, the power source can be logically coupled to the processor 1180 using a power management system to manage charge, discharge, and power management using the power management system. Features.
儘管未繪示,手機還可以包括攝像鏡頭、藍牙模組等,在此不再贅述。Although not shown, the mobile phone may also include a camera lens, a Bluetooth module, etc., and will not be described herein.
在本發明實施例中,該電子設備所包括的處理器1180還具有以下功能:透過第一圖像渲染效果進行圖像渲染時,檢測圖像幀率;若所述圖像幀率低於設定圖像幀率,對圖像渲染效果參數進行調節,將圖像渲染效果由所述第一圖像渲染效果調整為第二圖像渲染效果,所述第二圖像渲染效果低於所述第一圖像渲染效果;利用所述第二圖像渲染效果進行圖像渲染。In the embodiment of the present invention, the processor 1180 included in the electronic device further has the following function: when performing image rendering through the first image rendering effect, detecting an image frame rate; if the image frame rate is lower than the setting An image frame rate, the image rendering effect parameter is adjusted, and the image rendering effect is adjusted from the first image rendering effect to a second image rendering effect, and the second image rendering effect is lower than the first image rendering effect An image rendering effect;Image rendering is performed using the second image rendering effect.
本說明書中各個實施例採用遞進的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個實施例之間相同相似部分互相參見即可。對於實施例公開的裝置而言,由於其與實施例公開的方法相對應,所以描述的比較簡單,相關之處參見方法部分說明即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
本發明所屬技術領域中具有通常知識者還可以進一步意識到,結合本發明中所公開的實施例描述的各示例的單元及演算法步驟,能夠以電子硬體、電腦軟體或者二者的結合來實現,為了清楚地說明硬體和軟體的可互換性,在上述說明中已經按照功能一般性地描述了各示例的組成及步驟。這些功能究竟以硬體還是軟體方式來執行,取決於技術方案的特定應用和設計條件。本發明所屬技術領域中具有通常知識者可以對每個特定的應用來使用不同方法來實現所描述的功能,但是這種實現不應認為超出本發明的範圍。Those of ordinary skill in the art to which the invention pertains will further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. Implementations, in order to clearly illustrate the interchangeability of hardware and software, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design conditions of the technical solution. Those skilled in the art to which the present invention pertains may use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
結合本發明中所公開的實施例描述的方法或演算法的步驟可以直接用硬體、處理器執行的軟體模組,或者二者的結合來實施。軟體模組可以置於隨機記憶體(Random Access Memory,RAM)、記憶體、唯讀記憶體(Read-Only Memory,ROM)、電可編程ROM、電可擦除可編程ROM、暫存器、硬碟、可移動磁片、CD-ROM、或技術領域內所公知的任意其他形式的儲存介質中。The steps of the method or algorithm described in connection with the embodiments disclosed herein may be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a temporary register, A hard disk, a removable magnetic disk, a CD-ROM, or any other form of storage medium known in the art.
雖然本發明已用較佳實施例揭露如上,然其並非用以限定本發明,本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。While the invention has been described above in terms of the preferred embodiments, the invention is not intended to limit the invention, and the invention may be practiced without departing from the spirit and scope of the invention. Retouching, therefore the scope of protection of the present invention is attached to the applicationThe scope defined by the patent scope shall prevail.
S100~S120‧‧‧步驟S100~S120‧‧‧Steps
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410049102.2ACN103778656B (en) | 2014-02-12 | 2014-02-12 | A kind of image rendering method, device and electronic equipment |
| Publication Number | Publication Date |
|---|---|
| TW201532422A TW201532422A (en) | 2015-08-16 |
| TWI566575Btrue TWI566575B (en) | 2017-01-11 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW103146093ATWI566575B (en) | 2014-02-12 | 2014-12-29 | Method and device for rendering image and electronic apparatus thereof |
| Country | Link |
|---|---|
| CN (1) | CN103778656B (en) |
| TW (1) | TWI566575B (en) |
| WO (1) | WO2015120778A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103778656B (en)* | 2014-02-12 | 2018-09-07 | 腾讯科技(深圳)有限公司 | A kind of image rendering method, device and electronic equipment |
| CN104740873A (en)* | 2015-04-13 | 2015-07-01 | 四川天上友嘉网络科技有限公司 | Image rendering method for game |
| CN106341436B (en)* | 2015-07-08 | 2021-03-19 | 深圳市腾讯计算机系统有限公司 | Method and device for detecting acceleration effect |
| US10127883B2 (en)* | 2015-10-27 | 2018-11-13 | Mediatek Inc. | Frame rate control method and image processing apparatus selectively limiting frame rate |
| CN108369726B (en) | 2015-12-03 | 2021-05-18 | 华为技术有限公司 | Method and portable electronic device for changing graphics processing resolution according to scene |
| CN105582672B (en)* | 2015-12-23 | 2019-06-04 | 厦门光趣投资管理有限公司 | A kind of scene of game figure layer display methods and calculate equipment |
| JP6542706B2 (en)* | 2016-04-13 | 2019-07-10 | ファナック株式会社 | Numerical control device |
| CN105930535A (en)* | 2016-06-20 | 2016-09-07 | 微景天下(北京)科技有限公司 | Adaptive image display system and adaptive image display method |
| CN106210859B (en)* | 2016-08-11 | 2020-03-27 | 合一网络技术(北京)有限公司 | Panoramic video rendering method and device |
| CN106447595A (en)* | 2016-09-23 | 2017-02-22 | 努比亚技术有限公司 | Distributed image and graph rendering method and terminal |
| CN108269223B (en)* | 2017-01-04 | 2021-08-31 | 腾讯科技(深圳)有限公司 | Webpage graph drawing method and terminal |
| CN106902513A (en)* | 2017-03-02 | 2017-06-30 | 苏州蜗牛数字科技股份有限公司 | A kind of method that VR game pictures are optimized |
| CN107038736B (en)* | 2017-03-17 | 2021-07-06 | 腾讯科技(深圳)有限公司 | Animation display method based on frame rate and terminal equipment |
| CN108737761B (en)* | 2017-04-21 | 2021-08-10 | 腾讯科技(深圳)有限公司 | Video recording method and device |
| CN107273080B (en)* | 2017-05-25 | 2020-05-22 | 深圳市彬讯科技有限公司 | Multithreading-based mobile terminal picture rendering method and device |
| CN108010117B (en)* | 2017-11-30 | 2021-09-28 | 杭州电魂网络科技股份有限公司 | Full screen rendering method and device |
| CN107978014B (en)* | 2017-12-21 | 2021-06-18 | 卓米私人有限公司 | Particle rendering method and device, electronic equipment and storage medium |
| CN108733334B (en)* | 2018-03-13 | 2020-06-09 | Oppo广东移动通信有限公司 | Image quality parameter adjustment method, device, terminal and storage medium |
| CN108635851B (en)* | 2018-05-16 | 2021-07-27 | 网易(杭州)网络有限公司 | Game picture processing method and device |
| CN110798738B (en)* | 2018-08-01 | 2022-01-28 | Oppo广东移动通信有限公司 | Frame rate control method, device, terminal and storage medium |
| CN109413337A (en)* | 2018-08-30 | 2019-03-01 | 北京达佳互联信息技术有限公司 | Video Rendering method, apparatus, electronic equipment and storage medium |
| CN109302523B (en)* | 2018-10-22 | 2020-11-06 | 竞技世界(北京)网络技术有限公司 | Mobile phone performance evaluation method for mobile phone side and server side |
| CN109499059B (en)* | 2018-11-15 | 2020-08-11 | 腾讯科技(深圳)有限公司 | Object rendering method and device, storage medium and electronic device |
| CN109675321B (en)* | 2018-12-18 | 2022-02-15 | 网易(杭州)网络有限公司 | Method and device for controlling number of people displayed on same screen in game |
| CN109842533A (en)* | 2019-01-17 | 2019-06-04 | 珠海金山网络游戏科技有限公司 | A kind of method and device detecting game Caton frame |
| CN110020981A (en)* | 2019-03-27 | 2019-07-16 | 阿里巴巴集团控股有限公司 | A kind of image information processing method, device and electronic equipment |
| CN110559659B (en)* | 2019-07-09 | 2023-06-20 | 深圳市瑞立视多媒体科技有限公司 | Game rendering optimization method, device, equipment and storage medium |
| CN110493456B (en)* | 2019-07-29 | 2020-10-30 | 创新先进技术有限公司 | Animation playing method and device, terminal equipment and server |
| CN113434300B (en)* | 2019-11-06 | 2023-01-24 | 腾讯科技(深圳)有限公司 | Data processing method and related device |
| WO2021249358A1 (en)* | 2020-06-08 | 2021-12-16 | 华为技术有限公司 | Rendering method, device and system |
| CN114067035A (en)* | 2020-07-31 | 2022-02-18 | 华为云计算技术有限公司 | Rendering control method, device and system |
| CN112184575B (en)* | 2020-09-16 | 2024-09-13 | 华为技术有限公司 | Image rendering method and device |
| CN116091292B (en)* | 2022-08-17 | 2023-11-21 | 荣耀终端有限公司 | Data processing methods and related devices |
| CN116688495B (en)* | 2022-11-04 | 2024-04-19 | 荣耀终端有限公司 | Frame rate adjustment method and related device |
| CN115942131B (en)* | 2023-02-09 | 2023-09-01 | 蔚来汽车科技(安徽)有限公司 | Method for guaranteeing vehicle looking-around function, cabin system, vehicle and storage medium |
| CN117221654B (en)* | 2023-11-09 | 2024-04-30 | 深圳市达瑞电子科技有限公司 | Video rendering method and system based on video frame analysis |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5384908A (en)* | 1991-12-30 | 1995-01-24 | Xerox Corporation | Avoiding oscillation in interactive animation |
| US6072498A (en)* | 1997-07-31 | 2000-06-06 | Autodesk, Inc. | User selectable adaptive degradation for interactive computer rendering system |
| US20080055311A1 (en)* | 2006-08-31 | 2008-03-06 | Ati Technologies Inc. | Portable device with run-time based rendering quality control and method thereof |
| US20110096077A1 (en)* | 2009-10-27 | 2011-04-28 | Microsoft Corporation | Controlling animation frame rate of applications |
| CN103366391A (en)* | 2013-06-26 | 2013-10-23 | 广州市动景计算机科技有限公司 | Picture rendering method and picture rendering device of dynamic picture |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102831630B (en)* | 2012-07-26 | 2015-09-09 | 小米科技有限责任公司 | A kind of animation rendering intent and device |
| CN102857791B (en)* | 2012-09-14 | 2015-07-08 | 武汉善观科技有限公司 | Method for processing and displaying image data in PACS system by mobile terminal |
| CN103077015B (en)* | 2012-12-25 | 2015-08-05 | 福州博远无线网络科技有限公司 | A kind of method of Dynamic controlling frame rate of game |
| CN103778656B (en)* | 2014-02-12 | 2018-09-07 | 腾讯科技(深圳)有限公司 | A kind of image rendering method, device and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5384908A (en)* | 1991-12-30 | 1995-01-24 | Xerox Corporation | Avoiding oscillation in interactive animation |
| US6072498A (en)* | 1997-07-31 | 2000-06-06 | Autodesk, Inc. | User selectable adaptive degradation for interactive computer rendering system |
| US20080055311A1 (en)* | 2006-08-31 | 2008-03-06 | Ati Technologies Inc. | Portable device with run-time based rendering quality control and method thereof |
| US20110096077A1 (en)* | 2009-10-27 | 2011-04-28 | Microsoft Corporation | Controlling animation frame rate of applications |
| CN103366391A (en)* | 2013-06-26 | 2013-10-23 | 广州市动景计算机科技有限公司 | Picture rendering method and picture rendering device of dynamic picture |
| Publication number | Publication date |
|---|---|
| CN103778656B (en) | 2018-09-07 |
| TW201532422A (en) | 2015-08-16 |
| CN103778656A (en) | 2014-05-07 |
| WO2015120778A1 (en) | 2015-08-20 |
| Publication | Publication Date | Title |
|---|---|---|
| TWI566575B (en) | Method and device for rendering image and electronic apparatus thereof | |
| WO2021088514A1 (en) | Method for pre-loading content data, and electronic device and storage medium | |
| CN107731146A (en) | Brightness adjusting method and related product | |
| WO2016173427A1 (en) | Method, device and computer readable medium for creating motion blur effect | |
| CN108111675A (en) | Processing method, device and the mobile terminal of notification message | |
| WO2017152355A1 (en) | Display method and terminal device | |
| CN105828160B (en) | Video broadcasting method and device | |
| CN108762640A (en) | A display method and terminal for barrage information | |
| CN111324235A (en) | Screen refreshing frequency adjusting method and electronic equipment | |
| CN103180809A (en) | Screen-interface display method and terminal | |
| CN110874128B (en) | Visualized data processing method and electronic equipment | |
| CN103488450A (en) | Method, device and terminal equipment for projecting picture | |
| CN111147919A (en) | A playback adjustment method, electronic device and computer-readable storage medium | |
| CN111601139A (en) | Information display method, electronic device and storage medium | |
| CN108512615B (en) | Signal intensity display method and mobile terminal | |
| CN110069122A (en) | A kind of screen control method, terminal and computer readable storage medium | |
| WO2019076250A1 (en) | Push message management method and related products | |
| CN103581762A (en) | Method, device and terminal equipment for playing network videos | |
| CN106101764A (en) | A kind of methods, devices and systems showing video data | |
| CN108958593A (en) | A kind of method and mobile terminal of determining communication object | |
| CN110941378B (en) | Video content display method and electronic equipment | |
| CN106057213B (en) | A kind of method and apparatus of display voice pitch data | |
| CN106098088B (en) | A kind of method and apparatus of the display lyrics | |
| CN108235084B (en) | Video playing method and mobile terminal | |
| CN108008808B (en) | Operating parameter adjustment method and mobile terminal |