TW201902226A - Frame rate adjustment method and image processing device - Google Patents
Frame rate adjustment method and image processing device Download PDFInfo
- Publication number
- TW201902226A TW201902226A TW107113530A TW107113530A TW201902226A TW 201902226 A TW201902226 A TW 201902226A TW 107113530 A TW107113530 A TW 107113530A TW 107113530 A TW107113530 A TW 107113530A TW 201902226 A TW201902226 A TW 201902226A
- Authority
- TW
- Taiwan
- Prior art keywords
- frame rate
- frame
- rate
- image processing
- processing device
- Prior art date
Links
- 238000012545 processing Methods 0.000 title claims abstract description 61
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000009877 rendering Methods 0.000 claims abstract description 24
- 230000008569 process Effects 0.000 claims description 5
- 230000007423 decrease Effects 0.000 abstract 1
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 8
- 238000001514 detection method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000000007 visual effect Effects 0.000 description 5
- 230000006641 stabilisation Effects 0.000 description 4
- 238000011105 stabilization Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000013021 overheating Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
- H04N7/0127—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level by changing the field or frame frequency of the incoming video signal, e.g. frame rate converter
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/003—Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto
- G09G5/005—Adapting incoming signals to the display format of the display terminal
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/04—Changes in size, position or resolution of an image
- G09G2340/0407—Resolution change, inclusive of the use of different resolutions for different screen areas
- G09G2340/0435—Change or adaptation of the frame rate of the video stream
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2350/00—Solving problems of bandwidth in display systems
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2360/00—Aspects of the architecture of display systems
- G09G2360/08—Power processing, i.e. workload management for processors involved in display operations, such as CPUs or GPUs
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
本發明涉及訊框速率(frame rate)調整,特別係涉及一種能夠提供更好的用戶體驗的訊框速率調整方法和圖像處理裝置。 The present invention relates to frame rate adjustment, and in particular, to a frame rate adjustment method and an image processing device capable of providing a better user experience.
在圖形和多媒體領域中,訊框速率一般係指圖形引擎提供的可視內容的訊框的速率。根據可視內容的來源,訊框速率介於24Hz至超過100Hz的範圍內,或者在靜態圖形的情況下為0Hz。可選地,某些類型的可視內容具有變化的訊框速率,或者訊框速率可以隨著不同內容類型的顯示而變化,例如,電視上的電影素材一般具有24或25Hz的訊框速率,而視頻素材(如視頻遊戲)可能具有30,50或60Hz的訊框速率。 In the field of graphics and multimedia, the frame rate generally refers to the frame rate of the visual content provided by the graphics engine. Depending on the source of the visual content, the frame rate is in the range of 24Hz to more than 100Hz, or 0Hz in the case of static graphics. Optionally, certain types of visual content have a varying frame rate, or the frame rate may vary with the display of different content types. For example, movie material on a television generally has a frame rate of 24 or 25 Hz, and Video material (such as video games) may have a frame rate of 30, 50, or 60 Hz.
儘管更高的訊框速率可以提供更好的視覺質量,但是他們一般趨向於導致更多的功率消耗。為了降低功耗,訊框速率調整的傳統設計對不同的應用場景配置不同的目標訊框速率。但是,在相同應用場景中,既使存在不同顯示要求的各種事件,目標訊框速率也係靜態的。 Although higher frame rates can provide better visual quality, they generally tend to cause more power consumption. In order to reduce power consumption, the traditional design of frame rate adjustment configures different target frame rates for different application scenarios. However, in the same application scenario, even if there are various events with different display requirements, the target frame rate is static.
代替降低功耗,存在另一種訊框速率調整的傳統設計,該設計旨在通過增加熱節流點(thermal throttling point) 來提升系統能力以避免訊框丟失,從而提供更好的用戶體驗。但是,這會導致更高的功耗及系統過熱,這很容易導致系統進入不穩定狀態。最終,用戶體驗可能不會像預期那樣改善,但是高功耗的成本是必然的。 Instead of reducing power consumption, there is another traditional design of frame rate adjustment, which is designed to increase the system's capability by increasing the thermal throttling point to avoid frame loss, thereby providing a better user experience. However, this leads to higher power consumption and overheating of the system, which can easily cause the system to enter an unstable state. In the end, the user experience may not improve as expected, but the cost of high power consumption is inevitable.
因此,期望一種更加穩健的訊框速率調整方式。 Therefore, a more robust frame rate adjustment method is desired.
因此,本發明之主要目的即在於提供一種訊框速率調整方法和圖像處理裝置。 Therefore, the main object of the present invention is to provide a frame rate adjustment method and an image processing apparatus.
根據本發明至少一個實施例的一種圖像處理裝置,包括:一第一電路,用於根據圖像信號的當前訊框速率和目標訊框速率,確定訊框丟失率;一第二電路,用於當該訊框丟失率大於第一閾值時,將該目標訊框速率降低至該當前訊框速率;一第三電路,用於當該訊框丟失率小於第二閾值時,將該目標訊框速率提高至上限訊框速率,其中該第二閾值小於該第一閾值,該上限訊框速率係根據訊框渲染時間或記憶體帶寬能力來確定的;以及一第四電路,用於對要顯示的圖像應用該降低或提高的目標訊框速率。 An image processing device according to at least one embodiment of the present invention includes: a first circuit for determining a frame loss rate according to a current frame rate and a target frame rate of an image signal; a second circuit for When the frame loss rate is greater than the first threshold, the target frame rate is reduced to the current frame rate; a third circuit is used to change the target frame rate when the frame loss rate is less than the second threshold. The frame rate is increased to an upper frame rate, wherein the second threshold value is smaller than the first threshold, and the upper frame rate is determined according to a frame rendering time or a memory bandwidth capability; and a fourth circuit for The displayed image applies this reduced or increased target frame rate.
根據本發明至少一個實施例的一種訊框速率調整方法,由一圖像處理裝置中的一控制器來執行,該方法包括:根據該圖像處理裝置所產生的圖像信號的當前訊框速率和目標訊框速率,確定訊框丟失率;當該訊框丟失率大於第一閾值時,將該目標訊框速率降低至該當前訊框速率;當該訊框丟失率小於第二閾值時,將該目標訊框速率提高至上限訊框速率,其中該第二閾值小於該第一閾值,該上限訊框速率係根據訊框 渲染時間或記憶體帶寬能力來確定的;以及對該圖像處理裝置顯示的圖像應用該降低或提高的目標訊框速率。 A frame rate adjusting method according to at least one embodiment of the present invention is executed by a controller in an image processing apparatus, and the method includes: according to a current frame rate of an image signal generated by the image processing apparatus And the target frame rate to determine the frame loss rate; when the frame loss rate is greater than the first threshold, reduce the target frame rate to the current frame rate; when the frame loss rate is less than the second threshold, Increasing the target frame rate to an upper frame rate, where the second threshold is less than the first threshold, and the upper frame rate is determined based on frame rendering time or memory bandwidth capability; and processing the image The image displayed by the device should apply the reduced or increased target frame rate.
本發明實施例,通過動態地調整訊框速率,因此可以得到圖像的平滑顯示,從而提供更好的用戶體驗。 In the embodiment of the present invention, by dynamically adjusting the frame rate, a smooth display of the image can be obtained, thereby providing a better user experience.
10‧‧‧控制器 10‧‧‧ Controller
20‧‧‧協同控制器 20‧‧‧ Cooperative Controller
30‧‧‧存儲設備 30‧‧‧Storage Equipment
40‧‧‧顯示設備 40‧‧‧display equipment
50‧‧‧輸入設備 50‧‧‧ input device
210‧‧‧探測模組 210‧‧‧ Detection Module
220‧‧‧FPS穩定模組 220‧‧‧FPS stabilization module
230‧‧‧圖形服務模組 230‧‧‧Graphic Service Module
S310~S390‧‧‧步驟 S310 ~ S390‧‧‧step
通過閱讀接下來的詳細描述以及參考所附圖式所做的示例,可以更容易地理解本發明實施例,其中:第1圖為根據本發明實施例的圖像處理裝置的模塊示例圖;第2圖為根據本發明實施例的動態訊框速率調整方法的軟體架構的示意圖;第3圖為根據本發明實施例的動態訊框速率調整方法的流程示意圖;以及第4圖為根據本發明實施例的訊框渲染(frame rendering)時間的示意圖。 The embodiments of the present invention can be more easily understood by reading the following detailed description and the examples made with reference to the accompanying drawings, in which: FIG. 1 is a block diagram of an example of an image processing apparatus according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a software architecture of a dynamic frame rate adjustment method according to an embodiment of the present invention; FIG. 3 is a schematic flowchart of a dynamic frame rate adjustment method according to an embodiment of the present invention; Schematic illustration of frame rendering time.
以下描述出於說明本發明的一般原理的目的並且不意味著限制。需要理解的是,本發明實施例可以以軟體、硬體、韌體或者他們的任意組合的方式來實現。當在本文中使用時,術語“包括”,“包含”,和/或“含有”指明所述的特徵,整體,步驟,操作,元件和/或組件的存在,但不排除存在或添加一個或複數個其他特徵,整體,步驟,操作,元件,組件和/或其組合。 The following description is for the purpose of illustrating the general principles of the invention and is not meant to be limiting. It should be understood that the embodiments of the present invention may be implemented in software, hardware, firmware, or any combination thereof. As used herein, the terms "including," "including," and / or "containing" indicate the presence of stated features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or A plurality of other features, wholes, steps, operations, elements, components and / or combinations thereof.
請注意,此中使用的術語“訊框速率”可以指提供的 可視內容的訊框的速率。在具體實施例中,訊框速率可以表示為每秒訊框數(Frames Per Second,FPS)。 Please note that the term “frame rate” used herein may refer to the rate of the frame of the visual content provided. In a specific embodiment, the frame rate may be expressed as Frames Per Second (FPS).
第1圖為根據本發明實施例的圖像處理裝置的模塊示意圖。該圖像處理裝置100包括:一控制器10,一協同控制器(co-controller)20,一存儲設備30,一顯示設備40,以及一輸入設備50。其中該協同控制器20,存儲設備30以及輸入設備50均耦合至控制器10,並且該協同控制器20與該存儲設備30彼此耦合並且耦合至顯示設備40。例如,該圖像處理裝置100可以為一行動手機,平板PC(Personal Computer,個人計算機),筆記本電腦,遊戲控制台,或者任何具有顯示功能的電子設備。 FIG. 1 is a schematic block diagram of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus 100 includes a controller 10, a co-controller 20, a storage device 30, a display device 40, and an input device 50. The cooperative controller 20, the storage device 30, and the input device 50 are all coupled to the controller 10, and the cooperative controller 20 and the storage device 30 are coupled to each other and coupled to the display device 40. For example, the image processing apparatus 100 may be a mobile phone, a tablet PC (Personal Computer), a notebook computer, a game console, or any electronic device with a display function.
控制器10可以為通用目的處理器,CPU(Central Processing Unit,中央處理單元),MCU(Micro-Control Unit,微控制單元),DSP(Digital Signal Processor,數位信號處理器),應用處理器,等等,該控制器10包括各種電路,用於提供數據處理和計算,控制協同控制器20進行圖像渲染,將資料存儲至存儲設備30,從存儲設備30檢索資料,及/或,接收來自輸入設備50的信號等功能。 The controller 10 may be a general-purpose processor, a CPU (Central Processing Unit, central processing unit), an MCU (Micro-Control Unit, micro-control unit), a DSP (Digital Signal Processor, digital signal processor), an application processor, etc. The controller 10 includes various circuits for providing data processing and calculation, controlling the cooperative controller 20 for image rendering, storing data to the storage device 30, retrieving data from the storage device 30, and / or receiving input from Signals and other functions of the device 50.
協同控制器20可以用來分流控制器10的圖像處理任務,從而允許控制器10處理其他處理任務。協同控制器20可以包括:一個或者複數個適當配置的圖形處理器,諸如適當配置的離散的或整合的圖形處理器(如GPU(Graphics Processing Unit,圖形處理單元)),或者為特定設備(諸如數位電視或者手持/移動設備)設計的處理器。具體地,協同控 制器20包括:各種電路,用於提供圖像處理和計算,接收來自控制器10的控制信號,存儲資料至存儲設備30,從存儲設備30檢索資料,及/或,發送一系列訊框資料(如表示文本消息、圖形、圖像,等等)至存儲設備30或顯示設備40等功能。例如,訊框資料可以直接被發送至顯示設備40,或者被發送至顯示設備40可以從中檢索它的存儲設備30。 The cooperative controller 20 can be used to offload the image processing tasks of the controller 10, thereby allowing the controller 10 to process other processing tasks. The cooperative controller 20 may include one or a plurality of appropriately configured graphics processors, such as a suitably configured discrete or integrated graphics processor (such as a GPU (Graphics Processing Unit)), or a specific device (such as Digital TV or handheld / mobile device) processor. Specifically, the cooperative controller 20 includes various circuits for providing image processing and calculation, receiving control signals from the controller 10, storing data to the storage device 30, retrieving data from the storage device 30, and / or, sending a A series of frame materials (such as text messages, graphics, images, etc.) to the storage device 30 or display device 40 and other functions. For example, the frame material may be sent directly to the display device 40, or sent to the storage device 30 from which the display device 40 may retrieve it.
發明所屬領域具有通常知識者將會理解,控制器10及協同控制器20中的電路一般包括:複數個電晶體,被配置為根據此中描述的功能和操作來控制電路的操作。可以進一步理解的是,電晶體的特定結構或互連一般由編譯器確定,諸如RTL(Register Transfer Language,暫存器轉移語言)編譯器。處理器在非常類似匯編語言代碼的腳本上操作RTL編譯器,以將該腳本編譯為用於佈局或者製造最終電路的形式。事實上,RTL以其在促進電子和數位系統的設計過程中的作用和用途而聞名。 Those having ordinary knowledge in the field of the invention will understand that the circuits in the controller 10 and the cooperative controller 20 generally include a plurality of transistors configured to control the operation of the circuit according to the functions and operations described herein. It can be further understood that the specific structure or interconnection of the transistor is generally determined by a compiler, such as an RTL (Register Transfer Language, RTL) compiler. The processor operates the RTL compiler on a script very similar to assembly language code to compile the script into a form for layout or fabrication of the final circuit. In fact, RTL is known for its role and use in facilitating the design of electronic and digital systems.
存儲設備30為非揮發性的機器可讀存儲介質,包括:記憶體,諸如快閃記憶體(flash)或者RAM(Random Access Memory,隨機存取記憶體),或者磁存儲設備,諸如硬盤或者磁帶,或者光盤,或者他們的任意組合,用於存儲資料,諸如訊框資料,以及通訊協議、應用程式(如遊戲應用程式)和本發明實施例的方法的程式代碼。 The storage device 30 is a non-volatile machine-readable storage medium, including: a memory, such as a flash memory or a RAM (Random Access Memory), or a magnetic storage device, such as a hard disk or a magnetic tape. , Or optical discs, or any combination thereof, is used to store data, such as frame data, and program codes for communication protocols, applications (such as game applications), and methods of embodiments of the present invention.
具體地,控制器10或協同控制器20可以加載並執行本發明實施例的方法的程式代碼。 Specifically, the controller 10 or the cooperative controller 20 can load and execute program code of the method in the embodiment of the present invention.
可選地,圖像處理裝置100可以進一步包括:訊 框速率控制器,耦合至控制器10,協同控制器20,存儲設備30以及顯示設備40中的至少一個,並且專用於控制訊框速率。具體地,訊框速率控制器可以包括:各種電路,用於提供訊框速率控制的功能,例如通過從存儲設備30加載並執行本發明實施例的方法的程式代碼來提供訊框速率控制。 Optionally, the image processing apparatus 100 may further include a frame rate controller coupled to at least one of the controller 10, the cooperative controller 20, the storage device 30, and the display device 40, and is dedicated to controlling the frame rate. Specifically, the frame rate controller may include various circuits for providing a function of frame rate control, for example, providing frame rate control by loading and executing program code from the storage device 30 of the method of the embodiment of the present invention.
顯示設備40可以為CRT(Cathode Ray Tube,陰極射線管)顯示器、LCD(Liquid-Crystal Display,液晶顯示器)、LED(Light-Emitting Diode,發光二極體)顯示器,或者EPD(Electronic Paper Display,電子紙顯示器),等等,用於根據從協同控制器20或存儲設備30接收的或讀取的訊框資料來提供顯示功能。可選地,顯示設備40可以進一步包括:一個或者複數個設置於其上或其下方的觸摸傳感器,用於感應觸摸、接觸或者物體(諸如手指或者手寫筆)的逼近。 The display device 40 may be a CRT (Cathode Ray Tube) display, an LCD (Liquid-Crystal Display), an LED (Light-Emitting Diode) display, or an EPD (Electronic Paper Display, electronic Paper display), etc., for providing a display function based on frame data received or read from the cooperative controller 20 or the storage device 30. Optionally, the display device 40 may further include one or a plurality of touch sensors disposed thereon or below, for sensing an approach of a touch, a contact, or an object such as a finger or a stylus.
輸入設備50可以包括:一個或者複數個按鈕、鍵盤、鼠標、觸摸墊、視訊攝影機、麥克風,及/或揚聲器,等等,充當與用戶交互的MMI(Man-Machine Interface,人機介面)。 The input device 50 may include one or a plurality of buttons, a keyboard, a mouse, a touch pad, a video camera, a microphone, and / or a speaker, etc., serving as an MMI (Man-Machine Interface) for interacting with a user.
可以理解的是,第1圖實施例中描述的元件僅出於示意目的,而不意味著對本發明實施例的限制。例如,顯示設備40可以由圖像處理裝置100外部的顯示器來實現,或者圖像處理裝置100可以進一步包括:GPS(Global Positioning System,全球定位系統),用於提供位置信息;電源(如電池),用於提供能量至其他元件;及/或,無線收發器,用於提供無線通信功能,等等。 It can be understood that, the elements described in the embodiment in FIG. 1 are for illustrative purposes only, and are not meant to limit the embodiments of the present invention. For example, the display device 40 may be implemented by a display external to the image processing apparatus 100, or the image processing apparatus 100 may further include: a GPS (Global Positioning System) for providing position information; a power source (such as a battery) , For providing energy to other components; and / or, a wireless transceiver for providing wireless communication functions, and so on.
第2圖是根據本發明實施例的動態訊框速率調整方法的軟體架構的示意圖。該軟體架構包括:探測模組210,FPS穩定模組220和圖形服務模組230,其中每個模組可以為使用程式代碼實現的軟體模組並且由控制器(如控制器10,協同控制器20,或者訊框速率控制器)執行,從而彼此合作執行動態訊框速率調整。 FIG. 2 is a schematic diagram of a software architecture of a dynamic frame rate adjustment method according to an embodiment of the present invention. The software architecture includes: a detection module 210, an FPS stabilization module 220, and a graphics service module 230, where each module can be a software module implemented using program code and controlled by a controller (such as the controller 10, a cooperative controller 20, or frame rate controller), so as to cooperate with each other to perform dynamic frame rate adjustment.
探測模組210負責從圖形處理裝置100的硬體元件收集統計信息,該硬體元件包括:控制器10,協同控制器20以及存儲設備30。具體地,該統計信息包括:當前用於圖像渲染的訊框速率,控制器10和協同控制器20要求的訊框渲染時間,控制器10和協同控制器20當前的和最大的OPP(Operating Performance Points,運行性能點),以及存儲設備30的吞吐量和最大可用帶寬(如記憶體吞吐量和最大可用記憶體帶寬)。 The detection module 210 is responsible for collecting statistical information from hardware components of the graphics processing apparatus 100. The hardware components include: a controller 10, a cooperative controller 20, and a storage device 30. Specifically, the statistical information includes: a frame rate currently used for image rendering, a frame rendering time required by the controller 10 and the cooperative controller 20, and a current and maximum OPP (Operating) of the controller 10 and the cooperative controller 20 Performance Points), and the throughput and maximum available bandwidth of the storage device 30 (such as memory throughput and maximum available memory bandwidth).
FPS穩定模組220負責根據探測模組210提供的統計信息,動態地調整目標訊框速率。具體地,FPS穩定模組220通過從目標訊框速率中減去當前訊框速率以及將相減結果除以目標訊框速率以確定訊框丟失率,將該訊框丟失率與至少兩個閾值比較,以及根據比較結果和探測模組210提供的統計信息調整目標訊框速率。 The FPS stabilization module 220 is responsible for dynamically adjusting the target frame rate according to the statistical information provided by the detection module 210. Specifically, the FPS stabilization module 220 determines the frame loss rate by subtracting the current frame rate from the target frame rate and dividing the subtraction result by the target frame rate, and comparing the frame loss rate with at least two thresholds. Compare and adjust the target frame rate according to the comparison result and the statistical information provided by the detection module 210.
圖形服務模組230負責將該目標訊框速率應用至圖形服務,諸如遊戲應用程式,該圖形服務產生將由圖像處理裝置100顯示的圖像信號。 The graphics service module 230 is responsible for applying the target frame rate to a graphics service, such as a game application, which generates an image signal to be displayed by the image processing apparatus 100.
第3圖為根據本發明實施例的動態訊框速率調整 方法的流程示意圖。在本實施例中,該方法施加至一圖像處理裝置(如,圖像處理裝置100)。具體地,圖像處理裝置的控制器執行該方法,如控制器10,協同控制器20,或者除了控制器10和協同控制器20外的訊框速率控制器,其中,該控制器包括:各種電路,用於提供資料處理和計算功能,以執行本發明實施例的方法。 FIG. 3 is a schematic flowchart of a dynamic frame rate adjustment method according to an embodiment of the present invention. In this embodiment, the method is applied to an image processing apparatus (eg, the image processing apparatus 100). Specifically, the controller of the image processing apparatus executes the method, such as the controller 10, the cooperative controller 20, or a frame rate controller other than the controller 10 and the cooperative controller 20. The controller includes: A circuit for providing data processing and calculation functions to perform the method of the embodiment of the present invention.
在步驟S310中,圖像處理裝置啟動一週期性的輪詢計時器(periodic polling timer),以對預定的時間期間計數。 In step S310, the image processing apparatus starts a periodic polling timer to count a predetermined period of time.
在步驟S320中,該週期性的輪詢計時器到期並且該方法繼續進行至接下來的步驟。 In step S320, the periodic polling timer expires and the method proceeds to the next step.
在步驟S330中,該圖形處理裝置根據當前的訊框速率和目標訊框速率確定訊框丟失率。具體地,通過從目標訊框速率中減去當前訊框速率並將相減結果除以目標訊框速率以確定訊框丟失率。 In step S330, the graphics processing device determines a frame loss rate according to the current frame rate and the target frame rate. Specifically, the frame loss rate is determined by subtracting the current frame rate from the target frame rate and dividing the subtraction result by the target frame rate.
在一個實施例中,當前訊框速率指每秒由安卓顯示管理者處理的訊框數量。在另一實施例中,當前訊框速率指每秒由Surfaceflinger處理的訊框數量。可選地,當前訊框速率可以由存儲在隊列緩衝器中的訊框的兩個連續事件之間的時間間隔來確定。 In one embodiment, the current frame rate refers to the number of frames processed by the Android display manager per second. In another embodiment, the current frame rate refers to the number of frames processed by Surfaceflinger per second. Alternatively, the current frame rate may be determined by the time interval between two consecutive events of the frame stored in the queue buffer.
在步驟S340中,圖像處理裝置確定訊框丟失率是否大於第一閾值,如果大於,該方法繼續進行至步驟S350。在一個實施例中,第一閾值可以被配置為0.02。 In step S340, the image processing device determines whether the frame loss rate is greater than the first threshold. If it is greater than that, the method proceeds to step S350. In one embodiment, the first threshold may be configured as 0.02.
在步驟S350中,圖像處理裝置將目標訊框速率降低至當前訊框速率。 In step S350, the image processing device reduces the target frame rate to the current frame rate.
接著步驟S340,如果訊框丟失率小於或等於第一閾值,該方法繼續進行至步驟S360。 Following step S340, if the frame loss rate is less than or equal to the first threshold, the method proceeds to step S360.
在步驟S360中,圖像處理裝置確定訊框丟失率是否小於或等於第二閾值,如果小於或等於第二閾值,則方法繼續進行至步驟S370。具體地,第二閾值被配置為在0至第一閾值的範圍內。例如,第一閾值可以被配置為0.02,而第二閾值可以被配置為0.01。 In step S360, the image processing device determines whether the frame loss rate is less than or equal to the second threshold, and if it is less than or equal to the second threshold, the method proceeds to step S370. Specifically, the second threshold is configured to be within a range of 0 to the first threshold. For example, the first threshold may be configured as 0.02 and the second threshold may be configured as 0.01.
在步驟S370中,圖像處理裝置將目標訊框速率提高至上限訊框速率,其中該上限訊框速率根據訊框渲染時間及/或記憶體帶寬能力來確定。具體地,訊框渲染時間可以係指控制器(如CPU、GPU)處理訊框所需的時間期間。 In step S370, the image processing device increases the target frame rate to an upper frame rate, where the upper frame rate is determined according to a frame rendering time and / or a memory bandwidth capability. Specifically, the frame rendering time may refer to a time period required for a controller (such as a CPU, a GPU) to process the frame.
第4圖為根據本發明實施例的訊框渲染時間的示意圖。如第4圖所示,表示訊框渲染時間的時間期間可以指CPU/GPU實際的處理時間(在第4圖中標記為CPU/GUP訊框時間)加上訊框渲染任務被其他線程所搶占的時間。 FIG. 4 is a schematic diagram of a frame rendering time according to an embodiment of the present invention. As shown in Figure 4, the time period representing the frame rendering time can refer to the actual processing time of the CPU / GPU (labeled as CPU / GUP frame time in Figure 4) plus the frame rendering task is preempted by other threads time.
記憶體帶寬能力係指最大可用記憶體帶寬除以每個訊框使用的記憶體帶寬的結果,其中每個訊框使用的記憶體帶寬等於記憶體吞吐量除以當前訊框速率。 Memory bandwidth capability refers to the result of dividing the maximum available memory bandwidth by the memory bandwidth used by each frame, where the memory bandwidth used by each frame is equal to the memory throughput divided by the current frame rate.
可選地,訊框渲染時間可以係指控制器處理訊框所需的時間期間乘以增強餘量(boost headroom)的結果。增強餘量可以通過將第一性能指數除以第二性能指數來確定,其中第一性能指數指示圖像處理裝置在當前系統能力下操作的性能水平,以及第二性能指數指示圖像處理裝置在最大系統能力下操作的性能水平。當前系統能力可以指圖像處理裝置當前 的OPP或DVFS(Dynamic Voltage and Frequency Scaling,動態電壓頻率調整),同時最大系統能力可以指圖像處理裝置的最大OPP或DVFS。 Optionally, the frame rendering time may refer to the result of multiplying the boost headroom by the time period required for the controller to process the frame. The enhancement margin may be determined by dividing the first performance index by a second performance index, where the first performance index indicates a performance level at which the image processing device operates under the current system capability, and the second performance index indicates that the image processing device is at Performance level of operation at maximum system capacity. The current system capability may refer to the current OPP or DVFS (Dynamic Voltage and Frequency Scaling) of the image processing device, and the maximum system capability may refer to the maximum OPP or DVFS of the image processing device.
例如,當前OPP/DVFS可以由當前施加至控制器(如CPU或GPU)的頻率和電壓來表示,諸如{頻率=300MHz,電壓=1V},以及最大OPP/DVFS可以由配置給控制器(如CPU或GPU)的最大頻率和電壓來表示,諸如{頻率=1GHz,電壓=1.3V}。 For example, the current OPP / DVFS can be represented by the frequency and voltage currently applied to the controller (such as CPU or GPU), such as {frequency = 300MHz, voltage = 1V}, and the maximum OPP / DVFS can be configured by the controller (such as CPU or GPU), such as {frequency = 1GHz, voltage = 1.3V}.
相應地,第一性能指數可以由使用基准來測試使用當前的OPP/DVFS的圖像處理裝置所得的分數(如1020)來表示,第二性能指數可以由使用基准來對使用最大OPP/DVFS的圖像處理裝置進行測試所得的分數(如3000)來表示。 Correspondingly, the first performance index may be represented by a score (such as 1020) obtained by using a benchmark to test an image processing device using the current OPP / DVFS, and the second performance index may be represented by using the benchmark The score (such as 3000) obtained by the image processing device for testing is expressed.
在一個實施例中,使用訊框渲染時間的倒數來確定上限訊框速率。 In one embodiment, the inverse of the frame rendering time is used to determine the upper frame rate.
在另一實施例中,通過在訊框渲染時間的倒數和記憶體帶寬能力中選擇最小值來確定上限訊框速率。例如,上限訊框速率等於記憶體帶寬能力,CPU訊框渲染時間的倒數,以及GPU訊框渲染時間的倒數中的最小值。 In another embodiment, the upper frame rate is determined by selecting a minimum value among the reciprocal of the frame rendering time and the memory bandwidth capability. For example, the upper frame rate is equal to the minimum of the memory bandwidth capability, the reciprocal of the CPU frame rendering time, and the GPU frame rendering time.
接著至步驟S360,如果訊框丟失率大於第二閾值,則方法繼續進行至步驟S380。 Then go to step S360. If the frame loss rate is greater than the second threshold, the method proceeds to step S380.
在步驟S380中,圖像處理裝置維持目標訊框速率。 In step S380, the image processing apparatus maintains the target frame rate.
接著步驟S350,S370和S380,方法繼續進行至步驟S390。 Following steps S350, S370, and S380, the method proceeds to step S390.
在步驟S390,圖像處理裝置對顯示圖像施加調整 後的目標訊框速率,並且方法結束。 In step S390, the image processing device applies the adjusted target frame rate to the displayed image, and the method ends.
鑒於上述實施例,可以理解的是,本發明實施例通過使用訊框丟失率作為確定是否調整目標訊框速率的主要參考以及考慮各種系統提示(如,FPS,CPU/GPU訊框渲染時間,以及記憶體帶寬能力)來確定如何調整目標訊框速率,從而實現動態的訊框速率調整。有優勢地,本發明實施例的方法可以得到圖像的平滑顯示,從而提供更好的用戶體驗。 In view of the above embodiments, it can be understood that the embodiment of the present invention uses the frame loss rate as the main reference for determining whether to adjust the target frame rate and considers various system prompts (such as FPS, CPU / GPU frame rendering time, and Memory bandwidth capability) to determine how to adjust the target frame rate to achieve dynamic frame rate adjustment. Advantageously, the method of the embodiment of the present invention can obtain a smooth display of an image, thereby providing a better user experience.
雖然已經通過示例和各種實施例的方式描述了本申請,但是應該理解,本申請不限于此。在不脫離本申請的範圍和精神的情況下,發明所屬領域具有通常知識者仍然可以進行各種改變和修改。因此,本申請的範圍應由以下申請專利範圍及其等同物限定和保護。 Although the present application has been described by way of examples and various embodiments, it should be understood that the present application is not limited thereto. Without departing from the scope and spirit of the present application, those with ordinary knowledge in the field to which the invention belongs can still make various changes and modifications. Therefore, the scope of this application should be defined and protected by the scope of the following patent applications and their equivalents.
在申請專利範圍中使用諸如“第一”,“第二”和“第三”等順序術語來修改聲稱的要素,這本身並不意味著一個聲稱的要素的優先級,優先順序或次序高於另一個,或者執行方法的動作的時間順序,這僅被用作標簽以將具有某個名稱的一個聲稱的要素與具有相同名稱的另一個要素(但使用了順序術語)進行區分。 The use of sequential terms such as "first," "second," and "third" in the scope of a patent application to modify a claimed element does not in itself mean the priority of a claimed element, which is higher in priority or order Another, or chronological order of performing the actions of a method, is only used as a label to distinguish one claimed element with a certain name from another element with the same name (but using sequential terminology).
以上所述僅為本發明的較佳實施例而已,並不用以限制本發明,凡在本發明的精神和原則之內所作的任何修改、等同替換和改進等,均應包含在本發明的保護範圍之內。 The above description is only the preferred embodiments of the present invention, and is not intended to limit the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention shall be included in the protection of the present invention. Within range.
Claims (10)
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US201762504000P | 2017-05-10 | 2017-05-10 | |
| US62/504,000 | 2017-05-10 | ||
| US15/806,718 | 2017-11-08 | ||
| US15/806,718 US10425615B2 (en) | 2017-05-10 | 2017-11-08 | Apparatuses and methods for dynamic frame rate adjustment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| TW201902226A true TW201902226A (en) | 2019-01-01 |
Family
ID=64096706
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW107113530A TW201902226A (en) | 2017-05-10 | 2018-04-20 | Frame rate adjustment method and image processing device |
Country Status (2)
| Country | Link |
|---|---|
| US (1) | US10425615B2 (en) |
| TW (1) | TW201902226A (en) |
Families Citing this family (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10445850B2 (en) * | 2015-08-26 | 2019-10-15 | Intel Corporation | Technologies for offloading network packet processing to a GPU |
| US10979744B2 (en) * | 2017-11-03 | 2021-04-13 | Nvidia Corporation | Method and system for low latency high frame rate streaming |
| CN108089958B (en) * | 2017-12-29 | 2021-06-08 | 珠海市君天电子科技有限公司 | GPU test method, terminal device and computer readable storage medium |
| US20190250690A1 (en) * | 2018-02-09 | 2019-08-15 | Futurewei Technologies Inc | Video playback energy consumption control |
| WO2020191685A1 (en) * | 2019-03-27 | 2020-10-01 | 华为技术有限公司 | Frequency adjustment method and apparatus applied to terminal, and electronic device |
| US11508110B2 (en) | 2020-02-03 | 2022-11-22 | Sony Interactive Entertainment Inc. | System and method for efficient multi-GPU rendering of geometry by performing geometry analysis before rendering |
| US11321800B2 (en) | 2020-02-03 | 2022-05-03 | Sony Interactive Entertainment Inc. | System and method for efficient multi-GPU rendering of geometry by region testing while rendering |
| US11080814B1 (en) * | 2020-02-03 | 2021-08-03 | Sony Interactive Entertainment Inc. | System and method for efficient multi-GPU rendering of geometry by pretesting against screen regions using prior frame information |
| US11170461B2 (en) | 2020-02-03 | 2021-11-09 | Sony Interactive Entertainment Inc. | System and method for efficient multi-GPU rendering of geometry by performing geometry analysis while rendering |
| US11120522B2 (en) | 2020-02-03 | 2021-09-14 | Sony Interactive Entertainment Inc. | System and method for efficient multi-GPU rendering of geometry by subdividing geometry |
| US11263718B2 (en) | 2020-02-03 | 2022-03-01 | Sony Interactive Entertainment Inc. | System and method for efficient multi-GPU rendering of geometry by pretesting against in interleaved screen regions before rendering |
| US12112394B2 (en) | 2020-02-03 | 2024-10-08 | Sony Interactive Entertainment Inc. | System and method for efficient multi-GPU rendering of geometry by pretesting against screen regions using configurable shaders |
| US11514549B2 (en) | 2020-02-03 | 2022-11-29 | Sony Interactive Entertainment Inc. | System and method for efficient multi-GPU rendering of geometry by generating information in one rendering phase for use in another rendering phase |
| US11413542B2 (en) * | 2020-04-29 | 2022-08-16 | Dell Products L.P. | Systems and methods for measuring and optimizing the visual quality of a video game application |
| CN112198954B (en) * | 2020-10-23 | 2022-10-21 | Tcl通讯(宁波)有限公司 | Frame rate setting method and device, storage medium and mobile terminal |
| CN117280885A (en) * | 2021-06-25 | 2023-12-22 | 株式会社富士 | Identification device and identification method |
| CN114157824B (en) * | 2021-11-29 | 2023-08-18 | 联想(北京)有限公司 | Control method and electronic equipment |
| CN114420052A (en) * | 2022-02-10 | 2022-04-29 | 京东方科技集团股份有限公司 | Display panel driving method and display device |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6421051B1 (en) * | 1998-06-18 | 2002-07-16 | Spatial Corporation | Multi-resolution geometry |
| JP5843631B2 (en) | 2012-01-26 | 2016-01-13 | 日本電信電話株式会社 | Frame rate control method, frame rate control device, and frame rate control program |
| US9275601B2 (en) * | 2012-12-12 | 2016-03-01 | Intel Corporation | Techniques to control frame display rate |
| TW201612875A (en) | 2014-09-26 | 2016-04-01 | Acer Inc | Display device and operating method thereof |
| KR102432804B1 (en) * | 2015-06-02 | 2022-08-16 | 한화테크윈 주식회사 | Video capture device using MJPEG |
-
2017
- 2017-11-08 US US15/806,718 patent/US10425615B2/en active Active
-
2018
- 2018-04-20 TW TW107113530A patent/TW201902226A/en unknown
Also Published As
| Publication number | Publication date |
|---|---|
| US20180332252A1 (en) | 2018-11-15 |
| US10425615B2 (en) | 2019-09-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TW201902226A (en) | Frame rate adjustment method and image processing device | |
| CN108196809B (en) | Memory power savings in idle display situations | |
| CN106415698B (en) | Power optimization with dynamic frame rate support | |
| CN107851042B (en) | Characterize GPU workloads and power management using command stream prompts | |
| CN108885852B (en) | System and method for controlling variable frame duration in an electronic display | |
| CN107209543B (en) | Clock rate adjustment for processing unit | |
| CN109906437B (en) | Processor Core Stalling and Frequency Selection Based on Thread Importance | |
| WO2019024642A1 (en) | Process control method and apparatus, storage medium, and electronic device | |
| US9390682B2 (en) | Adjustment of display intensity | |
| CN103959199B (en) | Power saving method and apparatus for first-in-first-out (FIFO) memory | |
| JP5792337B2 (en) | Reducing power consumption while rendering graphics | |
| CN104380258A (en) | Performing scheduling operations for graphics hardware | |
| WO2015035870A1 (en) | Multiple cpu scheduling method and device | |
| CN108206018B (en) | Adaptive frame refresh rate adjustment method and device | |
| CN105474126A (en) | Improved power control techniques for integrated PCIE controllers | |
| CN107710757A (en) | Adaptive batch for slow sport video record encodes | |
| US8780120B2 (en) | GPU self throttling | |
| KR101722413B1 (en) | Graphics voltage reduction for load line optimization | |
| CN104937551A (en) | Context aware power management for graphics devices | |
| TWI628592B (en) | A method for adjusting processing capabilities of an electronic apparatus and the electronic apparatus | |
| KR102249910B1 (en) | Electronic apparatus and ouput characteristic controlling method thereof | |
| CN110351505A (en) | Apparatus and method for selective display frame retrieval | |
| CN114531544B (en) | Recording method, device, equipment and computer storage medium | |
| TWI768478B (en) | Electronic device and method and for adaptively arranging external hardware resources | |
| CN117896652A (en) | Audio processing method, device, system, electronic device and readable storage medium |