用于视频编解码的单元划分方法技术

技术编号:20568959 阅读:38 留言:0更新日期:2019-03-14 10:55
本发明专利技术公开了一种用于视频编解码的单元划分方法,所述方法包括:确定当前变换单元的层次深度是否超过门限深度,当确定出所述当前变换单元的层次深度超过门限深度,将所述当前变换单元划分为若干个子变换单元;根据残差变换绝对值和模式分别预测每个子变换单元的残差代价;分别确定两两相邻的子变换单元的残差代价的残差代价方差,得到残差代价方差集合;对所述残差代价方差集合的元素进行排序,获取具有最小值的残差代价方差,其中所述元素是指两两相邻的子变换单元的残差代价的残差代价方差;当所述具有最小值的残差代价方差小于预设方差门限值时,确定不再对所述当前变换单元进行划分。采用本发明专利技术可以减少计算量,提高编码效率。

Cell Partitioning Method for Video Coding and Decoding

The present invention discloses a cell division method for video coding and decoding. The method includes: determining whether the level depth of the current transform unit exceeds the threshold depth, dividing the current transform unit into several sub-transformation units when the level depth of the current transform unit exceeds the threshold depth, and predicting each sub-transformation unit according to the absolute value and mode of residual transform. The residual cost of the transformation unit; the residual cost variance of the residual cost of two adjacent sub-transformation units is determined separately to obtain the residual cost variance set; the elements of the residual cost variance set are sorted to obtain the minimum residual cost variance, which refers to the residual cost variance of the residual cost of two adjacent sub-transformation units; When the residual cost variance with the minimum value is less than the preset threshold value of variance, it is determined that the current transformation unit is no longer partitioned. The invention can reduce the amount of calculation and improve the coding efficiency.

【技术实现步骤摘要】
用于视频编解码的单元划分方法
本专利技术涉及图像处理
,特别涉及一种用于视频编解码的单元划分方法。
技术介绍
传统的用于视频编解码的单元划分方法中,依次计算每一种划分方式的率失真代价,并根据率失真代价最小的划分方式将编码单元CU划分为变换单元TU,然而在实际计算过程中,由于需要计算每一种划分方式的率失真代价,计算量比较大,从而导致编码效率低下。
技术实现思路
为了解决现有技术的问题,本专利技术实施例提供了一种用于视频编解码的单元划分方法。一种用于视频编解码的单元划分方法,所述方法包括:确定当前变换单元的层次深度是否超过门限深度,当确定出所述当前变换单元的层次深度超过门限深度,将所述当前变换单元划分为若干个子变换单元;根据残差变换绝对值和模式分别预测每个子变换单元的残差代价;分别确定两两相邻的子变换单元的残差代价的残差代价方差,得到残差代价方差集合;对所述残差代价方差集合的元素进行排序,获取具有最小值的残差代价方差,其中所述元素是指两两相邻的子变换单元的残差代价的残差代价方差;当所述具有最小值的残差代价方差小于预设方差门限值时,确定不再对所述当前变换单元进行划分。优选地,所述用于视频本文档来自技高网...

【技术保护点】
1.一种用于视频编解码的单元划分方法,其特征在于,所述方法包括:确定当前变换单元的层次深度是否超过门限深度,当确定出所述当前变换单元的层次深度超过门限深度,将所述当前变换单元划分为若干个子变换单元;根据残差变换绝对值和模式分别预测每个子变换单元的残差代价;分别确定两两相邻的子变换单元的残差代价的残差代价方差,得到残差代价方差集合;对所述残差代价方差集合的元素进行排序,获取具有最小值的残差代价方差,其中所述元素是指两两相邻的子变换单元的残差代价的残差代价方差;当所述具有最小值的残差代价方差小于预设方差门限值时,确定不再对所述当前变换单元进行划分。

【技术特征摘要】
1.一种用于视频编解码的单元划分方法,其特征在于,所述方法包括:确定当前变换单元的层次深度是否超过门限深度,当确定出所述当前变换单元的层次深度超过门限深度,将所述当前变换单元划分为若干个子变换单元;根据残差变换绝对值和模式分别预测每个子变换单元的残差代价;分别确定两两相邻的子变换单元的残差代价的残差代价方差,得到残差代价方差集合;对所述残差代价方差集合的元素进行排序,获取具有最小值的残差代价方差,其中所述元素是指两两相邻的子变换单元的残差代价的残差代价方差;当所述具有最小值的残差代价方差...

【专利技术属性】
技术研发人员:林路路
申请(专利权)人:建湖云飞数据科技有限公司
类型:发明
国别省市:江苏,32

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1