diff options
author | wm4 <wm4@nowhere> | 2013-12-12 01:44:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-12 01:46:45 +0100 |
commit | 053044741713eddc4aea024fb0c175aa01fc092d (patch) | |
tree | bdf12e75b406696c19519649a4ba32d0e170e8f0 /sub/osd.h | |
parent | 76ce5434b2716abf063b6d581fe2930825cdecab (diff) | |
download | mpv-053044741713eddc4aea024fb0c175aa01fc092d.tar.bz2 mpv-053044741713eddc4aea024fb0c175aa01fc092d.tar.xz |
Add prelimimary (basic, possibly broken) dvdnav support
This readds a more or less completely new dvdnav implementation, though
it's based on the code from before commit 41fbcee. Note that this is
rather basic, and might be broken or not quite usable in many cases.
Most importantly, navigation highlights are not correctly implemented.
This would require changes in the FFmpeg dvdsub decoder (to apply a
different internal CLUT), so supporting it is not really possible right
now. And in fact, I don't think I ever want to support it, because it's
a very small gain for a lot of work. Instead, mpv will display fake
highlights, which are an approximate bounding box around the real
highlights.
Some things like mouse input or switching audio/subtitles stream using
the dvdnav VM are not supported.
Might be quite fragile on transitions: if dvdnav initiates a transition,
and doesn't give us enough mpeg data to initialize video playback, the
player will just quit.
This is added only because some users seem to want it. I don't intend to
make mpv a good DVD player, so the very basic minimum will have to do.
How about you just convert your DVD to proper video files?
Diffstat (limited to 'sub/osd.h')
-rw-r--r-- | sub/osd.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -86,6 +86,8 @@ enum mp_osdtype { OSDTYPE_SUB, OSDTYPE_SUBTEXT, + OSDTYPE_NAV_HIGHLIGHT, // dvdnav fake highlights + OSDTYPE_PROGBAR, OSDTYPE_OSD, @@ -148,6 +150,8 @@ struct osd_state { struct sub_bitmaps external2; // OSDTYPE_SUB struct dec_sub *dec_sub; + // OSDTYPE_NAV_HIGHLIGHT + void *highlight_priv; struct MPOpts *opts; @@ -244,4 +248,8 @@ void osd_get_function_sym(char *buffer, size_t buffer_size, int osd_function); void osd_init_backend(struct osd_state *osd); void osd_destroy_backend(struct osd_state *osd); +// defined in player +void mp_nav_get_highlight(struct osd_state *osd, struct mp_osd_res res, + struct sub_bitmaps *out_imgs); + #endif /* MPLAYER_SUB_H */ |