changeset 468:4b91c9120d6a

other YUV formats support
author arpi_esp
date Mon, 16 Apr 2001 02:55:57 +0000
parents e53a9edbee98
children 434889ca2340
files loader/dshow/DS_VideoDec.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/loader/dshow/DS_VideoDec.c	Mon Apr 16 01:35:44 2001 +0000
+++ b/loader/dshow/DS_VideoDec.c	Mon Apr 16 02:55:57 2001 +0000
@@ -132,11 +132,13 @@
         
 	dsf->Create(dllname, guid, &m_sOurType, &m_sDestType);
 
+#if 0
 	m_sVhdr2->bmiHeader.biBitCount=16;
 	m_sVhdr2->bmiHeader.biCompression=fccYUY2;
 	m_sDestType.subtype=MEDIASUBTYPE_YUY2;
 	result=dsf->m_pOutputPin->vt->QueryAccept(dsf->m_pOutputPin, &m_sDestType);
 //	if(!result) caps=(CAPS)(caps | CAP_YUY2);
+#endif
 
 	m_sVhdr2->bmiHeader.biBitCount=24;
 	m_sVhdr2->bmiHeader.biCompression=0;
@@ -275,23 +277,28 @@
     }	
     else
     {
-	m_obh.setSpace(csp);
+	m_obh.setSpace(csp,bits);
 	switch(csp)
 	{
 	    case fccYUY2:
 		m_sDestType.subtype=MEDIASUBTYPE_YUY2;
+                printf("DShow: using YUY2 colorspace\n");
 		break;
 	    case fccYV12:
 		m_sDestType.subtype=MEDIASUBTYPE_YV12;
+                printf("DShow: using YV12 colorspace\n");
 		break;
 	    case fccIYUV:
 		m_sDestType.subtype=MEDIASUBTYPE_IYUV;
+                printf("DShow: using IYUV colorspace\n");
 		break;
 	    case fccUYVY:
 		m_sDestType.subtype=MEDIASUBTYPE_UYVY;
+                printf("DShow: using UYVY colorspace\n");
 		break;
 	    case fccYVYU:
 		m_sDestType.subtype=MEDIASUBTYPE_YVYU;
+                printf("DShow: using YVYU colorspace\n");
 		break;
 	}
     }