Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- From: mahantesh <mahantagoudaec20@xxxxxxxxx>
- Date: Tue, 3 Mar 2009 21:09:48 -0800 (PST)
On Mar 3, 9:38 am, Tim Roberts <t...@xxxxxxxxx> wrote:
mahantesh<mahantagoudae...@xxxxxxxxx> wrote:
If you are passing along AVI frames from an AVI file, and you hope to be
able to display them, then your source filter has to tell the rest of the
graph that it is sending AVI frames. Your major type would be
MEDIATYPE_Stream, and your subtype is MEDIASUBTYPE_Avi.
--
Tim Roberts, t...@xxxxxxxxx
Providenza & Boekelheide, Inc.
According to you I have set the majortype and subtype but I am
confused what are the values to set for VIDEOINFOHEADER structure, and
also BITMAPINFOHEADER values of this structure.
VIDEOINFOHEADER and BITMAPINFOHEADER are only used by MEDIATYPE_Video. You
do not have video data, you have a compressed stream. For
MEDIATYPE_Stream, you would use FORMAT_None.
What are you REALLY sending along to the graph? Are you just reading an
AVI file a few kilobytes at a time, and sending that raw data downstream?
If so, then MEDIATYPE_Stream is correct. The graph builder will insert an
AVI parser next, and that parser will figure out what the real audio and
video formats are.
--
Tim Roberts, t...@xxxxxxxxx
Providenza & Boekelheide, Inc.
Yes Sir, I am reading the data from file and pushing that raw data to
downstream filter, I have observed that if I read the file using
AddSourceFilter method then the connection between source and AVI
splitter is connected but if I use my push source filter then no
connection is taking place and also set the major type what yooooy
told and code is
p_mediatype->SetSubtype(&MEDIASUBTYPE_Avi);
p_mediatype->SetFormatType(&FORMAT_VideoInfo);
p_mediatype->SetType(&FORMAT_None);
p_mediatype->SetSampleSize(p_vid_info_hdr-
bmiHeader.biSizeImage);p_mediatype->SetTemporalCompression(FALSE);
Still connectin is not taking place please tell am I setting the
correct format or not.
.
- Follow-Ups:
- References:
- Prev by Date: Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- Next by Date: Confusing concept about data flow
- Previous by thread: Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- Next by thread: Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- Index(es):
Relevant Pages
|