CN108366256A - A kind of HEVC intra prediction modes quickly select system and method - Google Patents
A kind of HEVC intra prediction modes quickly select system and method Download PDFInfo
- Publication number
- CN108366256A CN108366256A CN201810074444.8A CN201810074444A CN108366256A CN 108366256 A CN108366256 A CN 108366256A CN 201810074444 A CN201810074444 A CN 201810074444A CN 108366256 A CN108366256 A CN 108366256A
- Authority
- CN
- China
- Prior art keywords
- mode
- prediction
- module
- prediction modes
- rdcost
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
- H04N19/567—Motion estimation based on rate distortion criteria
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
本发明提出了一种HEVC帧内预测模式快速选择系统及方法,用于减小HEVC帧内预测编码模式选择的复杂度;系统包括五个模块,MPM模式确定模块为当前预测块确定三个MPM预测模式;模式区域划分模块将所有预测方向分为三个区域;模式方向匹配模块获取高概率预测模式候选列表;率失真代价计算模块计算高概率预测模式候选列表中每种模式的RDcost,得到RDcost集合;最优模式选取模块将RDcost集合降序排序,选取最小RDcost值对应的模式即为最优预测模式,本发明具有编码效率高和预测精度高的特点,可用于HEVC视频标准中的帧内预测编码。
The present invention proposes a HEVC intra-frame prediction mode fast selection system and method, which are used to reduce the complexity of HEVC intra-frame prediction coding mode selection; the system includes five modules, and the MPM mode determination module determines three MPMs for the current prediction block Prediction mode; the mode area division module divides all prediction directions into three areas; the mode direction matching module obtains a high-probability prediction mode candidate list; the rate-distortion cost calculation module calculates the RDcost of each mode in the high-probability prediction mode candidate list to obtain RDcost Set; the optimal mode selection module sorts the RDcost set in descending order, and selects the mode corresponding to the minimum RDcost value as the optimal prediction mode. The present invention has the characteristics of high coding efficiency and high prediction accuracy, and can be used for intra-frame prediction in the HEVC video standard coding.
Description
技术领域technical field
本发明属于数字信号处理技术领域,特别涉及一种HEVC帧内预测模式快速选择系统及方法,可用于HEVC视频标准中的帧内预测编码。The invention belongs to the technical field of digital signal processing, and in particular relates to a system and method for quickly selecting an HEVC intra-frame prediction mode, which can be used for intra-frame prediction coding in the HEVC video standard.
背景技术Background technique
HEVC是一种新的视频压缩标准,用来以替代H.264/AVC编码标准,2013年1月26号,HEVC正式成为国际标准。作为新一代视频编码标准,HEVC(H.265)仍然属于预测加变换的混合编码框架。然而,相对于H.264,H.265在很多方面有了革命性的变化。HEVC is a new video compression standard used to replace the H.264/AVC coding standard. On January 26, 2013, HEVC officially became an international standard. As a new-generation video coding standard, HEVC (H.265) still belongs to the hybrid coding framework of prediction plus transformation. However, compared to H.264, H.265 has revolutionary changes in many aspects.
在H.265中,将宏块的大小从H.264的16×16扩展到了64×64,依次对待编码图像进行预测编码、变换编码和熵编码。其中预测编码需要选取出最佳的编码单元CU,并选取CU中每个预测单元PU的预测模式,PU的预测模式共有35种,包括Planar模式(0模式)、DC模式(1模式)以及33种角度预测模式。In H.265, the size of the macroblock is extended from 16×16 in H.264 to 64×64, and predictive coding, transform coding and entropy coding are performed on the image to be coded sequentially. Among them, predictive coding needs to select the best coding unit CU, and select the prediction mode of each prediction unit PU in the CU. There are 35 prediction modes of the PU, including Planar mode (0 mode), DC mode (1 mode) and 33 angle prediction mode.
在HEVC预测编码过程中,先选取编码单元CU,然后为预测单元PU即当前预测块选取最优预测模式。传统的为预测单元PU选取最优预测模式的技术中,MPM模式确定模块为当前预测块确定三个能够成为当前预测块最优预测模式概率最高的MPM预测模式,预测模式遍历模块通过遍历35种预测模式并计算每种模式的绝对误差和SATD,以获取高概率预测模式候选列表,率失真代价计算模块将高概率预测模式候选列表和三个MPM预测模式进行整合得到最优预测模式列表,并计算最优预测模式列表中每一种模式的率失真代价RDcost,得到代价RDcost集合,然后从代价RDcost集合中选出最小值对应的预测模式,即为当前预测块的预测模式。In the HEVC predictive encoding process, the coding unit CU is selected first, and then the optimal prediction mode is selected for the prediction unit PU, that is, the current prediction block. In the traditional technology of selecting the optimal prediction mode for the prediction unit PU, the MPM mode determination module determines three MPM prediction modes with the highest probability of becoming the optimal prediction mode of the current prediction block for the current prediction block, and the prediction mode traversal module traverses 35 types Predict the mode and calculate the absolute error and SATD of each mode to obtain a candidate list of high-probability forecast modes. The rate-distortion cost calculation module integrates the candidate list of high-probability forecast modes and three MPM forecast modes to obtain the optimal forecast mode list, and Calculate the rate-distortion cost RDcost of each mode in the optimal prediction mode list, obtain the cost RDcost set, and then select the prediction mode corresponding to the minimum value from the cost RDcost set, which is the prediction mode of the current prediction block.
HEVC中每一个编码单元CU可以划分为若干种形式的预测单元PU,当每个预测单元PU作为当前预测块时,若选择最优预测模式都要逐一遍历35种预测模式,会导致最优预测模式选取的复杂度很高,大大降低了HEVC的编码效率。Each coding unit CU in HEVC can be divided into several types of prediction units PU. When each prediction unit PU is used as the current prediction block, if the optimal prediction mode is selected, 35 prediction modes must be traversed one by one, which will lead to optimal prediction. The complexity of mode selection is very high, which greatly reduces the coding efficiency of HEVC.
发明内容Contents of the invention
本发明的目的在于克服上述现有技术存在的缺陷,提供了一种HEVC帧内预测模式快速选择系统及方法,用于减小HEVC帧内预测编码模式选择的复杂度。The purpose of the present invention is to overcome the above-mentioned defects in the prior art, and provide a HEVC intra-frame prediction mode fast selection system and method for reducing the complexity of HEVC intra-frame prediction coding mode selection.
为实现上述目的,本发明采取的技术方案为:In order to achieve the above object, the technical scheme that the present invention takes is:
一种HEVC帧内预测模式快速选择系统,包括依次连接的MPM模式确定模块、率失真代价计算模块和最优模式选取模块,其中:A fast selection system for HEVC intra-frame prediction mode, including sequentially connected MPM mode determination module, rate-distortion cost calculation module and optimal mode selection module, wherein:
所述MPM模式确定模块,用于为当前预测块确定三个能够成为当前预测块最优预测模式概率最高的MPM预测模式;The MPM mode determination module is used to determine three MPM prediction modes with the highest probability of becoming the optimal prediction mode of the current prediction block for the current prediction block;
所述率失真代价计算模块,用于获取最优模式候选集合,并计算该最优模式候选集合中每一种模式的率失真代价RDcost,以获取代价RDcost集合;The rate-distortion cost calculation module is used to obtain an optimal mode candidate set, and calculate the rate-distortion cost RDcost of each mode in the optimal mode candidate set to obtain a cost RDcost set;
所述最优预测模式选取模块,用于对代价RDcost集合进行降序排序,并选取最小的代价RDcost,以获取当前预测块的最优预测模式;The optimal prediction mode selection module is used to sort the cost RDcost set in descending order, and select the smallest cost RDcost to obtain the optimal prediction mode of the current prediction block;
还包括依次连接的模式区域划分模块和模式方向匹配模块,其中:Also includes a sequentially connected pattern region division module and pattern direction matching module, where:
所述模式区域划分模块,用于按方向对HEVC中的33种角度预测模式进行区域划分;The mode area division module is used to divide the 33 angle prediction modes in HEVC according to the direction;
所述模式方向匹配模块,用于利用MPM模式确定模块得到的当前预测块左侧及上侧块的预测模式,对当前预测块在模式区域划分模块得到的三个区域进行方向匹配,以获取高概率预测模式候选列表。The mode direction matching module is used to use the prediction modes of the left and upper blocks of the current prediction block obtained by the MPM mode determination module to perform direction matching on the three regions obtained by the mode region division module of the current prediction block, so as to obtain high A list of probabilistic prediction mode candidates.
一种HEVC帧内预测模式快速选择的方法,包括如下步骤:A method for fast selection of HEVC intra-frame prediction mode, comprising the steps of:
(1)MPM模式确定模块确定三个MPM预测模式:(1) The MPM mode determination module determines three MPM prediction modes:
(1a)MPM模式确定模块将MPM预测模式的第一预测模式记为ModeA,第二预测模式记为ModeB,第三预测模式记为ModeC,并将当前预测块的左侧预测块的预测模式值赋值给ModeA,上侧预测块的预测模式值赋值给ModeB;(1a) The MPM mode determination module records the first prediction mode of the MPM prediction mode as ModeA, the second prediction mode as ModeB, and the third prediction mode as ModeC, and the prediction mode value of the left prediction block of the current prediction block Assign the value to ModeA, and assign the prediction mode value of the upper side prediction block to ModeB;
(1b)MPM模式确定模块判断ModeA和ModeB是否相等,若是,当ModeA是0或者1时,将0,1和26中任意两个值分别赋值给ModeB和ModeC,当ModeA是2到34中任意一个值时,将与ModeA相邻的两个角度预测模式分别赋值给ModeB和ModeC,否则,将ModeC设置为0、1或者26,且与ModeA和ModeB不重复;(1b) The MPM mode determination module judges whether ModeA and ModeB are equal, if so, when ModeA is 0 or 1, assign any two values in 0, 1 and 26 to ModeB and ModeC respectively, when ModeA is any of 2 to 34 When it is a value, assign the two angle prediction modes adjacent to ModeA to ModeB and ModeC respectively, otherwise, set ModeC to 0, 1 or 26, and it is not repeated with ModeA and ModeB;
(2)模式区域划分模块对HEVC中的33种角度预测模式进行模式区域划分,得到三个预测区域:(2) The mode area division module divides the 33 kinds of angle prediction modes in HEVC into mode areas, and obtains three prediction areas:
模式区域划分模块将HEVC中的33种角度预测模式划分成第一预测区域Area1、第二预测区域Area2和第三预测区域Area3,且每个区域包含的预测模式总数为奇数;The model area division module divides 33 kinds of angle prediction modes in HEVC into the first prediction area Area1, the second prediction area Area2 and the third prediction area Area3, and the total number of prediction modes contained in each area is an odd number;
(3)模式方向匹配模块获取高概率预测模式候选列表:(3) The pattern direction matching module obtains the high probability prediction pattern candidate list:
(3a)模式方向匹配模块判断ModeA和ModeB是否属于Area1,Area2和Area3三个区域中的一个,若是,将ModeA和ModeB之间的预测模式作为高概率预测模式候选列表,否则,执行步骤(3b);(3a) mode direction matching module judges whether ModeA and ModeB belong to Area1, one of Area2 and Area3 three areas, if so, the prediction mode between ModeA and ModeB is used as high probability prediction mode candidate list, otherwise, execution step (3b );
(3b)模式方向匹配模块设置匹配区间,并将匹配区间的左侧端点记为左端点ref1,右侧端点记为右端点ref2,中间位置记为中间点Area(n)_ref,其中n代表预测模式值,且2≤n≤34;(3b) The pattern direction matching module sets the matching interval, and records the left end point of the matching interval as the left end point ref1, the right end point as the right end point ref2, and the middle position as the middle point Area(n)_ref, where n represents prediction mode value, and 2≤n≤34;
(3c)模式方向匹配模块将ModeA赋值给ref1,ModeB赋值给ref2,(ref1+ref2)/2赋值给Area(n)_ref;(3c) The mode direction matching module assigns ModeA to ref1, ModeB to ref2, and (ref1+ref2)/2 to Area(n)_ref;
(3d)模式方向匹配模块计算Area(n)_ref的模式匹配值MSEref、ref1的模式匹配值MSE1和ref2的模式匹配值MSE2;(3d) pattern direction matching module calculates the pattern matching value MSE ref of Area(n)_ref, the pattern matching value MSE 1 of ref1 and the pattern matching value MSE 2 of ref2;
(3e)模式方向匹配模块判断MSE1≤MSEref≤MSE2和|ref1-ref2|≤5是否同时成立,若是,执行步骤(3g),否则,执行步骤(3f);(3e) The mode direction matching module judges whether MSE 1 ≤ MSE ref ≤ MSE 2 and |ref1-ref2|≤5 are established at the same time, if so, perform step (3g), otherwise, perform step (3f);
(3f)模式方向匹配模块将Area(n)_ref赋值给ref1,(Area(n)_ref+ref2)/2赋值给Area(n)_ref,ModeB赋值给ref2,并执行步骤(3d);(3f) The mode direction matching module assigns Area(n)_ref to ref1, (Area(n)_ref+ref2)/2 assigns to Area(n)_ref, ModeB assigns to ref2, and executes step (3d);
(3g)模式方向匹配模块将ref1和ref2之间的预测模式作为高概率预测模式候选列表;(3g) the mode direction matching module uses the prediction mode between ref1 and ref2 as a high probability prediction mode candidate list;
(4)率失真代价计算模块获取最优模式候选列表,并计算最优模式候选列表中每种模式的率失真代价RDcost,得到代价RDcost集合:(4) The rate-distortion cost calculation module obtains the optimal mode candidate list, and calculates the rate-distortion cost RDcost of each mode in the optimal mode candidate list, and obtains the cost RDcost set:
(4a)率失真代价计算模块将步骤(1)确定的三个MPM预测模式与步骤(3)获取的高概率预测模式候选列表进行整合,得到最优预测模式候选列表;(4a) The rate-distortion cost calculation module integrates the three MPM prediction modes determined in step (1) with the high-probability prediction mode candidate list obtained in step (3), to obtain the optimal prediction mode candidate list;
(4b)率失真代价计算模块计算最优预测模式候选列表中的每种模式的率失真代价RDcost,得到代价RDcost集合;(4b) The rate-distortion cost calculation module calculates the rate-distortion cost RDcost of each mode in the optimal prediction mode candidate list, and obtains a set of cost RDcost;
(5)最优预测模式选取模块获取当前预测块的最优预测模式:(5) The optimal prediction mode selection module obtains the optimal prediction mode of the current prediction block:
最优预测模式选取模块将率失真代价计算模块计算得到的RDcost集合进行降序排序,并选择最小的代价RDcost值所对应的预测模式,作为当前预测块的最优预测模式。The optimal prediction mode selection module sorts the RDcost sets calculated by the rate-distortion cost calculation module in descending order, and selects the prediction mode corresponding to the smallest cost RDcost value as the optimal prediction mode of the current prediction block.
本发明与传统技术相比,具有如下优点:Compared with traditional technology, the present invention has following advantages:
1.本发明在获取高概率预测模式候选列表时,首先使用模式区域划分模块将HEVC中的33种预测模式进行区域划分得到三种预测区域,然后使用模式方向匹配模块和MPM模式确定模块确定的当前预测块左侧及上侧块的预测模式,对当前预测块在模式区域划分模块划分的三个区域进行方向匹配,快速定位并缩小匹配区间进而得到高概率预测模式候选列表,与现有技术中通过预测模式遍历模块将35种预测模式逐一遍历的方法获取高概率预测模式候选列表相比,减少了计算次数,降低了编码复杂度,有效地提高了编码效率。1. When the present invention obtains the high-probability prediction mode candidate list, it first uses the mode area division module to divide the 33 prediction modes in HEVC into three types of prediction areas, and then uses the mode direction matching module and the MPM mode determination module to determine For the prediction mode of the left and upper blocks of the current prediction block, perform direction matching on the three areas divided by the mode area division module of the current prediction block, quickly locate and narrow the matching interval, and then obtain a high-probability prediction mode candidate list, which is different from the existing technology Compared with obtaining the high-probability prediction mode candidate list by traversing the 35 prediction modes one by one through the prediction mode traversal module, the number of calculations is reduced, the coding complexity is reduced, and the coding efficiency is effectively improved.
2.本发明在对HEVC中的33种预测模式进行区域划分时,使用了模式区域划分模块,根据各个预测模式之间的方向相关性,将33种角度预测模式划分为三种预测区域,即垂直方向正偏移区、水平方向正偏移区和垂直与水平方向的负偏移区,且每种预测区域包含的预测模式总数为奇数,为后续的方向匹配过程提供了便利,进一步提高了编码效率2. When the present invention divides the 33 kinds of prediction modes in HEVC, the mode area division module is used, and according to the directional correlation between each prediction mode, the 33 kinds of angle prediction modes are divided into three kinds of prediction areas, namely The positive offset area in the vertical direction, the positive offset area in the horizontal direction, and the negative offset area in the vertical and horizontal directions, and the total number of prediction modes contained in each prediction area is odd, which provides convenience for the subsequent direction matching process and further improves the coding efficiency
3.本发明在计算模式匹配值MSE时,使用了模式方向匹配模块,计算当前预测块与参考块像素值之间的二维均方误差,相比于传统方法中计算绝对误差和SAD的方法,减小了预测误差,具有预测精度更高特点。3. When calculating the mode matching value MSE, the present invention uses a mode direction matching module to calculate the two-dimensional mean square error between the current prediction block and the reference block pixel value, compared to the method of calculating absolute error and SAD in the traditional method , which reduces the prediction error and has the characteristics of higher prediction accuracy.
附图说明Description of drawings
图1为本发明选择系统的整体结构示意图;Fig. 1 is the overall structure schematic diagram of the selection system of the present invention;
图2为本发明选择方法的实现流程图。Fig. 2 is a flow chart of the realization of the selection method of the present invention.
具体实施方式Detailed ways
以下结合附图和具体实施例,对本发明作进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.
参照图1,一种HEVC帧内预测模式快速选择的方法,包括如下步骤:Referring to Fig. 1, a method for fast selection of an HEVC intra-frame prediction mode includes the following steps:
一种HEVC帧内预测模式快速选择系统,包括依次连接的MPM模式确定模块、率失真代价计算模块和最优模式选取模块,其中:A fast selection system for HEVC intra-frame prediction mode, including sequentially connected MPM mode determination module, rate-distortion cost calculation module and optimal mode selection module, wherein:
所述MPM模式确定模块,用于为当前预测块确定三个能够成为当前预测块最优预测模式概率最高的MPM预测模式;The MPM mode determination module is used to determine three MPM prediction modes with the highest probability of becoming the optimal prediction mode of the current prediction block for the current prediction block;
所述率失真代价计算模块,用于获取最优模式候选集合,并计算该最优模式候选集合中每一种模式的率失真代价RDcost,以获取代价RDcost集合;The rate-distortion cost calculation module is used to obtain an optimal mode candidate set, and calculate the rate-distortion cost RDcost of each mode in the optimal mode candidate set to obtain a cost RDcost set;
所述最优预测模式选取模块,用于对代价RDcost集合进行降序排序,并选取最小的代价RDcost,以获取当前预测块的最优预测模式;The optimal prediction mode selection module is used to sort the cost RDcost set in descending order, and select the smallest cost RDcost to obtain the optimal prediction mode of the current prediction block;
还包括依次连接的模式区域划分模块和模式方向匹配模块,其中:Also includes a sequentially connected pattern region division module and pattern direction matching module, where:
所述模式区域划分模块,用于按方向对HEVC中的33种角度预测模式进行区域划分;The mode area division module is used to divide the 33 angle prediction modes in HEVC according to the direction;
所述模式方向匹配模块,用于利用MPM模式确定模块得到的当前预测块块左侧及上侧块的预测模式,对当前预测块在模式区域划分模块得到的三个区域进行方向匹配,以获取高概率预测模式候选列表。The mode direction matching module is used to use the prediction modes of the left and upper blocks of the current prediction block obtained by the MPM mode determination module to perform direction matching on the three regions obtained by the mode region division module of the current prediction block, so as to obtain High probability prediction mode candidate list.
参照图2,一种HEVC帧内预测模式快速选择的方法,包括如下步骤:Referring to Fig. 2, a method for fast selection of an HEVC intra prediction mode includes the following steps:
步骤1)MPM模式确定模块确定三个MPM预测模式:Step 1) MPM mode determination module determines three MPM prediction modes:
步骤1a)MPM模式确定模块将MPM预测模式的第一预测模式记为ModeA,第二预测模式记为ModeB,第三预测模式记为ModeC,并将当前预测块的左侧预测块的预测模式值赋值给ModeA,上侧预测块的预测模式值赋值给ModeB;Step 1a) The MPM mode determination module records the first prediction mode of the MPM prediction mode as ModeA, the second prediction mode as ModeB, and the third prediction mode as ModeC, and the prediction mode value of the left prediction block of the current prediction block Assign the value to ModeA, and assign the prediction mode value of the upper side prediction block to ModeB;
步骤1b)MPM模式确定模块判断ModeA和ModeB是否相等,若是,当ModeA是0或者1时,将0,1和26中任意两个值分别赋值给ModeB和ModeC,当ModeA是2到34中任意一个值时,将与ModeA相邻的两个角度预测模式分别赋值给ModeB和ModeC,否则,将ModeC设置为0,1或者26,且与ModeA和ModeB不重复;Step 1b) MPM mode determines whether the module judges whether ModeA and ModeB are equal, if so, when ModeA is 0 or 1, assign any two values in 0, 1 and 26 to ModeB and ModeC respectively, when ModeA is any of 2 to 34 When it is a value, assign the two angle prediction modes adjacent to ModeA to ModeB and ModeC respectively, otherwise, set ModeC to 0, 1 or 26, and it is not repeated with ModeA and ModeB;
步骤2)模式区域划分模块对HEVC中的33种角度预测模式进行模式区域划分,得到三个预测区域:Step 2) The mode area division module divides the mode area into 33 kinds of angle prediction modes in HEVC, and obtains three prediction areas:
模式区域划分模块根据HEVC中的33种角度预测模式在水平和垂直方向上的偏移值正负情况,将33种角度预测模式划分为垂直方向正偏移区Area1、水平方向正偏移区Area2和垂直与水平方向负偏移区Area3共三个区域,Area1表示在垂直方向上为正偏移的区域,通过Area1向当前块右上方向预测,Area2表示在水平方向上为正偏移的区域,通过Area2向当前块左下方向预测,Area3表示在垂直与水平方向上均是负偏移的区域,通过Area3向当前块右下方向预测,且每个区域包含的预测模式总数为奇数,其中,Area1包括2到10,Area2包括11到27,Area3包括28到34;The mode area division module divides the 33 angle prediction modes into vertical positive offset area Area1 and horizontal direction positive offset area Area2 according to the positive and negative offset values of the 33 angle prediction modes in HEVC in the horizontal and vertical directions There are three areas together with the negative offset area Area3 in the vertical and horizontal directions. Area1 indicates the area with positive offset in the vertical direction, and is predicted to the upper right direction of the current block through Area1. Area2 indicates the area with positive offset in the horizontal direction. Use Area2 to predict the lower-left direction of the current block, and Area3 indicates an area with negative offsets in the vertical and horizontal directions, and use Area3 to predict the lower-right direction of the current block, and the total number of prediction modes contained in each area is an odd number, among them, Area1 Including 2 to 10, Area2 includes 11 to 27, Area3 includes 28 to 34;
步骤3)模式方向匹配模块获取高概率预测模式候选列表:Step 3) The pattern direction matching module obtains the high probability prediction pattern candidate list:
步骤3a)模式方向匹配模块判断ModeA和ModeB是否属于Area1,Area2和Area3三个区域中的一个,若是,将ModeA和ModeB之间的预测模式作为高概率预测模式候选列表,否则,执行步骤3b);Step 3a) Mode direction matching module judges whether ModeA and ModeB belong to Area1, one of Area2 and Area3 three areas, if so, the prediction mode between ModeA and ModeB is used as the high probability prediction mode candidate list, otherwise, execute step 3b) ;
步骤3b)模式方向匹配模块设置匹配区间,并将匹配区间的左侧端点记为左端点ref1,右侧端点记为右端点ref2,中间位置记为中间点Area(n)_ref,其中n代表预测模式值,且2≤n≤34;Step 3b) The pattern direction matching module sets the matching interval, and records the left end point of the matching interval as the left end point ref1, the right end point as the right end point ref2, and the middle position as the middle point Area(n)_ref, where n represents prediction mode value, and 2≤n≤34;
步骤3c)模式方向匹配模块将ModeA赋值给ref1,ModeB赋值给ref2,(ref1+ref2)/2赋值给Area(n)_ref;Step 3c) The mode direction matching module assigns ModeA to ref1, ModeB to ref2, and (ref1+ref2)/2 to Area(n)_ref;
步骤3d)模式方向匹配模块计算Area(n)_ref的模式匹配值MSEref、ref1的模式匹配值MSE1和ref2的模式匹配值MSE2,模式匹配值采用二维均方差方法得到,二维均方差的计算公式为:Step 3d) The pattern direction matching module calculates the pattern matching value MSE ref of Area(n)_ref, the pattern matching value MSE 1 of ref1 and the pattern matching value MSE 2 of ref2, and the pattern matching value is obtained by a two-dimensional mean square error method, and the two-dimensional mean The formula for calculating the variance is:
其中,M和N分别代表当前预测块的宽和高,fi和fi-1分别表示当前块和参考块的像素值,x和y表示当前块和参考块对应像素位置运动向量的水平分量和垂直分量;Among them, M and N represent the width and height of the current prediction block respectively, f i and f i-1 represent the pixel values of the current block and the reference block respectively, x and y represent the horizontal components of the motion vectors corresponding to the pixel positions of the current block and the reference block and the vertical component;
步骤3e)模式方向匹配模块判断MSE1≤MSEref≤MSE2和|ref1-ref2|≤5是否均成立,若是,执行步骤(3g),否则,执行步骤(3f);Step 3e) The pattern direction matching module judges whether MSE 1 ≤ MSE ref ≤ MSE 2 and |ref1-ref2|≤5 are all established, if so, perform step (3g), otherwise, perform step (3f);
步骤3f)模式方向匹配模块将Area(n)_ref赋值给ref1,(Area(n)_ref+ref2)/2赋值给Area(n)_ref,ModeB赋值给ref2,并执行步骤3d);Step 3f) Mode direction matching module assigns Area(n)_ref to ref1, (Area(n)_ref+ref2)/2 assigns to Area(n)_ref, ModeB assigns to ref2, and executes step 3d);
步骤3g)模式方向匹配模块将ref1和ref2之间的预测模式作为高概率预测模式候选列表;Step 3g) The mode direction matching module uses the prediction mode between ref1 and ref2 as a high-probability prediction mode candidate list;
步骤4)率失真代价计算模块获取最优模式候选列表并计算最优模式候选列表中每种模式的率失真代价RDcost,得到代价RDcost集合:Step 4) The rate-distortion cost calculation module obtains the optimal mode candidate list and calculates the rate-distortion cost RDcost of each mode in the optimal mode candidate list, and obtains the cost RDcost set:
步骤4a)率失真代价计算模块将步骤1)得到的3个MPM预测模式与步骤3)得到的高概率预测模式候选列表进行整合,得到最优预测模式候选列表;Step 4a) The rate-distortion cost calculation module integrates the three MPM prediction modes obtained in step 1) with the high-probability prediction mode candidate list obtained in step 3), to obtain the optimal prediction mode candidate list;
步骤4b)率失真代价计算模块计算最优预测模式候选列表中的每种模式的率失真代价RDcost,得到代价RDcost集合,其中,率失真代价RDcost是根据HEVC中规定的率失真代价值定义式对每一种模式进行计算,计算公式为:Step 4b) The rate-distortion cost calculation module calculates the rate-distortion cost RDcost of each mode in the optimal prediction mode candidate list, and obtains the cost RDcost set, wherein the rate-distortion cost RDcost is defined according to the rate-distortion cost value defined in HEVC. Each mode is calculated, and the calculation formula is:
RDcost=Distortion+λ×uiBitsRDcost=Distortion+λ×uiBits
其中,Distortion是使用预测模式进行预测后得到的重建图像与原图像的误差平方和,λ是拉格朗日因子,uiBits为使用预测模式对图像依次进行预测、变换、量化、熵编码后产生的编码比特数;Among them, Distortion is the sum of squared errors between the reconstructed image and the original image after prediction using the prediction mode, λ is the Lagrangian factor, and uiBits is generated by sequentially predicting, transforming, quantizing, and entropy encoding the image using the prediction mode number of encoded bits;
步骤5)最优预测模式选取模块获取当前预测块的最优预测模式:Step 5) The optimal prediction mode selection module obtains the optimal prediction mode of the current prediction block:
最优预测模式选取模块将率失真代价计算模块得到的RDcost集合进行降序排序,并选择最小的代价RDcost值所对应的预测模式,作为当前预测块的最优预测模式。The optimal prediction mode selection module sorts the RDcost sets obtained by the rate-distortion cost calculation module in descending order, and selects the prediction mode corresponding to the smallest cost RDcost value as the optimal prediction mode of the current prediction block.
以上描述仅是本发明的一个具体实例,显然对于本领域的专业人员来说,在了解了本发明内容和原理后,都可能在不背离本发明原理、结构的情况下,进行形式和细节上的各种修正和改变,但是这些基于本发明思想的修正和改变仍在本发明的权利要求保护范围之内。The above description is only a specific example of the present invention. Obviously, for those skilled in the art, after understanding the content and principle of the present invention, it is possible to carry out the form and details without departing from the principle and structure of the present invention. Various amendments and changes, but these amendments and changes based on the idea of the present invention are still within the protection scope of the claims of the present invention.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810074444.8A CN108366256A (en) | 2018-01-25 | 2018-01-25 | A kind of HEVC intra prediction modes quickly select system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810074444.8A CN108366256A (en) | 2018-01-25 | 2018-01-25 | A kind of HEVC intra prediction modes quickly select system and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108366256A true CN108366256A (en) | 2018-08-03 |
Family
ID=63006944
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810074444.8A Pending CN108366256A (en) | 2018-01-25 | 2018-01-25 | A kind of HEVC intra prediction modes quickly select system and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108366256A (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109714584A (en) * | 2019-01-11 | 2019-05-03 | 杭州电子科技大学 | 3D-HEVC depth map encoding unit high-speed decision method based on deep learning |
| CN110213581A (en) * | 2019-05-20 | 2019-09-06 | 广州市数字视频编解码技术国家工程实验室研究开发与产业化中心 | A kind of coding method skipped based on block partition mode, device and storage medium |
| CN110611813A (en) * | 2019-10-28 | 2019-12-24 | 北京达佳互联信息技术有限公司 | Optimal candidate obtaining method and device under video merging coding scene |
| WO2020108360A1 (en) * | 2018-11-30 | 2020-06-04 | 杭州海康威视数字技术股份有限公司 | Determining motion information in video image coding and decoding |
| WO2020135256A1 (en) * | 2018-12-29 | 2020-07-02 | 腾讯科技(深圳)有限公司 | Method and apparatus for intra-frame coding, frame coder, and frame coding system |
| WO2020182167A1 (en) * | 2019-03-12 | 2020-09-17 | Zhejiang Dahua Technology Co., Ltd. | Systems and methods for image coding |
| WO2021032112A1 (en) * | 2019-08-19 | 2021-02-25 | Beijing Bytedance Network Technology Co., Ltd. | Initialization for counter-based intra prediction mode |
| CN113382260A (en) * | 2019-06-21 | 2021-09-10 | 杭州海康威视数字技术股份有限公司 | Method and device for decoding and encoding prediction mode |
| CN113630596A (en) * | 2021-06-25 | 2021-11-09 | 杭州未名信科科技有限公司 | AVS3 intra-frame prediction mode rough selection method, system and medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103248895A (en) * | 2013-05-14 | 2013-08-14 | 芯原微电子(北京)有限公司 | Quick mode estimation method used for HEVC intra-frame coding |
| CN104954788A (en) * | 2014-03-27 | 2015-09-30 | 浙江大华技术股份有限公司 | HEVC intra prediction mode selection method and device |
| US20170155905A1 (en) * | 2015-11-30 | 2017-06-01 | Intel Corporation | Efficient intra video/image coding using wavelets and variable size transform coding |
-
2018
- 2018-01-25 CN CN201810074444.8A patent/CN108366256A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103248895A (en) * | 2013-05-14 | 2013-08-14 | 芯原微电子(北京)有限公司 | Quick mode estimation method used for HEVC intra-frame coding |
| CN104954788A (en) * | 2014-03-27 | 2015-09-30 | 浙江大华技术股份有限公司 | HEVC intra prediction mode selection method and device |
| US20170155905A1 (en) * | 2015-11-30 | 2017-06-01 | Intel Corporation | Efficient intra video/image coding using wavelets and variable size transform coding |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020108360A1 (en) * | 2018-11-30 | 2020-06-04 | 杭州海康威视数字技术股份有限公司 | Determining motion information in video image coding and decoding |
| WO2020135256A1 (en) * | 2018-12-29 | 2020-07-02 | 腾讯科技(深圳)有限公司 | Method and apparatus for intra-frame coding, frame coder, and frame coding system |
| US11582444B2 (en) | 2018-12-29 | 2023-02-14 | Tencent Technology (Shenzhen) Company Limited | Intra-frame coding method and apparatus, frame coder, and frame coding system |
| CN109714584A (en) * | 2019-01-11 | 2019-05-03 | 杭州电子科技大学 | 3D-HEVC depth map encoding unit high-speed decision method based on deep learning |
| US12034918B2 (en) | 2019-03-12 | 2024-07-09 | Zhejiang Dahua Technology Co., Ltd. | Systems and methods for image coding |
| WO2020182167A1 (en) * | 2019-03-12 | 2020-09-17 | Zhejiang Dahua Technology Co., Ltd. | Systems and methods for image coding |
| CN110213581A (en) * | 2019-05-20 | 2019-09-06 | 广州市数字视频编解码技术国家工程实验室研究开发与产业化中心 | A kind of coding method skipped based on block partition mode, device and storage medium |
| CN110213581B (en) * | 2019-05-20 | 2023-03-07 | 广州市数字视频编解码技术国家工程实验室研究开发与产业化中心 | Encoding method, device and storage medium based on block division mode skipping |
| CN113382260B (en) * | 2019-06-21 | 2022-03-29 | 杭州海康威视数字技术股份有限公司 | Method and device for decoding and encoding prediction mode |
| CN113382260A (en) * | 2019-06-21 | 2021-09-10 | 杭州海康威视数字技术股份有限公司 | Method and device for decoding and encoding prediction mode |
| WO2021032112A1 (en) * | 2019-08-19 | 2021-02-25 | Beijing Bytedance Network Technology Co., Ltd. | Initialization for counter-based intra prediction mode |
| US11917196B2 (en) | 2019-08-19 | 2024-02-27 | Beijing Bytedance Network Technology Co., Ltd | Initialization for counter-based intra prediction mode |
| US12294739B2 (en) | 2019-08-19 | 2025-05-06 | Beijing Bytedance Network Technology Co., Ltd. | Updating for counter-based intra prediction mode |
| CN110611813A (en) * | 2019-10-28 | 2019-12-24 | 北京达佳互联信息技术有限公司 | Optimal candidate obtaining method and device under video merging coding scene |
| CN113630596A (en) * | 2021-06-25 | 2021-11-09 | 杭州未名信科科技有限公司 | AVS3 intra-frame prediction mode rough selection method, system and medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108366256A (en) | A kind of HEVC intra prediction modes quickly select system and method | |
| CN106131547B (en) | The high-speed decision method of intra prediction mode in Video coding | |
| CN103188496B (en) | Based on the method for coding quick movement estimation video of motion vector distribution prediction | |
| CN104702951B (en) | Method and apparatus for coding/decoding high-definition picture | |
| CN111131822B (en) | Overlapped block motion compensation with motion information derived from a neighborhood | |
| CN109068142B (en) | 360-degree video intra-frame prediction rapid decision-making method, device, coder-decoder and medium | |
| CN102158709B (en) | A Derivable Motion Compensated Prediction Method at the Decoder | |
| CN104796694B (en) | Optimization intraframe video coding method based on video texture information | |
| CN103327325B (en) | The quick self-adapted system of selection of intra prediction mode based on HEVC standard | |
| CN107087200B (en) | Skip coding mode advanced decision method for high-efficiency video coding standard | |
| CN103546758B (en) | A kind of fast deep graphic sequence inter mode decision fractal coding | |
| CN103248895B (en) | A kind of quick mode method of estimation for HEVC intraframe coding | |
| CN103997646A (en) | Rapid intra-frame prediction mode selection method in high-definition video coding | |
| CN108124154A (en) | Fast selecting method, device and the electronic equipment of inter-frame forecast mode | |
| CN103384325A (en) | Quick inter-frame prediction mode selection method for AVS-M video coding | |
| CN107343198A (en) | A kind of quick decision method of AVS2 inter-frame forecast modes | |
| CN103596004A (en) | Intra-frame prediction method and device based on mathematical statistics and classification training in HEVC | |
| CN105898332B (en) | For the fast deep figure frame mode decision method of 3D-HEVC coding standards | |
| CN102647598B (en) | H.264 inter-frame mode optimization method based on maximin MV (Music Video) difference value | |
| CN109688411B (en) | A method and apparatus for estimating rate-distortion cost of video coding | |
| CN106878737A (en) | Estimation accelerated method in efficient video coding | |
| CN103533355A (en) | Quick coding method for HEVC (high efficiency video coding) | |
| CN101895755B (en) | Quick 4*4 block intra-frame prediction mode selecting method | |
| CN109547798B (en) | Rapid HEVC inter-frame mode selection method | |
| CN110198442B (en) | Intra-frame prediction method, device and storage medium for video coding |
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 | ||
| WD01 | Invention patent application deemed withdrawn after publication | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180803 |