
2
VI
Real-Time JPEG Compression
Using DirectCompute
Stefan Petersson
Transporting frames within a DirectX application to a target destination is a
nontrivial task. For example, both low latency and available bandwidth are im-
portant factors when streaming image frames via a network connection. By using
the technique presented in this chapter, JPEG image data can be encoded in real
time. The resulting data may thereafter be streamed to a network destination,
saved as an image file, or appended to a movie sequence.
2.1 Introduction
Since the advent of DirectCompute, it is possible to execute more general algo-
rithms using Direct3D with full cross-vendor