WO2020038071A1 - Video enhancement control method, device, electronic apparatus, and storage medium - Google Patents

Video enhancement control method, device, electronic apparatus, and storage medium Download PDF

Info

Publication number
WO2020038071A1
WO2020038071A1 PCT/CN2019/090440 CN2019090440W WO2020038071A1 WO 2020038071 A1 WO2020038071 A1 WO 2020038071A1 CN 2019090440 W CN2019090440 W CN 2019090440W WO 2020038071 A1 WO2020038071 A1 WO 2020038071A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
control
electronic device
state
enhancement
Prior art date
Application number
PCT/CN2019/090440
Other languages
French (fr)
Chinese (zh)
Inventor
林进全
杨海
彭德良
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020038071A1 publication Critical patent/WO2020038071A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface

Definitions

  • the present application relates to the field of image processing technology, and more particularly, to a video enhanced control method, device, electronic device, and storage medium.
  • this application proposes a video enhancement control method, device, electronic device, and storage medium to improve the above problems.
  • the present application provides a video enhanced control method for an electronic device.
  • the method includes: detecting whether the electronic device is in a video playing state; and detecting and controlling if the electronic device is in the video playing state.
  • the state of the control which is used to control whether video enhancement is turned on or off; if the state of the control control is detected to indicate that video enhancement is turned on, video enhancement is performed on the played video.
  • the present application provides a video enhancement control device, which is applied to an electronic device, and the device includes a playback state detection unit for detecting whether the electronic device is in a video playback state;
  • a control state detection unit is configured to detect a state of a control control if it is detected that the electronic device is in the video playing state, the control control is used to control turning on or off video enhancement; a video enhancement unit is used to detect The state of the control is described to enable video enhancement, and perform video enhancement on the played video.
  • the present application provides an electronic device including 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 all The one or more processors execute, and the one or more programs are configured to perform the method described above.
  • the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores program code, and the method is executed when the program code is run.
  • FIG. 1 shows another flowchart of video decoding provided by the present application.
  • FIG. 2 shows a flowchart of a video enhancement control method proposed in the present application.
  • FIG. 3 is a schematic diagram of an interface in a video enhancement control method proposed in the present application.
  • FIG. 4 shows a schematic diagram of a playback interface in a video enhancement control method proposed in the present application.
  • FIG. 5 shows a flowchart of another video enhancement control method proposed in the present application.
  • FIG. 6 shows a schematic diagram of control controls in another video enhancement control method proposed in the present application.
  • FIG. 7 shows a schematic diagram of a control being hidden in another video enhancement control method proposed in the present application.
  • FIG. 8 is a schematic diagram of another control control being hidden in another video enhancement control method proposed in the present application.
  • FIG. 9 shows a schematic diagram of a definition switching control in another video enhancement control method proposed in the present application.
  • FIG. 10 shows a schematic diagram of a sharpness alternative control in another video enhancement control method proposed by the present application.
  • FIG. 11 shows a flowchart of another video enhancement control method proposed in the present application.
  • FIG. 12 shows a structural block diagram of a video enhancement control device proposed in the present application.
  • FIG. 13 shows a structural block diagram of another video enhancement control device proposed in the present application.
  • FIG. 14 shows a structural block diagram of still another video enhancement control device proposed by the present application.
  • FIG. 15 shows a structural block diagram of an electronic device for performing a video enhancement control method according to an embodiment of the present application.
  • FIG. 16 is a storage unit for saving or carrying a program code for implementing an image processing method according to an embodiment of the present application.
  • an electronic device can run a video playback client and then play the video requested from the network through the video playback client, or it can run a web browser and then play the video in a web browser, or electronically
  • the device can play video files stored locally through video playback software.
  • the generated video will be compressed in order to reduce the storage space occupation and facilitate the transmission on the network.
  • the electronic device obtains the video, it will also obtain the video after compression encoding. In this case, the electronic device first performs video decoding on the compression-encoded video.
  • the electronic device can perform video decoding by using two methods: hard decoding and soft decoding.
  • hard decoding refers to decoding using non-CPU, such as GPU (Graphics Processing Unit), dedicated DSP, FPGA, ASIC chip, etc.
  • Soft decoding refers to decoding using the CPU.
  • MediaFramework (multimedia framework) obtains a video file to be played through an API interface with a client or a web browser, and delivers the video file to VideoDecode.
  • MediaFramework (multimedia framework) ) Is a multimedia framework in the operating system.
  • the decoded video data will be sent to SurfaceFlinger (Layer Transfer Module), and the decoded video data will be rendered and synthesized by SurfaceFlinger and displayed on the screen.
  • SurfaceFlinger is an independent service that receives all Surfaces as input, calculates the position of each Surface in the final composite image according to ZOrder, transparency, size, position and other parameters, and then sends it to HWComposer or OpenGL to generate the final Display the buffer, and then display it to a specific display device.
  • the video enhancement process can be added to both the hard decoding and soft decoding processes, so that subsequent videos played have higher video effects.
  • HQV hollywood quality video
  • HQV hollywood quality video
  • a video enhanced control method provided in this application is applied to an electronic device, and the method includes:
  • Step S110 detecting whether the electronic device is in a video playing state.
  • the electronic device can identify whether it is currently in a video playing state in various ways.
  • the step of detecting whether the electronic device is in a video playing state includes:
  • the electronic device may establish a list of video playback applications in advance, so that the video playback applications are recorded in the list.
  • the list can be freely configured by the user of the electronic device, or can be determined according to the usage of a video playback application.
  • a plurality of applications are displayed in the interface shown in FIG. 3, and a status corresponding to each application is displayed.
  • the corresponding state of the application is "off” as shown in the figure, it means that the application is removed or not added to the above list, and if the corresponding state of the application is "on” as shown in the figure, it means The application is added to the above list.
  • the corresponding status is "On”, which means that the application "TX Video” will exist in the aforementioned list.
  • the corresponding status is “Off”, which means that the application "AQY Video” does not exist in the aforementioned list.
  • the electronic device can detect the frequency of use of each video playback application. If it detects that the frequency of use of a video playback program exceeds a set frequency, it can add the video playback application to the aforementioned list and correspondingly The state corresponding to the name of the video playback application in FIG. 3 is “ON”.
  • the electronic device can first detect which application is currently running in the foreground, and then further detect whether the application currently running in the foreground is on the list. If it is, then it is determined that the video is currently playing. .
  • the electronic device is an Android operating system
  • the name of the application currently running in the foreground can be obtained by executing the getRunningTasks method of the ActivityManager.
  • the electronic device can also obtain a list of programs used by the user through UsageStatsManager, and identify the most recently used application recorded in the list as the current foreground application.
  • the electronic device can also determine whether a video is playing by detecting the return value of the AudioManager class.
  • the electronic device may first detect the return value of the AudioManager class to determine whether there is audio output. If an audio output is detected, then further determine whether the electronic device is based on the foregoing detection of whether a video playback application is running. Whether the device is in video playback state.
  • the electronic device may also detect whether it is in a video playing state by detecting a touch state of a video playing button.
  • a playback button 98 is displayed in the video playback interface 99 shown in FIG. 4, and the interface shown in FIG. 4 is in a state in which video playback is paused.
  • the video enhanced control method provided in this application may be executed by the aforementioned video playback application program, or may be executed by an electronic device independently of a program other than the video playback application program.
  • the provided video enhancement control method can be executed by the aforementioned video playback application program
  • the execution of the video enhancement control method can be executed by the video playback application program corresponding to a child process included in the main process, in order to Avoid impacting other features of the video playback application during the video enhancement method.
  • the video enhanced control method is executed by a program other than the video playback application program in the electronic device, it may be executed by another application program independent of the video playback application program.
  • Step S120 if it is detected that the electronic device is in the video playing state, a state of a control control is detected, and the control control is used to control whether video enhancement is turned on or off.
  • the electronic device can establish a variable, and then use the value of the variable to identify the state of the control. For example, if the value of the variable is 0, it means that the control is in a state that indicates that video enhancement is turned off, and if the value of the variable is 1, it means that the control is in a state that indicates that video enhancement is turned on. Then in this case, after the electronic device detects that it is in a video playing state, it can detect the value of the variable to determine the state of the control.
  • the value of the variable can be stored in a pre-established data table.
  • the electronic device after detecting that the video device is in a video playing state, the electronic device can obtain the aforementioned variable value by looking up a table, and then judge the state of the control.
  • the storage location of its corresponding configuration file is relatively fixed.
  • the variable value can also be stored in the corresponding configuration file of the video playback application. in.
  • the electronic device may configure the video playback application in the configuration. Find any file in txt format in the folder, then add a variable to the found file in txt format, and then use the value of the variable as the aforementioned variable value.
  • variables can be added to the configuration file in a comment manner.
  • the characters beginning with "//" or "/ *" comment the content.
  • the variable configured by the electronic device is hqv
  • the electronic device detects that a video playback application named TX video is installed, it will further detect whether the TX video is configured as a set video playback application. If it is detected that the TX video is configured as a set video playback application, the electronic device further searches for a file in the txt format from the folder of the configuration file of the TX video.
  • the file may be stored in the electronic device in a data table manner for the electronic device to find.
  • variable values are all exemplary, and are not specifically limited in this application.
  • the electronic device can be set specifically according to the format file that can be found. For example, you can also use xml format files to store variable values.
  • step S120 may include detecting a state of a control control independent of the preset video playback application.
  • Step S130 if it is detected that the state of the control control indicates that video enhancement is enabled, perform video enhancement on the played video.
  • the electronic device may perform video enhancement on the played video based on a variety of ways.
  • the electronic device may perform video enhancement on the played video according to the attributes of the played video.
  • the attributes include sharpness and color information.
  • the electronic device can extract a frame of the target image from the played video as the basis for the attribute judgment. It can be understood that if an image is already blurred, then if it is blurred again, the high-frequency components in the image will not change much. However, if the image itself has a high definition, if it is blurred once, the high-frequency component will change very much. Then, as a method, the electronic device may obtain a degraded image of the target image by performing a blurring process (for example, Gaussian blurring process), and then compare the adjacent pixels of the image before the blurring process and the image after the blurring process. The change of the value determines the sharpness value according to the magnitude of the change. Then in this case, the larger the change, the higher the sharpness of the target image.
  • a blurring process for example, Gaussian blurring process
  • f (x, y) represents the gray value of the pixel point (x, y) corresponding to image f
  • D (f) is the result of calculating the image sharpness.
  • f (x, y) may select a high-frequency component region in the real-time preview image.
  • video enhancement in terms of sharpness may be performed on the played video.
  • the color information can be defined by the degree of color cast in this application.
  • the electronic device can determine the current degree of color cast by using the chromaticity distribution of the target image and the chromaticity average value.
  • the color shift value can be determined as the color information according to the pre-established correspondence between the chromaticity average value and the color shift.
  • the electronic device can also determine which aspects of video and video enhancement are performed according to the environment in which the electronic device is located. For example, it can determine whether to perform brightness video on the played video according to the intensity of the ambient light in which the electronic device is located. Enhanced.
  • the electronic device may select one of the played videos for video enhancement, or simultaneously display two applications for split screen display.
  • Each of the videos played is video enhanced.
  • the electronic device is provided with a camera on the same side of the screen, the current eyeball attention area of the user can be collected through the camera, so that when the electronic device displays the interface of the two applications on a separate screen, Video enhancement may be performed on a video displayed by an interface of an application program closer to the area of interest.
  • a video enhanced control method provided by the present application is to detect whether an electronic device is in a video playing state, and if the electronic device is detected to be in the video playing state, detect a state of a control that is used to respond to a touch.
  • the control operation controls video enhancement on or off. If the state of the control control is detected to indicate that video enhancement is on, video enhancement is performed on the played video. Therefore, during the video playing process, the user can perform touch operations on the control controls to turn on or off the video enhancement of the played video, thereby providing convenience for the user to control whether or not the video enhancement is performed, and improving the user experience.
  • a video enhanced control method provided in this application is applied to an electronic device, and the method includes:
  • Step S210 Detect whether the electronic device is in a video playing state.
  • Step S220 If it is detected that the electronic device is in the video playback state, the control controls are displayed on the video playback interface of the electronic device in a stacked manner, and the control controls are used to control whether video enhancement is turned on or off.
  • the control control 97 is suspended and displayed on the video playing interface 99 shown in the figure. Among them, by touching the control control 97, the user can cause the control control 97 to switch between the two states of whether video enhancement is on or off. As one way, after the electronic device displays the control control 97, the user can slide the control control to move the control control out of the video playback interface 99. For example, as shown in FIG. 7, if the control shown in FIG. 6 is slid upwards in FIG. 6, the control 97 is slid upwards, and it is converted into a logo 96 shown in FIG. 7 after the sliding ends. Then in this case, if the user slides the logo 96 toward the lower side shown in FIG. 7, the control control 97 may be triggered to be displayed again in the style shown in FIG. 6.
  • control 97 in addition to sliding the control 97 toward the upper direction shown in FIG. 6, the control 97 can also be slid toward other directions. For example, as shown in FIG. 8, if the control control 97 is swiped toward the left side shown in FIG. 6, the converted logo 96 will appear correspondingly on the left side of the video playback interface.
  • the electronic device may determine whether to display the control control according to the level of the logged-in user account. For example, the user account level can be pre-divided into first, second, and third levels from low to high, and video enhancement can only be performed by setting user accounts above the second level. Then the electronic device can further detect the level of the currently logged-in user account after detecting that it is in the video playback state. If it is detected that the level of the currently logged-in user account is level two or higher, then the electronic device can The control controls are displayed in a cascade on a video playback interface. If the electronic device detects that the level of the currently logged-in user account is lower than the second level, the electronic device may display a prompt message so as to prompt the user to upgrade the account and then perform video enhancement.
  • the user account level can be pre-divided into first, second, and third levels from low to high, and video enhancement can only be performed by setting user accounts above the second level.
  • the electronic device can further detect the level of the currently logged-in user
  • the aforementioned account may be an account for logging in to an operating system of the electronic device, or may be an account for a video playback application program that specifically performs video playback.
  • the electronic device detects a change frequency of consecutive multi-frame images included in the video played on the video playback interface; if the change frequency is greater than a set frequency, the video is displayed on the video playback interface of the electronic device in a stacked manner. Controls.
  • the played video includes multiple frames of images.
  • the content of the video that is played will have a different frequency of change.
  • the video being played is a TV series or a movie type video
  • the frequency of the picture change in the TV series or a movie type video is relatively high, in this case, the user is more expected to have a better video experience.
  • the video scenes for example, knowledge-based explanations or videos of a certain course type, because the pictures will remain in the same state for a long time, only the corresponding audio data will change differently.
  • the picture will freeze on a PPT page for a long time, and the audio corresponding to the presentation of the content of the PPT page will change continuously. Then in this case, users are more concerned about the content being explained, and the requirements for the video experience will not be too high.
  • the content characteristics of the image can be determined by obtaining the average gray value.
  • the electronic device may obtain respective grayscale average values of the continuous multi-frame images, and obtain respective content characteristics of the continuous multiframe images based on the grayscale average values.
  • the following describes the content characteristics of each of the consecutive multi-frame images obtained based on the gray average value.
  • the purpose of this step is to remove the differences in various picture sizes and picture proportions, and only retain basic information such as structure, light and shade.
  • the reduced picture is then converted into a 64-level grayscale picture. Calculate the average gray value of all pixels in the picture. Compare the gray level of each pixel with the average. If it is greater than or equal to the average, it is recorded as 1, and if it is less than the average, it is recorded as 0.
  • the comparison result of the previous step is combined to form a 64-bit binary integer. This is the fingerprint of this image. After getting the fingerprints of the images, you can compare the fingerprints of different images and calculate how many of the 64 bits are different.
  • the number of different data bits does not exceed 5, it means that the two images are very similar, and if it is greater than 10, it means that they are two different images. Then if after continuous detection and acquisition of n images, after detecting that the adjacent two images are not similar, the non-similarity is increased by 1, then the non-similarity obtained after the comparison of the n images is divided by the aforementioned n, so The value obtained is the frequency of change.
  • the change frequency is greater than the set frequency, that is, the video currently playing is a TV series or a movie video
  • the control controls are stacked and displayed on the video playback interface of the electronic device, so as to remind the user that the electronic device can further enhance the video, thereby improving the video experience of playing the video.
  • the electronic device can detect the resolution of the video played on the video playback interface; if the resolution of the video played on the video playback interface is a set resolution, the video playback on the electronic device is
  • the control controls are displayed in layers on the interface.
  • the set resolution is the highest resolution supported by the video played by the video playback interface.
  • the resolution of the played video will be affected by the resolution that the played video itself can support and the resolution supported by the electronic device itself. For example, if the resolution of the video itself is from low to high, there may be standard definition, high definition, and ultra clear, and the resolution supported by the electronic device from low to high is also standard definition, high definition, and ultra clear. If it is detected that the highest resolution supported by the electronic device is high-definition, even if the resolution of the played video supports ultra-clear resolution, the highest resolution supported by the played video is still high-definition.
  • the highest resolution supported by the video being played is lower than the resolution supported by the electronic device, in this case, even if the user uses the electronic device for video playback, the highest resolution of the video being played is still being played.
  • the highest resolution supported by the video in order to remind the user that the video experience of the played video can be further improved, it can be detected that the highest resolution supported by the played video is lower than the highest resolution supported by the electronic device.
  • the control controls are stacked and displayed on the video playback interface, so that it is convenient for the user to trigger the electronic device to perform video enhancement through the control controls, so that the played video can show a better playback effect than the highest resolution that it can support. Play effect.
  • a sharpness switching control 95 is shown.
  • a sharpness alternative control may be displayed.
  • a sharpness that can be selected is displayed.
  • the highest resolution supported by the played video is super clear, so in this case, If the highest resolution supported by the electronic device is ultra-clear or even a 4K model with a higher resolution than ultra-clear, the control controls 97 can be displayed on the interface.
  • the user can trigger the control to be in the state of enabling video enhancement, so that the electronic device can
  • the video is enhanced by video, so that the played video can show a better playback effect than the playback effect corresponding to the highest resolution it can support.
  • the video playing application may be a video playing online, and during the online video playing process, the data of the played video is obtained from the network in real time.
  • the size of the storage space occupied by videos of different resolutions will be different. For example, for the same video content, video content in SD mode may occupy 200MB of storage space, while video content in HD mode may occupy 700MB of storage space. The same is true during the transmission process. For higher-resolution video content, the larger the network bandwidth occupied by the transmission.
  • the electronic device may detect that if the resolution of the video played by the video playback interface is a set resolution, and detect that the network quality of the network connected to the electronic device is lower than the set After the conditions are met, the resolution of the played video is reduced; the control controls are displayed on the video playback interface of the electronic device in a layered manner.
  • the electronic device can detect the current network quality in various ways. For example, an electronic device can evaluate the quality of a network through its retransmission rate.
  • the electronic device uses a sliding window to manage the sending and receiving process of basic data, and at the same time ensures the effective and reliable transmission of the data stream, so that the sending rate is not significantly faster. At the receiving rate. Among them, if the electronic device does not receive the confirmation information before the timer expires, it is determined that a retransmission timeout occurs, and the electronic device automatically retransmits the data sent before the timeout.
  • the electronic device can also evaluate the quality of the network by detecting the number of stalls during the video playback during a preset period of time.
  • an electronic device plays a video in an ultra-clear mode
  • the electronic device detects that the network quality is lower than a set condition through the above method
  • the resolution of the played video will be reduced to high-definition Mode
  • the control controls may be displayed on the video playback interface of the electronic device, so that it is convenient for the user to trigger the video enhancement of the video played in the high-definition mode through the displayed control controls, and then Even though the electronic device plays video in high-definition mode, it can show better video effects than high-definition.
  • the computing resource consumption of the CPU or GPU will be increased. If the electronic device detects that the network quality is not lower than the set condition, it can prompt the user whether to switch to a higher Resolution, and prompt the user whether to turn off video enhancement, so as to reduce the consumption of computing resources of the CPU or GPU after the network state is restored.
  • Step S230 In response to a touch operation acting on the control, the control is switched to a state indicating that video enhancement is enabled.
  • Step S240 if it is detected that the electronic device is in the video playing state, detect a state of a control control.
  • Step S250 If it is detected that the state of the control control indicates that video enhancement is enabled, perform video enhancement on the played video.
  • a video enhanced control method by detecting whether an electronic device is in a video playing state, if it is detected that the electronic device is in the video playing state, it may be based on the resolution of the played video and the network of the electronic device. Status to determine whether to display control controls for turning video enhancement on or off in response to a touch operation control, and further detect the state of the control controls. If the state of the control controls is detected to indicate that video enhancement is on, Play the video for video enhancement. Therefore, during the video playing process, the user can perform touch operations on the control controls to turn on or off the video enhancement of the played video, thereby providing convenience for the user to control whether or not the video enhancement is performed, and improving the user experience.
  • a video enhanced control method provided by this application is applied to an electronic device, and the method includes:
  • Step S310 It is detected whether the electronic device is in a video playing state.
  • Step S320 if it is detected that the electronic device is in the video playing state, a state of a control control is detected, and the control control is used to control whether video enhancement is turned on or off.
  • Step S330 if it is detected that the state of the control control indicates that video enhancement is enabled, perform video enhancement on the played video.
  • Step S340 In response to a touch operation acting on the control, the control is switched to a state indicating that video enhancement is turned off.
  • Step S350 if it is detected that the state of the control control indicates that video enhancement is on or off, cancel video enhancement on the played video.
  • a video enhanced control method provided by the present application is to detect whether an electronic device is in a video playing state, and if the electronic device is detected to be in the video playing state, detect a state of a control control used to respond to a touch
  • the control operation controls video enhancement on or off. If the state of the control control is detected to indicate that video enhancement is on, video enhancement is performed on the played video. Therefore, during the video playing process, the user can perform touch operations on the control controls to turn on or off the video enhancement of the played video, thereby providing convenience for the user to control whether or not the video enhancement is performed, and improving the user experience.
  • a video enhancement control apparatus 400 provided in the present application is applied to an electronic device.
  • the apparatus 400 includes: a playback state detection unit 410, a control state detection unit 420, and a video enhancement unit 430.
  • the playback state detection unit 410 is configured to detect whether the electronic device is in a video playback state.
  • the playback state detection unit 410 is configured to detect whether a preset video playback application is running in the electronic device; if it is detected that a preset video playback application is running, determine the electronic device In the video playing state.
  • a control state detection unit 420 is configured to detect a state of a control control if it is detected that the electronic device is in the video playback state, and the control control is used to control whether video enhancement is turned on or off.
  • control control runs independently of the video playback application.
  • the video enhancement unit 430 is configured to perform video enhancement on the played video if the state of the control control is detected to enable video enhancement.
  • a video enhanced control device 500 provided in the present application is applied to an electronic device.
  • the device 500 includes: a playback state detection unit 510, a control display unit 520, a control state switching unit 530, and a control state detection unit 540. And a video enhancement unit 550.
  • a playback state detection unit 510 configured to detect whether the electronic device is in a video playback state
  • the control display unit 520 is configured to, if it is detected that the electronic device is in a video playing state, superimpose and display control controls on a video playing interface of the electronic device, and the control controls are used to control whether video enhancement is turned on or off.
  • the control state switching unit 530 is configured to switch the control control to a state indicating that video enhancement is enabled in response to a touch operation acting on the control control.
  • a control state detection unit 540 is configured to detect a state of a control control if it is detected that the electronic device is in the video playing state.
  • the video enhancement unit 550 is configured to perform video enhancement on the played video if the state of the control control is detected to enable video enhancement.
  • a video enhancement control apparatus 600 provided in the present application is applied to an electronic device.
  • the apparatus 600 includes a playback state detection unit 610, a control state detection unit 620, a video enhancement unit 630, and an enhancement cancellation unit 640.
  • the playback state detection unit 610 is configured to detect whether the electronic device is in a video playback state.
  • the playback state detection unit 610 is configured to detect whether a preset video playback application is running in the electronic device; if it is detected that a preset video playback application is running, determine the electronic device In the video playing state.
  • a control state detection unit 620 is configured to detect a state of a control control if it is detected that the electronic device is in the video playback state, and the control control is used to control whether video enhancement is turned on or off.
  • control control runs independently of the video playback application.
  • a video enhancement unit 630 is configured to perform video enhancement on the played video if the state of the control control is detected to enable video enhancement.
  • the enhancement canceling unit 640 is configured to cancel the video enhancement of the played video if it is detected that the state of the control control indicates that video enhancement is on or off.
  • the coupling between the modules may be electrical, mechanical, or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or software functional modules.
  • a video enhanced control method, device, electronic device, and storage medium detect whether the electronic device is in a video playing state, and if the electronic device is detected in the video playing state, control is detected.
  • the state of the control which is used to enable or disable the video enhancement in response to the touch operation control. If the state of the control control is detected to indicate that the video enhancement is enabled, the video enhancement is performed on the played video. Therefore, during the video playing process, the user can perform touch operations on the control controls to turn on or off the video enhancement of the played video, thereby providing convenience for the user to control whether or not the video enhancement is performed, and improving the user experience.
  • the electronic device 100 includes one or more processors (only one shown in the figure), a memory 104, a network module 106, a video codec 108, a camera 110, and a screen 112 coupled to each other.
  • the memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104.
  • the processor 102 may include one or more processing cores.
  • the processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets, or instruction sets stored in the memory 104 by calling or executing data stored in the memory 104 to execute Various functions and processing data of the electronic device 100.
  • the processor 102 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). To implement a hardware form.
  • the processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem modem
  • the CPU mainly handles the operating system, user interface, and application programs; the GPU is responsible for rendering and rendering of the displayed content; the modem is used for wireless communication. It can be understood that the modem may not be integrated into the processor 102, and may be implemented by a communication chip alone.
  • the memory 104 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 104 may be used to store instructions, programs, codes, code sets, or instruction sets.
  • the memory 104 may include a storage program area and a storage data area.
  • the memory 104 may store a video enhancement control device.
  • the video enhancement control device may be the foregoing device 400, device 500, or device 600.
  • the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), and instructions for implementing the following method embodiments. Wait.
  • the storage data area may also store data (such as phonebook, audio and video data, and chat history data) created by the terminal 100 during use.
  • the network module 106 is used to receive and send electromagnetic waves, and realize the mutual conversion of electromagnetic waves and electrical signals, so as to communicate with a communication network or other equipment, such as communicating with 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, a memory, and the like .
  • SIM subscriber identity module
  • the network module 106 can communicate with various networks, such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network.
  • the wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the video codec 108 can be used to encode the image collected by the camera 110 or decode the data requested by the network module 106 from the network for transmission to the screen 112 for display.
  • the video codec 108 may be a GPU, a dedicated DSP, an FPGA, an ASIC chip, or the like.
  • FIG. 16 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 800 stores program code, and the program code can be called by a processor to execute the method described in the foregoing method embodiment.
  • 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.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has a storage space for program code 810 that performs any of the method steps in the above-described methods. These program codes can be read from or written into one or more computer program products.
  • the program code 810 may be compressed, for example, in a suitable form.

Abstract

Embodiments of the present application disclose a video enhancement control method, a device, an electronic apparatus, and a storage medium. The method comprises: detecting whether an electronic apparatus is in a video playback state; if so, detecting a state of a control for controlling activation or deactivation of video enhancement; and if the detected state of the control indicates activation of video enhancement, performing video enhancement on a video being played. The method enables a user to perform a touch operation on the control during video playback to activate or deactivate video enhancement of the video being played, thereby facilitating user control of activating or deactivating video enhancement, and improving user experience.

Description

视频增强控制方法、装置、电子设备及存储介质Video enhanced control method, device, electronic equipment and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年8月23日提交的申请号为CN201810968779.4的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority from a Chinese application with an application number of CN201810968779.4, filed on August 23, 2018, which is hereby incorporated by reference herein in its entirety for all purposes.
技术领域Technical field
本申请涉及图像处理技术领域,更具体地,涉及一种视频增强控制方法、装置、电子设备及存储介质。The present application relates to the field of image processing technology, and more particularly, to a video enhanced control method, device, electronic device, and storage medium.
背景技术Background technique
带屏幕的电子设备应用随着社会的发展,其应用范围不断地扩大。例如,利于屏幕显示图片以及视频等图像。而大部分电子设备的显示质量会因为周围光源的变化,或者是所显示视频的片源质量问题而受到严重影响。With the development of society, the application of electronic devices with screens continues to expand. For example, it helps to display images such as pictures and videos on the screen. And the display quality of most electronic devices will be severely affected by changes in the surrounding light source or the quality of the source of the displayed video.
发明内容Summary of the Invention
鉴于上述问题,本申请提出了一种视频增强控制方法、装置、电子设备及存储介质,以改善上述问题。In view of the above problems, this application proposes a video enhancement control method, device, electronic device, and storage medium to improve the above problems.
第一方面,本申请提供了一种视频增强控制方法,应用于电子设备,所述方法包括:检测电子设备是否处于视频播放状态;若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视频增强;若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。In a first aspect, the present application provides a video enhanced control method for an electronic device. The method includes: detecting whether the electronic device is in a video playing state; and detecting and controlling if the electronic device is in the video playing state. The state of the control, which is used to control whether video enhancement is turned on or off; if the state of the control control is detected to indicate that video enhancement is turned on, video enhancement is performed on the played video.
第二方面,本申请提供了一种视频增强控制装置,应用于电子设备,所述装置包括:播放状态检测单元,用于检测电子设备是否处于视频播放状态;In a second aspect, the present application provides a video enhancement control device, which is applied to an electronic device, and the device includes a playback state detection unit for detecting whether the electronic device is in a video playback state;
控件状态检测单元,用于若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视频增强;视频增强单元,用于若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。A control state detection unit is configured to detect a state of a control control if it is detected that the electronic device is in the video playing state, the control control is used to control turning on or off video enhancement; a video enhancement unit is used to detect The state of the control is described to enable video enhancement, and perform video enhancement on the played video.
第三方面,本申请提供了一种电子设备,包括一个或多个处理器以及存储器;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。In a third aspect, the present application provides an electronic device including 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 all The one or more processors execute, and the one or more programs are configured to perform the method described above.
第四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行上述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores program code, and the method is executed when the program code is run.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments are briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1示出了本申请提出的另一种视频解码的流程图。FIG. 1 shows another flowchart of video decoding provided by the present application.
图2示出了本申请提出的一种视频增强控制方法的流程图。FIG. 2 shows a flowchart of a video enhancement control method proposed in the present application.
图3示出了本申请提出的一种视频增强控制方法中的界面示意图。FIG. 3 is a schematic diagram of an interface in a video enhancement control method proposed in the present application.
图4示出了本申请提出的一种视频增强控制方法中的播放界面的示意图。FIG. 4 shows a schematic diagram of a playback interface in a video enhancement control method proposed in the present application.
图5示出了本申请提出的另一种视频增强控制方法的流程图。FIG. 5 shows a flowchart of another video enhancement control method proposed in the present application.
图6示出了本申请提出的另一种视频增强控制方法中控制控件的示意图。FIG. 6 shows a schematic diagram of control controls in another video enhancement control method proposed in the present application.
图7示出了本申请提出的另一种视频增强控制方法中控制控件被隐藏的示意图。FIG. 7 shows a schematic diagram of a control being hidden in another video enhancement control method proposed in the present application.
图8示出了本申请提出的另一种视频增强控制方法中另一种控制控件被隐藏的示意图。FIG. 8 is a schematic diagram of another control control being hidden in another video enhancement control method proposed in the present application.
图9示出了本申请提出的另一种视频增强控制方法中清晰度切换控件的示意图。FIG. 9 shows a schematic diagram of a definition switching control in another video enhancement control method proposed in the present application.
图10示出了本申请提出的另一种视频增强控制方法中清晰度备选控件的示意图。FIG. 10 shows a schematic diagram of a sharpness alternative control in another video enhancement control method proposed by the present application.
图11示出了本申请提出的再一种视频增强控制方法的流程图。FIG. 11 shows a flowchart of another video enhancement control method proposed in the present application.
图12示出了本申请提出的一种视频增强控制装置的结构框图。FIG. 12 shows a structural block diagram of a video enhancement control device proposed in the present application.
图13示出了本申请提出的另一种视频增强控制装置的结构框图。FIG. 13 shows a structural block diagram of another video enhancement control device proposed in the present application.
图14示出了本申请提出的再一种视频增强控制装置的结构框图。FIG. 14 shows a structural block diagram of still another video enhancement control device proposed by the present application.
图15示出了本申请的用于执行根据本申请实施例的视频增强控制方法的电子设备的结构框图。FIG. 15 shows a structural block diagram of an electronic device for performing a video enhancement control method according to an embodiment of the present application.
图16是本申请实施例的用于保存或者携带实现根据本申请实施例的图像处理方法的程序代码的存储单元。FIG. 16 is a storage unit for saving or carrying a program code for implementing an image processing method according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In the following, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
随着电子设备的硬件性能的提升,更多的电子设备可以支持进行视频播放。例如,电子设备可以运行视频播放客户端,然后通过该视频播放客户端来对从网络请求的视频进行播放,或者可以通过运行网页浏览器,然后通过在网页浏览器中进行视频播放,再或者电子设备可以通过视频播放软件对本地存储的视频文件进行播放。As the hardware performance of electronic devices improves, more electronic devices can support video playback. For example, an electronic device can run a video playback client and then play the video requested from the network through the video playback client, or it can run a web browser and then play the video in a web browser, or electronically The device can play video files stored locally through video playback software.
而无论对于是在网络上传输播放的视频,还是在本地存储的视频,在视频被生成的时候,为了能够降低对存储空间的占用以及便于在网络上传输,都会对生成的视频进行压缩。那么相应的,电子设备在获取到视频时,先获取到的也会是压缩编码以后的视频,那么在这种情况下,电子设备会先对已经压缩编码的视频进行视频解码。Regardless of whether the video is transmitted on the network or stored locally, when the video is generated, the generated video will be compressed in order to reduce the storage space occupation and facilitate the transmission on the network. Correspondingly, when the electronic device obtains the video, it will also obtain the video after compression encoding. In this case, the electronic device first performs video decoding on the compression-encoded video.
通常,如图1所示,电子设备可以通过硬解码以及软解码两种方式来进行视频解码。其中,硬解码是指使用非CPU进行解码,如GPU(Graphics Processing Unit)、专用的DSP、FPGA、ASIC芯片等。而软解码是指使用CPU进行解码。Generally, as shown in FIG. 1, the electronic device can perform video decoding by using two methods: hard decoding and soft decoding. Among them, hard decoding refers to decoding using non-CPU, such as GPU (Graphics Processing Unit), dedicated DSP, FPGA, ASIC chip, etc. Soft decoding refers to decoding using the CPU.
具体地,如图1所示,MediaFramework(多媒体框架)通过与客户端或者网页浏览器的API接口获取待播放的视频文件,并交由Video Decode(视频解码器),其中,Media Framework(多媒体框架)为操作系统中多媒体框架。Specifically, as shown in FIG. 1, MediaFramework (multimedia framework) obtains a video file to be played through an API interface with a client or a web browser, and delivers the video file to VideoDecode. Among them, MediaFramework (multimedia framework) ) Is a multimedia framework in the operating system.
不论是硬解码还是软解码,在将视频数据解码之后,会将解码后的视频数据发送至SurfaceFlinger(图层传递模块),由SurfaceFlinger将解码后的视频数据渲染和合成之后,在屏幕上显示。其中,SurfaceFlinger是一个独立的Service,它接收所有的Surface作为输入,根据ZOrder、透明度、大小、位置等参数,计算出每个Surface在最终合成图像中的位置,然后交由HWComposer或OpenGL生成最终的显示Buffer,然后显示到特定的显示设备上。Regardless of the hard decoding or soft decoding, after decoding the video data, the decoded video data will be sent to SurfaceFlinger (Layer Transfer Module), and the decoded video data will be rendered and synthesized by SurfaceFlinger and displayed on the screen. Among them, SurfaceFlinger is an independent service that receives all Surfaces as input, calculates the position of each Surface in the final composite image according to ZOrder, transparency, size, position and other parameters, and then sends it to HWComposer or OpenGL to generate the final Display the buffer, and then display it to a specific display device.
而发明人发现无论是在硬解码还是软解码过程中都可以加入视频增强过程,从而使得后续所播放的视频有更高的视频效果。例如,可以基于HQV(hollywood quality video)技术对视频进行边缘去燥、调节曝光度或者提升清晰度等。此外,还可以通过其他的方式来提升所播放视频的视频体验,例如,提升颜色艳丽程度等。The inventors have discovered that the video enhancement process can be added to both the hard decoding and soft decoding processes, so that subsequent videos played have higher video effects. For example, HQV (hollywood quality video) technology can be used to de-dry the edges of the video, adjust the exposure, or improve the sharpness. In addition, there are other ways to improve the video experience of the video being played, for example, to enhance the color brilliance.
但是,发明人进一步的发现,对于是否对所播放的视频进行视频增强的控制方式还有待提升。因此,提出了申请提供的可以提升控制便利性以及智能化的视频增强控制方法、装置、电子设备及存储介质。However, the inventors further found that the control method for whether to perform video enhancement on the played video still needs to be improved. Therefore, a method, a device, an electronic device, and a storage medium for improving the convenience of control and intelligentized video enhancement provided by the application are proposed.
下面将结合具体实施例对本申请内容进行介绍。The content of this application will be described below in conjunction with specific embodiments.
请参阅图2,本申请提供的一种视频增强控制方法,应用于电子设备,所述方法包括:Please refer to FIG. 2, a video enhanced control method provided in this application is applied to an electronic device, and the method includes:
步骤S110:检测电子设备是否处于视频播放状态。Step S110: detecting whether the electronic device is in a video playing state.
在本申请中,电子设备可以通过多种的方式来识别当前是否处于视频播放状态。In this application, the electronic device can identify whether it is currently in a video playing state in various ways.
作为一种方式,所述检测电子设备是否处于视频播放状态的步骤包括:As a mode, the step of detecting whether the electronic device is in a video playing state includes:
检测所述电子设备中是否有设定的视频播放应用程序在运行;若检测到有设定的视频播放应用程序在运行,判定所述电子设备处于所述视频播放状态。其中,电子设备可以预先建立一个视频播放应用程序的名单,以便在该名单中记录视频播放应用程序。其中,该名单可以由电子设备的用户自由配置,也可以根据某个视频播放应用程序的使用情况来确定。It is detected whether a preset video playback application is running in the electronic device; if it is detected that a preset video playback application is running, it is determined that the electronic device is in the video playback state. The electronic device may establish a list of video playback applications in advance, so that the video playback applications are recorded in the list. The list can be freely configured by the user of the electronic device, or can be determined according to the usage of a video playback application.
例如,如图3所示,在图3所示的界面中显示有多个应用程序,以及每个应用程序对应的状态。可以理解的是,若应用程序对应的状态为图示的“关”,那么表示该应用程序移除或者不加入到上述名单中,若应用程序对应的状态为图示的“开”,那么表示该应用程序加入到上述名单中。例如,对于名称为“TX视频”的应用程序,其对应的状态为“开”,即表示“TX视频”这个应用程序会存在于前述的名单中。而对于名称为“AQY视频”的应用程序,其对应的状态为“关”,那么表示“AQY视频”这个应用程序不会存在于前述的名单中。For example, as shown in FIG. 3, a plurality of applications are displayed in the interface shown in FIG. 3, and a status corresponding to each application is displayed. It can be understood that if the corresponding state of the application is "off" as shown in the figure, it means that the application is removed or not added to the above list, and if the corresponding state of the application is "on" as shown in the figure, it means The application is added to the above list. For example, for an application named "TX Video", its corresponding status is "On", which means that the application "TX Video" will exist in the aforementioned list. For an application named "AQY Video", the corresponding status is "Off", which means that the application "AQY Video" does not exist in the aforementioned list.
再者,电子设备可以检测每个视频播放应用程序的使用频率,若检测到某个视频播放程序的使用频率超过设定的频率,则可以将该视频播放应用程序添加到前述名单中,并对应的将该视频播放应用程序的名称在图3中所对应的状态配置为“开”。Furthermore, the electronic device can detect the frequency of use of each video playback application. If it detects that the frequency of use of a video playback program exceeds a set frequency, it can add the video playback application to the aforementioned list and correspondingly The state corresponding to the name of the video playback application in FIG. 3 is “ON”.
那么在这种情况下,电子设备可以先检测当前在前台运行的应用程序是哪个,然后再进一步的检测当前前台运行的应用程序是否在该名单中,若在,那么就判定当前处于视频播放状态。其中,作为一种方式,若电子设备为Android操作系统,可以通过执行ActivityManager的getRunningTasks方法来获取到当前在前台运行的应用程序的名称。此外,电子设备还可以通过UsageStatsManager来获取用户使用的程序的列表,将该列表中记录的最近使用的应用程序识别为当前的前台应用。再者,还可以通过Android自带无障碍功能,监控窗口焦点的变化,拿到焦点窗口对应包名作为当前在前台运行的应用程序。Then in this case, the electronic device can first detect which application is currently running in the foreground, and then further detect whether the application currently running in the foreground is on the list. If it is, then it is determined that the video is currently playing. . Among them, if the electronic device is an Android operating system, the name of the application currently running in the foreground can be obtained by executing the getRunningTasks method of the ActivityManager. In addition, the electronic device can also obtain a list of programs used by the user through UsageStatsManager, and identify the most recently used application recorded in the list as the current foreground application. In addition, you can also use Android's built-in accessibility function to monitor the focus change of the window and get the package name corresponding to the focus window as the application currently running in the foreground.
作为另外一种方式,电子设备还可以结合检测AudioManager类的返回值来确定是否有视频在进行播放。在这种情况下,电子设备可以先检测AudioManager类的返回值来确定是否有音频输出,若在检测到有音频输出的情况下,再进一步的根据前述检测是否有视频播放应用程序运行来确定电子设备是否处于视频播放状态。As another way, the electronic device can also determine whether a video is playing by detecting the return value of the AudioManager class. In this case, the electronic device may first detect the return value of the AudioManager class to determine whether there is audio output. If an audio output is detected, then further determine whether the electronic device is based on the foregoing detection of whether a video playback application is running. Whether the device is in video playback state.
再者,作为再一种方式,电子设备还可以通过检测视频播放按键的触控状态来检测是否处于视频播放状态。例如,如图4所示,在图4所示的视频播放界面99中显示有播放按键98,且图4中所示的界面为视频播放暂停的状态。那么在这种情况下,当检测到播放按键98被触控后,即可判定电子设备当前处于视频播放状态。相应的,若电子设备处于视频播放状态后,检测到播放按键98再次被触控,则可以判定电子设备处于视频暂停状态,从而取消进行视频增强。通过这种方式使得可以在进行视频增强的过程中,可以只对正在播放的视频进行视频增强,而不必对处于暂停播放时所显示的画面进行视频增强,以提升增强效率。Furthermore, as another way, the electronic device may also detect whether it is in a video playing state by detecting a touch state of a video playing button. For example, as shown in FIG. 4, a playback button 98 is displayed in the video playback interface 99 shown in FIG. 4, and the interface shown in FIG. 4 is in a state in which video playback is paused. In this case, after detecting that the playback button 98 is touched, it can be determined that the electronic device is currently in a video playback state. Correspondingly, if it is detected that the play button 98 is touched again after the electronic device is in a video playing state, it can be determined that the electronic device is in a video pause state, thereby canceling video enhancement. In this way, in the process of performing video enhancement, it is possible to perform video enhancement only on the video being played, without having to perform video enhancement on the picture displayed when playback is paused, so as to improve the enhancement efficiency.
其中,需要说明的是,作为一种方式,本申请所提供的视频增强控制方法可以由前述的视频播放应用程序来执行,也可以由电子设备中独立于视频播放应用程序以外的程序来执行。其中,若提供的视频增强控制方法可以由前述的视频播放应用程序来执行,那么执行视频增强控制方法可以由视频播放应用程序在运行过程中对应主进程包括的一个子进程来进行执行,以便在执行视频增强方法的过程中避免对视频播放应用程序的其他功能造成影响。而若视频增强控制方法由电子设备中独立于视频播放应用程序以外的程序来执行,那么可以由独立于视频播放应用程序的另一个应用程序来执行。It should be noted that, as a way, the video enhanced control method provided in this application may be executed by the aforementioned video playback application program, or may be executed by an electronic device independently of a program other than the video playback application program. Wherein, if the provided video enhancement control method can be executed by the aforementioned video playback application program, then the execution of the video enhancement control method can be executed by the video playback application program corresponding to a child process included in the main process, in order to Avoid impacting other features of the video playback application during the video enhancement method. If the video enhanced control method is executed by a program other than the video playback application program in the electronic device, it may be executed by another application program independent of the video playback application program.
步骤S120:若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视频增强。Step S120: if it is detected that the electronic device is in the video playing state, a state of a control control is detected, and the control control is used to control whether video enhancement is turned on or off.
其中,可以理解的是,电子设备可以建立一个变量,然后利用变量值来标识控制控 件的状态。例如,若变量值为0,则表示控制控件处于表征关闭视频增强的状态,而若变量值为1,则表示控制控件处于表征开启视频增强的状态。那么在这种情况下,电子设备检测到处于视频播放状态后,可以检测该变量值来确定控制控件的状态。It can be understood that the electronic device can establish a variable, and then use the value of the variable to identify the state of the control. For example, if the value of the variable is 0, it means that the control is in a state that indicates that video enhancement is turned off, and if the value of the variable is 1, it means that the control is in a state that indicates that video enhancement is turned on. Then in this case, after the electronic device detects that it is in a video playing state, it can detect the value of the variable to determine the state of the control.
可选的,该变量值可以存储在预先建立的数据表中。在这种情况下,电子设备在检测到处于视频播放状态后,可以通过查表的方式来获取到前述变量值,进而判断控制控件的状态。Optionally, the value of the variable can be stored in a pre-established data table. In this case, after detecting that the video device is in a video playing state, the electronic device can obtain the aforementioned variable value by looking up a table, and then judge the state of the control.
此外,当某个应用程序被安装在电子设备后,其对应的配置文件的存储位置是相对固定的,作为另外一种方式,该变量值还可以存储在所对应的视频播放应用程序的配置文件中。在这种情况下,电子设备在检测到有视频播放应用程序安装后,且检测到该安装的视频播放应用程序被设置为设定的视频播放应用程序后,可以在该视频播放应用程序的配置文件夹中查找任一txt格式的文件,然后在该查找到的txt格式的文件中添加一个变量,进而将该变量的值作为前述的变量值。通过这种方式,可以在不新增加文件的情况下,利用视频播放应用程序的配置文件即可实现控制控件的状态检测,并且因为是利用的视频播放应用程序自身的配置文件,那么可以很好的区分某一个视频播放应用程序对应的控制控件的状态。In addition, when an application is installed on an electronic device, the storage location of its corresponding configuration file is relatively fixed. As another way, the variable value can also be stored in the corresponding configuration file of the video playback application. in. In this case, after detecting that the video playback application is installed, and after detecting that the installed video playback application is set as the set video playback application, the electronic device may configure the video playback application in the configuration. Find any file in txt format in the folder, then add a variable to the found file in txt format, and then use the value of the variable as the aforementioned variable value. In this way, you can use the configuration file of the video playback application to detect the state of the control without adding a new file, and because it is the configuration file of the video playback application itself, it can be very good. Distinguish the state of the control controls corresponding to a certain video playback application.
在这种情况下,为了避免对配置文件原本功能的影响,作为一种方式,可以以注释的方式,将变量添加到配置文件中。例如,对于txt格式的文件,其中以“//”或者“/*”开头的字符位注释内容。那么在这种情况下,电子设备配置的变量为hqv的情况下,向txt文件中插入的内容可以为“//hqv=1”,即表征开启视频增强。In this case, in order to avoid affecting the original function of the configuration file, as a way, variables can be added to the configuration file in a comment manner. For example, for a txt format file, the characters beginning with "//" or "/ *" comment the content. Then, in this case, when the variable configured by the electronic device is hqv, the content inserted into the txt file may be “// hqv = 1”, which means that video enhancement is turned on.
需要说明的是,对于一些应用程序被更新或者重新安装后,其对应的配置文件会被修改或者被其他文件替换掉。那么在这种情况下,若检测到设定的视频播放应用程序更新后或者重新安装后,可以先检测是否还存在之前选中的txt格式的文件,若存在,则进一步的检测更新后的或者重新安装后的视频播放应用程序对应的之前被选中的txt中是否还可以读取出之前插入的变量,若读取失败,则重新以前述的方式插入变量。若检测到已经不存在之前选中的txt格式的文件,则重新选择txt文件。It should be noted that after some applications are updated or reinstalled, their corresponding configuration files will be modified or replaced by other files. Then in this case, if it is detected that the set video playback application is updated or reinstalled, you can first detect whether the previously selected txt file still exists. If it exists, then further detect the updated or re- Whether the previously inserted variable can still be read out in the previously selected txt corresponding to the installed video playback application, and if the reading fails, insert the variable again in the aforementioned manner. If it is detected that the previously selected txt file does not exist, reselect the txt file.
下面再通过具体的应用程序来对上述的内容来进行说明。The following describes the above content through a specific application program.
若电子设备检测到名称为TX视频的视频播放应用程序被安装后,会进一步的检测TX视频是否被配置为设定的视频播放应用程序。若检测到TX视频被配置为设定的视频播放应用程序,那么电子设备会进一步的从TX视频的配置文件的文件夹中搜寻txt格式的文件。在任一搜寻到一个名字为tx.txt后,会向该tx.txt中插入一条数据,数据内容为“//hqv=1”,以表征TX视频对应的控制控件处于表征开启视频增强的状态,那么对应的若检测到TX视频对应的控制控件被触控后,电子设备会对应的将原本插入的内容修改为“//hqv=0”,以表征TX视频对应的控制控件处于表征关闭视频增强的状态。If the electronic device detects that a video playback application named TX video is installed, it will further detect whether the TX video is configured as a set video playback application. If it is detected that the TX video is configured as a set video playback application, the electronic device further searches for a file in the txt format from the folder of the configuration file of the TX video. After any search for a name named tx.txt, a piece of data is inserted into the tx.txt, the data content is "// hqv = 1", to indicate that the control corresponding to the TX video is in the state of enabling video enhancement, Then, if it is detected that the control corresponding to the TX video is touched, the electronic device will correspondingly modify the originally inserted content to “// hqv = 0” to indicate that the control corresponding to the TX video is in the status of turning off video enhancement. status.
那么,电子设备检测到TX视频被更新或者重新安装后,会检测TX视频对应的配置文件中是否还存在tx.txt这个文件,若存在则进一步的检测是否还能从tx.txt中读取出“//hqv=1”或者“//hqv=1”的内容,若可以,则表征之前的配置依然有效,若不能读取出,则默认向tx.txt中插入“//hqv=1”。若电子设备发现已经无法查找到tx.txt文件后,可以再重新选择一个txt文件。Then, after detecting that the TX video is updated or reinstalled, the electronic device will detect whether the tx.txt file still exists in the configuration file corresponding to the TX video. If it exists, it will be further tested whether it can be read from tx.txt The contents of "// hqv = 1" or "// hqv = 1", if it is, the previous configuration is still valid. If it cannot be read out, "// hqv = 1" is inserted into tx.txt by default . If the electronic device finds that it cannot find the tx.txt file, it can select another txt file.
需要说明的是,对于每个视频播放应用程序所对应的被选择的存储变量的文件,可以以数据表的方式存储在电子设备中,以便电子设备查找。It should be noted that, for the selected storage variable file corresponding to each video playback application, the file may be stored in the electronic device in a data table manner for the electronic device to find.
需要说明的是,前述的txt格式的文件,以及变量值都是示例性的,本申请不做具体限定。电子设备可以根据可以查找到的格式文件具体设定。例如,还可以使用xml格式的文件存储变量值。It should be noted that the aforementioned files in txt format and variable values are all exemplary, and are not specifically limited in this application. The electronic device can be set specifically according to the format file that can be found. For example, you can also use xml format files to store variable values.
作为一种方式,所述控制控件独立于所述视频播放应用程序以外运行。那么在步骤S120可以包括检测独立于所述预设的视频播放应用程序以外的控制控件的状态。As one way, the control control runs independently of the video playback application. Then, step S120 may include detecting a state of a control control independent of the preset video playback application.
步骤S130:若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行 视频增强。Step S130: if it is detected that the state of the control control indicates that video enhancement is enabled, perform video enhancement on the played video.
在本申请中电子设备可以基于多种方式对所播放的视频进行视频增强。例如,电子设备可以根据所播放视频的属性对所播放的视频进行视频增强。其中该属性包括清晰度以及颜色信息等。In this application, the electronic device may perform video enhancement on the played video based on a variety of ways. For example, the electronic device may perform video enhancement on the played video according to the attributes of the played video. The attributes include sharpness and color information.
作为一种方式,电子设备可以从所播放的视频中提取一帧目标图像作为属性判断的依据。可以理解的是,如果一幅图像已经模糊了,那么再对它进行一次模糊处理,图像中的高频分量变化不会太大。但如果图像本身的清晰度较高,对它进行一次模糊处理,则高频分量变化会非常大。那么作为一种方式,电子设备可以通过将目标图像进行一次模糊处理(例如,高斯模糊处理),得到该图像的退化图像,然后再比对模糊处理之前的图像和模糊处理之后的图像相邻像素值的变化情况,根据变化的大小确定清晰度值的高低。那么在这种情况下,变化越大,则目标图像的清晰度越高。As a way, the electronic device can extract a frame of the target image from the played video as the basis for the attribute judgment. It can be understood that if an image is already blurred, then if it is blurred again, the high-frequency components in the image will not change much. However, if the image itself has a high definition, if it is blurred once, the high-frequency component will change very much. Then, as a method, the electronic device may obtain a degraded image of the target image by performing a blurring process (for example, Gaussian blurring process), and then compare the adjacent pixels of the image before the blurring process and the image after the blurring process. The change of the value determines the sharpness value according to the magnitude of the change. Then in this case, the larger the change, the higher the sharpness of the target image.
此外,除了上述的通过将目标图像进行模糊处理后,来确定目标图像的清晰度外,还可以采用其他的方式来计算清晰度。可选的,可以通过下述的计算公式In addition, in addition to determining the sharpness of the target image by performing blur processing on the target image, other methods may be used to calculate the sharpness. Optionally, you can use the following calculation formula
D(f)=∑ yx|f(x+2,y)-f(x,y)| 2 D (f) = ∑ yx | f (x + 2, y) -f (x, y) | 2
来确定清晰度。其中,f(x,y)表示图像f对应像素点(x,y)的灰度值,D(f)为图像清晰度计算结果。可选的,在本申请中,f(x,y)可以选择实时预览图像中高频分量区域。To determine sharpness. Among them, f (x, y) represents the gray value of the pixel point (x, y) corresponding to image f, and D (f) is the result of calculating the image sharpness. Optionally, in this application, f (x, y) may select a high-frequency component region in the real-time preview image.
那么在这种情况下,若检测到目标图像的清晰度低于设定值,那么可以对所播放的视频进行清晰度方面的视频增强。Then, in this case, if it is detected that the sharpness of the target image is lower than a set value, video enhancement in terms of sharpness may be performed on the played video.
再者,对于颜色信息,在本申请中可以通过色偏程度来定义。作为一种方式,电子设备可以通过目标图像的色度分布情况以及色度平均值来确定当前色偏程度。作为一种方式,当电子设备检测到目标图像的色度分布基本上为单峰值,或者分布较为集中,且色度平均值又大于设定值时,则判定目标图像存在色偏。并且可以根据预先建立的色度平均值与色偏对应关系,来确定得到色偏的值以作为颜色信息。Moreover, the color information can be defined by the degree of color cast in this application. As one way, the electronic device can determine the current degree of color cast by using the chromaticity distribution of the target image and the chromaticity average value. As a method, when the electronic device detects that the chromaticity distribution of the target image is basically a single peak, or the distribution is relatively concentrated, and the average chromaticity is greater than a set value, it is determined that the target image has a color shift. In addition, the color shift value can be determined as the color information according to the pre-established correspondence between the chromaticity average value and the color shift.
此外,电子设备还可以根据电子设备所处的环境来确定进行哪些方面的视频视频增强,例如,可以根据电子设备所处的环境光的强度来确实判断是否对所播放的视频进行亮度方面的视频增强。In addition, the electronic device can also determine which aspects of video and video enhancement are performed according to the environment in which the electronic device is located. For example, it can determine whether to perform brightness video on the played video according to the intensity of the ambient light in which the electronic device is located. Enhanced.
需要说明的是,若电子设备前台同时有两个应用程序分屏进行视频播放的情况下,电子设备可以选择其中的一个所播放的视频进行视频增强,或者同时对分屏显示的两个应用程序各自所播放的视频均进行视频增强。其中,作为一种方式,若电子设备设置有处于屏幕同一侧的摄像头的情况下,可以通过摄像头采集用户当前眼球关注的区域,从而在电子设备分屏显示两个应用程序的界面的情况下,可以对距离该关注的区域更近的应用程序的界面所显示的视频进行视频增强。It should be noted that if two applications at the front of the electronic device have split screens for video playback at the same time, the electronic device may select one of the played videos for video enhancement, or simultaneously display two applications for split screen display. Each of the videos played is video enhanced. Among them, as a method, if the electronic device is provided with a camera on the same side of the screen, the current eyeball attention area of the user can be collected through the camera, so that when the electronic device displays the interface of the two applications on a separate screen, Video enhancement may be performed on a video displayed by an interface of an application program closer to the area of interest.
本申请提供的一种视频增强控制方法,通过检测电子设备是否处于视频播放状态,若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于响应于触控操作控制开启或关闭视频增强,若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。从而使得在视频播放过程中,用户可以通过对控制控件进行触控操作,以开启或者关闭对所播放视频的视频增强,进而给用户对于控制是否进行视频增强提供了便利,提升了用户体验。A video enhanced control method provided by the present application is to detect whether an electronic device is in a video playing state, and if the electronic device is detected to be in the video playing state, detect a state of a control that is used to respond to a touch. The control operation controls video enhancement on or off. If the state of the control control is detected to indicate that video enhancement is on, video enhancement is performed on the played video. Therefore, during the video playing process, the user can perform touch operations on the control controls to turn on or off the video enhancement of the played video, thereby providing convenience for the user to control whether or not the video enhancement is performed, and improving the user experience.
请参阅图5,本申请提供的一种视频增强控制方法,应用于电子设备,所述方法包括:Please refer to FIG. 5, a video enhanced control method provided in this application is applied to an electronic device, and the method includes:
步骤S210:检测电子设备是否处于视频播放状态。Step S210: Detect whether the electronic device is in a video playing state.
步骤S220:若检测到所述电子设备处于所述视频播放状态,在所述电子设备的视频播放界面上层叠显示所述控制控件,所述控制控件用于控制开启或关闭视频增强。Step S220: If it is detected that the electronic device is in the video playback state, the control controls are displayed on the video playback interface of the electronic device in a stacked manner, and the control controls are used to control whether video enhancement is turned on or off.
如图6所示,若电子设备检测到所述电子设备处于所述视频播放状态,在图示的视频播放界面99上悬浮显示控制控件97。其中,用户通过触控该控制控件97可以使得控 制控件97在表征开启或关闭视频增强这两种状态之间切换。作为一种方式,当电子设备在显示控制控件97后,用户可以通过对控制控件进行滑动,以将控制控件移出视频播放界面99。例如,如图7所示,若将图6显示的控制控件朝向图6中的上方滑动以后,控制控件97会朝向上方滑动,在滑动结束以后转换为图7中所示的标识96。那么在这种情况下,若用户朝向图7所示的下方滑动标识96,可以触发控制控件97再次如图6中所示的样式显示。As shown in FIG. 6, if the electronic device detects that the electronic device is in the video playing state, the control control 97 is suspended and displayed on the video playing interface 99 shown in the figure. Among them, by touching the control control 97, the user can cause the control control 97 to switch between the two states of whether video enhancement is on or off. As one way, after the electronic device displays the control control 97, the user can slide the control control to move the control control out of the video playback interface 99. For example, as shown in FIG. 7, if the control shown in FIG. 6 is slid upwards in FIG. 6, the control 97 is slid upwards, and it is converted into a logo 96 shown in FIG. 7 after the sliding ends. Then in this case, if the user slides the logo 96 toward the lower side shown in FIG. 7, the control control 97 may be triggered to be displayed again in the style shown in FIG. 6.
此外,除了可以朝向图6所示的上方滑动控制控件97外,依然也可以朝向其他方向滑动控制控件97。例如,如图8所示,若控制控件97被朝向图6所示的左侧滑动后,其所转换的标识96会对应的出现在视频播放界面的左侧。In addition, in addition to sliding the control 97 toward the upper direction shown in FIG. 6, the control 97 can also be slid toward other directions. For example, as shown in FIG. 8, if the control control 97 is swiped toward the left side shown in FIG. 6, the converted logo 96 will appear correspondingly on the left side of the video playback interface.
其中,对于在何种时机下在所述电子设备的视频播放界面上层叠显示所述控制控件可以有多种方式。There are various ways for when the control control is displayed on the video playback interface of the electronic device in a stacked manner.
作为一种方式,用户在使用电子设备的时候,可以通过用户帐号进行登录以便电子设备可以区别不同的用户。那么在这种情况下,电子设备可以通过所登录的用户帐号的等级来确定是否显示控制控件。例如,对于用户帐号等级从低到高可以预先划分为一级、二级以及三级,并且设定二级以上的用户帐号才能能进行视频增强。那么电子设备检测到处于视频播放状态后,可以进一步的检测当前登录的用户帐号的等级,若检测到当前登录的用户帐号的等级为二级或者以上等级,那么电子设备可以在所述电子设备的视频播放界面上层叠显示所述控制控件。而若电子设备检测到当前登录的用户帐号的等级低于二级,那么电子设备可以显示提示信息,以便提示用户升级帐号以后可以进行视频增强。As a method, when a user uses an electronic device, he or she can log in through a user account so that the electronic device can distinguish different users. Then, in this case, the electronic device may determine whether to display the control control according to the level of the logged-in user account. For example, the user account level can be pre-divided into first, second, and third levels from low to high, and video enhancement can only be performed by setting user accounts above the second level. Then the electronic device can further detect the level of the currently logged-in user account after detecting that it is in the video playback state. If it is detected that the level of the currently logged-in user account is level two or higher, then the electronic device can The control controls are displayed in a cascade on a video playback interface. If the electronic device detects that the level of the currently logged-in user account is lower than the second level, the electronic device may display a prompt message so as to prompt the user to upgrade the account and then perform video enhancement.
需要说明的是,前述的帐号,可以为登录电子设备的操作系统的帐号,也可以为具体进行视频播放的视频播放应用程序的帐号。It should be noted that the aforementioned account may be an account for logging in to an operating system of the electronic device, or may be an account for a video playback application program that specifically performs video playback.
作为一种方式,电子设备检测所述视频播放界面所播放视频包括的连续多帧图像的变化频率;若所述变化频率大于设定频率,在所述电子设备的视频播放界面上层叠显示所述控制控件。As a method, the electronic device detects a change frequency of consecutive multi-frame images included in the video played on the video playback interface; if the change frequency is greater than a set frequency, the video is displayed on the video playback interface of the electronic device in a stacked manner. Controls.
其中,可以理解的是,所播放的视频包括多帧的图像。而所播放的视频的内容不同其各自对应的内容的变化频率会有不同。例如,所播放的视频是电视剧或者电影类的视频的情况下,因为电视剧或者电影类的视频中画面的变化频率比较高,那么在这种情况下,用户更加期望有更加良好的视频体验。而对于另外一些视频场景,例如,知识讲解类的或者是某种课程类的视频中,因为画面会长期保持在相同的状态,而只是对应的音频数据会有不同的变化。例如,有些课程类的视频场景中,画面会长时间定格在一张PPT页面上,而对应的表征对PPT页面的内容进行讲解的音频会不断的变化。那么在这种情况,用户更加关注的是所讲解的内容,对于视频体验的要求不会太高。It can be understood that the played video includes multiple frames of images. The content of the video that is played will have a different frequency of change. For example, in the case where the video being played is a TV series or a movie type video, because the frequency of the picture change in the TV series or a movie type video is relatively high, in this case, the user is more expected to have a better video experience. For other video scenes, for example, knowledge-based explanations or videos of a certain course type, because the pictures will remain in the same state for a long time, only the corresponding audio data will change differently. For example, in some course-type video scenes, the picture will freeze on a PPT page for a long time, and the audio corresponding to the presentation of the content of the PPT page will change continuously. Then in this case, users are more concerned about the content being explained, and the requirements for the video experience will not be too high.
那么基于上述情况,作为一种方式,获取所播放的视频所包括的连续多帧图像,获取该连续多帧图像各自的内容特征,基于所述内容特征,获取所述所播放的视频所表征的画面内容的变化频率。Then based on the above situation, as a way, obtain consecutive multi-frame images included in the played video, obtain respective content characteristics of the consecutive multi-frame images, and obtain the characteristics represented by the played video based on the content characteristics. How often the content of the screen changes.
作为一种方式,可以通过获取灰度平均值来确定图像的内容特征。在这种方式下,电子设备可以获取所述连续多帧图像各自的灰度平均值,基于所述灰度平均值获取所述连续多帧图像各自的内容特征。As a way, the content characteristics of the image can be determined by obtaining the average gray value. In this manner, the electronic device may obtain respective grayscale average values of the continuous multi-frame images, and obtain respective content characteristics of the continuous multiframe images based on the grayscale average values.
下面再对上述提到的基于所述灰度平均值获取所述连续多帧图像各自的内容特征进行说明。The following describes the content characteristics of each of the consecutive multi-frame images obtained based on the gray average value.
可以先将图像缩小到8x8的尺寸,总共64个像素。这一步的作用是去除各种图片尺寸和图片比例的差异,只保留结构、明暗等基本信息。再将缩小后的图片,转为64级灰度图片。计算图片中所有像素的灰度平均值。将每个像素的灰度与平均值进行比较,如果大于或等于平均值记为1,小于平均值记为0。将上一步的比较结果,组合在一起,就构成了一个64位的二进制整数,这就是这张图像的指纹。得到图像的指纹后,就可以对比不同的图像的指纹, 计算出64位中有多少位是不一样的。如果不相同的数据位数不超过5,就说明两张图像很相似,如果大于10,说明它们是两张不同的图像。那么如果连续检测采集n张图像后,在检测到相邻两张图像不相似后,非相似度加1,那么将比对完成该n张图像后得到的非相似度除以前述的n,所得到的值即为变化频率。You can first reduce the image to an 8x8 size, for a total of 64 pixels. The purpose of this step is to remove the differences in various picture sizes and picture proportions, and only retain basic information such as structure, light and shade. The reduced picture is then converted into a 64-level grayscale picture. Calculate the average gray value of all pixels in the picture. Compare the gray level of each pixel with the average. If it is greater than or equal to the average, it is recorded as 1, and if it is less than the average, it is recorded as 0. The comparison result of the previous step is combined to form a 64-bit binary integer. This is the fingerprint of this image. After getting the fingerprints of the images, you can compare the fingerprints of different images and calculate how many of the 64 bits are different. If the number of different data bits does not exceed 5, it means that the two images are very similar, and if it is greater than 10, it means that they are two different images. Then if after continuous detection and acquisition of n images, after detecting that the adjacent two images are not similar, the non-similarity is increased by 1, then the non-similarity obtained after the comparison of the n images is divided by the aforementioned n, so The value obtained is the frequency of change.
那么在这种情况下,为了能够更加灵活的确定当前用户的实际需求,若检测到变化频率大于设定的频率,即表征当前播放的视频为电视剧或者电影类的视频,即可显示在所述电子设备的视频播放界面上层叠显示所述控制控件,以便提醒用户电子设备还可以进一步的进行视频增强,从而提升播放视频的视频体验。Then in this case, in order to be able to more flexibly determine the actual needs of the current user, if it is detected that the change frequency is greater than the set frequency, that is, the video currently playing is a TV series or a movie video, it can be displayed in the The control controls are stacked and displayed on the video playback interface of the electronic device, so as to remind the user that the electronic device can further enhance the video, thereby improving the video experience of playing the video.
此外,作为另外一种方式,电子设备可以检测所述视频播放界面所播放视频的分辨率;若所述视频播放界面所播放视频的分辨率为设定分辨率,在所述电子设备的视频播放界面上层叠显示所述控制控件。In addition, as another way, the electronic device can detect the resolution of the video played on the video playback interface; if the resolution of the video played on the video playback interface is a set resolution, the video playback on the electronic device is The control controls are displayed in layers on the interface.
可以理解的是,电子设备在播放不同的分辨率的视频时,所呈现出来的清晰度会有差别,而随着分辨率的提升,电子设备所播放的视频会更加的清晰。那么在一种情况下,所述设定分辨率为所述视频播放界面所播放视频支持的最高分辨率。It can be understood that when electronic devices play videos with different resolutions, the displayed sharpness will be different, and as the resolution increases, the videos played by electronic devices will become clearer. Then in one case, the set resolution is the highest resolution supported by the video played by the video playback interface.
需要说明的是,电子设备在播放视频时,所播放视频的分辨率会受所播放视频本身可以支持的分辨率以及电子设备本身所支持的分辨率的影响。例如,若将视频本身的分辨率从低到高可以有为标清、高清以及超清,而电子设备所支持的分辨率从低到高也为标清、高清以及超清的情况下。若检测到电子设备所支持的最高分辨率为高清,那么即使所播放视频的分辨率支持超清的分辨率的情况下,所播放视频所支持的最高分辨率依然为高清。It should be noted that when an electronic device plays a video, the resolution of the played video will be affected by the resolution that the played video itself can support and the resolution supported by the electronic device itself. For example, if the resolution of the video itself is from low to high, there may be standard definition, high definition, and ultra clear, and the resolution supported by the electronic device from low to high is also standard definition, high definition, and ultra clear. If it is detected that the highest resolution supported by the electronic device is high-definition, even if the resolution of the played video supports ultra-clear resolution, the highest resolution supported by the played video is still high-definition.
再者,若所播放视频所支持的最高分辨率低于电子设备所支持分辨率,那么在这种情况下,即使用户使用电子设备进行视频播放,所播放的视频的最高分辨率依然为所播放视频所支持的最高分辨率。那么为了便于提醒用户可以进一步的提升所播放视频的视频体验,可以在检测到所播放的视频所支持的最高分辨率低于电子设备所支持的最高分辨率的情况下,在所述电子设备的视频播放界面上层叠显示所述控制控件,从而使得便于用户通过该控制控件触发电子设备进行视频增强,使得所播放的视频可以展现出比其所能支持的最高分辨率对应的播放效果更好的播放效果。Furthermore, if the highest resolution supported by the video being played is lower than the resolution supported by the electronic device, in this case, even if the user uses the electronic device for video playback, the highest resolution of the video being played is still being played. The highest resolution supported by the video. Then, in order to remind the user that the video experience of the played video can be further improved, it can be detected that the highest resolution supported by the played video is lower than the highest resolution supported by the electronic device. The control controls are stacked and displayed on the video playback interface, so that it is convenient for the user to trigger the electronic device to perform video enhancement through the control controls, so that the played video can show a better playback effect than the highest resolution that it can support. Play effect.
例如,如图9所示,在图9所示的图中,示出了清晰度切换控件95,当用户点击该清晰度切换控件95后,如图10所示,可以显示清晰度备选控件94,在该清晰度备选控件94中显示有可以被选择的清晰度,例如,在图10中所示,该所播放的视频所支持的最高分辨率为超清,那么在这种情况下,如果电子设备所支持的最高分辨率为超清或者甚至是比超清的分辨率更高的4K模型下,可以在界面上显示控制控件97。从而使得在所播放的视频已经以其所能支持的最高分辨率进行播放的情况下,在显示了控制控件后,用户可以触发控制控件处于开启视频增强的状态,从而使得电子设备可以对所播放的视频进行视频增强,进而使得所播放的视频可以展现出比其所能支持的最高分辨率对应的播放效果更好的播放效果。For example, as shown in FIG. 9, in the figure shown in FIG. 9, a sharpness switching control 95 is shown. When the user clicks the sharpness switching control 95, as shown in FIG. 10, a sharpness alternative control may be displayed. 94. In the sharpness alternative control 94, a sharpness that can be selected is displayed. For example, as shown in FIG. 10, the highest resolution supported by the played video is super clear, so in this case, If the highest resolution supported by the electronic device is ultra-clear or even a 4K model with a higher resolution than ultra-clear, the control controls 97 can be displayed on the interface. Therefore, in the case that the played video has been played at the highest resolution that it can support, after the control is displayed, the user can trigger the control to be in the state of enabling video enhancement, so that the electronic device can The video is enhanced by video, so that the played video can show a better playback effect than the playback effect corresponding to the highest resolution it can support.
可以理解的是,视频播放应用程序可以是在线进行的视频播放,那么在在线进行视频播放的过程中,所播放的视频的数据是实时从网络中获取的。而对于不同分辨率的视频各自所占用的存储空间的大小是会有区别的。例如,对于同一个视频内容,标清模式的视频内容可能会占用200MB的存储空间,而高清模式的视频内容可能会占用700MB的存储空间。而在传输过程中亦是如此,对于分辨率更高的视频内容,其传输所占用的网络带宽越大。It can be understood that the video playing application may be a video playing online, and during the online video playing process, the data of the played video is obtained from the network in real time. The size of the storage space occupied by videos of different resolutions will be different. For example, for the same video content, video content in SD mode may occupy 200MB of storage space, while video content in HD mode may occupy 700MB of storage space. The same is true during the transmission process. For higher-resolution video content, the larger the network bandwidth occupied by the transmission.
在这种情况下,可选的,电子设备可以在检测到若所述视频播放界面所播放视频的分辨率为设定分辨率,且检测到电子设备所接入网络的网络质量低于设定条件后,降低所播放视频的分辨率;在所述电子设备的视频播放界面上层叠显示所述控制控件。In this case, optionally, the electronic device may detect that if the resolution of the video played by the video playback interface is a set resolution, and detect that the network quality of the network connected to the electronic device is lower than the set After the conditions are met, the resolution of the played video is reduced; the control controls are displayed on the video playback interface of the electronic device in a layered manner.
其中,电子设备可以通过多种方式检测当前的网络质量。例如,电子设备可以通过 网络的重传率来评价网络的质量。Among them, the electronic device can detect the current network quality in various ways. For example, an electronic device can evaluate the quality of a network through its retransmission rate.
需要说明的是,若电子设备是基于TCP协议接入网路的情况下,电子设备是使用滑动窗口来管理基本数据的收发过程,同时确保数据流的有效及可靠传输,从而不致发送速率明显快于接收速率。而其中,如果在计时器超时之前电子设备没有收到确认信息,则判定发生重传超时,电子设备会自动重传之前超时发送的数据。It should be noted that if the electronic device is connected to the network based on the TCP protocol, the electronic device uses a sliding window to manage the sending and receiving process of basic data, and at the same time ensures the effective and reliable transmission of the data stream, so that the sending rate is not significantly faster. At the receiving rate. Among them, if the electronic device does not receive the confirmation information before the timer expires, it is determined that a retransmission timeout occurs, and the electronic device automatically retransmits the data sent before the timeout.
再者,若电子设备在进行视频的播放过程中,若多次在播放过程中出现卡顿,那么意味着电子设备对待进行播放的视频的解码过程出现了卡顿,再或者是接收网络数据出现卡顿,进而会造成用户体验不佳。那么电子设备还可以通过检测预设时间段内,视频播放过程中卡顿的次数,来评价网络的质量。Furthermore, if the electronic device is stuck during playback of the video multiple times, it means that the electronic device is stuck during the decoding process of the video to be played, or it is receiving network data. Stuck, which in turn will cause a poor user experience. Then the electronic device can also evaluate the quality of the network by detecting the number of stalls during the video playback during a preset period of time.
例如,若电子设备以超清的模式进行视频播放,而在视频播放的过程中若电子设备通过上述方式检测到网络质量低于设定的条件,那么会将所播放视频的分辨率降低为高清模式,而在这种情况下,可以在所述电子设备的视频播放界面上层叠显示所述控制控件,从而使得可以便于用户通过显示的控制控件触发对以高清模式播放的视频进行视频增强,进而使得电子设备虽然是以高清模式进行视频播放,但是可以展示出比高清更好的视频效果。For example, if an electronic device plays a video in an ultra-clear mode, and if the electronic device detects that the network quality is lower than a set condition through the above method, the resolution of the played video will be reduced to high-definition Mode, and in this case, the control controls may be displayed on the video playback interface of the electronic device, so that it is convenient for the user to trigger the video enhancement of the video played in the high-definition mode through the displayed control controls, and then Even though the electronic device plays video in high-definition mode, it can show better video effects than high-definition.
需要说明的是,电子设备在进行视频增强的过程中,会增加CPU或者GPU的计算资源消耗,那么若电子设备检测到网络质量不低于设定的条件,那么可以提示用户是否切换为更高的分辨率,并提示用户是否关闭视频增强,从而在网络状态恢复良好以后,降低对CPU或者GPU的计算资源消耗。It should be noted that during the video enhancement process of the electronic device, the computing resource consumption of the CPU or GPU will be increased. If the electronic device detects that the network quality is not lower than the set condition, it can prompt the user whether to switch to a higher Resolution, and prompt the user whether to turn off video enhancement, so as to reduce the consumption of computing resources of the CPU or GPU after the network state is restored.
通过上述方式从而使得能够保证电子设备可以在网络状态不佳的情况下,不仅可以流畅的播放视频,还可以实现展示比当前网络状态所能支持的流畅播放的分辨率的播放效果更好的播放效果。In this way, it is possible to ensure that the electronic device can not only play videos smoothly when the network status is poor, but also achieve better playback effects than the smooth playback resolution supported by the current network status. effect.
步骤S230:响应于作用于控制控件的触控操作,将控制控件切换到表征开启视频增强的状态。Step S230: In response to a touch operation acting on the control, the control is switched to a state indicating that video enhancement is enabled.
步骤S240:若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态。Step S240: if it is detected that the electronic device is in the video playing state, detect a state of a control control.
步骤S250:若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。Step S250: If it is detected that the state of the control control indicates that video enhancement is enabled, perform video enhancement on the played video.
本申请提供的一种视频增强控制方法,通过检测电子设备是否处于视频播放状态,若检测到所述电子设备处于所述视频播放状态后,可以再根据所播放视频的分辨率以及电子设备的网络状态来确定是否在屏幕上显示用于响应于触控操作控制开启或关闭视频增强的控制控件,再进一步的检测控制控件的状态,若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。从而使得在视频播放过程中,用户可以通过对控制控件进行触控操作,以开启或者关闭对所播放视频的视频增强,进而给用户对于控制是否进行视频增强提供了便利,提升了用户体验。A video enhanced control method provided by the present application, by detecting whether an electronic device is in a video playing state, if it is detected that the electronic device is in the video playing state, it may be based on the resolution of the played video and the network of the electronic device. Status to determine whether to display control controls for turning video enhancement on or off in response to a touch operation control, and further detect the state of the control controls. If the state of the control controls is detected to indicate that video enhancement is on, Play the video for video enhancement. Therefore, during the video playing process, the user can perform touch operations on the control controls to turn on or off the video enhancement of the played video, thereby providing convenience for the user to control whether or not the video enhancement is performed, and improving the user experience.
请参阅图11,本申请提供的一种视频增强控制方法,应用于电子设备,所述方法包括:Referring to FIG. 11, a video enhanced control method provided by this application is applied to an electronic device, and the method includes:
步骤S310:检测电子设备是否处于视频播放状态。Step S310: It is detected whether the electronic device is in a video playing state.
步骤S320:若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视频增强。Step S320: if it is detected that the electronic device is in the video playing state, a state of a control control is detected, and the control control is used to control whether video enhancement is turned on or off.
步骤S330:若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。Step S330: if it is detected that the state of the control control indicates that video enhancement is enabled, perform video enhancement on the played video.
步骤S340:响应于作用于控制控件的触控操作,将控制控件切换到表征关闭视频增强的状态。Step S340: In response to a touch operation acting on the control, the control is switched to a state indicating that video enhancement is turned off.
步骤S350:若检测到所述控制控件的状态表征开关闭视频增强,取消对所播放的视频进行视频增强。Step S350: if it is detected that the state of the control control indicates that video enhancement is on or off, cancel video enhancement on the played video.
本申请提供的一种视频增强控制方法,通过检测电子设备是否处于视频播放状态, 若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于响应于触控操作控制开启或关闭视频增强,若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。从而使得在视频播放过程中,用户可以通过对控制控件进行触控操作,以开启或者关闭对所播放视频的视频增强,进而给用户对于控制是否进行视频增强提供了便利,提升了用户体验。A video enhanced control method provided by the present application is to detect whether an electronic device is in a video playing state, and if the electronic device is detected to be in the video playing state, detect a state of a control control used to respond to a touch The control operation controls video enhancement on or off. If the state of the control control is detected to indicate that video enhancement is on, video enhancement is performed on the played video. Therefore, during the video playing process, the user can perform touch operations on the control controls to turn on or off the video enhancement of the played video, thereby providing convenience for the user to control whether or not the video enhancement is performed, and improving the user experience.
请参阅图12,本申请提供的一种视频增强控制装置400,应用于电子设备,所述装置400包括:播放状态检测单元410、控件状态检测单元420以及视频增强单元430。Referring to FIG. 12, a video enhancement control apparatus 400 provided in the present application is applied to an electronic device. The apparatus 400 includes: a playback state detection unit 410, a control state detection unit 420, and a video enhancement unit 430.
播放状态检测单元410,用于检测电子设备是否处于视频播放状态。The playback state detection unit 410 is configured to detect whether the electronic device is in a video playback state.
作为一种方式,播放状态检测单元410,用于检测所述电子设备中是否有设定的视频播放应用程序在运行;若检测到有设定的视频播放应用程序在运行,判定所述电子设备处于所述视频播放状态。As a mode, the playback state detection unit 410 is configured to detect whether a preset video playback application is running in the electronic device; if it is detected that a preset video playback application is running, determine the electronic device In the video playing state.
控件状态检测单元420,用于若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视频增强。A control state detection unit 420 is configured to detect a state of a control control if it is detected that the electronic device is in the video playback state, and the control control is used to control whether video enhancement is turned on or off.
作为一种方式,所述控制控件独立于所述视频播放应用程序以外运行。As one way, the control control runs independently of the video playback application.
视频增强单元430,用于若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。The video enhancement unit 430 is configured to perform video enhancement on the played video if the state of the control control is detected to enable video enhancement.
请参阅图13,本申请提供的一种视频增强控制装置500,应用于电子设备,所述装置500包括:播放状态检测单元510、控件显示单元520、控件状态切换单元530、控件状态检测单元540以及视频增强单元550。Please refer to FIG. 13, a video enhanced control device 500 provided in the present application is applied to an electronic device. The device 500 includes: a playback state detection unit 510, a control display unit 520, a control state switching unit 530, and a control state detection unit 540. And a video enhancement unit 550.
播放状态检测单元510,用于检测电子设备是否处于视频播放状态;A playback state detection unit 510, configured to detect whether the electronic device is in a video playback state;
控件显示单元520,用于若检测到电子设备处于视频播放状态,在所述电子设备的视频播放界面上层叠显示控制控件,所述控制控件用于控制开启或关闭视频增强。The control display unit 520 is configured to, if it is detected that the electronic device is in a video playing state, superimpose and display control controls on a video playing interface of the electronic device, and the control controls are used to control whether video enhancement is turned on or off.
控件状态切换单元530,用于响应于作用于控制控件的触控操作,将控制控件切换到表征开启视频增强的状态。The control state switching unit 530 is configured to switch the control control to a state indicating that video enhancement is enabled in response to a touch operation acting on the control control.
控件状态检测单元540,用于若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态。A control state detection unit 540 is configured to detect a state of a control control if it is detected that the electronic device is in the video playing state.
视频增强单元550,用于若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。The video enhancement unit 550 is configured to perform video enhancement on the played video if the state of the control control is detected to enable video enhancement.
请参阅图14,本申请提供的一种视频增强控制装置600,应用于电子设备,所述装置600包括:播放状态检测单元610、控件状态检测单元620以及视频增强单元630以及增强取消单元640。Referring to FIG. 14, a video enhancement control apparatus 600 provided in the present application is applied to an electronic device. The apparatus 600 includes a playback state detection unit 610, a control state detection unit 620, a video enhancement unit 630, and an enhancement cancellation unit 640.
播放状态检测单元610,用于检测电子设备是否处于视频播放状态。The playback state detection unit 610 is configured to detect whether the electronic device is in a video playback state.
作为一种方式,播放状态检测单元610,用于检测所述电子设备中是否有设定的视频播放应用程序在运行;若检测到有设定的视频播放应用程序在运行,判定所述电子设备处于所述视频播放状态。As a mode, the playback state detection unit 610 is configured to detect whether a preset video playback application is running in the electronic device; if it is detected that a preset video playback application is running, determine the electronic device In the video playing state.
控件状态检测单元620,用于若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视频增强。A control state detection unit 620 is configured to detect a state of a control control if it is detected that the electronic device is in the video playback state, and the control control is used to control whether video enhancement is turned on or off.
作为一种方式,所述控制控件独立于所述视频播放应用程序以外运行。As one way, the control control runs independently of the video playback application.
视频增强单元630,用于若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。A video enhancement unit 630 is configured to perform video enhancement on the played video if the state of the control control is detected to enable video enhancement.
增强取消单元640,用于若检测到所述控制控件的状态表征开关闭视频增强,取消对所播放的视频进行视频增强。The enhancement canceling unit 640 is configured to cancel the video enhancement of the played video if it is detected that the state of the control control indicates that video enhancement is on or off.
需要说明的是,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块 单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the devices and units described above can refer to the corresponding processes in the foregoing method embodiments, and are not repeated here. . In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical, or other forms of coupling. In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or software functional modules.
需要说明的是,本申请中具体如何根据音频编码类型对音频数据进行编码是可以采用现有的技术,本申请就不再细述。It should be noted that, in the present application, specifically how to encode audio data according to the type of audio encoding can use existing technology, which will not be described in detail in this application.
综上所述,本申请提供的一种视频增强控制方法、装置、电子设备及存储介质,通过检测电子设备是否处于视频播放状态,若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于响应于触控操作控制开启或关闭视频增强,若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。从而使得在视频播放过程中,用户可以通过对控制控件进行触控操作,以开启或者关闭对所播放视频的视频增强,进而给用户对于控制是否进行视频增强提供了便利,提升了用户体验。In summary, a video enhanced control method, device, electronic device, and storage medium provided by the present application detect whether the electronic device is in a video playing state, and if the electronic device is detected in the video playing state, control is detected. The state of the control, which is used to enable or disable the video enhancement in response to the touch operation control. If the state of the control control is detected to indicate that the video enhancement is enabled, the video enhancement is performed on the played video. Therefore, during the video playing process, the user can perform touch operations on the control controls to turn on or off the video enhancement of the played video, thereby providing convenience for the user to control whether or not the video enhancement is performed, and improving the user experience.
下面将结合图15对本申请提供的一种电子设备进行说明。An electronic device provided in the present application will be described below with reference to FIG. 15.
请参阅图15,基于上述的图像处理方法、装置,本申请实施例还提供的另一种可以执行前述终端控制方法的电子设备100。电子设备100包括相互耦合的一个或多个(图中仅示出一个)处理器102、存储器104、网络模块106、视频编解码器108、摄像头110以及屏幕112。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。Referring to FIG. 15, based on the above-mentioned image processing method and device, another electronic device 100 capable of executing the foregoing terminal control method is also provided in an embodiment of the present application. The electronic device 100 includes one or more processors (only one shown in the figure), a memory 104, a network module 106, a video codec 108, a camera 110, and a screen 112 coupled to each other. The memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104.
其中,处理器102可以包括一个或者多个处理核。处理器102利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。The processor 102 may include one or more processing cores. The processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets, or instruction sets stored in the memory 104 by calling or executing data stored in the memory 104 to execute Various functions and processing data of the electronic device 100. Optionally, the processor 102 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). To implement a hardware form. The processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly handles the operating system, user interface, and application programs; the GPU is responsible for rendering and rendering of the displayed content; the modem is used for wireless communication. It can be understood that the modem may not be integrated into the processor 102, and may be implemented by a communication chip alone.
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。存储器104可包括存储程序区和存储数据区,例如,存储器104中可以存储有视频增强控制装置。该视频增强控制装置可以为前述的装置400、装置500或者装置600。其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 104 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 104 may include a storage program area and a storage data area. For example, the memory 104 may store a video enhancement control device. The video enhancement control device may be the foregoing device 400, device 500, or device 600. The storage program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), and instructions for implementing the following method embodiments. Wait. The storage data area may also store data (such as phonebook, audio and video data, and chat history data) created by the terminal 100 during use.
所述网络模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和无线接入点进行通讯。所述网络模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述网络模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。The network module 106 is used to receive and send electromagnetic waves, and realize the mutual conversion of electromagnetic waves and electrical signals, so as to communicate with a communication network or other equipment, such as communicating with 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, a memory, and the like . The network module 106 can communicate with various networks, such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
该视频编解码器108可以用于对摄像头110所采集的图像进行编码,或者对网络模块106从网络请求的数据进行解码,以便传输到屏幕112进行显示。具体的,视频编解码器108可以为GPU、专用的DSP、FPGA、ASIC芯片等。The video codec 108 can be used to encode the image collected by the camera 110 or decode the 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.
请参考图16,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 16, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 800 stores program code, and the program code can be called by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、 硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。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. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has a storage space for program code 810 that performs any of the method steps in the above-described methods. These program codes can be read from or written into 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 describe the technical solution of the present application, rather than limiting it. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still Modifications to the technical solutions described in the foregoing embodiments, or equivalent replacements of some of the technical features thereof; and these modifications or replacements do not drive the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种视频增强控制方法,其特征在于,应用于电子设备,所述方法包括:A video enhanced control method, which is characterized in that it is applied to an electronic device, and the method includes:
    检测电子设备是否处于视频播放状态;Detecting whether the electronic device is in a video playing state;
    若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视频增强;If it is detected that the electronic device is in the video playing state, detecting a state of a control control for controlling whether video enhancement is turned on or off;
    若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。If the state of the control is detected to indicate that video enhancement is enabled, video enhancement is performed on the played video.
  2. 根据权利要求1所述的方法,其特征在于,所述检测电子设备是否处于视频播放状态的步骤包括:The method according to claim 1, wherein the step of detecting whether the electronic device is in a video playing state comprises:
    检测所述电子设备中是否有设定的视频播放应用程序在运行;Detecting whether a set video playback application is running in the electronic device;
    若检测到有设定的视频播放应用程序在运行,判定所述电子设备处于所述视频播放状态。If it is detected that a set video playback application is running, it is determined that the electronic device is in the video playback state.
  3. 根据权利要求2所述的方法,其特征在于,所述控制控件独立于所述视频播放应用程序以外运行,所述检测控制控件的状态的步骤包括:The method according to claim 2, wherein the control control runs independently of the video playback application, and the step of detecting a state of the control control comprises:
    检测独立于所述预设的视频播放应用程序以外的控制控件的状态。Detecting a state of a control control independent of the preset video playback application.
  4. 根据权利要求1所述的方法,其特征在于,所述检测所述电子设备是否处于视频播放状态的步骤包括:The method according to claim 1, wherein the step of detecting whether the electronic device is in a video playing state comprises:
    检测视频播放按键的触控状态;Detect the touch state of video playback buttons;
    若检测到所述播放按键被触控,判定所述电子设备处于视频播放状态;If it is detected that the playback button is touched, it is determined that the electronic device is in a video playback state;
  5. 根据权利要求4所述的方法,其特征在于,所述若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强的步骤包括:The method according to claim 4, wherein, if the state of the control control is detected to indicate that video enhancement is enabled, the step of performing video enhancement on the played video comprises:
    若检测到所述控制控件的状态表征开启视频增强,若电子设备处于视频播放状态后,检测到所述播放按键再次被触控,判定所述电子设备处于视频暂停状态,取消进行视频增强。If the state of the control is detected to indicate that video enhancement is turned on, if the electronic device is in a video playing state, it is detected that the playback button is touched again, it is determined that the electronic device is in a video pause state, and video enhancement is cancelled.
  6. 根据权利要求1所述的方法,其特征在于,所述检测电子设备是否处于视频播放状态的步骤和所述若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态的步骤之间还包括:The method according to claim 1, wherein the steps of detecting whether the electronic device is in a video playing state and the steps of detecting a state of a control control if the electronic device is detected in the video playing state It also includes:
    在所述电子设备的视频播放界面上层叠显示所述控制控件。The control controls are displayed in a layered manner on a video playback interface of the electronic device.
    响应于作用于所述控制控件的触控操作,将所述控制控件切换到表征开启视频增强的状态。In response to a touch operation acting on the control control, the control control is switched to a state indicating that video enhancement is turned on.
  7. 根据权利要求6所述的方法,其特征在于,所述在所述电子设备的视频播放界面上层叠显示所述控制控件的步骤包括:The method according to claim 6, wherein the step of displaying the control controls in a layered manner on a video playback interface of the electronic device comprises:
    检测所述视频播放界面所播放视频包括的连续多帧图像的变化频率;Detecting a change frequency of consecutive multi-frame images included in a video played by the video playing interface;
    若所述变化频率大于设定频率,在所述电子设备的视频播放界面上层叠显示所述控制控件。If the change frequency is greater than a set frequency, the control controls are displayed in a layered manner on a video playback interface of the electronic device.
  8. 根据权利要求7所述的方法,其特征在于,所述检测所述视频播放界面所播放视频包括的连续多帧图像的变化频率的步骤包括:The method according to claim 7, wherein the step of detecting a change frequency of consecutive multi-frame images included in a video played on the video playback interface comprises:
    获取所述所播放视频包括的连续多帧图像;Acquiring consecutive multi-frame images included in the played video;
    获取所述连续多帧图像各自的内容特征;Acquiring respective content characteristics of the consecutive multi-frame images;
    基于所述内容特征,获取所述所播放视频所表征的画面内容的变化频率。Based on the content characteristics, a change frequency of picture content represented by the played video is obtained.
  9. 根据权利要求8所述的方法,其特征在于,所述获取所述连续多帧图像各自的内容特征的步骤包括:The method according to claim 8, wherein the step of obtaining respective content characteristics of the consecutive multi-frame images comprises:
    获取所述连续多帧图像各自的灰度平均值;Obtaining respective gray average values of the consecutive multi-frame images;
    基于所述灰度平均值获取所述连续多帧图像各自的内容特征。Content characteristics of each of the consecutive multi-frame images are acquired based on the gray average value.
  10. 根据权利要求6所述的方法,其特征在于,所述在所述电子设备的视频播放界面上层叠显示所述控制控件的步骤包括:The method according to claim 6, wherein the step of displaying the control controls in a layered manner on a video playback interface of the electronic device comprises:
    检测所述视频播放界面所播放视频的分辨率;Detecting a resolution of a video played on the video playback interface;
    若所述视频播放界面所播放视频的分辨率为设定分辨率,在所述电子设备的视频播放界面上层叠显示所述控制控件。If the resolution of the video played on the video playback interface is a set resolution, the control controls are displayed in a stack on the video playback interface of the electronic device.
  11. 根据权利要求6所述的方法,其特征在于,所述设定分辨率为所述视频播放界面所播放视频支持的最高分辨率。The method according to claim 6, wherein the set resolution is a highest resolution supported by a video played by the video playback interface.
  12. 根据权利要求11所述的方法,其特征在于,所述在所述电子设备的视频播放界面上层叠显示所述控制控件的步骤包括:The method according to claim 11, wherein the step of displaying the control controls in a layered manner on a video playback interface of the electronic device comprises:
    若检测到所播放的视频所支持的最高分辨率低于电子设备所支持的最高分辨率,在所述电子设备的视频播放界面上层叠显示所述控制控件,从而使得便于用户通过该控制控件触发电子设备进行视频增强,使得所播放的视频可以展现出比其所能支持的最高分辨率对应的播放效果更好的播放效果。If it is detected that the highest resolution supported by the played video is lower than the highest resolution supported by the electronic device, the control controls are displayed on the video playback interface of the electronic device in an overlay manner, so that it is convenient for users to trigger through the control controls The electronic device performs video enhancement, so that the played video can show a better playback effect than the playback effect corresponding to the highest resolution it can support.
  13. 根据权利要求10所述的方法,其特征在于,所述若所述视频播放界面所播放视频的分辨率为设定分辨率,在所述电子设备的视频播放界面上层叠显示所述控制控件的步骤包括:The method according to claim 10, wherein if the resolution of the video played on the video playback interface is a set resolution, the control controls are displayed on the video playback interface of the electronic device in a stacked manner. The steps include:
    若所述视频播放界面所播放视频的分辨率为设定分辨率,且检测到电子设备所接入网络的网络质量低于设定条件后,降低所播放视频的分辨率;If the resolution of the video played on the video playback interface is a set resolution, and after detecting that the network quality of the network to which the electronic device is connected is lower than a set condition, reducing the resolution of the played video;
    在所述电子设备的视频播放界面上层叠显示所述控制控件。The control controls are displayed in a layered manner on a video playback interface of the electronic device.
  14. 根据权利要求6所述的方法,其特征在于,所述在所述电子设备的视频播放界面上层叠显示所述控制控件的步骤包括:The method according to claim 6, wherein the step of displaying the control controls in a layered manner on a video playback interface of the electronic device comprises:
    检测视频播放界面当前登录的用户帐号的等级,若检测到所述当前登录的用户帐号的等级满足预设条件,在所述电子设备的视频播放界面上层叠显示所述控制控件。Detecting the level of the currently logged in user account of the video playback interface, and if it is detected that the level of the currently logged in user account meets a preset condition, the control controls are displayed on the video playback interface of the electronic device in a stacked manner.
  15. 根据权利要求1所述的方法,其特征在于,所述若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强的步骤包括:The method according to claim 1, wherein if the state of the control control is detected to indicate that video enhancement is enabled, the step of performing video enhancement on the played video comprises:
    若检测到所述控制控件的状态表征开启视频增强,根据所播放视频的属性对所播放的视频进行视频增强,所述属性信息包括清晰度以及颜色信息。If it is detected that the state of the control control indicates that video enhancement is enabled, video enhancement is performed on the played video according to the attributes of the played video, and the attribute information includes sharpness and color information.
  16. 根据权利要求1所述的方法,其特征在于,所述若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强的步骤包括:The method according to claim 1, wherein if the state of the control control is detected to indicate that video enhancement is enabled, the step of performing video enhancement on the played video comprises:
    若所述电子设备的前台同时有两个应用程序分屏进行视频播放,选择其中的一个所播放的视频进行视频增强,或者同时对分屏显示的两个应用程序各自所播放的视频均进行视频增强。If there are two applications on the front screen of the electronic device, split screens are used for video playback, select one of the videos to be played for video enhancement, or video for each of the two applications displayed in split screens Enhanced.
  17. 根据权利要求1-16任一所述的方法,其特征在于,所述若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强的步骤之后还包括:The method according to any one of claims 1 to 16, wherein after detecting that the state of the control control indicates that video enhancement is turned on, after the step of performing video enhancement on the played video further comprises:
    若检测到所述控制控件的状态表征开关闭视频增强,取消对所播放的视频进行视频增强。If it is detected that the state of the control indicates that video enhancement is on or off, cancel video enhancement on the played video.
  18. 一种视频增强控制装置,其特征在于,应用于电子设备,所述装置包括:A video enhancement control device is characterized in that it is applied to electronic equipment, and the device includes:
    播放状态检测单元,用于检测电子设备是否处于视频播放状态;A playback state detection unit, configured to detect whether the electronic device is in a video playback state;
    控件状态检测单元,用于若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视频增强;A control state detection unit, configured to detect a state of a control control if it is detected that the electronic device is in the video playback state, the control control is used to control whether video enhancement is turned on or off;
    视频增强单元,用于若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视频增强。A video enhancement unit is configured to perform video enhancement on the played video if the state of the control control is detected to enable video enhancement.
  19. 一种电子设备,其特征在于,包括一个或多个处理器、视频编解码器以及存储器;An electronic device, comprising one or more processors, a video codec and a memory;
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-17任一所述的方法。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 are configured to execute claim 1 -17 Any of the methods described.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码由处理器运行时执行权利要求1-17任一所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores program code, wherein the method according to any one of claims 1-17 is executed when the program code is run by a processor.
PCT/CN2019/090440 2018-08-23 2019-06-06 Video enhancement control method, device, electronic apparatus, and storage medium WO2020038071A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810968779.4 2018-08-23
CN201810968779.4A CN109120979B (en) 2018-08-23 2018-08-23 Video enhancement control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2020038071A1 true WO2020038071A1 (en) 2020-02-27

Family

ID=64860982

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/090440 WO2020038071A1 (en) 2018-08-23 2019-06-06 Video enhancement control method, device, electronic apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN109120979B (en)
WO (1) WO2020038071A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120979B (en) * 2018-08-23 2020-08-21 Oppo广东移动通信有限公司 Video enhancement control method and device and electronic equipment
CN110442389B (en) * 2019-08-07 2024-01-09 北京技德系统技术有限公司 Method for sharing GPU (graphics processing Unit) in multi-desktop environment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105654446A (en) * 2016-02-02 2016-06-08 广东欧珀移动通信有限公司 Video definition adjustment method and device
CN105763922A (en) * 2016-04-28 2016-07-13 徐文波 Video processing method and apparatus
CN106550261A (en) * 2016-12-12 2017-03-29 暴风集团股份有限公司 Lift the exhibiting method and system of video image clarity
CN106919401A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of method of dynamic regulation resolution ratio, device and mobile terminal
US20180020243A1 (en) * 2016-07-13 2018-01-18 Yahoo Holdings, Inc. Computerized system and method for automatic highlight detection from live streaming media and rendering within a specialized media player
CN107659828A (en) * 2017-10-30 2018-02-02 广东欧珀移动通信有限公司 Video image quality adjustment method, device, terminal device and storage medium
CN107948627A (en) * 2017-11-27 2018-04-20 腾讯科技(深圳)有限公司 Video broadcasting method, device, computing device and storage medium
WO2018125590A1 (en) * 2016-12-30 2018-07-05 Tivo Solutions Inc. Advanced trick-play modes for streaming video
CN109120979A (en) * 2018-08-23 2019-01-01 Oppo广东移动通信有限公司 Video source modeling control method, device and electronic equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8233738B2 (en) * 2007-07-30 2012-07-31 Dolby Laboratories Licensing Corporation Enhancing dynamic ranges of images
CN101710924A (en) * 2009-11-16 2010-05-19 宇龙计算机通信科技(深圳)有限公司 Method for saving electricity for mobile terminal and mobile terminal
CN102811354B (en) * 2011-05-30 2015-04-29 深圳市快播科技有限公司 Video image quality enhanced playing method and on-demand terminal
CN105898485A (en) * 2016-03-30 2016-08-24 苏州合欣美电子科技有限公司 Player capable of adaptively adjusting playing brightness
CN106201417A (en) * 2016-07-04 2016-12-07 广东欧珀移动通信有限公司 Adjust the method for screen display brightness, device and mobile terminal
CN106231416A (en) * 2016-08-16 2016-12-14 北京小米移动软件有限公司 Method for processing video frequency and device
CN106792169A (en) * 2016-12-12 2017-05-31 深圳Tcl数字技术有限公司 Internet video play handling method and device
CN106782431B (en) * 2017-03-10 2020-02-07 Oppo广东移动通信有限公司 Screen backlight brightness adjusting method and device and mobile terminal
CN107846624B (en) * 2017-10-30 2020-01-14 Oppo广东移动通信有限公司 Video image quality adjusting method and device, terminal equipment and storage medium
CN108111910B (en) * 2017-12-22 2020-01-21 烽火通信科技股份有限公司 Method and system for adjusting video playing definition
CN108260013B (en) * 2018-03-28 2021-02-09 维沃移动通信有限公司 Video playing control method and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105654446A (en) * 2016-02-02 2016-06-08 广东欧珀移动通信有限公司 Video definition adjustment method and device
CN105763922A (en) * 2016-04-28 2016-07-13 徐文波 Video processing method and apparatus
US20180020243A1 (en) * 2016-07-13 2018-01-18 Yahoo Holdings, Inc. Computerized system and method for automatic highlight detection from live streaming media and rendering within a specialized media player
CN106550261A (en) * 2016-12-12 2017-03-29 暴风集团股份有限公司 Lift the exhibiting method and system of video image clarity
WO2018125590A1 (en) * 2016-12-30 2018-07-05 Tivo Solutions Inc. Advanced trick-play modes for streaming video
CN106919401A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of method of dynamic regulation resolution ratio, device and mobile terminal
CN107659828A (en) * 2017-10-30 2018-02-02 广东欧珀移动通信有限公司 Video image quality adjustment method, device, terminal device and storage medium
CN107948627A (en) * 2017-11-27 2018-04-20 腾讯科技(深圳)有限公司 Video broadcasting method, device, computing device and storage medium
CN109120979A (en) * 2018-08-23 2019-01-01 Oppo广东移动通信有限公司 Video source modeling control method, device and electronic equipment

Also Published As

Publication number Publication date
CN109120979B (en) 2020-08-21
CN109120979A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
WO2020062924A1 (en) Video enhancement control method and device, electronic apparatus, and storage medium
CN109685726B (en) Game scene processing method and device, electronic equipment and storage medium
WO2020107989A1 (en) Video processing method and apparatus, and electronic device and storage medium
WO2020108061A1 (en) Video processing method and apparatus, electronic device and storage medium
US20210281718A1 (en) Video Processing Method, Electronic Device and Storage Medium
CN109729405B (en) Video processing method and device, electronic equipment and storage medium
US11627369B2 (en) Video enhancement control method, device, electronic device, and storage medium
US11456013B2 (en) Video decoding control method, electronic device, and storage medium
US11490157B2 (en) Method for controlling video enhancement, device, electronic device and storage medium
WO2020038127A1 (en) Decoding method and apparatus, electronic device, and storage medium
US11153525B2 (en) Method and device for video enhancement, and electronic device using the same
WO2020108060A1 (en) Video processing method and apparatus, and electronic device and storage medium
WO2020038071A1 (en) Video enhancement control method, device, electronic apparatus, and storage medium
CN109587555B (en) Video processing method and device, electronic equipment and storage medium
WO2020108010A1 (en) Video processing method and apparatus, electronic device and storage medium
CN109587561B (en) Video processing method and device, electronic equipment and storage medium
US11562772B2 (en) Video processing method, electronic device, and storage medium
WO2020107970A1 (en) Video decoding method and apparatus, electronic device, and storage medium
CN109218803B (en) Video enhancement control method and device and electronic equipment
WO2016154816A1 (en) Data processing method and device
CN109712100B (en) Video enhancement control method and device and electronic equipment
CN109257636B (en) Switching method and device for video enhancement, electronic equipment and storage medium
CN117221293A (en) Data transmission method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19851690

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19851690

Country of ref document: EP

Kind code of ref document: A1