Movatterモバイル変換


[0]ホーム

URL:


CN105578187A - Rapid distortion rate calculation method in HEVC - Google Patents

Rapid distortion rate calculation method in HEVC
Download PDF

Info

Publication number
CN105578187A
CN105578187ACN201510902770.XACN201510902770ACN105578187ACN 105578187 ACN105578187 ACN 105578187ACN 201510902770 ACN201510902770 ACN 201510902770ACN 105578187 ACN105578187 ACN 105578187A
Authority
CN
China
Prior art keywords
sssd
algorithm
hevc
dct
quantization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510902770.XA
Other languages
Chinese (zh)
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.)
Hangzhou Arcvideo Technology Co ltd
Original Assignee
Hangzhou Arcvideo 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 Hangzhou Arcvideo Technology Co ltdfiledCriticalHangzhou Arcvideo Technology Co ltd
Priority to CN201510902770.XApriorityCriticalpatent/CN105578187A/en
Publication of CN105578187ApublicationCriticalpatent/CN105578187A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

The invention discloses a rapid distortion rate calculation method in HEVC. The method comprises four algorithm steps of DCT, Quantization, Inverse Quantization and Fssd. The algorithm replaces a conventional SSSD calculation method, thereby greatly reducing calculation amount, and saving cost of resources of time and the like; the error generated between the method and the conventional SSSD calculation method is negligible in practical application range; and the method not only simplifies the computation complexity, but also achieves the same effect like before.

Description

The computational methods of the quick distortion rate in a kind of HEVC coding
Technical field
The present invention relates to a kind of video decoding techniques, the computational methods of the quick distortion rate particularly in a kind of HEVC coding.
Background technology
When HEVC encoder compresses video, need the rate distortion (sSD) obtained in large quantities after current macro compression to select optimization model, thus obtain maximal pressure contracting ratio.Method relatively good and popular at present calculates time domain rate distortion (Spatialdomainsumofsquareddifference), is called for short SSSD.
The method of current calculating SSSD is through DCT, Quantization, inverseQuantization, IDCT and could obtains, particularly:
DCT:Y=AXAT
Quantization:Zij=round(Yij/Qstep);
InverseQuantization:Vij=Zij×Qstep;
IDCT:W=ATVA;
sssd:sssd=Σj=0nΣi=0n(Yij-Wij)2.
In above-mentioned steps, DCT and IDCT occupies main amount of calculation, and this algorithm can repeated multiple timesly be used in HEVC volume, code, because computational process is too complicated, occupies very large amount of calculation, particularly evident on the impact of coding rate in actual applications.
Summary of the invention
Based on this, be necessary to provide one to simplify computational process, effectively reduce amount of calculation, thus the computational methods of the quick distortion rate of the various resources costs such as to save time.
According to an aspect of the present invention, provide the computational methods of the quick distortion rate in a kind of HEVC coding, comprise DCT, Quantization, InverseQuantization and Fssd tetra-algorithm steps, particularly,
DCT:Y=AXAT
Quantization:Zij=round(Yij/Qstep);
InverseQuantization:Vij=Zij×Qstep;
Fssd:fssd=Σj=0nΣi=0n(Vij-Zij)2.
Wherein in an embodiment, algorithm application is in the HEVC coding environment of Qp > 25.
The computational methods of the quick distortion rate in this HEVC coding, instead of traditional SSSD computational methods, thus significantly reduce amount of calculation, the cost of each side resource such as to save time, and this method is in the range of application of reality, the error produced with traditional SSSD algorithm is insignificant, and therefore this method not only simplify computation complexity, also reaches effect as in the past.
Accompanying drawing explanation
Fig. 1 is the logic diagram of the computational methods of current traditional SSSD;
Fig. 2 is the logic diagram of the computational methods of rapid rate distortion in a kind of HEVC coding of an embodiment of the present invention;
Fig. 3 is the error of lower FSSD and the SSSD of DCT change of simulation lower 4x4,8x8,16x16,32x32 in white noise gets in 0 to 51 scope scatter chart at QP.
Embodiment
For the ease of understanding the present invention, will be described more fully the present invention with specific embodiment below.But the present invention can realize in many different forms, is not limited to embodiment described herein.On the contrary, provide the object of this embodiment be make the understanding of disclosure of the present invention more comprehensively thorough.
The computational methods of the quick distortion rate in the HEVC coding of one embodiment of the invention, comprise DCT, Quantization, InverseQuantization and Fssd tetra-algorithm steps, particularly,
DCT:Y=AXAT
Quantization:Zij=round(Yij/Qstep);
InverseQuantization:Vij=Zij×Qstep;
Fssd:fssd=Σj=0nΣi=0n(Vij-Zij)2.
The computational methods that the present embodiment adopts are called for short FFFD algorithm.
Rate distortion (spatialdomainsumofsquareddifference in FFFD algorithm and current calculating time domain, be called for short SSSD algorithm) computational methods compare, the main distinction is the IDCT step eliminated in SSSD algorithm, thus significantly saves amount of calculation, improves coding rate.
Be illustrated in figure 1 the logic diagram of current SSSD algorithm, comprise the steps such as DCT, Quantization, InverseQuantization, IDCT and sssd, in figure, Q represents Quantization, and IQ represents InverseQuantization.
Particularly,
DCT:Y=AXAT
Quantization:Zij=round(Yij/Qstep);
InverseQuantization:Vij=Zij×Qstep;
IDCT:W=ATVA;
sssd:sssd=Σj=0nΣi=0n(Yij-Wij)2.
Be illustrated in figure 2 the logic diagram of the FFFD algorithm of the present embodiment, in figure, Q represents Quantization, and IQ represents InverseQuantization.
Can be obtained with Fig. 2 by comparison diagram 1, in the present embodiment computational process, eliminate IDCT step, and pick-up rate distortion (SSD) from different parameters.
According to handkerchief Savall theorem (Parseval ' stheorem), the gross energy that waveform x (t) is accumulated according to time-domain t is equal with the gross energy that Fourier transform X (f) of this waveform is accumulated at frequency domain territory f.Be generalized to the dct transform of discrete domain, following proof can be done:
For one dimension DCT,
Transform:y=Fx,
Quantization:yq=Q[y],
Inverse-Quantization:yiq=IQ[yq],
Inverse-Transform:xr=F-1yiq
Spatialdomainsumofsquareddifference:
Frequencydomainsumofsquareddifference:
Wherein, F is one dimension DCT transition matrix.
Because dct transform F is orthogonal normalizing matrix (orthonormalmatrix), can obtain and prove as follows:
Σky(k)2=yty=(Fx)t(Fx)=xtFtFx=xtIx=xtx=Σnx(n)2
Namely the numerical value after dct transform, the energy in frequency domain equals the energy of original value in time domain.
We can be proved as follows equally:
Σk(yiq(n)-y(n))2=(yiq-y)t(yiq-y)=(Fxr-Fx)t(Fxr-Fx)=(xr-x)tFtF(xr-x)=(xr-x)tI(xr-x)=(xr-x)t(xr-x)=Σn(xr(n)-x(n))2
Namely the FSSD in frequency domain is strictly equivalent to the SSSD in time domain.
Rate distortion (SSD) in actual use comprises following several part:
1, the DCT transition matrix specified in HEVC coding protocol is an INTEGER MATRICES.This integer transition matrix numerical value is the approximation of DCT floating-point transition matrix numerical value, so this integer transition matrix not strict orthogonal normalizing, thus causes rate distortion.This part is referred to as " transfer ratio distortion ".
2, the DCT specified in HEVC agreement is the process of a two-dimensional transformations, in order to ensure low complex degree, agreement is defined in the integral point number that the median of preserving in horizontal conversion and vertical transfer process is 16bit precision, the operation of the rounding existed in the process that this rounds, also the loss of precision will be caused, generation rate distortion.This part is referred to as " rounding rate distortion ".
3, quantification (Quantization) process specified in HEVC agreement is a lossy compression method process, according to the size of quantization parameter (QuantizationParameter) to round DCT coefficient different accuracy, can produce a large amount of rate distortions in this process, this process is also the core that HEVC video compression protocols can reach superelevation compression ratio.This part is referred to as " quantitative rate distortion ".
In actual use, there is error in FSSD algorithm compared with the SSSD algorithm obtained in traditional time domain, and main cause is the above-mentioned 1st and the part 2 that are that rate distortion produces, i.e. " transfer ratio distortion " and " rounding rate distortion ".Owing to eliminating IDCT, FSSD algorithm can comprise different " change and restrain distortion " and " rounding rate distortion " compared with SSSD algorithm.
But when Qp is enough large, " distortion of conversion rule " is quite little with " rounding rate distortion " accounting in whole rate distortion, so in this case, the value difference of FSSD and SSSD is not little.
As shown in Figure 3, the error between the FSSD algorithm calculated after HEVC encoder for random white noise matrix and SSSD algorithm.Error between FSSD algorithm and SSSD algorithm is anticlimax with the increase of Qp, and when Qp is 25 time, both errors are only about 5%.
In field of video compression, the QP value of HEVC all obtains high compression ratio more than 25 in most cases, and the error that therefore the FFFD algorithm of the present embodiment is total is in actual applications insignificant.Visible, the computational methods of the quick distortion rate in the HEVC coding of the present embodiment, instead of traditional SSSD algorithm, significantly simplify computation complexity, effective controlling calculation amount, thus the resources costs of each side such as to save time, and the FFFD algorithm of the present embodiment is in the range of application of reality, the error produced with traditional SSSD algorithm is insignificant, and therefore compare traditional SSSD algorithm, FFFD algorithm has more excellent effect.
The above embodiment only have expressed individual embodiments of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (2)

CN201510902770.XA2015-12-102015-12-10Rapid distortion rate calculation method in HEVCPendingCN105578187A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510902770.XACN105578187A (en)2015-12-102015-12-10Rapid distortion rate calculation method in HEVC

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510902770.XACN105578187A (en)2015-12-102015-12-10Rapid distortion rate calculation method in HEVC

Publications (1)

Publication NumberPublication Date
CN105578187Atrue CN105578187A (en)2016-05-11

Family

ID=55887784

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510902770.XAPendingCN105578187A (en)2015-12-102015-12-10Rapid distortion rate calculation method in HEVC

Country Status (1)

CountryLink
CN (1)CN105578187A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1662069A (en)*2005-01-122005-08-31华中科技大学 Encoding/decoding method of image and video signal
CN101521819A (en)*2008-02-272009-09-02深圳市融合视讯科技有限公司Method for optimizing rate distortion in video image compression
US20100220937A1 (en)*2009-02-272010-09-02Research In Motion CorporationOptimization of image encoding using perceptual weighting
CN102148998A (en)*2010-02-042011-08-10成都市世嘉电子实业有限公司Algorithm for fast computing rate distortion cost of transform domain
US8059721B2 (en)*2006-04-072011-11-15Microsoft CorporationEstimating sample-domain distortion in the transform domain with rounding compensation
CN106488235A (en)*2015-09-012017-03-08北京君正集成电路股份有限公司A kind of SSE simplified calculation method for rate-distortion optimization and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1662069A (en)*2005-01-122005-08-31华中科技大学 Encoding/decoding method of image and video signal
US8059721B2 (en)*2006-04-072011-11-15Microsoft CorporationEstimating sample-domain distortion in the transform domain with rounding compensation
CN101521819A (en)*2008-02-272009-09-02深圳市融合视讯科技有限公司Method for optimizing rate distortion in video image compression
US20100220937A1 (en)*2009-02-272010-09-02Research In Motion CorporationOptimization of image encoding using perceptual weighting
CN102148998A (en)*2010-02-042011-08-10成都市世嘉电子实业有限公司Algorithm for fast computing rate distortion cost of transform domain
CN106488235A (en)*2015-09-012017-03-08北京君正集成电路股份有限公司A kind of SSE simplified calculation method for rate-distortion optimization and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JIAYING LIU: "Efficient Intra-4×4 Mode Decision Based on", 《CIRCUITS AND SYSTEMS, 2008. ISCAS 2008. IEEE INTERNATIONAL SYMPOSIUM ON》*
赵波: "一种新的低时延视频编码码速率控制算法", 《计算机学报》*

Similar Documents

PublicationPublication DateTitle
CN110636313A (en)Transformation and quadratic transformation matrix training method, encoder and related device
CN101466040A (en)Code rate estimation method for video encoding mode decision
CN101521819B (en)Method for optimizing rate distortion in video image compression
CN102263951B (en) A Fast Fractal Video Compression and Decompression Method
CN107211133A (en)Method, device and the decoding device of inverse quantization conversion coefficient
CN101606320A (en)The distortion of quantized data is estimated
CN106056638B (en)A kind of low complexity compression perceptual image coding method of adaptive texture contrast
CN108574849B (en) DCT inverse transformation method, inverse transformation device, electronic equipment and storage medium
CN107947761A (en)Change threshold percentage renewal adaptive filter algorithm based on lowest mean square quadravalence
CN103441962A (en)OFDM system impulse interference restraining method based on compression sensing
CN107105245B (en) High Speed JPEG Image Compression Method Based on TMS320C6678 Chip
CN105120276A (en)Adaptive Motion JPEG coding method and system
CN101860753B (en)Fractal-based video compression and decompression method
CN105306956A (en)Method for increasing discrete cosine transform processing speed of HEVC coder
CN103888763B (en)Intra-frame coding method based on HEVC
CN116128070A (en)Federal learning method based on wireless air calculation and multi-bit quantization compressed sensing
CN104702961B (en)Bit rate control method in a kind of distributed video coding
CN101827268A (en)Object-based fractal video compression and decompression method
CN103796033A (en)Efficient video coding zero-coefficient early detection method
CN108111255A (en)Interpretation method based on maximum a posteriori probability in a kind of analog encoding
CN102595112A (en)Method for coding and rebuilding image block in video coding
CN105578187A (en)Rapid distortion rate calculation method in HEVC
CN109547961B (en) A Compressed Sensing Coding and Decoding Method for Large Data Volumes in Wireless Sensor Networks
CN108900842B (en) Y data compression processing method, device, equipment and WebP compression system
CN103686176B (en)A kind of code rate estimation method for Video coding

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
DD01Delivery of document by public notice
DD01Delivery of document by public notice

Addressee:HANGZHOU DANGHONG TECHNOLOGY CO., LTD.

Document name:Notification of an Office Action

RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20160511


[8]ページ先頭

©2009-2025 Movatter.jp