Re: Problem: color space conversion by DirectShow
- From: "Alessandro Angeli [MVP::DigitalMedia]" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 23 Apr 2005 22:15:44 +0200
AL wrote:
> i don't think this is the case. My card can handle YUY2
> just fine. I already tested it by using other software to
> open these files and it worked just fine without having
> to do any conversions.
How do you know this other software is drawing the video
using YUY2 without any conversion?
> So I guess I out of luck here. This is just unelievable
> that advanced technology such as DirectX can' t handle a
> common YUY2 format
DirectX is agnostic to the format. The graph builder will
try to make the decoder and renderer agree on a common
format before inserting the CSC and the video converted will
accept any format the decoder proposes after checking with
DirectDraw if its OK and DirectDraw will support any format
the video card driver lists as supported. In the very end,
it's the video card that selects the format.
As Thore told you, saying that YUY2 is supported is not
really enough. A video format is defined not only by its
pixel format/compression but also by other parameters, like
stride and pixel count. The whole combination must be
supported. Many video cards will not accept strides that are
not multiple of 32, for example, and other will even require
the stride to be a multiple of 64. Even if the stride is OK,
the width and height may need to be multiples of 2 or larger
powers of 2 and the total pixel count may be restricted. If
you really want to go to the bottom of this, you should
program a little to discover what restrictions your video
card drivers imposes on DirectDraw surfaces and what exactly
the video decoder is proposing or willing to accept.
--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net
.
- Follow-Ups:
- References:
- Problem: color space conversion by DirectShow
- From: AL
- Re: Problem: color space conversion by DirectShow
- From: Tim Roberts
- Re: Problem: color space conversion by DirectShow
- From: AL
- Re: Problem: color space conversion by DirectShow
- From: Alessandro Angeli [MVP::DigitalMedia]
- Re: Problem: color space conversion by DirectShow
- From: AL
- Problem: color space conversion by DirectShow
- Prev by Date: Re: filter loading another dll
- Next by Date: Re: Problem: color space conversion by DirectShow
- Previous by thread: Re: Problem: color space conversion by DirectShow
- Next by thread: Re: Problem: color space conversion by DirectShow
- Index(es):
Relevant Pages
|