从MPEG2或H.263格式到H.264格式的视频转换编码的处理方法及装置制造方法及图纸

技术编号:6076165 阅读:1210 留言:0更新日期:2012-04-11 18:40
本发明专利技术公开一种从MPEG2或H.263格式到H.264格式的视频转换编码的处理方法及装置。包括:能量判断步骤,将读取视频数据的宏块的残差能量与判定阈值相比较;若宏块的各子块的残差能量均小于或等于判定阈值,则执行第一处理;若宏块残差能量大于判定阈值,则执行第二处理;第一处理:对宏块在P16x16、P16x8、P8x16或P8x8范围内选择帧间预测模式,使后续能根据选择的帧间预测模式对宏块进行运动估计处理;第二处理:对宏块重新进行运动估计,得出宏块的各种帧间预测模式,从得到的各种帧间预测模式中重新选择最优帧间预测模式和运动向量,以选择帧间预测模式对宏块进行运动估计处理。该方法转换效率高,且质量好。

Method and apparatus for processing video transcoding from MPEG2 or H.263 format to H.264 format

The invention discloses a method and a device for processing video conversion coding from MPEG2 or H.263 format to H.264 format. Including: energy judgment procedures will read macroblock residual energy and threshold of video data is compared; if the sub macro blocks of the residual energy is less than or equal to threshold, perform first processing; if the macroblock residual energy is greater than the threshold, then the implementation of the second treatment; the first treatment of Acer in P16x16, P16x8, P8x16 block or P8x8 range selection of inter prediction modes, the follow-up can be chosen according to inter prediction model for estimating the motion of macro block; second: treatment of macroblock re motion estimation, the frame macroblock prediction mode, from the frame of the optimal prediction inter prediction mode and motion vector re selection mode, to select the inter prediction mode of macroblock motion estimation. The method has high conversion efficiency and good quality.

【技术实现步骤摘要】

【技术保护点】
1.一种从MPEG2或H.263格式到H.264格式的视频转换编码的处理方法,其特征在于,包括:能量判断步骤,将所读取的一帧MPEG2格式或H.263格式的视频数据的宏块的残差能量与判定阈值相比较;若比较结果为宏块中的各子块的残差能量均小于或等于判定阈值,则执行第一处理步骤;若比较结果为宏块中的残差能量大于判定阈值,则执行第二处理步骤;第一处理步骤,对所述宏块在P16x16帧间预测模式、P16x8帧间预测模式、P8x16帧间预测模式和P8x8帧间预测模式范围内选择帧间预测模式,使得后续能根据选择的帧间预测模式对所述宏块进行运动估计处理;第二处理步骤,对所述宏块重新进行运动估计计算,得出所述宏块...

【技术特征摘要】

【专利技术属性】
技术研发人员:张健徐桂忠郭宇张德何永刚范茂军
申请(专利权)人:中国电子科技集团公司第三研究所
类型:发明
国别省市:11

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

1