aboutsummaryrefslogtreecommitdiff
path: root/image/codecs/indeo4.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-05 13:34:33 -0400
committerPaul Gilbert2016-09-10 10:07:53 -0400
commit73e79031865a71dd5ced18fe3269f79ceba6e08c (patch)
treefd0a7a29904346f95daf913a8efdb8a58eb3d296 /image/codecs/indeo4.h
parentd3d0819b00c0dddcb35d99561c2eeadf04791190 (diff)
downloadscummvm-rg350-73e79031865a71dd5ced18fe3269f79ceba6e08c.tar.gz
scummvm-rg350-73e79031865a71dd5ced18fe3269f79ceba6e08c.tar.bz2
scummvm-rg350-73e79031865a71dd5ced18fe3269f79ceba6e08c.zip
IMAGE: Beginning of Indeo 4 decoder, added GetBits class for reading bits
Diffstat (limited to 'image/codecs/indeo4.h')
-rw-r--r--image/codecs/indeo4.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/image/codecs/indeo4.h b/image/codecs/indeo4.h
new file mode 100644
index 0000000000..44007e08b8
--- /dev/null
+++ b/image/codecs/indeo4.h
@@ -0,0 +1,64 @@
+/* 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.
+ *
+ */
+
+#include "common/scummsys.h"
+
+/* Intel Indeo 4 decompressor, derived from ffmpeg.
+ *
+ * Original copyright note:
+ * Intel Indeo 4 (IV31, IV32, etc.) video decoder for ffmpeg
+ * written, produced, and directed by Alan Smithee
+ */
+
+#ifndef IMAGE_CODECS_INDEO4_H
+#define IMAGE_CODECS_INDEO4_H
+
+#include "image/codecs/codec.h"
+#include "graphics/managed_surface.h"
+
+namespace Image {
+
+/**
+ * Intel Indeo 4 decoder.
+ *
+ * Used by AVI.
+ *
+ * Used in video:
+ * - AVIDecoder
+ */
+class Indeo4Decoder : public Codec {
+public:
+ Indeo4Decoder(uint16 width, uint16 height);
+ ~Indeo4Decoder();
+
+ const Graphics::Surface *decodeFrame(Common::SeekableReadStream &stream);
+ Graphics::PixelFormat getPixelFormat() const { return _pixelFormat; }
+
+ static bool isIndeo4(Common::SeekableReadStream &stream);
+private:
+ Graphics::PixelFormat _pixelFormat;
+ Graphics::ManagedSurface *_surface;
+};
+
+} // End of namespace Image
+
+#endif