节点文献

基于DM643的H.264视频编码器的设计与优化

The Design and Optimization of H.264 Video Encoder Based on DM643

【作者】 陈先勇

【导师】 朱伟兴;

【作者基本信息】 江苏大学 , 农业电气化与自动化, 2009, 硕士

【摘要】 H.264/AVC作为ITU-T VCEG(Video Coding Experts Group视频专家组)和ISO/IEC MPEG(Moving Picture Experts Group运动图像专家组)联合制定的最新视频编码标准,近年来已经在学术界和工程界得到深入研究,并开始引入实际应用领域。相比之前的视频标准,H.264在压缩率、图像质量、传输鲁棒性等方面都有着无可比拟的优势,但这些优越性能是以大幅度增加视频算法的复杂度为代价的,在标准推出的初期,很难应用到实际项目中。随着对视频算法研究的深入和巨大潜在市场的吸引,目前设计实时视频编码器已成为各大厂商和科研机构追求的目标。本文以H.264实时视频编码器的设计、移植和优化为主题,完成从建立MATLAB仿真模型到提出改进的快速编码算法,再到基于VC++和DM643平台完成H.264实时视频编码器设计、移植和优化。在运动估计部分,针对大多快速搜索算法易陷入局部极小值或引入错误的搜索方向,本文提出一种基于八边形网格的块匹配算法,使搜索速度提高42.4%;在帧内预测模块,本文采用Sobel算子预先检测图像纹理,并利用检测信息快速剔除多余的候选模式,使帧内预测速度提高61%;在帧间预测模块,本文采取利用CBP(Coded Block Pattern)和MVD(Move Vector Difference)信息和早期判决SKIP模式的策略对帧间预测模式进行预先分析和处理,使帧间预测模块速度提高了53%。基于实现H.264基本档次编码器的设计要求,本文在VC++坏境下完成H.264视频算法的裁剪、移植和优化,使H.264视频编码器的编码速度达到CIF 44fps。最后,本文在TI DM643平台上完成了H.264代码的算法级、系统级和指令级优化,将H.264视频编码器的编码性能达到CIF 20fps。在取得与原有图像质量相当的前提下,本文力求降低视频编码的复杂度并尽可能地提高H.264的编码速度。改进的H.264编码算法为设计H.264实时编码器提供了理论支持,基于VC++和TI DM643所做的设计、移植和优化也为实现H.264实时编码器提供了参考方案,对开发H.264产品具有一定的理论和实践意义。

【Abstract】 H.264/AVC as the the latest video encoding standards,which has been studied deeply in academia and engineering fields and begins to practical application,jointly developed by the ITU-T VCEG and ISO/IEC MPEG.Comparing with the previous video coding standards,H.264 has incomparable advantages on compression rate, image quality,robust transmission,but superior performance is at the heavy price of complexity.When the standards was introduced,it is difficult to apply into actual projects,but with the deep study and the attraction of huge potential market,design a real-time video encoder has became the competing goal for the major manufacturers and research institutes recently.Focuse on the theme of design,migration and optimization a real-time H.264 video encoder,this paper worked from the establishment of MATLAB simulation model to new rapid improvements algorithms,and then to the transplant and optimize the whole process based on VC++ and DM643 platform.In the motion estimation module,because most fast algorithms easily lead to local minimum or the wrong search direction,a new block-matching algorithm based on muti-octagon-grid was put forward in the paper and the search speed was improved by 42.4%;In the intra-prediction module,this paper made a pre-detection by using the sobel algorithm to pick out the redundant candidates and the intra-predict speed was improved by 61%. In the inter-prediction module,the paper took various measures in advance based on CBPand MVD as well as early SKIP mode decision and the inter-predict speed raised 53%.Based on the realization of basic level design requirements,this paper completed cutting,grafting and optimizing of H.264 video algorithm under the VC++ and achieved the performance CIF 44fps.Finally,the article completed code-level, system-level and instruction-level optimization on TI DM643 platform and achieved the performance CIF 20fps.To achieve the considerable image quality as the origin’s,this article seeks to reduce the complexity and improve the speed as much as possible.The improved algorithm proposed in paper provides a theoretical support and the design,migration and optimization based on VC++ and TI DM643 will provide a reference design for the real-time H.264 encoder and has important theoretical and practical significance for the development of practical products.

【关键词】 H.264视频压缩编码DM643DSP优化
【Key words】 H.264Video compressionDM643Optimization
  • 【网络出版投稿人】 江苏大学
  • 【网络出版年期】2009年 09期
节点文献中: