CN109712100B - Video enhancement control method and device and electronic equipment - Google Patents

Video enhancement control method and device and electronic equipment Download PDF

Info

Publication number
CN109712100B
CN109712100B CN201811428058.0A CN201811428058A CN109712100B CN 109712100 B CN109712100 B CN 109712100B CN 201811428058 A CN201811428058 A CN 201811428058A CN 109712100 B CN109712100 B CN 109712100B
Authority
CN
China
Prior art keywords
video
application programs
enhancement
application
video playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811428058.0A
Other languages
Chinese (zh)
Other versions
CN109712100A (en
Inventor
彭德良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811428058.0A priority Critical patent/CN109712100B/en
Publication of CN109712100A publication Critical patent/CN109712100A/en
Application granted granted Critical
Publication of CN109712100B publication Critical patent/CN109712100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the application discloses a video enhancement control method and device and electronic equipment. The method comprises the following steps: when detecting that a plurality of application programs run in a split screen mode, acquiring the application program in a video playing state from the plurality of application programs; judging whether a plurality of application programs in the video playing state exist or not; if the number of the application programs in the video playing state is determined to be multiple, configuring a part of the application programs in the video playing state to start video enhancement, wherein the video enhancement is used for enhancing the image of the played video. According to the method, under the condition that the plurality of application programs are in the split-screen display mode and the plurality of application programs have the video playing function, video enhancement is only performed on the video played by part of the application programs, so that the power consumption of the electronic equipment is reduced, the electronic equipment is prevented from being jammed, and the user experience is improved.

Description

Video enhancement control method and device and electronic equipment
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a video enhancement control method and apparatus, and an electronic device.
Background
With the development of society, the application range of electronic devices with screens is continuously expanded. For example, images such as pictures and videos are displayed on the screen. The display quality of most electronic devices is severely affected by the variation of ambient light sources or the quality of the video being played.
Disclosure of Invention
In view of the foregoing problems, the present application provides a video enhancement control method, apparatus and electronic device to improve the foregoing problems.
In a first aspect, the present application provides a video enhancement control method applied to an electronic device, where the method includes: when detecting that a plurality of application programs run in a split screen mode, acquiring the application program in a video playing state from the plurality of application programs; judging whether a plurality of application programs in the video playing state exist or not; if the number of the application programs in the video playing state is determined to be multiple, configuring a part of the application programs in the video playing state to start video enhancement, wherein the video enhancement is used for enhancing the image of the played video.
In a second aspect, the present application provides a video enhancement control apparatus, operable on an electronic device, the apparatus comprising: the device comprises an application program detection unit, a video playing unit and a video playing unit, wherein the application program detection unit is used for acquiring an application program in a video playing state in a plurality of application programs after detecting that the application programs run in a split screen mode; the judging unit is used for judging whether a plurality of application programs in the video playing state exist; and the video enhancement control unit is used for configuring part of the application programs in the video playing state to start video enhancement if the application programs in the video playing state are judged to be multiple, and the video enhancement is used for enhancing the image of the played video.
In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, the present application provides a computer-readable storage medium having program code stored therein, wherein the method described above is performed when the program code is executed.
According to the video enhancement control method and device and the electronic equipment, after a plurality of application programs are detected to run in a split screen mode, the application programs which support video playing and are in a video playing state are obtained, whether the number of the application programs in the video playing state is multiple or not is further judged, and if the number of the application programs in the video playing state is multiple, part of the application programs in the plurality of application programs in the video playing state are configured to start video enhancement. Therefore, by the method, under the condition that the plurality of application programs are in the split-screen display mode and the plurality of application programs have the video playing function, video enhancement is only performed on the video played by part of the application programs, so that the power consumption of the electronic equipment is reduced, the electronic equipment is prevented from being jammed, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flow chart of video decoding proposed by an embodiment of the present application;
fig. 2 is a flowchart illustrating a video enhancement control method according to an embodiment of the present application;
fig. 3 is a schematic interface diagram in a video enhancement control method according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a video playing interface in a video enhancement control method according to an embodiment of the present application;
fig. 5 is a flow chart illustrating a video enhancement control method according to another embodiment of the present application;
fig. 6 is a flow chart illustrating a video enhancement control method according to still another embodiment of the present application;
fig. 7 is a schematic diagram illustrating a split screen mode in a video enhancement control method according to still another embodiment of the present application;
fig. 8 is a schematic interface diagram illustrating an application program determining to start video enhancement in a video enhancement control method according to still another embodiment of the present application;
fig. 9 is a schematic interface diagram of another application program for determining to start video enhancement in a video enhancement control method according to yet another embodiment of the present application;
fig. 10 is a schematic diagram illustrating a transparent state in a video enhancement control method according to still another embodiment of the present application;
fig. 11 is a block diagram illustrating a structure of a video enhancement control apparatus proposed in the present application;
fig. 12 is a block diagram showing the structure of another video enhancement control apparatus proposed in the present application;
fig. 13 is a block diagram illustrating a structure of still another video enhancement control apparatus proposed in the present application;
fig. 14 is a block diagram illustrating an electronic device for executing a video enhancement control method according to an embodiment of the present application;
fig. 15 is a storage unit for storing or carrying program codes for implementing an image processing method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the improvement of the hardware performance of the electronic device, more electronic devices can support video playing. For example, the electronic device may run a video playing client and then play a video requested from the network through the video playing client, or may run a web browser and then play the video through the web browser, or the electronic device may play a locally stored video file through video playing software.
When the video is generated, the generated video is compressed in order to reduce the occupation of storage space and facilitate transmission on the network, regardless of whether the video is played or stored locally. Accordingly, when the electronic device acquires the video, the video acquired first will also be the video after compression encoding, and in this case, the electronic device will perform video decoding on the video which has been compression encoded first.
Generally, as shown in fig. 1, an electronic device can perform video decoding by both hard decoding and soft decoding. The hard decoding refers to decoding using a non-CPU, such as a gpu (graphics Processing unit), a dedicated DSP, an FPGA, an ASIC chip, and the like. And soft decoding refers to decoding using a CPU.
Specifically, as shown in fig. 1, a Media frame (multimedia frame) acquires a Video file to be played through an API interface with a client or a web browser, and delivers the Video file to a Video decoder, where the Media frame is a multimedia frame in an operating system.
Whether hard decoding or soft decoding is performed, after the video data is decoded, the decoded video data is transmitted to a surface flunger (layer delivery module), and the decoded video data is rendered and synthesized by the surface flunger and then displayed on a screen. The Surface flunger is an independent Service, receives all the surfaces as input, calculates the position of each Surface in the final composite image according to parameters such as ZOrder, transparency, size and position, and then sends the position to HWcomposer or OpenGL to generate a final display Buffer, and then displays the final display Buffer on a specific display device.
The inventor finds that the visual enhancement process can be added in the hard decoding process or the soft decoding process, so that the video played subsequently has higher visual effect. For example, video may be edge-dried, exposure-adjusted, or sharpness-enhanced based on hqv (hollywood quality video) technology, and so on. In addition, the visual experience of the played video can be improved in other ways, for example, the color flamboyance degree is improved.
However, the inventors further found that the control of whether to visually enhance the played video still remains to be improved. For example, when the electronic device runs a plurality of applications in a split-screen manner, the running interfaces of the plurality of applications are usually displayed on the screen of the electronic device, and it can be understood that displaying data on the screen usually requires performing a rendering operation of screen data, and the rendering operation is usually performed by the CPU, so that in a process that screens of the plurality of applications need to be simultaneously rendered, the CPU occupancy rate of the electronic device is increased, and furthermore, if the plurality of running applications all perform video playing and the electronic device performs video enhancement on videos played by the plurality of applications, resources of the CPU are inevitably consumed, and the CPU occupancy rate is further increased, which may cause the electronic device to be stuck. Therefore, the video enhancement control method and device and the electronic equipment provided by the application can improve the control convenience and the intellectualization.
The present disclosure will now be described with reference to specific embodiments.
Referring to fig. 2, a video enhancement control method provided by the present application is applied to an electronic device, and the method includes:
step S110: when the fact that the plurality of application programs run in the split screen mode is detected, the application programs in the video playing state in the plurality of application programs are obtained.
In this application, the electronic device may identify whether the application program is in the video playing state in various ways.
By way of one approach, the step of detecting whether the application program is in a video playing state includes: detecting whether an application program running in the electronic equipment is in an application program in a set list or not; and if the running application program is detected to belong to the application programs in the set list, judging that the running application program is in the video playing state. In this case, the electronic device may pre-establish a list of video playback applications so as to record the video playback applications in the list. The list may be freely configured by a user of the electronic device, or may be determined according to a usage situation of a certain video playing application program.
For example, as shown in fig. 3, a plurality of applications and a corresponding state for each application are displayed in the interface shown in fig. 3. It is to be understood that if the status corresponding to the application is "off" as illustrated, it indicates that the application is removed or not added to the list, and if the status corresponding to the application is "on" as illustrated, it indicates that the application is added to the list. For example, for an application named "TX video", the corresponding status is "on", i.e. it means that "TX video" is present in the aforementioned list. For the application named "AQY video", the corresponding status is "off", which means that the application "AQY video" does not exist in the aforementioned list.
Furthermore, the electronic device may detect the usage frequency of each video playing application program, and if it is detected that the usage frequency of a certain video playing application program exceeds a set frequency, the video playing application program may be added to the aforementioned list, and the state corresponding to the name of the video playing application program in fig. 3 is configured to be "on".
In this case, the electronic device may first detect which application currently running in the foreground is, and then further detect whether the application currently running in the foreground is in the list, and if so, determine that the electronic device is currently in the video playing state. As one mode, if the electronic device is an Android operating system, the name of the application program currently running in the foreground may be obtained by executing a getreporting tasks method of the ActivityManager. In addition, the electronic device may further acquire a list of programs used by the user through the usagetstatsmanager, and identify a most recently used application program recorded in the list as a current foreground application. Moreover, the Android can monitor the change of the focus of the window through the barrier-free function of the Android, and the package name corresponding to the focus window is taken as the application program which runs in the foreground at the present time.
Alternatively, the electronic device may determine whether a video is being played by detecting a return value of the AudioManager class. In this case, the electronic device may first detect a return value of the AudioManager class to determine whether there is an audio output, and if so, further determine whether the electronic device is in a video playing state according to whether there is a video playing application running.
Furthermore, as another mode, the electronic device may further detect whether the electronic device is in the video playing state by detecting a touch state of the video playing key. For example, as shown in fig. 4, a play key 98 is displayed in the video play interface 99 shown in fig. 4, and the interface shown in fig. 4 is in a state where video play is paused. In this case, when it is detected that the play key 98 is touched, it can be determined that the application program displaying the play interface 99 is currently in the video play state.
Step S120: and judging whether a plurality of application programs in the video playing state exist.
Step S130: and if the number of the application programs in the video playing state is not multiple, configuring the application programs in the video playing state to start video enhancement.
Step S131: if the number of the application programs in the video playing state is determined to be multiple, configuring a part of the application programs in the video playing state to start video enhancement, wherein the video enhancement is used for enhancing the image of the played video.
It can be understood that if a plurality of applications in the video playing state all start video enhancement, the CPU occupancy rate is inevitably increased. The occupancy rate of the CPU represents the current use state of the CPU, and the higher the occupancy rate of the CPU is, the more tasks which need to be processed by the CPU are. If the occupancy rate of the CPU is higher than the set occupancy rate threshold, the electronic device may be stuck, and the user experience may be reduced. Then in this case the risk of causing the device to jam is higher if the CPU is kept at a higher occupancy level at all times (which may not exceed the previously set occupancy threshold).
For example, if the electronic device is evaluated according to the history record that the occupancy rate of the CPU exceeds 90%, the electronic device will be stuck. If the electronic device always keeps 80% of the CPU occupancy rate operation, the electronic device is more prone to jamming than the electronic device always keeps 70% of the CPU occupancy rate operation. It can be understood that there may be some timed events in the application program in the electronic device, and these timed events will still consume CPU resources, thereby increasing the CPU occupancy rate. In this case, if a certain sudden timing event needs 15% of the CPU occupancy rate to process the task to be executed by the event, the electronic device will be stuck because the CPU occupancy rate is increased to 95% for the electronic device that is always operated at 80% of the CPU occupancy rate, and the CPU occupancy rate is increased to 85% for the electronic device that is always operated at 70% of the CPU occupancy rate. Therefore, the higher the risk of causing a device to jam, the higher the CPU will remain at a higher occupancy level (which may not exceed the set occupancy threshold as described above).
As one way, the event may be video enhancement of the played video. Wherein the video enhancement is used for enhancing the image of the played video. The image enhancement comprises the step of adjusting image parameters of the image so as to achieve the effect of enhancing the image. Wherein the image parameters include at least one of a sharpness adjustment parameter, a lens stretch control parameter, a color adjustment parameter, a sharpness adjustment parameter, a brightness adjustment parameter, a contrast adjustment parameter, a color gamut control parameter, a purity control parameter, a noise reduction control parameter, and a saturation adjustment parameter. It will be appreciated that different types of video may be adjusted by selecting different parameters from the image parameters described above. For example, the image parameters may all be adjusted for the videos played by the application configured to start video enhancement, and only some of the image parameters may be adjusted.
Specifically, the video content displayed by the electronic device is decoded image content, and since the decoded image content is data in an RGBA format, in order to optimize the image content, the data in the RGBA format needs to be converted into an HSV format, specifically, a histogram of the image content is obtained, a parameter for converting the data in the RGBA format into the HSV format is obtained by performing statistics on the histogram, and the data in the RGBA format is converted into the HSV format according to the parameter.
In order to enhance the brightness of an image by enhancing the exposure, the luminance value of an area where the luminance values intersect may be increased by a histogram of the image, or the luminance of the image may be increased by nonlinear superposition, specifically, if I denotes a dark image to be processed and T denotes a comparatively bright image after the processing, the exposure may be enhanced by T (x) I (x) (1-I (x)). Wherein, T and I are both [0,1] valued images. The algorithm can iterate multiple times if one is not effective.
The image content is denoised to remove noise of the image, and particularly, the image is degraded due to interference and influence of various noises in the generation and transmission processes, which adversely affects the processing of subsequent images and the image visual effect. The noise may be of various types, such as electrical noise, mechanical noise, channel noise, and other noise. Therefore, in order to suppress noise, improve image quality, and facilitate higher-level processing, it is necessary to perform denoising preprocessing on an image. From the probability distribution of noise, there are gaussian noise, rayleigh noise, gamma noise, exponential noise and uniform noise.
Specifically, the image can be denoised by a gaussian filter, wherein the gaussian filter is a linear filter, and can effectively suppress noise and smooth the image. The principle of action is similar to that of an averaging filter, and the average value of pixels in a filter window is taken as output. The coefficients of the window template are different from those of the average filter, and the template coefficients of the average filter are all the same and are 1; while the coefficients of the template of the gaussian filter decrease with increasing distance from the center of the template. Therefore, the gaussian filter blurs the image to a lesser extent than the mean filter.
For example, a 5 × 5 gaussian filter window is generated, and sampling is performed with the center position of the template as the origin of coordinates. And substituting the coordinates of each position of the template into a Gaussian function, wherein the obtained value is the coefficient of the template. And then the Gaussian filter window is convolved with the image to denoise the image.
Wherein edge sharpening is used to sharpen the blurred image. There are generally two methods for image sharpening: one is a differential method, and the other is a high-pass filtering method.
In particular, contrast stretching is a method for enhancing an image, and also belongs to a gray scale transformation operation. By stretching the grey value through the grey scale transformation to the whole interval 0-255, the contrast is clearly greatly enhanced. The following formula can be used to map the gray value of a certain pixel to a larger gray space:
I(x,y)=[(I(x,y)-Imin)/(Imax-Imin)](MAX-MIN)+MIN;
where Imin, Imax are the minimum and maximum grayscale values of the original image, and MIN and MAX are the minimum and maximum grayscale values of the grayscale space to be stretched.
In this case, if it is determined that there are multiple applications in the video playing state, in order to reduce the probability of the electronic device jamming, only a part of the multiple applications in the video playing state may be configured to start video enhancement. Optionally, even if each application program performing video playing is configured to start video enhancement, the electronic device still starts video enhancement on only part of the application programs.
For example, if the application currently running in the split-screen mode includes application a, application B, and application C, and the application a, the application B, and the application C are all playing videos, and the application a, the application B, and the application C are all configured to start video enhancement. In this case, the electronic device still configures only application a, application B, and some of application C to start video enhancement, for example, configures only application a and application B to start video enhancement.
As one implementation, the electronic device may identify the content of each application program that invokes a task performed by the CPU. For example, it may be identified whether the calling CPU is to process data for image rendering, or whether the calling CPU is to perform data operations. In this case, the electronic device may identify whether the task of each application is to call the CPU to process the image parameter, and if so, further identify whether the application calling the CPU to process the image parameter is an application configured to start video enhancement, if so, allow the CPU to process the image parameter, and if not, refuse to call the CPU to process the image parameter.
For example, if the application currently running in the split-screen mode includes application a, application B, and application C, and the application a, the application B, and the application C are all playing videos, and the application a, the application B, and the application C are all configured to start video enhancement. And the electronic device only configures application a to start video enhancement. In this case, when the electronic device detects that the CPU is called to process the image parameters, it further identifies which application program is the application program a, if the application program is the application program B, the electronic device allows the CPU to be called to process the image parameters, and if the application program is the application program C, the electronic device refuses to call the CPU to process the image parameters.
As a way, the electronic device may determine whether to start the aforementioned part of the applications configuring the plurality of applications in the video playing state to start video enhancement according to the current occupancy rate of the CPU. Optionally, if the electronic device detects that the current CPU occupancy rate is low, for example, lower than a set threshold, the electronic device may allow all of the plurality of applications in the video playing state to start video enhancement, and if the electronic device detects that the current CPU occupancy rate is high, for example, higher than a set threshold, the electronic device performs configuration of a part of the plurality of applications in the video playing state to start video enhancement.
Furthermore, in the manner that the video enhancement is activated for a part of the applications configured in the plurality of applications in the video playing state, the electronic device may determine which application or applications are specifically allowed to activate the video enhancement in a plurality of manners. As a mode, the electronic device may configure a play level for each application program supporting video playing, and then, when detecting that there are multiple application programs in the video playing state, the electronic device may compare the play levels of the multiple application programs in the video playing state, configure one application program with the highest play level to start video enhancement, or configure two application programs with higher play levels to start video enhancement.
For example, if the electronic device detects that application a and application B are running in the split-screen mode. The application program A is an application program of a video playing class, the application program B is an application program of an instant messaging class, the playing level of the application program A is higher than that of the application program B in the aspect of the playing level configured by the electronic equipment, and the electronic equipment only configures the application program to start video enhancement under the condition that the electronic equipment only operates one application program to start video enhancement.
Furthermore, the playing level of each application program supporting video playing configured for the electronic device may also be adjusted by a user, or some electronic devices may adjust according to the running state of the application program. For example, the electronic device may set the play level of an application program that is used more frequently to be higher.
Furthermore, as a way, after detecting that an application program is closed in the part of application programs, configuring the application programs except the part of application programs in the video playing state to start video enhancement, so that the electronic device can dynamically control which application programs start video enhancement, and user experience is improved.
The application a, the application B, and the application C are still taken as examples. If the electronic device currently only configures the application B and the application opens the video enhancement, the application a may be reconfigured to open the video enhancement after detecting that the application B or the application C is closed.
As one way, the step of configuring a part of the plurality of applications in the video playing state to start video enhancement includes: acquiring respective enhancement levels of partial application programs in the video playing state, wherein the video enhancement effects corresponding to different enhancement levels are different; and configuring part of the application programs in the video playing state to start video enhancement based on the enhancement level.
It should be noted that the enhancement level here is a different concept from the aforementioned playback level. The aforementioned play level is used to compare which applications may be configured for video enhancement. And the level of enhancement here is used to illustrate to what extent enhancement is required.
Optionally, the step of configuring, based on the enhancement level, a part of the applications in the video playing state to start video enhancement includes: and determining an image parameter corresponding to the enhancement level according to the enhancement level, and adjusting the image of the video according to the image parameter.
Wherein, in a case where the image parameters include at least one of a sharpness adjustment parameter, a lens stretch control parameter, a color adjustment parameter, a sharpness adjustment parameter, a brightness adjustment parameter, a contrast adjustment parameter, a color gamut control parameter, a purity control parameter, a noise reduction control parameter, and a saturation adjustment parameter, the higher the enhancement level is, the more the image parameters can be adjusted. For example, when the application a, the application B, and the application C are displayed in a split screen manner, the electronic device is configured with the application a and the application B to start video enhancement. And the enhancement level obtained for application a is higher than the enhancement level for application B. The electronic device may adjust a sharpness adjustment parameter, a color adjustment parameter, a sharpness adjustment parameter, a brightness adjustment parameter, a contrast adjustment parameter, etc. of the video played by application a. And for application B, the electronic device may only be configured to adjust the sharpness adjustment parameter.
According to the video enhancement control method, after a plurality of application programs are detected to run in a split screen mode, the application programs which support video playing and are in a video playing state in the application programs are obtained, whether the number of the application programs in the video playing state is multiple is further judged, and if the number of the application programs in the video playing state is multiple, part of the application programs in the video playing state are configured to start video enhancement. Therefore, by the method, under the condition that the plurality of application programs are in the split-screen display mode and the plurality of application programs have the video playing function, video enhancement is only performed on the video played by part of the application programs, so that the power consumption of the electronic equipment is reduced, the electronic equipment is prevented from being jammed, and the user experience is improved.
Referring to fig. 5, a video enhancement control method provided by the present application is applied to an electronic device, and the method includes:
step S210: when the fact that the plurality of application programs run in the split screen mode is detected, the application programs in the video playing state in the plurality of application programs are obtained.
Step S220: and judging whether a plurality of application programs in the video playing state exist.
Step S230: and if the number of the application programs in the video playing state is not multiple, configuring the application programs in the video playing state to start video enhancement.
Step S231: and if the number of the application programs in the video playing state is judged to be multiple, acquiring the information of the video processing resources of the electronic equipment.
Step S240: determining a usage status of the video processing resource based on the information.
Step S250: and if the use state is judged not to meet the target condition, configuring part of the application programs in the video playing state to start video enhancement.
By one approach, the target conditions include: the occupancy rate of the CPU of the electronic equipment is lower than the occupancy rate threshold value.
Step S251: and if the use state meets the target condition, configuring a plurality of application programs in the video playing state to start video enhancement.
According to the video enhancement control method, after a plurality of application programs are detected to run in a split screen mode, the application programs which support video playing and are in a video playing state are obtained, whether the application programs in the video playing state are multiple or not is judged, if the application programs in the video playing state are judged to be multiple, the using state of video processing resources is judged, and if the using state is judged not to meet the target condition, part of the application programs in the video playing state are configured to start video enhancement. Therefore, by the method, under the condition that the plurality of application programs are in the split-screen display mode and the plurality of application programs have the video playing function, video enhancement is only performed on the video played by part of the application programs, so that the power consumption of the electronic equipment is reduced, the electronic equipment is prevented from being jammed, and the user experience is improved.
Referring to fig. 6, a video enhancement control method provided by the present application is applied to an electronic device, and the method includes:
step S310: when the fact that the plurality of application programs run in the split screen mode is detected, the application programs in the video playing state in the plurality of application programs are obtained.
Step S320: and judging whether a plurality of application programs in the video playing state exist.
Step S330: and if the number of the application programs in the video playing state is not multiple, configuring the application programs in the video playing state to start video enhancement.
Step S331: and if the number of the application programs in the video playing state is judged to be multiple, displaying prompt information for prompting to determine part of the application programs from the multiple application programs in the video playing state.
As one way, the electronic device may display a pop-up box to display prompt information for displaying an operation to be performed by the user and a selection control for the user to select according to the prompt information. As shown in fig. 7, if the video playing application a and the instant messaging application B in fig. 7 operate in a split-screen mode, the electronic device simultaneously displays an interface 97 of the application a and an interface 96 of the application B. In this case, as shown in FIG. 8, the electronic device may display a pop-up box 95 with a prompt message "please select the program to turn on video enhancement" displayed in the pop-up box 95, and the user may select an application to turn on video enhancement through the selection control 94.
As another mode, the electronic device may display a selection interface on the split-screen display interface in a stacked manner, where a control corresponding to each display position of the program interfaces of the multiple applications in the video playing state is displayed in the selection interface, and when a touch operation performed on the control is detected, an attribute value of the control is switched, where the attribute value indicates whether the corresponding application starts video enhancement; and representing the application program for starting video enhancement by using the attribute values of the corresponding controls in the application programs in the video playing state as the determined application program.
For example, as shown in fig. 9, in the upper diagram shown in fig. 9, a selection interface 93 is displayed, a control 92 and a control 91 are displayed in the selection interface, where the position of the control 92 corresponds to the position of the application a corresponding to the control 92 in an overlapping manner, and the position of the control 91 corresponds to the position of the application B corresponding to the control 91 in an overlapping manner, so that a user can perceive which application is controlled specifically on the selection interface. And the names of the application programs corresponding to the controls 91 and 92 are displayed, in this case, if the user touches the control 92, the interface of the control 92 may be changed to the state shown in the next diagram in fig. 9, that is, switched to the state in which the attribute value representation starts video enhancement.
As a mode, the control switched to the state where the attribute value characteristic starts the video enhancement may be switched to a completely transparent state, so that the user may directly view the state after the application corresponding to the control starts the video enhancement. For example, as shown in fig. 10, after the control 92 corresponding to the application a is touched and then switched to the state representing the video enhancement started, the control 92 may be hidden, and the original position (the position indicated by the dashed box in fig. 10) of the control 92 is switched to be transparent, so that the user may directly see the interface 97 of the application a through the selection interface 92, and further the user may preview the effect of starting the video enhancement at first.
Step S340: and acquiring the determined part of the application program.
As one way, no matter the way for the user to select to open the video enhancement application, a determination control may be configured, and after the electronic device detects that the determination control is touched, the application that is finally determined to be open the video enhancement application is obtained.
Step S350: and configuring the determined part of the application program to start video enhancement.
According to the video enhancement control method, after a plurality of application programs are detected to run in a split screen mode, the application programs which support video playing and are in a video playing state in the application programs are obtained, whether the application programs in the video playing state are multiple or not is judged, if the application programs in the video playing state are multiple, a user is prompted to select partial application programs from the application programs to start video enhancement, and partial application programs in the video playing state are configured to start video enhancement.
Therefore, by the method, under the condition that the plurality of application programs are in the split-screen display mode and the plurality of application programs have the video playing function, video enhancement is only performed on the video played by part of the application programs, so that the power consumption of the electronic equipment is reduced, the electronic equipment is prevented from being jammed, and the user experience is improved. Moreover, under the condition that a plurality of application programs are all in a video playing state, a user can select to start the video enhanced application program, and therefore user experience is improved.
Referring to fig. 11, a video enhancement control apparatus 400 provided by the present application is operated in an electronic device, where the apparatus 400 includes: an application detection unit 410, a judgment unit 420 and a video enhancement control unit 430.
The application detection unit 410 is configured to, when it is detected that the multiple applications run in the split-screen mode, acquire an application in a video playing state from among the multiple applications.
The determining unit 420 is configured to determine whether there are multiple application programs in the video playing state.
A video enhancement control unit 430, configured to configure a part of the plurality of applications in the video playing state to start video enhancement if it is determined that there are a plurality of applications in the video playing state, where the video enhancement is used to enhance an image of a played video.
As a mode, the video enhancement control unit 430 is further configured to configure, after detecting that an application program in the part of application programs is closed, an application program other than the part of application programs in the video playing state to start video enhancement.
Optionally, the video enhancement control unit 430 is specifically configured to obtain respective enhancement levels of some of the multiple application programs in the video playing state, where video enhancement effects corresponding to different enhancement levels are different; and configuring part of the application programs in the video playing state to start video enhancement based on the enhancement level.
Optionally, the video enhancement control unit 430 is specifically configured to determine an image parameter corresponding to the enhancement level according to the enhancement level, and adjust the image of the video according to the image parameter.
Referring to fig. 12, a video enhancement control apparatus 500 provided by the present application is operated in an electronic device, where the apparatus 500 includes: an application detection unit 510, a determination unit 520, a video enhancement control unit 530, a processing resource acquisition unit 540, and a status determination unit 550.
The application detection unit 510 is configured to, when it is detected that the multiple applications run in the split-screen mode, acquire an application in a video playing state from among the multiple applications.
The determining unit 520 is configured to determine whether there are multiple application programs in the video playing state.
A video enhancement control unit 530, configured to configure the application program in the video playing state to start video enhancement if it is determined that there are not a plurality of application programs in the video playing state.
A processing resource obtaining unit 540, configured to obtain information of the video processing resource of the electronic device if it is determined that there are multiple applications in the video playing state.
A state determination unit 550 configured to determine a usage state of the video processing resource based on the information.
The video enhancement control unit 530 is further configured to configure a part of the applications in the video playing state to start video enhancement if it is determined that the usage state does not satisfy the target condition.
By one approach, the target conditions include: the occupancy rate of the CPU of the electronic equipment is lower than the occupancy rate threshold value.
The video enhancement control unit 530 is further configured to configure a plurality of application programs in the video playing state to start video enhancement if it is determined that the usage state meets the target condition.
Referring to fig. 13, a video enhancement control apparatus 600 provided by the present application is operated in an electronic device, where the apparatus 600 includes:
the application detection unit 610 is configured to, when it is detected that the multiple applications run in the split-screen mode, acquire an application in a video playing state from among the multiple applications.
The determining unit 620 is configured to determine whether there are multiple application programs in the video playing state.
A prompting unit 630, configured to display prompting information prompting to determine a part of the application programs from the multiple application programs in the video playing state if it is determined that there are multiple application programs in the video playing state.
As a manner, the prompting unit 630 is specifically configured to display a selection interface in a stacked manner on the split-screen display interface, where a control corresponding to each display position of the program interfaces of the multiple applications in the video playing state is displayed in the selection interface, where an attribute value of the control is switched after a touch operation acting on the control is detected, and the attribute value indicates whether the corresponding application starts video enhancement; and representing the application program for starting video enhancement by using the attribute values of the corresponding controls in the application programs in the video playing state as the determined application program.
An application determining unit 640, configured to obtain the determined part of the application.
And a video enhancement control unit 650 for configuring the determined part of the application program to start video enhancement.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In several embodiments provided herein, the coupling of modules to each other may be electrical. In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
It should be noted that, in the present application, it is a prior art that can be specifically applied to how to encode audio data according to the audio encoding type, and the present application will not be described in detail.
In summary, according to the video enhancement control method and device and the electronic device provided by the application, whether the electronic device is in the video playing state or not is detected, if the electronic device is detected to be in the video playing state, the state of the control is detected, the control is used for responding to the touch operation control to open or close the visual enhancement, and if the state representation of the control is detected to open the video enhancement, the visual enhancement is performed on the played video. Therefore, in the video playing process, a user can start or close the visual enhancement of the played video by performing touch operation on the control, convenience is provided for the user to control whether the visual enhancement is performed, and the user experience is improved.
An electronic device provided by the present application will be described below with reference to fig. 14.
Referring to fig. 14, based on the video enhancement control method and apparatus, another electronic device 100 capable of executing the video enhancement control method is further provided in the embodiment of the present application. The electronic device 100 includes one or more processors 102 (only one shown), a memory 104, a network module 106, a video codec 108, and a screen 112 coupled to each other. The memory 104 stores programs that can execute the content of the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104.
Processor 102 may include one or more processing cores, among other things. The processor 102 interfaces with various components throughout the electronic device 100 using various interfaces and circuitry to perform various functions of the electronic device 100 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 104 and invoking data stored in the memory 104. Alternatively, the processor 102 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 102 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 102, but may be implemented by a communication chip.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The network module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as a wireless access point. The network module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 106 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
The video codec 108 may be used to decode data requested by the network module 106 from the network for transmission to the screen 112 for display. Specifically, the video codec 108 may be a GPU, a dedicated DSP, an FPGA, an ASIC chip, or the like.
Referring to fig. 15, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A video enhancement control method is applied to an electronic device, and comprises the following steps:
when detecting that a plurality of application programs run in a split screen mode, acquiring the application program in a video playing state from the plurality of application programs;
judging whether a plurality of application programs in the video playing state exist or not;
if the number of the application programs in the video playing state is judged to be multiple, a selection interface is displayed on a split screen display interface in a stacking mode, controls corresponding to the display positions of the program interfaces of the application programs in the video playing state are displayed in the selection interface, and when the touch operation acting on the controls is detected, the attribute values of the controls are switched, and the attribute values represent whether the corresponding application programs start video enhancement or not;
representing the application program for starting video enhancement by using the attribute values of the corresponding controls in the application programs in the video playing state as a determined part of application programs;
acquiring the determined part of the application program;
and configuring the determined part of the application program to start video enhancement, wherein the video enhancement is used for enhancing the image of the played video.
2. The method according to claim 1, wherein if it is determined that there are a plurality of applications in the video playing state, the step of configuring a part of the plurality of applications in the video playing state to start video enhancement further comprises:
after detecting that the application program is closed in the part of the application programs,
and configuring the application programs except the part of the application programs in the video playing state to start video enhancement.
3. The method according to any one of claims 1-2, wherein the step of configuring a portion of the plurality of applications in the video playing state to start video enhancement comprises:
acquiring respective enhancement levels of partial application programs in the video playing state, wherein the video enhancement effects corresponding to different enhancement levels are different;
and configuring part of the application programs in the video playing state to start video enhancement based on the enhancement level.
4. The method of claim 3, wherein the step of configuring a portion of the plurality of applications in the video playback state to initiate video enhancement based on the enhancement level comprises:
and determining an image parameter corresponding to the enhancement level according to the enhancement level, and adjusting the image of the video according to the image parameter.
5. The method of claim 4, wherein the image parameters comprise at least one of a sharpness adjustment parameter, a lens stretch control parameter, a color adjustment parameter, a sharpness adjustment parameter, a brightness adjustment parameter, a contrast adjustment parameter, a color gamut control parameter, a purity control parameter, a noise reduction control parameter, and a saturation adjustment parameter.
6. A video enhancement control apparatus, operable in an electronic device, the apparatus comprising:
the device comprises an application program detection unit, a video playing unit and a video playing unit, wherein the application program detection unit is used for acquiring an application program in a video playing state in a plurality of application programs after detecting that the application programs run in a split screen mode;
the judging unit is used for judging whether a plurality of application programs in the video playing state exist;
the prompting unit is used for stacking and displaying a selection interface on a split-screen display interface if a plurality of application programs in the video playing state are judged, wherein controls corresponding to the display positions of the program interfaces of the application programs in the video playing state are displayed in the selection interface, and the attribute values represent whether the corresponding application programs start video enhancement or not after touch operation acting on the controls is detected;
the video enhancement control unit is used for representing the application programs for starting video enhancement by using the attribute values of the corresponding controls in the application programs in the video playing state as a determined part of application programs; acquiring the determined part of the application program; and configuring the determined part of the application program to start video enhancement, wherein the video enhancement is used for enhancing the image of the played video.
7. An electronic device comprising one or more processors, a video codec, and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-5.
8. A computer-readable storage medium, having program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-5.
CN201811428058.0A 2018-11-27 2018-11-27 Video enhancement control method and device and electronic equipment Active CN109712100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811428058.0A CN109712100B (en) 2018-11-27 2018-11-27 Video enhancement control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811428058.0A CN109712100B (en) 2018-11-27 2018-11-27 Video enhancement control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109712100A CN109712100A (en) 2019-05-03
CN109712100B true CN109712100B (en) 2021-05-11

Family

ID=66255167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811428058.0A Active CN109712100B (en) 2018-11-27 2018-11-27 Video enhancement control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109712100B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869362A (en) * 2015-05-21 2015-08-26 中国科学院半导体研究所 Video monitoring and acquisition system with image enhancement functions
CN106791953A (en) * 2016-12-22 2017-05-31 北京奇艺世纪科技有限公司 Many player control methods, server and client
CN107888964A (en) * 2016-09-30 2018-04-06 杭州海康威视数字技术股份有限公司 The code stream type switching method and device of a kind of video playback

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707714B (en) * 2009-11-18 2011-08-10 华为终端有限公司 Image processing method and device of multi-picture video session
JP2011259332A (en) * 2010-06-11 2011-12-22 Sony Corp Image processing device and method
US9349160B1 (en) * 2013-12-20 2016-05-24 Google Inc. Method, apparatus and system for enhancing a display of video data
CN105828158A (en) * 2016-03-22 2016-08-03 乐视网信息技术(北京)股份有限公司 Multi-window video playing-based playing quality adjusting method and device
CN106550261A (en) * 2016-12-12 2017-03-29 暴风集团股份有限公司 Lift the exhibiting method and system of video image clarity

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869362A (en) * 2015-05-21 2015-08-26 中国科学院半导体研究所 Video monitoring and acquisition system with image enhancement functions
CN107888964A (en) * 2016-09-30 2018-04-06 杭州海康威视数字技术股份有限公司 The code stream type switching method and device of a kind of video playback
CN106791953A (en) * 2016-12-22 2017-05-31 北京奇艺世纪科技有限公司 Many player control methods, server and client

Also Published As

Publication number Publication date
CN109712100A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN109685726B (en) Game scene processing method and device, electronic equipment and storage medium
CN109640168B (en) Video processing method, video processing device, electronic equipment and computer readable medium
CN109218802B (en) Video processing method and device, electronic equipment and computer readable medium
CN109361949B (en) Video processing method, video processing device, electronic equipment and storage medium
CN109379627B (en) Video processing method, video processing device, electronic equipment and storage medium
CN109640169B (en) Video enhancement control method and device and electronic equipment
CN109168068B (en) Video processing method and device, electronic equipment and computer readable medium
WO2020107989A1 (en) Video processing method and apparatus, and electronic device and storage medium
CN109120988B (en) Decoding method, decoding device, electronic device and storage medium
CN109618228B (en) Video enhancement control method and device and electronic equipment
CN109729405B (en) Video processing method and device, electronic equipment and storage medium
CN109640179B (en) Video decoding control method and device and electronic equipment
CN109587558B (en) Video processing method, video processing device, electronic equipment and storage medium
CN109688465B (en) Video enhancement control method and device and electronic equipment
CN109587555B (en) Video processing method and device, electronic equipment and storage medium
CN109167946B (en) Video processing method, video processing device, electronic equipment and storage medium
CN109151574B (en) Video processing method, video processing device, electronic equipment and storage medium
CN109120979B (en) Video enhancement control method and device and electronic equipment
CN109712100B (en) Video enhancement control method and device and electronic equipment
CN109218803B (en) Video enhancement control method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant