IMAGE: Make Codec take a stream reference; change function name to decodeFrame

This commit is contained in:
Matthew Hoops 2014-02-27 21:27:24 -05:00
parent e6717aaf43
commit 08ea14a8d0
30 changed files with 290 additions and 291 deletions

View file

@ -59,8 +59,8 @@ void JPEGDecoder::destroy() {
_surface.free();
}
const Graphics::Surface *JPEGDecoder::decodeImage(Common::SeekableReadStream *stream) {
if (!loadStream(*stream))
const Graphics::Surface *JPEGDecoder::decodeFrame(Common::SeekableReadStream &stream) {
if (!loadStream(stream))
return 0;
return getSurface();