I'm writing a Windows Media Player DMO that decodes a custom stream
from an ASF file.
The final product would be bitmaps to be fed into WMP's Video Renderer
for display.
The problem is that each sample I receive from the ASF file is a
buffer containing several bitmaps, and so I can't feed the renderer
one bitmap per one input sample...
My question is - MUST each sample fed to the VR contain a single
bitmap? can it contain several bitmaps (which it can then play as a
movie)?
I hope someone can help me :)
Thanks Roey
> The problem is that each sample I receive from the ASF
> file is a buffer containing several bitmaps, and so I
> can't feed the renderer one bitmap per one input sample...
WMP (or rather, WMF) should be feeding you 1 ASF media
object per input media buffer. If you want 1 picture per
input media buffer, you should try muxing the data that way
into your ASF file.
> My question is - MUST each sample fed to the VR contain a
> single bitmap? can it contain several bitmaps (which it
> can then play as a movie)?
Uncompressed RGB or YUV media buffers must contain 1
progressive frame or 2 interlaced fields per media buffer.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm