Aspect Ratio
Sander Jansen <[email protected]> Wed, 7 Jan 2004 22:29:08 -0600
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Organization | fifthplanet.net |
| Message-ID | <[email protected]> |
Based on your description of the Aspect Ratio API, I sort of got stuck in the
Ogle Source Code.... Here is what I have:
I have four modes in Goggles: Autodetect (DVD), Autodetect (MPEG), Force 16x9
and Force 4x3.
switch(mode){
case 0: DVDSetAspectModeSrc((DVDNav_t*)navigator,AspectModeSrcVM); break;
case 1: DVDSetAspectModeSrc((DVDNav_t*)navigator,AspectModeSrcMPEG);break;
case 2:
DVDSetAspectModeSrc((DVDNav_t*)navigator,AspectModeSrcUser);
DVDSetSrcAspect((DVDNav_t*)navigator,AspectModeSrcUser,16,9);
break;
case 3:
DVDSetAspectModeSrc((DVDNav_t*)navigator,AspectModeSrcUser);
DVDSetSrcAspect((DVDNav_t*)navigator,AspectModeSrcUser,4,3);
break;
default:DVDSetAspectModeSrc((DVDNav_t*)navigator,AspectModeSrcVM);
break;
}
Here is the experience while playing a DVD:
1. AspectModeSrcUser is actually never checked for. User and MPEG seem to do
the same thing.
2. When you set the aspect mode to VM or MPEG the ratio values are never
updated (the last setting set by DVDSetSrcAspect is used. So we need some
way to redetect those values. Not sure how, since the nav is actually sending
those values...
3. Trying to set it to USER has no effect. Unless you set it back to VM, then
the aspect values you've set with user are taken.
4. Which one do I have to call first if want to set the aspect to user? the
set aspect mode and then the set src aspect? or the other way round? If I set
first the mode to user, it will use the wrong aspect values since these are
provided later.
5. The Goggles implementation of the User Interface for this seems to be done,
but it still needs some work in ogle
6. Not sure about this, but the "send_demux_sectors" in nav.c doesn't check if
the aspectmode is in USER... so it will override the aspect ratio no matter
what the GUI had set it.
Hope this helps,
Sander
--
"I've had a wonderful time, but this wasn't it."
- Groucho Marx (1895-1977)