CN104735456A - Video decoding method and device - Google Patents

Video decoding method and device Download PDF

Info

Publication number
CN104735456A
CN104735456A CN201510146161.6A CN201510146161A CN104735456A CN 104735456 A CN104735456 A CN 104735456A CN 201510146161 A CN201510146161 A CN 201510146161A CN 104735456 A CN104735456 A CN 104735456A
Authority
CN
China
Prior art keywords
frame
current video
decoding algorithm
decoding
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510146161.6A
Other languages
Chinese (zh)
Other versions
CN104735456B (en
Inventor
费伟
唐宇
陆骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201510146161.6A priority Critical patent/CN104735456B/en
Priority claimed from CN201510146161.6A external-priority patent/CN104735456B/en
Publication of CN104735456A publication Critical patent/CN104735456A/en
Application granted granted Critical
Publication of CN104735456B publication Critical patent/CN104735456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the invention provides a video decoding method and device. The method comprises the steps that firstly, the frame type of current video frames is acquired; secondly, the average decoding time t of the previous N frames among the current video frames is acquired, wherein the average decoding time t is used for showing the current decoding pressure state; thirdly, whether t is larger than a preset decoding time threshold value or not is judged, if yes, whether the current video frames are decoded through a decoding algorithm set in a simplified video stream or not is determined according to the frame type of the current video frames, and if not, it is directly determined that the current video frames are decoded through the decoding algorithm set in the video stream. By adopting the video decoding method and device, the video decoding speed of an intelligent terminal can be effectively increased on the basis of guaranteeing the subjective quality of videos, and smoothness of the videos in the playing process is guaranteed.

Description

A kind of video encoding/decoding method and device
Technical field
The present invention relates to video coding and decoding technology field, particularly relate to a kind of video encoding/decoding method and device.
Background technology
A new generation encoding and decoding standard H265 has very excellent compression performance, can save about one half-band width under the prerequisite ensureing equal subjective image quality than H264.But the complexity of H265 encoding and decoding is far more than H264, and therefore, under present situation universal is far away accelerated in vision hardware decoding, the decoding speed improving video software decoding becomes a kind of urgent demand.
In prior art, when the decoding complex degree of video exceedes the decoding capability of intelligent terminal, the mode abandoning certain video data is normally adopted to solve.
But in video display process, the video data be dropped can cause video pictures discontinuous, and Caton phenomenon appears in video pictures, user can not obtain smooth video viewing experience.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of video encoding/decoding method and device, to improve the video decode speed of intelligent terminal, ensures the fluency of video in playing process.
For achieving the above object, the embodiment of the invention discloses a kind of video encoding/decoding method, comprising step:
Obtain the frame type of current video frame;
Obtain the average decoding time t of the front N frame of current video frame, wherein, described average decoding time t is for representing current decoding pressure state;
Judge whether t is greater than default decode time threshold value;
If so, then the decoding algorithm determining whether to arrange in the video flowing after simplifying according to the frame type of current video frame is decoded to current video frame;
If not, then directly determine to decode to current video frame with the decoding algorithm arranged in video flowing.
Preferably, the decoding algorithm that the described frame type according to current video frame determines whether to arrange in the video flowing after simplifying is decoded to current video frame, comprising:
When t > decode time first threshold, whether the frame type judging current video frame is non-reference frame: if, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if not, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
Preferably, the decoding algorithm that the described frame type according to current video frame determines whether to arrange in the video flowing after simplifying is decoded to current video frame, comprising:
When decode time Second Threshold < t≤decode time the 3rd threshold value, according to the frame type of current video frame, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-reference frame, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if current video frame is reference frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded,
When t > decode time the 3rd threshold value, according to the frame type of current video, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-key frame, then with the decoding algorithm arranged in the video flowing after simplification, the luminance component that the chromatic component of current video frame and the code block segmentation degree of depth are not more than default code block segmentation depth threshold is decoded, with the decoding algorithm arranged in video flowing, the luminance component that the code block segmentation degree of depth is greater than default code block segmentation depth threshold is decoded, if current video frame is key frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
Preferably, the decoding algorithm arranged in the video flowing after described simplification is one or more in following algorithm:
On the basis of the decoding algorithm arranged in described video flowing, after omitting loop filtering process, the decoding algorithm obtained;
On the basis of the decoding algorithm arranged in described video flowing, after omitting the skew of sampled point self adaptation, the decoding algorithm obtained;
On the basis of the decoding algorithm arranged in described video flowing, after omitting sub pixel interpolation, the decoding algorithm obtained.
Preferably, described default code block segmentation depth threshold≤2.
For achieving the above object, the embodiment of the invention discloses a kind of video decoder, comprising:
Frame type obtains module, for obtaining the frame type of current video frame;
Decode time obtains module, and for obtaining the average decoding time t of N frame before current video frame, wherein, described average decoding time t is for representing current decoding pressure state;
Decode time judge module, for judging whether t is greater than default decode time threshold value;
Frame of video decoding determination module, for when the judged result of described decode time judge module is for being, decodes to current video frame according to the decoding algorithm that the frame type of current video frame determines whether to arrange in the video flowing after simplifying;
Frame of video decoder module, for when the judged result of described decode time judge module is no, directly determines to decode to current video frame with the decoding algorithm arranged in video flowing.
Preferably, described frame of video decoding determination module, specifically for:
When t > decode time first threshold, whether the frame type judging current video frame is non-reference frame: if, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if not, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
Preferably, described frame of video decoding determination module, specifically for:
When decode time Second Threshold < t≤decode time the 3rd threshold value, according to the frame type of current video frame, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-reference frame, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if current video frame is reference frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded,
When t > decode time the 3rd threshold value, according to the frame type of current video, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-key frame, then with the decoding algorithm arranged in the video flowing after simplification, the luminance component that the chromatic component of current video frame and the code block segmentation degree of depth are not more than default code block segmentation depth threshold is decoded, with the decoding algorithm arranged in video flowing, the luminance component that the code block segmentation degree of depth is greater than default code block segmentation depth threshold is decoded, if current video frame is key frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
Preferably, the decoding algorithm arranged in the video flowing after described simplification is one or more in following algorithm;
On the basis of the decoding algorithm arranged in described video flowing, after omitting loop filtering process, the decoding algorithm obtained;
On the basis of the decoding algorithm arranged in described video flowing, after omitting the skew of sampled point self adaptation, the decoding algorithm obtained;
On the basis of the decoding algorithm arranged in described video flowing, after omitting sub pixel interpolation, the decoding algorithm obtained.
Preferably, described 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, the method is according to the visual characteristic of human eye, under the subjective image quality of guarantee video changes little prerequisite, the insensitive component of human eye or region are decoded to current video frame with the decoding algorithm arranged in the video flowing after simplification, reduces the complexity of video decode, thus improve the decoding speed of video, alleviate decoding pressure, in addition, owing to not abandoning video data, also ensure that the continuity of video pictures, avoid occurring Caton phenomenon.Certainly, arbitrary product of the present invention is implemented or method must not necessarily need to reach above-described all advantages simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is decoder function block diagram;
A kind of schematic diagram about the segmentation of H265 coding unit that Fig. 2 provides for the embodiment of the present invention;
A kind of schematic diagram about the H265 code division degree of depth that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of a kind of video encoding/decoding method that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of video decoder that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The development of electronic technology and multimedia technology, the video that allowing user can watch oneself whenever and wherever possible needs carries out amusement or study etc.The quality of video quality can bring user different visual experiences; in existing video decoding techniques; when decoding capability higher than video of the decoding complex degree of video; card during video playback will be caused to pause; prior art can abandon certain video data usually to reduce the decoding pressure of Video Decoder; but the video data abandoned can cause the discontinuous of picture in video display process, and the visual experience of user is poor.
From the visual characteristic of human eye, human eye far exceedes chromatic component change for the sensitivity that the luminance component of video changes, and meanwhile, human eye far exceedes non-athletic details area for the degree of concern of motion details area in video.Decline for the subjective image quality of small video obviously can not affect the viewing effect of user, thus, can consider to decode with the decoding algorithm simplified for the insensitive video component of human eye and region, improve video decode speed.
For above-mentioned situation, the invention provides a kind of video encoding/decoding method and device, wherein, said method comprises: the frame type obtaining current video frame; Obtain the average decoding time t of the front N frame of current video frame, wherein, described average decoding time t is for representing current decoding pressure state; Judge whether t is greater than default decode time threshold value; If so, then the decoding algorithm determining whether to arrange in the video flowing after simplifying according to the frame type of current video frame is decoded to current video frame; If not, then directly determine to decode to current video frame with the decoding algorithm arranged in video flowing.
Known based on said method, the method that the application embodiment of the present invention provides can when decoders decode complexity exceedes the decoding capability of decoder, according to the frame type of current video frame, with the decoding algorithm arranged in the video flowing after simplifying, current video frame is decoded.Like this, the amount of calculation of each frame of video of decoding can be reduced, thus the decoding pressure of video can be reduced, improve the decoding speed of video, in addition, owing to not abandoning video requency frame data, and only simplification decoding is carried out to the insensitive component of human eye or region, therefore, the fluency of video in playing process and Subjective video quality can also be ensured.
In order to clearly illustrate that the decoding algorithm arranged in the video flowing after simplification can improve the reason of decoding speed, first simply introduce common video decoding process.From Fig. 1 decoder function block diagram, in video decoding process, the code stream that encoder exports, need to carry out entropy decoding 101, reorder 102, inverse quantization 103, inverse transformation 104 process, reference picture 107 processes through estimation 105, infra-frame prediction 106, finally also need through filter 108 filtering, obtain rebuilding image 109, this rebuilds image is exactly last decoded output image.
As seen from the above, need can obtain rebuilding image through a large amount of computings in the decode procedure of video, i.e. the image of last decoder output.Wherein, the operand of the loop filtering of filter 108 is very large, if when decoding to current video frame, saving the loop filtering link of filter 108, can greatly reduce the operand in decode procedure, reduce Capture Program Time; Usually sub pixel interpolation can be carried out in estimation 106; such as; 1/2 picture element interpolation, 1/4 picture element interpolation; equally; process operand video frame images being carried out to sub-pixel difference is also very large; if estimation 105 process only retains the information of Integer Pel point and do not carry out sub pixel interpolation, also can save a lot of operand, reduce Capture Program Time.Most importantly, based on the visual characteristic of human eye, human eye for save a frame frame of video loop filtering link or save sub pixel interpolation link decoding video almost cannot discover, on human eye viewing effect impact less.In order to reduce above-mentioned simplified solution code calculation further to the impact of Subjective video quality, only the insensitive chromatic component of human eye and non-athletic details area are adopted to the decoding algorithm of above-mentioned simplification.
In practical application, need to carry out piecemeal process to video frame images in video coding process, the region that the detailed information of video frame images is abundant, the size of the encoding block adopted is little, namely, the code block segmentation degree of depth is large, on the contrary, the region that the detailed information of video frame images is not enriched, the size of the encoding block adopted is large, namely, the code block segmentation degree of depth is little.Concrete, such as, in H265 coding standard, as shown in Figure 4, the encoding block of following size can be selected: 64x64,32x32,16x16,8x8, for its segmentation degree of depth of encoding block of above-mentioned each size, see Fig. 5, be followed successively by: 0,1,2,3.That is, when encoding block is of a size of 64*64, the segmentation degree of depth corresponding to this encoding block is 0, when encoding block is of a size of 32*32, the segmentation degree of depth corresponding to this encoding block is 1, and when encoding block is of a size of 16*16, the segmentation degree of depth corresponding to this encoding block is 2, when encoding block is of a size of 8*8, the segmentation degree of depth corresponding to this encoding block is 3.
Therefore, the decoding algorithm arranged in the video flowing after simplifying is adopted to carry out decoding process to current video frame, can when decoders decode complexity exceedes the decoding capability of decoder, reduce the data volume of each frame of video of decoding, thus the decoding pressure of video can be reduced, improve the decoding speed of video, in addition, owing to not abandoning video requency frame data, and only simplification decoding is carried out to the insensitive component of human eye or region, therefore, the fluency of video in playing process and Subjective video quality can also be ensured.
Based on foregoing description, below by specific embodiment, summary of the invention is described in detail.
The schematic flow sheet of a kind of video encoding/decoding method that Fig. 4 provides for the embodiment of the present invention, comprises the steps:
Step S401: the frame type obtaining current video frame.
Step S402: the average decoding time t obtaining the front N frame of current video frame.
Wherein, described average decoding time t is for representing current decoding pressure state.
Understandable, average decoding time t can be used for representing current decoding pressure state, shows the decoding insufficient pressure of now decoder when t is greater than certain predetermined threshold value, and decoding pressure is large, otherwise decoding pressure is little.
Step S403: judge whether t is greater than default decode time threshold value, if so, performs step S404; If not, step S405 is performed.
Wherein, the decode time threshold value preset is:
The very first time value preset, or, with the second time value of the direct proportionality reciprocal of the video frame rate f comprised in video file.
The inverse of video frame rate f is expressed as frame per second time interval S, and in a kind of specific implementation, the average decoding time threshold value preset can be expressed as S*x%, only weighs the decoding pressure state representated by average decoding time t by the time value represented by S*x%.
Step S404: current video frame is decoded according to the decoding algorithm that the frame type of current video frame determines whether to arrange in the video flowing after simplifying.
In optional embodiment of the present invention, this step can be decoded to current video frame according to the decoding algorithm determining whether with under type to arrange in the video flowing after simplifying:
Optional manner one: when t > decode time first threshold, whether the frame type judging current video frame is non-reference frame: if, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if not, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
Preferably, decode time first threshold is S*a%, wherein, and a=100.Certainly, do not limit the occurrence of a here, a can also be 120 or 90 etc.
Concrete, when t > 100%*S, if current video frame is non-reference frame, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if current video frame is reference frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
Optional manner two: when decode time Second Threshold < t≤decode time the 3rd threshold value, according to the frame type of current video frame, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-reference frame, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if current video frame is reference frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded,
When t > decode time the 3rd threshold value, according to the frame type of current video, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-key frame, then with the decoding algorithm arranged in the video flowing after simplification, the luminance component that the chromatic component of current video frame and the code block segmentation degree of depth are not more than default code block segmentation depth threshold is decoded, with the decoding algorithm arranged in video flowing, the luminance component that the code block segmentation degree of depth is greater than default code block segmentation depth threshold is decoded, if current video frame is key frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
In a preferred embodiment of the present invention, above-mentioned code block segmentation depth threshold≤2 of presetting.Certainly, the application does not limit the code block segmentation depth threshold preset, and can set as the case may be, such as, be set in practical application to it: 2,3 etc.
Preferably, decode time Second Threshold is S*b%, and decode time the 3rd threshold value is S*c%, wherein, and b=100, c=150.Certainly, do not limit the occurrence of b or c here, b can also be 90 or 110 etc., and c can be 140 or 160 etc.It should be noted that the value that appropriate b and c is set, accurately should be able to reflect current broadcasting pressure state, and b < c should be met.
Concrete, when 100%*S < t≤150%*S, if current video frame is non-reference frame, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if current video frame is reference frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded;
When t > 150%*S, if current video frame is non-key frame, then with the decoding algorithm arranged in the video flowing after simplification, the luminance component that the chromatic component of current video frame and the code block segmentation degree of depth are not more than default code block segmentation depth threshold is decoded, with the decoding algorithm arranged in video flowing, the luminance component that the code block segmentation degree of depth is greater than default code block segmentation depth threshold is decoded, if current video frame is key frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
Step S405: directly determine to decode to current video frame with the decoding algorithm arranged in video flowing.
In order to more completely clearly the video encoding/decoding method that provides of above-described embodiment can be explained, be described with a concrete example below:
Suppose: decode time Second Threshold is S*100%, decode time the 3rd threshold value is S*150%.
According to step S401: the frame type obtaining current video frame is P frame.
According to step S402: the average decoding time t obtaining the front N frame of current video frame is S*160%.
According to step S403: judge that t is greater than the 3rd default decode time threshold value, therefore, step S104 is performed.
According to step S404: due to t > S*150%, and the frame type P frame of present frame is non-key frame, therefore, can decode to the luminance component that the chromatic component of current video frame and the code block segmentation degree of depth are not more than default code block segmentation depth threshold with the decoding algorithm arranged in the video flowing after simplification, with the decoding algorithm arranged in video flowing, the luminance component that the code block segmentation degree of depth is greater than default code block segmentation depth threshold be decoded.
Based on above-mentioned situation, the method that the embodiment of the present invention provides can when decoders decode complexity exceedes the decoding capability of decoder, according to the frame type of current video frame, decodes to current video frame with the decoding algorithm arranged in the video flowing after simplifying.Like this, the data volume of each frame of video of decoding can be reduced, thus the decoding pressure of video can be reduced, improve the decoding speed of video, in addition, owing to not abandoning video requency frame data, therefore, the fluency of video in playing process can also be ensured.
The structural representation of a kind of video decoder that Fig. 5 provides for the embodiment of the present invention.This device comprises: frame type obtains module 501, decode time acquisition module 502, decode time judge module 503, frame of video decoding determination module 504, frame of video decoder module 505.
Described frame type obtains module 501, for obtaining the frame type of current video frame.
Described decode time obtains module 502, for obtaining the average decoding time t of N frame before current video frame.
Wherein, described average decoding time t is for representing current decoding pressure state;
Described decode time judge module 503, for for judging whether t is greater than default decode time threshold value;
Described frame of video decoding determination module 504, for when the judged result of described decode time judge module is for being, decodes to current video frame according to the decoding algorithm that the frame type of current video frame determines whether to arrange in the video flowing after simplifying;
Described frame of video decoder module 505, for when the judged result of described decode time judge module is no, directly determines to decode to current video frame with the decoding algorithm arranged in video flowing.
In embodiments of the present invention, frame of video decoding determination module 304 has the optional execution mode of the following two kinds:
Optional manner one: when t > decode time first threshold, whether the frame type judging current video frame is non-reference frame: if, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if not, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
Optional manner two: when decode time Second Threshold < t≤decode time the 3rd threshold value, according to the frame type of current video frame, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-reference frame, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if current video frame is reference frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded,
When t > decode time the 3rd threshold value, according to the frame type of current video, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-key frame, then with the decoding algorithm arranged in the video flowing after simplification, the luminance component that the chromatic component of current video frame and the code block segmentation degree of depth are not more than default code block segmentation depth threshold is decoded, with the decoding algorithm arranged in video flowing, the luminance component that the code block segmentation degree of depth is greater than default code block segmentation depth threshold is decoded, if current video frame is key frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
Wherein, code block segmentation depth threshold≤2 of presetting.
In addition, the decoding algorithm arranged in the video flowing after simplification is one or more in following algorithm; On the basis of the decoding algorithm arranged in described video flowing, after omitting loop filtering process, the decoding algorithm obtained; On the basis of the decoding algorithm arranged in described video flowing, after omitting the skew of sampled point self adaptation, the decoding algorithm obtained; On the basis of the decoding algorithm arranged in described video flowing, after omitting sub pixel interpolation, the decoding algorithm obtained.
The device provided by the embodiment of the present invention can when decoders decode complexity exceedes the decoding capability of decoder, according to the frame type of current video frame, decodes to current video frame with the decoding algorithm arranged in the video flowing after simplifying.Like this, the data volume of each frame of video of decoding can be reduced, thus the decoding pressure of video can be reduced, improve the decoding speed of video, in addition, owing to not abandoning video requency frame data, and only therefore simplification decoding is carried out to the insensitive component of human eye or region, the fluency of video in playing process and Subjective video quality can also be ensured.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant expenditure illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a video encoding/decoding method, is characterized in that, described method comprises:
Obtain the frame type of current video frame;
Obtain the average decoding time t of the front N frame of current video frame, wherein, described average decoding time t is for representing current decoding pressure state;
Judge whether t is greater than default decode time threshold value;
If so, then the decoding algorithm determining whether to arrange in the video flowing after simplifying according to the frame type of current video frame is decoded to current video frame;
If not, then directly determine to decode to current video frame with the decoding algorithm arranged in video flowing.
2. method according to claim 1, is characterized in that, the decoding algorithm that the described frame type according to current video frame determines whether to arrange in the video flowing after simplifying is decoded to current video frame, comprising:
When t > decode time first threshold, whether the frame type judging current video frame is non-reference frame: if, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if not, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
3. method according to claim 1, is characterized in that, the decoding algorithm that the described frame type according to current video frame determines whether to arrange in the video flowing after simplifying is decoded to current video frame, comprising:
When decode time Second Threshold < t≤decode time the 3rd threshold value, according to the frame type of current video frame, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-reference frame, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if current video frame is reference frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded,
When t > decode time the 3rd threshold value, according to the frame type of current video, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-key frame, then with the decoding algorithm arranged in the video flowing after simplification, the luminance component that the chromatic component of current video frame and the code block segmentation degree of depth are not more than default code block segmentation depth threshold is decoded, with the decoding algorithm arranged in video flowing, the luminance component that the code block segmentation degree of depth is greater than default code block segmentation depth threshold is decoded, if current video frame is key frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
4. according to the method in any one of claims 1 to 3, it is characterized in that, the decoding algorithm arranged in the video flowing after described simplification is one or more in following algorithm:
On the basis of the decoding algorithm arranged in described video flowing, after omitting loop filtering process, the decoding algorithm obtained;
On the basis of the decoding algorithm arranged in described video flowing, after omitting the skew of sampled point self adaptation, the decoding algorithm obtained;
On the basis of the decoding algorithm arranged in described video flowing, after omitting sub pixel interpolation, the decoding algorithm obtained.
5. method according to claim 3, is characterized in that, described default code block segmentation depth threshold≤2.
6. a video decoder, is characterized in that, described device comprises:
Frame type obtains module, for obtaining the frame type of current video frame;
Decode time obtains module, and for obtaining the average decoding time t of N frame before current video frame, wherein, described average decoding time t is for representing current decoding pressure state;
Decode time judge module, for judging whether t is greater than default decode time threshold value;
Frame of video decoding determination module, for when the judged result of described decode time judge module is for being, decodes to current video frame according to the decoding algorithm that the frame type of current video frame determines whether to arrange in the video flowing after simplifying;
Frame of video decoder module, for when the judged result of described decode time judge module is no, directly determines to decode to current video frame with the decoding algorithm arranged in video flowing.
7. device according to claim 6, is characterized in that, described frame of video decoding determination module, specifically for:
When t > decode time first threshold, whether the frame type judging current video frame is non-reference frame: if, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if not, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
8. device according to claim 6, is characterized in that, described frame of video decoding determination module, specifically for:
When decode time Second Threshold < t≤decode time the 3rd threshold value, according to the frame type of current video frame, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-reference frame, then decode with the chromatic component of decoding algorithm to current video frame arranged in the video flowing after simplification, decode with the luminance component of the decoding algorithm arranged in video flowing to current video frame, if current video frame is reference frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded,
When t > decode time the 3rd threshold value, according to the frame type of current video, the decoding algorithm judging whether to arrange in the video flowing after simplifying is decoded to current video frame: if current video frame is non-key frame, then with the decoding algorithm arranged in the video flowing after simplification, the luminance component that the chromatic component of current video frame and the code block segmentation degree of depth are not more than default code block segmentation depth threshold is decoded, with the decoding algorithm arranged in video flowing, the luminance component that the code block segmentation degree of depth is greater than default code block segmentation depth threshold is decoded, if current video frame is key frame, then with the decoding algorithm arranged in video flowing, current video frame is decoded.
9. the device according to any one of claim 6 to 8, is characterized in that, the decoding algorithm arranged in the video flowing after described simplification is one or more in following algorithm;
On the basis of the decoding algorithm arranged in described video flowing, after omitting loop filtering process, the decoding algorithm obtained;
On the basis of the decoding algorithm arranged in described video flowing, after omitting the skew of sampled point self adaptation, the decoding algorithm obtained;
On the basis of the decoding algorithm arranged in described video flowing, after omitting sub pixel interpolation, the decoding algorithm obtained.
10. device according to claim 8, is characterized in that, described default code block segmentation depth threshold≤2.
CN201510146161.6A 2015-03-30 A kind of video encoding/decoding method and device Active CN104735456B (en)

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 true CN104735456A (en) 2015-06-24
CN104735456B CN104735456B (en) 2018-02-09

Family

ID=

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379630A (en) * 2018-11-27 2019-02-22 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and storage medium
CN111212025A (en) * 2019-11-20 2020-05-29 腾讯科技(深圳)有限公司 Method and device for transmitting network self-adaptive video stream

Citations (4)

* Cited by examiner, † Cited by third party
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
US20080056373A1 (en) * 2006-08-29 2008-03-06 Newlin John B Method and system for dynamic frequency adjustment during video decoding
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 (4)

* Cited by examiner, † Cited by third party
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
US20080056373A1 (en) * 2006-08-29 2008-03-06 Newlin John B Method and system for dynamic frequency adjustment during video decoding
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379630A (en) * 2018-11-27 2019-02-22 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and storage medium
CN111212025A (en) * 2019-11-20 2020-05-29 腾讯科技(深圳)有限公司 Method and device for transmitting network self-adaptive video stream
CN111212025B (en) * 2019-11-20 2022-02-08 腾讯科技(深圳)有限公司 Method and device for transmitting network self-adaptive video stream

Similar Documents

Publication Publication Date Title
CN102625106B (en) Scene self-adaptive screen encoding rate control method and system
CN108063976B (en) Video processing method and device
CN109640167B (en) Video processing method and device, electronic equipment and storage medium
CN104717509B (en) A kind of video encoding/decoding method and device
EP4020370A1 (en) Image processing method and device
CN107172376B (en) Video coding method and device based on screen sharing
US9967581B2 (en) Video quality adaptation with frame rate conversion
CN104581177A (en) Image compression method and device combining block matching with string matching
US12015763B2 (en) Video encoding method, video decoding method, and related apparatuses
CN110740316A (en) Data coding method and device
CN113452996B (en) Video coding and decoding method and device
JP2012522285A (en) System and format for encoding data and 3D rendering
US11849127B2 (en) Video encoding method, video decoding method, and related apparatuses
CN111524110A (en) Video quality evaluation model construction method, evaluation method and device
CN111770334B (en) Data encoding method and device, and data decoding method and device
CN113366842B (en) System and method for content layer based video compression
CN104168482B (en) A kind of video coding-decoding method and device
TWI486061B (en) Method and system for motion compensated picture rate up-conversion using information extracted from a compressed video stream
CN110572672A (en) Video encoding and decoding method and device, storage medium and electronic device
CN110662071A (en) Video decoding method and apparatus, storage medium, and electronic apparatus
US10080032B2 (en) Lossy channel video blur avoidance
US20220078454A1 (en) Video encoding method, video decoding method, and related apparatuses
CN104735456A (en) Video decoding method and device
CN104735456B (en) A kind of video encoding/decoding method and device
CN112672147A (en) Decoding method, device and system based on screen projection

Legal Events

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