Research of Algorithm of Motion Estimation and Its Hardware Architecture Design for H.264
- Author
- ShangDi
- Advisor
- WangJinXiang
- School
- Harbin Institute of Technology
- Major
- Microelectronics and Solid State Electronics
- Classification
- TN919.81 Image coding
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 61
- Citations
- 1
- Motion Estimation
- Sub-Pixel Interpolation
- MTSS algorithm
- parallel-pipeline architecture
- motion compensation
Abstract
H.264 is the newest international video coding standard, which achieves much enhancement of the coding efficiencies by adopting some new tools as followed: multiple reference pictures, variable block-size in motion estimation, quarter-pixel accuracy for motion estimation, context-adaptive entropy coding and loop filter deblocking of small size of video block. But at the meal while, the complexity of the H.264 codec is several or more times higher than that of other standard So there exists great difficulty to realize the real-time video codec, and the design of the module of motion estimation is needed much more optimization. So we would do some study and optimization of the design of both the integer pixel and the fraction motion estimation.First of all, based on the analysis of several fast search algorithms and the Three Step Search algorithm, we propose a modified Three Step Search algorithm, which is based on the prediction of initial point and fit for being implemented with the hardware structure, and we also give the test data of C code of the modified algorithm and the search route of the algorithm of the big size video coding. The modified algorithm has the same matching accuracy with that of the Diamond Search algorithm, which is used commonly in the video codec, and the modified algorithm still holds the rectangle search mode of 9 points, which is easy to be implemented with hardware structure.Secondly, we propose the hardware structure of the Integer Motion Estimation block and the daughter blocks aim at the algorithm mentioned above, and show the wave of function emulator, synthesize report, and power report. In the part of Fraction Motion Estimation, our design can support the 1/2 pixel matching accuracy. In our motion estimation VLSI structure, we adopt sub-sampling and the extend sram buffer to optimize the area of sram and to reduce operation frequency of sram.Thirdly, based on the work of motion estimation, we optimize the structure of motion compensation, especially the pipeline structure of motion compensation, the assignment of data flow and sram, and the compatibility of the two standards (H.264 and AVS) being implemented in the same structure of motion compensation. Then, we provide a hardware structure with not much cost, which can support both H.264 and AVS standard.At last, we summarize the design work of this paper, and list the expectation of the future work.We can carry out the real time video coding of the video frequency with the hardware structure of this paper under 70M clock frequency, which support the format of CIF, two reference pictures, four kinds of block size motion estimation, rate distortion optimization, and half pixel matching accuracy.
Table of contents
Abstract 4-5
Abstract 5-9
Chapter 1 Introduction 9-17
1.1 topics background 9-10 < br /> 1.2 H.264 coding standard used to improve the efficiency of the main technical 10-12
1.2.1 intra prediction coding 10
1.2.2 interframe prediction coding technology 10-11
1.2.3 deblocking filtering technology 11
1.2.4 context-based adaptive entropy coding technique 11-12 <br / > 1.3 H.264 encoder among the major components of the composition and complexity analysis 12-13
1.4 H.264 encoder to achieve mainstream form 13-14
1.5 H .264 encoder motion estimation hardware circuit research 14-15
1.6 the research methods and thesis topic organizational structure 15
1.7 chapter Summary 15-17
Chapter 2 motion estimation algorithm analysis and optimization 17-34
2.1 Introduction 17
2.2 motion estimation algorithm outlined 17 -20
2.2.1 three-step search 17-18
2.2.2 hexagon search algorithm 18-19
2.2.3 diamond search algorithm 19
2.2.4 asymmetric hexagonal cross multi-level grid search algorithm (UMHexagonS) 19-20
2.3 rate-distortion optimization mode selection algorithm and image quality objective evaluation 20-22
2.3.1 highly complex pattern 20-21
2.3.2 low complexity mode 21
2.3. 3 image objective quality evaluation methods 21-22
2.4 variable size block motion estimation mode selection algorithm 22-23
2.5 variable block motion estimation suitable for hardware implementation improved three-step search algorithm 23-31
2.5.1 TSS algorithm analysis and forecasts point three-step method (PTSS) introduction . 23-24
2.5.2 improved three footwork made ??(MTSS) 24-26
2.5.3 MTSS -based variable size block motion estimation 26-28
2.5.4 rectangular search templates hardware can be realized analysis 28-29
2.5.5 algorithm Simulation results and analysis 29-31
2.6 applied to large -size images MTSS algorithm 31-33 <br / > 2.6.1 applied to large -size images MTSS algorithm 31
2.6.2 applied to large -size images MTSS algorithm performance analysis 31-33
2.7 Summary 33-34
Chapter 3 integer pixel motion estimation implementation module 34-47
3.1 Introduction 34
3.2 integer pixel motion estimation hardware to achieve the overall architecture 34-36
3.3 calculation processing unit and an array 36-37
3.4 reference block data and the current block data caching strategy 37-41
3.4. a general structure of the reference data caching strategy 38-39
3.4.2 the structure introduced in the reference block caching strategies 39-40
3.4.3 IME architecture cache architecture design 40-41
3.5 motion vector prediction and motion vector cost to obtain module 41-43
3.5.1 motion vector prediction module 41-42
3.5.2 consideration of the motion vector generation module 42
3.5.3 motion vector prediction module simulation waveforms 42-43
3.6 system control state machine design 43-46
3.6.1 system Control state machine conversion relationship 43-44
3.6.2 integer motion estimation cycle analysis 44-45
3.6.3 system Control state machine module timing simulation and hardware cost analysis 45-46
3.7 Chapter Summary 46-47
Chapter 4 fractional pixel motion estimation implementation module 47-60
4.1 1/2 pixel motion estimation hardware implementation of the overall architecture 47-48
4.2 1/2 pixel interpolation operation unit 48-50 <br / > 4.3 1/ 2 pixel motion estimation arrangements and cache data flow structure design 50-53
4.3.1 1/2 pixel motion estimation data flow arrangement 50-52 <br / > 4.3.2 1/2 pixel motion estimation cache design 52-53
4.4 FME main computing module design 53-57
4.5 FME module timing simulation and hardware cost analysis 57-58
4.6 Chapter Summary 58-60
Chapter 5 motion compensation structure optimization and design 60-74
5.1 decoding overall structure of the motion compensation is 60-62
5.1.1 to 16 × 16 macro block as a motion compensation processing unit, the smallest structure 61
5.1.2 to 8 × 8 block as the smallest motion compensation processing unit structure 61-62
5.2 reference pixel reading module analysis and optimization 62-65
5.2.1 several common reference design memory access optimization strategies 62-63
5.2.2 to 8 × 8 block as the smallest reference data processing unit reads the module design 63-64
5.2.3 two kind of reference data reading module performance comparison 64
5.2.4 to 8 × 8 block as the smallest processing unit reference data reading module is designed to optimize 64-65
5.2. 5 reference pixels read the module hardware resources and the number of clock cycles needed to assess 65
5.3 sub pixel interpolation and weighted prediction module analysis and optimization 65-70
5.3.1 sub- pixel interpolation module analysis and optimization 65-68
5.3.2 weighted prediction module design and optimization 68-70
5.3.3 sub- pixel interpolation and weighted prediction module hardware resources and the number of clock cycles needed to assess 70
5.4 H.264 and AVS motion compensation structure reusability analysis . 70-73
5.4.1 luminance interpolation unit reusability analysis 70-71
5.4.2 luminance interpolation module reusability analysis 71-73
5.5 chapter Summary 73-74 <br / > Conclusion 74-75
References 75-78
papers published during the study for a degree 78-80
Thanks 80
Related dissertations
- Research on Electronic Image Stabilization Algorithm Based on Gray-scale Projection
- Crucial Algorithm Research on Traffic Incident Detection System Base on Video Image
- The Study of Fast Dynamic Magnetic Resonance Imaging Based on Compressed Sensing Technique
- The Research of Electronic Image Stabilization Technology Based on FPGA
- Context-based Still and Aurora Image Compression
- Research of the Key Algorithms of H.264/AVC Encoder and Its VLSI Design
- Research on Moving Video Object Segmentation and Advanced Motion Estimation/Motion Compensation Algorithms
- Multi-frame with the sight of visual images of super-resolution reconstruction
- Quality, Complexity, and Bit-rate Control for Video Coding
- MPEG-2/MPEG-4 video encoder optimized code and the circulation
- Applications and Realization of Motion Estimation in Image Stabilization and Matching and Tracking
- Research on the Key Technologies of Digital Television System
- Research on Inter Prediction Engine for Real-Time High-Definition Video Encoders
- Research on Pixel Matching Computation Acceleration in Video and Image Processing
- Study on Motion Estimation Algorithm Based on H.264 Standard
- Study on Improved Feature Points Matching Algorithm in Electronic Image Stabilization
- DSP platform MPEG-4 video coding research and design
- The Study on Fast Motion Estimation Algorithm Based on AVS
- Research of Moving Objects Segmentation in Video Sequence
- The Optimization and Implementation of Motion Estimation and Motion Compensation in H.264 Video Compression Standard