MS MPEG-1 Video Codec bug?
- From: Alan Previn <AlanPrevin@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 23 Jan 2009 20:44:01 -0800
I'm a graphics driver developer. I've worked on WinCE 3,.Net,5 and 6. I am
facing this new issue (only on Windows CE 6.0). When playing an MPEG1 file,
my driver gets a request to create a few DDRAW overlay YUY2 surface. As it
always does, our driver creates the surface(s) but with a pitch thats
sometimes more than the width - and we report this accordingly. For all other
formats this is fine, but with MPEG-1 the video output looks corrupted. If i
hack my driver to ensure the pitch is exactly == width * Bpp, then it works
fine. I believe that the MPEG-1 Video Codec is not correctly reading the
DDSURFACEDESC structure's lPitch member (even after I, (the driver),
initialized that variable and set the "DDSD_PITCH" member of DDSURFACEDESC
being created. I think it just uses width * Bpp to get the pitch and ignores
what the driver provided. This is a bug in the codec since the HW would have
alignment restrictions for tiled surfaces and thus an aligned pitch is not
necessarily equal to the width * Bpp. Anyone has any ideas how i can resolve
this?
.
- Prev by Date: Re: How to set string variable in catalog item?
- Next by Date: Can't understand Memory management code in fw.s
- Previous by thread: Eboot not working on a VIA - Intel 82541 board on CE5.0
- Next by thread: Can't understand Memory management code in fw.s
- Index(es):
Relevant Pages
|