[Scummvm-cvs-logs] SF.net SVN: scummvm:[55348] scummvm/trunk/graphics/video
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Thu Jan 20 13:28:23 CET 2011
Revision: 55348
http://scummvm.svn.sourceforge.net/scummvm/?rev=55348&view=rev
Author: drmccoy
Date: 2011-01-20 12:28:22 +0000 (Thu, 20 Jan 2011)
Log Message:
-----------
VIDEO: Add hasVideo()
Modified Paths:
--------------
scummvm/trunk/graphics/video/coktel_decoder.cpp
scummvm/trunk/graphics/video/coktel_decoder.h
Modified: scummvm/trunk/graphics/video/coktel_decoder.cpp
===================================================================
--- scummvm/trunk/graphics/video/coktel_decoder.cpp 2011-01-20 10:21:27 UTC (rev 55347)
+++ scummvm/trunk/graphics/video/coktel_decoder.cpp 2011-01-20 12:28:22 UTC (rev 55348)
@@ -167,6 +167,10 @@
return (_features & kFeaturesPalette) != 0;
}
+bool CoktelDecoder::hasVideo() const {
+ return true;
+}
+
bool CoktelDecoder::hasSound() const {
return _hasSound;
}
@@ -2716,6 +2720,10 @@
return _subtitle;
}
+bool VMDDecoder::hasVideo() const {
+ return _hasVideo;
+}
+
bool VMDDecoder::isPaletted() const {
return _isPaletted;
}
Modified: scummvm/trunk/graphics/video/coktel_decoder.h
===================================================================
--- scummvm/trunk/graphics/video/coktel_decoder.h 2011-01-20 10:21:27 UTC (rev 55347)
+++ scummvm/trunk/graphics/video/coktel_decoder.h 2011-01-20 12:28:22 UTC (rev 55348)
@@ -90,6 +90,7 @@
const Common::List<Common::Rect> &getDirtyRects() const;
bool hasPalette() const;
+ virtual bool hasVideo() const;
bool hasSound() const;
bool isSoundEnabled() const;
@@ -355,7 +356,8 @@
int32 getSubtitleIndex() const;
- virtual bool isPaletted() const;
+ bool hasVideo() const;
+ bool isPaletted() const;
// VideoDecoder interface
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list