General-purpose programmable GPU- based video codec - Architecture , Algorithm and Implementation
- Author
- FangBo
- Advisor
- ChenHuiFang
- School
- Zhejiang University
- Major
- Communication and Information System
- Classification
- TN76 Modulation technique and the modulator,demodulator and the demodulator
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 805
- Citations
- 10
Abstract
With the development of digital TV and networks, commodity PC centered amusement fashion for digital home becomes a mainstream trend. How to implement low cost real-time encoding-decoding for high definition video under existing PC system without upgrading hardware, has come into a number of researchists’ notice.The appearance of programmable GPU (Graphics Processing Unit) provides a possible approach for solving the above problem. As the core processor of graphics card, GPU is traditionally in charge of 3D rendering. While, researchers discover GPU can take on some other tasks besides graphics rendering because of its programmable ability. General scientific calculation for GPU has become one of hot spots rapidly in computer science field. However, the study on applying GPU in video coding system is still very rare so far.This thesis presents a scheme that uses GPU as an effect co-processor for accelerating video encoding-decoding. For fully utilizing the powerful calculation capacity of GPU, we develop a parallel architecture for codec based on GPU+CPU system. We also advance a series of video coding algorithms that are fit for GPU. The results of experiments show our scheme can improve the encoding-decoding speed considerably compared with conventional codec for high definition video without upgrade existing hardware.The thesis briefly introduces the development of high definition video technique and the operation principle of programmable GPU in chapter one and two. The third chapter detailed discusses our MPEG2 encoder based on GPU. The chapter concretely analyzes its special parallel architecture, original ATSMVP, MCSAD and ZB-LMES algorithms and Bi-threads programming. Meanwhile, in the chapter, we analyze and compare the performance between our encoder and conventional encoder based on the future of encoding speed and SNR. The forth chapter describes our MPEG2 decoder for GPU in detail. The chapter expounds our hierarchical parallel architecture of decoder, original multiple channel algorithms and a load-balancing algorithm between GPU and CPU. Moreover, we compare the performance between our new decoder and tradition decoder in the forth chapter.Through the results of experiments and serious analysis, we come to the conclusion that the parallel codec based on GPU+CPU system has more high encoding-decoding speed for high definition video compared with conventional structured codec that has been optimized by SSE2. Meanwhile the new codec still can keep the high coding gain.
Table of contents
Abstract 2-3
ABSTRACT 3-4
directory 4-7
first chapter 7-18 <br / > 1.1 Introduction 7-8
1.2 real-time video codec challenges 8-10
1.2.1 for real-time encoding of high -definition video decoding the challenges posed 8-9
1.2.2 PC-centric high-definition video applications 9-10
1.3 GPU in the video codec the role 10-15
1.3.1 hardware decoding with DXVA 11-12
1.3.2 programmable 3D engine with GPGPU 12 - 14
1.3.3 programmable 3D engine in the field of video codec application status 14
1.3.4 with 3D accelerated video codec engine advantages and difficulties 14-15
1.4 thesis work with chapters arranged 15-18
Chapter 3D engine works with programming 18-29
2. a computer 3D rendering principle 18-19
2.2 3D engine working process 19-20
2.3 programmable engine 20-23 <br / > 2.3.1 vertex / pixel processor architecture and Shader Model 21-22
2.3.2 graphics processor features 22-23
2.3.3 depth testing and ZBuffer 23
2.4 DirectX Graphics Interface 23-27
2.4.1 High Level Shader language 24 < br /> 2.4.2 D3D program 's basic structure 24-26
2.4.3 rendering engine with 3D video 26-27
2.5 chapter Summary 27-29
Chapter GPU- based general-purpose programmable MPEG2 encoder 29-63
3.1 encoder parallel architecture 29-32 < br /> 3.1.1 conventional MPEG2 encoder architecture 29-30
3.1.2 GPU-based parallel architecture MPEG2 encoder 30-32
3. 2 is suitable for GPU encoding algorithm 32-45
3.2.1 adaptive motion vector prediction algorithm 33-35
3.2.2 multichannel SAD algorithm 35-37
3.2.3 motion estimation based on depth testing early termination algorithm 37-43
3.2.4 Search and unlimited sub-pixel accuracy motion vectors 43-45
3.2.5 algorithm applicability 45
3.3 encoder implementation 45-55
3.3 .1 dual-threaded program structure 46
3.3.2 main thread processes 46-47
3.3.3 sub-thread processes 47-49 < br /> 3.3.4 shared buffer and thread synchronization 49-51
3.3.5 Multiple Render Target 51-52
3.3.6 GPU the input data structure and texture coordinate mapping 52-54
3.3.7 2-Pass the MCSAD 54-55
3.4 encoder performance analysis 55-62
3.4.1 ATSMVP performance analysis 55-56
3.4.2 MCSAD performance analysis 56-57
3 .4.3 LMES performance analysis 57-59
3.4.4 encoder overall performance 59-60
3.4.5 bottlenecks and possible solutions 60-62
3.5 Summary 62-63
Chapter GPU- based general-purpose programmable MPEG2 decoder 63-89
4.1 decoder parallel architecture 63-65
4.1.1 traditional architecture 63-64
4.1.2 grading suitable for GPU CPU parallel architecture 64-65
4.2 for GPU decoding algorithms and techniques 65-79
4.2.1 PSC with VSC 65-68 <br / > 4.2.2 ZBuffer based classification algorithm 68-70
4.2.3 multi-channel two-step motion compensation 70-72
4.2. 4 programmable GPU- based IDCT algorithm 72-77
4.2.5 multichannel IQ 77-78
4.2.6 GPU and CPU load balancing 78-79
4.3 decoder implementation 79-82
4.3.1 GPU and CPU to achieve single-threaded parallel 79-80 <br / > 4.3.2 classification of granularity 80-81
4.3.3 floating point error issue 81-82
4.4 performance analysis and comparison 82-87
4.4.1 PSC, VSC with ZBC comparison 83-84
4.4.2 TSMCMC comparison with the single MC 84
4.4.3 GPU and the CPU on the IDCT on the IDCT 84-85
4.4.4 decoder overall performance 85-87
4.5 Chapter Summary 87-89
Chapter V Conclusion and Outlook 89-92
5.1 Conclusion 89-90
5. 2 Looking 90-92
References 92-95
Master during the reading of papers published 95-96
Thanks 96
Related dissertations
- The Research and Application of Gpu-Based Video Transcoding
- Research of Efficient Computing Method on GPU-based LS-SVM
- Research on Key Technologies of Network Traffic Analysis and System Implementation
- A Study of GPU-based Parallel Learning to Rank
- Optimization of CUDA-based Parallel SOM Algorithm and Its Application
- Research on GPU General Computing on Text Classification
- Research on GPU-based Flame Effects Technology
- Research on Fast Method for Triangular Mesh Recnostruction
- Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
- Research on Multimodal Visualization of Heart
- Image Super-resolution on Improvig Motion Estimation
- Design and Implementation of Image Matching Based Wavelet Transform
- Research on Osteosarcoma Medical Image Analysis System
- Design and Implementation of Parallel Image Processing Algorithms Based on GPU
- Design and Realization of2D Graphics Acceleration Module
- Research on Text Detecting and Removal in Video Image Based on CUDA
- Rapid Implementation of the Small Infrared Target Detection Algorithm on CUDA
- Parallel Face Detection CUDA Accelerating
- Research on Boundary Face Method Base on GPU-acceleration
- Research on Applying GPU Parallel Computation to Medical Image Processing