Improvement of real-time properties of MPEG-4 encoder by DSP underlying structure
-
摘要:由于利用TMS320C6000系列的DSP底层结构可以提高图像压缩的实时性,本文在TMS320C6416平台上针对DSP底层结构对MPEG-4视频编码进行了优化,包括对8个运算单元能并行执行的特性进行汇编。针对DSP芯片两级高速缓存的工作特点,对编码器中代码和数据所占用的内存空间进行优化。利用EDMA级联特性在内存开辟双缓冲区,同时完成视频数据编码和传输的工作,从而有效地改善编码效率。实验结果表明:该编码器可以对512 pixel512 pixel大小的灰度图像,以30 frame/s帧频进行压缩,实现了对视频图像的实时编码。Abstract:As the real time properties of image compression can be improved by utilizing a DSP underlying structure, this paper optimizes the Mpeg-4 video encoder on a TMS320C6416 platform by the structure mentioned above. Optimizing methods include complying the assembly functions according to the characteristics of eight parallel execution functional units, optimizing the code and data memory space occupied by the encoder according to the features of DSP two-level cache, and adapting two buffers in memory by using the EDMA cascade characteristics to realize video data coding and transmission at the same time, which improves coding efficiency effectively. The experimental results show that the new encoder can realize encoding of gray scale video of 512 pixel512 pixel at 30 frame/s in real time.
-
[1] 许廷发,赵思宏,周生兵,等. DSP并行系统的并行粒子群优化目标跟踪[J]. 光学 精密工程 ,2009,17(9):2236-2240. XU T F,ZHAO S H,ZHOU SH B,et al.. Particle swarm optimizer tracking based on DSP parallel system[J].Opt. Precision Eng.,2009,19(9):2236-2240.(in Chinese) [2] 李玉文,周家锐,沈琳琳. 基于DM6446平台的实时人眼检测系统[J]. 深圳大学学报理工版 ,2009,26(10):420-424. LI Y W,ZHOU J R,SHEN L L. Real time eye detection system based on DM 6446[J].J. Shenzhen University Sci. Eng.,2009,26(10):420-424.(in Chinese) [3] 安博文,潘胜达. 基于FPGA+DSP的超分辨率成像系统设计红外技术[J]. 红外技术 ,2010,32(9):523-526. AN B W,PAN SH D. Design of super-resolution imaging system based on FPGA+DSP[J].Infrared Technol.,2010,32(9):523-526.(in Chinese) [4] 李胜勇,姜涛,朱强华. 红外序列图像中小目标实时检测系统设计与实现[J]. 红外技术 ,2010,32(8):471-474. LI SH Y,JIANG T,ZHU Q H. Design and implement a real-time system for small target detection in infrared image sequence[J].Infrared Technol.,2010,32(8):471-474.(in Chinese) [5] 杨明极,曾稹. 基于DSP的WAP实时图像浏览平台的研究[J]. 哈尔滨理工大学学报 ,2010,15(10):45-48. YANG M J,ZENG ZH. Research of WAP real-time image browsing piatform based on DSP[J].J. Harbin University of Science and Technol.,2010,15(10):45-48.(in Chinese) [6] 贾浩,崔慧娟,唐昆. 基于TMS320DM6437平台的视频系统设计与实现术[J]. 电视技术 ,2010,34(11):43-47. JIA H,CUI H J,TANG K. Design and implementation of video system based on TMS320DM 6437 platform[J].Video Eng.,2010,34(11):43-47.(in Chinese) [7] 宋立锋,戴青云. 分数像素精度运动估计的DSP优化方法[J]. 通信学报 ,2009,30(6):114-119. SONG L F,DAI Q Y. Technique of DSP optimization on fractional-pixel-accurary motion estimation[J].Communication J.,2009,30(6):114-119.(in Chinese) [8] 赵峰,袁东风,张海霞,等. 多DSP图像压缩实时并行处理系统[J]. 光学 精密工程 ,2007,15(9):1451-1455. ZHAO F,YUAN D F,ZHANG H X,et al.. Multi-DSP real-time parallel processing system for image compression[J].Opt. Precision Eng.,2007,15(9):1451-1455.(in Chinese) [9] 周雅贇,徐元欣,方健,等. 基于TMS320DM642的MPEG-4编码器设计和优化[J]. 电视技术 ,2005,29(6):36-38. ZHOU Y Y,XU Y X,FANG J,et al.. Implementation of mpeg-4 video encoder based on TMS320DM642[J].Video Eng.,2005,29(6):36-38.(in Chinese) [10] 曾明霞. 基于DSP的MPEG-4视频编码器研究与实现. 南京:南京理工大学 ,2007. ZENG M X. Research and implementation of MFEG-4 video coder based on the the DSP.Nanjing:Nanjing University Science and Technology,2007.(in Chinese) [11] 刘刚. H.264视频编码器在DSP上的实现与优化. 长春:中国科学院长春光学精密机械与物理研究所 ,2010. LIU G. Implementation and optimization of H.264 video encoder based on DSP.Changchun:Changchun Institute of Optics,Fine Mechanics and Physics,Chinese Academy of Sciences,2010.(in Chinese) [12] 沈钲,孙义和. 一种支持同时多线程的VLIW DSP架构[J]. 电子学报 ,2010,38(2):352-358. SHEN ZH,SUN Y H. Architecture design of simultaneous multithreading VLIW DSP[J].Electronic J.,2010,38(2):352-358.(in Chinese) [13] 钟玉琢,王琪,贺玉文.基于对象的多媒体数据压缩编码国际标准-MPEG-4及其校验模型[M]. 北京:科学出版社,2000. ZHONG Y ZH,WANG Q,HE Y W.Based on Video Object Multimedia Data Compress Encode International Standard-MPEG-4 and Video Verification Model[M]. Beijing:Science Press,2000.(in Chinese) [14] 李方慧,王飞,何佩琨.TMS320C6000系列DSPs原理与应用[M]. 2版. 北京:电子工业出版社,2003. LI F H,WANG F,HE P K.DSPs Principle and Applying of TMS320C6000[M]. 2nd ed. Beijing:Electronics Industry Press,2003.(in Chinese) [15] TMS320C64x/c64x+ DSP CPU and Instruction set reference guide. Dallas:Texas Instruments Incorporated,2005.
点击查看大图
计量
- 文章访问数:3452
- HTML全文浏览量:295
- PDF下载量:1160
- 被引次数:0