• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (7): 106-111.

• 论文 • 上一篇    下一篇

一种基于帧间和帧内宏块级的X264并行编码算法

魏妃妃1,梁久祯1,韩军2   

  1. (1.江南大学物联网工程学院,江苏 无锡 214122;2.上海大学通信与信息工程学院,上海 200072)
  • 收稿日期:2010-07-29 修回日期:2010-11-20 出版日期:2011-07-21 发布日期:2011-07-25
  • 作者简介:魏妃妃(1983),女,山东潍坊人,硕士,研究方向为并行计算及其应用。梁久祯(1968),男,江苏无锡人,博士,教授,研究方向为智能信息处理、模式识别和图像处理。韩军(1965),男,河南三门峡人,博士,副教授,研究方向为数字视频压缩、视频恢复和图像处理。
  • 基金资助:

    江苏省自然科学基金资助项目(BK20080544)

A Parallel X264 Encoder Algorithm Based on the InterFrame and  IntraFrame MacroblockLevel

WEI Feifei1,LIANG Jiuzhen1,HAN Jun2   

  1. (1.School of IoT Engineering,Jiangnan University,Wuxi 214122;
    2.School of Communication and Information Engineering,Shanghai University,Shanghai 200072,China)
  • Received:2010-07-29 Revised:2010-11-20 Online:2011-07-21 Published:2011-07-25

摘要:

结合H.264编码标准对X264编码器进行了分析与研究,目的在于提高编码速度,增强X264的实时性。在重点分析了宏块间数据依赖关系的情况下,针对帧间宏块级多线程并行编码的特点,本文提出了一种基于帧间和帧内宏块级的多线程并行编码算法。该算法在原有的帧间宏块级多线程并行编码的基础上,遵循宏块之间的空间相关性,为I帧内每行宏块创建单独的线程,实现了帧间和帧内宏块级并行编码,达到了多粒度并行的效果。实验结果表明,该算法在视频序列能够有效地编码和保持峰值信噪比变化不大的情况下,提高了编码的加速比,从而加强了视频编码的实时性。

关键词: X264, 并行编码, 宏块级, 帧间, 多线程

Abstract:

This paper studies the X264 encoder on the basis of a thorough knowledge about the H.264 standard, aiming to accelerate the encoding speed and enhance the encoder’s realtime ability. In the context of the data dependencies of the related macroblocks which are mainly analyzed, considering the characteristics of the parallel coding algorithm based on the macroblocklevel of InterFrame, the paper proposes a new multithread parallel coding algorithm. On the basis of the original multithread parallel algorithm of the interframe macroblocklevel and the following spatial correlation conditions,the algorithm which creates a thread for each row in the I frame,implements the parallel encoding of the interframe and intraframe macroblocklevel and achieves the effect of multigranularity parallelism.The experimental results illustrate that the propsed algorithm improves the encoding speedup while the video sequences are effectively encoded and with the PSNR holds basically unchanged.,and the realtime encoding is enhanced.

Key words: X264;parallel coding;macroblocklevel;interframe;multithread