The present invention relates to a method based on the P skip block threshold early termination judgment method: A: determine the current block, left upper, left or right adjacent macroblock is P skip block, one can continue to the following steps: B; for the current block and block reconstruction the vast difference of the values of SAD and C; QP: according to the quantitative parameters of the current block, the block is obtained through the look-up table of early termination threshold value T QP; D: SAD T QP and the threshold value, if it satisfies the SAD T < QP, the current block is P skip block, without further mode decision. The invention can omit the original algorithm in transform, quantization, scanning and non zero to determine the number of operations for Pskip block.
【技术实现步骤摘要】
本专利技术涉及多媒体通信中的视频压縮编码技术,尤其涉及一种基于门限的P—skip块提前终止判断方法。 原264算法中的提前P_skip模式判断算法,在进行模式判定前先进行如下判断 if (mb_type_lef t = = P_SKIP | | mb_type_top = = P_SKIP | | mb_type_toplef t = =P_SKIP I |mb_type_topright = = P_SKIP) , (mb_type_left为当前i央左边相邻宏i央类型, 其次为上边、左上和右上相邻宏块类型) { 1.根据预测mvp和参考帧得到重构的亮度宏块; 2.对于亮度,把当前块划分为16个4X4子块; 3.依次对每个4X4块的亮度值分别进行DCT变换、量化、zigzag扫描,并判断该 4X4块扫描后非零值的个数,如果大于5则跳转的第5步;否则继续步骤3直到16个子块 都计算完毕; 4.对于色度,根据预测mvp和参考帧得到重构的色度块;并对其进行类似亮度块 的运算,差别在于此处4X4的块扫描后的非零个数大于6则跳转到第5步;否则,则该宏块 为P_s ...
【技术保护点】
一种基于门限的P_skip块提前终止判断方法,其特征在于:包括以下步骤:a:判断当前块左边、上边、左上或右上相邻宏块是否为P_skip块,有一个是即可,则继续以下步骤;b:求当前块与重构块的绝对差值和SAD值;c:根据当前块的量化参数qp,通过查表得到该块提前终止的门限值T[qp];d:比较SAD值与门限值T[qp],若满足SAD<T[qp],则该当前块即为P_skip块,无须再进一步进行模式判定。
【技术特征摘要】
一种基于门限的P_skip块提前终止判断方法,其特征在于包括以下步骤a判断当前块左边、上边、左上或右上相邻宏块是否为P_skip块,有一个是即可,则继续以下步骤;b求当前块与重构块的绝对差值和SAD值;c根据当前块的量化参数qp,通过查表得到该块提前终止的门限值T[qp];d比较SAD值与门限值T[qp],若满足SAD<T[qp],则该当前块即为P_skip块,无须再进一步进行模式判定。2. 如权利要求1所述的基于门限的P_skip块提前终止判断方法,其特征在于对于5 x M x TV x 。s妳 5 xx jV x gs哗, 帧间预测,所述SAD取值范围为&4DMe e[ ~~384><p, 96xPF ],其中 <为SAD^,w下限值,——w J 、 SAD^^w上限值,MXN为所述当3S4xPi ,v —丄加e腦'、,96xjoi V, (0,0), (2,0), (0,2), (2,2) Z)2/4,(1,1),(1,3),(3,1),(3,3)其中:a = 1/2,前块大小,/^ =W/2,其他情况 , b= 、^3. 如权利要求2所述的基于门限的P—skip块提前终止判断方法...
【专利技术属性】
技术研发人员:黄汝静,
申请(专利权)人:深圳市融创天下科技发展有限公司,
类型:发明
国别省市:94[中国|深圳]
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。