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.12 2004-01-26 05:49:42 syskin Exp $ |
* $Id: CXvidDecoder.cpp,v 1.1.2.13 2004-01-29 07:06:04 syskin Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
538 |
if (subtype == CLSID_MEDIASUBTYPE_IYUV) |
if (subtype == CLSID_MEDIASUBTYPE_IYUV) |
539 |
{ |
{ |
540 |
DPRINTF("IYUV"); |
DPRINTF("IYUV"); |
541 |
|
rgb_flip = 0; |
542 |
m_frame.output.csp = XVID_CSP_I420; |
m_frame.output.csp = XVID_CSP_I420; |
543 |
m_frame.output.stride[0] = (m_frame.output.stride[0] * 2) / 3; /* planar format fix */ |
m_frame.output.stride[0] = (m_frame.output.stride[0] * 2) / 3; /* planar format fix */ |
544 |
} |
} |
545 |
else if (subtype == MEDIASUBTYPE_YV12) |
else if (subtype == MEDIASUBTYPE_YV12) |
546 |
{ |
{ |
547 |
DPRINTF("YV12"); |
DPRINTF("YV12"); |
548 |
|
rgb_flip = 0; |
549 |
m_frame.output.csp = XVID_CSP_YV12; |
m_frame.output.csp = XVID_CSP_YV12; |
550 |
m_frame.output.stride[0] = (m_frame.output.stride[0] * 2) / 3; /* planar format fix */ |
m_frame.output.stride[0] = (m_frame.output.stride[0] * 2) / 3; /* planar format fix */ |
551 |
} |
} |
552 |
else if (subtype == MEDIASUBTYPE_YUY2) |
else if (subtype == MEDIASUBTYPE_YUY2) |
553 |
{ |
{ |
554 |
DPRINTF("YUY2"); |
DPRINTF("YUY2"); |
555 |
|
rgb_flip = 0; |
556 |
m_frame.output.csp = XVID_CSP_YUY2; |
m_frame.output.csp = XVID_CSP_YUY2; |
557 |
} |
} |
558 |
else if (subtype == MEDIASUBTYPE_YVYU) |
else if (subtype == MEDIASUBTYPE_YVYU) |
559 |
{ |
{ |
560 |
DPRINTF("YVYU"); |
DPRINTF("YVYU"); |
561 |
|
rgb_flip = 0; |
562 |
m_frame.output.csp = XVID_CSP_YVYU; |
m_frame.output.csp = XVID_CSP_YVYU; |
563 |
} |
} |
564 |
else if (subtype == MEDIASUBTYPE_UYVY) |
else if (subtype == MEDIASUBTYPE_UYVY) |
565 |
{ |
{ |
566 |
DPRINTF("UYVY"); |
DPRINTF("UYVY"); |
567 |
|
rgb_flip = 0; |
568 |
m_frame.output.csp = XVID_CSP_UYVY; |
m_frame.output.csp = XVID_CSP_UYVY; |
569 |
} |
} |
570 |
else if (subtype == MEDIASUBTYPE_RGB32) |
else if (subtype == MEDIASUBTYPE_RGB32) |