H.264 software codec performance and optimization
- Author
- XiongZuo
- Advisor
- YuHongYang
- School
- University of Electronic Science and Technology
- Major
- Signal and Information Processing
- Classification
- TN911.2 Information Theory
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 474
- Citations
- 1
Abstract
Since the 1990s, JPEG, H.263, MPEG-1, MPEG-2 and other images multimedia international standards have been introduced, they successfully applied to a variety of practical situations. However, with the development of the times, the popularity of the Internet, and video transmission needs to continuously improve existing video compression standards obviously there are some flaws and limitations. In order to overcome these shortcomings, combined with the hardware and software development, ITU-T in the following H.261, H.263 video compression standard, developed a new generation of video compression standard, officially named as H.264. The new generation of standard H.264 can get better compression of image effects, has more features and greater flexibility. This paper first introduces the basic concepts and methods of the status of the development of multimedia technology and video compression, and then analyze the basic structure of the H.264 codec and implementation process, as well as the H.264 protocol used by some advanced technology, such as based on a variety of The motion vector of motion estimation module, the intra prediction, integer transform and deblocking filtering. Because of the H.264 with these new features, it can get excellent performance, the future will be more widely used. H.264 has many excellent properties, but it is the amount of computation is very large, its codec speed slower than under normal conditions, can not meet the requirements of practical applications. In this paper, a detailed analysis of the codec decoder, the encoder are used in a variety of ways to be optimized. Decoder: First adjust the decoding process flow, reducing access to the memory; integer transform and non-integer pixel interpolation operation using the MMX and SSE instructions to optimize; simple function to switch to some of the more frequent use embed inline assembly functions in the form of the decoder performance greatly improved. For ease of use, also the decoder package into library files, and for the player under the Windows environment. For similar parts of the encoder and decoder using the same method optimization. Part in its motion estimation for SAD value calculated using MMX instructions for parallel computing. Before and after optimization codec performance for comparison. The results indicate that the optimized codec to guarantee its good performance under the premise, to achieve the purpose of shortening the running time.
Table of contents
Chapter I outlines 8-14
1.1 video coding standard development 8-10
1.2 H.264 adopt new technologies 10-11
1.2.1 layered design 10
1.2.2 precision, various types of motion estimation 10-11
1.2.3 Integer Transform 11
1.2.4 Intra Prediction 11
1.3 Research objectives and work content 11-12
1.3.1 research objectives 11-12
1.3.2 work content 12
1.4 thesis is organized 12-14
Chapter II video compression principles and methods 14-21
2.1 Video Compression necessity and feasibility 14
2.2 Video Signal Overview 14-19
2.2.1 of the video signal color model 14-16 <br / > 2.2.2 The basic format of the video image 16
2.2.3 video signal evaluation criteria 16-17
2.2.4 Basic video compression coding technology 17-19
2.2.4.1 entropy coding 17-18
2.2.4.2 predictive coding 18
2.2.4.3 transform coding 18-19
2.3 Summary 19-21
Chapter H.264 decoder structure analysis and optimization process 21-49
3.1 decoder model structure analysis 21
3.2 decoder technology highlights 21-32
3.2.1 transform and quantization 22-26
3.2.1.1 4 × 4 residuals block transform and quantization (for numbers 0-15 and 18-25 blocks) 22-25
3.2.1.2 4 × 4 luminance DC coefficient transform and quantization (ID -1) 25
3.2.1.3 2 × 2 chroma coefficient changes and quantify 25-26
3.2.2 intra-coded macroblock prediction 26-27 <br / > 3.2.2.1 4 × 4 luma prediction mode 26
3.2.2.2 16 × 16 luminance prediction mode 26-27
3.2.2.3 chroma prediction mode 27
3.2.3 inter-coded macroblock prediction 27-29
3.2.3.1 tree-structured motion compensation 28-29
3.2.3.2 Movement vector prediction 29
3.2.4 deblocking filter system 29-32
3.2.4.1 boundary threshold determination 30-31
3.2 .4.2 under boundary filtering strength 31-32
3.3 decoder performance testing and analysis 32-33
3.4 decoder optimization process 33-47
3.4.1 decoding flow adjustment 33-34
3.4.2 macroblock decoding function to modify 34-35
3.4.3 Using SIMD instruction sets parallel processing 35-44
3.4.3.1 SIMD instruction describes 35-38
3.4.3.2 4 × 4 block inverse transform operation MMX optimized 38 -42
3.4.3.3 non-integer pixel interpolation 42-44
3.4.4 deblocking filter optimization 44-45
3.4.5 Other improvements in decoding program 45-47
3.5 optimization results and performance comparison 47-49
Chapter H.264 encoder structural analysis and optimization process 49-60
4.1 encoder structure 49-50
4.2 motion estimation search method 50-53
4.2.1 block-matching criteria 50-51
4.2.2 usual search methods 51-53
4.2.2.1 full search method (FS, Full Search) 51
4.2.2.2 three step search (TSS, Three Steps Search) 51-52
4.2.2.3 Diamond Search method (DS, Diamond Search) 52-53
4.3 JM model uses search Method 53-58
4.3.1 Initialization based prediction information search center 54-56
4.3.2 Asymmetric Cross Search (Unsymmetrical-cross search) 56
4.3.3 uneven multi-hexagon grid search (Uneven Multi-Hexagon-grid Search) 56-57
4.3.4 extended hexagon search (EHS, Extended Hexagon- based Search) 57-58
4.4 motion search optimization methods 58-59
4.5 optimization results and performance comparison 59-60
fifth Chapter H.264 decoder library file to use 60-67
5.1 interface function information 60-62
5.2 H.264 Video Player Profile 62 -63
5.3 image subjective comparison test 63-67
Chapter Summary and Outlook 67-69
6.1 full summary of the work 67 - 68
6.2 Future research prospects 68-69
References 69-71
Appendix 71
biographical 71
published during the master's degree thesis 71-72
Related dissertations
- Vehicle Wireless Video Monitoring System Based on Improved H.264Motion Estimation Algorithm
- Research on Moving Weak Small Target Detection in High Clutter Backgrounds
- Image Super-resolution on Improvig Motion Estimation
- Research on Electronic Image Stabilization Algorithm Based on Gray-scale Projection
- A Study of the Frame-Rate Up-Conversion Algorithm Based on Precise Motion Estimation
- Video Super Resolution Technology Based on Compressive Sensing
- Combined Motion Estimation and Wavelet Domain Video Denoising
- Study of Video Super Resolution Reconstruction Technology
- Motion Segmentation and Motion Estimation Based on2D/3D Videos
- Research on Face Super Resolution Reconstruction in Image and Video Sequences
- Research on Algorithms for Super-resolution Reconstruction of Video Sequences
- Crucial Algorithm Research on Traffic Incident Detection System Base on Video Image
- To achieve subpixel algorithm for tracking and DSP
- Fast Bit-Plane Matching and Matching Pictures with Different Exposures in High Dynamic Video
- Image and Video De-hazing Based on an Improved MSR Algorithm
- The Design and Implementation of Vector Memory Unit of Multi-Width SIMD DSP
- The Design and Implementation of High-performance fixed-point Arithmetic Unit for SIMD DSP
- Design and Implemtation of BP Component and Shuffle Unit in YHFT-Matrix Processor
- Electronic Image Stabilization Method Based on Block Matching and Random Ferns
- Research and Parallel Implementation of Motion Estimation Used in Video Encoding