diff options
| author | Matthew Hoops | 2011-07-02 22:05:45 -0400 |
|---|---|---|
| committer | Johannes Schickel | 2012-03-20 01:06:48 +0100 |
| commit | 765a8704454d705acc9ce5aa7a90c1c3079fb989 (patch) | |
| tree | ffb665cb56dc0b28b208ef13f5e0e75ed477fa7e /engines/groovie | |
| parent | 4516b5ea24e6c0056984a65fe4fff33553931487 (diff) | |
| download | scummvm-rg350-765a8704454d705acc9ce5aa7a90c1c3079fb989.tar.gz scummvm-rg350-765a8704454d705acc9ce5aa7a90c1c3079fb989.tar.bz2 scummvm-rg350-765a8704454d705acc9ce5aa7a90c1c3079fb989.zip | |
GRAPHICS: Convert JPEG to the ImageDecoder API
Diffstat (limited to 'engines/groovie')
| -rw-r--r-- | engines/groovie/roq.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/groovie/roq.cpp b/engines/groovie/roq.cpp index 53f335ce68..8da8671b5d 100644 --- a/engines/groovie/roq.cpp +++ b/engines/groovie/roq.cpp @@ -30,8 +30,8 @@ #include "common/debug.h" #include "common/textconsole.h" -#include "graphics/jpeg.h" #include "graphics/palette.h" +#include "graphics/decoders/jpeg.h" #ifdef USE_RGB_COLOR // Required for the YUV to RGB conversion @@ -435,8 +435,8 @@ bool ROQPlayer::processBlockStill(ROQBlockHeader &blockHeader) { warning("Groovie::ROQ: JPEG frame (unfinshed)"); - Graphics::JPEG *jpg = new Graphics::JPEG(); - jpg->read(_file); + Graphics::JPEGDecoder *jpg = new Graphics::JPEGDecoder(); + jpg->loadStream(*_file); byte *y = (byte *)jpg->getComponent(1)->getBasePtr(0, 0); byte *u = (byte *)jpg->getComponent(2)->getBasePtr(0, 0); byte *v = (byte *)jpg->getComponent(3)->getBasePtr(0, 0); |
