Inlämning av Examensarbete / Submission of Thesis

Jonas Petersson , pp. 36. COM/School of Computing, 2012.

The work

Författare / Author: Jonas Petersson
Titel / Title: Real-time JPEG based video decoding on mobile phone hardware using C# and XNA 4.0
Abstrakt Abstract:

Using the mobile phone to play games is very common today. The development is going forward, which has increased the demands from the users. Demands such as; increased visual appearance, faster feedback and improved interactive possibilities. To meet with these requirements a more powerful computer can facilitate the work for the mobile phone, for example rendering a game and sending the image data to the phone using wireless communication. The phone can then decode and display the image on its screen.
The main object for this thesis is to implement a JPEG based decoder on Windows-based phones using C# and XNA 4.0. The decoder is based on an existing C++ implementation, which follows the JPEG standards.
The need of an 8x8 matrix made the existing XNA matrix inapplicable, which lead to the use of own defined matrices instead. Even though it seemed promising, the matrices that were own defined were too slow and created a bottleneck in the decoding process.
C# is not efficient at iterating through arrays with lots of data. An XNA based stream to decode the compressed image data made it possible to decode the image without using the matrices, and resolve the bottlenecks.
The FromStream method is in some cases almost nine times faster than the own implementation, the bottlenecks are for the mostly found in the matrix calculations.
When possible, use C++ when creating applications, it handles large amounts of data much faster than equal C# applications, unfortunately C++ will not work on all devices, such as Windows based phones.

Ämnesord / Subject: Spelutveckling - Digital Game Development
Datavetenskap - Computer Science\General
Datavetenskap - Computer Science\Networks and Communications
Nyckelord / Keywords: JPEG, decoding, XNA 4.0, mobile, phone, real-time, C#, streaming

Publication info

Dokument id / Document id: houn-8vxa97
Program:/ Programme Spelprogrammering/Digital Game Development
Registreringsdatum / Date of registration: 07/06/2012
Uppsatstyp / Type of thesis: C-Uppsats


Handledare / Supervisor: Hans Tap, Stefan Petersson,
Examinator / Examiner: Stefan Johansson
Organisation / Organisation: Blekinge Institute of Technology
Institution / School: COM/School of Computing

+46 455 38 50 00

Files & Access

Bifogad uppsats fil(er) / Files attached: bth2012petersson.pdf (1683 kB, öppnas i nytt fönster)