summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.h
diff options
context:
space:
mode:
authorxylosper <darklin20@gmail.com>2014-03-29 00:00:02 +0900
committerxylosper <darklin20@gmail.com>2014-03-29 23:31:46 +0900
commit8cee8279ad4b8aaf5c89056db5a1f9e3575f8eee (patch)
tree85c82898db43d664f8fa87a06975045578708466 /stream/stream_dvdnav.h
parentcd2d4ebf3b05e9cfefbb868e45ed71728178a99c (diff)
downloadmpv-8cee8279ad4b8aaf5c89056db5a1f9e3575f8eee.tar.bz2
mpv-8cee8279ad4b8aaf5c89056db5a1f9e3575f8eee.tar.xz
stream_bluray: implement navigation interface for Blu-ray stream
This commit introduces new stream protocols: bdnav(and others). bdnav stream shares lots of codes with original bluray stream, so it's not separated in different source file. Major difference from bluray is that bdnav does not support longest title because there is no way to query that information. bdnav://menu and bdnav://first correspond to top menu title and first play title respectively, though they often point same title. Also, binary position based seeking has been removed, because it didn't have no point.
Diffstat (limited to 'stream/stream_dvdnav.h')
-rw-r--r--stream/stream_dvdnav.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/stream/stream_dvdnav.h b/stream/stream_dvdnav.h
index e27af6eb1e..9accf0c87a 100644
--- a/stream/stream_dvdnav.h
+++ b/stream/stream_dvdnav.h
@@ -35,8 +35,11 @@ enum mp_nav_event_type {
MP_NAV_EVENT_HIGHLIGHT, // highlight changed
MP_NAV_EVENT_MENU_MODE, // menu mode on/off
MP_NAV_EVENT_EOF, // it's over
+ MP_NAV_EVENT_OVERLAY, // overlay changed
};
+struct sub_bitmap;
+
struct mp_nav_event {
enum mp_nav_event_type event;
union {
@@ -51,6 +54,9 @@ struct mp_nav_event {
struct {
bool enable;
} menu_mode;
+ struct {
+ struct sub_bitmap *images[2];
+ } overlay;
} u;
};