The Realization of Video Compression Arithmetic based on Blackfin-533 DSP
- Author
- PangZhiNian
- Advisor
- WangShiGang
- School
- Jilin University
- Major
- Signal and Information Processing
- Classification
- TN919.81 Image coding
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 409
- Citations
- 2
Abstract
In Recent years, the development of multimedia leads to the rapidly increasement of multimedia data. Image data is the most enormous data among all types of data. Because of the image data is very huge, we can not solve the problem of storage and network transfers depend on increase disk space or enlarge network bandwidth simply. So, we have to compress image before it been transfered. Furthermore, we need real-time compress image data in some special occasions, such as net meeting, real-time monitor. In this article, we studied a method of how to realize the MPEG-4 on BF533 to realize the real-time compress image data based on the characters of ADSP-BF533. MPEG-4 is an international standard that was established by Moving Pictures Experts Group, one of ISO groups, in 1999. It is a stand that fits low rate transfers. MPEG-4 has many advantages in image compress aspect. First, it is based on content and has strong random storage ability. Second, it can offer high compression ratio. Third, it has diversiform storage and access methods. Furthermore, MPEG-4 has a little effect on the quality of pictures while it offers high compression ratio, so it is the reason that MPEG-4 has been used widely. Because of the technology of image segmentation is not mature enough that it is impossible to realize the alternation based on content. In fact, we use the image segmentation technology based on rectangle in this article. There exit strong time relativity and space relativity among image sequences, so we can use some arithmetics reasonably to reduce time redundancy and space redundancy effectively. These arithmetics include move estimation, move compensation, direct current and alternating current prediction, DCT transform, quantization and Variable Length Coding, etc.The move estimation and the move compensation are important parts in reduce picture’s time redundancy. They use the character of time relativity of image data. They use reference frame to predict current frame, and they only encoding the difference of the two frames. So it reduced the encoding data efficiently and it plays an important part in reduce time redundancy. On the other hand, the arithmetics of direct current, alternating current prediction, DCT transformation, quantization and Variable Length Coding use the character of space relativity to deal with data and reduce space redundancy. Digital signal processing (DSP) is one of the most powerful technologies in today’s world. It relates to many subjects, and it has been used in many scientific and project fields, such as communication, medicine imaging, radar, sonar, high fidelity music rebuild and petroleum prove, etc. And it also has been used in image process. We may have special needs in many situations, such as video monitor and net meeting. In these situations, we need real-time handle image data. Because of DSP has high frequency and low price, it has been used widely. It especially fits for low power, little size and fast network video equipment and wireless handset equipment. The excellent performances and low price of Blackfin series DSP of ADI Corporation makes it focused more and more attention. The series DSP of Blackfin adopt the micro signal architecture (MSA) exploited by ADI corporation and Intel corporation. It is a combination unit with the advantages of double MAC engines, concision correctitude dictate collection that like RSIC microprocessor and single instruction multi data (SIMD) multimedia. It is a sort of single instruction collectivity system structure. The MAC of Blackfin series DSP can accomplish an multiplication operation of 16 bits multiply 16 bits in one clock cycle and adds the result to forty-bit accumulator. The chip was made according the integrate circuit techniques of 0.18/0.13um, its tiptop work frequency can reach to 600MHZ and its peak operation ability can reach to 1200MMAC. So it can satisfy the real-time need of multimedia application for MPEG-2 and MPEG-4 absolutely. In this article, we realize the image data real-time compression mainly by the followed several steps. First, we need debug c program on PC successfully. For predigest, we only set some basic parameters when setting parameters, such as input file name, output file name and picture size. So we can find the core parts of this c program in order to pick them up and used in DSP. And we can do some optimizations such as turn some constants that often been used into global constants. Second, we should debug the program in DSP after it has been debugged in PC successfully. Therefore, we should build a “*.ldf ”file to distribute the storagespace of DSP in order to avoid address overflow when the program is been debugged. Because of the storage space of DSP is limited, so we can not storage all data in internal memory, so we have to leave some tables in SDRAM. Third, do some optimize based on ADSP-BF533. In this step, we mainly do some optimize on some functions been used frequently. We can use assemble language instead of c language and also can we use some special multimedia statements. We should use parallel clauses as possible as we can. Generally speaking, one sentence is formed by one operation clause and two storage clauses and they are parallel operated. By doing so, the need of pipeline can be maximum satisfied and it can enhance encoding speed. Furthermore, we must set hardware reasonably. In this article, we use PLL set system clock and core clock in order to enhance system capability as possible as we can while the need of hardware been satisfied. After those three steps, we can basically realize the image data real-time compress based on ADSP-BF533. At the end of this article, we use some standard test sequences to do some tests and through the results of these tests we believe that it is possible to realize image data real-time compression based on ADSP-BF533. In this article, we compress image sequence about fifteen frames per second, although it does not meet the need of twenty-five frames per second, but it is relative reached that target, I believe we can reach that target finally via optimize the program further and make further use of the advantages of hardware.
Table of contents
Chapter 1 Introduction 7-10
1.1 Thesis background and significance 7-8
1.2 project work and significance 8-10
Chapter 2 Multimedia video compression technology 10-20
2.1 image sampling format 11-12
2.2 data compression , and compression means 12-13
2.3 Research and MPEG video coding standard evolution 13-20
2.3.1 MPEG family of standards Introduction 14-15
2.3.2 MPEG-4 Technical Features 15-16
2.3.3 MPEG-4 video encoding core ideas and key technology 16-18
2.3.4 MPEG-4 applications 18-20
Chapter 3 video encoder hardware structure 20-36
3.1 development platform video encoder overall framework 21
3.2 ADSP-BF533 DEMO board structure diagram 21-23
3.3 MSA structure of high-performance DSP core 23-27
3.3.1 arithmetic unit 24
3.3.2 pipeline and branch 24-27
3.3.3 Data storage structure 27
3.4 register file 27-30
3.5 Phase-Locked Loop PLL 30-32
3.6 development tools 32-36
3.6.1 integrated debugging environment Visual DSP 3.1 33-34
3.6.2 emulator (EZ-ICE) 34-36
Chapter 4 video encoder software design 36-57
4.1 Video Object Extraction technology 37-38
4.2 video object plane coding techniques 38
4.3 scalable video coding technologies 38-39
4.4 motion estimation and motion compensation technology 39-47
4.4.1 Motion Estimation 40-47
4.4.2 motion compensation technology 47
4.5 DCT and IDCE 47-50
4.6 quantify 50
4.7 AC-DC prediction 50-51
4.8 Zigzag scan and VLC 51-53
4.9 half- pixel interpolation 53-55
4.10 PSNR and bit rate calculations 55
4.11 rate control 55-56
4.12 C program to optimize design of the main ideas 56-57
Chapter 5 Results and Prospects 57-64
5.1 compared before and after optimization 58-61
5.1.1 coding time before and after optimization compared 58-59
5.1.2 optimized for different video sequences encoding time compared 59-60
5.1.3 optimized encoding different parts of the proportion of time 60-61
5.2 bitrate test 61-63
5.2.1 the same sequence at different bit rate comparison 61-62
5.2.2 different sequences at the same bit rate comparison 62-63
5.3 Summary and Outlook 63-64
References 64-68
Summary 68-71
Abstract 71-74
Thanks 74-76
Related dissertations
- DSP platform MPEG-4 video coding research and design
- Research on Moving Video Object Segmentation and Advanced Motion Estimation/Motion Compensation Algorithms
- Video Encode Algorithm in Video Monitoring System Based on MPEG-4
- MPEG-1/2 to MPEG-4 Multimedia Stream Transcoding
- The Research and the Realization of MPEG-4’ Video Compression Algorithm
- MPEG-4 video encoding optimization
- Research on Electronic Image Stabilization Algorithm Based on Gray-scale Projection
- Crucial Algorithm Research on Traffic Incident Detection System Base on Video Image
- Research and Implementation on the MFHS Algorithm Based on H.264
- Adaptive Motion Estmation Search Algorithm for Video Compression Technology Based on MPEG-4
- Study on Video Compression Based on Elastic Motion Model
- 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
- Logic Design and Verification of Motion Estimation Algorithm Based on MPEG-4
- Research of Acceleration Algorithms of Motion Estimation Based on H.264
- Design and Implementation of Ethernet Video Services Terminal on Blackfin DSPs
- Research and Detailed Design on Inter-frame Prediction Module in Real-time H.264HD CODEC
- Optimize and study the algorithm of motion estimation in video compression
- Stereo video compression based on Fractal