Implementation and Optimization of DSP - based H.264 encoder

Author
GeQi
Advisor
FanFeng
School
University of Electronic Science and Technology
Major
Signal and Information Processing
Classification
TN762 Encoder
Degree
Master's thesis
Year
2009
Downloads
118
Citations
3

Request the full text

Abstract

In recent years, with the increasing popularization of the Internet, the rapid development of mobile communication and multimedia operation, video applications have been expanding seriously. Thus, an efficient and smart embedded video compression system has not only theoretical significance, but also practical value. As a latest international video coding standard, H.264 has improved the coding efficiency remarkably compared with previous standards. At the same time, the computational complexity of the encoder is increased dramatically. Furthermore, rapid development of the digital signal processor (DSP) makes the portable digital video communication terminals possible. With its strong parallel processing ability and signal processing capacity, TMS320DM642 which developed by TI Corporation is an ideal platform for developing H.264 encoder. The main achievements of this thesis are focused on implementation and optimization of H.264 encoder based on TMS320DM642 platform.According to the analysis of key techniques exploited by H.264, the thesis analyses the prediction algorithm which is the most time-consuming module in detail. For intra prediction case, utilizes the characteristics of high probability of most possible mode and the correlation of optimal mode and sub-optimal mode are utilized to make a fast selection for Intra4×4 mode. Meanwhile, the texture characteristic of the macroblock is adopted to decide whether or not to skip Intra16×16 mode, which reduces the complexity of full search algorithm. An improved motion estimation algorithm based on adaptive hexagon-diamond pattern and half-stop strategy to reduce search points and improve coding efficiency. In the algorithm of inter prediction mode selection,fast selection of prediction mode is achieved according to the correlation of video sequence and elimination of some inter prediction modes by comparing the results of searched modes with adaptive threshold combining with the rules of block merge.On the aspect of DSP solution, firstly, according to the structure of DM642 and the characteristics of H.264 encoder, this paper adjusts data flow and variable definition and allocates memory reasonably so as to make the framework of redesigned encoder adapt to the embedded system. Meanwhile, the QDMA data transfer mechanism is adopted to eliminate the bottleneck of data access inside and outside the chip. Secondly, Several techniques such as compiler option, data packing, inline assembly and application of pipeline, linear assembly language and characteristic of two-level cache structure of DM642 are adopted in the process of H.264 encoder optimization.Through the optimization of algorithms and DSP, the encoding speed of H.264 encoder has been improved largely compared to original code in the case of a little losses of image quality.

Table of contents

Abstract 4-5 Abstract 5-10 first chapter 10-16 1.1 video compression coding theory 10-11 1.2 video compression coding standard 11-13 1.3 video compression coding system to achieve 13-14 1.4 background and significance of 14-15 1.5 In this paper, and arrangements 15-16 H.264 video coding standard Introduction 16-26 2.1 H.264 encoder framework 16-19 2.1.1 encoders is the basic structure of 16-17 2.1.2 H.264 grade and level 17 2.1.3 of H.264 hierarchy 17-18 2.1.4 H.264 frame structure 18-19 2.2 H.264 key technology 19-26 2.2.1 Intra Prediction 19-20 2.2.2 interframe prediction 20-21 2.2.3 integer transform and quantization 21-22 2.2.4 unified entropy coding 22-24 2.2.5 deblocking filter 24-26 H.264 encoding fast algorithm 26-50 3.1 encoder complexity analysis 26 3.2 intra prediction mode selection algorithm 26-32 3.2.1 full search intra prediction mode selection algorithm 26-27 3.2.2 intra prediction mode selection algorithm status quo 27-29 3.2.3 Intra Prediction Mode Selection Fast Algorithm for 29-31 3.2.4 Test results and analysis 31-32 3.3 motion estimation algorithm 32-41 3.3.1 block matching principle and criteria 33-34 3.3.2 motion estimation algorithm for the status quo 34-36 3.3.3 Motion Estimation Algorithm 36-39 3.3.4 Test results and analysis 39-41 3.4 interframe prediction mode selection algorithm 41-50 3.4.1 Interframe Predictive Coding Overview 41-42 3.4.2 inter prediction mode selection algorithm status quo 42-44 3.4.3 the characteristics of the inter prediction mode 44 A Fast Algorithm for 3.4.4 inter mode selection 44-48 3.4.5 Test results and analysis 48-50 Chapter H.264 encoder based on the DM642 50-76 4.1 video compression platform Introduction 50-54 4.1.1 the DM642 chip, the hardware structure and characteristics of 50-53 4.1.2 hardware development platform 53 4.1.3 software development tools 53-54 4.2 port code 54-58 4.3 encoding process analysis 58-60 4.4 encoder software architecture framework design 60-72 4.4.1 software framework design ideas Summary 60-63 4.4.2 macro block encoding module 63-68 4.4.3 entropy coding module 68 4.4.4 loop filter module 68-70 4.4.5 interpolation module 70-72 4.5 storage space allocated 72-73 4.6 data transfer strategy 73-75 4.7 Test results and analysis 75-76 DSP-based code optimization 76-94 5.1 software development process 76 5.2 project-level optimization 76-77 5.3 C language level optimization 77-87 5.3.1 data type adjustment 77-78 5.3.2 memory correlation 78-79 5.3.3 to reduce function call 79-80 5.3.4 data packaging technology 80-81 5.3.5 Inline functions 81-82 5.3.6 software running water 82-86 5.3.7 Other Optimization Tips 86-87 5.4 assembly-level optimization 87-89 5.5 Cache optimization 89-91 5.6 Test results and analysis 91-94 Chapter VI Conclusion 94-96 thank 96-97 References 97-100 during the school's research 100-101

Related dissertations

  1. Research and Development of Froth Flotation Video Surveillance Hardware Platform Based on DSP
    GuoJian ·Central South University ·2013 ·Master's thesis
  2. Video Surveillance System Based on Embedded Technology Research
  3. Intelligent Video Surveillance System Based on DSP
  4. Optical Fiber Perimeter Alarm System Based on DSP and FPGA
  5. The Design of Monitoring System for the Photovoltaic Plant Based on DSP
  6. Vehicle Wireless Video Monitoring System Based on Improved H.264Motion Estimation Algorithm
  7. Design and Implementation of Multi-channel Data Acquisition System
  8. Research on Measuring System of Mid-Infrared Photoelectric Autocollimator
  9. Wire Rope On-line Detection System Design Based on DSP
  10. IMU Data Acquisition and Processing System Design and Realization Based on DSP
  11. Design of Marine Toxin Analvsis System Based on ECIS and Image Detection
    SuKaiZuo ·Zhejiang University ·2014 ·Master's thesis
  12. The Design of Multi-channel Optic-electronic Signal Acquisition and Processing System
    WangJianFei ·University of North ·2014 ·Master's thesis
  13. The Study Oh Fuzzy Controlin TIG Welding Prossess
    ZhangJun ·Shanghai Jiaotong University ·2008 ·Master's thesis
  14. Control Method Research and Controller Development of AGV Based on DSP
    SunXiaoMeng ·Harbin Institute of Technology ·2012 ·Master's thesis
  15. Research on Tension Control System of Fiber Placement Machine
    LiuJiCheng ·Harbin Institute of Technology ·2012 ·Master's thesis
  16. Research on Drive and Control Technology of Electromagnetic Traveling-wave for Automated Conveying System
  17. Research on the Slave Station for AC Servo Driver Based on DeviceNet Fieldbus
  18. Modeling and Implementation of Motor Function Module Based on PLCopen
  19. The Design and Research of Embedded Multi-axis Control System
  20. The software design of intelligent control Home Furnishing gateway based on ARM11
    ZuoPengZuo ·Northwestern University ·2013 ·Master's thesis