Transform Filter Aspect Ratio Problem
- From: "Tom Handal" <Tom.Handal@xxxxxxxxx>
- Date: 12 Dec 2006 10:28:21 -0800
Hi all,
I have a transform filter that I am connecting from the MainConcept
MPEG2 Video Decoder... Then my output goes directly to VMR7.
The mediatypes definately use the VIDEOINFOHEADER2, which contains
the aspect ratio information, among other things...
The problem I am having is that the VMR7 seems to be forcing that
aspect ratio found in the VIDEOINFOHEADER2.... I want this default
aspect ratio so that I can set it as default, but if the user wants to
change to another aspect ratio for some reason, I want them to be able
to....
I have all the code written to switch between aspect ratios, but
the VMR7 seems to be forcing the aspect ratio in VIDEOINFOHEADER2
regardless of what I do... I even tried turning off the "Maintain
Aspect Ratio" option of the VMR... It returns S_OK when I set it to
AR_MODE_NONE, but it doesnt seem to actually turn off the "Maintain
Aspect Ratio" feature...
I am trying to resize the window to the requested aspect ratio using
IVideoWindow->SetWindowPosition, which in turn would cause the VMR to
place the video in that rectangle, which is the custom aspect
ratio..... the problem is that the VMR forces the VIDEOINFOHEADER2
aspect ratio inside of that custom rectangle, so the effect I am
getting is that the video stays the same Aspect Ratio, but just grows
and shrinks...
Can anyone please help me? I need to turn off the "Maintain Aspect
Ratio" option of the VMR, but can't seem to do so...
Thanks!
Tom
.
- Follow-Ups:
- Re: Transform Filter Aspect Ratio Problem
- From: Tom Handal
- Re: Transform Filter Aspect Ratio Problem
- Prev by Date: Re: Adding Unregisterd Filters To The Graph
- Next by Date: Re: Windows Counter-part to SGI's dMedia?
- Previous by thread: Linker problem with DirectShow
- Next by thread: Re: Transform Filter Aspect Ratio Problem
- Index(es):
Relevant Pages
|