diff options
author | Matthew Hoops | 2010-05-23 18:33:55 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-05-23 18:33:55 +0000 |
commit | 2f31b05651baf87ea07bc00cced798955a5fa6be (patch) | |
tree | eedade6bd746422fe45e8c48c76d1dd667a45b20 /graphics/video/codecs/mjpeg.h | |
parent | e2a388e2f59f689cd89995013236e90a1b004264 (diff) | |
download | scummvm-rg350-2f31b05651baf87ea07bc00cced798955a5fa6be.tar.gz scummvm-rg350-2f31b05651baf87ea07bc00cced798955a5fa6be.tar.bz2 scummvm-rg350-2f31b05651baf87ea07bc00cced798955a5fa6be.zip |
Move Mohawk's QuickTime code to graphics/ (and QDM2 to sound, disabled when Mohawk is not enabled) so SCI can use the code.
svn-id: r49165
Diffstat (limited to 'graphics/video/codecs/mjpeg.h')
-rw-r--r-- | graphics/video/codecs/mjpeg.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/graphics/video/codecs/mjpeg.h b/graphics/video/codecs/mjpeg.h new file mode 100644 index 0000000000..ab364fb5be --- /dev/null +++ b/graphics/video/codecs/mjpeg.h @@ -0,0 +1,58 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + * + */ + +#ifndef GRAPHICS_MJPEG_H +#define GRAPHICS_MJPEG_H + +#include "common/scummsys.h" +#include "common/stream.h" + +#include "graphics/video/codecs/codec.h" +#include "graphics/jpeg.h" +#include "graphics/pixelformat.h" + +namespace Graphics { + +// Motion JPEG Decoder +// Basically a wrapper around JPEG which converts to RGB and also functions +// as a Codec. + +class JPEGDecoder : public Codec { +public: + JPEGDecoder(); + ~JPEGDecoder(); + + Surface *decodeImage(Common::SeekableReadStream *stream); + PixelFormat getPixelFormat() const { return _pixelFormat; } + +private: + PixelFormat _pixelFormat; + JPEG *_jpeg; + Surface *_surface; +}; + +} // End of namespace Graphics + +#endif |