基于TMS320DM642的H.264视频编码
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
视讯产业蓬勃发展,多媒体通讯技术应用日益广泛,诸如视频监控、可视电话、流媒体、IPTV等。在众多多媒体技术中,视频压缩编码技术是核心,是构建多媒体系统的关键模块。H.264/AVC是由ISO/IEC MPEG和ITU-T VCEG联合制定的最新的视频编码标准。在相同重构图像质量下,与H.263+和MPEG-4 ASP标准相比,H.264/AVC能节约50%的码流。由于其高压缩比、高图像质量和友好的网络特性,必将成为下一代视频压缩标准的主流。
     本文对H.264视频编码器关键技术和基于DM642的H.264编码器的实时实现进行了研究工作。首先分析了编码复杂度以及不同的参数设置对编码器性能的影响,确立了应用于本课题的视频编码方案。然后从算法层面对比较耗时的运动估计和帧内预测模块进行优化。针对监控视频的特点,通过对H.264编码器运动估计部分的研究,提出了一种改进的菱形搜索优化算法,改进了跳过宏块预判技术和提前中止技术。研究了基于预测模式直方图的帧内预测快速算法。最后结合DM642嵌入式系统的硬件特性,讨论了基于PC机的T264编码器DSP化过程中需要注意的事项及移植的方法。然后从编码器编码流程、内存分配与调度、Cache的优化、EDMA等方面讨论了编码器系统级优化,分析了程序级代码优化与汇编级优化的方法。同时在这个过程中,总结了基于DM642的视频压缩编码软件开发的一些方法和技巧,可为今后基于DM642系统的软件开发打下基础。
Video monitoring can be directly perceived through the sense. Because of its richness and convenience, it is used widely by safety guard, product management, and so on. It plays an important role in the environment monitoring. The video compression is key technology of video monitoring, and video codec is one of the most important core modules for a multimedia application systems. H.264/AVC is newest video coding standard of the ITU-T Video Coding Experts Group and ISO/IEC Moving Picture Experts Group. The H.264/AVC video coding standard can achieve considerably higher coding efficiency than previous standards. Due to the advanced compression performance and the“network-friendly”nature, H.264/AVC will be the next generation of“industry-leading”video coding standard.
     This paper will make an emphasis on research of key technologies and the implementation of H.264 video encoder based on DM642 platform. At the beginning of the paper , we analyse the complexisity of video encoder and different parameters which have an effect upon encoder performance. According to the fact that video scene is smooth , little motion, has many background blocks, method for detecting skipped macroblock ahead of discrete cosine transform, quantization and context adaptive variable length coding and early termination algorithm are improved. A fast mode decision algorithm for Intra prediction in H.264/AVC video coding is proposed based on Prediction Mode Histogram. Experimental results show that the algorithm increases the speed of intracoding significantly with negligible loss of peak signal-to-noise ratio. Secondly, we discussed the method that T264 encoder based on PC is transferred to DM642 platform, then the application optimization in DM642 embedded system was made by the following sides: application architecture,memory system,Cache optimization and EDMA. After those steps, not only the encoding performance is improved , but also many skills of software development about DM642 were summaried.
引文
[1] ITU-T, H.261,Video codec for audiovisual services at p×64kbit/s,Geneva,1990,revised at Helsinki,March 1993
    [2] ISO/IEC,IS 11172,Information technology-coding of moving pictures and associated audio for digital storage media at up to about 1.5 mbit/s,1993(MPEG-1)
    [3] ISO/IEC JTC1,ISO/IEC13818-2(MPEG-2),Generic coding of moving pictures and associated audio information-Part 2:Video, Nov 1994
    [4] ITU-T,H.263,Video coding for low bitrate communication,March 1996
    [5] ISO/IEC JTC1,ISO/IEC 14496-2(MPEG-4 visual version 1),Coding of audio-visual objects-Part 2:Visual, April 1999;Amedment(version 2),February,2000;Amendment 4(streaming profile),January,2001
    [6] Joint Video Team of ITU-T and ISO/IEC JTC1, ITU-T Rec.H.264,ISO/IEC 14496-10 AVC,Draft ITU-T Recommendation and Final Draft International Standard of Joint Video SpecificationJoint Video Team(JVT) of ISO/IEC MPEG and ITU-T VCEG,JVT-G050,March 2003
    [7] 毕厚杰,新一代视频压缩标准-H.264/AVC,北京,人民邮电出版社,2005 年 5 月:8~11
    [8] T.Wiegand,G.J.Sullivan,G.Bjontegand, and A.Luthra,Overview of the H.264/AVC Video Coding Standard,IEEE Trans.Circuits Syst.Video Technol, July 2003, vol.13 : 560~576,
    [9] Iain E.G.Richardson,H.264 and MPEG-4 Video Compression,England,John Wiley & Sons Ltd,2003,166~168
    [10] A.Hallapuro, M.Karczewicz and H.Malvar, Low Complexity Transform and Quantization –Part I: Basic Implementation, JVT document JVT-B038,Geneva,February 2002
    [11] H.Malvar,A.Hallapuro,M.Karczewicz, Low-Complexity transform and quantization in H.264/AVC .IEEE Trans. Circuits Syst. Video Technol, July 2003, vol 13 : 598~603
    [12] H.264 Reference Software Version JM8.6, http://bs.hhi.de/suehring/tml/ , March 2003
    [13] 张益贞,刘滔,Visual C++ 实现 MPEG/JPEG 编解码技术,北京,人民邮电出版社,2004 年 5 月:22~23
    [14] G.Bjontegaard and K.Lillevold, Context-adaptive VLC coding of coeffients, JVT document JVT-C028,Fairfax,May 2002
    [15] H.Schwarz, D.Marpe and T.Wiegand, CABAC and slices, JVT document JVT-D020, Klagenfurt, Austria, July 2002
    [16] D.Marpe, H.Schwarz and T.Wiegand, Context-Based Adaptive Binary Arithmetic Coding in the H.264/AVC Video Compression Standard, IEEE Trans. Circuits Syst. Video Technol, July 2003, vol 13 :620~634
    [17] P.List, A.Joch,J.Lainema and M.Karczewicz, Adaptive deblocking filter, IEEE Trans. Circuits Syst. Video Technol, July 2003, vol 13 : 614~619
    [18] Joint Video Team of ITU-T and ISO/IEC JTC1, ITU-T Rec.H.264,ISO/IEC 14496-10 AVC,Draft ITU-T Recommendation and Final Draft International Standard of Joint Video SpecificationJoint Video Team(JVT) of ISO/IEC MPEG and ITU-T VCEG,JVT-G050, 2005.
    [19] Atul Puri, Xuemin Chen and Ajay Luthra.,Video coding using the H.264/MPEG-4 AVC compression standard, Signal Processing: Image Communication, October 2004, Volume 19: 793~849
    [20] http://t264.cvs.sourceforge.net/t264/
    [21] Iain E.G.Richardson,Video Codec Design ,John Wiley & Sons Ltd,2003,93~125
    [22] T.Koga, K.linuma, A.Hirano, Motion compensated interframe coding for video conferencing, Proceedings Nat. Telecommunications Conf. 81,New Orleans, Nov 1981, G5.3.1~G5.3.5
    [23] J.Jain,A.Jain, Displacement measurement and its application in interframe image coding,IEEE Transactions on Communications, Dec. 1981,vol29:1799~1806
    [24] L.Liu,E.Feig, A block-based gradient descent search algorithm for block motion estimation in video coding, IEEE Transactions on CSVT,June 1996,vol 6:419~422
    [25] Ce Zhu, Xiao Lin and Lap-Pui Chau, Hexagon-Based Search Pattern for Fast Block Motion Estimation, IEEE Transations on CSVT,May 2002, vol 12:349~355
    [26] L.M.Po, W.C.Ma, A novel four-step search algorithm for fast block motion estimation, IEEE Transations on CSVT,June 1996,vol.6: 313~317
    [27] Z.B.Chen, P.Zhou and Y.He, Fast integer pel and fractional pel motion estimation for JVT,JVT-F017,Awaji,Japan, Dec.2002
    [28] S.Zhu and K.K.Ma, A new diamond search algorithm for fast block matching motionestimation, Proc. Of Int.Conf. Information, Communications and Signal Processing,1997,vol.1:292~298
    [29] J.Y.Tham,S.Ranganath,M.Ranganath and A.A.Kassim,A Novel Unrestricted Center-Biased Diamond Search Algorithm for Block Motion Estimation, IEEE Trans. On Circuits & Systems for Video Technology, Aug. 1998, vol.8:369-77
    [30] 田晓冬,田裕鹏,一种改进的快速 H.264/AVC 帧内预测 Pan 算法,计算机应用,2006年 10 月,第 26 卷:2383~2385
    [31] PAN F,LIN XIAO, Fast Mode Decision for Intraprediction (Doc JVT -G013) , Pattaya, Thailand, JVT of ISO / IEC MPEG & ITU – T VCEG, 2003
    [32]PAN F,LIN XIAO ,SUSANTO RAHARDJA,Fast Mode Decision Algorithm for Intra precidtion in H.264/AVC Video Coding[J].IEEE Trans.Circuits Syst Video technol, 2003,15:813~822
    [35] JVT Test Model Ad Hoc Group. Evaluation Sheet for Motion Estimation[R].Draft version 4, 2003
    [36] http://developers.videolan.org/
    [37] 田晓冬,田裕鹏,基于预测模式直方图的 H.264/AVC 帧内预测快速算法,中国图象图形学学会,第十三届全国图象图形学学术会议论文集,北京,清华大学出版社,2006:120~123
    [38] 李方慧,王飞,TM320C6000 系列 DSPs 的原理与应用(第二版),北京,电子工业出版社,2005
    [39] SPRS200B,TMS320DM642 Video/Imaging Fixed-Point Digital Signal Processor,May 2003,Texas Instruments Incorporated
    [40] SPRU610, TMS320C64x DSP Two-Level Internal Memory Reference Guide, August 2002, Texas Instruments Incorporated
    [41] SPRA920, TMS320DM642 EVM Daughtercard Specification Revision 1.0, June 2003, Texas Instruments Incorporated
    [42]SPRU423, TMS320 DSP/BIOS User's Guide, November 2002, Texas Instruments Incorporated
    [43] SPRU401, TMS320C6000 Chip Support Library API Reference Guide, February 2003,T exas Instruments Incorporated
    [44] SPRZ122, TMS320C6000 Peripherals Reference Guide, February 2001, Texas InstrumentsIncorporated
    [45] SPRU656A,TMS320C6000 DSP Cache User’s Guide,May 2003, Texas Instruments Incorporated
    [46] SPRU187,TMS320C6000 Optimizing Compiler User's Guide,October 2002, Texas Instruments Incorporated
    [47] SPRU198,TMS320C6000 Programmer's Guide,August 2002, Texas Instruments Incorporated
NGLC 2004-2010.National Geological Library of China All Rights Reserved.
Add:29 Xueyuan Rd,Haidian District,Beijing,PRC. Mail Add: 8324 mailbox 100083
For exchange or info please contact us via email.