diff options
author | Matthew Hoops | 2009-08-30 19:47:14 +0000 |
---|---|---|
committer | Matthew Hoops | 2009-08-30 19:47:14 +0000 |
commit | d8e93836c5fdba3173d0b1934520a3cc1c298851 (patch) | |
tree | 1f96080f6e5fb47d17cbf2e2e15a349ba02af220 /graphics/video/msvideo1.h | |
parent | cc6e21635e45f4256f6be10e668743591170fe05 (diff) | |
download | scummvm-rg350-d8e93836c5fdba3173d0b1934520a3cc1c298851.tar.gz scummvm-rg350-d8e93836c5fdba3173d0b1934520a3cc1c298851.tar.bz2 scummvm-rg350-d8e93836c5fdba3173d0b1934520a3cc1c298851.zip |
Add an AVI player and MSVideo1 codec for use with some SCI Windows game (such as kq6).
svn-id: r43833
Diffstat (limited to 'graphics/video/msvideo1.h')
-rw-r--r-- | graphics/video/msvideo1.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/graphics/video/msvideo1.h b/graphics/video/msvideo1.h new file mode 100644 index 0000000000..676bc72c9f --- /dev/null +++ b/graphics/video/msvideo1.h @@ -0,0 +1,52 @@ +/* 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_MSVIDEO1_H +#define GRAPHICS_MSVIDEO1_H + +#include "graphics/video/avi_player.h" +#include "graphics/surface.h" + +namespace Graphics { + +class MSVideo1Decoder : public Codec { +public: + MSVideo1Decoder(uint16 width, uint16 height, byte bitsPerPixel); + ~MSVideo1Decoder(); + + Surface *decodeImage(Common::SeekableReadStream *stream); + +private: + byte _bitsPerPixel; + + Surface *_surface; + + void decode8(Common::SeekableReadStream *stream); + //void decode16(Common::SeekableReadStream *stream); +}; + +} + +#endif |