[mythtv-commits] Ticket #11291: Use the right highlight area in DVD menus when 'wide' is not the first in the list.
MythTV
noreply at mythtv.org
Fri Dec 14 20:03:46 UTC 2012
#11291: Use the right highlight area in DVD menus when 'wide' is not the first in
the list.
------------------------+---------------------------------------
Reporter: peper03@… | Type: Patch - Bug Fix
Status: new | Priority: minor
Milestone: unknown | Component: MythTV - DVD Playback
Version: 0.26-fixes | Severity: medium
Keywords: | Ticket locked: 0
------------------------+---------------------------------------
Menu sub-pictures (highlights) are never scaled and so up to three can be
supplied
with each menu. These are 'wide', 'letterbox' and 'pan&scan'. 'Wide' is
used when a 16:9 display is used, 'letterbox' when a 4:3 display should
show a 16:9 image and 'pan&scan' when the image should be cropped to fit a
4:3 display full-screen.
Because the co-ordinates of the menu hotspots change depending on which
display
method is (potentially) used, these are also given for each method.
Myth already uses the 'wide' sub-picture but the libdvdnav library
provides no direct way to retrieve the current highlight area for a given
display method. It always returns the first set of co-ordinates found.
Most DVDs seem to store the 'wide' co-ordinates first so the highlight
area return by libdvdnav is usually correct. As far as I can tell, this
is not a requirement. If the order is different, it can be at best ugly
(e.g. part of the highlight is cropped) and at worst impossible to visibly
navigate a DVD menu (e.g. the highlight is cropped completely).
The attached patch adds functionality to libdvdnav to return the highlight
area for a given display method. This functionality could be placed in
DVDRingBuffer if preferred as it only requires access to the PCI
structure.
The required behaviour was determined (more or less) from these sources:
http://dvd.sourceforge.net/nav_notes
libmythdvdnav/dvdread/nav_types.h
See also the sample 'ButtonGroup.iso' in stuartm's sample repository.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11291>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list