Re: about MEDIATYPE_Video and MEDIATYPE_Stream
- From: Michel Roujansky - DirectShow Consultant and Trainer <jeremiah_330@xxxxxxxxx>
- Date: Wed, 20 Jun 2007 23:40:05 -0700
On Jun 21, 3:56 am, fungi8210 <fungi8...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Hi,
I have a question about the difference between MEDIATYPE_Video and
MEDIATYPE_Stream.
I have a decoder which accepts both type, understandably MEDIATYPE_Video
accepts video data frame by frame.
But I don't understand what kind of data MEDIATYPE_Stream is. Is it just
an arbitrary length of bitstream? How does the decoder determine how much
bitstream to accept at a time?
thanks!
You will find MEDIATYPE_Stream for example when reading a mpeg file.
The parser or decoder either request a specific length of data from
the reader (in pull mode), or just receives whatever the reader pushes
to it. It detects specific byte patterns in the stream to determine
when to begin decoding, GOP, etc....
.
- Prev by Date: Re: Custom source filter
- Next by Date: Re: Unable to connect Dump transform filter to encoder in dshow
- Previous by thread: Changing the resolution of a Webcam input stream
- Next by thread: Re: about MEDIATYPE_Video and MEDIATYPE_Stream
- Index(es):
Relevant Pages
|