The H.264 decoder DSP transplant and optimization
- Author
- LiJie
- Advisor
- CaiCanHui
- School
- Huaqiao University
- Major
- Applied Computer Technology
- Classification
- TN76 Modulation technique and the modulator,demodulator and the demodulator
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 553
- Citations
- 5
Abstract
Based on its high compression ratio and better image quality, the new standard of video compression, H.264 has been widely accepted and used in many applications. However, the better capabilities of H.264 are in the cost of the increment of computational complexity. As a result, common used platforms can not satisfy the requirement of the high computational complexity. DSP chips with fast speed and low resource consumption have performed excellently in many fields. With its strong parallel processing ability and signal processing capacity, the C64 series chips of TI corporation is an ideal platform to run H.264 CODEC. Based on the study of H.264 standard testing codes, jm81a and the hardware structure of the DSP chip, this paper proposed a method to migrate H.264 decoder from VC++ platform to the DAM6416P platform of the wintech corporation and the techniques of optimization of the migrated program. Some experimental results are presented to verify the effectiveness of the optimization.The video compression standard, H.264is discussed in some detail and some new features in H.264, i.e. intra prediction, integer transform, 1/4 resolution search, are analyzed at length. From the view point of compression efficiency and computational complexity, the future of DSP based H.264 CODEC is also discussed.It is specified that how to migrate H.264 testing codes jm81a from PC platform to the wintech DAM6416P platform and how to optimize the migrated CODEC at length. During the migration, the memory assignment, access mode and variable definition etc. must be modified in context of the difference between the VC compiler of PC and DSP, and the scarcity of DSP resource.Program optimization is the key point in the realization of H.264 CODEC. How to accelerate the decoding speed by making maximum use of advantages of C64 processor is the most important issue in this paper. H.264 testing codes pay too muchattention to readability, ignoring the realtime requirement as a video CODEC. As a result, time-wasted in some modules are quite a little. To speed up decoding time, some measures of embedded system programming and optimization are used in this paper. A series of optimization skills such as the adjustment of the structure of codes, the modification of memory assignment, data packing, inline assembly and application of pipeline are adopted in the optimization procedures.Compared the result by the first migrated version of program with the results by the optimized one, the clock cycles of bottleneck functions have significantly decreased. We have cut down the decoding time for a few frames from 1/8 frame per second to 8 frame per second with almost sixty times of speed up in decoding .
Table of contents
Chapter Introduction 10-12
1.1 Current status of 10-11
1.2 The main contents and arrangements 11-12
the H.264 standard outlined 12-55
2.1 H.264 Introduction 12-25
2.1.1 H.264 standard formulation and development process 12-13
2.1.2 H.264 and other video compression standards comparison the 13-15 structure
2.1.3 H.264 stream 15-18
2.1. 4 main technical improvements the 18-25 2.2 intra prediction
25-33
2.2.1 4 × 4 luminance prediction 26-30
2.2 .2 16 × 16 luminance prediction 30-32
2.2.3 8 × 8 chroma prediction 32
2.2.4 coding prediction mode 32-33 < br /> 2.3 interframe prediction 33-41
2.3.1 1/4 pixel accuracy motion estimation 34-37
2.3.2 variable size fast motion estimation 37-39
2.3.3 multi-frame reference prediction a 39-40
2.3.4 motion vector of predicted 40-41
2.4 transform to quantify and transform and quantization of the loop filter 41-50
2.4.1 the 41-49
2.4.1.1 4 × 4 integer transform 42-44 <br / > 2.4.1.2 quantify 44-47
2.4.1.3 4 × 4 the Brightness fast the DC coefficients Hadamard transform, quantization 47-48
2.4.1.4 2 × 2 chroma fast DC coefficient Hadamard transform, quantization the 2.4.2 loop filter 48-49
49-50
2.5 entropy coding 50-55
2.5.1 Exp-Golomb code 50-51
2.5.2 CAVLC 51-53
2.5.3 CABAC, 53-55
third Chapter DSP processors and development platforms 55-66
3.1 DSP processor Introduction 55-59
3.1.1 DSP processor characteristics 55-58 < br /> 3.1.2 TMS320C64x DSP introduced 58-59
3.2 DAM6416P development platform 59-62
3.3 C6000 DSP software development 62-66 <br / > 3.3.1 software development process 62
3.3.2 development tools 62-66
Chapter algorithms DSP porting and optimization 66-97
4.1 H.264 decoder transplant the
the 4.1.1 library file and header file changes 66-69 66-67
4.1.2 Variable Access adjustment the 67-68
4.1.3 storage space allocated 68-69
4.2 H.264 decoder the optimization on DAM6416P 69-97
4.2.1 Project-level optimization 69-71
4.2.2 C language level optimization 71-85
4.2.2.1 DSP C language programming Note 71 -74
4.2.2.2 to reduce redundant code 74-75
4.2.2.3 data type adjustment 75-76
4.2.2.4 storage space optimization and program scheduling 76-80
4.2.2.5 program structure optimization 80-83
4.2.2.6 Other optimization techniques 83-85
4.2.3 assembly language level optimization 85-93
4.2.3.1 C Language and hybrid programming linear assembly 85-87
4.2.3.2 instruction parallelism and data packaged 87-88
4.2.3.3 software pipelining technology the 88-93 4.2.4 optimization results
Analysis 93-97
conclusion 97-99
References 99-103
Acknowledgements 103-104
Related dissertations
- Research of Video Compression on Micro-UAV
- The Research and Realization of AVS Video Encoder Based on TMS320C6474
- Research on the Optimization of the System of Urban-rural Integrated Residents Social Pension Insurance of Laiwu City
- Optimization Study of a Insurance Company Ningxia Branch’s Business Structure
- The Optimization of Fund Contract in the Perspective of Governance Structure
- The Personal Loans Centre Process Optimization Study of Ccb Shaanxi Branch
- Research on Optimization of commercial bank loans business processes Chinese micro enterprise
- Optimization of Commercial Bank Credit Rating Index System for SMEs
- An Optimization Study on Proscenium Support Facilities of Commercial Banks on Queuing Theory
- The Credit Process Optimization of A Bank
- The branches of commercial banks, credit risk management process - a case study of A bank D branch cases
- The Research of Mode of Corporate Governance of China’s Trust Industry Defect and Optimization
- Under the New Situation of the International Monetary System Unbalance Influence on China’s Foreign Exchange Reserves and Its Optimization
- The Study on Constructing Harmony in Urban Communities
- An Investigation of the Management System of Yancheng Local Tax Inspection
- Based on the Subjective Well-being to Optimize the China’s Rural Public Expenditure
- Research on China’s Tax Cost and Optimization
- Analysis on Tax Scale Optimization of Liaoning Province
- Study on the optimization of tax system of China's current stock market
- The Optimal Decision of Slotting Fee and Percentage of Revenue under the Consignment Model