CN109587561B - Video processing method and device, electronic equipment and storage medium - Google Patents

Video processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109587561B
CN109587561B CN201811438276.2A CN201811438276A CN109587561B CN 109587561 B CN109587561 B CN 109587561B CN 201811438276 A CN201811438276 A CN 201811438276A CN 109587561 B CN109587561 B CN 109587561B
Authority
CN
China
Prior art keywords
video
played
source
played video
display enhancement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811438276.2A
Other languages
Chinese (zh)
Other versions
CN109587561A (en
Inventor
杨海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811438276.2A priority Critical patent/CN109587561B/en
Publication of CN109587561A publication Critical patent/CN109587561A/en
Application granted granted Critical
Publication of CN109587561B publication Critical patent/CN109587561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • 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
    • 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/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a video processing method, a video processing device, an electronic device and a storage medium, wherein the video processing method comprises the following steps: when video playing is carried out, detecting the source of the played video; judging whether the source of the playing video is a local file or not; and when the source is a local file, performing display enhancement processing on the played video, wherein the display enhancement processing improves the image quality of the played video by processing the image in the played video through optimizing parameters. The method can improve the fluency of video playing.

Description

Video processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a video processing method and apparatus, an electronic device, and a storage medium.
Background
Electronic devices, such as computers and mobile phones, have become one of the most common consumer electronic products in daily life. With the development of electronic devices, more and more users play videos by using the electronic devices, but display jamming may occur when playing videos by using the electronic devices.
Disclosure of Invention
In view of the foregoing problems, the present application provides a video processing method, an apparatus, an electronic device, and a computer readable storage medium to reduce the video pause during playing.
In a first aspect, an embodiment of the present application provides a video processing method, where the method includes: when video playing is carried out, detecting the source of the played video; judging whether the source of the playing video is a local file or not; and when the source is a local file, performing display enhancement processing on the played video, wherein the display enhancement processing improves the image quality of the played video by processing the image in the played video through optimizing parameters.
In a second aspect, an embodiment of the present application provides a video processing apparatus, including: the video source detection module is used for detecting the source of a played video when the video is played; the video source judging module is used for judging whether the source of the played video is a local file; and the display enhancement module is used for processing the images in the played video by optimizing parameters to improve the image quality of the played video when the source is a local file.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the video processing method provided by the first aspect above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be called by a processor to execute the video processing method provided in the first aspect.
According to the scheme, when the video is played, the source of the played video is detected, whether the source of the played video is a local file or not is judged, and when the source of the played video is the local file, the played video is displayed and enhanced. Because the played video is displayed and enhanced only when the source of the played video is the local file, the video playing jam caused by the display enhancement processing of the video from all the sources can be avoided, and the video playing fluency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a block diagram of a video playing architecture provided according to an embodiment of the present application.
Fig. 2 shows a flow diagram of a video processing method according to an embodiment of the application.
Fig. 3 shows a flow diagram of a video processing method according to another embodiment of the present application.
Fig. 4 shows a flow diagram of a video processing method according to yet another embodiment of the present application.
Fig. 5 shows a block diagram of a video processing apparatus according to an embodiment of the present application.
Fig. 6 shows another block diagram of a video processing apparatus according to an embodiment of the present application.
Fig. 7 shows a further block diagram of a video processing apparatus according to an embodiment of the present application.
Fig. 8 is a block diagram of an electronic device for executing a video processing method according to an embodiment of the present application.
Fig. 9 is a storage unit for storing or carrying program codes for implementing a video processing method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Currently, most electronic devices, such as computers, mobile phones, tablet computers, and the like, can play videos. When the electronic device plays the video, the operating system of the electronic device can analyze the audio and video data after acquiring the video data to be played. Generally, a video file is composed of two parts, namely a video stream and an audio stream, and the packaging formats of audio and video in different video formats are different. The process of synthesizing files of audio streams and video streams is called muxer (merge file). The inverse process of muxer corresponds to the process of separating audio and video streams from a media file is called demux (separation file). When playing a video file, an audio stream and a video stream need to be separated from a file stream and decoded respectively, a decoded video frame can be directly rendered, an audio frame can be sent to a buffer area of audio output equipment for playing, and certainly, timestamps of video rendering and audio playing need to be controlled to be synchronous.
The video decoding may include hard decoding and soft decoding, the hardware decoding is performed by submitting a part of video data, which is originally completely processed by a Central Processing Unit (CPU), to an image processor (GPU), and the parallel computing capability of the GPU is much higher than that of the CPU, so that the load on the CPU can be greatly reduced, and some other programs can be simultaneously run after the CPU has a low occupancy rate. Of course, for better performing processors, software decoding may also be used, i.e. decoding by a decoding software program in the CPU.
Referring to fig. 1, a block diagram of a video playback architecture of an electronic device is shown. When the player adopts a hard decoding player, a Media Framework (multimedia Framework) acquires a Video file to be played by a client through an API interface of the client of the player, and decodes the Video file by a Video decoder to obtain decoded Video data, that is, image data to be rendered. The Media frame is a multimedia Framework in an Android system, and may include three parts, namely, a MediaPlayer, a MediaPlayerService, and a stagefrigplaylayer. Specifically, the multimedia framework part adopts a C/S structure, the MediaPlayer is used as a Client (Client) end of the C/S structure, the MediaPlayer service and the stagefrigliplayyer are used as a C/S structure Server (service) end, the responsibility of playing the multimedia file is born, and the Server end completes the request of the Client end and responds through the stagefrigliplayer. The Video decoder is a decoder that can Decode audio data as well as Video data, and decodes the Video data. After the Video Decode decodes the Video file, the decoded Video data may be transmitted to a surface flag (layer delivery module) through a Video driver for rendering and displaying on a screen. The Surface flunger is an independent Service, which receives Surface layers of all windows as input, calculates the position of each Surface in a final composite image according to parameters such as ZOrder, transparency, size, position and the like, and then sends the position to HWComposer or OpenGL (Open Graphics Library) to generate a final display Buffer, and then displays the final display Buffer on a specific display device.
When the player adopts soft decoding, the CPU decodes the video through software, and the GPU is called to render and combine the video after decoding, and then the video is displayed on a screen. And hard decoding means that the video decoding task is independently completed through a special daughter card device without the aid of a CPU.
In the embodiment of the application, the electronic device can perform display enhancement processing of video playing in the video playing process. Specifically, after the decoded Video data is obtained through hard decoding or soft decoding, the decoded Video data is used as image data to be rendered, and when the image data to be rendered is sent to the surface flag, the image data to be rendered may be intercepted and optimized by an HQV (Hollywood Quality Video) algorithm module, and then sent to the surface flag for rendering and subsequent display operations on a screen. The HQV algorithm module is used for storing the image data to be rendered into the off-screen rendering buffer area, and then performing display enhancement processing on the image of the multi-frame image data in the off-screen rendering buffer area through optimization parameters such as exposure enhancement, denoising, edge sharpening, contrast increase and saturation increase, and then transmitting the image to the surface flicker for rendering and subsequent optimization operation on the screen. The display enhancement processing can improve the image quality of the played video, wherein the image quality comprises definition, sharpness, lens distortion, color, resolution, color gamut range, purity and the like, and different display enhancement effects can be achieved through different combination modes. Achieving different combinations in the image quality may be achieved by controlling the optimization parameter. It should be noted that the display enhancement processing on the played video may also be understood as a series of operations performed before formal processing on the played video, including image enhancement, image restoration, and the like, where the image enhancement is to add some information or transform data to an original image by a certain means, selectively highlight interesting features in the image or suppress some unnecessary features in the image, so that the image is matched with the optimization parameters, thereby improving the image quality and enhancing the visual effect, so that the displayed video image achieves the effect of super-visibility. Specifically, the surface flunger may call the GPU to render and synthesize the image data, and then put the rendered result into a frame buffer, and then the video controller reads the data in the frame buffer, and transmits the data to the display through digital-to-analog conversion, thereby enhancing the display of the video display.
However, the inventor has found through research that, in the video playing process, when performing display enhancement, part of system resources are occupied, and jamming during playing video is likely to occur, and system resources required by the electronic device to play network video are more than system resources required by playing non-network video. Therefore, in view of the technical problem, the inventor has studied and proposed a video processing method, an apparatus, an electronic device, and a computer-readable storage medium provided in the embodiments of the present application for a long time, so that when a source of a played video is not a network, the played video is subjected to display enhancement processing, which can avoid the video from all sources from being subjected to display enhancement processing, resulting in video playing jamming, and improve video playing fluency.
The following describes a video processing method according to an embodiment of the present application in detail.
Referring to fig. 2, an embodiment of the present application provides a video processing method, which is applicable to an electronic device, and the video processing method may include:
step S110: when the video is played, the source of the played video is detected.
When the electronic device performs a video playing process, display enhancement processing is usually performed to ensure the display effect of the video. When the display enhancement processing is performed, part of system resources are occupied, the burden of a processor is increased, and the video playing is easy to be blocked. The display enhancement processing improves the image quality of the played video by optimizing the image in the played video, and the specific display enhancement processing can refer to the description of the display enhancement processing.
In addition, when playing a video, the source of the video may affect the fluency of the video playing. The reason why the source of the video affects the fluency of video playing is that when the video which is not from the local file is played, more system resources are occupied, so that the burden of the processor is larger. Therefore, when playing a video that is not originated from the local file, if the display enhancement processing is performed on the played video at this time, the processor is overloaded, and the playing of the video is likely to be jammed. And when the source of the played video is a local file, relatively less system resources are occupied, and if the played video is displayed and enhanced at the moment, the processor is not easy to have overlarge burden, and the video can be played more smoothly.
Therefore, in the embodiment of the application, the current video playing state of the electronic device can be detected, so that when the electronic device plays a video, the source of the played video is determined, and the played video is conveniently subjected to display enhancement processing according to the source of the played video.
In some embodiments, the video playing state may be detected, where whether a video playing architecture of the electronic device works is detected to determine whether the electronic device is currently in the video playing state, and when the video playing architecture works, it is determined that the electronic device is in the video playing state, that is, the electronic device is playing the video. In addition, whether a related module used during video playing works or not can be detected to determine that the electronic device is playing the video, for example, when it is detected that a video decoder, an image layer transmission module, a video player and the like are in a working state, it is detected that the video playing is being performed. Of course, the specific manner of detecting whether to play the video is not limited in the embodiment of the present application.
Further, when it is determined that the electronic device plays the video, the source of the played video is detected. As an alternative, when the video file is acquired through the interface for acquiring the video file of the video player, the path for acquiring the video determines the source of the playing video. Specifically, when the interface that acquires the video file reads the video file from the specified file path, it may be determined that the source from which the video is played is the local file. In addition, since most videos acquired from the network have related information identifying a video network address, it may be detected whether a playing video has related information identifying a video network address, and when the playing video has related information identifying a video network address, the playing video is a video file acquired from the network in real time.
Step S120: and judging whether the source of the playing video is a local file.
In the embodiment of the present application, after the source of the played video is detected, it may be determined whether the source of the played video is a local file, so that the played video is displayed and enhanced when the source of the played video is not a network. It can be understood that, when the source of the played video is determined to be the local file, the task of playing the video occupies less system resources, so that the played video can be subjected to display enhancement processing without causing the processor to be overloaded to cause the played video to be blocked.
Step S130: and when the source is a local file, performing display enhancement processing on the played video, wherein the display enhancement processing improves the image quality of the played video by processing the image in the played video through optimizing parameters.
When the source of the played video is determined to be the local file in step S120, the video may be played for display enhancement processing. The decoded video data serving as the image data to be rendered is intercepted by the HQV algorithm module, the HQV algorithm module stores the image data to be rendered in an off-screen rendering buffer, performs display enhancement processing of optimization operation corresponding to at least one optimization parameter on an image of multi-frame image data in the off-screen rendering buffer, and transmits the processed image to a surface flag for rendering and subsequent optimization operation on a screen, so as to improve the image quality of the played video, wherein the image quality includes definition, sharpness, lens distortion, color, resolution, color gamut range, purity and the like. The optimization parameters may include optimization parameters such as exposure enhancement, denoising, edge sharpening, contrast increase, saturation increase, and the like. Of course, the specific optimization parameters may not be limiting in the embodiments of the present application.
When playing a video which is not from a local file, the electronic device needs a third-party player to play, so that the occupied system resources are more, and the burden of the processor is larger. Therefore, when it is determined in step S120 that the source of the playing video is not the local file, the display enhancement processing may not be performed on the playing video, or the display enhancement processing of part of the optimized parameters in all the optimized parameters may be performed on the playing video, so that the load of the processor is not too large, which may cause a video to be jammed during playing.
According to the video processing method provided by the embodiment of the application, the source of the played video is detected when the video is played, and when the source of the played video is a local file, the played video is displayed and enhanced, so that the situation that the video from all the sources is displayed and enhanced to cause blockage of the played video can be avoided, and the fluency of the played video is improved.
Referring to fig. 3, another embodiment of the present application provides a video processing method, which can be applied to an electronic device, and the video processing method can include:
step S210: when the video is played, the source of the played video is detected.
In the embodiment of the application, when the electronic device plays the video, the source of the played video can be detected, so that the played video is displayed and enhanced when the source of the played video is determined to be the local file.
In some embodiments, when playing a video, it may be determined that the display enhancement processing of the electronic device is currently in an available state, that is, when the function of the display enhancement processing is turned on, a source of the playing video is detected. As one mode, a system interface of the electronic device may be provided with a switch button for performing a function of the display enhancement processing, and a user may turn on or off the function of the display enhancement processing of the video playback through the switch button. By detecting whether the switch button is turned on or not, when the switch button is turned on, the function of the display enhancement processing is turned on; when the switch button is turned off, the function of the display enhancement processing is turned off. Of course, the specific manner of determining whether the display enhancement processing of the current electronic device is in the available state is not limited in the embodiment of the present application.
Therefore, when the display enhancement processing of the electronic equipment is in an available state and the video is played, the source of the played video can be detected. The manner of detecting the source of the played video may refer to the contents of the above embodiments, and is not described herein again.
Step S220: and judging whether the source of the playing video is a local file.
In the embodiment of the present application, the content of the step S220 may refer to the content of the above embodiments, and details are not repeated herein.
Step S230: and when the source is a local file, performing display enhancement processing on the played video, wherein the display enhancement processing improves the image quality of the played video by processing the image in the played video through optimizing parameters.
In the embodiment of the application, when the played video is judged to be from the local file, because the task of playing the video occupies less system resources, the played video can be subjected to display enhancement processing, and the situation that the played video is blocked due to overlarge load of a processor is avoided.
Further, when it is determined that the source of the played video is the local file and the played video is subjected to display enhancement processing, since there are a plurality of optimization parameters for display enhancement processing preset in the electronic device, display enhancement processing of optimization operations of all the optimization parameters or display enhancement processing of optimization operations of part of the optimization parameters can be performed on the played video.
As an embodiment, when the source of the playing video is a local file, performing display enhancement processing on the playing video may include:
when the source is a local file, selecting all optimization parameters as target optimization parameters for performing display enhancement processing on the played video; and performing display enhancement processing on the played video according to the target optimization parameters.
It is understood that when the source of the playing video is determined to be the local file, all the optimization parameters in the HQV algorithm module can be selected as the target optimization parameters, and the target optimization parameters are used for performing the display enhancement processing on the playing video. Then, according to the target optimization parameter, performing display enhancement processing on the played video, that is, the played video, wherein the decoded video data is used as image data to be rendered, and is intercepted by the HQV algorithm module, after the HQV algorithm module stores the image data to be rendered into the off-screen rendering buffer, the image of the multi-frame image data in the off-screen rendering buffer is subjected to display enhancement processing of optimization operations corresponding to all optimization parameters, and then is transmitted to the surface flag for rendering and subsequent optimization operations on the screen, so that the displayed video image achieves the effect of super-visibility. For example, when all the optimization parameters in the HQV module include optimization parameters of exposure enhancement, denoising, edge sharpening, contrast increase and saturation increase, the optimization operations of exposure enhancement, denoising, edge sharpening, contrast increase and saturation increase are performed on the image data to be rendered, and then the subsequent playing is performed.
The display enhancement processing of all optimized parameters is carried out on the played video when the source of the played video is determined to be the local file, and the played video is not a source network, so that the occupied resources are not too much, the processor burden is not too large, the played video has super-definition effect, and the fluency of video playing is ensured.
As another embodiment, when the source of the playing video is a local file, performing display enhancement processing on the playing video may include:
when the source is a local file, selecting part of optimization parameters from all the optimization parameters as target optimization parameters for performing display enhancement processing on the played video; and performing display enhancement processing on the played video according to the target optimization parameters.
It can be understood that, when the optimization parameters of the HQV module are used for the display enhancement processing, i.e., the video is optimized, the optimization processing corresponding to each optimization parameter occupies the resources of the processor, and the occupation of the resources of the processor by each optimization parameter may be different. Therefore, part of the optimized parameters can be properly selected to perform display enhancement on the played video, and the phenomenon that the display enhancement processing occupies too high resources of a processor to cause video playing blockage is avoided.
It is understood that when the source of the playing video is determined to be a local file, part of the optimization parameters may be selected from all the optimization parameters of the HQV algorithm module, and used as target optimization parameters, and the target optimization parameters are used for performing display enhancement processing on the playing video. And then, according to the target optimization parameter, performing display enhancement processing on the played video, namely performing display enhancement processing corresponding to the optimization operation corresponding to the partial optimization parameter on the played video. That is to say, the played video, the decoded video data serving as the image data to be rendered, is intercepted by the HQV algorithm module, after the HQV algorithm module stores the image data to be rendered in the off-screen rendering buffer, the image of the multi-frame image data in the off-screen rendering buffer is subjected to the display enhancement processing of the optimization operation corresponding to the target optimization parameter (i.e. partial optimization parameter), and then is transmitted to the surface flag for rendering and subsequent optimization operation on the screen, so that the displayed video image achieves the effect of high visual effect. For example, when all the optimization parameters in the HQV module include optimization parameters of exposure enhancement, denoising, edge sharpening, contrast increase, and saturation increase, and the selected part of the optimization parameters include exposure enhancement and contrast increase, the exposure enhancement and contrast increase optimization operation is performed on the image data to be rendered, and then the subsequent playing is performed. It can be understood that different partial optimization parameters are selected to achieve different effects of improving the image quality.
Further, when a part of the optimization parameters is selected from all the optimization parameters as the target optimization parameters, the part of the preset optimization parameters may be used as the target optimization parameters for performing the display enhancement processing, and the part of the preset optimization parameters is the part of the optimization parameters in all the optimization parameters. That is, when the display enhancement processing of the partial optimization parameters needs to be performed on the playing video, the display enhancement processing can be performed on the playing video by directly using the set partial optimization parameters.
Of course, when part of the optimization parameters are selected from all the optimization parameters as the target optimization parameters, the optimization parameters may also be selected according to a set rule, for example, the set rule may be to obtain the corresponding optimization parameters according to the current load rate of the processor, or select a set number of optimization parameters according to the set optimization priority. Of course, the specific set rule may not be limited in the embodiments of the present application.
The method has the advantages that when the source of the played video is determined to be the local file, the played video is subjected to display enhancement processing of partial optimization parameters, the played video is the local file, and the display enhancement processing is only performed on the played video according to the partial optimization parameters, so that occupied resources are not too much, processor burden is not too large, the played video has high visual effect, and meanwhile smoothness of video playing is guaranteed.
Step S240: and when the source is not the local file, judging whether the played video is a video file acquired from the network in real time.
It is understood that, when the source of the playing video is not the local file in step S220, it indicates that the playing video may originate from the network in real time. When the played video comes from the network in real time, the played video can be played only by a third-party player, so that the occupied system resources are more, and the burden of a processor is larger. If the display enhancement processing is performed on the playing video at this time, the processor may be overloaded and pause may occur in the video playing. Therefore, when the source of the playing video is not a local file, it can be determined whether the playing video is a video file acquired from a network in real time, that is, whether the playing video is derived from the network in real time, so as to determine whether to perform display enhancement processing on the playing video.
Step S250: and when the played video is a video file acquired from a network in real time, forbidding display enhancement processing on the played video.
In the embodiment of the present application, since the display enhancement processing may generate a pause when the source of the played video is the network, the display enhancement processing on the played video may be prohibited when the source of the played video is determined to be the network, that is, the display enhancement processing on the played video is not performed, and the played video is directly played, so as to reduce the resource occupied by the played video in the processor, and avoid the pause when the processor is overloaded to generate the played video.
Of course, in the embodiment of the present application, when it is determined that the played video is a video file obtained from a network in real time, the played video may also be subjected to display enhancement processing according to a part of the above-mentioned optimized parameters. That is, as a parallel scheme of the step S250, when the played video comes from the network in real time, the display enhancement processing may be performed on the played video according to a part of the optimized parameters in all the optimized parameters.
It can be understood that, when the electronic device plays a video originating from a network in real time, the system resources occupied by playing the video are more, and the processor is more burdened compared with playing a local video. And when the configuration of the electronic equipment is higher and the performance of the processor is better, the display enhancement processing can be performed on the played video when the network video is played. However, when a video from a network in real time is played, the played video is subjected to display enhancement processing, and then part of the optimized parameters are selected from all the optimized parameters for performing display enhancement processing on the played video, so that the phenomenon that the processor is overloaded due to too many resources occupied by video playing can be effectively avoided, the display effect of the played video is improved, and meanwhile, the smoothness of the video playing is ensured. When the played video is not a video from a network in real time, the played video can be subjected to display enhancement processing according to all the optimization parameters, or the played video can be subjected to display enhancement processing according to part of the optimization parameters in all the optimization parameters, so that the image quality of the played video is improved.
According to the video processing method provided by the embodiment of the application, when the video is played, the source of the played video is detected, when the source of the played video is a local file, the played video is displayed and enhanced according to all optimized parameters, or the played video is displayed and enhanced according to partial optimized parameters, so that the visual effect of the played video is improved, and the video playing is prevented from being blocked. In addition, when the played video is a video file acquired from a network in real time, the played video is not subjected to display enhancement processing, or the played video is subjected to display enhancement processing according to part of optimized parameters, so that the video is prevented from being blocked during playing.
Referring to fig. 4, another embodiment of the present application provides a video processing method, which can be applied to an electronic device, and the video processing method can include:
step S310: when the video is played, the source of the played video is detected.
Step S320: and judging whether the source of the playing video is a local file.
In the embodiment of the present application, step S310 and step S320 may refer to the content of the above embodiments, and are not described herein again.
Step S330: and when the source is a local file, acquiring video parameter values of the played video, wherein the video parameter values comprise at least one of code rate, resolution and frame rate.
In the embodiment of the application, when it is determined that the source of the played video is the local file, that is, the played video is from the local file, because the task of playing the video occupies less system resources, the played video can be displayed and enhanced, and the playing video is not blocked due to an excessive burden on the processor.
Further, when it is determined that the source of the played video is not the network, and when the display enhancement processing is performed on the played video, the display enhancement processing of the optimization operation of all the optimization parameters may be performed on the played video, or the display enhancement processing of the optimization operation of part of the optimization parameters may be performed. Wherein all optimization parameters refer to all optimization parameters set in the HQV module described above.
Specifically, when the source of the playing video is a local file, the parameter value of the playing video may be obtained, so as to determine, according to the parameter value of the playing video, display enhancement processing for performing optimization operation of all optimization parameters on the playing video, or display enhancement processing for performing optimization operation of part of optimization parameters. The parameter value of the playing video comprises at least one of code rate, resolution and frame rate. The code rate of the video refers to the number of data bits transmitted in unit time during data transmission, and the code rate of the video is in direct proportion to the quality of the video, but the file volume is also in direct proportion to the code rate. Resolution, which is a parameter used to measure the amount of data in an image, determines the fineness of the details of a bitmap image, and generally, the higher the resolution of an image, the more pixels are included, the clearer the image is, and at the same time, it also increases the storage space occupied by the file. The frame rate is a measure for measuring the number of display frames, i.e., the number of frames per second, and the higher the frame rate is, the more pictures correspond to a video, and thus the larger the video file is. When the video parameter value is obtained, the video attribute information carried by the video file may be identified and obtained, and a specific manner of obtaining the video parameter value may not be limited.
It can be understood that the larger the above video parameter value is, the better the corresponding video quality is, and the better the played video effect is, but because the corresponding file is larger, the more resources are occupied when the video is played. Therefore, the video parameters of the played video can be detected, so that the played video is subjected to display enhancement processing according to the video parameters.
Step S340: and judging whether the video parameter value is lower than a set threshold value.
In the embodiment of the application, after the video parameter value of the playing video is acquired, whether the video parameter value is set with the threshold value or not can be judged. It is understood that when the video parameter values include a plurality of parameter values, each parameter value may be compared with its corresponding set threshold to determine whether the set threshold is lower than the set threshold. For example, when the video parameter value includes a code rate and a resolution, it is determined whether the obtained code rate is lower than a code rate threshold, and it is determined whether the obtained resolution is lower than a resolution threshold. The set threshold may be set to a value for distinguishing the size of resources occupied by the video parameter during playing, and when the video parameter is lower than the set threshold, the resources occupied by the video parameter during playing are smaller, and when the video parameter is higher than the set threshold, the video parameter occupies more resources. The specific set threshold may not be limited in this embodiment, and may be determined according to the type of the video parameter.
Step S350: and if the video content is lower than the set threshold, performing display enhancement processing on the played video according to all the optimized parameters.
In this embodiment of the present application, when it is determined in step S350 that the video parameter value of the played video is lower than the set threshold, the resources occupied by the played video during playing are less, and at this time, the played video may be subjected to display enhancement processing according to all the above-mentioned optimized parameters. When the video parameter values include a plurality of types, the display enhancement processing may be performed on the played video according to all the optimized parameters when each video parameter value is lower than the corresponding set threshold value.
That is, when the video parameter value of the playing video derived from the local file is lower than the set threshold, all the optimization parameters in the HQV algorithm module may be selected as the optimization parameters for performing the display enhancement processing on the playing video. Then, according to all the optimization parameters, performing display enhancement processing on the played video, namely, the played video, wherein the decoded video data is used as image data to be rendered, and is intercepted by the HQV algorithm module, after the HQV algorithm module stores the image data to be rendered into the off-screen rendering buffer area, the image of the multi-frame image data in the off-screen rendering buffer area is subjected to display enhancement processing of optimization operations corresponding to all the optimization parameters, and then is transmitted to the surface flag for rendering and subsequent optimization operations on the screen, so that the displayed video image achieves the effect of super-visibility. For example, when all the optimization parameters in the HQV module include optimization parameters of exposure enhancement, denoising, edge sharpening, contrast increase and saturation increase, the optimization operations of exposure enhancement, denoising, edge sharpening, contrast increase and saturation increase are performed on the image data to be rendered, and then the subsequent playing is performed.
The method has the advantages that the played video is subjected to display enhancement processing of all optimized parameters when the fact that the source of the played video is not the network and the video parameter value of the played video is lower than the set threshold value is determined, the played video is not the source network, and the video parameter value is lower, so that the occupied resources are not too much, the processor is not overloaded, the played video has super-clear visual effect, and meanwhile the smoothness of video playing is guaranteed.
Step S360: and if the video is not lower than the set threshold, performing display enhancement processing on the played video according to part of the optimized parameters in all the optimized parameters.
In this embodiment of the present application, when it is determined in step S350 that the video parameter value of the played video is not lower than the set threshold, the resources occupied by the played video during playing may be more, and at this time, the played video may be subjected to display enhancement processing according to part of the optimized parameters in all the optimized parameters. When the video parameter values include multiple types, the display enhancement processing can be performed on the played video according to part of the optimized parameters in all the optimized parameters when any one of the video parameter values is not lower than the corresponding set threshold value.
That is to say, when the video parameter value of the playing video from the local file is not lower than the set threshold, the image data to be rendered may be subjected to display enhancement processing of optimization operation corresponding to part of the optimization parameters, and then transmitted to the surface flicker for rendering and subsequent optimization operation on the screen, so that the displayed video image achieves the effect of high visual efficiency. For example, when the selected part of the optimization parameters includes contrast increase and saturation increase, the image data to be rendered is subjected to optimization operation of contrast increase and saturation increase, and then is subsequently played.
In the embodiment of the present application, when a part of the optimization parameters is selected as the target optimization parameters from all the optimization parameters, the part of the preset optimization parameters may be used as the target optimization parameters for performing the display enhancement processing, and the part of the preset optimization parameters is the part of the optimization parameters in all the optimization parameters. That is, when the display enhancement processing of the partial optimization parameters needs to be performed on the playing video, the display enhancement processing can be performed on the playing video by directly using the set partial optimization parameters. Of course, when part of the optimization parameters are selected from all the optimization parameters as the target optimization parameters, the optimization parameters may also be selected according to a set rule, for example, the set rule may be to obtain the corresponding optimization parameters according to the current load rate of the processor, or select a set number of optimization parameters according to the set optimization priority. Of course, the specific set rule may not be limited in the embodiments of the present application.
The method has the advantages that the played video is subjected to display enhancement processing of partial optimization parameters when the fact that the source of the played video is not the network but the video parameters are high is determined, and the played video is not the source network and is only subjected to display enhancement processing according to the partial optimization parameters, so that the occupied resources are not too much, the processor is not overloaded, the played video has high visual effect, and meanwhile the smoothness of video playing is guaranteed.
Step S370: and when the source is not the local file, judging whether the played video is a video file acquired from the network in real time.
In this embodiment, the step S370 may refer to the contents of the above embodiments, and is not described herein again.
Step S380: and when the played video is a video file acquired from a network in real time, performing display enhancement processing on the played video according to part of the optimization parameters in all the optimization parameters.
In this embodiment of the application, when it is determined in step S380 whether the played video is a video file obtained from a network in real time, that is, when the played video comes from the network in real time, the played video may be subjected to display enhancement processing according to part of the above-mentioned optimized parameters. It can be understood that, when the electronic device plays the video from the network in real time, the video playing occupies more system resources, and the processor has a larger burden compared with the local video playing, so that the display enhancement processing of the optimized operation corresponding to the partial display enhancement parameters is only performed on the played video, and the excessive burden of the processor and the video playing jam can be effectively avoided.
Of course, in this embodiment of the present application, when it is determined that the played video is a video file obtained from the network in real time, the display enhancement processing on the played video may not be performed, that is, as a parallel scheme of the step S380, when the played video is a video file obtained from the network in real time, the display enhancement processing on the played video is prohibited, that is, the played video is directly played, so as to reduce the resource occupied by the played video in the processor, and avoid the processor from being overloaded and causing the video to be jammed during playing.
In this embodiment of the present application, performing display enhancement processing on a playing video according to a part of optimization parameters in all optimization parameters may include:
acquiring a current network state; judging whether the network state is a set state, wherein the set state comprises that the network signal intensity is higher than the target intensity or the network speed is higher than the target speed; and when the network state is a set state, performing display enhancement processing on the played video according to part of the optimized parameters in all the optimized parameters.
It can be understood that when the played video is a video file obtained from a network in real time, the video playing is easily affected by the network state of the electronic device, when the network state is poor, the video playing may be blocked, and at this time, the played video is further subjected to display enhancement processing, so that the probability of blocking is easily increased. Therefore, in the embodiment of the present application, the current network state of the electronic device may be obtained, so as to determine whether to perform display enhancement processing on the played video according to the network state.
The network status may include status information such as network signal strength, network speed, etc. of the electronic device. When the electronic device is an android operating system-based device, the NetworkInfo object corresponding to the ConnectivityManager object can be obtained after the ConnectivityManager object is obtained, and then information about network connection is taken out of the NetworkInfo object. The ConnectivityManager object is used for viewing network states and managing network connection related operations, and the NetworkInfo object contains all information of network connections.
The setting state may be a state in which the network condition of the electronic device is good, and may include: the network signal intensity of the electronic device is higher than the target intensity, the network speed of the electronic device is higher than the target speed, and the like. In the setting state, the display enhancement processing can be performed on the played video according to part of the optimized parameters in all the optimized parameters. When the video is judged not to be in the set state, the display enhancement processing of the played video can be prohibited, namely the display enhancement processing of the played video is not performed.
As a mode, the optimization parameters may be selected according to the optimization priorities of the optimization parameters. The optimization priority of the selected part of optimization parameters is greater than the optimization priorities of other optimization parameters, and the other optimization parameters are optimization parameters except the part of optimization parameters in all the optimization parameters.
In the embodiment of the present application, after the optimization priority of each optimization parameter is obtained, the optimization parameter may be selected according to the optimization priority of each optimization parameter. As an embodiment, the optimization parameters of the target number may be selected according to the optimization priority of each optimization parameter, for example, according to a sorting result of the optimization priorities of the optimization parameters from high to low, the optimization parameters of the previous target number are selected from the sorting result, that is, the priorities of the optimization parameters of the selected target number are all greater than the priorities of the other optimization parameters. When the target number is set and the optimization parameters which need to meet the target number are any optimization parameters, the processor can smoothly execute the display enhancement processing. Therefore, when the played video is subjected to display enhancement processing later, the processing can be carried out according to the optimization parameters with high priority. As one mode, when the optimization priority is the priority established in the order from high to low according to the picture optimization quality corresponding to the optimization parameter, the picture optimization quality corresponding to the partial optimization parameter is higher than the picture optimization quality corresponding to the other optimization parameters, and the processor can smoothly perform the operation of the display enhancement processing when performing the display enhancement processing according to the target optimization parameter. Therefore, when the played video is subjected to display enhancement processing according to the partial optimization parameters, the quality of the video picture can be higher.
When the played video is not a video from a network in real time, the played video can be subjected to display enhancement processing according to all the optimization parameters, or the played video can be subjected to display enhancement processing according to part of the optimization parameters in all the optimization parameters, so that the image quality of the played video is improved.
According to the video processing method provided by the embodiment of the application, when the video is played, the source of the played video is detected, and when the source of the played video is a local file, according to the video parameters of the played video, display enhancement processing corresponding to all optimized parameters is performed on the played video, or display enhancement processing corresponding to part of the optimized parameters is performed on the played video, so that the picture quality of the video is improved, and the video is effectively prevented from being blocked during playing. In addition, when the played video is a video file acquired from a network in real time, display enhancement processing corresponding to part of the optimized parameters is performed on the played video, or the display enhancement processing is not performed on the played video, so that the video is prevented from being jammed when being played.
Referring to fig. 5, a block diagram of a video processing apparatus according to an embodiment of the present application is shown. The video processing apparatus 400 may include: a video source detection module 410, a video source determination module 420, and a display enhancement module 430. The video source detection module 410 is configured to detect a source of a playing video when playing the video; the video source determining module 420 is configured to determine whether the source of the played video is a local file; the display enhancement module 430 is configured to perform display enhancement processing on the played video when the source is a local file, where the display enhancement processing improves the quality of the played video by processing images in the played video through optimization parameters.
As an implementation, the display enhancement module 430 may be specifically configured to: when the source is a local file, selecting all optimization parameters as target optimization parameters for performing display enhancement processing on the played video; and performing display enhancement processing on the played video according to the target optimization parameters.
As another embodiment, the display enhancement module 430 may be specifically configured to: when the source is a local file, selecting part of optimization parameters from all the optimization parameters as target optimization parameters for performing display enhancement processing on the played video; and performing display enhancement processing on the played video according to the target optimization parameters.
As another embodiment, the display enhancement module 430 may be specifically configured to: when the source is a local file, acquiring a video parameter value of the played video, wherein the video parameter value comprises at least one of code rate, resolution and frame rate; judging whether the video parameter value is lower than a set threshold value or not; if the video content is lower than the set threshold, performing display enhancement processing on the played video according to all the optimization parameters; and if the video is not lower than the set threshold, performing display enhancement processing on the played video according to part of the optimized parameters in all the optimized parameters.
In the embodiment of the present application, please refer to fig. 6, the video processing apparatus 400 may further include: a file judging module 440 and an enhanced executing module 450. The file determining module 440 is configured to determine whether the played video is a video file obtained from a network in real time when the source is not a local file; the enhancement execution module 450 is configured to perform display enhancement processing on the played video according to a part of the optimized parameters in all the optimized parameters when the played video is a video file acquired from a network in real time.
The enhanced execution module 450 may be specifically configured to: acquiring a current network state; judging whether the network state is a set state, wherein the set state comprises that the network signal intensity is higher than the target intensity or the network speed is higher than the target speed; and when the network state is a set state, performing display enhancement processing on the played video according to part of the optimized parameters in all the optimized parameters.
In the embodiment of the present application, please refer to fig. 7, the video processing apparatus 400 may further include: a file determination module 440 and an enhancement prohibition module 460. The file determining module 440 is configured to determine whether the played video is a video file obtained from a network in real time when the source is not a local file; the enhancement prohibition module 460 is configured to prohibit the display enhancement processing on the played video when the played video is a video file obtained from a network in real time.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
In summary, according to the scheme provided by the application, when video playing is performed, a source of the played video is detected, whether the source of the played video is a network is judged, and when the source is not the network, display enhancement processing is performed on the played video. Because the played video is displayed and enhanced only when the source of the played video is not the network, the video playing jam caused by the display enhancement processing of the video from all the sources can be avoided, and the video playing fluency is improved.
Referring to fig. 8, a block diagram of an electronic device according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a screen 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform the methods as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA).
The processor 110 may integrate one or more of a Central Processing Unit (CPU) 111, a Graphics Processing Unit (GPU) 112, a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The screen 130 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic device, which may be configured by graphics, text, icons, numbers, video, and any combination thereof, and in one example, a touch screen may be provided on the display panel so as to be integrated with the display panel.
Referring to fig. 9, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (6)

1. A method of video processing, the method comprising:
when video playing is carried out, detecting the source of the played video;
judging whether the source of the playing video is a local file or not;
when the source is a local file, selecting all optimization parameters as target optimization parameters for performing display enhancement processing on the played video, wherein the optimization parameters comprise exposure enhancement, denoising, edge sharpening, contrast enhancement and saturation increase;
performing display enhancement processing on the played video according to the target optimization parameters, wherein the display enhancement processing improves the image quality of the played video by processing images in the played video through the optimization parameters;
when the source is not a local file, judging whether the played video is a video file acquired from a network in real time;
and when the played video is a video file acquired from a network in real time, performing display enhancement processing on the played video according to part of the optimized parameters in all the optimized parameters.
2. The method according to claim 1, wherein when the source is a local file, selecting all optimization parameters as target optimization parameters for performing display enhancement processing on the played video comprises:
when the source is a local file, acquiring a video parameter value of the played video, wherein the video parameter value comprises at least one of code rate, resolution and frame rate;
judging whether the video parameter value is lower than a set threshold value or not;
and if the optimal parameters are lower than the set threshold, selecting all the optimal parameters as target optimal parameters for performing display enhancement processing on the played video.
3. The method according to claim 1, wherein the performing a display enhancement process on the played video according to a part of the optimization parameters comprises:
acquiring a current network state;
judging whether the network state is a set state, wherein the set state comprises that the network signal intensity is higher than the target intensity or the network speed is higher than the target speed;
and when the network state is the set state, performing display enhancement processing on the played video according to part of the optimized parameters in all the optimized parameters.
4. A video processing apparatus, characterized in that the apparatus comprises: a video source detection module, a video source judgment module, a display enhancement module, a file judgment module and an enhancement execution module, wherein,
the video source detection module is used for detecting the source of the played video when the video is played;
the video source judging module is used for judging whether the source of the played video is a local file;
the display enhancement module is used for selecting all optimization parameters as target optimization parameters for performing display enhancement processing on the played video when the source is a local file, wherein the optimization parameters comprise exposure enhancement, denoising, edge sharpening, contrast enhancement and saturation enhancement;
the display enhancement module is further used for performing display enhancement processing on the played video according to the target optimization parameters, and the display enhancement processing improves the image quality of the played video by processing images in the played video through the optimization parameters;
the file judging module is used for judging whether the playing video is a video file acquired from a network in real time when the source is not a local file;
and the enhancement execution module is used for performing display enhancement processing on the played video according to part of the optimized parameters in all the optimized parameters when the played video is a video file acquired from a network in real time.
5. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-3.
6. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 3.
CN201811438276.2A 2018-11-27 2018-11-27 Video processing method and device, electronic equipment and storage medium Active CN109587561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811438276.2A CN109587561B (en) 2018-11-27 2018-11-27 Video processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811438276.2A CN109587561B (en) 2018-11-27 2018-11-27 Video processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109587561A CN109587561A (en) 2019-04-05
CN109587561B true CN109587561B (en) 2020-12-22

Family

ID=65924987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811438276.2A Active CN109587561B (en) 2018-11-27 2018-11-27 Video processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109587561B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827723B (en) * 2022-04-25 2024-04-09 阿里巴巴(中国)有限公司 Video processing method, device, electronic equipment and storage medium
CN115134661A (en) * 2022-06-28 2022-09-30 龙芯中科(合肥)技术有限公司 Video processing method and video processing application
CN116668773B (en) * 2022-11-22 2023-12-22 荣耀终端有限公司 Method for enhancing video image quality and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780942B (en) * 2013-12-23 2017-07-11 青岛海信电器股份有限公司 A kind of information configuring methods and device
CN105872843B (en) * 2016-04-18 2019-02-19 青岛海信电器股份有限公司 A kind of method and device playing video
CN107948733B (en) * 2017-12-04 2020-07-10 腾讯科技(深圳)有限公司 Video image processing method and device and electronic equipment
CN108712674A (en) * 2018-05-17 2018-10-26 深圳创维-Rgb电子有限公司 Video playing control method, playback equipment and storage medium

Also Published As

Publication number Publication date
CN109587561A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN110377257B (en) Layer composition method and device, electronic equipment and storage medium
CN109361950B (en) Video processing method and device, electronic equipment and storage medium
CN109151966B (en) Terminal control method, terminal control device, terminal equipment and storage medium
CN109379627B (en) Video processing method, video processing device, electronic equipment and storage medium
CN110377263B (en) Image synthesis method, image synthesis device, electronic equipment and storage medium
CN109379624B (en) Video processing method and device, electronic equipment and storage medium
WO2020107989A1 (en) Video processing method and apparatus, and electronic device and storage medium
WO2020108018A1 (en) Game scene processing method and apparatus, electronic device, and storage medium
US20210281718A1 (en) Video Processing Method, Electronic Device and Storage Medium
CN109587546B (en) Video processing method, video processing device, electronic equipment and computer readable medium
CN109640167B (en) Video processing method and device, electronic equipment and storage medium
CN109587561B (en) Video processing method and device, electronic equipment and storage medium
CN109640179B (en) Video decoding control method and device and electronic equipment
CN110363831B (en) Layer composition method and device, electronic equipment and storage medium
CN109120988B (en) Decoding method, decoding device, electronic device and storage medium
CN109688465B (en) Video enhancement control method and device and electronic equipment
CN109587555B (en) Video processing method and device, electronic equipment and storage medium
US11562772B2 (en) Video processing method, electronic device, and storage medium
CN109688462B (en) Method and device for reducing power consumption of equipment, electronic equipment and storage medium
WO2020108060A1 (en) Video processing method and apparatus, and electronic device and storage medium
CN109120979B (en) Video enhancement control method and device and electronic equipment
WO2020107992A1 (en) Video processing method, device, electronic device and storage medium
WO2020107970A1 (en) Video decoding method and apparatus, electronic device, and storage medium
CN110377258B (en) Image rendering method and device, electronic equipment and storage medium
US10484640B2 (en) Low power video composition using a stream out buffer

Legal Events

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