[go: up one dir, main page]

CN104702958B - A kind of HEVC inner frame coding methods and system based on spatial coherence - Google Patents

A kind of HEVC inner frame coding methods and system based on spatial coherence Download PDF

Info

Publication number
CN104702958B
CN104702958B CN201310655153.5A CN201310655153A CN104702958B CN 104702958 B CN104702958 B CN 104702958B CN 201310655153 A CN201310655153 A CN 201310655153A CN 104702958 B CN104702958 B CN 104702958B
Authority
CN
China
Prior art keywords
unit
current coded
depth
coding
coded unit
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.)
Active
Application number
CN201310655153.5A
Other languages
Chinese (zh)
Other versions
CN104702958A (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.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
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 Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN201310655153.5A priority Critical patent/CN104702958B/en
Publication of CN104702958A publication Critical patent/CN104702958A/en
Application granted granted Critical
Publication of CN104702958B publication Critical patent/CN104702958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention is applied to the communications field there is provided a kind of HEVC inner frame coding methods based on spatial coherence, including:According to the depth and size of current coded unit, select the space in current coded unit adjacent and with an equal amount of adjacent encoder unit, and ask for the depth bounds [a0, a1] of adjacent encoder unit;According to the relation between the complexity of current coded unit and the complexity of adjacent encoder unit and the position of current coded unit, the depth bounds of current coded unit is determined;Current coded unit is encoded according to the depth bounds of current coded unit, and the depth for selecting Least-cost according to prediction cost, as the depth of current coded unit, the coding for terminating current coded unit is simultaneously transferred to next coding unit.Present invention also offers a kind of HEVC intraframe coding systems based on spatial coherence.HEVC inner frame coding methods and system provided by the present invention based on spatial coherence can improve code efficiency.

Description

一种基于空间相关性的HEVC帧内编码方法及系统A HEVC intra-frame coding method and system based on spatial correlation

技术领域technical field

本发明涉及通信领域,尤其涉及一种基于空间相关性的HEVC帧内编码方法及系统。The present invention relates to the field of communication, in particular to a spatial correlation-based HEVC intra-frame encoding method and system.

背景技术Background technique

随着生活水平的提高,人们对生活品质的要求也越来越高。观看视频作为一种主要的娱乐方式,人们越来越重视其带来的视觉享受。就视频的尺寸而言,其分辨率从176×144逐渐增大到4k×2k,甚至是8k×4k。与低分辨率视频相比,高分辨率视频可以给人类提供更大的视觉享受。With the improvement of living standards, people's requirements for quality of life are also getting higher and higher. Watching video is a major form of entertainment, and people pay more and more attention to the visual enjoyment it brings. As far as the size of the video is concerned, its resolution gradually increases from 176×144 to 4k×2k, and even 8k×4k. Compared with low-resolution video, high-resolution video can provide humans with greater visual enjoyment.

高效视频编码(High Efficiency Video Coding,HEVC)标准在新一代视频编码标准H.264/AVC的基础上,采用了更多新的技术提高视频的压缩效率,比如先进的运动矢量预测、更多的帧内预测模式、非对称运动分割,采样自适应偏移等,这些技术虽然带来了许多的编码增益,但是也不可避免地带来了更高的编码复杂度,从而影响到高效视频编码标准HEVC从理论走向实际的应用。Based on the new-generation video coding standard H.264/AVC, the High Efficiency Video Coding (HEVC) standard adopts more new technologies to improve video compression efficiency, such as advanced motion vector prediction, more Intra-frame prediction mode, asymmetric motion segmentation, sampling adaptive offset, etc. Although these technologies bring a lot of coding gains, they inevitably bring higher coding complexity, which affects the high-efficiency video coding standard HEVC. From theory to practical application.

为了降低高效视频编码标准HEVC编码过程的复杂度,研究人员提出了许多有效的方法。例如有人提出一种自适应确定编码单元(Coding Unit,CU)深度范围的算法,有人利用先前已编码帧和相邻已编码的编码单元CU的深度快速确定当前编码单元CU的深度范围,有人在帧层和编码单元CU层分别提出一个快速确定编码单元CU深度的算法加速编码过程,有人利用贝叶斯准则结合一些相关的特征快速决定编码单元CU的深度等等方法。In order to reduce the complexity of HEVC encoding process in the High Efficiency Video Coding standard, researchers have proposed many effective methods. For example, someone proposes an algorithm for adaptively determining the depth range of a coding unit (CU), someone uses the depths of previously coded frames and adjacent coded CUs to quickly determine the depth range of the current coding unit CU, and someone in The frame layer and the coding unit CU layer respectively propose an algorithm to quickly determine the depth of the coding unit CU to speed up the coding process. Some people use the Bayesian criterion combined with some related features to quickly determine the depth of the coding unit CU and so on.

虽然上述方法可以在一定程度上去除编码过程中存在的冗余,但是这些方法仅仅简单使用空间相关性或时间相关性快速确定编码单元CU的深度范围,却没有考虑到一帧图像中也常常存在编码单元CU与时空相邻编码单元CU相关性不强的情况,这就会造成编码单元CU的深度范围预测不准确,导致不同程度的编码效率降低。Although the above methods can remove the redundancy existing in the encoding process to a certain extent, these methods simply use spatial correlation or temporal correlation to quickly determine the depth range of the coding unit CU, but do not take into account that there are often In the case where the coding unit CU is not strongly correlated with the spatio-temporal adjacent coding unit CU, the prediction of the depth range of the coding unit CU will be inaccurate, resulting in different degrees of coding efficiency reduction.

因此,亟需设计一种全新的基于空间相关性的HEVC帧内编码方法及系统,从而可以提高编码效率。Therefore, it is urgent to design a new HEVC intra-frame encoding method and system based on spatial correlation, so as to improve encoding efficiency.

发明内容Contents of the invention

有鉴于此,本发明的目的在于提供一种基于空间相关性的HEVC帧内编码方法及系统,旨在解决现有技术中编码效率较低的问题。In view of this, the object of the present invention is to provide a HEVC intra-frame encoding method and system based on spatial correlation, aiming at solving the problem of low encoding efficiency in the prior art.

本发明是这样实现的,一种基于空间相关性的HEVC帧内编码方法,包括:The present invention is achieved in this way, a HEVC intra-frame encoding method based on spatial correlation, comprising:

根据当前编码单元的深度和大小,选择在所述当前编码单元的空间相邻并且具有同样大小的相邻编码单元,并求取所述相邻编码单元的深度范围[a0,a1];According to the depth and size of the current coding unit, select adjacent coding units that are spatially adjacent to the current coding unit and have the same size, and obtain the depth range [a 0 , a 1 ] of the adjacent coding unit;

根据所述当前编码单元的复杂度与所述相邻编码单元的复杂度之间的关系以及所述当前编码单元的所在位置,确定所述当前编码单元的深度范围;determining the depth range of the current coding unit according to the relationship between the complexity of the current coding unit and the complexity of the neighboring coding units and the location of the current coding unit;

根据当前编码单元的深度范围对当前编码单元进行编码,并根据预测代价选择代价最小的深度作为当前编码单元的深度,结束当前编码单元的编码并转入下一个编码单元。Encode the current coding unit according to the depth range of the current coding unit, and select the depth with the least cost as the depth of the current coding unit according to the prediction cost, end the coding of the current coding unit and transfer to the next coding unit.

优选的,所述根据当前编码单元的深度范围对当前编码单元进行编码,并根据预测代价选择代价最小的深度作为当前编码单元的深度,结束当前编码单元的编码并转入下一个编码单元的步骤包括:Preferably, the step of encoding the current coding unit according to the depth range of the current coding unit, and selecting the depth with the least cost as the depth of the current coding unit according to the prediction cost, ending the coding of the current coding unit and turning to the next coding unit include:

判断所述当前编码单元的深度是否在已经确定的所述当前编码单元的深度范围之内;judging whether the depth of the current coding unit is within the determined depth range of the current coding unit;

若所述当前编码单元的深度不在已经确定的所述当前编码单元的深度范围之内,则判断所述当前编码单元的深度是否大于或者等于已经确定的所述当前编码单元的深度范围的上限;If the depth of the current coding unit is not within the determined depth range of the current coding unit, determine whether the depth of the current coding unit is greater than or equal to the upper limit of the determined depth range of the current coding unit;

若所述当前编码单元的深度大于或者等于已经确定的所述当前编码单元的深度范围的上限,则结束所述当前编码单元的分割过程;If the depth of the current coding unit is greater than or equal to the determined upper limit of the depth range of the current coding unit, end the splitting process of the current coding unit;

判断所述当前编码单元是否是修剪后编码树单元中待搜索的最后一个编码单元;judging whether the current coding unit is the last coding unit to be searched in the pruned coding tree unit;

若所述当前编码单元是修剪后编码树单元中待搜索的最后一个编码单元,则结束当前编码树单元的递归分割过程,完成当前编码树单元对应的编码单元的编码。If the current coding unit is the last coding unit to be searched in the pruned coding tree unit, the recursive division process of the current coding tree unit is ended, and the coding of the coding unit corresponding to the current coding tree unit is completed.

优选的,在所述判断所述当前编码单元的深度是否在已经确定的所述当前编码单元的深度范围之内的步骤之后,所述方法还包括:Preferably, after the step of judging whether the depth of the current coding unit is within the determined depth range of the current coding unit, the method further includes:

若所述当前编码单元的深度在已经确定的所述当前编码单元的深度范围之内,则执行帧内预测过程,并计算最佳预测模式对应代价,选择代价最小的模式为最佳模式。If the depth of the current coding unit is within the determined depth range of the current coding unit, perform an intra prediction process, calculate the cost corresponding to the best prediction mode, and select the mode with the smallest cost as the best mode.

优选的,所述根据所述当前编码单元的复杂度与所述相邻编码单元的复杂度之间的关系以及所述当前编码单元的所在位置,确定所述当前编码单元的深度范围的步骤具体包括:Preferably, the step of determining the depth range of the current coding unit according to the relationship between the complexity of the current coding unit and the complexity of the adjacent coding units and the location of the current coding unit is specifically include:

若所述当前编码单元属于最上方或者最左方边缘的编码单元,则确定所述当前编码单元原始的深度范围为[0,3];If the current coding unit belongs to the topmost or leftmost coding unit, determine that the original depth range of the current coding unit is [0, 3];

或者,若所述当前编码单元的复杂度大于所述相邻编码单元的复杂度的最大值,则确定所述当前编码单元的深度范围为[a0,min(a1+N,3)],N∈[0,3];Or, if the complexity of the current coding unit is greater than the maximum value of the complexity of the adjacent coding unit, determine that the depth range of the current coding unit is [a 0 , min(a 1 +N, 3)] , N∈[0,3];

或者,若所述当前编码单元的复杂度小于所述相邻编码单元的复杂度的最小值,则确定所述当前编码单元的深度范围为[max(0,a0-N),a1],N∈[0,3];Or, if the complexity of the current coding unit is less than the minimum value of the complexity of the adjacent coding units, determine that the depth range of the current coding unit is [max(0, a 0 -N), a 1 ] , N∈[0,3];

或者,若所述当前编码单元的复杂度处于所述相邻编码单元的复杂度之间,则确定所述当前编码单元的深度范围为[a0,a1]。Or, if the complexity of the current coding unit is between the complexities of the adjacent coding units, determine that the depth range of the current coding unit is [a 0 , a 1 ].

优选的,所述根据当前编码单元的深度和大小,选择在所述当前编码单元的空间相邻并且具有同样大小的相邻编码单元,并求取所述相邻编码单元的深度范围[a0,a1]的步骤包括:Preferably, according to the depth and size of the current coding unit, select adjacent coding units that are spatially adjacent to the current coding unit and have the same size, and calculate the depth range of the adjacent coding units [a 0 , a 1 ] steps include:

根据当前编码单元的深度和大小,选择在所述当前编码单元的左方与上方相邻并且具有同样大小的相邻编码单元,并通过计算左方与上方相邻编码单元的深度范围的并集来得到所述相邻编码单元的深度范围[a0,a1]。According to the depth and size of the current coding unit, select the adjacent coding units adjacent to the left and above of the current coding unit and have the same size, and calculate the union of the depth ranges of the adjacent coding units on the left and above to obtain the depth range [a 0 , a 1 ] of the adjacent coding unit.

另一方面,本发明还提供一种基于空间相关性的HEVC帧内编码系统,所述系统包括:On the other hand, the present invention also provides a HEVC intra-frame encoding system based on spatial correlation, the system comprising:

选择模块,用于根据当前编码单元的深度和大小,选择在所述当前编码单元的空间相邻并且具有同样大小的相邻编码单元,并求取所述相邻编码单元的深度范围[a0,a1];The selection module is configured to select, according to the depth and size of the current coding unit, adjacent coding units that are spatially adjacent to the current coding unit and have the same size, and calculate the depth range of the adjacent coding units [a 0 , a 1 ];

范围确定模块,用于根据所述当前编码单元的复杂度与所述相邻编码单元的复杂度之间的关系以及所述当前编码单元的所在位置,确定所述当前编码单元的深度范围;A range determination module, configured to determine the depth range of the current coding unit according to the relationship between the complexity of the current coding unit and the complexity of the adjacent coding units and the location of the current coding unit;

编码预测模块,用于根据当前编码单元的深度范围对当前编码单元进行编码,并根据预测代价选择代价最小的深度作为当前编码单元的深度,结束当前编码单元的编码并转入下一个编码单元。The encoding prediction module is used to encode the current coding unit according to the depth range of the current coding unit, and select the depth with the lowest cost as the depth of the current coding unit according to the prediction cost, end the coding of the current coding unit and transfer to the next coding unit.

优选的,所述编码预测模块包括:Preferably, the coding prediction module includes:

第一判断子模块,用于判断所述当前编码单元的深度是否在已经确定的所述当前编码单元的深度范围之内;A first judging submodule, configured to judge whether the depth of the current coding unit is within the determined depth range of the current coding unit;

第二判断子模块,用于若所述当前编码单元的深度不在已经确定的所述当前编码单元的深度范围之内,则判断所述当前编码单元的深度是否大于或者等于已经确定的所述当前编码单元的深度范围的上限;The second judging submodule is configured to judge whether the depth of the current coding unit is greater than or equal to the determined depth of the current coding unit if the depth of the current coding unit is not within the determined depth range of the current coding unit. the upper limit of the depth range of the coding unit;

结束分割子模块,用于若所述当前编码单元的深度大于或者等于已经确定的所述当前编码单元的深度范围的上限,则结束所述当前编码单元的分割过程;Ending the splitting submodule, configured to end the splitting process of the current coding unit if the depth of the current coding unit is greater than or equal to the determined upper limit of the depth range of the current coding unit;

第三判断子模块,用于判断所述当前编码单元是否是修剪后编码树单元中待搜索的最后一个编码单元;The third judging submodule is used to judge whether the current coding unit is the last coding unit to be searched in the pruned coding tree unit;

其中,所述结束分割子模块,还用于若所述当前编码单元是修剪后编码树单元中待搜索的最后一个编码单元,则结束当前编码树单元的递归分割过程,完成当前编码树单元对应的编码单元的编码。Wherein, the end segmentation sub-module is also used to end the recursive segmentation process of the current coding tree unit if the current coding unit is the last coding unit to be searched in the pruned coding tree unit, and complete the corresponding The encoding of the coding unit.

优选的,所述编码预测模块还包括:Preferably, the coding prediction module also includes:

执行子模块,用于若所述当前编码单元的深度在已经确定的所述当前编码单元的深度范围之内,则执行帧内预测过程,并计算最佳预测模式对应代价,选择代价最小的模式为最佳模式。The execution sub-module is used to execute the intra prediction process if the depth of the current coding unit is within the determined depth range of the current coding unit, and calculate the cost corresponding to the best prediction mode, and select the mode with the smallest cost is the best mode.

优选的,所述范围确定模块,具体用于:Preferably, the range determination module is specifically used for:

若所述当前编码单元属于最上方或者最左方边缘的编码单元,则确定所述当前编码单元原始的深度范围为[0,3];If the current coding unit belongs to the topmost or leftmost coding unit, determine that the original depth range of the current coding unit is [0, 3];

或者,若所述当前编码单元的复杂度大于所述相邻编码单元的复杂度的最大值,则确定所述当前编码单元的深度范围为[a0,min(a1+N,3)],N∈[0,3];Or, if the complexity of the current coding unit is greater than the maximum value of the complexity of the adjacent coding unit, determine that the depth range of the current coding unit is [a 0 , min(a 1 +N, 3)] , N∈[0,3];

或者,若所述当前编码单元的复杂度小于所述相邻编码单元的复杂度的最小值,则确定所述当前编码单元的深度范围为[max(0,a0-N),a1],N∈[0,3];Or, if the complexity of the current coding unit is less than the minimum value of the complexity of the adjacent coding units, determine that the depth range of the current coding unit is [max(0, a 0 -N), a 1 ] , N∈[0,3];

或者,若所述当前编码单元的复杂度处于所述相邻编码单元的复杂度之间,则确定所述当前编码单元的深度范围为[a0,a1]。Or, if the complexity of the current coding unit is between the complexities of the adjacent coding units, determine that the depth range of the current coding unit is [a 0 , a 1 ].

优选的,所述选择模块具体用于:根据当前编码单元的深度和大小,选择在所述当前编码单元的左方与上方相邻并且具有同样大小的相邻编码单元,并通过计算左方与上方相邻编码单元的深度范围的并集来得到所述相邻编码单元的深度范围[a0,a1]。Preferably, the selection module is specifically configured to: select, according to the depth and size of the current coding unit, an adjacent coding unit that is adjacent to the left and above the current coding unit and has the same size, and calculates the left and upper The depth range [a0, a1] of the adjacent CU is obtained by the union of the depth ranges of the adjacent CUs above.

在本发明实施例中,本发明提供的技术方案,视频序列中每帧图像的帧内编码过程是按编码树单元(Coding Tree Unit,CTU)处理的,而编码树单元通过深度优先的递归方式遍历该编码树单元中所有的编码单元(Coding Unit,CU),本发明根据视频序列空间相关性,采用递归方式准确确定编码单元的深度范围,在基本不引起编码后视频质量下降的前提下减少遍历编码树单元搜索的范围,有效地降低了帧内编码过程的复杂度。使用本发明提供的技术方案通过空间相邻编码单元的编码信息预测当前编码单元编码的深度,在为编码单元构建更有效的深度范围,减少执行率失真优化(Rate-distortion Optimization,RDO)的编码单元数目,从而在保证编码性能的前提下,更有效地降低帧内编码过程的复杂度,提高编码速度。In the embodiment of the present invention, in the technical solution provided by the present invention, the intra-frame coding process of each frame of image in the video sequence is processed according to the coding tree unit (Coding Tree Unit, CTU), and the coding tree unit is processed by depth-first recursive method. By traversing all the coding units (Coding Unit, CU) in the coding tree unit, the present invention accurately determines the depth range of the coding unit in a recursive manner according to the spatial correlation of the video sequence, and reduces the CU without basically causing the degradation of the video quality after coding. Traversing the range of the coding tree unit search effectively reduces the complexity of the intra-frame coding process. Using the technical solution provided by the present invention to predict the coded depth of the current coding unit through the coding information of the spatially adjacent coding units, construct a more effective depth range for the coding unit, and reduce the coding of rate-distortion optimization (RDO) The number of units, so as to reduce the complexity of the intra-frame encoding process more effectively and improve the encoding speed under the premise of ensuring the encoding performance.

附图说明Description of drawings

图1为本发明一实施方式中基于空间相关性的HEVC帧内编码方法流程图;FIG. 1 is a flowchart of an HEVC intra-frame encoding method based on spatial correlation in an embodiment of the present invention;

图2为本发明一实施方式中图1所示的步骤S13的详细方法流程图;Fig. 2 is a detailed method flowchart of step S13 shown in Fig. 1 in an embodiment of the present invention;

图3为本发明一实施方式中编码树单元CTU的递归分割示意图;3 is a schematic diagram of recursive partitioning of a coding tree unit CTU in an embodiment of the present invention;

图4为本发明一实施方式中编码树单元CTU最终选择的某个四叉树分割结构;FIG. 4 is a quadtree segmentation structure finally selected by the coding tree unit CTU in an embodiment of the present invention;

图5为本发明一实施方式中基于空间相关性的HEVC帧内编码系统结构示意图;5 is a schematic structural diagram of an HEVC intra-coding system based on spatial correlation in an embodiment of the present invention;

图6为本发明一实施方式中图5所示的编码预测模块103的内部结构示意图;FIG. 6 is a schematic diagram of the internal structure of the encoding prediction module 103 shown in FIG. 5 in an embodiment of the present invention;

图7a与图7b为三种编码方法的对比测试图。Figure 7a and Figure 7b are comparative test charts of the three encoding methods.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明具体实施方式提供了一种基于空间相关性的HEVC帧内编码方法,主要包括如下步骤:The specific embodiment of the present invention provides a HEVC intra-frame encoding method based on spatial correlation, which mainly includes the following steps:

S11、根据当前编码单元的深度和大小,选择在所述当前编码单元的空间相邻并且具有同样大小的相邻编码单元,并求取所述相邻编码单元的深度范围[a0,a1];S11. According to the depth and size of the current coding unit, select adjacent coding units that are spatially adjacent to the current coding unit and have the same size, and calculate the depth range [a 0 , a 1 ] of the adjacent coding units ];

S12、根据所述当前编码单元的复杂度与所述相邻编码单元的复杂度之间的关系以及所述当前编码单元的所在位置,确定所述当前编码单元的深度范围;S12. Determine the depth range of the current coding unit according to the relationship between the complexity of the current coding unit and the complexity of the adjacent coding units and the location of the current coding unit;

S13、根据当前编码单元的深度范围对当前编码单元进行编码,并根据预测代价选择代价最小的深度作为当前编码单元的深度,结束当前编码单元的编码并转入下一个编码单元。S13. Encode the current coding unit according to the depth range of the current coding unit, and select the depth with the lowest cost according to the prediction cost as the depth of the current coding unit, end the coding of the current coding unit and transfer to the next coding unit.

本发明所提供的一种基于空间相关性的HEVC帧内编码方法,视频序列中每帧图像的帧内编码过程是按编码树单元(Coding Tree Unit,CTU)处理的,而编码树单元通过深度优先的递归方式遍历该编码树单元中所有的编码单元(Coding Unit,CU),本发明根据视频序列空间相关性,采用递归方式准确确定编码单元的深度范围,在基本不引起编码后视频质量下降的前提下减少遍历编码树单元搜索的范围,有效地降低了帧内编码过程的复杂度。使用本发明提供的技术方案通过空间相邻编码单元的编码信息预测当前编码单元编码的深度,在为编码单元构建更有效的深度范围,减少执行率失真优化(Rate-distortionOptimization,RDO)的编码单元数目,从而在保证编码性能的前提下,更有效地降低帧内编码过程的复杂度,提高编码速度。In the HEVC intra-frame coding method based on spatial correlation provided by the present invention, the intra-frame coding process of each frame of image in the video sequence is processed by coding tree unit (Coding Tree Unit, CTU), and the coding tree unit is processed by depth The preferred recursive method traverses all the coding units (Coding Unit, CU) in the coding tree unit. According to the spatial correlation of the video sequence, the present invention uses a recursive method to accurately determine the depth range of the coding unit, which basically does not cause the video quality to decline after coding. On the premise of reducing the range of traversing the coding tree unit search, the complexity of the intra coding process is effectively reduced. Using the technical solution provided by the present invention to predict the coded depth of the current coding unit through the coding information of the spatially adjacent coding units, construct a more effective depth range for the coding unit, and reduce the coding units that perform rate-distortion optimization (Rate-distortion Optimization, RDO) Number, so that under the premise of ensuring the coding performance, the complexity of the intra-frame coding process can be more effectively reduced, and the coding speed can be improved.

以下将对本发明所提供的一种基于空间相关性的HEVC帧内编码方法进行详细说明。A spatial correlation-based HEVC intra-frame encoding method provided by the present invention will be described in detail below.

请参阅图1,为本发明一实施方式中基于空间相关性的HEVC帧内编码方法流程图。Please refer to FIG. 1 , which is a flowchart of an HEVC intra-frame encoding method based on spatial correlation in an embodiment of the present invention.

在步骤S11中,根据当前编码单元的深度和大小,选择在所述当前编码单元的空间相邻并且具有同样大小的相邻编码单元,并求取所述相邻编码单元的深度范围[a0,a1]。In step S11, according to the depth and size of the current coding unit, select adjacent coding units that are spatially adjacent to the current coding unit and have the same size, and calculate the depth range [a 0 , a 1 ].

在本实施方式中,记a0表示所述当前编码单元的空间相邻并且具有同样大小的相邻编码单元CU深度范围并集的下限,a1表示空间相邻并且具有同样大小的相邻编码单元CU深度范围并集的上限。In this embodiment, denoted a 0 represents the lower limit of the depth range union of adjacent coding units CU that are spatially adjacent to the current coding unit and have the same size, and a 1 represents adjacent coding units that are spatially adjacent and have the same size The upper bound of the union of unit CU depth ranges.

在本实施方式中,编码单元(Coding Unit,CU)是编码的基本单元,类似于新一代视频编码标准H.264/AVC中宏块的概念,它是采用四叉树结构递归分割的编码树单元(Coding Tree Unit,CTU)的叶子节点。在序列参数集(Sequence Parameter Set,SPS)中可以规定编码树单元CTU的最大编码单元(Largest Coding Unit,LCU)尺寸和最大的分割深度。In this embodiment, the coding unit (Coding Unit, CU) is the basic unit of coding, similar to the concept of macroblock in the new generation video coding standard H.264/AVC, it is a coding tree recursively divided by quadtree structure The leaf node of the unit (Coding Tree Unit, CTU). The largest coding unit (Largest Coding Unit, LCU) size and the largest split depth of the coding tree unit CTU can be specified in the sequence parameter set (Sequence Parameter Set, SPS).

在本实施方式中,编码树单元CTU利用分割标识确定编码单元CU是否需要继续分割,当需要分割时编码单元CU可以分成四个大小相同的下一级CU。预测单元PU(PredictionUnit)是预测的基本单元,它决定编码单元CU采用哪种分割类型进行预测,其根节点在编码单元CU层。帧内预测模式的分割类型有不分割和四等分两种类型,只有当编码单元CU递归分割达到最小尺寸时四等分的分割模式才执行。变换单元TU(Transform Unit)是残差变换的基本单元,根节点也在编码单元CU层。变换单元TU的处理也采用四叉树结构,其四叉树称为残差四叉树(Residual Quadtree,RQT)。在序列参数集SPS中可以规定残差四叉树RQT的最大变换块(Transform Block,TB)尺寸和最大的分割深度。变换块TB基本上都采用离散余弦变换(Discrete Cosine Transform,DCT),但是如果变换块TB大小为4×4且是帧内预测时选择离散正弦变换(Discrete Sine Transform,DST)。In this embodiment, the coding tree unit CTU uses the split flag to determine whether the coding unit CU needs to be further split. When splitting is required, the coding unit CU can be divided into four lower-level CUs of the same size. The prediction unit PU (PredictionUnit) is the basic unit of prediction, which determines which partition type the coding unit CU adopts for prediction, and its root node is at the coding unit CU layer. There are two types of division in the intra prediction mode: non-division and quartering, and the quartering mode is executed only when the recursive division of the coding unit CU reaches the minimum size. The transformation unit TU (Transform Unit) is the basic unit of residual transformation, and the root node is also at the coding unit CU layer. The processing of the transform unit TU also adopts a quadtree structure, and its quadtree is called a residual quadtree (RQT). In the sequence parameter set SPS, the maximum transform block (Transform Block, TB) size and the maximum segmentation depth of the residual quadtree RQT can be specified. The transform block TB basically adopts discrete cosine transform (Discrete Cosine Transform, DCT), but if the transform block TB has a size of 4×4 and intra-frame prediction, discrete sine transform (Discrete Sine Transform, DST) is selected.

在步骤S12中,根据所述当前编码单元的复杂度与所述相邻编码单元的复杂度之间的关系以及所述当前编码单元的所在位置,确定所述当前编码单元的深度范围。In step S12, the depth range of the current coding unit is determined according to the relationship between the complexity of the current coding unit and the complexity of the adjacent coding units and the location of the current coding unit.

在本实施方式中,所述根据所述当前编码单元的复杂度与所述相邻编码单元的复杂度之间的关系以及所述当前编码单元的所在位置,确定所述当前编码单元的深度范围的步骤具体包括:In this embodiment, the depth range of the current coding unit is determined according to the relationship between the complexity of the current coding unit and the complexity of the adjacent coding units and the location of the current coding unit The steps specifically include:

若所述当前编码单元属于最上方或者最左方边缘的编码单元,则确定所述当前编码单元原始的深度范围为[0,3];If the current coding unit belongs to the topmost or leftmost coding unit, determine that the original depth range of the current coding unit is [0, 3];

或者,若所述当前编码单元的复杂度大于所述相邻编码单元的复杂度的最大值,则确定所述当前编码单元的深度范围为[a0,min(a1+N,3)],N∈[0,3];本实施例中N设置为1;Or, if the complexity of the current coding unit is greater than the maximum value of the complexity of the adjacent coding unit, determine that the depth range of the current coding unit is [a 0 , min(a 1 +N, 3)] , N∈[0,3]; N is set to 1 in this embodiment;

或者,若所述当前编码单元的复杂度小于所述相邻编码单元的复杂度的最小值,则确定所述当前编码单元的深度范围为[max(0,a0-N),a1],N∈[0,3];本实施例中N设置为1;;Or, if the complexity of the current coding unit is less than the minimum value of the complexity of the adjacent coding units, determine that the depth range of the current coding unit is [max(0, a 0 -N), a 1 ] , N∈[0,3]; N is set to 1 in this embodiment;

或者,若所述当前编码单元的复杂度处于所述相邻编码单元的复杂度之间,则确定所述当前编码单元的深度范围为[a0,a1]。Or, if the complexity of the current coding unit is between the complexities of the adjacent coding units, determine that the depth range of the current coding unit is [a 0 , a 1 ].

在步骤S13中,根据当前编码单元的深度范围对当前编码单元进行编码,并根据预测代价选择代价最小的深度作为当前编码单元的深度,结束当前编码单元的编码并转入下一个编码单元。In step S13, encode the current coding unit according to the depth range of the current coding unit, and select the depth with the lowest cost as the depth of the current coding unit according to the prediction cost, end the coding of the current coding unit and transfer to the next coding unit.

在本实施方式中,步骤S13具体还包括步骤S131-S138,如图2所示。In this embodiment, step S13 specifically includes steps S131-S138, as shown in FIG. 2 .

请参阅图2,为本发明一实施方式中图1所示的步骤S13的详细方法流程图。Please refer to FIG. 2 , which is a detailed method flowchart of step S13 shown in FIG. 1 in an embodiment of the present invention.

在步骤S131中,判断所述当前编码单元的深度是否在已经确定的所述当前编码单元的深度范围之内。In step S131, it is judged whether the depth of the current coding unit is within the determined depth range of the current coding unit.

若所述当前编码单元的深度不在已经确定的所述当前编码单元的深度范围之内,则在步骤S132中,判断所述当前编码单元的深度是否大于或者等于已经确定的所述当前编码单元的深度范围的上限。If the depth of the current coding unit is not within the determined depth range of the current coding unit, then in step S132, it is judged whether the depth of the current coding unit is greater than or equal to the determined depth of the current coding unit The upper limit of the depth range.

在本实施方式中,若所述当前编码单元的深度在已经确定的所述当前编码单元的深度范围之内,则在步骤S136中,执行帧内预测过程,并计算最佳预测模式对应代价,选择代价最小的模式为最佳模式。In this embodiment, if the depth of the current coding unit is within the determined depth range of the current coding unit, then in step S136, perform an intra prediction process, and calculate the cost corresponding to the best prediction mode, Choose the mode with the least cost as the best mode.

在本实施方式中,帧内预测时,编码树单元CTU根据四叉树递归分割,每个叶子节点构成编码单元CU,编码单元CU包含一个亮度编码块(Coding Block,CB),两个色度编码块CB,以及对应的句法元素。在高效视频编码标准HEVC中,编码树单元CTU会根据序列参数集SPS中规定的最大编码单元尺寸和最大的递归深度递归分割。为了详细说明递归分割的过程,假设序列参数集SPS中规定的最大编码单元尺寸为32×32和最大的递归深度为3,那么对应的编码树单元CTU的递归分割示意图如图3所示。In this embodiment, during intra-frame prediction, the coding tree unit CTU is recursively divided according to the quadtree, and each leaf node constitutes a coding unit CU. The coding unit CU includes a luminance coding block (Coding Block, CB), and two chroma A coding block CB, and corresponding syntax elements. In the high-efficiency video coding standard HEVC, the coding tree unit CTU will be recursively divided according to the maximum coding unit size and the maximum recursion depth specified in the sequence parameter set SPS. In order to describe the process of recursive partitioning in detail, assuming that the maximum coding unit size specified in the sequence parameter set SPS is 32×32 and the maximum recursion depth is 3, then the corresponding recursive partitioning diagram of the coding tree unit CTU is shown in Figure 3.

请参阅图3,为本发明一实施方式中编码树单元CTU的递归分割示意图。在图3中,数字1-25表示处理的顺序,首先执行1,即求取32×32块最佳的预测模式对应的代价,并且使用图像失真和编码残差等数据所占的比特两个参数综合衡量编码单元CU对应的代价,具体的代价函数如公式1所示。由于编码树单元CTU采用深度优先的搜索方式,所以,1执行完后执行2,即求编号为2的编码单元CU最佳的预测模式对应的代价。然采用同样的方式处理编号为3的编码单元CU。由于编号为3的编码单元CU已经达到序列参数集SPS中规定的最大深度,所以,编号为3的编码单元CU处理完后不需要继续分割,而是依次处理同一层编号为4、5、6的编码单元CU。上面所述的是编码树单元CTU的分割过程。为了判断最终实际的编码过程中,编号为2的编码单元CU是采用16×16块编码还是采用四个8×8块编码,需要执行编号为7的操作,即比较编号3-6的编码单元CU对应的代价之和与编号为2的编码单元CU的代价,采用最小代价对应的方式编码编号为2的编码单元CU,这个是编码单元的修剪过程。依次执行编码单元CU的分割和修剪过程,直到整个编码树单元CTU处理完成。上面所述过程是选择不同编码单元CU组合中对应代价和最小的一种组合作为最佳的编码方式编码编码树单元CTU,这个过程称为率失真优化(Rate Distortion Optimization,RDO)。很明显,率失真优化RDO过程通过遍历所有的编码单元CU组合选择编码树单元CTU最佳的编码方式,这种方式虽然编码效率很高,但是编码复杂度也是最高的,并且当最大的编码单元CU尺寸一定时,编码复杂度随着序列参数集中设置的最大编码深度增大而迅速增大。Please refer to FIG. 3 , which is a schematic diagram of recursive partitioning of a coding tree unit CTU in an embodiment of the present invention. In Figure 3, the numbers 1-25 indicate the order of processing, first execute 1, that is, find the cost corresponding to the best prediction mode for a 32×32 block, and use two bits occupied by data such as image distortion and coding residual The parameters comprehensively measure the cost corresponding to the coding unit CU, and the specific cost function is shown in Equation 1. Since the coding tree unit CTU adopts a depth-first search method, 2 is executed after 1 is executed, that is, the cost corresponding to the best prediction mode of the coding unit CU numbered 2 is calculated. However, the coding unit CU numbered 3 is processed in the same way. Since the coding unit CU numbered 3 has reached the maximum depth specified in the sequence parameter set SPS, the coding unit CU numbered 3 does not need to be divided after processing, but the same layer numbers 4, 5, and 6 are processed sequentially. The coding unit CU of . The above is the division process of the coding tree unit CTU. In order to judge whether the coding unit CU numbered 2 uses 16×16 block coding or four 8×8 block coding in the final actual coding process, it is necessary to perform the operation numbered 7, that is, compare the coding units numbered 3-6 The sum of the cost corresponding to the CU and the cost of the coding unit CU numbered 2 is used to encode the coding unit CU numbered 2 in a manner corresponding to the minimum cost. This is the pruning process of the coding unit. The segmentation and pruning process of the coding unit CU is performed sequentially until the processing of the entire coding tree unit CTU is completed. The process described above is to select a combination with the smallest corresponding cost among different CU combinations as the best coding mode coding tree unit CTU, and this process is called Rate Distortion Optimization (RDO). Obviously, the rate-distortion optimization RDO process selects the best coding method for the coding tree unit CTU by traversing all the coding unit CU combinations. Although this method has high coding efficiency, the coding complexity is also the highest, and when the largest coding unit When the CU size is constant, the coding complexity increases rapidly with the increase of the maximum coding depth set in the sequence parameter set.

RDCost=D+λ·R (1)RDCost=D+λ·R (1)

其中,RDCost表示当前块编码完成后图像失真和编码所需比特综合的代价,D表示重建像素与原始像素之间的差异,R表示编码当前块信息所需的比特,λ表示拉格朗日乘子。Among them, RDCost represents the cost of image distortion and bit synthesis required for encoding after the current block is encoded, D represents the difference between the reconstructed pixel and the original pixel, R represents the bit required to encode the current block information, λ represents the Lagrangian multiplication son.

从上面的分析可以知道,高效视频编码标准HEVC根据序列参数集SPS中设置的参数范围遍历所有编码树单元CTU中的叶子节点寻找最优的编码单元CU组合。但是最终选择的编码单元CU跟视频内容相关,内容越复杂,选择的编码单元CU越小,内容越平坦,选择的编码单元CU越大。因此,如果不考虑视频内容的特性,对所有的编码单元CU都采用相同的编码深度范围,就会产生很大的编码冗余。为了更详细地阐述这个问题,我们举例说明。图4是编码树单元CTU最终选择的某个四叉树分割结构。From the above analysis, it can be seen that the high-efficiency video coding standard HEVC traverses all the leaf nodes in the coding tree unit CTU according to the parameter range set in the sequence parameter set SPS to find the optimal coding unit CU combination. However, the final selected coding unit CU is related to the video content. The more complicated the content, the smaller the selected coding unit CU, and the flatter the content, the larger the selected coding unit CU. Therefore, if the same coded depth range is used for all coding units CU without considering the characteristics of the video content, a large coding redundancy will be generated. To illustrate this issue in more detail, we illustrate with an example. Fig. 4 is a quadtree partition structure finally selected by the coding tree unit CTU.

如图4所示,当序列参数集SPS中设置的最大编码单元(Largest Coding Unit,LCU)为64×64,最大分割深度为4时,可能的编码单元CU大小为64×64,32×32,16×16,8×8,对应的编码深度分别为0,1,2,3。在编码过程中,编码树单元CTU通过递归分割的方式遍历所有的编码单元CU深度,从而选择最佳的编码单元CU深度编码编码树单元CTU。如果编码树单元CTU采用固定深度范围的方式,那么编码树单元CTU会从深度0逐步递归分割到深度3。由于最终选择的编码单元CU深度跟视频内容相关,所以最终选择的编码单元CU深度并不一定全部包含深度0,深度1,深度2,深度3。在图3中,最终选定的编码单元CU深度并不包含深度0,只有深度1,深度2,深度3,那么当前编码树单元CTU的深度范围是[1,3]。而在实际的编码过程中,高效视频编码标准HEVC会从深度0开始,逐步递归分割到深度3。因此深度0相关的所有操作对当前编码树单元CTU编码没有实际意义,这就是编码过程中存在的冗余。在编码的过程中,若是可以提前准确预测当前编码树单元CTU的深度范围,就可以直接跳过不需要的深度,从而在编码视频质量不显著下降的前提下,大大降低编码复杂度。As shown in Figure 4, when the largest coding unit (Largest Coding Unit, LCU) set in the sequence parameter set SPS is 64×64, and the maximum segmentation depth is 4, the possible coding unit CU sizes are 64×64, 32×32 , 16×16, 8×8, and the corresponding coding depths are 0, 1, 2, 3 respectively. In the encoding process, the coding tree unit CTU traverses all the depths of the coding unit CU through recursive partitioning, so as to select the best coding unit CU depth to code the coding tree unit CTU. If the coding tree unit CTU uses a fixed depth range, the coding tree unit CTU will be recursively split from depth 0 to depth 3 step by step. Since the depth of the finally selected coding unit CU is related to the video content, the depth of the finally selected coding unit CU may not all include depth 0, depth 1, depth 2, and depth 3. In Figure 3, the depth of the finally selected coding unit CU does not include depth 0, but only depth 1, depth 2, and depth 3, so the depth range of the current coding tree unit CTU is [1,3]. In the actual encoding process, the high-efficiency video coding standard HEVC will start from depth 0 and recursively split to depth 3 step by step. Therefore, all operations related to depth 0 have no practical significance for the current coding tree unit CTU coding, which is the redundancy in the coding process. During the encoding process, if the depth range of the current coding tree unit CTU can be accurately predicted in advance, unnecessary depths can be directly skipped, thereby greatly reducing the encoding complexity without significantly reducing the quality of the encoded video.

请继续参阅图2,在本实施方式中,若所述当前编码单元的深度大于或者等于已经确定的所述当前编码单元的深度范围的上限,则在步骤S133中,结束所述当前编码单元的分割过程。Please continue to refer to FIG. 2. In this embodiment, if the depth of the current coding unit is greater than or equal to the determined upper limit of the depth range of the current coding unit, then in step S133, end the coding of the current coding unit. Segmentation process.

在本实施方式中,若所述当前编码单元的深度小于已经确定的所述当前编码单元的深度范围的上限,则在步骤S137中,将所述当前编码单元的深度加1。在本实施方式中,在将所述当前编码单元的深度加1之后,继续执行图1所示的步骤S11。In this embodiment, if the depth of the current coding unit is smaller than the determined upper limit of the depth range of the current coding unit, then in step S137, add 1 to the depth of the current coding unit. In this embodiment, after adding 1 to the depth of the current coding unit, continue to execute step S11 shown in FIG. 1 .

在步骤S134中,判断所述当前编码单元是否是修剪后编码树单元中待搜索的最后一个编码单元。In step S134, it is judged whether the current coding unit is the last coding unit to be searched in the pruned coding tree unit.

若所述当前编码单元是修剪后编码树单元中待搜索的最后一个编码单元,则在步骤S135中,结束当前编码树单元的递归分割过程,完成当前编码树单元对应的编码单元的编码。If the current coding unit is the last coding unit to be searched in the pruned coding tree unit, then in step S135, the recursive division process of the current coding tree unit is ended, and the coding of the coding unit corresponding to the current coding tree unit is completed.

在本实施方式中,若所述当前编码单元不是修剪后编码树单元中待搜索的最后一个编码单元,则转入下一个编码单元,并将该下一个编码单元确定为当前编码单元,如步骤S138所示,然后接下来的步骤就从图1所示的步骤S11开始重复执行,在此就不再重复描述。In this embodiment, if the current coding unit is not the last coding unit to be searched in the pruned coding tree unit, turn to the next coding unit and determine the next coding unit as the current coding unit, as in step As shown in S138, the following steps are then repeatedly executed from step S11 shown in FIG. 1 , and will not be described again here.

本发明所提供的一种基于空间相关性的HEVC帧内编码方法,视频序列中每帧图像的帧内编码过程是按编码树单元(Coding Tree Unit,CTU)处理的,而编码树单元通过深度优先的递归方式遍历该编码树单元中所有的编码单元(Coding Unit,CU),本发明根据视频序列空间相关性,采用递归方式准确确定编码单元的深度范围,在基本不引起编码后视频质量下降的前提下减少遍历编码树单元搜索的范围,有效地降低了帧内编码过程的复杂度。使用本发明提供的技术方案通过空间相邻编码单元的编码信息预测当前编码单元编码的深度,在为编码单元构建更有效的深度范围,减少执行率失真优化(Rate-distortionOptimization,RDO)的编码单元数目,从而在保证编码性能的前提下,更有效地降低帧内编码过程的复杂度,提高编码速度。In the HEVC intra-frame coding method based on spatial correlation provided by the present invention, the intra-frame coding process of each frame of image in the video sequence is processed by coding tree unit (Coding Tree Unit, CTU), and the coding tree unit is processed by depth The preferred recursive method traverses all the coding units (Coding Unit, CU) in the coding tree unit. According to the spatial correlation of the video sequence, the present invention uses a recursive method to accurately determine the depth range of the coding unit, which basically does not cause the video quality to decline after coding. On the premise of reducing the range of traversing the coding tree unit search, the complexity of the intra coding process is effectively reduced. Using the technical solution provided by the present invention to predict the coded depth of the current coding unit through the coding information of the spatially adjacent coding units, construct a more effective depth range for the coding unit, and reduce the coding units that perform rate-distortion optimization (Rate-distortion Optimization, RDO) Number, so that under the premise of ensuring the coding performance, the complexity of the intra-frame coding process can be more effectively reduced, and the coding speed can be improved.

本发明具体实施方式还提供一种基于空间相关性的HEVC帧内编码系统10,主要包括:The specific embodiment of the present invention also provides a HEVC intra coding system 10 based on spatial correlation, which mainly includes:

选择模块101,用于根据当前编码单元的深度和大小,选择在所述当前编码单元的空间相邻并且具有同样大小的相邻编码单元,并求取所述相邻编码单元的深度范围[a0,a1];The selection module 101 is configured to select, according to the depth and size of the current coding unit, adjacent coding units that are spatially adjacent to the current coding unit and have the same size, and calculate the depth range of the adjacent coding units [a 0 , a 1 ];

范围确定模块102,用于根据所述当前编码单元的复杂度与所述相邻编码单元的复杂度之间的关系以及所述当前编码单元的所在位置,确定所述当前编码单元的深度范围;A range determination module 102, configured to determine the depth range of the current coding unit according to the relationship between the complexity of the current coding unit and the complexity of the adjacent coding units and the location of the current coding unit;

编码预测模块103,用于根据当前编码单元的深度范围对当前编码单元进行编码,并根据预测代价选择代价最小的深度作为当前编码单元的深度,结束当前编码单元的编码并转入下一个编码单元。The encoding prediction module 103 is configured to encode the current coding unit according to the depth range of the current coding unit, and select the depth with the lowest cost according to the prediction cost as the depth of the current coding unit, end the coding of the current coding unit and transfer to the next coding unit .

本发明所提供的一种基于空间相关性的HEVC帧内编码系统10,视频序列中每帧图像的帧内编码过程是按编码树单元(Coding Tree Unit,CTU)处理的,而编码树单元通过深度优先的递归方式遍历该编码树单元中所有的编码单元(Coding Unit,CU),本发明根据视频序列空间相关性,采用递归方式准确确定编码单元的深度范围,在基本不引起编码后视频质量下降的前提下减少遍历编码树单元搜索的范围,有效地降低了帧内编码过程的复杂度。使用本发明提供的技术方案通过空间相邻编码单元的编码信息预测当前编码单元编码的深度,在为编码单元构建更有效的深度范围,减少执行率失真优化(Rate-distortionOptimization,RDO)的编码单元数目,从而在保证编码性能的前提下,更有效地降低帧内编码过程的复杂度,提高编码速度。In the HEVC intra-frame encoding system 10 based on spatial correlation provided by the present invention, the intra-frame encoding process of each frame of image in the video sequence is processed according to the coding tree unit (Coding Tree Unit, CTU), and the coding tree unit is passed through The depth-first recursive method traverses all the coding units (Coding Unit, CU) in the coding tree unit. According to the spatial correlation of the video sequence, the present invention uses the recursive method to accurately determine the depth range of the coding unit, which basically does not affect the video quality after coding. On the premise of descending, the range of traversing the coding tree unit search is reduced, which effectively reduces the complexity of the intra coding process. Using the technical solution provided by the present invention to predict the coded depth of the current coding unit through the coding information of the spatially adjacent coding units, construct a more effective depth range for the coding unit, and reduce the coding units that perform rate-distortion optimization (Rate-distortion Optimization, RDO) Number, so that under the premise of ensuring the coding performance, the complexity of the intra-frame coding process can be more effectively reduced, and the coding speed can be improved.

以下将对本发明所提供的一种基于空间相关性的HEVC帧内编码系统10进行详细说明。A spatial correlation-based HEVC intra-coding system 10 provided by the present invention will be described in detail below.

请参阅图5,所示为本发明一实施方式中基于空间相关性的HEVC帧内编码系统10的结构示意图。在本实施方式中,基于空间相关性的HEVC帧内编码系统10包括选择模块101、范围确定模块102以及编码预测模块103。Please refer to FIG. 5 , which is a schematic structural diagram of an HEVC intra-coding system 10 based on spatial correlation in an embodiment of the present invention. In this embodiment, the HEVC intra coding system 10 based on spatial correlation includes a selection module 101 , a range determination module 102 and a coding prediction module 103 .

选择模块101,用于根据当前编码单元的深度和大小,选择在所述当前编码单元的空间相邻并且具有同样大小的相邻编码单元,并求取所述相邻编码单元的深度范围[a0,a1]。The selection module 101 is configured to select, according to the depth and size of the current coding unit, adjacent coding units that are spatially adjacent to the current coding unit and have the same size, and calculate the depth range of the adjacent coding units [a 0 ,a 1 ].

在本实施方式中,记a0表示所述当前编码单元的空间相邻并且具有同样大小的相邻编码单元CU深度范围并集的下限,a1表示空间相邻并且具有同样大小的相邻编码单元CU深度范围并集的上限。In this embodiment, denoted a 0 represents the lower limit of the depth range union of adjacent coding units CU that are spatially adjacent to the current coding unit and have the same size, and a 1 represents adjacent coding units that are spatially adjacent and have the same size The upper bound of the union of unit CU depth ranges.

在本实施方式中,编码单元(Coding Unit,CU)是编码的基本单元,类似于新一代视频编码标准H.264/AVC中宏块的概念,它是采用四叉树结构递归分割的编码树单元(Coding Tree Unit,CTU)的叶子节点。在序列参数集(Sequence Parameter Set,SPS)中可以规定编码树单元CTU的最大编码单元(Largest Coding Unit,LCU)尺寸和最大的分割深度。In this embodiment, the coding unit (Coding Unit, CU) is the basic unit of coding, similar to the concept of macroblock in the new generation video coding standard H.264/AVC, it is a coding tree recursively divided by quadtree structure The leaf node of the unit (Coding Tree Unit, CTU). The largest coding unit (Largest Coding Unit, LCU) size and the largest split depth of the coding tree unit CTU can be specified in the sequence parameter set (Sequence Parameter Set, SPS).

在本实施方式中,编码树单元CTU利用分割标识确定编码单元CU是否需要继续分割,当需要分割时编码单元CU可以分成四个大小相同的下一级CU。预测单元PU(PredictionUnit)是预测的基本单元,它决定编码单元CU采用哪种分割类型进行预测,其根节点在编码单元CU层。帧内预测模式的分割类型有不分割和四等分两种类型,只有当编码单元CU递归分割达到最小尺寸时四等分的分割模式才执行。变换单元TU(Transform Unit)是残差变换的基本单元,根节点也在编码单元CU层。变换单元TU的处理也采用四叉树结构,其四叉树称为残差四叉树(Residual Quadtree,RQT)。在序列参数集SPS中可以规定残差四叉树RQT的最大变换块(Transform Block,TB)尺寸和最大的分割深度。变换块TB基本上都采用离散余弦变换(Discrete Cosine Transform,DCT),但是如果变换块TB大小为4×4且是帧内预测时选择离散正弦变换(Discrete Sine Transform,DST)。In this embodiment, the coding tree unit CTU uses the split flag to determine whether the coding unit CU needs to be further split. When splitting is required, the coding unit CU can be divided into four lower-level CUs of the same size. The prediction unit PU (PredictionUnit) is the basic unit of prediction, which determines which partition type the coding unit CU adopts for prediction, and its root node is at the coding unit CU layer. There are two types of division in the intra prediction mode: non-division and quartering, and the quartering mode is executed only when the recursive division of the coding unit CU reaches the minimum size. The transformation unit TU (Transform Unit) is the basic unit of residual transformation, and the root node is also at the coding unit CU layer. The processing of the transform unit TU also adopts a quadtree structure, and its quadtree is called a residual quadtree (RQT). In the sequence parameter set SPS, the maximum transform block (Transform Block, TB) size and the maximum segmentation depth of the residual quadtree RQT can be specified. The transform block TB basically adopts discrete cosine transform (Discrete Cosine Transform, DCT), but if the transform block TB has a size of 4×4 and intra-frame prediction, discrete sine transform (Discrete Sine Transform, DST) is selected.

范围确定模块102,用于根据所述当前编码单元的复杂度与所述相邻编码单元的复杂度之间的关系以及所述当前编码单元的所在位置,确定所述当前编码单元的深度范围。The range determination module 102 is configured to determine the depth range of the current coding unit according to the relationship between the complexity of the current coding unit and the complexity of the adjacent coding units and the location of the current coding unit.

在本实施方式中,范围确定模块102具体用于:In this embodiment, the range determination module 102 is specifically used for:

若所述当前编码单元属于最上方或者最左方边缘的编码单元,则确定所述当前编码单元原始的深度范围为[0,3];If the current coding unit belongs to the topmost or leftmost coding unit, determine that the original depth range of the current coding unit is [0, 3];

或者,若所述当前编码单元的复杂度大于所述相邻编码单元的复杂度的最大值,则确定所述当前编码单元的深度范围为[a0,min(a1+N,3)],N∈[0,3];Or, if the complexity of the current coding unit is greater than the maximum value of the complexity of the adjacent coding unit, determine that the depth range of the current coding unit is [a 0 , min(a 1 +N, 3)] , N∈[0,3];

或者,若所述当前编码单元的复杂度小于所述相邻编码单元的复杂度的最小值,则确定所述当前编码单元的深度范围为[max(0,a0-N),a1],N∈[0,3];Or, if the complexity of the current coding unit is less than the minimum value of the complexity of the adjacent coding units, determine that the depth range of the current coding unit is [max(0, a 0 -N), a 1 ] , N∈[0,3];

或者,若所述当前编码单元的复杂度处于所述相邻编码单元的复杂度之间,则确定所述当前编码单元的深度范围为[a0,a1]。Or, if the complexity of the current coding unit is between the complexities of the adjacent coding units, determine that the depth range of the current coding unit is [a 0 , a 1 ].

编码预测模块103,用于根据当前编码单元的深度范围对当前编码单元进行编码,并根据预测代价选择代价最小的深度作为当前编码单元的深度,结束当前编码单元的编码并转入下一个编码单元。The encoding prediction module 103 is configured to encode the current coding unit according to the depth range of the current coding unit, and select the depth with the lowest cost according to the prediction cost as the depth of the current coding unit, end the coding of the current coding unit and transfer to the next coding unit .

在本实施方式中,编码预测模块103具体包括第一判断子模块1031、第二判断子模块1032、结束分割子模块1033、第三判断子模块1034、执行子模块1035以及深度增加子模块1036,如图6所示。In this embodiment, the encoding prediction module 103 specifically includes a first judgment submodule 1031, a second judgment submodule 1032, an end segmentation submodule 1033, a third judgment submodule 1034, an execution submodule 1035, and a depth increase submodule 1036, As shown in Figure 6.

请参阅图6,为本发明一实施方式中图5所示的编码预测模块103的内部结构示意图。Please refer to FIG. 6 , which is a schematic diagram of the internal structure of the coding prediction module 103 shown in FIG. 5 in an embodiment of the present invention.

第一判断子模块1031,用于判断所述当前编码单元的深度是否在已经确定的所述当前编码单元的深度范围之内。The first judging sub-module 1031 is configured to judge whether the depth of the current coding unit is within the determined depth range of the current coding unit.

第二判断子模块1032,用于若所述当前编码单元的深度不在已经确定的所述当前编码单元的深度范围之内,则判断所述当前编码单元的深度是否大于或者等于已经确定的所述当前编码单元的深度范围的上限。The second judging submodule 1032 is configured to judge whether the depth of the current coding unit is greater than or equal to the determined depth range of the current coding unit if the depth of the current coding unit is not within the determined depth range of the current coding unit. The upper bound of the depth range for the current coding unit.

执行子模块1035,用于若所述当前编码单元的深度在已经确定的所述当前编码单元的深度范围之内,则执行帧内预测过程,并计算最佳预测模式对应代价,选择代价最小的模式为最佳模式。在本实施方式中,具体的执行帧内预测过程以及计算最佳预测模式对应代价的方法步骤如上述的步骤S136所述,在此不再重复叙述,请参阅前述的步骤S136以及对应的图2与图3。Executing sub-module 1035, configured to perform an intra-frame prediction process if the depth of the current coding unit is within the determined depth range of the current coding unit, and calculate the cost corresponding to the best prediction mode, and select the one with the smallest cost mode is the best mode. In this embodiment, the specific method steps for performing the intra prediction process and calculating the cost corresponding to the best prediction mode are as described in the above-mentioned step S136, and will not be repeated here. Please refer to the above-mentioned step S136 and the corresponding FIG. 2 with Figure 3.

结束分割子模块1033,用于若所述当前编码单元的深度大于或者等于已经确定的所述当前编码单元的深度范围的上限,则结束所述当前编码单元的分割过程。End splitting sub-module 1033, configured to end the splitting process of the current coding unit if the depth of the current coding unit is greater than or equal to the determined upper limit of the depth range of the current coding unit.

深度增加子模块1036,用于若所述当前编码单元的深度小于已经确定的所述当前编码单元的深度范围的上限,则将所述当前编码单元的深度加1。在本实施方式中,在将所述当前编码单元的深度加1之后,选择模块101,还用于继续根据当前编码单元的深度和大小,选择在所述当前编码单元的空间相邻并且具有同样大小的相邻编码单元,并求取所述相邻编码单元的深度范围[a0,a1]。The depth increasing sub-module 1036 is configured to add 1 to the depth of the current coding unit if the depth of the current coding unit is smaller than the determined upper limit of the depth range of the current coding unit. In this embodiment, after adding 1 to the depth of the current coding unit, the selection module 101 is further configured to continue to select the spatially adjacent current coding unit and have the same size of adjacent coding units, and obtain the depth range [a 0 , a 1 ] of the adjacent coding units.

第三判断子模块1034,用于判断所述当前编码单元是否是修剪后编码树单元中待搜索的最后一个编码单元。The third judging sub-module 1034 is configured to judge whether the current coding unit is the last coding unit to be searched in the pruned coding tree units.

其中,所述结束分割子模块1033,还用于若所述当前编码单元是修剪后编码树单元中待搜索的最后一个编码单元,则结束当前编码树单元的递归分割过程,完成当前编码树单元对应的编码单元的编码。Wherein, the end segmentation sub-module 1033 is also used to end the recursive segmentation process of the current coding tree unit and complete the current coding tree unit if the current coding unit is the last coding unit to be searched in the pruned coding tree unit The encoding of the corresponding coding unit.

在本实施方式中,选择模块101,还用于若所述当前编码单元不是修剪后编码树单元中待搜索的最后一个编码单元,则转入下一个编码单元,并将该下一个编码单元确定为当前编码单元。In this embodiment, the selection module 101 is further configured to switch to the next coding unit and determine the next coding unit if the current coding unit is not the last coding unit to be searched in the pruned coding tree unit is the current code unit.

本发明所提供的一种基于空间相关性的HEVC帧内编码系统10,视频序列中每帧图像的帧内编码过程是按编码树单元(Coding Tree Unit,CTU)处理的,而编码树单元通过深度优先的递归方式遍历该编码树单元中所有的编码单元(Coding Unit,CU),本发明根据视频序列空间相关性,采用递归方式准确确定编码单元的深度范围,在基本不引起编码后视频质量下降的前提下减少遍历编码树单元搜索的范围,有效地降低了帧内编码过程的复杂度。使用本发明提供的技术方案通过空间相邻编码单元的编码信息预测当前编码单元编码的深度,在为编码单元构建更有效的深度范围,减少执行率失真优化(Rate-distortionOptimization,RDO)的编码单元数目,从而在保证编码性能的前提下,更有效地降低帧内编码过程的复杂度,提高编码速度。In the HEVC intra-frame encoding system 10 based on spatial correlation provided by the present invention, the intra-frame encoding process of each frame of image in the video sequence is processed according to the coding tree unit (Coding Tree Unit, CTU), and the coding tree unit is passed through The depth-first recursive method traverses all the coding units (Coding Unit, CU) in the coding tree unit. According to the spatial correlation of the video sequence, the present invention uses the recursive method to accurately determine the depth range of the coding unit, which basically does not affect the video quality after coding. On the premise of descending, the range of traversing the coding tree unit search is reduced, which effectively reduces the complexity of the intra coding process. Using the technical solution provided by the present invention to predict the coded depth of the current coding unit through the coding information of the spatially adjacent coding units, construct a more effective depth range for the coding unit, and reduce the coding units that perform rate-distortion optimization (Rate-distortion Optimization, RDO) Number, so that under the premise of ensuring the coding performance, the complexity of the intra-frame coding process can be more effectively reduced, and the coding speed can be improved.

本发明提供的技术方案相对于现有技术具有提高编码速度的优点,例如,参考文献[4](X.Li,J.An,X.Guo,S.Lei,“Adaptive CU Depth Range,”JCTVC-E090,JCTVC ofISO/IEC and ITU-T,Geneva,Switzerland,Apr.2011.)中提出一个自适应确定编码单元CU深度范围的算法降低编码复杂度。虽然上述参考文献[4]的方法可以在一定程度上去除编码过程中存在的冗余,但是这方法仅仅简单使用空间相关性或时间相关性快速确定编码单元CU的深度范围,却没有考虑到一帧图像中也常常存在编码单元CU与时空相邻编码单元CU相关性不强的情况,这就会造成编码单元CU的深度范围预测不准确,导致不同程度的编码效率降低。Compared with the prior art, the technical solution provided by the present invention has the advantage of improving the encoding speed, for example, reference [4] (X.Li, J.An, X.Guo, S.Lei, "Adaptive CU Depth Range," JCTVC -E090, JCTVC of ISO/IEC and ITU-T, Geneva, Switzerland, Apr.2011.) proposes an algorithm for adaptively determining the depth range of the coding unit CU to reduce coding complexity. Although the above reference [4] method can remove the redundancy existing in the encoding process to a certain extent, this method only simply uses spatial correlation or temporal correlation to quickly determine the depth range of the coding unit CU, but does not take into account the In the frame image, there is often a situation where the CU is not strongly correlated with the adjacent CU in time and space, which will result in inaccurate prediction of the depth range of the CU, resulting in varying degrees of reduction in coding efficiency.

针对现有技术中存在的未能充分降低帧内编码过程复杂度的问题,本发明利用相邻已编码的编码单元CU的深度范围,以及当前编码单元CU的复杂度与相邻已编码的编码单元CU复杂度的关系准确预测当前编码单元CU的深度范围,在保证编码后视频质量基本不下降的前提下,跳过不需要的深度,从而大大降低高效视频编码标准HEVC帧内编码过程的复杂度。需要指出,本发明中编码单元CU的复杂度使用绝对差值和来衡量。To solve the problem in the prior art that the complexity of the intra coding process cannot be sufficiently reduced, the present invention uses the depth range of the adjacent coded coding unit CU, and the complexity of the current coding unit CU and the adjacent coded coding The relationship between unit CU complexity accurately predicts the depth range of the current coding unit CU. Under the premise of ensuring that the video quality after encoding is basically not reduced, unnecessary depths are skipped, thereby greatly reducing the complexity of the high-efficiency video coding standard HEVC intra-frame coding process Spend. It should be pointed out that the complexity of the coding unit CU in the present invention is measured by the sum of absolute differences.

对比实验方案包括原始高效视频编码标准HEVC编码平台方案,参考文献[4]的快速帧内编码方案以及本发明的方法。编码实验结果表明:对于压缩效率上,本发明方法在相同码率下,相对于原始高效视频编码标准HEVC编码平台尖峰信噪比平均下降为0.03dB,可以忽略,对比结果如图7a和图7b所示。The comparative experimental schemes include the original high-efficiency video coding standard HEVC coding platform scheme, the fast intra-frame coding scheme of reference [4] and the method of the present invention. The coding experiment results show that: in terms of compression efficiency, under the same code rate, the peak signal-to-noise ratio of the method of the present invention decreases to an average of 0.03dB compared to the original high-efficiency video coding standard HEVC coding platform, which can be ignored. The comparison results are shown in Figure 7a and Figure 7b shown.

请参阅图7a与图7b,为三种编码方法的对比测试图。具体的三种编码方法包括:本发明方法、原始高效视频编码标准HEVC编码平台和参考文献[4]方法在全帧内高效档次和全帧内主档次两种配置下部分序列率失真性能对比图。Please refer to Fig. 7a and Fig. 7b, which are comparative test charts of the three encoding methods. The specific three coding methods include: the method of the present invention, the HEVC coding platform of the original high-efficiency video coding standard, and the reference [4] method under the two configurations of full intra-frame high-efficiency profile and full-frame main profile. Comparison of partial sequence rate-distortion performance .

在全帧内高效档次配置下帧内编码过程速度提高27.99%到67.08%(平均40.16%),相比于已有方法参考文献[4]复杂度降低21.13%;相比于原始高效视频编码标准HEVC的编码平台,在全帧内主档次配置下帧内编码过程速度提高28.03%到63.89%(平均39.41%),相比于已有方法参考文献[4]复杂度进一步降低20.73%。另外,本发明主要解决编码单元CU固定的深度范围存在大量冗余的问题,可以和其他传统的帧内快速方法结合,进一步降低帧内编码复杂度。The speed of the intra-frame coding process is increased by 27.99% to 67.08% (average 40.16%) under the full intra-frame high-efficiency profile configuration, and the complexity is reduced by 21.13% compared with the existing method reference [4]; compared with the original high-efficiency video coding standard HEVC coding platform, under the full intra-frame main profile configuration, the speed of the intra-frame coding process is increased by 28.03% to 63.89% (average 39.41%), and the complexity is further reduced by 20.73% compared with the existing method reference [4]. In addition, the present invention mainly solves the problem of a large amount of redundancy in the fixed depth range of the coding unit CU, and can be combined with other traditional intra-frame fast methods to further reduce the complexity of intra-frame coding.

在本实施方式中,三种编码方法实验结果展示在下表1中,最终使用平均峰值信噪比增加量BD-PSNR(dB)、平均比特率的增加量BD-BitRate(%)、时间节省Time-Saving(TS)(%)评价提出算法的性能。In this embodiment, the experimental results of the three encoding methods are shown in Table 1 below, and the average peak signal-to-noise ratio increase BD-PSNR (dB), the average bit rate increase BD-BitRate (%), and the time saving Time -Saving(TS)(%) evaluates the performance of the proposed algorithm.

表1Table 1

其中,时间节省TS的定义如以下公式所示:Among them, the definition of time saving TS is shown in the following formula:

其中,THM8.0(QPi)表示当QP=QPi时编码平台HM8.0编码的总时间;Tpropoed(QPi)表示当QP=QPi时提出方法编码的总时间。Among them, T HM8.0 (QP i ) represents the total coding time of coding platform HM8.0 when QP=QP i ; T proposed (QP i ) represents the total time of proposing method coding when QP=QP i .

在本发明实施例中,本发明提供的技术方案,视频序列中每帧图像的帧内编码过程是按编码树单元(Coding Tree Unit,CTU)处理的,而编码树单元通过深度优先的递归方式遍历该编码树单元中所有的编码单元(Coding Unit,CU),本发明根据视频序列空间相关性,采用递归方式准确确定编码单元的深度范围,在基本不引起编码后视频质量下降的前提下减少遍历编码树单元搜索的范围,有效地降低了帧内编码过程的复杂度。使用本发明提供的技术方案通过空间相邻编码单元的编码信息预测当前编码单元编码的深度,在为编码单元构建更有效的深度范围,减少执行率失真优化(Rate-distortion Optimization,RDO)的编码单元数目,从而在保证编码性能的前提下,更有效地降低帧内编码过程的复杂度,提高编码速度。In the embodiment of the present invention, in the technical solution provided by the present invention, the intra-frame coding process of each frame of image in the video sequence is processed according to the coding tree unit (Coding Tree Unit, CTU), and the coding tree unit is processed by depth-first recursive method. By traversing all the coding units (Coding Unit, CU) in the coding tree unit, the present invention accurately determines the depth range of the coding unit in a recursive manner according to the spatial correlation of the video sequence, and reduces the CU without basically causing the degradation of the video quality after coding. Traversing the range of the coding tree unit search effectively reduces the complexity of the intra-frame coding process. Using the technical solution provided by the present invention to predict the coded depth of the current coding unit through the coding information of the spatially adjacent coding units, construct a more effective depth range for the coding unit, and reduce the coding of rate-distortion optimization (RDO) The number of units, so as to reduce the complexity of the intra-frame encoding process more effectively and improve the encoding speed under the premise of ensuring the encoding performance.

值得注意的是,上述实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above embodiments, the units included are only divided according to the functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are also It is only for the convenience of distinguishing each other, and is not intended to limit the protection scope of the present invention.

另外,本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。In addition, those of ordinary skill in the art can understand that all or part of the steps in the methods of the above-mentioned embodiments can be completed by instructing related hardware through programs, and the corresponding programs can be stored in a computer-readable storage medium. Storage media, such as ROM/RAM, magnetic disk or optical disk, etc.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (10)

1. a kind of HEVC inner frame coding methods based on spatial coherence, it is characterised in that methods described includes:
According to the depth and size of current coded unit, select the space in the current coded unit adjacent and with same The adjacent encoder unit of size, and ask for the depth bounds [a of the adjacent encoder unit0, a1];
According to the relation between the complexity of the current coded unit and the complexity of the adjacent encoder unit and described The position of current coded unit, determines the depth bounds of the current coded unit;
Current coded unit is encoded according to the depth bounds of current coded unit, and according to prediction cost selection cost most Small depth terminates the coding of current coded unit and is transferred to next coding unit as the depth of current coded unit.
2. the HEVC inner frame coding methods as claimed in claim 1 based on spatial coherence, it is characterised in that the basis is worked as The depth bounds of preceding coding unit is encoded to current coded unit, and is made according to the depth of prediction cost selection Least-cost For the depth of current coded unit, terminate the coding of current coded unit and include the step of being transferred to next coding unit:
Judge the depth of the current coded unit whether within the depth bounds for the current coded unit having determined;
If the depth of the current coded unit within the depth bounds for the current coded unit having determined, is not sentenced Whether the depth of the disconnected current coded unit is more than or equal to the depth bounds for the current coded unit having determined The upper limit;
If the depth of the current coded unit is more than or equal to the depth bounds for the current coded unit having determined The upper limit, then terminate the cutting procedure of the current coded unit;
Whether judge the current coded unit is last coding unit to be searched in code tree unit after trimming;
If the current coded unit is last coding unit to be searched in code tree unit after trimming, terminate current The recursive subdivision process of code tree unit, completes the coding of the corresponding coding unit of present encoding tree unit.
3. the HEVC inner frame coding methods as claimed in claim 2 based on spatial coherence, it is characterised in that judge described The step of whether depth of the current coded unit within the depth bounds for the current coded unit having determined it Afterwards, methods described also includes:
If the depth of the current coded unit is performed within the depth bounds for the current coded unit having determined Intra-prediction process, and optimum prediction mode correspondence cost is calculated, the pattern of selection Least-cost is optimal mode.
4. the HEVC inner frame coding methods as claimed in claim 3 based on spatial coherence, it is characterised in that described according to institute State the relation and the present encoding list between the complexity of current coded unit and the complexity of the adjacent encoder unit The step of position of member, depth bounds for determining the current coded unit, specifically includes:
If the current coded unit belongs to the coding unit at the top or leftmost edge, it is determined that the present encoding list The original depth bounds of member is [0,3];
Or, if the complexity of the current coded unit is more than the maximum of the complexity of the adjacent encoder unit, really The depth bounds of the fixed current coded unit is [a0, min (a1+ N, 3)], N ∈ [0,3];
Or, if the complexity of the current coded unit is less than the minimum value of the complexity of the adjacent encoder unit, really The depth bounds of the fixed current coded unit is [max (0, a0- N), a1], N ∈ [0,3];
Or, if the complexity of the current coded unit is between the complexity of the adjacent encoder unit, it is determined that institute The depth bounds for stating current coded unit is [a0, a1]。
5. the HEVC inner frame coding methods as claimed in claim 1 based on spatial coherence, it is characterised in that the basis is worked as The depth and size of preceding coding unit, select the space in the current coded unit adjacent and with an equal amount of adjacent Coding unit, and ask for the depth bounds [a of the adjacent encoder unit0, a1] the step of include:
According to the depth and size of current coded unit, selection is adjacent with top and have in the left of the current coded unit Have an an equal amount of adjacent encoder unit, and by calculate the union of left and the depth bounds of top adjacent encoder unit come To the depth bounds [a of the adjacent encoder unit0, a1]。
6. a kind of HEVC intraframe coding systems based on spatial coherence, it is characterised in that the system includes:
Selecting module, for the depth and size according to current coded unit, selects the space phase in the current coded unit It is adjacent and with an equal amount of adjacent encoder unit, and ask for the depth bounds [a of the adjacent encoder unit0, a1];
Range determination module, for the complexity according to the current coded unit and the adjacent encoder unit complexity it Between relation and the current coded unit position, determine the depth bounds of the current coded unit;
Prediction module is encoded, current coded unit is encoded for the depth bounds according to current coded unit, and according to Predict that the depth of cost selection Least-cost, as the depth of current coded unit, terminates the coding of current coded unit and is transferred to Next coding unit.
7. the HEVC intraframe coding systems as claimed in claim 6 based on spatial coherence, it is characterised in that the coding is pre- Surveying module includes:
First judging submodule, for judging the depth of the current coded unit whether in the present encoding having determined Within the depth bounds of unit;
Second judging submodule, if the depth for the current coded unit is not in the current coded unit having determined Depth bounds within, then judge whether the depth of the current coded unit is more than or equal to have determined described current The upper limit of the depth bounds of coding unit;
Terminate segmentation submodule, if the depth for the current coded unit is described current more than or equal to what is had determined The upper limit of the depth bounds of coding unit, then terminate the cutting procedure of the current coded unit;
3rd judging submodule, for judge the current coded unit whether be after trimming in code tree unit it is to be searched most Latter coding unit;
Wherein, it is described to terminate segmentation submodule, if it is to wait to search in code tree unit after trimming to be additionally operable to the current coded unit Last coding unit of rope, then terminate the recursive subdivision process of present encoding tree unit, completes present encoding tree unit pair The coding for the coding unit answered.
8. the HEVC intraframe coding systems as claimed in claim 7 based on spatial coherence, it is characterised in that the coding is pre- Surveying module also includes:
Implementation sub-module, if for the current coded unit depth the current coded unit having determined depth Within the scope of, then intra-prediction process is performed, and optimum prediction mode correspondence cost is calculated, the pattern of selection Least-cost is most Good pattern.
9. the HEVC intraframe coding systems as claimed in claim 8 based on spatial coherence, it is characterised in that the scope is true Cover half block, specifically for:
If the current coded unit belongs to the coding unit at the top or leftmost edge, it is determined that the present encoding list The original depth bounds of member is [0,3];
Or, if the complexity of the current coded unit is more than the maximum of the complexity of the adjacent encoder unit, really The depth bounds of the fixed current coded unit is [a0, min (a1+ N, 3)], N ∈ [0,3];
Or, if the complexity of the current coded unit is less than the minimum value of the complexity of the adjacent encoder unit, really The depth bounds of the fixed current coded unit is [max (0, a0- N), a1], N ∈ [0,3];
Or, if the complexity of the current coded unit is between the complexity of the adjacent encoder unit, it is determined that institute The depth bounds for stating current coded unit is [a0, a1]。
10. the HEVC intraframe coding systems as claimed in claim 6 based on spatial coherence, it is characterised in that the selection Module specifically for:According to the depth and size of current coded unit, select in the left and top of the current coded unit It is adjacent and with an equal amount of adjacent encoder unit, and by calculating the depth bounds of left and top adjacent encoder unit Union obtain the depth bounds [a0, a1] of the adjacent encoder unit.
CN201310655153.5A 2013-12-05 2013-12-05 A kind of HEVC inner frame coding methods and system based on spatial coherence Active CN104702958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310655153.5A CN104702958B (en) 2013-12-05 2013-12-05 A kind of HEVC inner frame coding methods and system based on spatial coherence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310655153.5A CN104702958B (en) 2013-12-05 2013-12-05 A kind of HEVC inner frame coding methods and system based on spatial coherence

Publications (2)

Publication Number Publication Date
CN104702958A CN104702958A (en) 2015-06-10
CN104702958B true CN104702958B (en) 2017-09-15

Family

ID=53349670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310655153.5A Active CN104702958B (en) 2013-12-05 2013-12-05 A kind of HEVC inner frame coding methods and system based on spatial coherence

Country Status (1)

Country Link
CN (1) CN104702958B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915925A (en) * 2015-07-24 2016-08-31 乐视云计算有限公司 Coding unit construction method based on HEVC and coding unit construction device thereof
CN105141954B (en) * 2015-08-19 2018-03-13 浙江工业大学 A kind of HEVC interframe encodes fast schema selection method
CN105376571A (en) * 2015-11-06 2016-03-02 山东交通学院 HEVC reconstruction video scintillation inhibition method based on R-lambda code rate control model
CN107306353B (en) * 2016-04-19 2020-05-01 广州市动景计算机科技有限公司 Image space prediction mode selection method and device, and image compression method and device
CN106210721B (en) * 2016-07-05 2017-11-21 中南大学 A kind of quick code check code-transferring methods of HEVC
CN107087172B (en) * 2017-03-22 2018-08-07 中南大学 Quick code check code-transferring method based on HEVC-SCC and its system
CN107071497B (en) * 2017-05-21 2020-01-17 北京工业大学 A low-complexity video coding method based on spatiotemporal correlation
CN109151477B (en) * 2017-06-28 2020-08-07 华为技术有限公司 Image data encoding and decoding methods and devices
CN109510997B (en) * 2017-09-15 2022-09-23 华为技术有限公司 Image coding method and device
CN109168000B (en) * 2018-10-09 2021-02-12 北京佳讯飞鸿电气股份有限公司 HEVC intra-frame prediction rapid algorithm based on RC prediction
CN109618152B (en) * 2018-12-14 2020-09-08 北京数码视讯软件技术发展有限公司 Depth division coding method and device and electronic equipment
CN111031303B (en) * 2019-11-21 2021-01-26 郑州轻工业大学 3D-HEVC (high efficiency video coding) rapid depth coding method based on Bayesian decision theorem
CN112383774B (en) * 2020-10-30 2023-10-03 网宿科技股份有限公司 Encoding method, encoder and server
CN113242429B (en) * 2021-05-11 2023-12-05 杭州网易智企科技有限公司 Video coding mode decision method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281541A (en) * 2013-05-10 2013-09-04 北方工业大学 Wedge-shaped block intra-frame prediction method based on depth images
CN103442228A (en) * 2013-08-19 2013-12-11 四川大学 Quick frame inner transcoding method from H.264/AVC standard to HEVC standard and transcoder thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281541A (en) * 2013-05-10 2013-09-04 北方工业大学 Wedge-shaped block intra-frame prediction method based on depth images
CN103442228A (en) * 2013-08-19 2013-12-11 四川大学 Quick frame inner transcoding method from H.264/AVC standard to HEVC standard and transcoder thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Adaptive CU Depth Range;Xiang Li;《Joint Collaborative Team on Video Coding (JCT-VC)》;20110323;全文 *

Also Published As

Publication number Publication date
CN104702958A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN104702958B (en) A kind of HEVC inner frame coding methods and system based on spatial coherence
CN103338371B (en) A Fast and Efficient Video Coding Intra Mode Judgment Method
CN111819853B (en) Image block encoding device and image block encoding method
CN104581181B (en) A kind of inner frame coding method based on alternative mode list optimization
CN114830651B (en) Intra-frame prediction method, encoder, decoder and computer storage medium
JP5636507B2 (en) Method and apparatus for improved intra prediction mode coding
EP3857881A1 (en) Adaptive multiple transform coding
CN101938657A (en) Coding Unit Adaptive Partitioning Method in High Efficiency Video Coding
WO2022116317A1 (en) Intra-frame prediction methods, encoder, decoder and storage medium
CN110351552B (en) A Fast Coding Method in Video Coding
JP7610233B2 (en) METHOD AND APPARATUS FOR PREDICTIVE VIDEO CODING
EP2596634A1 (en) Video compression using multiple variable length coding methods for multiple types of transform coefficient blocks
KR20130002286A (en) Method and apparatus for video encoding with intra prediction, method and apparatus for video decoding with intra prediction
CN106888379B (en) Applied to the interframe fast video code-transferring method for H.264 arriving HEVC
CN105681808B (en) A kind of high-speed decision method of SCC interframe encodes unit mode
JP2013500661A (en) Method for decoding a stream of encoded data representing an image sequence and method for encoding an image sequence
US20150208094A1 (en) Apparatus and method for determining dct size based on transform depth
CN113766222B (en) Encoding and decoding method, device and equipment
CN110365975A (en) A kind of AVS2 video encoding and decoding standard prioritization scheme
JP2022539768A (en) Image prediction method, encoder, decoder and storage medium
KR20190097211A (en) Intra prediction apparatus for removing directional intra prediction mode from a set of predetermined directional intra prediction modes
CN103533355A (en) Quick coding method for HEVC (high efficiency video coding)
CN118368415A (en) Deblocking filtering adaptive encoder, decoder and corresponding methods
CN106101709A (en) A kind of Primary layer inter-frame prediction method of the SHVC quality scalability combining enhancement layer
CN101867818B (en) Selection method and device of macroblock mode

Legal Events

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