CN109361950A - Method for processing video frequency, device, electronic equipment and storage medium - Google Patents

Method for processing video frequency, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109361950A
CN109361950A CN201811429227.2A CN201811429227A CN109361950A CN 109361950 A CN109361950 A CN 109361950A CN 201811429227 A CN201811429227 A CN 201811429227A CN 109361950 A CN109361950 A CN 109361950A
Authority
CN
China
Prior art keywords
video
display
playing
surplus resources
processing
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.)
Granted
Application number
CN201811429227.2A
Other languages
Chinese (zh)
Other versions
CN109361950B (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 CN201811429227.2A priority Critical patent/CN109361950B/en
Publication of CN109361950A publication Critical patent/CN109361950A/en
Application granted granted Critical
Publication of CN109361950B publication Critical patent/CN109361950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/44004Processing 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 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, 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
    • 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/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • 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

Abstract

This application discloses a kind of method for processing video frequency, device, electronic equipment and storage mediums, the described method includes: in the mode of display enhancing processing for opening video playing, the surplus resources of measurement processor, the display enhancing processing handle the image in the broadcasting video by Optimal Parameters and improve the image quality for playing video;Compare the surplus resources and resource threshold;If the surplus resources are less than the resource threshold, the display enhancing only is carried out to the partial content for playing video and is handled.This method can reduce Caton when video playing.

Description

Method for processing video frequency, device, electronic equipment and storage medium
Technical field
This application involves technical field of electronic equipment, set more particularly, to a kind of method for processing video frequency, device, electronics Standby and storage medium.
Background technique
Electronic equipment, such as computer, mobile phone etc. have become most common consumer electronic product in people's daily life One of.With the development of electronic equipment, more and more users carry out the broadcasting of video using electronic equipment, but are utilizing electronics When equipment carries out video playing, it is possible that display Caton.
Summary of the invention
In view of the above problems, present applicant proposes a kind of method for processing video frequency, device, electronic equipments and computer-readable Storage medium, to reduce Caton when video playing.
In a first aspect, the embodiment of the present application provides a kind of method for processing video frequency, which comprises broadcast opening video When the mode for the display enhancing processing put, the surplus resources of measurement processor, the display enhancing processing passes through at Optimal Parameters The image managed in the broadcasting video improves the image quality for playing video;Compare the surplus resources and resource threshold;If When the surplus resources are less than the resource threshold, the display enhancing only is carried out to the partial content for playing video and is handled.
Second aspect, the embodiment of the present application provide a kind of video process apparatus, and described device includes: resources measurement mould Block, resource comparison module and display enhancing module, wherein the resources detection module is used in the display for opening video playing When enhancing the mode of processing, the surplus resources of measurement processor, the display enhancing processing described in Optimal Parameters processing by broadcasting It puts the image in video and improves the image quality for playing video;The resource comparison module is for the surplus resources and money Source threshold value;If the display enhancing module is less than the resource threshold for the surplus resources, only to broadcasting video Partial content carries out the display enhancing processing.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Memory; One or more application program, wherein one or more of application programs be stored in the memory and be configured as by One or more of processors execute, and one or more of programs are configured to carry out the video that above-mentioned first aspect provides Processing method.
Fourth aspect, the embodiment of the present application provides a kind of computer-readable storage medium, described computer-readable Program code is stored in storage medium, said program code can be called the video for executing above-mentioned first aspect and providing by processor Processing method.
Scheme provided by the present application, when by enhancing the mode of processing in the display for opening video playing, measurement processor Surplus resources, then compare surplus resources and resource threshold, if surplus resources be less than resource threshold, only to play video Partial content carry out display enhancing processing.When being less than resource threshold due to the surplus resources of processor, only to broadcasting video Partial content carries out display enhancing processing, therefore can be excessive to avoid the occupied resource of display enhancing processing, to reduce view Caton when frequency plays.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows the block diagram according to video playing framework provided by the embodiments of the present application.
Fig. 2 shows the method for processing video frequency flow charts according to the application one embodiment.
Fig. 3 shows the method for processing video frequency flow chart according to another embodiment of the application.
Fig. 4 shows the method for processing video frequency flow chart according to another embodiment of the application.
Fig. 5 shows a kind of block diagram of the video process apparatus according to the application one embodiment.
Fig. 6 shows the block diagram that enhancing module is shown in the video process apparatus according to the application one embodiment.
Fig. 7 is the embodiment of the present application for executing the electronic equipment of the method for processing video frequency according to the embodiment of the present application Block diagram.
Fig. 8 is the embodiment of the present application for saving or carrying the method for processing video frequency realized according to the embodiment of the present application Program code storage unit.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
Currently, most electronic equipment, such as computer, mobile phone, tablet computer etc. are, it can be achieved that broadcasting to video.In electronics When equipment carries out the broadcasting of video, the operating system of electronic equipment can parse sound after getting video data to be played Video data.Usual video file is made of video flowing and audio stream two parts, the encapsulation lattice of different video format audio-videos Formula will be different.The process of audio stream and video flowing composite document is known as muxer (merging file).The corresponding inverse mistake of muxer Journey is then that the process of separating audio stream and video flowing is known as demuxer (separate file) from media file.Playing video file When, it needs to isolate audio stream and video flowing from file stream, it is decoded respectively, decoded video frame can be direct Rendering, the buffer area that audio frame can be sent to audio output apparatus play out, certainly, the time of Video Rendering and audio broadcasting Stamp is had to control and is synchronized.
Wherein, video decoding may include hard decoder and soft decoding, and hardware decoding is that original whole is transferred to central processing Device (Central Processing Unit, CPU) transfers to image processor come a part of the video data handled (Graphics Processing Unit, GPU) is done, and the concurrent operation ability of GPU will be significantly larger than CPU, in this way can be with It greatly reduces the load to CPU, some other programs can be run simultaneously after the occupancy of CPU is lower.When So, for the processor of better performances, software decoding also can be used, i.e., solved by the decoding software program in CPU Code.
Referring to Fig. 1, showing the block diagram of the video playing framework of electronic equipment.When player is broadcasting using hard decoder When putting device, Media Framework (multimedia framework) obtains client by the api interface of the client with player and waits broadcasting The video file put, and Video Decode (Video Decoder) is transferred to be decoded, to obtain decoded video data, i.e., Image data to be rendered.Wherein, Media Framework is multimedia framework in android system, Media Framework may include MediaPlayer (media player), MediaPlayerService (media player service) and Tri- parts Stagefrightplayer.Specifically, multimedia framework part uses the structure of C/S, MediaPlayer conduct The Client (client) of C/S structure is held, and MediaPlayerService and Stagefrightplayer are as C/S structure The end Server (service), carries the responsibility for playing multimedia file, and by Stagefrightplayer, the end Server is completed The request at the end Client simultaneously makes a response.Video Decode be can with decoding audio data and the decoder of video data, For by video data decoding.After Video Decode is decoded above-mentioned video file, then it can be driven by video Decoded video data transmission to SurfaceFlinger (figure layer transfer module) render and in screen by dynamic program In display.SurfaceFlinger is an independent Service (service), it receives all Window (window) Surface (surface layer), according to parameters such as ZOrder (node sequencing), transparency, size, positions, is calculated each as input Then HWComposer or OpenGL (Open Graphics is transferred in position of the Surface in final composograph Library, open graphic library) final display Buffer (buffering) is generated, it is then shown in specific display equipment.
When player is using soft decoded player, i.e., processing is decoded to video by CPU by software, solved It recalls after code after GPU merges Video Rendering and shows on the screen.And hard decoder, refer to without the help of CPU, and by special Subcard equipment carrys out complete independently video decoding task.
In the embodiment of the present application, electronic equipment can carry out at the display enhancing of video playing in video display process Reason.Specifically, after obtaining decoded video data by hard decoder or soft decoding, decoded video data conduct Image data to be rendered can be by HQV when image data to be rendered is sent to SurfaceFlinger (Hollywood Quality Video, Hollywood quality image) algoritic module is intercepted and is then forwarded to after optimizing SurfaceFlinger does rendering and subsequent display operation on the screen.HQV algoritic module is used for will be above-mentioned to be rendered Image data is stored to off screen Render Buffer, to the image of the multiple image data in off screen Render Buffer, is passed through Exposure enhancing, denoising, edge sharpening, contrast increases and the Optimal Parameters such as saturation degree increases, and carries out display enhancing processing And then it is transmitted to SurfaceFlinger and carries out rendering and subsequent optimization operation on the screen.Wherein, above-mentioned display increases The image quality for playing video can be improved in strength reason, and image quality includes clarity, acutance, lens distortion, color, resolution, colour gamut model It encloses, purity etc., can there is different display reinforcing effects by its different combination.Reach group different in above-mentioned image quality Conjunction mode can be realized by controlling above-mentioned Optimal Parameters.Wherein, it should be noted that the display enhancing for playing video is handled It is also understood that for the sequence of operations done before formally handle to broadcasting video, including image enhancement and image are answered Original etc., image enhancement are to add some information or transformation data to original image by certain means, selectively protrude image In interested feature or inhibit image in certain unwanted features, so that image is matched with Optimal Parameters, so as to improve Picture quality reinforces visual effect, so that the video image of display achievees the effect that super clear visual effect.Specifically, Rendering result is put into frame after the above-mentioned image data of GPU realization can be called to be rendered and synthesized and buffered by SurfaceFlinger Area, subsequent Video Controller read the data of frame buffer zone, pass to display by digital-to-analogue conversion and show, so as to realize The display enhancing that video is shown.
It is shared when can make video playing but inventor has found that when opening the function of showing enhancing processing The resource of processor increases, and when the surplus resources of processor are less, it may result in Caton when video playing.Cause This, for the technical problem, inventor is by studying for a long time and proposing video processing side provided by the embodiments of the present application Method, device, electronic equipment and computer-readable storage medium pass through the mould in the display enhancing processing for opening video playing When formula, the surplus resources of measurement processor only carry out the partial content for playing video when surplus resources are less than resource threshold It shows enhancing processing, avoids the occupied resource of display enhancing processing excessive, thus Caton when reducing video playing.
It describes in detail below to the method for processing video frequency of the embodiment of the present application.
Referring to Fig. 2, the embodiment of the present application provides a kind of method for processing video frequency, electronic equipment can be applied to, the video Processing method may include:
Step S110: in the mode of display enhancing processing for opening video playing, the surplus resources of measurement processor, institute It states display enhancing processing and handles the image quality that the image in the broadcasting video improves the broadcasting video by Optimal Parameters.
When electronic equipment carries out video playing, to promote the display effect for playing video, can be shown to video is played Show that enhancing is handled.And when carrying out display enhancing processing, the resource of occupied processor when video playing can be made to increase, work as place When the surplus resources of reason device are less, Caton when video playing may result in.Display enhancing processing is handled by Optimal Parameters Play the image in video and improve the image quality for playing video, it is specific show enhancing processing can refering to it is above-mentioned to display enhancing at The description of reason.
It in the embodiment of the present application, can be when determining video playing, when showing that the mode of enhancing processing is opened, to place The surplus resources of reason device are detected, and so as to the surplus resources of subsequent follow-up processor, are carried out to the operation of display enhancing processing Control.Wherein, processor may include central processing unit and/or image processor.Surplus resources are that the total resources of processor subtract Go remaining resource after the occupied resource of active program.
In some embodiments, when can work by detecting the video playing framework of electronic equipment, determine that electronics is set It is standby to carry out video playing.Whether used correlation module works when alternatively, it is also possible to detect video playing, to determine electronics Equipment is carrying out video playing, for example, when detecting that Video Decoder, figure layer transfer module and video player etc. are in work When state, detect that electronic equipment is carrying out video playing.Certainly, specifically detection electronic equipment is currently carrying out video playing Mode is not intended as limiting in the embodiment of the present application.
In some embodiments, it can be set in the system interface of electronic equipment for carrying out display enhancing processing The switch button of mode, user can be turned on or off the mode of the display enhancing processing of video playing by the switch button. Whether opened by the way that detection is above-mentioned for switch button, when the switch button is opened, then shows the mode unlatching of enhancing processing; When the switch button is closed, then show that the mode of enhancing processing is closed.Certainly, the display of current electronic device is specifically determined The mode whether mode of enhancing processing opens is not intended as limiting in the embodiment of the present application.
In the embodiment of the present application, electronic equipment, can when the mode of display enhancing processing is opened when carrying out video playing It is detected with the surplus resources to processor, so as to the surplus resources of subsequent follow-up processor, to the behaviour of display enhancing processing It is controlled.In some modes, the service condition of central processing unit can detecte, to obtain the remaining money of central processing unit Source.For example, the ProcessStats in android system can be passed through when the operating system of terminal device is android system Class obtains the service condition and process-time of system.It is the file under reading/proc catalogue, system fortune that it, which implements principle, When row, kernel can remove the file under update/proc catalogue, the operating condition of PID is written in corresponding file, according to above-mentioned fortune Market condition can get the surplus resources of central processing unit.In some modes, the operating system of electronic equipment is Android system When system, the service condition of GPU can be obtained by adb order, such as pass through adb shell cat/sys/class/kgsl/ Kgsl-3d0/gpubusy obtains the service condition of GPU, to obtain the surplus resources of GPU.Certainly, above to obtain the surplus of processor The mode of remaining resource is only for example, and the mode of the surplus resources of specific measurement processor in the embodiment of the present application can be not as It limits.
It is thus possible to the surplus resources of processor be got, to control the operation of display enhancing processing.
Step S120: the surplus resources and resource threshold.
It in the embodiment of the present application, then can be by surplus resources and money after detection obtains the surplus resources of processor Source threshold value is compared, controlled to the operation of display enhancing processing according to the comparison result of surplus resources and resource threshold System.Wherein, resource threshold can be the uneven critical value for indicating the surplus resources of processor, when the residue money of processor When source is less than above-mentioned resource threshold, the surplus resources of processor are less, may not be able to smoothly execute display enhancing processing at this time Optimization operation, when the surplus resources of processor be more than or equal to above-mentioned resource threshold when, the surplus resources of processor are more, The optimization operation of display enhancing processing can be smoothly handled at this time.For example, the surplus resources of processor are with the maximum of processor When the percentage of resource is indicated, resource threshold can be 60%-80%, and certainly, the above resource threshold is only for example, specifically Resource threshold in the embodiment of the present application can be not as restriction, can according to actual needs and the performance of processor is true It is fixed, that is to say, that, still can smooth place when being lower than certain level due to its surplus resources when the performance of processor is strong The corresponding operation of reason display enhancing processing, therefore its corresponding resource threshold, resource threshold that can be weak with relative processor performance It is worth low.For example, the maximum operation frequency of two processors is respectively 2GHz and 4GHz, if maximum operation frequency is the place of 2GHz Managing the corresponding resource threshold of device is 20%, then the corresponding resource threshold of processor that maximum operation frequency is 4GHz can be 30%.
Step S130: if the surplus resources be less than the resource threshold, only to play video partial content into The row display enhancing processing.
In the embodiment of the present application, when the above-mentioned surplus resources for comparing processor are less than resource threshold, processor Surplus resources are less, may not be able to smoothly execute the operation of display enhancing processing at this time, therefore can be only to broadcasting video Partial content carries out display enhancing processing, without carrying out display enhancing processing to the full content for playing video, to reduce aobvious Show that enhancing handles the resource of occupied processor.Wherein, the partial content for playing video can be the video image for playing video Partial region, be also possible to play video partial video image, can also be play video partial video image finger Determine region, the partial content for specifically carrying out the broadcasting video of display enhancing processing can be not as restriction.
It is when carrying out display enhancing processing to the partial content for playing video, the contents of the section is corresponding decoded Video data is intercepted as image data to be rendered, above-mentioned HQV algoritic module, and HQV algoritic module will be above-mentioned to be rendered Image data store to off screen Render Buffer, the images of the multiple image data in off screen Render Buffer is carried out Exposure enhancing, denoising, edge sharpening, contrast increases and the display for the optimizations operations such as saturation degree increases enhances processing Afterwards, then be transmitted to SurfaceFlinger carry out rendering and it is subsequent on the screen optimization operation so that display video figure As achieving the effect that super clear visual effect.For example, when partial content is the partial region in the video image for play video, then to off screen The enhancing of partial region degree of being exposed, denoising, edge sharpening, comparison in the image of multiple image data in Render Buffer The display for the optimizations operations such as degree increases and saturation degree increases enhances processing and then carries out subsequent display, to improve broadcasting The image quality of video, image quality include clarity, acutance, lens distortion, color, resolution, gamut range, purity etc., make above-mentioned figure Partial region as in achievees the effect that super clear visual effect.
In the embodiment of the present application, when the surplus resources for comparing processor are more than or equal to resource threshold, due to The surplus resources of processor are more, can smoothly handle the optimization operation of display enhancing processing at this time, therefore can be to broadcasting The full content of video carries out display enhancing processing, or display enhancing processing can be carried out to the partial content for playing video.
Method for processing video frequency provided by the embodiments of the present application, by when video playing display enhancing processing mode when, The surplus resources of measurement processor only show the partial content for playing video when surplus resources are less than resource threshold Enhancing processing avoids display enhancing from handling occupied money without carrying out display enhancing processing to all the elements for playing video Source is excessive, thus Caton when reducing video playing.
Referring to Fig. 3, the application can be applied to electronic equipment another embodiment provides for a kind of method for processing video frequency, The method for processing video frequency may include:
Step S210: in the mode of display enhancing processing for opening video playing, the surplus resources of measurement processor, institute It states display enhancing processing and handles the image quality that the image in the broadcasting video improves the broadcasting video by Optimal Parameters.
Step S220: the surplus resources and resource threshold.
In the embodiment of the present application, step S210 and step S220 can be refering to the content of above-described embodiment, herein not It repeats again.
Step S230: if the surplus resources are less than the resource threshold, judge whether the surplus resources are greater than Given threshold, the given threshold are less than the resource threshold.
In the embodiment of the present application, if the above-mentioned surplus resources for comparing processor are less than resource threshold, at expression The surplus resources for managing device are less, may not be able to smoothly execute the display enhancing processing to all the elements for playing video at this time Optimization operation.If still carrying out display enhancing processing to all the elements for playing video at this time, video playing may cause Caton, therefore processor can be unable to smooth execution to play video all the elements carry out display enhancing processing the case where It is handled, it is excessive to avoid processor burden, and lead to Caton occur when video playing.
When the surplus resources of processor are less than resource threshold, since the remaining available resources of image processor are less, place The display enhancing for the partial content for playing video can currently may be handled with smooth processing by managing device, it is also possible to cannot be smooth To play video any content display enhance processing operation.Therefore, in the embodiment of the present application, when the residue of processor When resource is less than resource threshold, it can determine whether processor smoothly can also carry out display increasing to the partial content for playing video Strength reason.
Further, whether surplus resources can be judged when the surplus resources for comparing processor are less than resource threshold Greater than given threshold, wherein the given threshold is greater than resource threshold, to determine that the surplus resources when processor are less than resource threshold When, if display enhancing processing is carried out to the partial content for playing video.
In the embodiment of the present application, given threshold can be processor cannot smoothly to play video any content into Row display enhancing processing when surplus resources, with processor can also smoothly to play video partial content when surplus resources Critical value.That is, surplus resources are less it is also possible to supporting when the surplus resources of processor are greater than given threshold Display enhancing processing smoothly is carried out to the partial content for playing video;When the surplus resources of processor are not more than given threshold When, surplus resources have been not enough to support smoothly to carry out display enhancing processing to the partial content for playing video.
In the embodiment of the present application, given threshold can be determined according to performance of processor etc..As an implementation, It, still can be smoothly to broadcasting video when being lower than certain level due to its surplus resources when the performance of processor is strong Partial content carries out display enhancing processing, therefore its corresponding given threshold, given threshold that can be weak with relative processor performance It is low.For example, the maximum operation frequency of two processors is respectively 2GHz and 4GHz, if maximum operation frequency is the processing of 2GHz The corresponding given threshold of device is 15%, then the corresponding given threshold of processor that maximum operation frequency is 4GHz can be 20%. Certainly, the above given threshold is only for example, and does not represent the restriction to given threshold specific in the embodiment of the present application.
Step S240: if it is greater than the given threshold, only carrying out the display to the partial content for playing video enhances Processing.
In the embodiment of the present application, when the surplus resources of processor are less than resource threshold, but are greater than given threshold, then Indicating this, it can also support smoothly to carry out display enhancing processing to the partial content for playing video.It therefore, can be in step When judging that the surplus resources of processor are greater than given threshold in S230, display enhancing only is carried out to the partial content for playing video Processing.
It further, can be to broadcasting video when only carrying out display enhancing processing to the partial content for playing video The target area of every frame image carries out display enhancing processing, wherein the target area in every frame image can be in every frame image Partial region.As a kind of mode, the center in the video frame images for playing video can be chosen, by center institute Target sizes region as target area.And the region of the target sizes where center, can be circle Domain, is also possible to square region, and concrete shape can be not as restriction.The subsequent target area in the every frame image that will play video After domain carries out display enhancing processing, the content of the intermediate region of the video image of display can be made to be enhanced, promote display effect Fruit.Alternatively, the video frame images for playing video can be divided into the region of multiple same sizes, then from more In the region of a same size, a certain number of and equally distributed region is selected, it is subsequent to play view as target area After the target area of every frame image of frequency carries out display enhancing processing, the image portion being enhanced in the video image of display can be made Divide and be uniformly distributed, promotes display effect.As another embodiment, it is also possible to play in the video frame images of video The partial region in partial region, right half part in left-half, in the partial region or lower half portion in top half Partial region after carrying out display enhancing processing to target area, promote display effect as target area.Certainly, have The target area of body is not intended as limiting in the embodiment of the present application.
That is, after HQV algoritic module to video is played for that will be decoded, image data storage to be rendered To off screen Render Buffer, to the target area in the image of every frame image data in multiple image data, it is exposed Spend enhancing, denoising, edge sharpening, contrast increase and saturation degree increase etc. optimizations operation display enhance handle and then It is transmitted to SurfaceFlinger and carries out rendering and subsequent optimization operation on the screen, so that in the video image of display Target area achievees the effect that super clear visual effect.
In the embodiment of the present application, when only carrying out display enhancing processing to the partial content for playing video, it is also possible to Display enhancing processing only is carried out to the partial frame image for playing video.It, can will be at interval of target frame number as a kind of mode Frame image after image is as partial frame image, for example, partial frame image is the nth frame for playing video, N+3 frame, N+6 Frame, N+9 frame ..., N+n frame, N+n+3 frame image, i.e., to broadcasting video kind at interval of the frame after the image of target frame number Image carries out display enhancing processing, in another example, it can be shown using the odd-numbered frame image for playing video as partial frame image Enhancing processing, or using the even frame image for playing video as partial frame image, carry out display enhancing processing.As another kind Embodiment, can also using the frame image in the set period of time at interval of setting time as partial frame image, for example, by when Between T rise the X period partial frame image after, time T+X+t rise the X period partial frame image, time T+2X+2t rise The partial frame image ... of X period, the partial frame image for the X period that time T+nX+nt rises are carried out as partial frame image Show enhancing processing, wherein X is is above-mentioned set period of time, and t is setting time, and T is any time.Certainly, specific to play The partial frame image of video can be not intended as limiting in the embodiment of the present application.
Step S250: if being not more than the given threshold, forbid carrying out broadcasting video the display enhancing processing.
In the embodiment of the present application, when the surplus resources of processor are not more than given threshold, indicate that processor is remaining Resource has been not enough to support smoothly to carry out display enhancing processing to any content for playing video.Therefore, can judge When the surplus resources of processor are not more than given threshold out, forbid carrying out broadcasting video display enhancing processing, to avoid processing The burden of device is excessive, and processor is prevented to lead to Caton when video playing from the smooth operation for handling display enhancing processing.
Step S260: if the surplus resources are more than or equal to the resource threshold, to the whole for playing video Content carries out the display enhancing processing.
In the embodiment of the present application, when the surplus resources for comparing processor in step S220 are more than or equal to resource threshold When value, since the surplus resources of processor are more, the optimization operation of display enhancing processing can be smoothly handled at this time, therefore can To carry out display enhancing processing to the full content for playing video.
Method for processing video frequency provided by the embodiments of the present application passes through the mode in the display enhancing processing for opening video playing When, the surplus resources of measurement processor, when remaining threshold value is less than resource threshold but is greater than given threshold, to broadcasting video Target area in every frame image carries out display enhancing processing, or carries out at display enhancing to the partial frame image for playing video Reason.When remaining threshold value is not more than given threshold, forbid carrying out broadcasting video display enhancing processing, and when surplus resources are big When resource threshold, display enhancing processing is carried out to the full content for playing video.Hereby, it is achieved that according to processor Surplus resources, determine that video carries out the display enhancing processing of partial content, the display enhancing of full content is handled to playing or Person avoids the burden of processor excessive without display enhancing processing, smooth cannot handle the operation of display enhancing processing, and leads Cause Caton when video playing.
Referring to Fig. 4, another embodiment of the application provides a kind of method for processing video frequency, electronic equipment can be applied to, The method for processing video frequency may include:
Step S310: in the mode of display enhancing processing for opening video playing, the surplus resources of measurement processor, institute It states display enhancing processing and handles the image quality that the image in the broadcasting video improves the broadcasting video by Optimal Parameters.
Step S320: the surplus resources and resource threshold.
Step S330: if the surplus resources are less than the resource threshold, judge whether the surplus resources are greater than Given threshold, the given threshold are less than the resource threshold.
In the embodiment of the present application, the content of step S310 to step S330, can refering to the content of above-described embodiment, This is repeated no more.
Step S340: if it is greater than the given threshold, the every frame image for playing video is reduced.
In the embodiment of the present application, when the surplus resources of processor are less than resource threshold, but are greater than given threshold, then Indicating this, it can also support smoothly to carry out display enhancing processing to the partial content for playing video.Therefore, can judge When the surplus resources of processor are greater than given threshold out, the target area for the every frame image for playing video is carried out at display enhancing Reason.
In some embodiments, display enhancing processing is carried out in the target area to the every frame image for playing video Before, the every frame image for playing video can be reduced, downscaled images are to reduce the size of image, are contracted by image After small, the smoothness of image and clarity can be made to increase.After being reduced video frame images, very little ruler becomes smaller, because This can make subsequent when video frame images carry out display enhancing processing, and the treating capacity of processor reduces, and reduces at display enhancing Reason occupies the resource of processor.As a kind of mode, the every frame image for playing video can be carried out according to setting diminution ratio It reduces, that is to say, that the ratio between the size of the image after diminution and the picture size size after diminution are above-mentioned diminution ratio. For example, the every frame image for playing video is reduced according to 0.6 diminution ratio, then the size of the image after reducing with The ratio between picture size size after diminution is 0.6.Wherein, when specifically being reduced to the video frame images for playing video, tool The size that body reduces in the embodiment of the present application can be not as restriction.
Step S350: the display enhancing only is carried out to the target area of every frame image after diminution and is handled.
It in the embodiment of the present application, then can be to the view after diminution after being reduced to the every frame image for playing video Frequency frame image carries out display enhancing processing.
Further, it can be and display enhancing processing only carried out to the target area of every frame image after diminution.Likewise, Target area can be the region of the target sizes where the center in every frame image, be also possible to a certain number of and uniform The same size area of distribution, can also be the partial region in the region in any halfth area, certainly, specific target area is in this Shen It please be not intended as limiting in embodiment.
When the target area to every frame image after above-mentioned diminution carries out display enhancing processing, HQV algoritic module will be right After broadcasting video is decoded, image data to be rendered is stored to off screen Render Buffer, to multiple image data In every frame image data image in target area, degree of being exposed enhancing, denoising, edge sharpening, contrast increase and Saturation degree increase etc. optimizations operation display enhancing processing and then be transmitted to SurfaceFlinger carry out rendering and it is subsequent Optimization operation on the screen, improves the image quality for playing video, so that the target area in the video image of display reaches super clear The effect of visual effect.
To be greater than resource threshold by the surplus resources in processor, but when being no more than given threshold, regarded to playing After every frame image of frequency is reduced, then display enhancing processing is carried out to the target area in the image after diminution, reduces display Enhancing processing occupies the resource of processor, Caton when avoiding the burden of processor is excessive from leading to video playing.In addition, due to right The video image for playing video is reduced, and the quality of image can be made to increase.
Step S360: if being not more than the given threshold, forbid carrying out broadcasting video the display enhancing processing.
In the embodiment of the present application, when the surplus resources of processor are not more than given threshold, indicate that processor is remaining Resource has been not enough to support smoothly to carry out display enhancing processing to any content for playing video.Therefore, can judge When the surplus resources of processor are not more than given threshold out, forbid carrying out broadcasting video display enhancing processing, to avoid processing The burden of device is excessive, and processor is prevented to lead to Caton when video playing from the smooth operation for handling display enhancing processing.
Step S370: if the surplus resources are more than or equal to the resource threshold, to the whole for playing video Content carries out the display enhancing processing.
In the embodiment of the present application, when the surplus resources for comparing processor in step S320 are more than or equal to resource threshold When value, since the surplus resources of processor are more, the optimization operation of display enhancing processing can be smoothly handled at this time, therefore can To carry out display enhancing processing to the full content for playing video.
It, can also when the surplus resources of processor are less than resource threshold, but are greater than given threshold in the application implementation To be to carry out display enhancing processing to the partial frame image for playing video, wherein can will be after at interval of the image of target frame number Frame image as partial frame image, carry out display enhancing processing.Specifically, can to play video partial frame image into Before row display enhancing processing, the every frame image for playing video can be subjected to above-mentioned diminution, then by the image after diminution In partial frame image carry out display enhancing processing.To realize that the surplus resources in processor are greater than resource threshold, but not When greater than given threshold, to play video every frame image reduce after, then to partial frame image in the image after diminution into Row display enhancing processing reduces the resource that display enhancing processing occupies processor, avoids the burden of processor is excessive from leading to video Caton when broadcasting.
It in the embodiment of the present application, can when the surplus resources of processor are less than resource threshold, but are greater than given threshold Carried out at display enhancing to the partial content for playing video according to the part Optimal Parameters obtained from all Optimal Parameters Reason.Wherein, all Optimal Parameters may include: exposure enhancing, denoising, edge sharpening, contrast increases and saturation degree increases Add equal Optimal Parameters.Certainly, the Optimal Parameters for specifically carrying out display enhancing processing to video in the embodiment of the present application may not be used As restriction.It should be understood that being optimized to video when carrying out display enhancing processing using above-mentioned all Optimal Parameters When, the corresponding optimization processing of every kind of Optimal Parameters can occupy the resource of image processor, and the quantity of Optimal Parameters will affect aobvious Show that enhancing handles the resource of occupied processor, therefore can be by selected part Optimal Parameters, to show to broadcasting video Show that enhancing is handled.
Further, above-mentioned selected part Optimal Parameters can be the optimization priority according to each Optimal Parameters, to excellent Change parameter to be chosen.Wherein, optimization priority may include: to optimize quality from high to low according to the corresponding picture of Optimal Parameters Sequence establish priority.Specifically, can be after getting the optimization priority of each Optimal Parameters, then it can basis The optimization priority of each Optimal Parameters, chooses Optimal Parameters.It as an implementation, can be according to each optimization The optimization priority of parameter chooses the Optimal Parameters of target number, for example, from high to low according to the optimization priority of Optimal Parameters Ranking results, target number Optimal Parameters before being chosen from ranking results, that is to say, that the optimization of the target number selected The priority of parameter is all larger than the priority of other Optimal Parameters.Wherein, the specific value of target number can be not as limit It is fixed.It is thus possible to can be carried out according to the high Optimal Parameters of priority when carrying out display enhancing processing to the video of broadcasting after making Processing.
In the embodiment of the present application, the optimization priority of above-mentioned different parameters can be according to the corresponding picture of Optimal Parameters Face optimizes the sequence of quality from high to low, establishes to the optimization priority of every kind of Optimal Parameters, that is to say, that Optimal Parameters Corresponding picture optimization quality is higher, then its corresponding optimization priority is higher.Certainly, specifically optimization priority can be Not as restriction in the embodiment of the present application, for example, optimization priority can also be set by user, i.e., user can be to all excellent The optimization priority for changing parameter is set.Above-mentioned optimization priority can store in electronic equipment, need from all excellent When changing fetching portion Optimal Parameters in parameter, then optimization priority can be read out.To when optimization priority is above-mentioned When the priority established according to the sequence of Optimal Parameters corresponding picture optimization quality from high to low, then the Optimal Parameters pair chosen The picture optimization quality answered is higher than the corresponding picture optimization quality of other Optimal Parameters.It is thus possible to make subsequent excellent according to target Change parameter and show that the video of broadcasting, reducing display enhances the resource for handling and occupying processor, and makes when enhancing processing The quality of video pictures is higher.
In the embodiment of the present application, when the surplus resources for detecting processor are less than resource threshold, phase can also be carried out Pass processing promotes efficiency when processor carries out display enhancing processing, subtracts to reduce the resource of processor occupied by other processes Caton when few video playing.Therefore, when the surplus resources of processor are less than resource threshold, which can be with Include:
Whether the barrage function of detecting the application of currently playing video opens;Currently playing video is then closed if on, Application barrage function.
It is understood that in application plays video, the application due to playing video has the function of barrage, can be with Barrage and video image are display together.And when needing for video image and barrage to display together, central processing unit needs pair After barrage data processing, barrage is rendered into after same image with video image using image processor and is shown in screen, Therefore realize that barrage shows the resource for needing to occupy image processor.Wherein, barrage data are play-back application from video source The data for the barrage for being rendered into display that server or barrage server obtain, the play-back application of electronic equipment exist After obtaining barrage data, can use barrage data carry out barrage drafting, finally synthesized with video image same image into Row display.
Due to that can occupy the resource of image processor when realizing barrage display, and when barrage function is video playing, is non- Therefore necessary function can be detected to whether barrage function opens, to close barrage function when barrage function is opened Energy.Wherein, whether the barrage function of detecting application open, and can be identified whether by detecting the barrage function of the application as table The mark that barrage function is opened is levied, to determine whether the barrage function of application program of currently playing video opens.On for example, When being identified as 0 of barrage function for playing the application of video is stated, then the barrage function of characterizing the application is not opened, above-mentioned broadcasting view When being identified as 1 of barrage function of the application of frequency, then the barrage function of characterizing the application are opened.Certainly, inspection can also also be passed through Whether the corresponding data-interface for obtaining barrage data from barrage server of barrage function for surveying currently playing application is opened, with true Whether the barrage function of the fixed application opens.The method of barrage function of the application of currently playing video is specifically detected in the application It can be not as restriction in embodiment.
When the barrage function for the application for detecting currently playing video is opened, then its barrage function can be closed, with When the surplus resources of processor are less than resource threshold, the resource of processor is discharged for showing that enhancing is handled, video is avoided to broadcast Caton when putting.
Method for processing video frequency provided by the embodiments of the present application passes through the mode in the display enhancing processing for opening video playing When, the surplus resources of measurement processor, when remaining threshold value is less than resource threshold but is greater than given threshold, to broadcasting video After every frame image is reduced, then display enhancing processing is carried out to the target area of every frame image after scaling, or to scaling Partial frame image in image afterwards carries out display enhancing processing.When remaining threshold value is not more than given threshold, forbid to broadcasting Video carries out display enhancing processing.In addition, when surplus resources are more than or equal to resource threshold, in the whole for playing video Appearance carries out display enhancing processing.Hereby, it is achieved that determining according to the surplus resources of processor and carrying out partial content to broadcasting video It shows enhancing processing, the display of full content enhancing processing or without display enhancing processing, avoids the burden of processor Greatly, cannot smooth processing display enhancing processing operation, and Caton when leading to video playing.
Referring to Fig. 5, it illustrates a kind of block diagrams of video process apparatus provided by the embodiments of the present application.Video processing Device 400 may include: resources detection module 410, resource comparison module 420 and display enhancing module 430.Wherein, described Resources detection module 410 is used in the mode of display enhancing processing for opening video playing, the surplus resources of measurement processor, The display enhancing processing handles the image in the broadcasting video by Optimal Parameters and improves the image quality for playing video;Institute Resource comparison module 420 is stated for the surplus resources and resource threshold;If the display enhancing module 430 is used for institute When stating surplus resources less than the resource threshold, the display enhancing only is carried out to the partial content for playing video and is handled.
In the embodiment of the present application, refer to Fig. 6, display enhancing module 430 may include: resource judgment unit 431 with And enhancing execution unit 432.If resource judgment unit 431 is less than the resource threshold for the surplus resources, judgement Whether the surplus resources are greater than given threshold, and the given threshold is less than the resource threshold;Enhancing execution unit 432 is used for If it is greater than the given threshold, the display enhancing only is carried out to the partial content for playing video and is handled.
As an implementation, enhancing execution unit 432 can be specifically used for: only to the every frame image for playing video Target area carries out the display enhancing processing, and the target area is the partial region in every frame image.
Further, enhancing execution unit 432 only carries out the display to the target area for the every frame image for playing video Enhancing processing may include: to reduce the every frame image for playing video;Only to the target of every frame image after diminution Region carries out the display enhancing processing.
As another embodiment, enhancing execution unit 432 can be specifically used for: only to the partial frame figure for playing video As carrying out the display enhancing processing.
In the embodiment of the present application, which can also include: enhancing disabled module.Enhance inhibited mode Block is used for: if being not more than the given threshold, forbidding carrying out broadcasting video the display enhancing processing.
In the embodiment of the present application, which can also include: full content enhancing module.Full content increases If strong module is more than or equal to the resource threshold for the surplus resources, the full content for playing video is carried out The display enhancing processing.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and The specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, the mutual coupling of module can be electrical property, mechanical or other The coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
In conclusion scheme provided by the present application, by examining in the mode of display enhancing processing for opening video playing The surplus resources for surveying processor, then compare surplus resources and resource threshold, only right if surplus resources are less than resource threshold The partial content for playing video carries out display enhancing processing.When being less than resource threshold due to the surplus resources of processor, only to broadcasting The partial content for putting video carries out display enhancing processing, therefore can be excessive to avoid the occupied resource of display enhancing processing, from And Caton when reducing video playing.
Referring to FIG. 7, it illustrates the structural block diagrams of a kind of electronic equipment provided by the embodiments of the present application.The electronic equipment 100, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.Electronics in the application Equipment 100 may include one or more such as lower component: processor 110, memory 120, screen 130 and one or more are answered With program, wherein one or more application programs can be stored in memory 120 and be configured as by one or more It manages device 110 to execute, one or more programs are configured to carry out the method as described in preceding method embodiment.
Processor 110 may include one or more processing core.Processor 110 is whole using various interfaces and connection Various pieces in a electronic equipment 100, by run or execute the instruction being stored in memory 120, program, code set or Instruction set, and the data being stored in memory 120 are called, execute the various functions and processing data of electronic equipment 100.It can Selection of land, processor 110 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmable Gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.
Processor 110 can integrating central processor 111 (Central Processing Unit, CPU), image processor The combination of one or more of 112 (Graphics Processing Unit, GPU) and modem etc..Wherein, CPU Main processing operation system, user interface and application program etc.;GPU is for being responsible for the rendering and drafting of display content;Modulatedemodulate Adjust device for handling wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 110, it is single Solely realized by one piece of communication chip.
Memory 120 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Memory 120 can be used for store instruction, program, code, code set or instruction set.It deposits Reservoir 120 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system Enable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for Realize the instruction etc. of following each embodiments of the method.Storage data area can also store electronic equipment 100 and be created in use Data (such as phone directory, audio, video data, chat record data) etc..
Screen 130 is used to show the various figures of information input by user, the information and electronic equipment that are supplied to user Shape user interface, these graphical user interface can be made of figure, text, icon, number, video and any combination thereof, In an example, touch screen may be disposed on the display panel to constitute an entirety with the display panel.
Referring to FIG. 8, it illustrates a kind of structural block diagrams of computer readable storage medium provided by the embodiments of the present application. Program code is stored in the computer-readable medium 800, said program code can be called by processor and execute above method reality Apply method described in example.
Computer readable storage medium 800 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 800 includes non-volatile meter Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage Medium 800 has the memory space for the program code 810 for executing any method and step in the above method.These program codes can With from reading or be written in one or more computer program product in this one or more computer program product. Program code 810 can for example be compressed in a suitable form.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (10)

1. a kind of method for processing video frequency, which is characterized in that the described method includes:
In the mode of display enhancing processing for opening video playing, the surplus resources of measurement processor, at the display enhancing Reason handles the image in the broadcasting video by Optimal Parameters and improves the image quality for playing video;
Compare the surplus resources and resource threshold;
If the surplus resources are less than the resource threshold, only carrying out the display to the partial content for playing video enhances Processing.
2. if the method according to claim 1, wherein the surplus resources are less than the resource threshold When, the display enhancing only is carried out to the partial content for playing video and is handled, comprising:
If the surplus resources are less than the resource threshold, judge whether the surplus resources are greater than given threshold, it is described Given threshold is less than the resource threshold;
If it is greater than the given threshold, the display enhancing only is carried out to the partial content for playing video and is handled.
3. according to the method described in claim 2, it is characterized in that, described only carry out display institute to the partial content for playing video State enhancing processing, comprising:
It only carries out the display enhancing to the target area for the every frame image for playing video to handle, the target area is described every Partial region in frame image.
4. according to the method described in claim 3, it is characterized in that, the only target area to the every frame image for playing video Carry out the display enhancing processing, comprising:
The every frame image for playing video is reduced;
Only the display enhancing is carried out to the target area of every frame image after diminution to handle.
5. according to the method described in claim 2, it is characterized in that, described only carry out described show to the partial content for playing video Show that enhancing is handled, comprising:
Only the display enhancing is carried out to the partial frame image for playing video to handle.
6. according to the method described in claim 2, it is characterized in that, judging whether the surplus resources are greater than setting threshold described After value, the method also includes:
If being not more than the given threshold, forbid carrying out broadcasting video the display enhancing processing.
7. method according to claim 1-6, which is characterized in that in the surplus resources and resource threshold Later, the method also includes:
If the surplus resources are more than or equal to the resource threshold, the full content for playing video is carried out described aobvious Show that enhancing is handled.
8. a kind of video process apparatus, which is characterized in that described device include: resources detection module, resource comparison module and Display enhancing module, wherein
The resources detection module is used in the mode of display enhancing processing for opening video playing, the residue of measurement processor Resource, the display enhancing processing handle the image in the broadcasting video by Optimal Parameters and improve the picture for playing video Matter;
The resource comparison module is used for the surplus resources and resource threshold;
If the display enhancing module is less than the resource threshold for the surplus resources, only to the part for playing video Content carries out the display enhancing processing.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured To be executed by one or more of processors, one or more of programs are configured to carry out as claim 1-7 is any Method described in.
10. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium Sequence code, said program code can be called by processor and execute the method according to claim 1 to 7.
CN201811429227.2A 2018-11-27 2018-11-27 Video processing method and device, electronic equipment and storage medium Active CN109361950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811429227.2A CN109361950B (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
CN201811429227.2A CN109361950B (en) 2018-11-27 2018-11-27 Video processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109361950A true CN109361950A (en) 2019-02-19
CN109361950B CN109361950B (en) 2022-02-22

Family

ID=65343336

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN109361950B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795054A (en) * 2019-10-21 2020-02-14 Oppo广东移动通信有限公司 Image quality adjusting method and related product
CN111918099A (en) * 2020-09-16 2020-11-10 Oppo广东移动通信有限公司 Video processing method and device, electronic equipment and storage medium
CN112118473A (en) * 2019-06-19 2020-12-22 上海哔哩哔哩科技有限公司 Video bullet screen display method and device, computer equipment and readable storage medium
CN113038276A (en) * 2021-03-08 2021-06-25 Oppo广东移动通信有限公司 Video playing method and device, electronic equipment and storage medium
CN113115085A (en) * 2021-04-16 2021-07-13 海信电子科技(武汉)有限公司 Video playing method and display equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050025465A1 (en) * 2003-08-01 2005-02-03 Danieli Damon V. Enhanced functionality for audio/video content playback
FR2952783A1 (en) * 2009-11-18 2011-05-20 St Microelectronics Grenoble 2 Sas METHOD AND DEVICE FOR CONTROLLING THE RESTITUTION SPEED OF A COMPRESSED DIGITAL VIDEO SEQUENCE
CN102171651A (en) * 2008-12-02 2011-08-31 英特尔公司 Processing of video data in resource contrained devices
CN102547147A (en) * 2011-12-28 2012-07-04 上海聚力传媒技术有限公司 Method for realizing enhancement processing for subtitle texts in video images and device
CN103577269A (en) * 2012-08-02 2014-02-12 英特尔公司 Media workload scheduler
CN105791925A (en) * 2016-02-26 2016-07-20 上海卓易科技股份有限公司 Method and device for processing recorded video
CN106303361A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Image processing method, device, system and graphic process unit in video calling
CN106358029A (en) * 2016-10-18 2017-01-25 北京字节跳动科技有限公司 Video image processing method and device
CN107295285A (en) * 2017-08-11 2017-10-24 腾讯科技(深圳)有限公司 Processing method, processing unit and the storage medium of video data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050025465A1 (en) * 2003-08-01 2005-02-03 Danieli Damon V. Enhanced functionality for audio/video content playback
CN102171651A (en) * 2008-12-02 2011-08-31 英特尔公司 Processing of video data in resource contrained devices
FR2952783A1 (en) * 2009-11-18 2011-05-20 St Microelectronics Grenoble 2 Sas METHOD AND DEVICE FOR CONTROLLING THE RESTITUTION SPEED OF A COMPRESSED DIGITAL VIDEO SEQUENCE
CN102547147A (en) * 2011-12-28 2012-07-04 上海聚力传媒技术有限公司 Method for realizing enhancement processing for subtitle texts in video images and device
CN103577269A (en) * 2012-08-02 2014-02-12 英特尔公司 Media workload scheduler
CN106303361A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Image processing method, device, system and graphic process unit in video calling
CN105791925A (en) * 2016-02-26 2016-07-20 上海卓易科技股份有限公司 Method and device for processing recorded video
CN106358029A (en) * 2016-10-18 2017-01-25 北京字节跳动科技有限公司 Video image processing method and device
CN107295285A (en) * 2017-08-11 2017-10-24 腾讯科技(深圳)有限公司 Processing method, processing unit and the storage medium of video data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
EDSON M. HUNG: "Example-based Enhancement of Degraded Video", 《IEEE SIGNAL PROCESSING LETTERS ( VOLUME: 21, ISSUE: 9, SEPT. 2014)》 *
林宝栋: "基于人眼视觉特性的低照度图像增强算法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118473A (en) * 2019-06-19 2020-12-22 上海哔哩哔哩科技有限公司 Video bullet screen display method and device, computer equipment and readable storage medium
CN112118473B (en) * 2019-06-19 2022-05-17 上海哔哩哔哩科技有限公司 Video bullet screen display method and device, computer equipment and readable storage medium
CN110795054A (en) * 2019-10-21 2020-02-14 Oppo广东移动通信有限公司 Image quality adjusting method and related product
CN111918099A (en) * 2020-09-16 2020-11-10 Oppo广东移动通信有限公司 Video processing method and device, electronic equipment and storage medium
CN113038276A (en) * 2021-03-08 2021-06-25 Oppo广东移动通信有限公司 Video playing method and device, electronic equipment and storage medium
CN113115085A (en) * 2021-04-16 2021-07-13 海信电子科技(武汉)有限公司 Video playing method and display equipment

Also Published As

Publication number Publication date
CN109361950B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN109361950A (en) Method for processing video frequency, device, electronic equipment and storage medium
EP3713212B1 (en) Image capture method, terminal, and storage medium
JP5893046B2 (en) Customizing the immersive environment
WO2020038128A1 (en) Video processing method and device, electronic device and computer readable medium
CN109151966A (en) terminal control method, device, terminal device and storage medium
CN107209693A (en) Buffer optimization
WO2020062924A1 (en) Video enhancement control method and device, electronic apparatus, and storage medium
CN109379627A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109587560A (en) Method for processing video frequency, device, electronic equipment and storage medium
WO2020108092A1 (en) Video processing method and device, and electronic device and storage medium
CN113473214B (en) Screen recording method and device, computing equipment and readable storage medium
WO2020038127A1 (en) Decoding method and apparatus, electronic device, and storage medium
CN109640167A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN105096235B (en) Graphic processing method and graphic processing facility
CN109587546A (en) Method for processing video frequency, device, electronic equipment and computer-readable medium
CN109688462A (en) Reduce method, apparatus, electronic equipment and the storage medium of equipment power dissipation
CN109640151A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109587561A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109587555A (en) Method for processing video frequency, device, electronic equipment and storage medium
JP2012234425A (en) Image processing device and image processing method
CN110782387B (en) Image processing method and device, image processor and electronic equipment
US11562772B2 (en) Video processing method, electronic device, and storage medium
CN109379626A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN114268796A (en) Method and device for processing video stream
WO2020038071A1 (en) Video enhancement control method, device, electronic apparatus, and storage medium

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