Video processing method, electronic device, and computer-readable medium
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorHai Yang
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to the technical field of video processing, and disclosed therein are a video processing method, electronic device, and computer-readable medium. The method includes acquiring a video type of a video file scheduled for playing; determining whether the video type is a specified type; and if the video type is a specified type, controlling a graphics processor to process the video file scheduled for playing and then display same on a screen.
Claims18
A video processing method, for an electronic device, the electronic device comprising a central processing unit, a screen and a graphics processing unit, and the method executed by the central processing unit comprising:
- acquiring a video type of a video file scheduled for playing;
- determining whether the video type is consistent with a specified type;
- in response to the video type consistent with the specified type, controlling the graphics processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen;
- and
- in response to the video type not consistent with the specified type, controlling the central processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen, comprising:
- acquiring a utilization rate of the central processing unit in response to the video type not consistent with the specified type;
- determining whether the utilization rate of the central processing unit is less than a utilization-rate threshold;
- in response to the utilization rate of the central processing unit less than a utilization-rate threshold, controlling the central processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen;
- and
- in response to the utilization rate of the central processing unit greater than or equal to the utilization-rate threshold, controlling the graphics processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen.
An electronic device, comprising:
- a central processing unit and a graphics processing unit;
- a memory;
- a screen;
- and
- one or more applications stored in the memory and configured to be executed by the central processing unit, wherein the one or more applications are configured to execute a method comprising:
- acquiring a video type of a video file scheduled for playing;
- determining whether the video type is consistent with a specified type;
- in response to the video type consistent with the specified type, controlling the graphics processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen;
- and
- in response to the video type not consistent with the specified type, controlling the central processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen, comprising:
- acquiring a utilization rate of the central processing unit in response to the video type not consistent with the specified type;
- in response to the utilization rate of the central processing unit less than a utilization-rate threshold, controlling the central processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen;
- and
- in response to the utilization rate of the central processing unit greater than or equal to the utilization-rate threshold, controlling the graphics processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen.
A non-transitory computer-readable storage medium with program codes stored thereon, wherein the program codes can be called by a processor to execute a method comprising:
- acquiring a video type of a video file scheduled for playing;
- determining whether the video type is consistent with a specified type;
- in response to the video type consistent with the specified type, controlling a graphics processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on a screen;
- and
- in response to the video type not consistent with the specified type, controlling the central processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen, comprising:
- acquiring a utilization rate of the central processing unit in response to the video type not consistent with the specified type;
- in response to the utilization rate of the central processing unit less than a utilization-rate threshold, controlling the central processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen;
- and
- in response to the utilization rate of the central processing unit greater than or equal to the utilization-rate threshold, controlling the graphics processing unit to process the video file scheduled for playing and to display the video file scheduled for playing on the screen.
Dependencies are inferred from the claim text.