diff options
author | 2001-04-16 02:55:57 +0000 | |
---|---|---|
committer | 2001-04-16 02:55:57 +0000 | |
commit | c152036325a5dabb6cb2af63e58e45a01abb440c (patch) | |
tree | c5aa3c009240ebd45a3b6e4e4d934c81a7520550 /loader | |
parent | 44b2073259235e5078e177995e9ee8091241f0c4 (diff) |
other YUV formats support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@469 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader')
-rw-r--r-- | loader/dshow/DS_VideoDec.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/loader/dshow/DS_VideoDec.c b/loader/dshow/DS_VideoDec.c index 5831eef029..de2cc7673e 100644 --- a/loader/dshow/DS_VideoDec.c +++ b/loader/dshow/DS_VideoDec.c @@ -132,11 +132,13 @@ extern "C" int DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER* 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 @@ extern "C" int DS_VideoDecoder_SetDestFmt(int bits, int csp){ } 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; } } |