Re: How do i know dynamic format change?
- From: "zzhikang" <zzhikang@xxxxxxxxxxx>
- Date: Tue, 9 Jan 2007 20:23:29 +0800
"Iain" <Iain@xxxxxxxxxxxxxxxxxx> wrote in message
news:o2ixkeq4gtz7$.s99fuxgpqj29.dlg@xxxxxxxxxxxxx
On Mon, 8 Jan 2007 19:01:01 -0800, zzhikang wrote:Yes, it is!
So the problem is that when the wmp window is restored with the MS codec,
the media type appears to change immediately whereas for your codec, the
notification of the change (through the media sample) may take some time?
If MS codec is enabled, the format of media samples is YUY2.
Is this actually the case or does the MS codec just emit RGB until it
receives the format change? Specifically also what is the format that is
the normal format (a YUV type I presume)?
Also, i have tried the following:
My transform filter is drived from GetDeliveryBuffer class.
1) Use the default CTransformFilter::Receive function:
The last parameter of m_pOutput->m_pAllocator->GetBuffer in
InitializeOutputSample will be 0 or 2(2 means AM_GBF_NOTASYNCPOINT).
In this case, the notification of the change will take more time.
This case is what i have described before.
2)Another, Override CTransformFilter::Receive function:
m_pOutput->m_pAllocator->GetBuffer(&pOutSample,NULL,NULL,0) (set dwFlags = 0
always)
In this case, the notification of the change hardly occurs when the wmp
window is restored. There is no any delay.
But, the image of first several frames are fuzzy and it will persist for
several seconds aslo.
It seems such duration time is close to the previous time of black screen.
Iain
--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk
.
- Follow-Ups:
- Re: How do i know dynamic format change?
- From: Iain
- Re: How do i know dynamic format change?
- References:
- How do i know dynamic format change?
- From: zzhikang
- Re: How do i know dynamic format change?
- From: Iain
- Re: How do i know dynamic format change?
- From: zzhikang
- Re: How do i know dynamic format change?
- From: Iain
- Re: How do i know dynamic format change?
- From: Iain
- How do i know dynamic format change?
- Prev by Date: Re: Frame Separtating from Video File
- Next by Date: Re: directing video to file using VMR9
- Previous by thread: Re: How do i know dynamic format change?
- Next by thread: Re: How do i know dynamic format change?
- Index(es):
Relevant Pages
|
Loading