CN109587560A - 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 PDFInfo
- Publication number
- CN109587560A CN109587560A CN201811438269.2A CN201811438269A CN109587560A CN 109587560 A CN109587560 A CN 109587560A CN 201811438269 A CN201811438269 A CN 201811438269A CN 109587560 A CN109587560 A CN 109587560A
- Authority
- CN
- China
- Prior art keywords
- resolution ratio
- resolution
- video file
- video
- optimal parameters
- 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.)
- Pending
Links
- 238000012545 processing Methods 0.000 title claims abstract description 150
- 238000000034 method Methods 0.000 title claims abstract description 96
- 238000005457 optimization Methods 0.000 claims abstract description 107
- 230000002708 enhancing effect Effects 0.000 claims abstract description 76
- 230000008569 process Effects 0.000 claims description 20
- 238000001514 detection method Methods 0.000 claims description 15
- 230000008859 change Effects 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 17
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 7
- 238000011897 real-time detection Methods 0.000 description 5
- 238000012546 transfer Methods 0.000 description 5
- 241000208340 Araliaceae Species 0.000 description 4
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 4
- 235000003140 Panax quinquefolius Nutrition 0.000 description 4
- 238000001914 filtration Methods 0.000 description 4
- 235000008434 ginseng Nutrition 0.000 description 4
- 238000009877 rendering Methods 0.000 description 4
- 230000009466 transformation Effects 0.000 description 3
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003707 image sharpening Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 230000009290 primary effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- IBBLRJGOOANPTQ-JKVLGAQCSA-N quinapril hydrochloride Chemical compound Cl.C([C@@H](C(=O)OCC)N[C@@H](C)C(=O)N1[C@@H](CC2=CC=CC=C2C1)C(O)=O)CC1=CC=CC=C1 IBBLRJGOOANPTQ-JKVLGAQCSA-N 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000003014 reinforcing effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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/4402—Processing 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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/4402—Processing 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/440218—Processing 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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/4402—Processing 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/440263—Processing 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 altering the spatial resolution, e.g. for displaying on a connected PDA
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/442—Monitoring 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4854—End-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)
- Image Processing (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
This application discloses a kind of method for processing video frequency, device, electronic equipment and storage mediums, are related to technical field of electronic equipment.This method is applied to electronic equipment, the described method includes: when electronic equipment playing video file, detect resolution ratio corresponding to the video file, based on resolution ratio corresponding to the video file, objective optimization parameter corresponding with the resolution ratio is chosen from all Optimal Parameters, display enhancing processing is carried out to video file based on objective optimization parameter, wherein display enhancing processing improves the video image quality of video file by the image in objective optimization parameter processing video file.Method for processing video frequency, device, electronic equipment and storage medium provided by the embodiments of the present application, different Optimal Parameters are determined according to the different resolution of video file, and display enhancing processing is carried out to video file by Optimal Parameters corresponding with resolution ratio, to provide the method for processing video frequency for having more applicability, video effect and user experience are promoted.
Description
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
With the development of science and technology, electronic equipment have become in people's daily life most common electronic product it
One.Also, user often passes through electronic equipment and sees video or object for appreciation game etc., and still, electronic equipment is to video data at present
Processing mode is fixed, and the video effect of output is poor, and user experience is bad.
Summary of the invention
In view of the above problems, present applicant proposes a kind of method for processing video frequency, device, electronic equipment and storage medium,
To solve the above problems.
In a first aspect, the embodiment of the present application provides a kind of method for processing video frequency, it is applied to electronic equipment, the method packet
It includes: when the electronic equipment playing video file, detecting resolution ratio corresponding to the video file;Based on the resolution
Rate chooses objective optimization parameter corresponding with the resolution ratio from all Optimal Parameters;Based on the objective optimization parameter pair
The video file carries out display enhancing processing, wherein the display enhancing processing passes through the objective optimization parameter processing institute
State the video image quality that the image in video file improves the video file.
Second aspect, the embodiment of the present application provide a kind of video process apparatus, are applied to electronic equipment, described device packet
It includes: detection module, for detecting resolution ratio corresponding to the video file when the electronic equipment playing video file;
Module is chosen, for being based on the resolution ratio, objective optimization ginseng corresponding with the resolution ratio is chosen from all Optimal Parameters
Number;Processing module, for carrying out display enhancing processing to the video file based on the objective optimization parameter, wherein described
Display enhancing processing improves the view of the video file by the image in video file described in the objective optimization parameter processing
Frequency image quality.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including memory;One or more processors,
It is coupled with the memory;One or more programs, wherein one or more of application programs are stored in the memory
In and be configured as being executed by one or more of processors, one or more of programs are configured to carry out above-mentioned side
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 by processor and execute the above method.
The embodiment of the present application provides method for processing video frequency, device, electronic equipment and storage medium, when electronic equipment plays
When video file, resolution ratio corresponding to the video file is detected, based on resolution ratio corresponding to the video file, from all excellent
Change and choose objective optimization parameter corresponding with the resolution ratio in parameter, display increasing is carried out to video file based on objective optimization parameter
Strength reason, wherein display enhancing processing improves video file by the image in objective optimization parameter processing video file
Video image quality, to determine different Optimal Parameters according to the different resolution of video file, and by corresponding with resolution ratio
Optimal Parameters carry out display enhancing processing to video file, to provide the method for processing video frequency for having more applicability, promote video effect
Fruit and user experience.
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 flow diagram of video playing provided by the embodiments of the present application;
Fig. 2 shows the flow diagrams of a method for processing video frequency provided by the embodiments of the present application;
Fig. 3 shows the flow diagram of another method for processing video frequency provided by the embodiments of the present application;
Fig. 4 shows the flow diagram of another method for processing video frequency provided by the embodiments of the present application;
Fig. 5 shows provided by the embodiments of the present application and another method for processing video frequency flow diagram;
Fig. 6 shows the flow diagram of another method for processing video frequency provided by the embodiments of the present application;
Fig. 7 shows the module frame chart of video process apparatus provided by the embodiments of the present application;
Fig. 8 shows 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. 9 shows handling for saving or carrying realization according to the video of the embodiment of the present application for the embodiment of the present application
The storage unit of the program code of method.
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.
Referring to Fig. 1, Fig. 1 shows the process of video playing.Specifically, operating system is getting data to be played
When, next work is exactly to parse audio, video data.General video file is all by video flowing and audio stream two parts
Composition, the encapsulation format of different video format audio-videos are different.The process of audio stream and video flowing composite document is known as
Muxer, on the contrary the process of separating audio stream and video flowing is known as demuxer from media file.Playing video file just needs
Audio stream and video flowing are isolated from file stream, it is decoded respectively, and decoded video frame can be rendered directly, sound
The buffer area that frequency frame can be sent to audio output apparatus plays out, and certainly, the timestamp of Video Rendering and audio broadcasting needs
Control synchronizes.
Specifically, video decoding may include hard decoder and soft decoding, and hardware decoding is that original whole is transferred to centre
It manages device (Central Processing Unit, CPU) and transfers to graphics 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
It so, both can be into for preferable processor, such as any a four core processor of i5 2320 or AMD
Row hard decoder can also carry out soft decoding.
Specifically, as shown in Figure 1, multimedia framework (Media Framework) with the api interface of client by obtaining
Client video file to be played, and transfer to Video Codec (Video Decode), wherein Media Framework
For multimedia framework in android system, MediaPlayer, MediaPlayerService and Stagefrightplayer tri-
A part constitutes the multimedia basic framework of Android.Multimedia framework part uses the structure of C/S, MediaPlayer
As the end Client of C/S structure, MediaPlayerService and Stagefrightplayer are as C/S structure Server
End carries the responsibility for playing multimedia file, and by Stagefrightplayer, asking for the end Client is completed at the end Server
It asks and responds.Video Decode is a super decoding for being integrated with most common audio and video and decoding with playing
Device is used for video data decoding.
Wherein, soft decoding is decoded processing to video by CPU by software.And hard decoder, refer to without the help of
CPU, and by dedicated subcard equipment come complete independently video decoding task.
Whether hard decoder or soft decoding can send decoded video data after by video data decoding
To figure layer transfer module (SurfaceFlinger), decoded video data is rendered by SurfaceFlinger and synthesizes it
Afterwards, it shows on a display screen.Wherein, SurfaceFlinger is an independent Service, it receives all Window's
Surface, according to parameters such as ZOrder, transparency, size, positions, calculates each Surface and is finally synthesizing as input
Then position in image transfers to HWComposer or OpenGL to generate final display Buffer, be then shown to specific
It shows in equipment.
As shown in Figure 1, CPU will give SurfaceFlinger rendering and synthesis in soft decoding after video data decoding,
And after hard decoder is decoded by GPU, transfer to SurfaceFlinger to render and synthesize.And SurfaceFlinger can call GPU
It realizes the rendering and synthesis of image, and shows on a display screen.But electronic equipment is solid to the processing mode of video data at present
It is fixed, for example, currently, electronic equipment carries out display enhancing processing to all video files run, or without aobvious
Show that enhancing is handled, also, electronic equipment carries out at display enhancing when carrying out display enhancing processing to the video file run
The mode of reason is identical, and the display enhancement method that will not be adapted to therewith for the different image quality selection of video file carries out display enhancing
Processing, therefore, the video effect of output is poor, and user experience is bad.
In view of the above-mentioned problems, inventor has found by long-term research, and propose video provided by the embodiments of the present application
Processing method, device, electronic equipment and storage medium determine that different optimization is joined according to the different resolution of video file
Number, and display enhancing processing is carried out to video file by Optimal Parameters corresponding with resolution ratio, applicability is had more to provide
Method for processing video frequency, promotes video effect and user experience, specific method for processing video frequency carry out in subsequent embodiment
Detailed description.
Embodiment
Referring to Fig. 2, the flow diagram of the method for processing video frequency provided Fig. 2 shows the application one embodiment.Institute
Method for processing video frequency is stated for determining different Optimal Parameters according to the different resolution of video file, and by with resolution ratio pair
The Optimal Parameters answered carry out display enhancing processing to video file, to provide the method for processing video frequency for having more applicability, promote view
Yupin effect and user experience.In the particular embodiment, the method for processing video frequency is applied to video processing as shown in Figure 7
Device 200 and electronic equipment 100 (Fig. 8) configured with the video process apparatus 200.Below will by taking electronic equipment as an example,
Illustrate the detailed process of the present embodiment, it will of course be understood that, electronic equipment applied by the present embodiment can be intelligent hand
Machine, tablet computer, wearable electronic equipment, mobile unit, gateway etc. do not do specific restriction herein.It will be directed to Fig. 2 institute below
The process shown is explained in detail, and the method for processing video frequency can specifically include following steps:
Step S110: when the electronic equipment playing video file, resolution ratio corresponding to the video file is detected.
In the present embodiment, electronic equipment playing video file, wherein the video file can be local resource file,
It may be Internet resources file, it is not limited here.Specifically, if the video file is local resource file, then, it should
Video file can be downloaded and stored at local from server in advance by electronic equipment, when playing the video file, electronics
Equipment directly can read and play from local, for example, can reading directly from the memory of electronic equipment and broadcasting.As another
A kind of mode, if the video file is Internet resources file, then, which can be existed by electronic equipment from server
Line is obtained and is played, wherein electronic equipment can obtain video file from server by wireless network online, can also pass through
Data network obtains video file from server online, it is not limited here, wherein data network may include 2G network, 3G
Network, 4G network or 5G network.
In addition, electronic equipment can be equipped with video playback class application program when video file is Internet resources file,
And the corresponding application icon of video playback class application program is shown in the desktop of electronic equipment, when detecting that user is directed to
When the application program image target touch control operation, electronic equipment can be used as response and play the video playback class application program, and lead to
It crosses network and obtains video file from server;Alternatively, electronic equipment can be equipped with browser, and be based on user
Operation enters video playing interface by the webpage of the browser, and obtains video text from server under the video playing interface
Part.
When determining electronic equipment in playing video file, resolution ratio corresponding to the video file can detecte, as
A kind of mode is determining current electronic device after playing video file, can check the attribute of the video file so that it is determined that
The resolution ratio of the video file.
Step S120: being based on the resolution ratio, and it is excellent that target corresponding with the resolution ratio is chosen from all Optimal Parameters
Change parameter.
In the present embodiment, for the video file of different resolution, have under current resolution preferably to reach
Video display effect can take the video file of different resolution ratio different degrees of display enhancing to handle, therefore, can be with
Objective optimization parameter corresponding with the resolution ratio of currently playing video file is chosen from all Optimal Parameters, wherein excellent
Changing parameter may include at least one of exposure enhances, removes dryness, edge sharpening, contrast increase or saturation degree enhances.
As a kind of mode, different resolution ratio corresponds to different Optimal Parameters, wherein pair of resolution ratio and Optimal Parameters
Should be related to can be preset by electronic equipment.It in this present embodiment, can be with according to the resolution ratio of currently playing video file
The immediate resolution ratio of resolution ratio with currently playing video file is searched, and chooses from all Optimal Parameters and is most connect with this
Objective optimization parameter of the corresponding Optimal Parameters of close resolution ratio as the resolution ratio of currently playing video file.For example, working as
The resolution ratio of the video file of preceding broadcasting is A, and finding with the immediate resolution ratio of resolution ratio A is B, then resolution ratio B is corresponding
Objective optimization parameter of the Optimal Parameters C as resolution ratio A.
Step S130: display enhancing processing is carried out to the video file based on the objective optimization parameter, wherein described
Display enhancing processing improves the view of the video file by the image in video file described in the objective optimization parameter processing
Frequency image quality.
In the present embodiment, when having chosen objective optimization parameter corresponding with the resolution ratio of currently playing video file
Afterwards, display enhancing processing is carried out to video file according to selected objective optimization parameter.Wherein, display enhancing processing passes through
Determining objective optimization parameter handles the image in video file, improves the video image quality of video file, with by with
The Optimal Parameters of the resolution adaptation of the video file carry out display enhancing processing to video file, promote the video that user obtains
The visual effect of picture, wherein the image quality includes clarity, acutance, lens distortion, color, resolution, gamut range, purity
Deng different combinations can have different display reinforcing effects.Wherein, it should be noted that video resource file
Display enhancing processing it is also understood that for the sequence of operations done before formally handle to video file, including scheme
Image intensifying and image restoration etc., image enhancement are to add some information or transformation data to original image by certain means, are had
It selectively protrudes interested feature in image or inhibits certain unwanted features in image, join image and objective optimization
Number matches, and so as to improve picture quality, reinforces visual effect.
As a kind of mode, all Optimal Parameters may include that exposure enhances, removes dryness, edge sharpening, contrast increase
And saturation degree enhancing, then, objective optimization parameter may include exposure enhance, remove dryness, edge sharpening, contrast increase with
And the combination of one or more of saturation degree enhancing, for example, the objective optimization parameter is exposure enhancing, objective optimization ginseng
Number includes that exposure enhances and removes dryness, the objective optimization parameter includes that exposure enhances, removes dryness, edge sharpening, contrast increase
And saturation degree enhancing.
Specifically, since every frame image data of the video data after decoding is RGBA format, in order to right
Video data carries out video source modeling, and the data by RGBA format is needed to be converted to the data of HSV format, specifically, obtains image
The histogram of data count to histogram the parameter that the data of RGBA format are converted to HSV format to acquisition, then root
The data of RGBA format are converted to the data of HSV format according to the parameter.
Wherein, exposure enhances, and can be used for improving the brightness of image, then can be by the histogram of image, by brightness
It is worth lower region and increases brightness value, alternatively, it is also possible to be to increase brightness of image by Nonlinear Superposition, specifically, I is indicated
Darker image to be processed, T indicates that treated brighter image, then the mode of exposure enhancing is T (x)=I (x)+(1-
I(x))*I(x).Wherein, T and I is the image of [0,1] value.If good algorithm can be with successive ignition for primary effect.
Wherein, the noise for removing image is denoised to image data, specifically, image is normal during generation and transmission
Chang Yin by various noises interference and influence and make image deterioration, this will produce the processing of subsequent image and image vision effect
Raw adverse effect.There are many noise type, such as: electrical noise, mechanical noise, interchannel noise and other noises etc..Therefore, in order to press down
Noise processed, improving image quality, convenient for higher level processing, it is necessary to which noise suppression preprocessing is carried out to image.From the probability of noise
From the point of view of distribution situation, Gaussian noise, rayleigh noise, gamma noise, index noise and Uniform noise can be divided into.
It specifically, can be by Gaussian filter to image denoising, wherein Gaussian filter is a kind of linear filter,
Noise, smoothed image can effectively be inhibited.Its action principle is similar with mean filter, is all the picture taken in filtering window
The mean value of element is as output.The coefficient of its template window and mean filter difference, the coefficients of mean filter are all phases
Same is 1;And the coefficients of Gaussian filter, then the coefficient reduction with the increase at distance template center.So Gauss filters
Wave device is smaller to image fog-level compared to mean filter.
For example, generating one 5 × 5 gaussian filtering window, it is sampled using the center of template as coordinate origin.It will
The coordinate of each position of template brings Gaussian function into, and obtained value is exactly the coefficient of template.Again by the gaussian filtering window and figure
As convolution can be to image denoising.
Wherein, edge sharpening is for becoming more fully apparent fuzzy image.Generally there are two types of methods for image sharpening:
One is the differential methods, another is high-pass filtering method.
Wherein, contrast increases the image quality for enhancing image, so that the color in image is distincter, it is specifically, right
Than a kind of method that degree stretching is image enhancement, greyscale transformation operation is also belonged to.By greyscale transformation, gray value is stretched to whole
The section of a 0-255, then what its contrast clearly substantially enhanced.It can be with following formula by the gray scale of some pixel
Value is mapped to bigger gray space:
I (x, y)=[(I (x, y)-Imin)/(Imax-Imin)] (MAX-MIN)+MIN;
Wherein Imin, Imax are the minimum gradation value and maximum gradation value of original image, and MIN and MAX will be stretched to
The minimum gray value and maximum value of gray space.
The method for processing video frequency that the application one embodiment provides detects the view when electronic equipment playing video file
Resolution ratio corresponding to frequency file is chosen and this point from all Optimal Parameters based on resolution ratio corresponding to the video file
The corresponding objective optimization parameter of resolution carries out display enhancing processing to video file based on objective optimization parameter, wherein display increases
The video image quality that video file is improved by the image in objective optimization parameter processing video file is managed in strength, thus according to view
The different resolution of frequency file determines different Optimal Parameters, and by Optimal Parameters corresponding with resolution ratio to video file into
Row display enhancing processing promotes video effect and user experience to provide the method for processing video frequency for having more applicability.
Referring to Fig. 3, Fig. 3 shows the flow diagram of the method for processing video frequency of another embodiment of the application offer.
The method for processing video frequency is applied to above-mentioned electronic equipment, wherein and resolution ratio includes first resolution and second resolution, below
It will be explained in detail for process shown in Fig. 3, the method can specifically include following steps:
Step S210: when the electronic equipment playing video file, resolution ratio corresponding to the video file is detected.
Wherein, the specific descriptions of step S210 please refer to step S110, and details are not described herein.
Step S220: when the resolution ratio is the first resolution, it is based on the first resolution, from all optimizations
First object Optimal Parameters corresponding with the first resolution are chosen in parameter.
In the present embodiment, resolution ratio includes first resolution and second resolution, wherein first resolution is higher than second
Resolution ratio, for example, first resolution is 720P, second resolution 480P, and first resolution and second resolution are corresponding not
Same objective optimization parameter can then search and first when the resolution ratio of currently playing video file is first resolution
The immediate resolution ratio of resolution ratio, and Optimal Parameters work corresponding with the immediate resolution ratio is chosen from all Optimal Parameters
For the first object Optimal Parameters of first resolution.For example, first resolution is 720P, when point of currently playing video file
When resolution is first resolution, searching with the immediate resolution ratio of first resolution 720P is B1, then resolution ratio B1 is corresponding
Objective optimization parameter of the Optimal Parameters C1 as first resolution 720P.
Step S230: when the resolution ratio is the second resolution, it is based on the second resolution, from all optimizations
The second objective optimization parameter corresponding with the second resolution is chosen in parameter, wherein the second objective optimization parameter pair
The picture optimization quality answered picture optimization quality corresponding better than the first object Optimal Parameters.
In the present embodiment, when the resolution ratio of currently playing video file be second resolution when, then can search with
The immediate resolution ratio of second resolution, and optimization ginseng corresponding with the immediate resolution ratio is chosen from all Optimal Parameters
Second objective optimization parameter of the number as second resolution.For example, second resolution is 480P, when currently playing video file
Resolution ratio be second resolution when, search with the immediate resolution ratio of second resolution 480P be B2, then by B2 pairs of resolution ratio
Objective optimization parameter of the Optimal Parameters C2 answered as second resolution 480P.Wherein, the corresponding picture of the second objective optimization parameter
Face optimizes quality picture corresponding better than first object Optimal Parameters and optimizes quality, for example, when using first object Optimal Parameters
When carrying out display enhancing processing to same video file with the second objective optimization parameter, then, which is passing through
Second objective optimization parameter, which carries out display enhancing treated display effect, to be shown better than by first object Optimal Parameters
Show enhancing treated display effect.
Step S240: display enhancing processing is carried out to the video file based on the objective optimization parameter, wherein described
Display enhancing processing improves the view of the video file by the image in video file described in the objective optimization parameter processing
Frequency image quality.
Wherein, the specific descriptions of step S240 please refer to step S130, and details are not described herein.
The method for processing video frequency that another embodiment of the application provides, when electronic equipment playing video file, detection should
Resolution ratio corresponding to video file is based on first resolution, from all Optimal Parameters when the resolution ratio is first resolution
It is middle to choose first object Optimal Parameters corresponding with first resolution, when the resolution ratio is second resolution, it is based on second point
Resolution chooses the second objective optimization parameter corresponding with second resolution, wherein the second objective optimization from all Optimal Parameters
The corresponding picture optimization quality of parameter picture corresponding better than first object Optimal Parameters optimizes quality, is based on objective optimization parameter
Display enhancing processing is carried out to video file, wherein display enhancing processing passes through in objective optimization parameter processing video file
Image improves the video image quality of video file, and compared to method for processing video frequency shown in Fig. 2, the present embodiment intermediate-resolution is got over
Low, the effect of optimization of corresponding objective optimization parameter is better, so that the video file for low resolution provides and more preferably optimizes
Parameter allows to experience video display effect more better than current low resolution.
Referring to Fig. 4, Fig. 4 is to show the process signal of the method for processing video frequency of the application further embodiment offer
Figure.The method for processing video frequency is applied to above-mentioned electronic equipment, will be explained in detail below for process shown in Fig. 4,
The method can specifically include following steps:
Step S310: when the electronic equipment playing video file, resolution ratio corresponding to the video file is detected.
Wherein, the specific descriptions of step S310 please refer to step S110, and details are not described herein.
Step S320: judge whether the resolution ratio is lower than the first given resolution.
In the present embodiment, electronic equipment is previously provided with the first given resolution, by resolution corresponding to video file
The numerical value of rate is compared with the numerical value of the first given resolution, so as to judge whether the resolution ratio is lower than first specified point
Resolution.
Step S330: when the resolution ratio is lower than first given resolution, it is based on the resolution ratio, from all excellent
Change and chooses objective optimization parameter corresponding with the resolution ratio in parameter.
In the present embodiment, by the numerical value of resolution ratio corresponding to video file being played on and the first given resolution
Numerical value be compared, when the resolution ratio be lower than the first given resolution when, then can search and immediate point of the resolution ratio
Resolution, and target of the Optimal Parameters corresponding with the immediate resolution ratio as the resolution ratio is chosen from all Optimal Parameters
Optimal Parameters.For example, resolution ratio corresponding to currently playing video file is 360P, and the first given resolution is 480P,
The resolution ratio is lower than the first given resolution, then searching with the immediate resolution ratio of resolution ratio 360P is D, then by resolution ratio D
Objective optimization parameter of the corresponding Optimal Parameters E as resolution ratio 360P.That is, when resolution ratio is first specified lower than this
When resolution ratio, the resolution ratio that can characterize the video file is lower, and video image quality is poor, therefore, can to the video file into
Row display enhancing processing, to promote the display effect of the video file.
Step S340: display enhancing processing is carried out to the video file based on the objective optimization parameter, wherein described
Display enhancing processing improves the view of the video file by the image in video file described in the objective optimization parameter processing
Frequency image quality.
Wherein, the specific descriptions of step S340 please refer to step S130, and details are not described herein.
Step S350: judge whether the resolution ratio is higher than the second given resolution, wherein second given resolution
Higher than first given resolution.
In the present embodiment, the second given resolution has also can be preset in electronic equipment, will be corresponding to video file
The numerical value of resolution ratio is compared with the numerical value of the second given resolution, to judge whether the resolution ratio is higher than second specified point
Resolution.Wherein, the second given resolution is higher than the first given resolution, for example, first given resolution is 360P, this second
Given resolution is 720P.
Step S360: when the high resolution is when second given resolution, the video file is directly played.
In the present embodiment, by the numerical value of resolution ratio corresponding to video file being played on and the second given resolution
Numerical value be compared, when the high resolution is when the second given resolution, the video file is directly played, for example, currently broadcasting
Resolution ratio corresponding to the video file put is 1080P, and the second given resolution is 720P, then the high resolution refers in second
Determine resolution ratio, then can directly play the video text on the basis of not carrying out display enhancing processing to the video file
Part.Specifically, when high resolution is when second given resolution, the resolution ratio that can characterize the video file is higher, video
Image quality is higher, therefore, can not carry out display enhancing processing, to the video file to reduce the power consumption of electronic equipment.
As a kind of mode, third given resolution has also been can be preset in electronic equipment, will be corresponding to video file
The numerical value of resolution ratio is compared with the numerical value of third given resolution, to judge whether the resolution ratio meets specified point of third
Resolution.Wherein, third given resolution is greater than the first given resolution and less than the second given resolution, for example, first is specified
Resolution ratio is 480P, and the second given resolution is 1080P, and third given resolution is 720P.
When the corresponding resolution ratio of the video file meets third given resolution, it can be when the video file is corresponding
Equal with the numerical value of the third given resolution or difference with third given resolution of the numerical value of resolution ratio is in specified difference area
Between when, characterize the corresponding resolution ratio of the video file and meet third given resolution, for example, the corresponding resolution ratio of the video file
For 720P, and third given resolution is 720P, the numerical value of the corresponding resolution ratio of the video file and third given resolution
Numerical value is equal, then can be determined that the corresponding resolution ratio of the video file meets third given resolution.
When the corresponding resolution ratio of the video file meets third given resolution, whether electronic equipment can be exported to this
Video file carries out the inquiry message of display enhancing processing, and the inquiry message is used to indicate user and chooses whether to the video
File carries out display enhancing processing.Wherein, electronic equipment can export inquiry message by voice messaging, inquiry can also be believed
Breath is displayed on the screen, and specific output form is it is not limited here.
Certainly, user can carry out display enhancing processing or selection pair to the video file based on inquiry message selection
The video file can also carry out display enhancing processing to the video file in confirmation without display enhancing processing
When, selection specifically carries out the Optimal Parameters of display enhancing processing.Specifically, electronic equipment receives the instruction of user's input to the view
Frequency file carries out the instruction information of display enhancing processing, wherein user can be by grasping for the touch-control of " display enhances " switch
Make input instruction information, wherein the switch may include the physical button or virtual key being set on electronic equipment.In addition,
It can also be by inputting the voice messaging including the voice contents such as " display enhances ", " opening display enhances " to input instruction letter
Breath can also include certainly the method for more multi input instruction information, details are not described herein in the present embodiment.
When the instruction for receiving user's input carries out the command information of display enhancing processing to the video file, Ke Yigen
According to the resolution ratio of currently playing video file, objective optimization ginseng corresponding with the resolution ratio is chosen from all Optimal Parameters
Number.
It should be understood that although each step in the flow chart of Fig. 4 is successively shown according to the instruction of arrow, this
A little steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these steps
Execute that there is no stringent sequences to limit, wherein step S350- step S360 can be executed after step S320, can also be with
It is executed after step S310.
The method for processing video frequency that the application further embodiment provides, when electronic equipment playing video file, detection should
Resolution ratio corresponding to video file, judges whether the resolution ratio is lower than the first given resolution, when the resolution ratio is lower than first
When given resolution, it is based on the resolution ratio, objective optimization resolution ratio corresponding with the resolution ratio is chosen from all Optimal Parameters,
Display enhancing processing is carried out to video file based on objective optimization parameter, wherein display enhancing processing passes through objective optimization parameter
The image in video file is handled to improve the video image quality of video file, judges whether the resolution ratio is higher than the second specified resolution
Rate, wherein the second given resolution is higher than the first given resolution, when the high resolution is when the second given resolution, directly
The video file is played, compared to method for processing video frequency shown in Fig. 2, the present embodiment is provided with different resolution ratio sections, right
Different video processing modes is provided in different resolution ratio sections, thus by determining resolution ratio pair corresponding to video file
The resolution ratio section answered determines the processing mode of the video file, promotes video processing speed.
Referring to Fig. 5, Fig. 5 shows the process signal of the application method for processing video frequency that further embodiment provides again
Figure.The method for processing video frequency is applied to above-mentioned electronic equipment, will be explained in detail below for process shown in fig. 5,
The method can specifically include following steps:
Step S410: when the electronic equipment playing video file, resolution ratio corresponding to the video file is detected.
Wherein, the specific descriptions of step S410 please refer to step S110, and details are not described herein.
Step S420: the current network state of the electronic equipment is detected.
In the present embodiment, it can detecte during playing the video file, the current network state of electronic equipment.
Wherein, in the present embodiment, preset duration detection electricity can also can be spaced with the current network state of real-time detection electronic equipment
The current network state of sub- equipment, as a kind of mode, in order to guarantee electronic equipment current network state detection accuracy,
It can be with the current network state of real-time detection electronic equipment.
As a kind of mode, current network speed can detecte, also can detecte current network type, wherein network type
It may include Wifi, 4G, 3G etc..
Step S430: judge whether the current network state supports the resolution ratio.
In the present embodiment, can be by the way that when playing the video under current resolution, whether playing process blocks
, to judge whether current network state supports the resolution ratio.Can also according to the relationship of network type and resolution ratio to
Judge whether current network state supports the resolution ratio, for example, electronic equipment can be previously provided with corresponding pass as shown in Table 1
It is table, judges whether current network state supports the resolution ratio according to corresponding relationship shown in table 1.
Table 1
Network type | The resolution ratio supported |
Wifi | Super clear, high definition, SD |
4G | High definition, SD |
3G | SD |
Step S440: when the current network state does not support the resolution ratio, the resolution ratio is switched to first
Resolution ratio is adjusted, wherein the first adjustment resolution ratio is lower than the resolution ratio.
In the present embodiment, when electronic equipment plays the video according to the selected resolution ratio of user, playing process goes out
Caton is showed, it is possible to determine that current network state does not support the selected resolution ratio of the user, then can switch the resolution ratio
For the first adjustment resolution ratio lower than the resolution ratio.
As a kind of mode, can not also be propped up by the relationship of network type and resolution ratio in judgement current network state
When holding the resolution ratio, which is switched to the first adjustment resolution ratio lower than the resolution ratio, for example, playing in electronic equipment
When video file, user has selected super clear, and current network state is 4G, and mapping table as shown in Table 1 above then can be with
Determine that current network state cannot support the video playing of super clear mode, then then current resolution ratio can be switched to height
Clear or SD mode.
Step S450: being based on the first adjustment resolution ratio, chooses from all Optimal Parameters and the first adjustment point
The corresponding objective optimization parameter of resolution.
In the present embodiment, can search with the immediate resolution ratio of the first adjustment resolution ratio, and from all Optimal Parameters
Objective optimization parameter of the middle selection Optimal Parameters corresponding with the immediate resolution ratio as the first adjustment resolution ratio.For example,
The first adjustment resolution ratio is A, and finding with the immediate resolution ratio of the first adjustment resolution ratio A is B, then resolution ratio B is corresponding
Objective optimization parameter of the Optimal Parameters C as the first adjustment resolution ratio A.
Step S460: display enhancing processing is carried out to the video file based on the objective optimization parameter, wherein described
Display enhancing processing improves the view of the video file by the image in video file described in the objective optimization parameter processing
Frequency image quality.
It, in the present embodiment, can be with the current network state of real-time detection electronic equipment, when detecting as a kind of mode
When the video playing for the resolution ratio that current network state supports user initially to select, the resolution ratio of video file can be switched back into
The resolution ratio that user initially selects simultaneously closes off display enhancing switch.For example, in electronic equipment playing video file, user
Select super clear, and current network state is 4G, and mapping table as shown in Table 1 above then can be determined that current network
State cannot support the video playing of super clear mode, and current resolution ratio is then switched to high definition or SD mode, and when inspection
Measure current network state be Wifi when, then resolution ratio is switched back into super clear mode.
The application method for processing video frequency that further embodiment provides again, when electronic equipment playing video file, detection
The corresponding resolution ratio of the video file, meanwhile, the current network state of electronic equipment is detected, judges whether current network state props up
The resolution ratio is held, when current network state does not support the resolution ratio, which is switched to the first adjustment resolution ratio, wherein
The first adjustment resolution ratio is lower than the resolution ratio, is based on the first adjustment resolution ratio, selection and the first adjustment from all Optimal Parameters
The corresponding objective optimization parameter of resolution ratio carries out display enhancing processing to video file based on the objective optimization parameter, wherein aobvious
Show that enhancing processing improves the video image quality of video file by the image in objective optimization parameter processing video file, compared to
Method for processing video frequency shown in Fig. 2, the present embodiment can be according to the passes of current network state and the resolution ratio of current video file
System carries out display enhancing processing to video file, so that can still experience than working as in the case where network state is bad
The better video display effect of the resolution ratio that preceding network is supported.
Referring to Fig. 6, Fig. 6 shows the flow diagram of the method for processing video frequency of another embodiment of the application offer.
The method for processing video frequency is applied to above-mentioned electronic equipment, will be explained in detail below for process shown in fig. 6, described
Method can specifically include following steps:
Step S510: when the electronic equipment playing video file, resolution ratio corresponding to the video file is detected.
Wherein, the specific descriptions of step S510 please refer to step S110, and details are not described herein.
Step S520: the present load rate of the graphics processor of the electronic equipment is detected.
In the present embodiment, it can detecte during playing the video file, the image processor of electronic equipment
Present load rate.Wherein, in the present embodiment, it can also be spaced pre- with the present load rate of real-time detection graphics processor
If the present load rate of duration test pattern processor, as a kind of mode, in order to guarantee the present load rate of graphics processor
The accuracy of detection, can be with the present load rate of real-time detection graphics processor.
Step S530: when the present load rate is higher than load factor threshold value, the resolution ratio is switched to second adjustment
Resolution ratio, wherein the second adjustment resolution ratio is lower than the resolution ratio.
In the present embodiment, when the present load rate of graphics processor is excessively high, illustrate that graphics processor is not enough
Resource processing broadcasting is carried out to the video file under the resolution ratio, for example, the resolution ratio that active user selects is super clear, but this
When electronic equipment graphics processor load factor be 90%, the video file is handled without enough resources, to cause
Video playing Caton.Therefore, when the present load rate of graphics processor is excessively high, the resolution ratio of adjustable user's selection will
Resolution ratio is switched to the second adjustment resolution ratio lower than the resolution ratio, for example, the resolution ratio that active user selects is super clear, herein
When electronic equipment graphics processor load factor be 90%, can by user select it is super it is clear be switched to high definition, to make to regard
Frequency being capable of smooth playing.
In the present embodiment, electronic equipment is previously provided with load factor threshold value, and further, the load factor threshold value is for making
It can will scheme that is, after the present load rate for obtaining graphics processor for the judgment basis of the present load rate of graphics processor
The present load rate of shape processor is compared with load factor threshold value, to judge the present load rate size of the graphics processor.
The current of the graphics processor is characterized when the present load rate of graphics processor is higher than load factor threshold value as a kind of mode
When load factor is excessively high, processing broadcasting, adjustable user's choosing are carried out to the video file under the resolution ratio without enough resources
Resolution ratio is switched to the second adjustment resolution ratio lower than the resolution ratio by the resolution ratio selected.For example, the resolution of active user's selection
Rate be it is super clear, the load factor of the graphics processor of electronic equipment is 90% at this moment, and the pre-set load factor of electronic equipment
Threshold value is 70%, and the present load rate of graphics processor is higher than load factor threshold value, then what can be selected user super clear is switched to
High definition, to enable video smooth playing.
Step S540: being based on the second adjustment resolution ratio, chooses from all Optimal Parameters and the second adjustment point
The corresponding objective optimization parameter of resolution.
In the present embodiment, can search with the immediate resolution ratio of second adjustment resolution ratio, and from all Optimal Parameters
Objective optimization parameter of the middle selection Optimal Parameters corresponding with the immediate resolution ratio as second adjustment resolution ratio.For example,
Second adjustment resolution ratio is A, and finding with the immediate resolution ratio of second adjustment resolution ratio A is B, then resolution ratio B is corresponding
Objective optimization parameter of the Optimal Parameters C as second adjustment resolution ratio A.
Step S550: display enhancing processing is carried out to the video file based on the objective optimization parameter, wherein described
Display enhancing processing improves the video file by the image in video file described in the objective optimization parameter processing
Video image quality,.
Wherein, the specific descriptions of step S550 please refer to step S130, and details are not described herein.
The method for processing video frequency that another embodiment of the application provides, when electronic equipment playing video file, detection should
Then resolution ratio corresponding to video file detects the present load rate of the graphics processor of electronic equipment, when present load rate
When higher than load factor threshold value, which is switched to second adjustment resolution ratio, wherein second adjustment resolution ratio is lower than the resolution
Rate is based on second adjustment resolution ratio, and objective optimization parameter corresponding with second adjustment resolution ratio is chosen from all Optimal Parameters,
Display enhancing processing is carried out to video file based on the objective optimization parameter, wherein display enhancing processing is joined by objective optimization
Number handles the image in video file to improve the video image quality of video file, to reduce the power consumption and promotion of graphics processor
The efficiency of video processing.
Referring to Fig. 7, Fig. 7 shows the module frame chart of video process apparatus 200 provided by the embodiments of the present application.The view
Frequency processing device 200 is applied to above-mentioned electronic equipment.It will be illustrated below for block diagram described in Fig. 7, the video processing
Device 200 includes: detection module 210, chooses module 220 and processing module 230, in which:
Detection module 210, for detecting corresponding to the video file when the electronic equipment playing video file
Resolution ratio.
Module 220 is chosen, for being based on the resolution ratio, is chosen from all Optimal Parameters corresponding with the resolution ratio
Objective optimization parameter.Further, the resolution ratio includes first resolution and second resolution, and the selection module 220 is wrapped
Include: first chooses submodule, in which:
First chooses submodule, for being based on the first resolution when the resolution ratio is the first resolution,
First object Optimal Parameters corresponding with the first resolution are chosen from all Optimal Parameters.
Described first chooses submodule, is also used to be based on described second when the resolution ratio is the second resolution
Resolution ratio chooses corresponding with the second resolution the second objective optimization parameter from all Optimal Parameters, wherein described the
The corresponding picture optimization quality of two objective optimization parameters picture corresponding better than the first object Optimal Parameters optimizes quality.
Further, the selection module 220 further include: the first judging submodule, second choose submodule, the second judgement
Submodule plays submodule, third judging submodule, output sub-module and third selection submodule, in which:
First judging submodule, for judging whether the resolution ratio is lower than the first given resolution.
Second chooses submodule, for being based on the resolution when the resolution ratio is lower than first given resolution
Rate chooses objective optimization parameter corresponding with the resolution ratio from all Optimal Parameters.
Second judgment submodule, for judging whether the resolution ratio is higher than the second given resolution, wherein described second
Given resolution is higher than first given resolution.
Submodule is played, for directly playing the video when the high resolution is when second given resolution
File.
Third judging submodule, for judging whether the resolution ratio meets third given resolution, wherein the third
Given resolution is greater than first given resolution and is less than second given resolution.
Output sub-module, for exporting inquiry message when the resolution ratio meets the third given resolution,
In, the inquiry message is used to indicate user and chooses whether to carry out the video file display enhancing processing.
Third chooses submodule, for being carried out at display enhancing when the instruction for receiving user's input to the video file
When the command information of reason, it is based on the resolution ratio, objective optimization corresponding with the resolution ratio is chosen from all Optimal Parameters
Parameter.
Further, the selection module 220 further include: network state detection submodule, network state judging submodule,
First switching submodule and the corresponding selection submodule of the first adjustment resolution ratio, in which:
Network state detection submodule, for detecting the current network state of the electronic equipment.
Network state judging submodule, for judging whether the current network state supports the resolution ratio.
First switching submodule, for when the current network state does not support the resolution ratio, by the resolution ratio
It is switched to the first adjustment resolution ratio, wherein the first adjustment resolution ratio is lower than the resolution ratio.
The first adjustment resolution ratio is corresponding to choose submodule, for being based on the first adjustment resolution ratio, joins from all optimizations
Objective optimization parameter corresponding with the first adjustment resolution ratio is chosen in number.
Still further, the selection module 220 further include: load factor detection sub-module, the second switching submodule and
Second adjustment resolution ratio is corresponding to choose submodule, in which:
Load factor detection sub-module, the present load rate of the graphics processor for detecting the electronic equipment.
Second switching submodule, for when the present load rate is higher than load factor threshold value, the resolution ratio to be switched
For second adjustment resolution ratio, wherein the second adjustment resolution ratio is lower than the resolution ratio.
Second adjustment resolution ratio is corresponding to choose submodule, for being based on the second adjustment resolution ratio, joins from all optimizations
Objective optimization parameter corresponding with the second adjustment resolution ratio is chosen in number.
Processing module 230, for carrying out display enhancing processing to the video file based on the objective optimization parameter,
In, the display enhancing processing improves the video text by the image in video file described in the objective optimization parameter processing
The video image quality of part.
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.
Referring to Fig. 8, it illustrates the structural block diagrams of a kind of electronic equipment 100 provided by the embodiments of the present application.The electronics
Equipment 100, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.In the application
Electronic equipment 100 may include one or more such as lower component: processor 110, memory 120, screen 130, codec 140
And one or more application program, wherein one or more application programs can be stored in memory 120 and be configured
To be executed by one or more processors 110, one or more programs are configured to carry out as described by preceding method embodiment
Method.
Wherein, processor 110 may include one or more processing core.Processor 110 utilizes various interfaces and route
The various pieces in entire electronic equipment 100 are connected, by running or executing the instruction being stored in memory 120, program, generation
Code collection or instruction set, and the data being stored in memory 120 are called, execute the various functions and processing of electronic equipment 100
Data.Optionally, processor 110 can be using Digital Signal Processing (Digital Signal Processing, DSP), scene
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 (Central
Processing Unit, CPU), in graphics processor (Graphics Processing Unit, GPU) and modem etc.
One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for
Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem
It can not be integrated into processor 110, be realized separately through 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..
The codec 140 can be used for encoding video data or being decoded, then by decoded video counts
It is shown according to screen 130 is transferred to, wherein the codec 140 can be GPU, dedicated DSP, FPGA, ASIG chip
Deng.
Referring to Fig. 9, it illustrates a kind of structural frames of computer-readable storage medium provided by the embodiments of the present application
Figure.Program code is stored in the computer-readable storage medium 300, said program code can be called by processor and be executed
State method described in embodiment of the method.
Computer-readable storage medium 300 can be (the read-only storage of electrically erasable of such as flash memory, EEPROM
Device), the electronic memory of EPROM, hard disk or ROM etc.Optionally, computer-readable storage medium 300 includes non-easy
The property lost computer-readable medium (non-transitory computer-readable storage medium).Computer can
Read the memory space that storage medium 300 has the program code 310 for executing any method and step in the above method.These journeys
Sequence code can read or be written to this one or more computer journey from one or more computer program product
In sequence product.Program code 310 can for example be compressed in a suitable form.
In conclusion method for processing video frequency provided by the embodiments of the present application, device, electronic equipment and storage medium, when
When electronic equipment playing video file, resolution ratio corresponding to the video file is detected, based on corresponding to the video file points
Resolution chooses objective optimization parameter corresponding with the resolution ratio from all Optimal Parameters, based on objective optimization parameter to video
File carry out display enhancing processing, wherein display enhancing processing by the image in objective optimization parameter processing video file come
The video image quality for improving video file, to determine different Optimal Parameters according to the different resolution of video file, and passes through
Optimal Parameters corresponding with resolution ratio carry out display enhancing processing to video file, to provide the video processing side for having more applicability
Method promotes video effect and user experience.
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 be applied to electronic equipment, which comprises
When the electronic equipment playing video file, resolution ratio corresponding to the video file is detected;
Based on the resolution ratio, objective optimization parameter corresponding with the resolution ratio is chosen from all Optimal Parameters;
Display enhancing processing is carried out to the video file based on the objective optimization parameter, wherein the display enhancing processing
The video image quality of the video file is improved by the image in video file described in the objective optimization parameter processing.
2. the method according to claim 1, wherein the resolution ratio includes that first resolution and second are differentiated
Rate, and the first resolution is higher than the second resolution, it is described to be based on the resolution ratio, it is chosen from all Optimal Parameters
Objective optimization parameter corresponding with the resolution ratio, comprising:
When the resolution ratio be the first resolution when, be based on the first resolution, from all Optimal Parameters choose with
The corresponding first object Optimal Parameters of the first resolution;
When the resolution ratio be the second resolution when, be based on the second resolution, from all Optimal Parameters choose with
The corresponding second objective optimization parameter of the second resolution, wherein the corresponding picture optimization of the second objective optimization parameter
Quality picture corresponding better than the first object Optimal Parameters optimizes quality.
3. the method according to claim 1, wherein described be based on the resolution ratio, from all Optimal Parameters
Choose objective optimization parameter corresponding with the resolution ratio, comprising:
Judge whether the resolution ratio is lower than the first given resolution;
When the resolution ratio is lower than first given resolution, it is based on the resolution ratio, is chosen from all Optimal Parameters
Objective optimization parameter corresponding with the resolution ratio.
4. according to the method described in claim 3, it is characterized in that, described be based on the resolution ratio, from all Optimal Parameters
Choose objective optimization parameter corresponding with the resolution ratio, further includes:
Judge whether the resolution ratio is higher than the second given resolution, wherein second given resolution is higher than described first
Given resolution;
When the high resolution is when second given resolution, the video file is directly played.
5. according to the method described in claim 4, it is characterized in that, described be based on the resolution ratio, from all Optimal Parameters
Choose objective optimization parameter corresponding with the resolution ratio, further includes:
Judge whether the resolution ratio meets third given resolution, wherein the third given resolution is greater than described first
Given resolution and be less than second given resolution;
When the resolution ratio meets the third given resolution, inquiry message is exported, wherein the inquiry message is for referring to
Show that user chooses whether to carry out the video file display enhancing processing;
When the instruction for receiving user's input carries out the command information of display enhancing processing to the video file, based on described
Resolution ratio chooses objective optimization parameter corresponding with the resolution ratio from all Optimal Parameters.
6. the method according to claim 1, wherein described be based on the resolution ratio, from all Optimal Parameters
Choose objective optimization parameter corresponding with the resolution ratio, comprising:
Detect the current network state of the electronic equipment;
Judge whether the current network state supports the resolution ratio;
When the current network state does not support the resolution ratio, the resolution ratio is switched to the first adjustment resolution ratio,
Described in the first adjustment resolution ratio be lower than the resolution ratio;
Based on the first adjustment resolution ratio, target corresponding with the first adjustment resolution ratio is chosen from all Optimal Parameters
Optimal Parameters.
7. method according to claim 1-6, which is characterized in that it is described to be based on the resolution ratio, from all excellent
Change and choose objective optimization parameter corresponding with the resolution ratio in parameter, comprising:
Detect the present load rate of the graphics processor of the electronic equipment;
When the present load rate is higher than load factor threshold value, the resolution ratio is switched to second adjustment resolution ratio, wherein institute
Second adjustment resolution ratio is stated lower than the resolution ratio;
Based on the second adjustment resolution ratio, target corresponding with the second adjustment resolution ratio is chosen from all Optimal Parameters
Optimal Parameters.
8. a kind of video process apparatus, which is characterized in that be applied to electronic equipment, described device includes:
Detection module, for detecting resolution ratio corresponding to the video file when the electronic equipment playing video file;
Module is chosen, for being based on the resolution ratio, it is excellent that target corresponding with the resolution ratio is chosen from all Optimal Parameters
Change parameter;
Processing module, for carrying out display enhancing processing to the video file based on the objective optimization parameter, wherein described
Display enhancing processing improves the view of the video file by the image in video file described in the objective optimization parameter processing
Frequency image quality.
9. a kind of electronic equipment characterized by comprising
Memory;
One or more processors are coupled with the memory;
One or more programs, wherein one or more of programs are stored in the memory and are configured as by institute
One or more processors execution is stated, one or more of programs are configured to carry out as described in claim any one of 1-7
Method.
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.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811438269.2A CN109587560A (en) | 2018-11-27 | 2018-11-27 | Method for processing video frequency, device, electronic equipment and storage medium |
PCT/CN2019/104140 WO2020107989A1 (en) | 2018-11-27 | 2019-09-03 | Video processing method and apparatus, and electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811438269.2A CN109587560A (en) | 2018-11-27 | 2018-11-27 | Method for processing video frequency, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109587560A true CN109587560A (en) | 2019-04-05 |
Family
ID=65925006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811438269.2A Pending CN109587560A (en) | 2018-11-27 | 2018-11-27 | Method for processing video frequency, device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109587560A (en) |
WO (1) | WO2020107989A1 (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111163334A (en) * | 2019-12-03 | 2020-05-15 | 成都品果科技有限公司 | Method and device for automatically converting video resolution |
WO2020107989A1 (en) * | 2018-11-27 | 2020-06-04 | Oppo广东移动通信有限公司 | Video processing method and apparatus, and electronic device and storage medium |
CN111970564A (en) * | 2020-08-26 | 2020-11-20 | 展讯通信(上海)有限公司 | Optimization method and device for HDR video display processing, storage medium and terminal |
CN112199149A (en) * | 2020-10-16 | 2021-01-08 | 维沃移动通信有限公司 | Interface rendering method and device and electronic equipment |
CN112422804A (en) * | 2019-08-20 | 2021-02-26 | 华为技术有限公司 | Video special effect generation method and terminal |
CN112492395A (en) * | 2020-11-30 | 2021-03-12 | 维沃移动通信有限公司 | Data processing method and device and electronic equipment |
CN113377187A (en) * | 2020-03-09 | 2021-09-10 | Oppo广东移动通信有限公司 | Power consumption optimization parameter configuration method and device, storage medium and electronic equipment |
CN113453043A (en) * | 2020-03-27 | 2021-09-28 | ***通信集团山东有限公司 | Video scheduling optimization method and device, computer equipment and storage medium |
CN113825032A (en) * | 2020-06-18 | 2021-12-21 | 聚好看科技股份有限公司 | Media asset playing method and display equipment |
CN114401422A (en) * | 2021-12-09 | 2022-04-26 | 杭州未名信科科技有限公司 | Video transmission method, device and system |
CN114489882A (en) * | 2021-12-16 | 2022-05-13 | 成都鲁易科技有限公司 | Method and device for realizing dynamic skin of browser and storage medium |
CN114913063A (en) * | 2021-02-10 | 2022-08-16 | 京东方科技集团股份有限公司 | Image processing method and device |
CN115665485A (en) * | 2022-12-26 | 2023-01-31 | 杭州星犀科技有限公司 | Video picture optimization method and device, storage medium and video terminal |
CN116668773A (en) * | 2022-11-22 | 2023-08-29 | 荣耀终端有限公司 | Method for enhancing video image quality and electronic equipment |
CN116723419A (en) * | 2023-07-03 | 2023-09-08 | 北京拙河科技有限公司 | Acquisition speed optimization method and device for billion-level high-precision camera |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103702061A (en) * | 2013-12-23 | 2014-04-02 | 上海网达软件股份有限公司 | Automatic adjustment method of resolution of video call of intelligent terminal |
US20140328405A1 (en) * | 2012-02-02 | 2014-11-06 | Panasonic Intellectual Property Corporation Of America | Methods and apparatuses for 3d media data generation, encoding, decoding and display using disparity information |
CN104981766A (en) * | 2014-04-28 | 2015-10-14 | 华为终端有限公司 | Method for displaying data on screen and display control device |
CN105635734A (en) * | 2014-11-03 | 2016-06-01 | 掌赢信息科技(上海)有限公司 | Self-adaptive video coding method and device based on video conversation scene |
CN108810649A (en) * | 2018-07-12 | 2018-11-13 | 深圳创维-Rgb电子有限公司 | Picture quality regulation method, intelligent TV set and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110025306A (en) * | 2009-09-04 | 2011-03-10 | 엘지전자 주식회사 | Video picture quality enhancement apparatus and method |
CN105592322B (en) * | 2014-09-19 | 2019-06-28 | 青岛海尔电子有限公司 | A kind of optimization method and device of media data |
CN106534942A (en) * | 2016-11-04 | 2017-03-22 | 微鲸科技有限公司 | Video image quality adjusting method and apparatus |
CN106961628B (en) * | 2017-03-24 | 2020-04-28 | 北京金山安全软件有限公司 | Video playing method and device and electronic equipment |
CN109587560A (en) * | 2018-11-27 | 2019-04-05 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and storage medium |
-
2018
- 2018-11-27 CN CN201811438269.2A patent/CN109587560A/en active Pending
-
2019
- 2019-09-03 WO PCT/CN2019/104140 patent/WO2020107989A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140328405A1 (en) * | 2012-02-02 | 2014-11-06 | Panasonic Intellectual Property Corporation Of America | Methods and apparatuses for 3d media data generation, encoding, decoding and display using disparity information |
CN103702061A (en) * | 2013-12-23 | 2014-04-02 | 上海网达软件股份有限公司 | Automatic adjustment method of resolution of video call of intelligent terminal |
CN104981766A (en) * | 2014-04-28 | 2015-10-14 | 华为终端有限公司 | Method for displaying data on screen and display control device |
CN105635734A (en) * | 2014-11-03 | 2016-06-01 | 掌赢信息科技(上海)有限公司 | Self-adaptive video coding method and device based on video conversation scene |
CN108810649A (en) * | 2018-07-12 | 2018-11-13 | 深圳创维-Rgb电子有限公司 | Picture quality regulation method, intelligent TV set and storage medium |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020107989A1 (en) * | 2018-11-27 | 2020-06-04 | Oppo广东移动通信有限公司 | Video processing method and apparatus, and electronic device and storage medium |
CN112422804A (en) * | 2019-08-20 | 2021-02-26 | 华为技术有限公司 | Video special effect generation method and terminal |
CN111163334A (en) * | 2019-12-03 | 2020-05-15 | 成都品果科技有限公司 | Method and device for automatically converting video resolution |
CN111163334B (en) * | 2019-12-03 | 2022-04-22 | 成都品果科技有限公司 | Method and device for automatically converting video resolution |
CN113377187A (en) * | 2020-03-09 | 2021-09-10 | Oppo广东移动通信有限公司 | Power consumption optimization parameter configuration method and device, storage medium and electronic equipment |
CN113453043B (en) * | 2020-03-27 | 2023-04-11 | ***通信集团山东有限公司 | Video scheduling optimization method and device, computer equipment and storage medium |
CN113453043A (en) * | 2020-03-27 | 2021-09-28 | ***通信集团山东有限公司 | Video scheduling optimization method and device, computer equipment and storage medium |
CN113825032A (en) * | 2020-06-18 | 2021-12-21 | 聚好看科技股份有限公司 | Media asset playing method and display equipment |
CN111970564A (en) * | 2020-08-26 | 2020-11-20 | 展讯通信(上海)有限公司 | Optimization method and device for HDR video display processing, storage medium and terminal |
CN112199149A (en) * | 2020-10-16 | 2021-01-08 | 维沃移动通信有限公司 | Interface rendering method and device and electronic equipment |
CN112492395A (en) * | 2020-11-30 | 2021-03-12 | 维沃移动通信有限公司 | Data processing method and device and electronic equipment |
WO2022111672A1 (en) * | 2020-11-30 | 2022-06-02 | 维沃移动通信有限公司 | Data processing method and apparatus, and electronic device |
CN114913063A (en) * | 2021-02-10 | 2022-08-16 | 京东方科技集团股份有限公司 | Image processing method and device |
CN114401422A (en) * | 2021-12-09 | 2022-04-26 | 杭州未名信科科技有限公司 | Video transmission method, device and system |
CN114489882A (en) * | 2021-12-16 | 2022-05-13 | 成都鲁易科技有限公司 | Method and device for realizing dynamic skin of browser and storage medium |
CN114489882B (en) * | 2021-12-16 | 2023-05-19 | 成都鲁易科技有限公司 | Method and device for realizing dynamic skin of browser and storage medium |
CN116668773A (en) * | 2022-11-22 | 2023-08-29 | 荣耀终端有限公司 | Method for enhancing video image quality and electronic equipment |
CN116668773B (en) * | 2022-11-22 | 2023-12-22 | 荣耀终端有限公司 | Method for enhancing video image quality and electronic equipment |
WO2024109202A1 (en) * | 2022-11-22 | 2024-05-30 | 荣耀终端有限公司 | Method for enhancing video image quality and electronic device |
CN115665485A (en) * | 2022-12-26 | 2023-01-31 | 杭州星犀科技有限公司 | Video picture optimization method and device, storage medium and video terminal |
CN115665485B (en) * | 2022-12-26 | 2023-04-28 | 杭州星犀科技有限公司 | Video picture optimization method and device, storage medium and video terminal |
CN116723419A (en) * | 2023-07-03 | 2023-09-08 | 北京拙河科技有限公司 | Acquisition speed optimization method and device for billion-level high-precision camera |
CN116723419B (en) * | 2023-07-03 | 2024-03-22 | 北京拙河科技有限公司 | Acquisition speed optimization method and device for billion-level high-precision camera |
Also Published As
Publication number | Publication date |
---|---|
WO2020107989A1 (en) | 2020-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109587560A (en) | Method for processing video frequency, device, electronic equipment and storage medium | |
CN109685726A (en) | Scene of game processing method, device, electronic equipment and storage medium | |
CN109640168B (en) | Video processing method, video processing device, electronic equipment and computer readable medium | |
CN109379625B (en) | Video processing method, video processing device, electronic equipment and computer readable medium | |
CN109361949A (en) | Method for processing video frequency, device, electronic equipment and storage medium | |
CN109379627A (en) | Method for processing video frequency, device, electronic equipment and storage medium | |
US11418832B2 (en) | Video processing method, electronic device and computer-readable storage medium | |
CN109587558B (en) | Video processing method, video processing device, electronic equipment and storage medium | |
CN109218802A (en) | Method for processing video frequency, device, electronic equipment and computer-readable medium | |
CN109242802A (en) | Image processing method, device, electronic equipment and computer-readable medium | |
CN109120988B (en) | Decoding method, decoding device, electronic device and storage medium | |
CN109640151A (en) | Method for processing video frequency, device, electronic equipment and storage medium | |
CN111652830A (en) | Image processing method and device, computer readable medium and terminal equipment | |
CN109587559A (en) | Method for processing video frequency, device, electronic equipment and storage medium | |
US11562772B2 (en) | Video processing method, electronic device, and storage medium | |
CN109618228A (en) | Video source modeling control method, device and electronic equipment | |
CN109361950A (en) | Method for processing video frequency, device, electronic equipment and storage medium | |
CN109525888A (en) | Image display method, 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 | |
CN109167946B (en) | Video processing method, video processing device, electronic equipment and storage medium | |
CN109379626A (en) | Method for processing video frequency, device, electronic equipment and storage medium | |
CN114390307A (en) | Image quality enhancement method, device, terminal and readable storage medium | |
CN109257636B (en) | Switching method and device for video enhancement, electronic equipment and storage medium | |
CN109712100A (en) | Video source modeling control method, device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190405 |
|
RJ01 | Rejection of invention patent application after publication |