Optimization and Implementation of H.264 Algorithm Based on DM642

Author
YangGuangMing
Advisor
ZhuangShengXian
School
Southwest Jiaotong University
Major
Power Electronics and Power Drives
Classification
TN919.81 Image coding
Degree
Master's thesis
Year
2010
Downloads
95
Citations
2

Request the full text

Abstract

H.264 is the latest video coding standard published jointly by ITU-T Video Coding Expert Group and ISO/IEC Moving Picture Experts Group(VCEG and MPEG). It can save approximately a 50% bitrate for equivalent perceptual quality when compared to H.263 or MPEG-4. Besides, H.264 has high compatibility with various networks, so it is very suitable for realtime video communication. Although H.264 has very excellent performance in video compression ratio, the high computational complexity has become the bottleneck for the implementation of H.264 encoder in engineering, especially in realtime video field. So the optimization of H.264 coding has a great theoretical and applicable significance.TI DM642 is a high-performance Digital Media Processor with 600MHz clock rate, which can run at a rate up to 4800 million instructions per second(MIPS). Besides, DM642 has 64 EDMA ports and two levels of cache, The powerful capability of data processing and interface makes it very suitable for the video applications, for example, the audio/video transmission and security monitor over IP and wireless networks.To encode CIF resolution video of monitor system in realtime, the main task of this thesis is to introduce how to optimize and implement H.264 baseline profile encoder based on TMS320DM642. x264, which is one of the most important source programs, is adopted to be transplanted to DSP. The transplantation process includes:delete all assembly language encoded by MMX and SSE based on x86; define and modify the length of some data types, make all data types meet the need of DSP; simplify some code that is’t needed for baseline profile; remove the library included in source program and add some library, for example CSL etc.; add configuration file and allocate memory. At last make sure that the DM642 can run x264 successfully.First in this thesis we deeply analyse the new standard and its critical technologies. Then optimize x264 from two aspects:algorithm level and program level. Algorithm level optimization includes video preprocessing optimization, intra-prediction optimization, inter-prediction optimization, RDO(rate-distortion optimization) coputation optimization and Look-Up-Table(LUT) optimization. This thesis also introduces a video compression scheme based on interpolation in the process of postprocess. Program level optimization includes compiler option optimization, Ping-Pong technology optimization, manual assembly language optimization and memory optimization, etc. Experiment results are given at every step.The experiment results show that the H.264 encoder is obviously speeded up with the similar reconstructed image quality compared with the encoder without optimization. It can encode 20 to 35 frames per second for CIF resolution video, faster than the oringinal encoder, and meet the need of monitor system.

Table of contents

Abstract 6-7 Abstract 7-10 Chapter 1 Introduction 10-15 1.1 Introduction 10-12 1.1.1 Video Compression possibility of 10-11 the 1.1.2 video coding technology development 11-12 1.2 status quo 12-14 1.3 this study 14-15 Chapter 2, H.264 video coding standard 15-31 2.1 H.264 standard outlined 15-18 2.1.1 H.264 layered structure 16-17 2.1.2 H.264 encoding grade 17-18 2.2 H.264 key algorithm 18-31 2.2.1 intra prediction 18-19 2.2.2 inter prediction 19-25 2.2.3 integer transform and quantization 25-29 2.2.4 entropy coding 29-30 2.2.5 go box filtering 30-31 the DM642 Introduction and its code Chapter 3 transplant 31-36 3.1 DM642 Introduction 31-32 3.2 source transplant 32-36 Chapter 4 H.264 algorithm optimization and experimental results 36-48 4.1 image preprocessing 37-40 4.1.1 Smoothing 38 4.1.2 sharpening 38-40 4.2 intra prediction algorithm optimization 40-42 4.3 inter prediction algorithm optimization 42-44 4.4 cost function to calculate the optimization 44-45 4.5 look-up table to optimize 45 4.6 based image postprocessing optimization 45-48 Chapter 5 code level optimization and its experimental results 48-61 5.1 C language optimization 48-52 5.1.1 Generate Debug option 49-50 5.1.2 speed, code size options 50 5.1.3 optimization level options 50 5.1.4 memory mode option 50-51 5.1.5 register call option 51 5.1.6 whether or not to use the alias option 51-52 5.2 EDMA, Cache use 52-55 5.2.1 Cache setting 52-53 5.2.2 EDMA transfer 53-55 5.3 compilation prepared optimize 55-58 5.4 storage space optimization 58-59 5.5 test results 59-61 Summary and Outlook The 61-63 Acknowledgements 63-64 the References 64-67 the studying Master during the published papers and scientific research 67-68

Related dissertations

  1. Research and implementation of technology of infrared monitoring based on DSP
  2. H.264 Encoder Optimization Based on TMS320DM642
  3. The Research and Implementation of a Speech Sampling and Processing System Based on DSP
    WangYuQiang ·Xi'an University of Engineering ·2011 ·Master's thesis
  4. On Line Detecting Research of Cigarette Packaging Film Based on Industrial Machine Vision
  5. Implementation and Optimization of H.264 CODEC Software Based on TMS320DM642
    WangYi ·Tianjin University ·2008 ·Master's thesis
  6. Video Surveillance System Based on Embedded Technology Research
  7. Vehicle Wireless Video Monitoring System Based on Improved H.264Motion Estimation Algorithm
  8. Design and Implementation of a System for Rats Behaviour Analysis Based on DM642
    LeiJunJie ·Tsinghua University ·2012 ·Master's thesis
  9. Research on Surface Defects Visual Inspection System for Metal Components
    NieZhenYu ·Central South University ·2013 ·Master's thesis
  10. Research on Data Capture and Processing Method of Optics Interferogram
  11. The software design of intelligent control Home Furnishing gateway based on ARM11
    ZuoPengZuo ·Northwestern University ·2013 ·Master's thesis
  12. Intelligent AGV Control System of Visual Navigation and Applicationon
  13. The Research on Path Planning for Multi-automated Guided Vehicles System
    ZhaoDongXiong ·Hubei University of Technology ·2014 ·Master's thesis
  14. Development of LXI Universal Board Based on TMS320DM642
    SongShengJin ·Harbin Institute of Technology ·2012 ·Master's thesis
  15. Research on the Robot’s Learning Algorithm Based on Artificial Emotion
    WeiJinHai ·Harbin Institute of Technology ·2012 ·Master's thesis
  16. Research on Binocular Vision Technology for Fully Autonomous Intelligent Robot
    ZhangJiGuo ·Harbin Institute of Technology ·2012 ·Master's thesis
  17. Research on Video Dehazing and Electronic Image Stabilization Based on DaVinci Technology
  18. Research on Moving Object Segmentation and Extraction in the H.264Compressed Domain
    KongXiangPeng ·Harbin Engineering University ·2013 ·Master's thesis
  19. The Design of Vehicle Detection System
    DongGaoPeng ·Wuhan University of Technology ·2013 ·Master's thesis
  20. Study and Implementation of Ultrasonic Image Processing System Based on DSP