19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: CXvidDecoder.cpp,v 1.1.2.13 2004-01-29 07:06:04 syskin Exp $ |
* $Id: CXvidDecoder.cpp,v 1.1.2.14 2004-01-30 03:21:20 syskin Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
63 |
|
|
64 |
// Externs defined here |
// Externs defined here |
65 |
PostProcessing_Settings PPSettings; |
PostProcessing_Settings PPSettings; |
66 |
|
unsigned int supported_4cc; |
67 |
int rgb_flip; |
int rgb_flip; |
68 |
|
|
69 |
|
|
70 |
bool USE_IYUV; |
bool USE_IYUV; |
71 |
bool USE_YV12; |
bool USE_YV12; |
72 |
bool USE_YUY2; |
bool USE_YUY2; |
85 |
{ &MEDIATYPE_Video, &CLSID_DIVX_UC }, |
{ &MEDIATYPE_Video, &CLSID_DIVX_UC }, |
86 |
{ &MEDIATYPE_Video, &CLSID_DX50 }, |
{ &MEDIATYPE_Video, &CLSID_DX50 }, |
87 |
{ &MEDIATYPE_Video, &CLSID_DX50_UC }, |
{ &MEDIATYPE_Video, &CLSID_DX50_UC }, |
88 |
|
{ &MEDIATYPE_Video, &CLSID_MP4V }, |
89 |
}; |
}; |
90 |
|
|
91 |
const AMOVIESETUP_MEDIATYPE sudOutputPinTypes[] = |
const AMOVIESETUP_MEDIATYPE sudOutputPinTypes[] = |
260 |
REG_GET_N("FilmEffect", PPSettings.nFilmEffect, 0) |
REG_GET_N("FilmEffect", PPSettings.nFilmEffect, 0) |
261 |
REG_GET_N("ForceColorspace", PPSettings.nForceColorspace, 0) |
REG_GET_N("ForceColorspace", PPSettings.nForceColorspace, 0) |
262 |
REG_GET_N("FlipVideo", PPSettings.nFlipVideo, 0) |
REG_GET_N("FlipVideo", PPSettings.nFlipVideo, 0) |
263 |
|
REG_GET_N("Supported_4CC", supported_4cc, 0) |
264 |
|
|
265 |
RegCloseKey(hKey); |
RegCloseKey(hKey); |
266 |
|
|
371 |
|
|
372 |
switch(hdr->biCompression) |
switch(hdr->biCompression) |
373 |
{ |
{ |
374 |
|
|
375 |
|
|
376 |
|
case FOURCC_DIVX : |
377 |
|
if (!(supported_4cc & SUPPORT_DIVX)) return VFW_E_TYPE_NOT_ACCEPTED; |
378 |
|
else break; |
379 |
|
case FOURCC_DX50 : |
380 |
|
if (!(supported_4cc & SUPPORT_DX50)) return VFW_E_TYPE_NOT_ACCEPTED; |
381 |
case FOURCC_XVID : |
case FOURCC_XVID : |
|
// case FOURCC_DIVX : |
|
|
// case FOURCC_DX50 : |
|
382 |
break; |
break; |
383 |
|
|
384 |
|
|
385 |
default : |
default : |
386 |
DPRINTF("Unknown fourcc: 0x%08x (%c%c%c%c)", |
DPRINTF("Unknown fourcc: 0x%08x (%c%c%c%c)", |
387 |
hdr->biCompression, |
hdr->biCompression, |
391 |
(hdr->biCompression>>24)&0xff); |
(hdr->biCompression>>24)&0xff); |
392 |
return VFW_E_TYPE_NOT_ACCEPTED; |
return VFW_E_TYPE_NOT_ACCEPTED; |
393 |
} |
} |
|
|
|
394 |
return S_OK; |
return S_OK; |
395 |
} |
} |
396 |
|
|
769 |
m_frame.general = tmp_gen; |
m_frame.general = tmp_gen; |
770 |
} |
} |
771 |
|
|
772 |
if (stats.type == XVID_TYPE_NOTHING) { |
if (stats.type == XVID_TYPE_NOTHING && length > 0) { |
773 |
DPRINTF("B-Frame decoder lag"); |
DPRINTF("B-Frame decoder lag"); |
774 |
return S_FALSE; |
return S_FALSE; |
775 |
} |
} |