Implementation and Optimization of H.264 CODEC Software Based on TMS320DM642

Author
WangYi
Advisor
YangZhaoXuan
School
Tianjin University
Major
Signal and Information Processing
Classification
TN919.81 Image coding
Degree
Master's thesis
Year
2008
Downloads
98
Citations
2

Request the full text

Abstract

The H.264 AVC video compression standard has achieved a significant improvement over all previous video compression standards. But the H.264 standard is significantly more complex than any of the previous standards. Consequently, the H.264 standard is expected to be significantly more demanding in terms of computations and memory requirements. Since any decoder should be able to handle all“legal”bit streams, making the decoder implementation even more complicated. More over, the development of an embedded CODEC implementation where the internal memory size is limited is a challenging task.The TMS320DM642 Digital Media Processor (DM642) is the highest-performance fixed-point DSP from Texas Instruments. The DSP core processor has 64 general purpose 32-bit registers and eight highly independent functional units-two multipliers and six arithmetic logic units with VelociTI.2 extensions. The VelociTI.2 extensions in the eight functional units include new instructions to accelerate the performance in video and imaging applications and extend the parallelism of the VelociTI architecture. The DM642 uses a two-level cache-based architecture and has a powerful and diverse set of peripherals.My main task is port and optimize H.264“baseline”CODEC software on the Texas Instruments’TMS320DM642 Digital Media Processor. Discussed in detail the procedures to the hardware platform of the port process. Optimization process have two process, firstly optimize the intra-frame and p frame by using the ahead break skill, secondly according to the hardware platform optimize the software by intrinsics function.After the optimized, the encoder can provide 2-3 fps encoding performance for CIF resolution video now. The decoder can provide 20-30 fps decoding performance for CIF resolution video now.

Table of contents

Abstract 3-4 ABSTRACT 4-8 Introduction 8-9 first chapter 9-14 1.1 Video Compression Technology Overview 9-10 120 video coding standard 10-14 1.2.1 dynamic image compression standard H.261, 10-11 1.2.2 low bit rate video compression standard H.263, 11-12 1.2.3 the MPEG-1 standard 12 1.2.4 MPEG-4 standard 12-14 H.264 codec standard 14-29 2.1 codec features 14-15 2.2 encoder 15-16 2.3 decoder 16 2.4 grade and level 16-17 2.5 reference image 17 2.6 Intra Prediction 17-20 2.6.1 4 × 4 luma prediction mode 18-20 2.6.2 16 × 16 luminance prediction modes 20 2.7 interframe prediction 20-22 2.8 go to effect filter 22-23 2.9 transform and quantization 23-24 2.10 entropy coding 24-25 2.11 encoder data output 25-27 2.11.1 NAL unit decoding process 25-26 2.11.2 NAL unit syntax 26-27 2.12 encoder data input 27-29 Chapter III DM642 hardware development platform 29-37 3.1 DSP development 29-30 3.2 the DM642 structure 30-31 3.3 SEED-VPM642 development platform 31-32 3.4 SEED-VPM642 video interface 32-33 3.4.1 the DM642 video port 32-33 3.4.2 video codec circuit 33 3.5 DSP software development environment 33-37 3.5.1 integrated development environment CCS 33-34 3.5.2 CCS debugging environment 34-35 3.5.3 DSP / BIOS of applications 35-37 Chapter based on the source code for H.264 codec algorithm optimization 37-52 4.1 video codec program flow 37-42 4.1.1 H.264 coding process 37-38 4.1.2 H.264 decoding process 38-42 4.2 encoder interframe prediction algorithm optimization 42-47 4.2.1 JM9.0 encoder inter prediction program flow 42-43 4.2.2 consideration of inter prediction statistics 43 4.2.3 interframe prediction algorithm optimization program 43-44 4.2.4 early termination to predict the experimental results obtained 44-47 4.2.5 Experimental results 47 4.3 encoder intra prediction algorithm for optimization 47-51 4.3.1 JM9.0 encoder intra prediction program flow 48 4.3.2 Intra Prediction Algorithm optimization 48-49 4.3.3 intra prediction mode algorithm to optimize the experimental results obtained 49-51 4.3.4 Experimental results 51 4.4 source code to streamline 51-52 porting and optimization of the H.264 codec based on the DM642 52-62 5.1 compression algorithm transplant 52-57 5.1.1 data type changes 52-53 5.1.2 grammar rules changes 53-54 5.1.3 storage space to open up 54-55 5.1.4 modify the real-time functions to support library 55-56 5.1.5 to delete the redundant function call 56 5.1.6 set codec parameters 56-57 5.2 DM642-based optimization 57-62 5.2.1 C language optimized 57-58 5.2.2 dynamic storage space to open up choice 58-59 5.2.3 Inline functions to use 59-62 Chapter VI Conclusion 62-63 References 63-65 papers and to participate in the research situation description 65-66 Acknowledgements 66

Related dissertations

  1. The Research and Implementation of a Speech Sampling and Processing System Based on DSP
    WangYuQiang ·Xi'an University of Engineering ·2011 ·Master's thesis
  2. On Line Detecting Research of Cigarette Packaging Film Based on Industrial Machine Vision
  3. Research of H.264/AVC Coder and Its Correlative Algorithm
    WangHongQiang ·Xinjiang University ·2007 ·Master's thesis
  4. Design of Low Bit Rate Software Codec Based on H.264 for Video Conferencing
    YangHaiFeng ·Lanzhou University ·2007 ·Master's thesis
  5. DSP based H.264 video compression to achieve
    GaoBo ·Northwestern Polytechnical University ·2007 ·Master's thesis
  6. Structure Research and Implementation of H.264 Encoder Based on TMS320DM642 DSP
    YangJuQian ·Hohai University ·2007 ·Master's thesis
  7. Algorithms Optimization of Core Parts in H.264 and Encoder’s Transplantation on DSP
    MeiXia ·Hohai University ·2007 ·Master's thesis
  8. Multimedia processing library optimized DM642
    LvHongBo ·Zhejiang University ·2006 ·Master's thesis
  9. Optimazition of H.264 Decoder and Architecture Research of Motion Estimation Module
    YiWei ·Zhejiang University ·2006 ·Master's thesis
  10. The Porting and Implementation of H.264 Video Coding Algorithm on TMS320DM642DSP
    WangHua ·Tianjin University ·2005 ·Master's thesis
  11. Implementation and Optimization of H.264 Encoder Based on DSP
    MaYinSong ·Hohai University ·2006 ·Master's thesis
  12. DSP-based MPEG-4 video codec software design
    JiaYiJun ·Zhejiang University ·2006 ·Master's thesis
  13. Research and Analysis of Inter-frame Encoding in H.264 Based on DM642
  14. Optimization of H.264 Decoder Based on TMS320 DM642
    ZhangShuJun ·Tianjin University ·2007 ·Master's thesis
  15. Optimization and Implementation of H.264 Algorithm Based on DM642
    YangGuangMing ·Southwest Jiaotong University ·2010 ·Master's thesis
  16. Research on H.264 Video Compression Coding Standard and Its DSP Implementation
  17. H.264 video coding standard analysis and algorithm optimization
    ZengHuanQiang ·Huaqiao University ·2008 ·Master's thesis
  18. Design of Video Encoder/Decoder and Transmit System Based on DSP/ARM
  19. The Research and Application of H.264/AVC Video Encoder Based on Embedded Platform
    DengZhengWei ·Donghua University ·2011 ·Master's thesis
  20. The Optimization and Realization of H.264 in DSP Platform