+

CN102917225A - Method for quickly selecting HEVC (high-efficiency video coding) inframe coding units - Google Patents

Method for quickly selecting HEVC (high-efficiency video coding) inframe coding units Download PDF

Info

Publication number
CN102917225A
CN102917225A CN2012104119519A CN201210411951A CN102917225A CN 102917225 A CN102917225 A CN 102917225A CN 2012104119519 A CN2012104119519 A CN 2012104119519A CN 201210411951 A CN201210411951 A CN 201210411951A CN 102917225 A CN102917225 A CN 102917225A
Authority
CN
China
Prior art keywords
coding
current
coded
coding unit
split
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
CN2012104119519A
Other languages
Chinese (zh)
Other versions
CN102917225B (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201210411951.9A priority Critical patent/CN102917225B/en
Publication of CN102917225A publication Critical patent/CN102917225A/en
Application granted granted Critical
Publication of CN102917225B publication Critical patent/CN102917225B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明提供一种HEVC帧内编码单元快速选择方法。由于用绝对误差和SAD近似得到的每个CU的率失真代价与CU的非归一化的梯度直方图有关。两个相等尺度的CU,其非归一化的梯度直方图相似程度越高,分割标识符越有可能相等。本发明使用基于非归一化的梯度直方图的模板匹配方式来实现CU的快速选择,从而提高HEVC帧内预测方法的编码速度的方法。利用非归一化的梯度直方图作为特征来判断每个CU是否需要分割成四个更小的CU。在满足模板匹配的条件下,省去了逐一比较编码率失真代价的步骤。

Figure 201210411951

The present invention provides a fast selection method of an HEVC intra-frame coding unit. The per-CU rate-distortion cost due to the absolute error and SAD approximation is related to the unnormalized gradient histogram of the CU. The more similar the unnormalized gradient histograms of two CUs of equal scale are, the more likely the split identifiers are equal. The present invention uses a template matching method based on a non-normalized gradient histogram to realize fast selection of a CU, thereby improving the encoding speed of the HEVC intra-frame prediction method. Use the unnormalized gradient histogram as a feature to judge whether each CU needs to be divided into four smaller CUs. Under the condition of satisfying the template matching, the step of comparing the encoding rate distortion cost one by one is omitted.

Figure 201210411951

Description

HEVC帧内编码单元快速选择方法HEVC intra coding unit fast selection method

技术领域 technical field

本发明提出在高性能视频编码(High Efficiency Video Coding,HEVC)技术,特别涉及在编码中对预测编码单元进行选择的技术。  The present invention proposes a high-performance video coding (High Efficiency Video Coding, HEVC) technology, and particularly relates to a technology for selecting a predictive coding unit during coding. the

背景技术 Background technique

伴随着高清视频技术的发展和成熟,人们日常生活中涌现了大量的高清视频的应用。关于高清视频的各种应用受到了用户的欢迎和青睐。然而,较高的分辨率所带来较大的数据量使得高清视频对视频编解码算法的压缩性能要求更高。目前的视频编解码标准(如H.264/AVC等)往往不能很好地满足高清视频对压缩性能的要求。为满足新的视频应用对编解码标准的要求,ITU-T/ISO/IEC的视频编码联合协同小组(Joint Collaborative Team on Video Coding,JCT-VC)日前正在制定新的下一代视频编解码标准HEVC。为适用于视频技术的实时应用,我们需要提高HEVC的编码速度。本发明主要致力于提高HEVC的帧内编码速度,降低计算复杂度。  With the development and maturity of high-definition video technology, a large number of high-definition video applications have emerged in people's daily life. Various applications of high-definition video have been welcomed and favored by users. However, the larger amount of data brought by the higher resolution makes high-definition video more demanding on the compression performance of the video codec algorithm. Current video codec standards (such as H.264/AVC, etc.) often cannot well meet the compression performance requirements of high-definition video. In order to meet the requirements of new video applications for codec standards, the Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T/ISO/IEC is developing a new next-generation video codec standard HEVC. . In order to be suitable for real-time application of video technology, we need to increase the encoding speed of HEVC. The present invention is mainly dedicated to improving the HEVC intra-frame coding speed and reducing the computational complexity. the

目前,主要有一类HEVC帧内编码的快速算法。即基于预测方向的快速选择。这种方法有通过当前块的梯度信息来判断预测方向;也有利用相邻块的预测方向来辅助判断到当前块的预测方向。然而,这些方法大多是通过实现预测方向的快速选择来提高帧内编码速度。没有尝试从编码单元(CU,Coding Unit)的快速选择的角度去解决问题。事实上,帧内编码时CU的尺度有64x64、32x32、16x16、8x8。对每一个64x64的最大编码单元(LCU)进行编码的时候,需要从尺度64x64向8x8按照四叉树结构往下遍历进行率失真优化,选取最合适的CU尺度。由于CU的最小尺度为8x8,对于8x8CU来说不能再往下分割成更小的CU。但是8x8CU的可以分成4个4x4的预测单元(Prediction Unit,PU)来编码。如果我们能快速预测出最终的帧内编码CU尺度,那么在帧内预测过程中就可以省去很多CU的预测过程。  At present, there is mainly a type of fast algorithm for HEVC intra-frame coding. That is, fast selection based on the predicted direction. In this method, the prediction direction is judged by the gradient information of the current block; and the prediction direction of the adjacent block is used to assist in judging the prediction direction of the current block. However, most of these methods improve intra coding speed by enabling fast selection of prediction directions. There is no attempt to solve the problem from the perspective of fast selection of coding units (CU, Coding Unit). In fact, the CU scales during intra-frame coding are 64x64, 32x32, 16x16, and 8x8. When encoding each 64x64 largest coding unit (LCU), it is necessary to traverse down from the scale 64x64 to 8x8 according to the quadtree structure for rate-distortion optimization and select the most suitable CU scale. Since the minimum size of a CU is 8x8, it cannot be further divided into smaller CUs for an 8x8CU. But 8x8CU can be divided into four 4x4 prediction units (Prediction Unit, PU) to encode. If we can quickly predict the final intra-coded CU scale, then many CU prediction processes can be saved during the intra prediction process. the

现有HEVC帧内编码过程中,对每个LCU的编码是通过从64x64(深度最小)到8x8尺度的CU按照四叉树结构进行遍历。每个CU在遍历过程中有一个分割标识符(splitflag)。这个splitflag用来判断当前CU是否需要分成四个更小尺度的CU,即计算并比较当前尺寸下CU的在分割split编码之后的率失真代价Jsplit与不分割unsplit编码的率失真代价Junsplit的大小;当率失真代价Junsplit小于等于率失真代价Jsplit,则当前的CU不再进行分割,标记该CU的分割标识符为unsplit;当率失真代价Junsplit大于率失真代价Jsplit,则当前的CU还需进行分割,标记该该CU的分割标识符为split,并继续使用率失真代价判断在该CU分割 后是否还需进一步分割,直至对最小尺度8x8(深度最大)判断完毕,在当前CU的分割标识符确定的同时,保存分割标识符对应的方式的编码信息来更新当前LCU的相应的编码信息。  In the existing HEVC intra-frame encoding process, each LCU is encoded by traversing the CUs from 64x64 (minimum depth) to 8x8 according to the quadtree structure. Each CU has a split flag (splitflag) during traversal. This splitflag is used to determine whether the current CU needs to be divided into four smaller-scale CUs, that is, to calculate and compare the rate-distortion cost J split of the CU under the current size after split encoding and the rate-distortion cost J unsplit of unsplit encoding. size; when the rate-distortion cost J unsplit is less than or equal to the rate-distortion cost J split , the current CU is no longer split, and the split identifier marking the CU is unsplit; when the rate-distortion cost J unsplit is greater than the rate-distortion cost J split , the current CU The CU still needs to be split, mark the split identifier of the CU as split, and continue to use the rate-distortion cost to judge whether it needs to be further split after the CU is split, until the judgment of the minimum scale 8x8 (maximum depth) is completed, in the current While the split identifier of the CU is determined, the encoding information of the mode corresponding to the split identifier is saved to update the corresponding encoding information of the current LCU.

发明内容 Contents of the invention

本发明所要解决的技术问题是,一种基于模板匹配的快速选择HEVC帧内编码单元的方法。  The technical problem to be solved by the present invention is a method for rapidly selecting HEVC intra-frame coding units based on template matching. the

本发明为解决上述技术所采用的技术方案是,HEVC帧内编码单元快速选择方法,包括以下步骤:  The technical solution adopted by the present invention for solving the above-mentioned technology is, HEVC intra-frame coding unit fast selection method, comprises the following steps:

步骤1、在当前编码帧中依次提取的待预测的最大编码单元LCU中,从最大编码尺度对应的深度对LCU该开始进行编码单元尺度判断;  Step 1. From the largest coding unit LCU to be predicted sequentially extracted in the current coding frame, judge the coding unit size of the LCU from the depth corresponding to the largest coding scale;

步骤2、计算当前编码帧在当前深度i下的第k个编码单元

Figure BDA00002305241300021
的非归一化梯度直方图,判断在当前编码帧中当前深度i下已编码的分割标识符为分割split的编码单元数目
Figure BDA00002305241300022
以及分割标识符为不分割unsplit的编码单元数目
Figure BDA00002305241300023
是否均大于等于预设的模板匹配启动门限N,如否,进行基于率失真代价的编码单元尺度判断,即进入步骤3;如是,进行基于模板匹配的编码单元尺度判断,即进入步骤4;  Step 2. Calculate the kth coding unit of the current coding frame at the current depth i
Figure BDA00002305241300021
The unnormalized gradient histogram of , judging that the coded segmentation identifier at the current depth i in the current coding frame is the number of coding units for the split split
Figure BDA00002305241300022
And the split identifier is the number of coding units that do not split unsplit
Figure BDA00002305241300023
Whether they are all greater than or equal to the preset template matching start threshold N, if not, judge the coding unit size based on the rate-distortion cost, that is, go to step 3; if yes, judge the coding unit size based on template matching, that is, go to step 4;

步骤3、基于率失真代价的编码单元尺度判断步骤:对当前深度i下的编码单元

Figure BDA00002305241300024
分别进行unsplit方式编码、split方式编码,比较两种编码方式的率失真代价大小,选择率失真代价较小的方式为分割标识符赋值;当编码单元
Figure BDA00002305241300025
的分割标识符赋值为unsplit,则进入步骤5;如编码单元
Figure BDA00002305241300026
的分割标识符赋值为split,则进入步骤6;  Step 3. Judgment step of coding unit scale based on rate-distortion cost: for coding units at current depth i
Figure BDA00002305241300024
Perform unsplit encoding and split encoding respectively, compare the rate-distortion cost of the two encoding methods, and select the method with the lower rate-distortion cost to assign a value to the split identifier; when the encoding unit
Figure BDA00002305241300025
The split identifier of is assigned as unsplit, then go to step 5; if the coding unit
Figure BDA00002305241300026
Assign the split identifier of split to split, then go to step 6;

步骤4、基于模板匹配的编码单元尺度判断步骤:将编码单元

Figure BDA00002305241300027
的非归一化梯度直方图与当前编码帧中当前深度i下已编码的编码单元的非归一化梯度直方图进行匹配,找出与编码单元最相似的设定个数l个已编码的编码单元;判断l个已编码的编码单元的的分割标识符是否全部相同,如否,返回步骤3;如l个已编码的编码单元的的分割标识符均为unsplit,则对编码单元
Figure BDA00002305241300029
进行unsplit方式编码并对应编码方式下的计算率失真代价,再进入步骤5;如l个已编码的编码单元的的分割标识符均为split,对编码单元
Figure BDA000023052413000210
进行unsplit方式编码并计算对应编码方式下的率失真代价,再进入步骤6;其中,l≤N;  Step 4. Step of judging the coding unit scale based on template matching: the coding unit
Figure BDA00002305241300027
The non-normalized gradient histogram of is matched with the non-normalized gradient histogram of the coded coding unit at the current depth i in the current coding frame to find out the coding unit The most similar setting number is l coded coding units; judge whether the segmentation identifiers of l coded coding units are all the same, if not, return to step 3; such as the segmentation of l coded coding units identifiers are unsplit, then the code unit
Figure BDA00002305241300029
Perform unsplit coding and calculate the rate-distortion cost corresponding to the coding method, and then enter step 5; if the split identifiers of l coded coding units are all split, the coding unit
Figure BDA000023052413000210
Perform unsplit encoding and calculate the rate-distortion cost in the corresponding encoding mode, and then enter step 6; where l≤N;

步骤5、保留以unsplit方式编码的率失真代价以及编码信息,更新当前编码帧中当前深度i下已编码的分割标识符为unsplit的编码单元数目

Figure BDA000023052413000211
Figure BDA000023052413000212
初值为0;  Step 5. Retain the rate-distortion cost and encoding information encoded in the unsplit mode, and update the number of coding units whose segmentation identifier is unsplit at the current depth i in the current encoding frame
Figure BDA000023052413000211
Figure BDA000023052413000212
The initial value is 0;

步骤6、保留以split方式编码的率失真代价以及编码信息,更新当前编码帧中当前深度i下已编码的分割标识符为split的编码单元数目

Figure BDA00002305241300031
Figure BDA00002305241300032
初值为0;判断当前深度i是否为编码尺度8x8对应的深度,如当前深度为编码尺度8x8对应的深度,再进一步判断当前LCU在当前深度下是否还有需要尺度判断的编码单元,如是,更新k=k+1,返回步骤2,如否,进入步骤7;如当前深度不为8x8对应的深度,则更新当前深度i=i+1,返回步骤2;  Step 6. Retain the rate-distortion cost and encoding information encoded in the split mode, and update the number of coding units whose split identifier is split at the current depth i in the current encoding frame
Figure BDA00002305241300031
Figure BDA00002305241300032
The initial value is 0; determine whether the current depth i is the depth corresponding to the encoding scale 8x8, if the current depth is the depth corresponding to the encoding scale 8x8, then further determine whether the current LCU still has a coding unit that needs scale judgment under the current depth, if so, Update k=k+1, return to step 2, if not, enter step 7; if the current depth is not the depth corresponding to 8x8, update the current depth i=i+1, return to step 2;

步骤7、判断当前LCU中是否还有未编码完成的编码单元,如是,更新当前深度i为下一个未编码完成的编码单元的尺度对应的深度,如否,当前LCU编码完成,进一步判断是否到达当前编码帧的帧尾,如到达帧尾,则当前编码帧编码结束,如未到达帧尾,返回步骤1。  Step 7. Determine whether there are unencoded coding units in the current LCU. If so, update the current depth i to the depth corresponding to the scale of the next unencoded coding unit. If not, the current LCU has been encoded, and further judge whether it has reached The frame end of the current coded frame, if the end of the frame is reached, the encoding of the current coded frame ends, if the end of the frame is not reached, return to step 1. the

本发明提出一种基于非归一化的梯度直方图的模板匹配方式来实现CU的快速选择,从而提高HEVC帧内预测方法的编码速度的方法。  The present invention proposes a template matching method based on a non-normalized gradient histogram to realize fast selection of a CU, thereby improving the coding speed of the HEVC intra prediction method. the

经分析发现,用绝对误差和SAD近似得到的每个CU的率失真代价与预测像素和源像素的差值成正比,这种正比关系与CU的非归一化的梯度直方图有关。两个相等尺度的CU,其非归一化的梯度直方图相似程度越高,分割标识符越有可能相等。因此,本发明利用非归一化的梯度直方图作为特征来判断每个CU是否需要分割成四个更小的CU。在满足模板匹配的条件下,省去了逐一比较编码率失真代价的步骤。  After analysis, it is found that the rate-distortion cost of each CU approximated by absolute error and SAD is proportional to the difference between the predicted pixel and the source pixel, and this proportional relationship is related to the unnormalized gradient histogram of the CU. The more similar the unnormalized gradient histograms of two CUs of equal scale are, the more likely the split identifiers are equal. Therefore, the present invention uses the non-normalized gradient histogram as a feature to judge whether each CU needs to be divided into four smaller CUs. Under the condition of satisfying the template matching, the step of comparing the encoding rate distortion cost one by one is omitted. the

本发明的有益效果是,基于非归一化直方图采用模板匹配的方式来预测当前CU的分块方式,计算复杂度低,检测准确率高,法简单而高效,在保证编码质量几乎不损失的前提下极大地降低了HEVC帧内预测的时间复杂度。  The beneficial effect of the present invention is that, based on the non-normalized histogram, the method of template matching is used to predict the block mode of the current CU, the calculation complexity is low, the detection accuracy is high, the method is simple and efficient, and there is almost no loss in ensuring the coding quality Under the premise of greatly reducing the time complexity of HEVC intra prediction. the

附图说明 Description of drawings

图1为模板匹配快速预测方式示例。  Figure 1 is an example of template matching fast prediction method. the

具体实施方式 Detailed ways

本发明利用非归一化的梯度直方图作为特征来判断当前CU是否需要分割成四个更小的CU。考虑到在同一个视频帧内,相似的区域可能会重复出现。我们采用一种模板匹配的方式在当前帧前面已编码的相同尺度的CU中,寻找与当前CU的非归一化的梯度直方图最相似l个CU,通过这l个CU的对应splitflag来判断当前CU的splitflag。当这l个CU的splitflag均相同时,当前CU的splitflag也与这l个CU的splitflag相等。否则,当这l个CU不完全相同时,当前CU按照现有的率失真代价比较方式来判定在分割方式为split或unsplit。  The present invention uses the non-normalized gradient histogram as a feature to judge whether the current CU needs to be divided into four smaller CUs. Consider that within the same video frame, similar regions may appear repeatedly. We use a template matching method to find the l CU that is most similar to the unnormalized gradient histogram of the current CU among the CUs of the same scale that have been coded in front of the current frame, and judge by the corresponding splitflag of the l CU The splitflag of the current CU. When the splitflags of the l CUs are the same, the splitflag of the current CU is also equal to the splitflags of the l CUs. Otherwise, when the l CUs are not completely the same, the current CU is determined to be split or unsplit according to the existing rate-distortion cost comparison method. the

如图1所示,黑色块cuk为当前正在编码的CU。C={cu0,cu1,…,cuk-1}为当前帧已编码的CU的集合,由灰色块和白色块构成。其中灰色块为split块,白色块为unsplit块。模板匹配的过程就是在C中搜索与cuk最相似的l个CU。如果这l个CU对于的splitflag相同,那么cuk 也采用相同的splitflag。否则,计算当前CU在split和unsplit情况下的率失真代价,通过比较率失真代价来选择splitflag。即  As shown in Figure 1, the black block cu k is the CU currently being encoded. C={cu 0 ,cu 1 ,…,cu k-1 } is a set of coded CUs in the current frame, consisting of gray blocks and white blocks. The gray block is the split block, and the white block is the unsplit block. The process of template matching is to search for l CUs most similar to cu k in C. If the splitflags of these l CUs are the same, then cu k also adopts the same splitflag. Otherwise, calculate the rate-distortion cost of the current CU in the case of split and unsplit, and select splitflag by comparing the rate-distortion cost. Right now

splitflagsplit flag cucu kk == unsplitunsplit ll mumu == == ll || || JJ unsplitunsplit &le;&le; JJ splitsplit splitsplit ll msms == == ll || || JJ splitsplit << JJ unsplitunsplit -- -- -- (( 11 ))

其中lmu和lms分别为l个最匹配的CU中unsplit和split的CU数目。Jsplit和Junsplit分别为当前块按照split和unsplit方式计算得到的率失真代价。  Among them, l mu and l ms are the number of unsplit and split CUs in the l most matched CUs, respectively. J split and J unsplit are the rate-distortion costs calculated according to the split and unsplit methods of the current block, respectively.

另外,对每个深度i的CU来说,如果当前帧已编码的CU只属于一类,则不能很好地区分当前块。因为匹配的时候找到的相似CU也属于这一类。依次下去,整个帧的CU都属于这一类。显然这样预测误差较大。所以要求在模板匹配之前,两类参考CU的数目中最小值必须不小于一个定值,即预设的模板匹配启动门限N:  In addition, for each CU of depth i, if the coded CU of the current frame only belongs to one type, the current block cannot be distinguished well. Because similar CUs found during matching also belong to this category. In turn, the CUs of the entire frame belong to this category. Obviously, this prediction error is large. Therefore, it is required that before template matching, the minimum value of the number of two types of reference CUs must not be less than a fixed value, that is, the preset template matching start threshold N:

minmin (( ll pupu ii ,, ll psps ii )) &GreaterEqual;&Greater Equal; NN -- -- -- (( 22 ))

其中,

Figure BDA00002305241300043
Figure BDA00002305241300044
分别为当前帧中已编码的unsplit CU和split CU的数目。  in,
Figure BDA00002305241300043
and
Figure BDA00002305241300044
are the numbers of encoded unsplit CU and split CU in the current frame, respectively.

由于对于高清图像中较小尺度的CU数目较多,在为使得匹配效果更好,可采用一种类似均匀采样的方式按照一定的步长s对CU进行模板采样匹配,即每s个已编码CU采样一个进行比较。为了让步长s的取值更灵活,步长s为动态步长,s的大小与当前帧中已编码的CU个数有关:  Since the number of small-scale CUs in high-definition images is large, in order to make the matching effect better, a method similar to uniform sampling can be used to perform template sampling matching on CUs according to a certain step size s, that is, every s encoded CU samples one for comparison. In order to make the value of the step size s more flexible, the step size s is a dynamic step size, and the size of s is related to the number of CUs encoded in the current frame:

sthe s == maxmax (( 11 ,, ll pupu ii ++ ll psps ii TT )) -- -- -- (( 33 ))

T为一个控制参数,可根据经验调节。  T is a control parameter, which can be adjusted according to experience. the

实施例  Example

本发明在HM6.0实验平台上进行实现,步骤如下:  The present invention is realized on the HM6.0 experimental platform, and the steps are as follows:

初始化步骤:  Initialization steps:

第1步:在当前编码帧中依次提取的待预测的最大编码单元LCU中,从最大编码尺度对应的深度对LCU该开始进行编码单元尺度判断;在对每一帧编码帧各深度i的CU进行编码之前,

Figure BDA00002305241300046
Figure BDA00002305241300047
初始化为0;  Step 1: From the largest coding unit LCU to be predicted sequentially extracted in the current coding frame, start to judge the coding unit scale of the LCU from the depth corresponding to the maximum coding scale; Before encoding,
Figure BDA00002305241300046
and
Figure BDA00002305241300047
initialized to 0;

编码单元尺度判断步骤:  Coding unit scale judgment steps:

第2步:计算当前编码帧在当前深度i下的第k个编码单元

Figure BDA00002305241300048
的非归一化梯度直方图;判断在当前编码帧中当前深度i下已编码的分割标识符为分割split的编码单元数目
Figure BDA00002305241300049
以及分 割标识符为不分割unsplit的编码单元数目
Figure BDA00002305241300051
是否均大于等于预设的模板匹配启动门限N,即判断是否满足 min ( l pu i , l ps i ) &GreaterEqual; N max ( l pu i , l ps i ) &GreaterEqual; l , 如否,进行基于率失真代价的编码单元尺度判断,即进入步骤3;如是,进行基于模板匹配的编码单元尺度判断,即进入步骤4;  Step 2: Calculate the k-th coding unit of the current coding frame at the current depth i
Figure BDA00002305241300048
The non-normalized gradient histogram of ; judge that the coded segmentation identifier at the current depth i in the current coding frame is the number of coding units for the split split
Figure BDA00002305241300049
And the split identifier is the number of coding units that do not split unsplit
Figure BDA00002305241300051
Whether they are all greater than or equal to the preset template matching start threshold N, that is, to judge whether to meet min ( l pu i , l ps i ) &Greater Equal; N and max ( l pu i , l ps i ) &Greater Equal; l , If not, perform a judgment on the size of the coding unit based on the rate-distortion cost, that is, go to step 3; if yes, perform a judgment on the size of the coding unit based on template matching, that is, go to step 4;

步骤3、基于率失真代价的编码单元尺度判断步骤:对当前深度i下的编码单元

Figure BDA00002305241300054
分别进行unsplit方式编码、split方式编码,比较两种编码方式的率失真代价大小,选择率失真代价较小的方式为分割标识符赋值;当编码单元
Figure BDA00002305241300055
的分割标识符赋值为unsplit,则进入步骤5;如编码单元
Figure BDA00002305241300056
的分割标识符赋值为split,则进入步骤6;  Step 3. Judgment step of coding unit scale based on rate-distortion cost: for coding units at current depth i
Figure BDA00002305241300054
Perform unsplit encoding and split encoding respectively, compare the rate-distortion cost of the two encoding methods, and select the method with the lower rate-distortion cost to assign a value to the split identifier; when the encoding unit
Figure BDA00002305241300055
The split identifier of is assigned as unsplit, then go to step 5; if the coding unit
Figure BDA00002305241300056
Assign the split identifier of split to split, then go to step 6;

步骤4、基于模板匹配的编码单元尺度判断步骤:将编码单元

Figure BDA00002305241300057
的非归一化梯度直方图与每隔步长s采样当前编码帧中当前深度i下已编码的编码单元的非归一化梯度直方图进行匹配,找出与编码单元
Figure BDA00002305241300058
最相似的设定个数l个已编码的编码单元;判断l个已编码的编码单元的的分割标识符是否全部相同,即是否max(lmu,lms)==l,如否,返回步骤3;如l个已编码的编码单元的的分割标识符均为unsplit,则对编码单元进行unsplit方式编码并对应编码方式下的计算率失真代价,再进入步骤5;如l个已编码的编码单元的的分割标识符均为split,对编码单元
Figure BDA000023052413000510
进行unsplit方式编码并计算对应编码方式下的率失真代价,再进入步骤6;其中,l≤N;  Step 4. Step of judging the coding unit scale based on template matching: the coding unit
Figure BDA00002305241300057
The non-normalized gradient histogram of is matched with the non-normalized gradient histogram of the coded coding unit at the current depth i in the current coding frame sampled every step s, and the unnormalized gradient histogram of the coding unit is found
Figure BDA00002305241300058
Set the most similar number of l encoded coding units; judge whether the segmentation identifiers of l encoded coding units are all the same, that is, whether max(l mu ,l ms )==l, if not, return Step 3: If the split identifiers of the l coded coding units are all unsplit, then the coding unit Perform unsplit coding and calculate the rate-distortion cost corresponding to the coding method, and then enter step 5; if the split identifiers of l coded coding units are all split, the coding unit
Figure BDA000023052413000510
Perform unsplit encoding and calculate the rate-distortion cost in the corresponding encoding mode, and then enter step 6; where l≤N;

循环判断步骤:  Cycle judgment steps:

步骤5、保留以unsplit方式编码的率失真代价以及编码信息,更新当前编码帧中当前深度i下已编码的分割标识符为unsplit的编码单元数目 Step 5. Retain the rate-distortion cost and encoding information encoded in the unsplit mode, and update the number of coding units whose segmentation identifier is unsplit at the current depth i in the current encoding frame

步骤6、保留以split方式编码的率失真代价以及编码信息,更新当前编码帧中当前深度i下已编码的分割标识符为split的编码单元数目

Figure BDA000023052413000512
判断当前深度i是否为编码尺度8x8对应的深度,如当前深度为编码尺度8x8对应的深度,再进一步判断当前LCU在当前深度下是否还有需要尺度判断的编码单元,如是,更新k=k+1,返回步骤2,如否,进入步骤7;如当前深度不为8x8对应的深度,则更新当前深度i=i+1,返回步骤2;  Step 6. Retain the rate-distortion cost and encoding information encoded in the split mode, and update the number of coding units whose split identifier is split at the current depth i in the current encoding frame
Figure BDA000023052413000512
Determine whether the current depth i is the depth corresponding to the encoding scale 8x8. If the current depth is the depth corresponding to the encoding scale 8x8, then further determine whether the current LCU still has a coding unit that needs scale judgment under the current depth. If so, update k=k+ 1. Return to step 2, if not, proceed to step 7; if the current depth is not the depth corresponding to 8x8, update the current depth i=i+1, and return to step 2;

步骤7、判断当前LCU中是否还有未编码完成的编码单元,如是,更新当前深度i为下一个未编码完成的编码单元的尺度对应的深度,如否,当前LCU编码完成,进一步判断是否到达当前编码帧的帧尾,如到达帧尾,则当前编码帧编码结束,如未到达帧尾,返回步骤1。  Step 7. Determine whether there are unencoded coding units in the current LCU. If so, update the current depth i to the depth corresponding to the scale of the next unencoded coding unit. If not, the current LCU has been encoded, and further judge whether it has reached The frame end of the current coded frame, if the end of the frame is reached, the encoding of the current coded frame ends, if the end of the frame is not reached, return to step 1. the

Claims (3)

  1. The fast HEVC intra-frame coding unit selection method is characterized by comprising the following steps of:
    step 1, in a largest coding unit LCU to be predicted which is sequentially extracted from a current coding frame, carrying out coding unit scale judgment on the LCU from the depth corresponding to the largest coding scale;
    step 2, calculating the kth coding unit under the current depth i in the current coding frame
    Figure FDA00002305241200011
    Of (2) isNormalizing the gradient histogram, and determining the number of coding units with partition split identifier coded at current depth i in the current coding frame
    Figure FDA00002305241200012
    And the number of coding units with split identifier as undivided
    Figure FDA00002305241200013
    Whether the template matching starting thresholds are all larger than or equal to a preset template matching starting threshold N, if not, judging the coding unit scale based on the rate distortion cost, namely entering the step 3; if yes, carrying out coding unit scale judgment based on template matching, namely entering the step 4;
    step 3, coding unit scale judgment based on rate distortion cost: for coding unit under current depth i
    Figure FDA00002305241200014
    Respectively carrying out unsplit mode coding and split mode coding, comparing the rate distortion cost of the two coding modes, and selecting a mode with lower rate distortion cost to assign a partition identifier; when coding unit
    Figure FDA00002305241200015
    The partition identifier is assigned as unsplit, and then the step 5 is carried out; such as a coding unit
    Figure FDA00002305241200016
    If the partition identifier is assigned as split, then step 6 is entered;
    step 4, judging the coding unit scale based on template matching: coding unit
    Figure FDA00002305241200017
    The non-normalized gradient histogram of the current coding frame is matched with the non-normalized gradient histogram of the coding unit coded under the current depth i in the current coding frame, and the coding unit is found out
    Figure FDA00002305241200018
    The most similar set number of coded coding units is l; judging whether the segmentation identifiers of the coded coding units are all the same or not, if not, returning to the step 3; if the partition identifiers of the l coded coding units are all unsplit, the coding units are coded
    Figure FDA00002305241200019
    Coding in an unsplit mode and corresponding to the rate distortion cost under the coding mode, and then entering the step 5; if the partition identifiers of the l coded coding units are split, the coding units are coded by split
    Figure FDA000023052412000110
    Performing unsplit mode coding and calculating the rate distortion cost under the corresponding coding mode, and then entering step 6; wherein l is less than or equal to N;
    step 5, reserving the rate distortion cost and the coding information coded in the unsplit mode, and updating the number of coding units with unsplit partition identifiers coded under the current depth i in the current coding frame
    Figure FDA000023052412000112
    The initial value is 0;
    step 6, reserving rate distortion cost and coding information coded in a split mode, and updating the number of coding units with split identifiers of split in the current depth i in the current coding frame
    Figure FDA000023052412000113
    The initial value is 0; judging whether the current depth i is the depth corresponding to the coding scale 8x8, if so, further judging the current LCU depthIf yes, updating k = k +1, returning to the step 2, and if no, entering the step 7; if the current depth is not the depth corresponding to 8x8, updating the current depth i to i +1, and returning to the step 2;
    and 7, judging whether the current LCU has coding units which are not coded completely, if so, updating the current depth i to be the depth corresponding to the size of the next coding unit which is not coded completely, if not, finishing the coding of the current LCU, further judging whether the frame end of the current coding frame is reached, if so, finishing the coding of the current coding frame, otherwise, returning to the step 1.
  2. 2. The HEVC intra-frame coding unit quick selection method of claim 1, wherein in the step 4, the coding unit is coded
    Figure FDA00002305241200021
    The non-normalized gradient histogram of the coded coding unit is sampled according to dynamic step length for matching with the non-normalized gradient histogram of the coded coding unit at the current depth i in the current coding frame, and the value of the dynamic step length is in direct proportion to the number of the coded coding units.
  3. 3. The method for quickly selecting an HEVC intra coding unit according to claim 2, wherein the specific method for the value of the dynamic step size is:wherein s is a dynamic step value, and T is a control parameter.
CN201210411951.9A 2012-10-25 2012-10-25 HEVC intraframe coding unit fast selecting method Expired - Fee Related CN102917225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210411951.9A CN102917225B (en) 2012-10-25 2012-10-25 HEVC intraframe coding unit fast selecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210411951.9A CN102917225B (en) 2012-10-25 2012-10-25 HEVC intraframe coding unit fast selecting method

Publications (2)

Publication Number Publication Date
CN102917225A true CN102917225A (en) 2013-02-06
CN102917225B CN102917225B (en) 2015-10-28

Family

ID=47615435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210411951.9A Expired - Fee Related CN102917225B (en) 2012-10-25 2012-10-25 HEVC intraframe coding unit fast selecting method

Country Status (1)

Country Link
CN (1) CN102917225B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096090A (en) * 2013-02-20 2013-05-08 广州柯维新数码科技有限公司 Method of dividing code blocks in video compression
CN103297774A (en) * 2013-05-13 2013-09-11 清华大学深圳研究生院 Fast encoding method for B-frames in video encoding
CN103414891A (en) * 2013-07-19 2013-11-27 北京交通大学 Bottom-up fast quad-tree clipping algorithm for HEVC intra-frame coding
CN103747272A (en) * 2014-01-09 2014-04-23 西安电子科技大学 Fast transformation method for residual quadtree coding in HEVC (high efficiency video coding)
CN104065960A (en) * 2014-06-18 2014-09-24 何震宇 HEVC based low-calculation-complexity video coding method
CN104202605A (en) * 2014-08-18 2014-12-10 山东大学 Method for predicting division way of high-definition image coding unit CU by reducing resolution and implementation device thereof
CN104244007A (en) * 2013-06-13 2014-12-24 上海天荷电子信息有限公司 Image compression method and device based on arbitrary shape matching
WO2015021942A1 (en) * 2013-08-16 2015-02-19 同济大学 Method and device for image compression, having enhanced matching of fixed-width, variable-length pixel sample strings
CN104902276A (en) * 2015-05-15 2015-09-09 腾讯科技(北京)有限公司 Conversion unit diversion method and device
CN105681812A (en) * 2016-03-30 2016-06-15 腾讯科技(深圳)有限公司 HEVC (high efficiency video coding) intra-frame coding processing method and device
CN106231302A (en) * 2016-07-28 2016-12-14 同观科技(深圳)有限公司 A kind of determination method and system of optimal frames inner estimation mode
CN107071418A (en) * 2017-05-05 2017-08-18 上海应用技术大学 A kind of quick division methods of HEVC intraframe coding units based on decision tree
CN109522879A (en) * 2018-12-19 2019-03-26 南京理工大学 A kind of face tracking methods based on CU partition mode in HEVC
CN113767400A (en) * 2019-03-21 2021-12-07 谷歌有限责任公司 Using rate distortion cost as a loss function for deep learning

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665078A (en) * 2012-05-08 2012-09-12 北方工业大学 Intra prediction mode decision based on direction vector for HEVC (High Efficiency Video Coding)
CN102665079A (en) * 2012-05-08 2012-09-12 北方工业大学 Adaptive fast intra prediction mode decision for high efficiency video coding (HEVC)

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665078A (en) * 2012-05-08 2012-09-12 北方工业大学 Intra prediction mode decision based on direction vector for HEVC (High Efficiency Video Coding)
CN102665079A (en) * 2012-05-08 2012-09-12 北方工业大学 Adaptive fast intra prediction mode decision for high efficiency video coding (HEVC)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEI JIANG ETAL.: "Gradient based fast mode decision algorithm for intra prediction in HEVC", 《2012 2ND INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS, COMMUNICATIONS AND NETWORKS (CECNET)》 *
何小海 等: "一种基于HEVC的快速帧内预测算法", 《全国信息与电子工程第五届学术年会暨四川省电子学会曙光分会第十六届学术年会论文集》 *

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096090A (en) * 2013-02-20 2013-05-08 广州柯维新数码科技有限公司 Method of dividing code blocks in video compression
CN103096090B (en) * 2013-02-20 2015-12-02 广州柯维新数码科技有限公司 A kind of method divided for the encoding block in video compression
CN103297774B (en) * 2013-05-13 2016-04-27 清华大学深圳研究生院 The fast encoding method of B frame in a kind of Video coding
CN103297774A (en) * 2013-05-13 2013-09-11 清华大学深圳研究生院 Fast encoding method for B-frames in video encoding
CN104244007B (en) * 2013-06-13 2020-09-01 上海天荷电子信息有限公司 A kind of image coding method and apparatus and decoding method and apparatus
CN104244007A (en) * 2013-06-13 2014-12-24 上海天荷电子信息有限公司 Image compression method and device based on arbitrary shape matching
CN103414891A (en) * 2013-07-19 2013-11-27 北京交通大学 Bottom-up fast quad-tree clipping algorithm for HEVC intra-frame coding
CN103414891B (en) * 2013-07-19 2016-08-10 北京交通大学 A kind of bottom-up fast quad-tree trimming algorithm of HEVC intraframe coding
WO2015021942A1 (en) * 2013-08-16 2015-02-19 同济大学 Method and device for image compression, having enhanced matching of fixed-width, variable-length pixel sample strings
CN105745926A (en) * 2013-08-16 2016-07-06 同济大学 Image compression method and device for enhanced matching of fixed-width and variable-length pixel sample strings
CN103747272B (en) * 2014-01-09 2017-03-01 西安电子科技大学 Fast transform approach for the remaining quaternary tree coding of HEVC
CN103747272A (en) * 2014-01-09 2014-04-23 西安电子科技大学 Fast transformation method for residual quadtree coding in HEVC (high efficiency video coding)
CN104065960A (en) * 2014-06-18 2014-09-24 何震宇 HEVC based low-calculation-complexity video coding method
CN104202605A (en) * 2014-08-18 2014-12-10 山东大学 Method for predicting division way of high-definition image coding unit CU by reducing resolution and implementation device thereof
CN104902276A (en) * 2015-05-15 2015-09-09 腾讯科技(北京)有限公司 Conversion unit diversion method and device
CN105681812A (en) * 2016-03-30 2016-06-15 腾讯科技(深圳)有限公司 HEVC (high efficiency video coding) intra-frame coding processing method and device
CN105681812B (en) * 2016-03-30 2019-11-19 腾讯科技(深圳)有限公司 HEVC intraframe coding treating method and apparatus
CN106231302A (en) * 2016-07-28 2016-12-14 同观科技(深圳)有限公司 A kind of determination method and system of optimal frames inner estimation mode
CN106231302B (en) * 2016-07-28 2019-03-19 同观科技(深圳)有限公司 A kind of determination method and system of optimal intra prediction mode
CN107071418A (en) * 2017-05-05 2017-08-18 上海应用技术大学 A kind of quick division methods of HEVC intraframe coding units based on decision tree
CN109522879A (en) * 2018-12-19 2019-03-26 南京理工大学 A kind of face tracking methods based on CU partition mode in HEVC
CN113767400A (en) * 2019-03-21 2021-12-07 谷歌有限责任公司 Using rate distortion cost as a loss function for deep learning
CN113767400B (en) * 2019-03-21 2024-09-24 谷歌有限责任公司 Using rate-distortion cost as a loss function for deep learning

Also Published As

Publication number Publication date
CN102917225B (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN102917225B (en) HEVC intraframe coding unit fast selecting method
CN103297781B (en) A kind of HEVC inner frame coding method based on grain direction, device and system
CN110087087B (en) VVC inter-frame coding unit prediction mode early decision and block division early termination method
CN107896330B (en) It is a kind of in frame and the filtering method of inter-prediction
WO2019091235A1 (en) Boundary filtering method for intra prediction
CN107371022B (en) Inter-frame coding unit rapid dividing method applied to HEVC medical image lossless coding
CN105791826A (en) A fast mode selection method between HEVC frames based on data mining
CN103327327B (en) For the inter prediction encoding unit selection method of high-performance video coding HEVC
CN101583036B (en) A method for determining the relationship between motion features and high-efficiency coding modes in pixel-domain video transcoding
CN103888762B (en) Video coding framework based on HEVC standard
CN103546758B (en) A kind of fast deep graphic sequence inter mode decision fractal coding
CN108124154A (en) Fast selecting method, device and the electronic equipment of inter-frame forecast mode
CN104320658B (en) A kind of HEVC fast encoding methods
CN109040764B (en) HEVC screen content intra-frame rapid coding algorithm based on decision tree
CN101873500A (en) Inter-frame predictive encoding method, inter-frame predictive decoding method and device
CN108174208B (en) An Efficient Video Coding Method Based on Feature Classification
CN108174204B (en) Decision tree-based inter-frame rapid mode selection method
CN105681808B (en) A kind of high-speed decision method of SCC interframe encodes unit mode
CN105898332B (en) For the fast deep figure frame mode decision method of 3D-HEVC coding standards
CN107071496B (en) A method for fast selection of H.265/HEVC inter-coding unit depth
CN105187826A (en) Rapid intra-frame mode decision method specific to high efficiency video coding standard
CN102075757B (en) Video foreground object coding method by taking boundary detection as motion estimation reference
CN110446052A (en) The quick CU depth selection method of depth map in a kind of 3D-HEVC frame
CN106791828A (en) High performance video code-transferring method and its transcoder based on machine learning
KR20240051104A (en) Video Coding Machine (VCM) encoders and decoders for combined lossless and lossy encoding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Li Hongliang

Inventor after: Xiong Jian

Inventor before: Li Hongliang

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: LI HONGLIANG TO: LI HONGLIANG XIONG JIAN

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151028

Termination date: 20181025

CF01 Termination of patent right due to non-payment of annual fee
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载