针对H.264编码器计算复杂度高的问题,结合TMS320DM642芯片的具体特点,从算法、数据传输、内存和Cache的使用以及线性汇编等几个方面提出了优化实现方案,最终在DSP平台上实时实现了H.264基本档次编码器.实验结果表明,对于CIF格式的视频序列,优化后的H.264编码器可以达到24帧/s以上的编码速度,可以满足实时编码要求.基于优化后的H.264编码器,在实时操作系统DSP/BIOS上实现了视频数据的实时采集、编码以及网络传输等功能,证明了提出的优化方案具有实用价值.
To the high computational complexity problem of H.264 encoder and the specific features of TMS320DM642,several implementation techniques for optimization are presented in this paper from several aspects,including algorithm,data transfer,memory and Cache.Finally,H.264 baseline profile encoder has been implemented on DSP platform.The experimental results show that,for the video sequences with CIF format,the optimized version of H.264 encoder can achieve the encoding rate of more than 24 frames per second,which is able to meet the real time requirements.Then,based on the optimized H.264 encoder,the functionalities of real time capture,encoding and network transmission of video data have been implemented based on real time operation system(RTOS) of DSP platform,which demonstrates that the proposed optimization schemes are practical.