H.264/AVC Video Encoder Realization and Acceleration on TI DM642 DSP

  • Daw-Tung Lin
  • Chung-Yu Yang
Part of the Lecture Notes in Computer Science book series (LNCS, volume 5414)


This work develops and optimizes H.264/AVC video encoder on the TM320DM642 DSP platform. In order to transplant x264 source program onto the DSP and to accelerate the coding speed, a series of optimization methods have been proposed in this paper, including 2-D fast mode decision, sub-pixel optimization for motion estimation, and weighted matrix quantization. Furthermore, based on the architectural features of TM320DM642, various system level optimization techniques have been utilized. This paper focuses on the reduction of algorithm complexity. Experimental results reveal that the optimized H.264 video encoder retains satisfactory quality with very low degradation. The implemented codec can achieve the coding speed of 22.6fps and more than 40fps for VGA (640×480) and CIF (352×288) resolution, respectively. The proposed H.264 codec can be employed in many real-time applications.


H.264/AVC encoder TM320DM642 DSP mode decision motion estimation quantization optimization 


  1. 1.
    Goto, K., Hatabu, A., Nishizuka, H., Matsunaga, K., Nakamura, R., Mochizuki, Y., Miyazaki, T.: H.264 video encoder implementation on a low-power DSP with low and stable computational complexity. In: IEEE Workshop on Signal Processing Systems Design and Implementation, SIPS 2006, pp. 101–106 (2006)Google Scholar
  2. 2.
    Chen, T.-C., Chen, Y.-H., Tsai, S.-F., Chien, S.-Y., Chen, L.-G.: Fast algorithm and architecture design of low-power integer motion estimation for H.264/AVC. IEEE Transactions on Circuits and Systems for Video Technology 17(5), 568–577 (2007)CrossRefGoogle Scholar
  3. 3.
    Zhuo, L., Wang, Q., Feng, D.-D., Shen, L.: Optimization and implementation of H.264 encoder on DSP platform. In: IEEE International Conference on Multimedia and Expo., 232–235 (2007)Google Scholar
  4. 4.
    Li, Z., Xing, Q., Zhu, X.: H.264 video encoder implementation and optimization based on DM642 DSP. In: IEEE International Conference on Networking, Sensing and Control, ICNSC 2008, pp. 891–894 (2008)Google Scholar
  5. 5.
    Wei, Z., Cai, C.: Realization and optimization of DSP based H.264 encoder. In: Proceedings. 2006 IEEE International Symposium on Circuits and Systems, ISCAS 2006, p. 4 (2006)Google Scholar
  6. 6.
    Wang, H.-J., Hou, Y.-Y., Li, H.: H.264/AVC video encoder algorithm optimization based on TI TMS320DM642. In: Third International Conference on Intelligent Information Hiding and Multimedia Signal Processing, IIHMSP 2007, vol. 1 (2007)Google Scholar
  7. 7.
    Werda, I., Chaouch, H., Samet, A., Ayed, M.A.B., Masmoudi, N., Akbal, E., Ergen, B., Muljadi, H., Takeda, H., Ando, K., et al.: Optimal DSP-based motion estimation tools implementation for H.264/AVC baseline encoder. IJCSNS 7(5), 141 (2007)Google Scholar
  8. 8.
    Wiegand, T., Sullivan, G.J., Bjntegaard, G., Luthra, A.: Overview of the H.264/AVC video coding standard. IEEE Transactions on Circuits and Systems for Video Technology 13(7), 560–576 (2003)CrossRefGoogle Scholar
  9. 9.
    Texas Instrument. TMS320C64x DSP Video Port/VCXO Interpolated Control Port (2006)Google Scholar
  10. 10.
    LFree Software Foundation. GNU operating system,
  11. 11.
    Chang, C.-Y., Pan, C.-H., Chen, H.: Fast mode decision for P-frames in H. 264. In: Picture Coding Symposium (PCS) (2004)Google Scholar
  12. 12.
    Richardson, I.E.G.: H. 264 and MPEG-4 video compression. Wiley, Chichester (2003)CrossRefGoogle Scholar
  13. 13.
    J.V. Team. Draft ITU-T recommendaation and final draft international standard of joint video specification (March 2003)Google Scholar
  14. 14.
    Malvar, H., Hallapuro, A., Karczewicz, M., Kerofsky, L.: Low-complexity transform and quantization in H.264/AVC. IEEE Transactions on Circuits and Systems for Video Technology 13(7), 598–603 (2003)CrossRefGoogle Scholar
  15. 15.
    Texas Instrument. TMS320C6000 Assembly Language Tools v6.0 Beta (2005)Google Scholar
  16. 16.
    Texas Instrument. Code Composer Studio User’s Guide (2000)Google Scholar
  17. 17.
    Texas Instrument. TMS320C6000 DSP/BIOS User’s Guide (2000)Google Scholar
  18. 18.
    Texas Instrument. TMS320C64x/C64x+ DSP CPU and instruction set reference guideGoogle Scholar
  19. 19.
    Texas Instrument. Video Encoding Optimization on TMS320DM64x/C64x (2004)Google Scholar
  20. 20.
    Texas Instrument. TMS320C64x DSP Two-Level Internsl Memory Rfference Guide (2006)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2009

Authors and Affiliations

  • Daw-Tung Lin
    • 1
  • Chung-Yu Yang
    • 1
  1. 1.Department of Computer Science and Information EngineeringNational Taipei UniversityTaipeiTaiwan

Personalised recommendations