CN104735456B - A kind of video encoding/decoding method and device - Google Patents
A kind of video encoding/decoding method and device Download PDFInfo
- Publication number
- CN104735456B CN104735456B CN201510146161.6A CN201510146161A CN104735456B CN 104735456 B CN104735456 B CN 104735456B CN 201510146161 A CN201510146161 A CN 201510146161A CN 104735456 B CN104735456 B CN 104735456B
- Authority
- CN
- China
- Prior art keywords
- decoding
- frame
- current video
- video frame
- decoding algorithm
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000011218 segmentation Effects 0.000 claims description 46
- 238000001914 filtration Methods 0.000 claims description 8
- 238000005070 sampling Methods 0.000 claims description 5
- 241000208340 Araliaceae Species 0.000 claims 2
- 235000003140 Panax quinquefolius Nutrition 0.000 claims 2
- 235000005035 ginseng Nutrition 0.000 claims 2
- 235000008434 ginseng Nutrition 0.000 claims 2
- 238000000034 method Methods 0.000 abstract description 18
- 230000000007 visual effect Effects 0.000 description 5
- 230000000875 corresponding Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 235000013399 edible fruits Nutrition 0.000 description 3
- 230000000386 athletic Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006011 modification reaction Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001131 transforming Effects 0.000 description 1
Abstract
The embodiment of the present invention, which provides a kind of video encoding/decoding method and device, method, to be included:Obtain the frame type of current video frame;The average decoding time t of the preceding N frames of current video frame is obtained, wherein, the average decoding time t is used to represent current decoding pressure state;Judge whether t is more than default decoding time threshold;If it is, determine whether to decode current video frame with the decoding algorithm set in the video flowing after simplification according to the frame type of current video frame;If it is not, then directly determine to decode current video frame with the decoding algorithm set in video flowing.Using the embodiment of the present invention, the video decoding speed of intelligent terminal can be effectively improved on the basis of Subjective video quality is ensured, ensures fluency of the video in playing process.
Description
Technical field
The present invention relates to video coding and decoding technology field, more particularly to a kind of video encoding/decoding method and device.
Background technology
Encoding and decoding standard H265 of new generation has very excellent compression performance, can ensure equal subjective image quality
Under the premise of than H264 save about half bandwidth.But the complexity of H265 encoding and decoding exceeds well over H264, therefore, in vision hardware
Under the present situation that decoding acceleration is popularized far away, improving the decoding speed of video software decoding turns into a kind of urgent demand.
In the prior art, when the decoding complex degree of video exceedes the decoding capability of intelligent terminal, typically using discarding
What the mode of certain video data solved.
But in video display process, the video data that is dropped can cause that video pictures are discontinuous, and video pictures go out
Existing Caton phenomenon, user can not obtain the video viewing experience of smoothness.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of video encoding/decoding method and device, to improve the video of intelligent terminal
Decoding speed, ensure fluency of the video in playing process.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of video encoding/decoding method, including step:
Obtain the frame type of current video frame;
The average decoding time t of the preceding N frames of current video frame is obtained, wherein, the average decoding time t is used to represent to work as
Preceding decoding pressure state;
Judge whether t is more than default decoding time threshold;
If it is, the decoding for being determined whether to set in the video flowing after simplification according to the frame type of current video frame is calculated
Method decodes to current video frame;
If it is not, then directly determine to decode current video frame with the decoding algorithm set in video flowing.
Preferably, the frame type according to current video frame determines whether the decoding to be set in the video flowing after simplification
Algorithm decodes to current video frame, including:
In the case where t > decode time first threshold, whether the frame type for judging current video frame is non-reference frame:Such as
Fruit is then the chromatic component of current video frame to be decoded with the decoding algorithm set in the video flowing after simplification, with video
The decoding algorithm set in stream decodes to the luminance component of current video frame, if it is not, then with the solution set in video flowing
Code algorithm decodes to current video frame.
Preferably, the frame type according to current video frame determines whether the decoding to be set in the video flowing after simplification
Algorithm decodes to current video frame, including:
In the case where decoding time Second Threshold < t≤threshold value of decoding time the 3rd, according to the frame class of current video frame
Type, judge whether to decode current video frame with the decoding algorithm set in the video flowing after simplification:If current video frame
For non-reference frame, then the chromatic component of current video frame is decoded with the decoding algorithm set in the video flowing after simplification,
The luminance component of current video frame is decoded with the decoding algorithm set in video flowing, if current video frame is reference frame,
Then current video frame is decoded with the decoding algorithm set in video flowing;
In the case where t > decode the threshold value of time the 3rd, according to the frame type of current video, judge whether with after simplification
The decoding algorithm set in video flowing decodes to current video frame:If current video frame is non-key frame, after simplification
Video flowing in the decoding algorithm that sets default volume is not more than to the chromatic component and code block segmentation depth of current video frame
The luminance component of code block segmentation depth threshold is decoded, big to code block segmentation depth with the decoding algorithm set in video flowing
Decoded in the luminance component of default code block segmentation depth threshold, if current video frame is key frame, with video flowing
The decoding algorithm of middle setting decodes to current video frame.
Preferably, the decoding algorithm set in video flowing after the simplification is the one or more in following algorithm:
On the basis of the decoding algorithm set in the video flowing, after omitting loop filtering processing, obtained decoding is calculated
Method;
On the basis of the decoding algorithm set in the video flowing, omit after sampling point self-adapted skew, obtained solution
Code algorithm;
On the basis of the decoding algorithm set in the video flowing, after omitting sub-pixel interpolation, obtained decoding algorithm.
Preferably, default code block segmentation depth threshold≤2.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of video decoder, including:
Frame type obtains module, for obtaining the frame type of current video frame;
Decoding time acquisition module, the average decoding time t of the preceding N frames for obtaining current video frame, wherein, it is described flat
Time t is decoded for representing current decoding pressure state;
Time judgment module is decoded, for judging whether t is more than default decoding time threshold;
Video frame decoding determining module, in the case of in the judged result of the decoding time judgment module to be,
Determine whether to enter current video frame with the decoding algorithm set in the video flowing after simplification according to the frame type of current video frame
Row decoding;
Frame of video decoder module, in the case of being no in the judged result of the decoding time judgment module, directly
It is determined that current video frame is decoded with the decoding algorithm set in video flowing.
Preferably, the video frame decoding determining module, is specifically used for:
In the case where t > decode time first threshold, whether the frame type for judging current video frame is non-reference frame:Such as
Fruit is then the chromatic component of current video frame to be decoded with the decoding algorithm set in the video flowing after simplification, with video
The decoding algorithm set in stream decodes to the luminance component of current video frame, if it is not, then with the solution set in video flowing
Code algorithm decodes to current video frame.
Preferably, the video frame decoding determining module, is specifically used for:
In the case where decoding time Second Threshold < t≤threshold value of decoding time the 3rd, according to the frame class of current video frame
Type, judge whether to decode current video frame with the decoding algorithm set in the video flowing after simplification:If current video frame
For non-reference frame, then the chromatic component of current video frame is decoded with the decoding algorithm set in the video flowing after simplification,
The luminance component of current video frame is decoded with the decoding algorithm set in video flowing, if current video frame is reference frame,
Then current video frame is decoded with the decoding algorithm set in video flowing;
In the case where t > decode the threshold value of time the 3rd, according to the frame type of current video, judge whether with after simplification
The decoding algorithm set in video flowing decodes to current video frame:If current video frame is non-key frame, after simplification
Video flowing in the decoding algorithm that sets default volume is not more than to the chromatic component and code block segmentation depth of current video frame
The luminance component of code block segmentation depth threshold is decoded, big to code block segmentation depth with the decoding algorithm set in video flowing
Decoded in the luminance component of default code block segmentation depth threshold, if current video frame is key frame, with video flowing
The decoding algorithm of middle setting decodes to current video frame.
Preferably, the decoding algorithm set in video flowing after the simplification is the one or more in following algorithm;
On the basis of the decoding algorithm set in the video flowing, after omitting loop filtering processing, obtained decoding is calculated
Method;
On the basis of the decoding algorithm set in the video flowing, omit after sampling point self-adapted skew, obtained solution
Code algorithm;
On the basis of the decoding algorithm set in the video flowing, after omitting sub-pixel interpolation, obtained decoding algorithm.
Preferably, default code block segmentation depth threshold≤2.
The embodiment of the present invention provides a kind of video encoding/decoding method and device.In order to improve the decoding speed of video, this method
According to the visual characteristic of human eye, on the premise of the change less of video subjectivity image quality is ensured, for insensitive point of human eye
Amount or region are decoded with the decoding algorithm set in the video flowing after simplification to current video frame, reduce answering for video decoding
Miscellaneous degree, so as to improve the decoding speed of video, alleviate decoding pressure, further, since not abandoning video data, also ensure that and regard
The continuity of frequency picture, avoids the occurrence of Caton phenomenon.Certainly, any product or method for implementing the present invention must be not necessarily required to together
When reach all the above advantage.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is decoder function block diagram;
Fig. 2 is a kind of schematic diagram on the segmentation of H265 coding units provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram on H265 code division depth provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet of video encoding/decoding method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of video decoder provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The development of electronic technology and multimedia technology, allow user to watch the video of oneself needs whenever and wherever possible and given pleasure to
Happy or study etc..The quality of video quality can bring the different visual experience of user, in existing video decoding techniques, when
When the decoding complex degree of video is higher than the decoding capability of video, interim card during video playback is will result in, prior art would generally
Certain video data is abandoned to reduce the decoding pressure of Video Decoder, still, the video data of discarding can cause video to broadcast
Picture is discontinuous during putting, and the visual experience of user is poor.
From the visual characteristic of human eye, the sensitivity that human eye changes for the luminance component of video exceeds well over colourity point
Amount change, meanwhile, human eye exceeds well over non-athletic details area for moving the degree of concern of details area in video.For small
The decline of video subjectivity image quality will not significantly affect the viewing effect of user, thus, it is possible to consider unwise for human eye
The video component of sense and region are decoded with simplified decoding algorithm, improve video decoding speed.
For the above situation, the present invention provides a kind of video encoding/decoding method and device, wherein, the above method includes:Obtain
The frame type of current video frame;The average decoding time t of the preceding N frames of current video frame is obtained, wherein, the average decoding time
T is used to represent current decoding pressure state;Judge whether t is more than default decoding time threshold;If it is, according to current
The frame type of frame of video determines whether to decode current video frame with the decoding algorithm set in the video flowing after simplification;Such as
Fruit is no, then directly determines to decode current video frame with the decoding algorithm set in video flowing.
Understood based on the above method, can exceeded using method provided in an embodiment of the present invention in decoder decoding complex degree
During the decoding capability of decoder, according to the frame type of current video frame, with the decoding algorithm pair set in the video flowing after simplification
Current video frame is decoded.In such manner, it is possible to the amount of calculation for decoding each frame of video is reduced, so as to reduce the decoding of video
Pressure, improves the decoding speed of video, further, since do not abandon video requency frame data, and component only insensitive to human eye or
Region carries out simplifying decoding, it is thus possible to enough ensure fluency and Subjective video quality of the video in playing process.
In order to clearly illustrate that the decoding algorithm set in the video flowing after simplifying can improve decoding speed
The reason for, common video decoding process is simply introduced first.From Fig. 1 decoder function block diagrams, decoded in video
During, the code stream of encoder output is handled, it is necessary to carry out entropy decoding 101, the 102, inverse quantization 103 that reorders, inverse transformation 104,
Reference picture 107 is handled by estimation 105, infra-frame prediction 106, is finally also needed to filtered device 108 and is filtered, is rebuild
Image 109, this reconstruction image are exactly last decoded output image.
As seen from the above, need just access reconstruction image by substantial amounts of computing in the decoding process of video, i.e.,
The image of last decoder output.Wherein, the operand of the loop filtering of wave filter 108 is very big, if to current video
When frame is decoded, the loop filtering link of wave filter 108 is saved, the operand in decoding process can be greatly reduced, is reduced
Capture Program Time;Sub-pixel interpolation would generally be carried out in estimation 106, for example, 1/2 picture element interpolation, 1/4 picture element interpolation,
Equally, the process operand for video frame images being carried out with sub-pixel difference is also very big, if the process of estimation 105 is only
Retain the information of whole pixel without sub-pixel interpolation, can also save many operands, reduce Capture Program Time.It is most main
Want, the visual characteristic based on human eye, human eye is inserted for saving a frame frame of video loop filtering link or saving sub-pixel
The video of value link decoding is almost what can not be discovered, human eye viewing effect is influenceed smaller.In order to further reduce above-mentioned letter
Change influence of the decoding algorithm to Subjective video quality, only the chromatic component insensitive to human eye and non-athletic details area are using upper
State simplified decoding algorithm.
In practical application, need to carry out piecemeal processing to video frame images in video coding process, video frame images
The abundant region of detailed information, the size of used encoding block is small, it is, code block segmentation depth is big, on the contrary, frame of video
The region that the detailed information of image is not enriched, the size of used encoding block is big, it is, code block segmentation depth is small.Tool
Body, for example, in H265 coding standards, as shown in figure 4, the encoding block of following size can be selected:64x64、32x32、
16x16,8x8, for its segmentation depth of the encoding block of above-mentioned each size, referring to Fig. 5, it is followed successively by:0、1、2、3.That is, work as
When the size of encoding block is 64*64, the segmentation depth corresponding to the encoding block is 0, should when the size of encoding block is 32*32
Segmentation depth corresponding to encoding block is 1, and when the size of encoding block is 16*16, the segmentation depth corresponding to the encoding block is
2, when the size of encoding block is 8*8, the segmentation depth corresponding to the encoding block is 3.
Therefore, decoding process is carried out to current video frame using the decoding algorithm set in the video flowing after simplification, can
When decoder decoding complex degree exceedes the decoding capability of decoder, the data volume for decoding each frame of video is reduced, so as to
The decoding pressure of video is reduced, improves the decoding speed of video, further, since video requency frame data is not abandoned, and only to human eye
Insensitive component or region carry out simplifying decoding, it is thus possible to enough ensure fluency and video of the video in playing process
Subjective quality.
Based on foregoing description, below by specific embodiment, the content of the invention is described in detail.
Fig. 4 is a kind of schematic flow sheet of video encoding/decoding method provided in an embodiment of the present invention, is comprised the following steps:
Step S401:Obtain the frame type of current video frame.
Step S402:Obtain the average decoding time t of the preceding N frames of current video frame.
Wherein, the average decoding time t is used to represent current decoding pressure state.
It should be understood that average decoding time t can be used for representing current decoding pressure state, when t is default more than certain
Show the decoding insufficient pressure of now decoder during threshold value, decoding pressure is big, conversely, decoding pressure is small.
Step S403:Judge whether t is more than default decoding time threshold, if it is, performing step S404;If not,
Perform step S405.
Wherein, default decoding time threshold is:
Default very first time value, or, with the direct proportionality reciprocal of the video frame rate f included in video file
Second time value.
Video frame rate f inverse is expressed as frame per second time interval S, in a kind of specific implementation, default average solution
Code time threshold can be expressed as S*x%, only be weighed with the time value represented by S*x% representated by average decoding time t
Decode pressure state.
Step S404:The decoding for being determined whether to set in the video flowing after simplification according to the frame type of current video frame is calculated
Method decodes to current video frame.
In the alternative embodiment of the present invention, this step can be determined whether according in the following manner with the video flowing after simplification
The decoding algorithm of middle setting decodes to current video frame:
Optional mode one:T > decode time first threshold in the case of, judge current video frame frame type whether be
Non-reference frame:If it is, the chromatic component of current video frame is carried out with the decoding algorithm set in the video flowing after simplification
Decoding, is decoded with the decoding algorithm set in video flowing to the luminance component of current video frame, if it is not, then with video flowing
The decoding algorithm of middle setting decodes to current video frame.
Preferably, it is S*a% to decode time first threshold, wherein, a=100.Certainly, a occurrence is not limited here
Fixed, a can also be 120 or 90 etc..
Specifically, in the case of t > 100%*S, if current video frame is non-reference frame, with the video flowing after simplification
The decoding algorithm of middle setting decodes to the chromatic component of current video frame, with the decoding algorithm that is set in video flowing to current
The luminance component of frame of video is decoded, if current video frame is reference frame, with the decoding algorithm that is set in video flowing to working as
Preceding frame of video is decoded.
Optional mode two:In the case where decoding time Second Threshold < t≤threshold value of decoding time the 3rd, according to working as forward sight
The frame type of frequency frame, judge whether to decode current video frame with the decoding algorithm set in the video flowing after simplification:If
Current video frame is non-reference frame, then the chromatic component with the decoding algorithm that is set in the video flowing after simplification to current video frame
Decoded, the luminance component of current video frame is decoded with the decoding algorithm set in video flowing, if current video frame
For reference frame, then current video frame is decoded with the decoding algorithm set in video flowing;
In the case where t > decode the threshold value of time the 3rd, according to the frame type of current video, judge whether with after simplification
The decoding algorithm set in video flowing decodes to current video frame:If current video frame is non-key frame, after simplification
Video flowing in the decoding algorithm that sets default volume is not more than to the chromatic component and code block segmentation depth of current video frame
The luminance component of code block segmentation depth threshold is decoded, big to code block segmentation depth with the decoding algorithm set in video flowing
Decoded in the luminance component of default code block segmentation depth threshold, if current video frame is key frame, with video flowing
The decoding algorithm of middle setting decodes to current video frame.
In the preferred embodiment of the present invention, above-mentioned default code block segmentation depth threshold≤2.Certainly, originally
Application is not defined to default code block segmentation depth threshold, and it can be carried out as the case may be in practical application
Setting, for example, being arranged to:2nd, 3 etc..
Preferably, it is S*b% to decode time Second Threshold, and the decoding threshold value of time the 3rd is S*c%, wherein, b=100, c
=150.Certainly, b or c occurrence are not limited here, b can also be 90 or 110 etc., and c can be 140 or 160 etc..
It should be noted that appropriate b and c value are set, it should current broadcasting pressure state can be accurately reflected, and should be met
B < c.
Specifically, in the case of 100%*S < t≤150%*S, if current video frame is non-reference frame, with simplification
The decoding algorithm set in video flowing afterwards decodes to the chromatic component of current video frame, with the decoding set in video flowing
Algorithm decodes to the luminance component of current video frame, if current video frame is reference frame, with the solution set in video flowing
Code algorithm decodes to current video frame;
In the case of t > 150%*S, if current video frame is non-key frame, to be set in the video flowing after simplification
Decoding algorithm default code block segmentation depth threshold is not more than to the chromatic component and code block segmentation depth of current video frame
The luminance component of value is decoded, and is more than default encoding block to code block segmentation depth with the decoding algorithm set in video flowing
The luminance component of segmentation depth threshold is decoded, if current video frame is key frame, is calculated with the decoding set in video flowing
Method decodes to current video frame.
Step S405:Directly determine to decode current video frame with the decoding algorithm set in video flowing.
It is specific with one below in order to the more complete video encoding/decoding method clearly explained above-described embodiment and provided
Example illustrates:
Assuming that:It is S*100% to decode time Second Threshold, and the decoding threshold value of time the 3rd is S*150%.
According to step S401:The frame type of current video frame is obtained, is P frames.
According to step S402:The average decoding time t for obtaining the preceding N frames of current video frame is S*160%.
According to step S403:Judge that t is more than the default 3rd decoding time threshold, therefore, perform step S104.
According to step S404:Due to t > S*150%, and the frame type P frames of present frame are non-key frame, therefore, can be with
The chromatic component and code block segmentation depth of current video frame are not more than with the decoding algorithm set in the video flowing after simplification
The luminance component of default code block segmentation depth threshold is decoded, and encoding block is divided with the decoding algorithm set in video flowing
The luminance component that depth is cut more than default code block segmentation depth threshold is decoded.
Based on the above situation, method provided in an embodiment of the present invention can exceed decoder in decoder decoding complex degree
During decoding capability, according to the frame type of current video frame, with the decoding algorithm that is set in the video flowing after simplification to current video
Frame is decoded.In such manner, it is possible to reduce the data volume for decoding each frame of video, so as to reduce the decoding pressure of video, carry
The decoding speed of high video, further, since video requency frame data is not abandoned, it is thus possible to enough ensure video in playing process
Fluency.
Fig. 5 is a kind of structural representation of video decoder provided in an embodiment of the present invention.The device includes:Frame type
Obtain module 501, the decoding time obtains module 502, decodes time judgment module 503, video frame decoding determining module 504, regards
Frequency frame decoding module 505.
The frame type obtains module 501, for obtaining the frame type of current video frame.
The decoding time obtains module 502, the average decoding time t of the preceding N frames for obtaining current video frame.
Wherein, the average decoding time t is used to represent current decoding pressure state;
The decoding time judgment module 503, for for judging whether t is more than default decoding time threshold;
The video frame decoding determining module 504, it is yes for the judged result in the decoding time judgment module
In the case of, determined whether according to the frame type of current video frame with the decoding algorithm set in the video flowing after simplification to working as forward sight
Frequency frame is decoded;
The frame of video decoder module 505, for the situation for being no in the judged result of the decoding time judgment module
Under, directly determine to decode current video frame with the decoding algorithm set in video flowing.
In embodiments of the present invention, video frame decoding determining module 304 has the optional embodiment of the following two kinds:
Optional mode one:T > decode time first threshold in the case of, judge current video frame frame type whether be
Non-reference frame:If it is, the chromatic component of current video frame is carried out with the decoding algorithm set in the video flowing after simplification
Decoding, is decoded with the decoding algorithm set in video flowing to the luminance component of current video frame, if it is not, then with video flowing
The decoding algorithm of middle setting decodes to current video frame.
Optional mode two:In the case where decoding time Second Threshold < t≤threshold value of decoding time the 3rd, according to working as forward sight
The frame type of frequency frame, judge whether to decode current video frame with the decoding algorithm set in the video flowing after simplification:If
Current video frame is non-reference frame, then the chromatic component with the decoding algorithm that is set in the video flowing after simplification to current video frame
Decoded, the luminance component of current video frame is decoded with the decoding algorithm set in video flowing, if current video frame
For reference frame, then current video frame is decoded with the decoding algorithm set in video flowing;
In the case where t > decode the threshold value of time the 3rd, according to the frame type of current video, judge whether with after simplification
The decoding algorithm set in video flowing decodes to current video frame:If current video frame is non-key frame, after simplification
Video flowing in the decoding algorithm that sets default volume is not more than to the chromatic component and code block segmentation depth of current video frame
The luminance component of code block segmentation depth threshold is decoded, big to code block segmentation depth with the decoding algorithm set in video flowing
Decoded in the luminance component of default code block segmentation depth threshold, if current video frame is key frame, with video flowing
The decoding algorithm of middle setting decodes to current video frame.
Wherein, default code block segmentation depth threshold≤2.
In addition, the decoding algorithm that sets is the one or more in following algorithm in video flowing after simplifying;Regarded described
During frequency flows on the basis of the decoding algorithm that sets, after omitting loop filtering processing, obtained decoding algorithm;In the video flowing
On the basis of the decoding algorithm of setting, omit after sampling point self-adapted skew, obtained decoding algorithm;Set in the video flowing
On the basis of the decoding algorithm put, after omitting sub-pixel interpolation, obtained decoding algorithm.
The decoding capability of decoder can be exceeded in decoder decoding complex degree by device provided in an embodiment of the present invention
When, according to the frame type of current video frame, current video frame is solved with the decoding algorithm set in the video flowing after simplification
Code.In such manner, it is possible to reduce the data volume for decoding each frame of video, so as to reduce the decoding pressure of video, video is improved
Decoding speed, further, since video requency frame data is not abandoned, and component only insensitive to human eye or region carry out simplifying decoding
It is thus possible to enough ensure fluency and Subjective video quality of the video in playing process.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Expenditure illustrates referring to the part of embodiment of the method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those
Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for system
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (6)
1. a kind of video encoding/decoding method, it is characterised in that methods described includes:
Obtain the frame type of current video frame;
The average decoding time t of the preceding N frames of current video frame is obtained, wherein, the average decoding time t is used to represent current
Decode pressure state;
Judge whether t is more than default decoding time threshold;
If it is, the decoding algorithm pair to be set in the video flowing after simplification is determined whether according to the frame type of current video frame
Current video frame is decoded;
If it is not, then directly determine to decode current video frame with the decoding algorithm set in video flowing;
Wherein, the frame type according to current video frame determines whether the decoding algorithm pair to be set in the video flowing after simplification
Current video frame is decoded, including:
In the case where decoding time Second Threshold < t≤threshold value of decoding time the 3rd, according to the frame type of current video frame, sentence
It is disconnected whether current video frame to be decoded with the decoding algorithm set in the video flowing after simplification:If current video frame is non-ginseng
Frame is examined, then the chromatic component of current video frame is decoded with the decoding algorithm set in the video flowing after simplification, with video
The decoding algorithm set in stream decodes to the luminance component of current video frame, if current video frame is reference frame, with regarding
The decoding algorithm that frequency is set in flowing decodes to current video frame;
In the case where t > decode the threshold value of time the 3rd, according to the frame type of current video, judge whether with the video after simplification
The decoding algorithm set in stream decodes to current video frame:If current video frame is non-key frame, with regarding after simplification
The decoding algorithm that frequency is set in flowing is not more than default encoding block to the chromatic component and code block segmentation depth of current video frame
The luminance component of segmentation depth threshold is decoded, and code block segmentation depth is more than with the decoding algorithm set in video flowing pre-
If the luminance component of code block segmentation depth threshold decoded, if current video frame is key frame, to be set in video flowing
The decoding algorithm put decodes to current video frame.
2. according to the method for claim 1, it is characterised in that the decoding algorithm set in the video flowing after the simplification is
One or more in following algorithm:
On the basis of the decoding algorithm set in the video flowing, after omitting loop filtering processing, obtained decoding algorithm;
On the basis of the decoding algorithm set in the video flowing, omit after sampling point self-adapted skew, obtained decoding is calculated
Method;
On the basis of the decoding algorithm set in the video flowing, after omitting sub-pixel interpolation, obtained decoding algorithm.
3. according to the method for claim 1, it is characterised in that default code block segmentation depth threshold≤2.
4. a kind of video decoder, it is characterised in that described device includes:
Frame type obtains module, for obtaining the frame type of current video frame;
Decoding time acquisition module, the average decoding time t of the preceding N frames for obtaining current video frame, wherein, the average solution
Code time t is used to represent current decoding pressure state;
Time judgment module is decoded, for judging whether t is more than default decoding time threshold;
Video frame decoding determining module, in the case of in the judged result of the decoding time judgment module to be, according to
The frame type of current video frame determines whether to solve current video frame with the decoding algorithm set in the video flowing after simplification
Code;
Frame of video decoder module, in the case of being no in the judged result of the decoding time judgment module, directly determine
Current video frame is decoded with the decoding algorithm set in video flowing;
Wherein, the video frame decoding determining module, is specifically used for:
In the case where decoding time Second Threshold < t≤threshold value of decoding time the 3rd, according to the frame type of current video frame, sentence
It is disconnected whether current video frame to be decoded with the decoding algorithm set in the video flowing after simplification:If current video frame is non-ginseng
Frame is examined, then the chromatic component of current video frame is decoded with the decoding algorithm set in the video flowing after simplification, with video
The decoding algorithm set in stream decodes to the luminance component of current video frame, if current video frame is reference frame, with regarding
The decoding algorithm that frequency is set in flowing decodes to current video frame;
In the case where t > decode the threshold value of time the 3rd, according to the frame type of current video, judge whether with the video after simplification
The decoding algorithm set in stream decodes to current video frame:If current video frame is non-key frame, with regarding after simplification
The decoding algorithm that frequency is set in flowing is not more than default encoding block to the chromatic component and code block segmentation depth of current video frame
The luminance component of segmentation depth threshold is decoded, and code block segmentation depth is more than with the decoding algorithm set in video flowing pre-
If the luminance component of code block segmentation depth threshold decoded, if current video frame is key frame, to be set in video flowing
The decoding algorithm put decodes to current video frame.
5. device according to claim 4, it is characterised in that the decoding algorithm set in the video flowing after the simplification is
One or more in following algorithm;
On the basis of the decoding algorithm set in the video flowing, after omitting loop filtering processing, obtained decoding algorithm;
On the basis of the decoding algorithm set in the video flowing, omit after sampling point self-adapted skew, obtained decoding is calculated
Method;
On the basis of the decoding algorithm set in the video flowing, after omitting sub-pixel interpolation, obtained decoding algorithm.
6. device according to claim 4, it is characterised in that default code block segmentation depth threshold≤2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510146161.6A CN104735456B (en) | 2015-03-30 | A kind of video encoding/decoding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510146161.6A CN104735456B (en) | 2015-03-30 | A kind of video encoding/decoding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104735456A CN104735456A (en) | 2015-06-24 |
CN104735456B true CN104735456B (en) | 2018-02-09 |
Family
ID=
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101080007A (en) * | 2006-05-23 | 2007-11-28 | 中国科学院声学研究所 | Method for reducing video decoding complexity via decoding quality |
CN102316319A (en) * | 2010-07-05 | 2012-01-11 | 联发科技股份有限公司 | Adaptive video coding/decoding method, decoder and audio/video playback system |
CN104994389A (en) * | 2015-05-29 | 2015-10-21 | 常州北大众志网络计算机有限公司 | Implementation method of low power consumption decoder for special video encoding unit |
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101080007A (en) * | 2006-05-23 | 2007-11-28 | 中国科学院声学研究所 | Method for reducing video decoding complexity via decoding quality |
CN102316319A (en) * | 2010-07-05 | 2012-01-11 | 联发科技股份有限公司 | Adaptive video coding/decoding method, decoder and audio/video playback system |
CN104994389A (en) * | 2015-05-29 | 2015-10-21 | 常州北大众志网络计算机有限公司 | Implementation method of low power consumption decoder for special video encoding unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104717509B (en) | A kind of video encoding/decoding method and device | |
EP1680928B1 (en) | Methods of processing digital image and/or video data including luminance filtering based on chrominance data | |
EP2916543B1 (en) | Method for coding/decoding depth image and coding/decoding device | |
US9386319B2 (en) | Post-process filter for decompressed screen content | |
CN109729405B (en) | Video processing method and device, electronic equipment and storage medium | |
CN114554211A (en) | Content adaptive video coding method, device, equipment and storage medium | |
CN108235055B (en) | Method and device for realizing transparent video in AR scene | |
CN109640167B (en) | Video processing method and device, electronic equipment and storage medium | |
CN108271024A (en) | Image coding, coding/decoding method and device | |
WO2021057477A1 (en) | Video encoding and decoding method and related device | |
CN110740316A (en) | Data coding method and device | |
CN106791850A (en) | Method for video coding and device | |
US20140254688A1 (en) | Perceptual Quality Of Content In Video Collaboration | |
US10638131B2 (en) | Content providing apparatus, display apparatus, and control method therefor | |
US20120007951A1 (en) | System and format for encoding data and three-dimensional rendering | |
US11991399B2 (en) | Apparatus and method for de-blocking filtering | |
CN113452996B (en) | Video coding and decoding method and device | |
CN105635715A (en) | Video format identification method and device | |
CN104735456B (en) | A kind of video encoding/decoding method and device | |
CN107509074B (en) | Self-adaptive 3D video compression coding and decoding method based on compressed sensing | |
US20150245064A1 (en) | Coding Method And Device Applied To HEVC-based 3DVC | |
CN103686181A (en) | Method and system for coding screen display information | |
CN103686182A (en) | Method and system for coding screen display information | |
CN106254811A (en) | Mobile terminal and the control method of video calling thereof and system | |
Shao et al. | JND-based asymmetric coding of stereoscopic video for mobile 3DTV applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |