[go: up one dir, main page]

CN107580224B - An Adaptive Scanning Method for HEVC Entropy Coding - Google Patents

An Adaptive Scanning Method for HEVC Entropy Coding Download PDF

Info

Publication number
CN107580224B
CN107580224B CN201710671930.3A CN201710671930A CN107580224B CN 107580224 B CN107580224 B CN 107580224B CN 201710671930 A CN201710671930 A CN 201710671930A CN 107580224 B CN107580224 B CN 107580224B
Authority
CN
China
Prior art keywords
coeff
sig
flag
entropy coding
csbf
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.)
Expired - Fee Related
Application number
CN201710671930.3A
Other languages
Chinese (zh)
Other versions
CN107580224A (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.)
Xian University of Technology
Original Assignee
Xian University of Technology
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 Xian University of Technology filed Critical Xian University of Technology
Priority to CN201710671930.3A priority Critical patent/CN107580224B/en
Publication of CN107580224A publication Critical patent/CN107580224A/en
Application granted granted Critical
Publication of CN107580224B publication Critical patent/CN107580224B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a kind of adaptive scanning method towards HEVC entropy coding, specifically: adaptive scanning and entropy coding are carried out to the relevant syntactic element in the last one nonzero coefficient position in TU first;Then the syntactic element sig_coeff_flag in the syntactic element CSBF of each sub-block in TU and sub-block in each coefficient positions is determined;It calculates separately CSBF value and sig_coeff_flag value is equal to the prediction probability of minimum probability symbol LPS, and be ranked up, scan, encode respectively;Finally to the adaptive scanning and entropy coding of nonzero coefficient amplitude relevant syntax elements all in TU.Adaptive scanning method of the present invention further promotes code efficiency so that intersymbol correlation is adequately utilized by HEVC;Without transmitting additional code stream information for decoding end more;And there is lower encoder complexity, the 0.33% of only existing algorithm.

Description

一种面向HEVC熵编码的自适应扫描方法An Adaptive Scanning Method for HEVC Entropy Coding

技术领域technical field

本发明属于视频编码技术领域,涉及一种面向HEVC熵编码的自适应扫描方法。The invention belongs to the technical field of video coding, and relates to an adaptive scanning method oriented to HEVC entropy coding.

背景技术Background technique

视频能够给用户带来更为生动的主观感受,其已逐步渗透到我们生活的各个角落。随着“高分辨率、高帧率、高像素位深”这样高清/超高清视频的出现,越来越多的用户参与到相关视频业务中,身临其境地感受着高清/超高清视频所带来的独特魅力。然而庞大的视频数据量不仅增加了视频存储系统和全球通信网络的负担,也影响了新业务的部署与实际应用。因此新一代视频编码标准HEVC(High Efficiency Video Coding,高效视频编码)以预测编码、变换编码、熵编码为基础,结合人类视觉特性,尽可能地去除空域、时域上的视觉冗余来满足存储带宽或传输带宽。Video can bring more vivid subjective feelings to users, and it has gradually penetrated into every corner of our lives. With the emergence of high-definition/ultra-high-definition video such as "high resolution, high frame rate, and high pixel bit depth", more and more users participate in related video services and experience the experience of high-definition/ultra-high-definition video immersively. unique charm. However, the huge amount of video data not only increases the burden on video storage systems and global communication networks, but also affects the deployment and practical application of new services. Therefore, the new-generation video coding standard HEVC (High Efficiency Video Coding, High Efficiency Video Coding) is based on predictive coding, transform coding, and entropy coding. bandwidth or transmission bandwidth.

HEVC仍然沿用了传统的基于块的混合编码结构,主要有帧内/帧间预测,变换,量化,熵编码,去块效应滤波等几个模块。与以前的编码标准相比,HEVC也引入了一些新的编码技术:基于四叉树结构的块表示,统一的方向性帧内预测,先进的运动矢量预测,大尺寸的离散余弦变换,自适应扫描,性能更好的上下文自适应二元算术编码,样点自适应补偿滤波等。HEVC still uses the traditional block-based hybrid coding structure, mainly including several modules such as intra/inter prediction, transformation, quantization, entropy coding, and deblocking filtering. Compared with previous coding standards, HEVC also introduces some new coding technologies: block representation based on quadtree structure, unified directional intra-frame prediction, advanced motion vector prediction, large-size discrete cosine transform, adaptive Scanning, context-adaptive binary arithmetic coding with better performance, sample-point adaptive compensation filtering, etc.

在描述预测残差上,HEVC采用了基于四叉树分割结构的TU(Transform unit,变换单元)模式,TU可选的尺寸有4×4,8×8,16×16,32×32。经过自适应扫描技术,TU内一个二维的预测残差被映射到一维数组中以实现后续的熵编码操作。其中自适应扫描技术作为HEVC的关键一步,直接影响着最终编码比特率的大小。依据率失真优化原理,在给定视频重构质量的前提下,应保证自适应扫描技术得到的一维系数的最终编码比特数最少。In describing the prediction residual, HEVC adopts the TU (Transform unit) mode based on the quadtree partition structure. The optional sizes of TU are 4×4, 8×8, 16×16, and 32×32. After adaptive scanning technology, a two-dimensional prediction residual in TU is mapped to a one-dimensional array to realize subsequent entropy coding operation. Among them, adaptive scanning technology, as a key step in HEVC, directly affects the final encoding bit rate. According to the principle of rate-distortion optimization, under the premise of given video reconstruction quality, the final encoding bits of one-dimensional coefficients obtained by adaptive scanning technology should be kept to the minimum.

Zigzag扫描技术被广泛应用到视频编码中,帧内/帧间块中的残差系数以固定的扫描顺序被映射到一维数组中(见Wiegand T.,Sullivan G.,Bjontegaard G.,LuthraA..Overview of the H.264/AVC video coding standard[J].IEEE Trans.CircuitsSyst.Video Technol.,2003)。Fouak等人将Zigzag扫描方式、水平扫描方式、垂直扫描方式和Hibert扫描方式结合在一起,建立了一种新的扫描方法(Fouak F.,Benzid R.,Benoudjit N..Color image compression algorithm based onthe DCT transformcombined to an adaptive block scanning[J].Int.J.Electron.Commun.,2011)。由于对角扫描能够较好的降低数据冗余信息,Sole等人提出用对角扫描取代Zigzag扫描,结合水平扫描和垂直扫描,得出一种新的自适应扫描方法,并且将该方法应用到了HEVC编码中(Sole J.,Joshi R.,Nguyen N..Transform coefficient coding in HEVC[J].IEEETrans.Circuits Syst.Video Technol.,2012)。上述方法考虑了预测参数系数的分布特性,一定程度上改善了编码效率。但由于扫描模型比较固定,忽略了后续熵编码的特性,其限制了编码性能的进一步提升。因此在对TU层的预测残差进行编码时,建立适于HEVC熵编码的自适应扫描方法是很有必要的。Zigzag scanning technology is widely used in video coding, and the residual coefficients in intra/inter blocks are mapped into one-dimensional arrays in a fixed scanning order (see Wiegand T., Sullivan G., Bjontegaard G., Luthra A. .Overview of the H.264/AVC video coding standard[J].IEEE Trans.Circuits Syst.Video Technol.,2003). Fouak et al. combined Zigzag scanning, horizontal scanning, vertical scanning and Hibert scanning to establish a new scanning method (Fouak F., Benzid R., Benoudjit N.. Color image compression algorithm based on the DCT transform combined to an adaptive block scanning[J].Int.J.Electron.Commun.,2011). Since diagonal scanning can better reduce data redundancy information, Sole et al. proposed to replace Zigzag scanning with diagonal scanning, combine horizontal scanning and vertical scanning, and obtain a new adaptive scanning method, and apply this method to the In HEVC coding (Sole J., Joshi R., Nguyen N.. Transform coefficient coding in HEVC [J]. IEEETrans. Circuits Syst. Video Technol., 2012). The above method takes into account the distribution characteristics of the prediction parameter coefficients, which improves the coding efficiency to a certain extent. However, since the scanning model is relatively fixed, the characteristics of subsequent entropy coding are ignored, which limits the further improvement of coding performance. Therefore, it is necessary to establish an adaptive scanning method suitable for HEVC entropy coding when coding the prediction residual of the TU layer.

发明内容Contents of the invention

本发明的目的是提供一种面向HEVC熵编码的自适应扫描方法,能够提高HEVC的编码性能,且具有较低的编码复杂度。The purpose of the present invention is to provide an adaptive scanning method oriented to HEVC entropy coding, which can improve the coding performance of HEVC and has low coding complexity.

本发明所采用的技术方案是,一种面向HEVC熵编码的自适应扫描方法,具体按以下步骤实施:The technical scheme adopted in the present invention is a kind of adaptive scanning method for HEVC entropy coding, specifically implemented according to the following steps:

步骤1,对TU中最后一个非零系数位置相关的语法元素进行自适应扫描及熵编码;Step 1, performing adaptive scanning and entropy coding on the syntax element related to the position of the last non-zero coefficient in the TU;

步骤2,对TU中其他非零系数位置相关的语法元素进行自适应扫描及熵编码:Step 2, perform adaptive scanning and entropy coding on the syntax elements related to the positions of other non-zero coefficients in the TU:

2.1将一个TU分割为1个或多个4×4大小的子块;依据量化后的残差系数,确定每一个子块的语法元素CSBF以及子块内每一个系数位置上的语法元素sig_coeff_flag;CSBF用于标识每一个子块是否含有非零系数,sig_coeff_flag用于标识子块内非零系数的位置;2.1 Divide a TU into one or more 4×4 sub-blocks; determine the syntax element CSBF of each sub-block and the syntax element sig_coeff_flag at each coefficient position in the sub-block according to the quantized residual coefficient; CSBF is used to identify whether each sub-block contains non-zero coefficients, and sig_coeff_flag is used to identify the position of non-zero coefficients in the sub-block;

2.2计算每一个语法元素CSBF值和每一个语法元素sig_coeff_flag值等于最小概率符号LPS的预测概率,并分别进行排序、扫描、编码;2.2 Calculate the CSBF value of each syntax element and the sig_coeff_flag value of each syntax element equal to the predicted probability of the minimum probability symbol LPS, and perform sorting, scanning, and encoding respectively;

步骤3,对TU中所有非零系数幅值相关语法元素的自适应扫描及熵编码。Step 3, adaptive scanning and entropy coding of all syntax elements related to the amplitude of non-zero coefficients in the TU.

本发明的特点还在于,The present invention is also characterized in that,

步骤1具体为:利用HEVC中原有的自适应扫描方法,获取TU内的预测残差最后一个非零系数的坐标(X,Y);根据该坐标值,得到最后一个非零系数位置相关的语法元素:last_sig_coeff_x_prefix,last_sig_coeff_y_prefix,last_sig_coeff_x_suffix,last_sig_coeff_y_suffix,并对四个语法元素依次进行扫描和熵编码。Step 1 is specifically: use the original adaptive scanning method in HEVC to obtain the coordinates (X, Y) of the last non-zero coefficient of the prediction residual in the TU; according to the coordinate value, obtain the syntax related to the position of the last non-zero coefficient Elements: last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, last_sig_coeff_y_suffix, and scan and entropy encode the four syntax elements in turn.

步骤2.2具体为:Step 2.2 is specifically:

①分别获取每一个CSBF和sig_coeff_flag对应的上下文概率索引和LPS;① Obtain the context probability index and LPS corresponding to each CSBF and sig_coeff_flag respectively;

②预测每一个CSBF值和sig_coeff_flag值等于它所对应的LPS时的概率;② Predict the probability that each CSBF value and sig_coeff_flag value is equal to its corresponding LPS;

③分别对CSBF和sig_coeff_flag进行区域划分,分别将具有相同的上下文概率索引值的CSBF和sig_coeff_flag归到相应同一子区域中;③ Regionally divide CSBF and sig_coeff_flag respectively, and classify CSBF and sig_coeff_flag with the same context probability index value into the corresponding same sub-region;

④分别对CSBF和sig_coeff_flag相对应的子区域进行排序,进行扫描和熵编码。④ Sort the sub-regions corresponding to CSBF and sig_coeff_flag respectively, perform scanning and entropy coding.

预测所对应的LPS时的概率,具体为:定义符号s表示语法元素,S表示已编码的语法元素序列;根据K-T估计方法,则s=1的概率p1和s=0的概率p0分别是:The probability when predicting the corresponding LPS is specifically: the definition symbol s represents the syntax element, and S represents the encoded syntax element sequence; according to the KT estimation method, the probability p 1 of s= 1 and the probability p 0 of s=0 are respectively Yes:

p0=1-p1 p 0 =1-p 1

其中n0和n1分别表示语法元素序列S中值为0和值为1出现的频次。Among them, n 0 and n 1 respectively denote the occurrence frequency of the value 0 and the value 1 in the syntax element sequence S.

子区域排序要求为:子区域间按照对应的上下文概率索引值由大到小进行排序,子区域内按照对应的预测概率值由小到大进行排序。The sub-region sorting requirements are as follows: the sub-regions are sorted according to the corresponding context probability index values from large to small, and the sub-regions are sorted according to the corresponding predicted probability values from small to large.

步骤3具体为:利用HEVC中原有的自适应扫描方法,获取TU中每一个非零系数对应的语法元素:coeff_abs_level_greater1_flag、coeff_abs_level_greater2_flag、coeff_sign_flag和coeff_abs_level_remaining,并对四个语法元素依次进行扫描和熵编码。Step 3 is specifically: use the original adaptive scanning method in HEVC to obtain the syntax elements corresponding to each non-zero coefficient in the TU: coeff_abs_level_greater1_flag, coeff_abs_level_greater2_flag, coeff_sign_flag, and coeff_abs_level_remaining, and scan and entropy encode the four syntax elements in turn.

本发明的有益效果是,The beneficial effect of the present invention is,

(1)本发明从概率论的角度预测待编码语法元素值出现的概率,为HEVC自适应扫描方法的建立奠定了理论基础。(1) The present invention predicts the occurrence probability of the syntax element value to be encoded from the perspective of probability theory, and lays a theoretical foundation for the establishment of the HEVC adaptive scanning method.

(2)本发明考虑熵编码的运行机制来建立自适应扫描方法,使得符号间的相关性被HEVC充分的利用,进一步提升编码效率。(2) The present invention considers the operation mechanism of entropy coding to establish an adaptive scanning method, so that the correlation between symbols is fully utilized by HEVC, and the coding efficiency is further improved.

(3)本发明利用已知的编码信息来建立自适应扫描方法,无需为解码端多传输额外码流信息。(3) The present invention utilizes known encoding information to establish an adaptive scanning method, without needing to transmit additional code stream information to the decoding end.

(4)本发明所提的自适应扫描方法具有较低的编码复杂度,仅为现有算法的0.33%。(4) The adaptive scanning method proposed by the present invention has a relatively low encoding complexity, which is only 0.33% of the existing algorithm.

附图说明Description of drawings

图1是本发明一种面向HEVC熵编码的自适应扫描方法流程图;Fig. 1 is a flow chart of an adaptive scanning method for HEVC entropy coding of the present invention;

图2是测试序列为BQMall下本发明方法与HEVC现有算法的率失真性能比较图;Fig. 2 is a comparison diagram of the rate-distortion performance between the method of the present invention and the existing algorithm of HEVC under the test sequence of BQMall;

图3是测试序列为FourPeople下本发明方法与HEVC现有算法的率失真性能比较图。Fig. 3 is a comparison chart of the rate-distortion performance between the method of the present invention and the existing algorithm of HEVC under the test sequence of FourPeople.

具体实施方式Detailed ways

下面结合附图和具体实施方式对本发明进行详细说明。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

本发明提供了一种面向HEVC熵编码的自适应扫描方法的流程如图1所示,具体按照以下步骤实施:The present invention provides a flow chart of an adaptive scanning method oriented to HEVC entropy coding as shown in Figure 1, specifically implemented according to the following steps:

步骤1,按照HEVC现有的自适应扫描方法,获取TU中最后一个非零系数位置的二维坐标;Step 1, according to the existing adaptive scanning method of HEVC, obtain the two-dimensional coordinates of the last non-zero coefficient position in the TU;

步骤2,根据步骤1中的二位数坐标,确定最后一个非零系数位置相关的语法元素last_sig_coeff_x_prefix,last_sig_coeff_y_prefix,last_sig_coeff_x_suffix,last_sig_coeff_y_suffix值,然后进行熵编码;Step 2, according to the two-digit coordinates in step 1, determine the syntax elements last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, last_sig_coeff_y_suffix values related to the position of the last non-zero coefficient, and then perform entropy coding;

步骤3,获取TU中每个非零系数位置相关的语法元素CSBF;Step 3, obtain the syntax element CSBF related to the position of each non-zero coefficient in the TU;

步骤4,获取每一个CSBF对应的上下文概率索引和LPS;Step 4, obtain the context probability index and LPS corresponding to each CSBF;

步骤5,根据式(1)预测每一个CSBF值等于它所对应的LPS时的概率;Step 5, predict the probability when each CSBF value is equal to its corresponding LPS according to formula (1);

其中,s表示语法元素,S表示已编码的语法元素序列,p1为s=1的概率和p0为s=0的概率,n0和n1分别表示语法元素序列S中值为0和值为1出现的频次Among them, s represents a syntax element, S represents a coded syntax element sequence, p 1 is the probability of s=1 and p 0 is the probability of s=0, n 0 and n 1 represent the values of 0 and 0 in the syntax element sequence S respectively The frequency of occurrences with a value of 1

步骤6,对CSBF进行区域划分,将具有相同的上下文概率索引值的CSBF归到一个子区域中;Step 6, divide the CSBF into regions, and group the CSBFs with the same context probability index value into a subregion;

步骤7,子区域之间按照CSBF对应的上下文概率索引值由大到小进行排序,子区域内按照CSBF对应的预测概率值由小到大进行排序。按照排好的CBFS序列进行扫描和熵编码;Step 7: The sub-regions are sorted according to the context probability index values corresponding to CSBF from large to small, and the sub-regions are sorted according to the predicted probability values corresponding to CSBF from small to large. Scanning and entropy encoding are performed according to the arranged CBFS sequence;

步骤8,获取TU中每个非零系数位置相关的语法元素sig_coeff_flag;Step 8, obtain the syntax element sig_coeff_flag related to the position of each non-zero coefficient in the TU;

步骤9,获取sig_coeff_flag对应的上下文概率索引和LPS;Step 9, obtain the context probability index and LPS corresponding to sig_coeff_flag;

步骤10,根据式(1)预测每一个sig_coeff_flag值等于它所对应的LPS时的概率;Step 10, predicting the probability that each sig_coeff_flag value is equal to its corresponding LPS according to formula (1);

步骤11,对sig_coeff_flag进行区域划分,将具有相同的上下文概率索引值的sig_coeff_flag归到一个子区域中;Step 11, divide sig_coeff_flag into regions, and group sig_coeff_flags with the same context probability index value into a subregion;

步骤12,子区域之间按照sig_coeff_flag对应的上下文概率索引值由大到小进行排序,子区域内按照sig_coeff_flag对应的预测概率值由小到大进行排序。按照排好的sig_coeff_flag序列进行扫描和熵编码;Step 12, sort the sub-regions according to the context probability index values corresponding to sig_coeff_flag from large to small, and sort within the sub-regions according to the predicted probability values corresponding to sig_coeff_flag from small to large. Perform scanning and entropy encoding according to the arranged sig_coeff_flag sequence;

步骤13,获取非零系数幅值相关的语法元素coeff_abs_level_greater1_flag、coeff_abs_level_greater2_flag、coeff_sign_flag和coeff_abs_level_remaining,对这四个语法元素依次进行扫描和熵编码。Step 13, obtain the syntax elements coeff_abs_level_greater1_flag, coeff_abs_level_greater2_flag, coeff_sign_flag, and coeff_abs_level_remaining related to the magnitude of the non-zero coefficient, and perform scanning and entropy coding on these four syntax elements in sequence.

本发明在TU中最后一个非零系数位置相关的语法元素自适应扫描中,一方面考虑到最后一个非零系数位置涉及的语法元素数量很少,另一方面为保证所提技术不影响HEVC解码端的运行,因此沿用HEVC中原有的自适应扫描方法进行扫描。In the self-adaptive scanning of syntax elements related to the position of the last non-zero coefficient in the TU, on the one hand, the present invention considers that the number of syntax elements involved in the position of the last non-zero coefficient is small, and on the other hand, it ensures that the proposed technology does not affect HEVC decoding Therefore, the original adaptive scanning method in HEVC is used for scanning.

在TU中非零系数位置信息采用熵编码中的常路模型进行编码,HEVC采用何种自适应扫描方法直接影响这最终的编码效率,因此通过考虑熵编码的运行模式来建立非零系数位置相关的语法元素自适应扫描方法是很有必要的。具体做法是首先将一个TU分割为1个或多个4×4大小的子块;依据量化后的残差系数,确定每一个子块的语法元素CSBF(coded_sub_block_flag)以及子块内每一个系数位置上的语法元素sig_coeff_flag。CSBF用于标识每一个子块是否含有非零系数,sig_coeff_flag用于标识子块内非零系数的位置。The non-zero coefficient position information in TU is encoded by the constant path model in entropy coding. The adaptive scanning method adopted by HEVC directly affects the final coding efficiency. Therefore, the non-zero coefficient position correlation is established by considering the operation mode of entropy coding. An adaptive scanning method for syntax elements is necessary. The specific method is to first divide a TU into one or more 4×4 sub-blocks; according to the quantized residual coefficient, determine the syntax element CSBF (coded_sub_block_flag) of each sub-block and the position of each coefficient in the sub-block The syntax element sig_coeff_flag on. CSBF is used to identify whether each sub-block contains non-zero coefficients, and sig_coeff_flag is used to identify the position of non-zero coefficients in the sub-block.

其次定义符号s表示语法元素,S表示已编码的语法元素序列。根据K-T估计方法,则s=1的概率p1和s=0的概率p0分别是:Secondly, the symbol s is defined to represent a syntax element, and S represents an encoded sequence of syntax elements. According to the KT estimation method, the probability p 1 of s= 1 and the probability p 0 of s=0 are respectively:

p0=1-p1 p 0 =1-p 1

其中n0和n1分别表示语法元素序列S中值为0和值为1出现的频次。计算每一个语法元素CSBF值等于最小概率符号(LPS)的预测概率,计算每一个语法元素sig_coeff_flag值等于LPS的预测概率。Among them, n 0 and n 1 respectively denote the occurrence frequency of the value 0 and the value 1 in the syntax element sequence S. Calculate the predicted probability that the CSBF value of each syntax element is equal to the minimum probability symbol (LPS), and calculate the predicted probability that the value of each syntax element sig_coeff_flag is equal to the LPS.

根据熵编码原理,获取语法元素CSBF所使用的上下文概率索引。将上下文概率索引号相同的CSBF语法元素归为一个子区域,子区域之间根据上下文概率索引号值由大到小进行排序,子区域内根据每一个语法元素CSBF的预测概率值由小到大进行排序,对排序后的CSBF依次扫描并送入熵编码器中。According to the principle of entropy coding, the context probability index used by the syntax element CSBF is acquired. The CSBF syntax elements with the same context probability index number are grouped into a sub-area, and the sub-areas are sorted from large to small according to the value of the context probability index number, and the predicted probability value of each syntax element CSBF in the sub-area is from small to large Sorting is performed, and the sorted CSBFs are scanned sequentially and sent to the entropy encoder.

根据熵编码原理,获取语法元素sig_coeff_flag所使用的上下文概率索引。将上下文概率索引号相同的sig_coeff_flag语法元素归为一个子区域,子区域之间根据上下文概率索引号值由大到小进行排序,子区域内根据每一个语法元素sig_coeff_flag的预测概率值由小到大进行排序,对排序后的sig_coeff_flag依次扫描并送入熵编码器中。According to the principle of entropy coding, the context probability index used by the syntax element sig_coeff_flag is acquired. The sig_coeff_flag syntax elements with the same context probability index number are grouped into a sub-region, and the sub-regions are sorted according to the context probability index number value from large to small, and the predicted probability value of each syntax element sig_coeff_flag in the sub-region is from small to large Sorting is performed, and the sorted sig_coeff_flags are scanned sequentially and sent to the entropy encoder.

在TU中非零系数幅值主要采用熵编码中的旁路模型进行编码,HEVC采用何种自适应扫描方法对最终的编码比特数影响较小,因此沿用HEVC中原有的自适应扫描方法进行扫描。利用HEVC中原有的自适应扫描方法,获取TU中每一个非零系数对应的语法元素:coeff_abs_level_greater1_flag、coeff_abs_level_greater2_flag、coeff_sign_flag和coeff_abs_level_remaining,对这四个语法元素依次进行扫描和熵编码。In TU, the non-zero coefficient amplitude is mainly encoded by the bypass model in entropy coding. The adaptive scanning method adopted by HEVC has little influence on the final number of encoded bits, so the original adaptive scanning method in HEVC is used for scanning. . Use the original adaptive scanning method in HEVC to obtain the syntax elements corresponding to each non-zero coefficient in the TU: coeff_abs_level_greater1_flag, coeff_abs_level_greater2_flag, coeff_sign_flag, and coeff_abs_level_remaining, and scan and entropy encode these four syntax elements in turn.

本发明的效果通过实验进一步说明。The effects of the present invention are further illustrated by experiments.

实验测试了不同分辨率,不同应用场景下的本文所提方法的编码性能。图2给出了测试序列为Cactus下本发明与HEVC原有算法的率失真性能比较图。图3给出了测试序列为BQMall下本发明与HEVC原有算法的率失真性能比较图。由图2和3可以看出,本发明所提的面向HEVC熵编码的自适应扫描方法比HEVC原有的扫描方法的编码效率高。统计结果表明本发明得到的视频质量峰值信噪比PSNR比HEVC原有方法得到的视频质量峰值信噪比PSNR平均高出0.09dB。The experiments tested the encoding performance of the proposed method in different resolutions and different application scenarios. FIG. 2 shows a comparison chart of the rate-distortion performance between the present invention and the original HEVC algorithm under the test sequence of Cactus. Fig. 3 shows a comparison chart of the rate-distortion performance between the present invention and the original HEVC algorithm under the test sequence of BQMall. It can be seen from FIGS. 2 and 3 that the HEVC entropy coding-oriented adaptive scanning method proposed in the present invention has higher coding efficiency than the original HEVC scanning method. Statistical results show that the peak signal-to-noise ratio PSNR of video quality obtained by the present invention is 0.09dB higher on average than the PSNR of video quality obtained by the original method of HEVC.

Claims (1)

1. a kind of adaptive scanning method towards HEVC entropy coding, which is characterized in that specifically implement according to the following steps:
Step 1, adaptive scanning and entropy coding are carried out to the relevant syntactic element in the last one nonzero coefficient position in TU, specifically Are as follows: using original adaptive scanning method in HEVC, obtain prediction residual the last one nonzero coefficient in TU coordinate (X, Y);According to the coordinate value, the last one relevant syntactic element in nonzero coefficient position: last_sig_coeff_x_ is obtained Prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, last_sig_coeff_y_ Suffix, and four syntactic elements are successively scanned and entropy coding;
Step 2, adaptive scanning and entropy coding are carried out to the relevant syntactic element in other nonzero coefficient positions in TU:
2.1 are divided into a TU sub-block of one or more 4 × 4 sizes;According to the residual error coefficient after quantization, each is determined Syntactic element sig_coeff_flag in the syntactic element CSBF and sub-block of sub-block in each coefficient positions;CSBF is used for Identify whether each sub-block contains nonzero coefficient, sig_coeff_flag is used to identify the position of nonzero coefficient in sub-block;
2.2 calculate each syntactic element CSBF value and each syntactic element sig_coeff_flag value equal to minimum probability The prediction probability of symbol LPS, and be ranked up, scan, encode respectively, specifically:
1. obtaining the corresponding context probability index of each CSBF and sig_coeff_flag and LPS respectively;
2. predict probability when each CSBF value and sig_coeff_flag value are equal to the LPS corresponding to it, specifically: definition Symbol s indicates that syntactic element, S indicate encoded syntactic element sequence;According to K-T estimation method, then the Probability p of s=11And s =0 Probability p0It is respectively:
p0=1-p1
Wherein n0And n1Respectively indicate syntactic element sequence S intermediate value be 0 and value be 1 appearance the frequency;
3. region division is carried out to CSBF and sig_coeff_flag respectively, respectively by context probability index value having the same CSBF and sig_coeff_flag be grouped into corresponding same subregion;
4. being ranked up respectively to the corresponding subregion of CSBF and sig_coeff_flag, it is scanned and entropy coding;
Subregion ordering requirements are as follows: be ranked up between subregion according to corresponding context probability index value is descending, sub-district It is ranked up in domain according to corresponding prediction probability value is ascending;
Step 3, to the adaptive scanning and entropy coding of nonzero coefficient amplitude relevant syntax elements all in TU, specifically: it utilizes Original adaptive scanning method in HEVC obtains the corresponding syntactic element of each nonzero coefficient in TU: coeff_abs_ Level_greater1_flag, coeff_abs_level_greater2_flag, coeff_sign_flag and coeff_abs_ Level_remaining, and four syntactic elements are successively scanned and entropy coding.
CN201710671930.3A 2017-08-08 2017-08-08 An Adaptive Scanning Method for HEVC Entropy Coding Expired - Fee Related CN107580224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710671930.3A CN107580224B (en) 2017-08-08 2017-08-08 An Adaptive Scanning Method for HEVC Entropy Coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710671930.3A CN107580224B (en) 2017-08-08 2017-08-08 An Adaptive Scanning Method for HEVC Entropy Coding

Publications (2)

Publication Number Publication Date
CN107580224A CN107580224A (en) 2018-01-12
CN107580224B true CN107580224B (en) 2019-11-22

Family

ID=61034045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710671930.3A Expired - Fee Related CN107580224B (en) 2017-08-08 2017-08-08 An Adaptive Scanning Method for HEVC Entropy Coding

Country Status (1)

Country Link
CN (1) CN107580224B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10873765B2 (en) * 2018-03-29 2020-12-22 Apple Inc. Techniques for high efficiency entropy coding of video data
CN112369025B (en) * 2018-07-02 2024-11-12 交互数字Vc控股公司 Context-based binary arithmetic coding and decoding
KR102489599B1 (en) 2018-12-17 2023-01-18 엘지전자 주식회사 Method of determining transform coefficient scan order based on high frequency zeroing and apparatus thereof
CN109996068A (en) * 2019-04-12 2019-07-09 中国科学技术大学 A kind of video motion information coding method and device
CN112449188B (en) * 2019-08-28 2021-08-20 腾讯科技(深圳)有限公司 Video decoding method, encoding method, apparatus, medium and electronic device
CN112449184B (en) * 2019-08-28 2022-01-25 腾讯科技(深圳)有限公司 Transform coefficient optimization method, encoding and decoding method, device, medium, and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238387A (en) * 2011-05-25 2011-11-09 深圳市融创天下科技股份有限公司 Video entropy code as well as entropy coding method, device and medium
CN102650969A (en) * 2011-02-27 2012-08-29 浙江大学 Method and device for obtaining and updating context probability model value of bins
CN103959790A (en) * 2011-11-18 2014-07-30 华为技术有限公司 Scanning of prediction residuals in high efficiency video coding
CN103975532A (en) * 2011-11-03 2014-08-06 高通股份有限公司 Context state and probability initialization for context adaptive entropy coding
CN104104949A (en) * 2013-04-12 2014-10-15 浙江大学 Entropy encoding and decoding method of direction information syntax element and device
CN104509115A (en) * 2012-07-02 2015-04-08 高通股份有限公司 Video parameter set for HEVC and extensions
CN105052132A (en) * 2012-10-01 2015-11-11 Ge视频压缩有限责任公司 Scalable video coding using subblock-based coding of transform coefficient blocks in the enhancement layer
CN105657421A (en) * 2016-01-15 2016-06-08 珠海全志科技股份有限公司 8x8 Residual Coefficient Block Coding Method and System

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9591320B2 (en) * 2010-07-15 2017-03-07 Texas Instruments Incorporated Context and bypass encoding video

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102650969A (en) * 2011-02-27 2012-08-29 浙江大学 Method and device for obtaining and updating context probability model value of bins
CN102238387A (en) * 2011-05-25 2011-11-09 深圳市融创天下科技股份有限公司 Video entropy code as well as entropy coding method, device and medium
CN103975532A (en) * 2011-11-03 2014-08-06 高通股份有限公司 Context state and probability initialization for context adaptive entropy coding
CN103959790A (en) * 2011-11-18 2014-07-30 华为技术有限公司 Scanning of prediction residuals in high efficiency video coding
CN104509115A (en) * 2012-07-02 2015-04-08 高通股份有限公司 Video parameter set for HEVC and extensions
CN105052132A (en) * 2012-10-01 2015-11-11 Ge视频压缩有限责任公司 Scalable video coding using subblock-based coding of transform coefficient blocks in the enhancement layer
CN104104949A (en) * 2013-04-12 2014-10-15 浙江大学 Entropy encoding and decoding method of direction information syntax element and device
CN105657421A (en) * 2016-01-15 2016-06-08 珠海全志科技股份有限公司 8x8 Residual Coefficient Block Coding Method and System

Also Published As

Publication number Publication date
CN107580224A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
CN107580224B (en) An Adaptive Scanning Method for HEVC Entropy Coding
CN104601998B (en) For the equipment to Image Coding
CN100348051C (en) An enhanced in-frame predictive mode coding method
CN104685876B (en) For 4 in video coding:2:The decoded piece flag (CBF) of 2 sample formats decodes
CN104918056B (en) The method decoded to intra prediction mode
CN101415121B (en) A method and device for adaptive frame prediction
TWI556632B (en) Method and apparatus for arithmetic encoding of video, and method and apparatus for arithmetic decoding of video
CN101098473B (en) Image coding method and device
CN103546749B (en) Method for optimizing HEVC (high efficiency video coding) residual coding by using residual coefficient distribution features and bayes theorem
CN108347614A (en) Method for generating prediction block in intra prediction
CN101946515A (en) Two pass quantization for cabac coders
CN107770530A (en) The decoding device of video data
CN106060552A (en) Method of generating quantized block
CN101938657A (en) Coding Unit Adaptive Partitioning Method in High Efficiency Video Coding
CN109547794A (en) The decoding of transformation coefficient for video coding
KR20130095310A (en) Coding the position of a last significant coefficient within a video block based on a scanning order for the block in video coding
WO2012061298A1 (en) Joint coding of syntax elements for video coding
CN106803958B (en) Digital-analog hybrid video transmission method based on superposition modulation coding
CN103636223A (en) Multiple zone scanning order for video coding
TW201342924A (en) Largest coding unit (LCU) or partition-based syntax for adaptive loop filter and sample adaptive offset in video coding
CN102804772A (en) Image encoding/decoding apparatus and method using multi-dimensional integer transform
CN108471531B (en) Quality gradable rapid coding method based on compressed sensing
TW201330624A (en) Video coding sub-block sizing based on infrastructure capabilities and current conditions
CN105791868B (en) The method and apparatus of Video coding
CN103299638B (en) Self-adaptive scanning device and scan method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191122