An Efficient Implementation of H.264/AVC Encoder Based on GPU
- Author
- LiZhiWen
- Advisor
- SunZhiXin
- School
- Nanjing University of Posts and Telecommunications
- Major
- Computer Software and Theory
- Classification
- TN919.81 Image coding
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 42
- Citations
- 0
Abstract
In the international video coding standard,H.264/AVC has attracted academia and business circles for its high image quality and high compression ratio.However,H.264 requires large and intensive computation,the existing serial encoder based on general-purpose processor can not meet the needs of real-time encoding for full HD video,while dedicated hardware encoder is also less than satisfactory with the inflexibility,long development time and high cost.Thus,it is eager to find an efficient implementation for H.264 coding.In the pure CPU platforms H.264 encoding process is extremely time-consuming, and this article analyze the coding process which exists the possibility of parallel modules from the traditional framework of H.264 encoding proceed, propose a GPU-based parallel encode device model PEM-BCUDA. According to the preliminary analysis, motion estimation and motion compensation, intra prediction, transform and quantization, loop filtering module has a large computation in the encode framework and contains parallel factor, so this paper processing unit for each separate analysis, to extract the module in the parallel model and map it to CUDA platform, and then evaluate accelerate results of each unit in the new platform. The reason to carry out system integration testing is to make the system more fit to CUDA platform, and achieve the maximum speedup of the encoding process.Finally, the paper proposed parallel encoder module and a detailed system evaluation, select Nvidia’s GT240 and GTX260+ as hardware support, and choose 720p YUV image sequence as video input.. The speedup of single module is very significant, for example the speedup of loop filter is achieved more than 60 times. Considering the PCI-E bus interactive transmission capacity is weak, we carry out the system integration testing. Experimental data show that when the module is integrated into the parallel encoder model PEM-BCUDA, the accelerate effect is significantly reduced, and finally in the same environment, the speedup is only about 2.5. When we input CIF or QCIF resolution images, the speedup or even less than 1. It indicates that acceleration with GPU is completely cancelled out by data transfer on PCI-E bus, so PCI-E data transfer capability to become the bottleneck of the whole system, so how to overcome the bottleneck caused by the restrictions is the next focus of the study.
Table of contents
Chinese abstract 4-5
ABSTRACT 5-8
Chapter 1 Introduction 8-11
1.1 subject background 8 -. . 10
1.2 sources and organizational structure issues in this article 10-11
chapter related technologies 11-25
2.1 GPU with CUDA programming model 11-18
2.1.1 GPU development history 11-13
2.1.2 CUDA hardware model 13-14
2.1.3 CUDA programming model 14-16
2.1.4 CUDA memory model 16-17
2.1.5 CUDA applied in the field of video coding problems 17-18
2.2 tradition serial H.264 encoder framework 18-22
2.2.1 multiple Reference Frame (MRFME) inter prediction 18-20
2.2.2 integer DCT and quantify 20-21
2.2.3 remove the blocking effect of loop filter 21-22
2.3 GPU accelerated H.264 encoding on the research achievements 22-24
2.3.1 GPU video compression research in terms of 22-23
2.3.2 H.264 optimization algorithm based on CUDA H.264 encoding and related research 23-24
2.4 Summary 24-25
Chapter III parallel CUDA H.264 encoder based model 25-39
3.1 encoder framework model analysis 25-26
3.2 MB level parallelism intra prediction 26-30
3.2.1 MB -level parallelism of intra prediction feasibility analysis 26 -28
3.2.2 macroblock level parallelism based on intra prediction parallel model 28-30
3.3 interframe prediction based MRFME 30-32
3.3 .1 MRFME inter prediction feasibility analysis 30-31
3.3.2 MRFME parallel model 31-32
3.4 sub-pixel interpolation - 1/ 4 sampling precision motion compensation 32-34
3.4.1 Central pixel motion compensated interpolation parallel feasibility analysis 32
3.4.2 Asia -pixel motion compensated interpolation parallel model 32 - 34
3.5 integer DCT transform and quantization 34-36
3.5.1 integer DCT transform and quantization parallel feasibility analysis 34-35
3.5.2 integer DCT and quantify the parallel model 35-36
3.6 to remove the blocking effect of loop filter 36-38
3.6.1 feasibility analysis of parallel loop filter 36 - 37
3.6.2 interlaced deblocking filter parallel model 37-38
3.7 Summary 38-39
Chapter IV parallel CUDA -based H.264 encoding device model implementation 39-52
4.1 inter prediction parallel implementation 39-41
4.1.1 to calculate the value of 8x8 sub-macroblock SAD 39-40
4.1.2 CUDA minimum SAD value based search 40-41
4.2 intra prediction model implementation 41-42
4.3 sub-pixel interpolation parallel implementation 42-44
4.4 DCT quantization and parallel implementations 44-45
4.5 parallel loop filter implementations 45-49
process optimization nbsp 4.6 kernel ; 49-51
4.7 Summary 51-52
Chapter V system test analysis 52-60
5.1 test environment 52 - 53
5.1.1 test sequence 52
5.1.2 software and hardware platforms 52-53
5.2 parallel encoder modules acceleration ratio test 53 -56
5.2.1 inter prediction experiment with sub-pixel interpolation MC 53-54
5.2.2 intra prediction experiment 54
5.2.3 DCT and quantification experiments 54-55
5.2.4 loop filter experiment 55-56
5.3 encoder integrated evaluation and the reasons 56-59
5.4 summary 59-60
Chapter VI summary and Outlook 60-63
6.1 summarizes 60-61
6.2 Prospects 61-63
Thanks 63-64
References 64-68
papers and studying for a master's degree during the patent 68-69 <br / > nbsp participate in research projects during the master's degree ; 69
Related dissertations
- A Study of GPU-based Parallel Learning to Rank
- Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
- Research on Boundary Face Method Base on GPU-acceleration
- Research of Image Registration and Mosaic Technology Based on GPU
- Study of adaptive beamforming processor based on GPU
- Research on Processing Methods of Data Stream Based on Parallel Computing
- The Research for Parallel Computing of Transient Stability Based on Symplectic Gauss Algorithm
- GPU-based Parallel Solution Algorithm for the Laser Radiation Symmetry Analysis on Capsule in Indirectly Driven
- Research on Parallel Computing for Groundwater Flow Spatial Data Simulation
- GPGPU-based Processing and Analysis of Large-scale Geographic Data
- The Implement of Independent Component Algorithm on the GPU
- Research on GPU-based Parallel Computing on BitTorrent Protocol
- The Crowd Simulation Under the Traffic Environment
- Research on JPEG2000Image Compression Technology Based on GPU
- Research and implementation of lossless compression algorithm based on GPU
- Capsule Endoscopy Image Workstation Design and System Implementation
- Research and Application of Three Common Types of File Security Mechanism
- Design of Multi-core Parallel Computing System for Backprojection Imaging
- Research of Granular Discrete Element’s Calculation Method Based on GPU
- Research on Passive Radar Signal Processing Platform Based on FPGA and GPU