[xiph-commits] r7728 - trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraDecoder

illiminable at motherfish-iii.xiph.org illiminable at motherfish-iii.xiph.org
Thu Sep 9 11:00:43 PDT 2004


Author: illiminable
Date: 2004-09-09 11:00:43 -0700 (Thu, 09 Sep 2004)
New Revision: 7728

Modified:
   trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraDecoder/TheoraDecodeFilter.cpp
   trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraDecoder/TheoraDecodeFilter.h
Log:
* Removed quality control.
* Now works in WMP 9 and 10 properly.
* Doesn't seek in WMP9 & 10 yet... but can still seek in all other ds players and WMP 6+

Modified: trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraDecoder/TheoraDecodeFilter.cpp
===================================================================
--- trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraDecoder/TheoraDecodeFilter.cpp	2004-09-09 17:48:35 UTC (rev 7727)
+++ trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraDecoder/TheoraDecodeFilter.cpp	2004-09-09 18:00:43 UTC (rev 7728)
@@ -54,7 +54,7 @@
 
 
 TheoraDecodeFilter::TheoraDecodeFilter() 
-	:	CVideoTransformFilter( NAME("Theora Decode Filter"), NULL, CLSID_TheoraDecodeFilter)
+	:	CTransformFilter( NAME("Theora Decode Filter"), NULL, CLSID_TheoraDecodeFilter)
 	,	mHeight(0)
 	,	mWidth(0)
 	,	mFrameSize(0)
@@ -607,7 +607,7 @@
 			//Failed... should never be here !
 			throw 0;
 		}
-		return CVideoTransformFilter::SetMediaType(PINDIR_INPUT, inMediaType);
+		return CTransformFilter::SetMediaType(PINDIR_INPUT, inMediaType);//CVideoTransformFilter::SetMediaType(PINDIR_INPUT, inMediaType);
 	} else {
 		debugLog<<"Setting Output Stuff"<<endl;
 		//Output pin SetMediaType
@@ -617,7 +617,7 @@
 		mFrameSize = (unsigned long)locVideoHeader->bmiHeader.biSizeImage;
 
 		debugLog<<"Size = "<<mWidth<<" x "<<mHeight<<" ("<<mFrameSize<<")"<<endl;
-		return CVideoTransformFilter::SetMediaType(PINDIR_OUTPUT, inMediaType);
+		return CTransformFilter::SetMediaType(PINDIR_OUTPUT, inMediaType);//CVideoTransformFilter::SetMediaType(PINDIR_OUTPUT, inMediaType);
 	}
 }
 
@@ -633,7 +633,7 @@
 	return true;
 }
 BOOL TheoraDecodeFilter::ShouldSkipFrame(IMediaSample* inSample) {
-	m_bSkipping = FALSE;
+	//m_bSkipping = FALSE;
 	debugLog<<"Don't skip"<<endl;
 	return FALSE;
 }

Modified: trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraDecoder/TheoraDecodeFilter.h
===================================================================
--- trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraDecoder/TheoraDecodeFilter.h	2004-09-09 17:48:35 UTC (rev 7727)
+++ trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraDecoder/TheoraDecodeFilter.h	2004-09-09 18:00:43 UTC (rev 7728)
@@ -38,7 +38,8 @@
 #include <fstream>
 using namespace std;
 class TheoraDecodeFilter 
-	:	public CVideoTransformFilter
+	//:	public CVideoTransformFilter
+	:	public CTransformFilter
 
 {
 public:



More information about the commits mailing list