MS MPEG-1 Video Codec bug?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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?

.



Relevant Pages

  • Re: What happens to the wavelength and frequency of light in a prism
    ... the driver of an engine with a siren at a fixed pitch will not notice ... any change in pitch as he drives along. ... between the engine and himself. ... altered is how the observer detects the wavelengths due to their motion ...
    (sci.physics)
  • mpeg1 codec converting y41p to yuy2 incorrectly on overlay
    ... i am working on a graphics driver. ... with one particular type of stream when played with WinCE 5.0 or 6.0 ... it looks like the video renderer (or the codec) ... scanline (since our overlay surface pitch is bigger than the width) ... ...
    (microsoft.public.windowsce.platbuilder)
  • Re: AMcap doesnt work on my camera
    ... driver to support it? ... I have not done this before, so maybe someone else in the group can pitch ... but my guess would be that you need to write a DirectShow source filter ... that encapsulates the functionality of the driver. ...
    (microsoft.public.win32.programmer.directx.video)
  • Changing the pitch of a note using the Wave API
    ... so I wish to change the pitch. ... The set pitch ... function is not implemented in the driver and from what research I ... I read one article about removing samples from the ...
    (microsoft.public.windowsce.embedded)
  • Re: PxA27x Display Driver 24BPP support
    ... The LCD controller has been configured as 18 bpp. ... The clocks at the LCD controller level seem to fine fine. ... The driver implementations are for 16 bpp and has no support for 24 BPP i.e., the Gwes supports 24 Bpp support but the existing Driver does not have support for the same. ...
    (microsoft.public.windowsce.platbuilder)