scummvm/image/codecs/mjpeg.h

60 lines
1.5 KiB
C
Raw Normal View History

2014-01-18 01:57:45 +00:00
/* 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.
*
2014-01-18 01:57:45 +00:00
* 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.
*
2014-01-18 01:57:45 +00:00
* 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.
*
*/
2014-02-28 02:27:23 +00:00
#ifndef IMAGE_CODECS_MJPEG_H
#define IMAGE_CODECS_MJPEG_H
2014-01-18 01:57:45 +00:00
2014-02-28 02:27:23 +00:00
#include "image/codecs/codec.h"
2014-01-18 01:57:45 +00:00
#include "graphics/pixelformat.h"
namespace Common {
class SeekableReadStream;
}
namespace Graphics {
struct Surface;
}
2014-02-28 02:27:23 +00:00
namespace Image {
2014-01-18 01:57:45 +00:00
/**
* Motion JPEG decoder.
*
2014-02-28 02:27:25 +00:00
* Used by BMP/AVI.
2014-01-18 01:57:45 +00:00
*/
class MJPEGDecoder : public Codec {
public:
MJPEGDecoder();
~MJPEGDecoder();
const Graphics::Surface *decodeFrame(Common::SeekableReadStream &stream);
2014-01-18 01:57:45 +00:00
Graphics::PixelFormat getPixelFormat() const { return _pixelFormat; }
private:
Graphics::PixelFormat _pixelFormat;
Graphics::Surface *_surface;
};
2014-02-28 02:27:23 +00:00
} // End of namespace Image
2014-01-18 01:57:45 +00:00
#endif