Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
45d1baf8
Commit
45d1baf8
authored
Aug 16, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: ARGB overlays available since bluray 0.3.0
parent
437124c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/access/bluray.c
modules/access/bluray.c
+7
-0
No files found.
modules/access/bluray.c
View file @
45d1baf8
...
...
@@ -54,6 +54,7 @@
#include <libbluray/bluray.h>
#include <libbluray/bluray-version.h>
#include <libbluray/keys.h>
#include <libbluray/meta_data.h>
#include <libbluray/overlay.h>
...
...
@@ -204,7 +205,9 @@ static void blurayInitTitles(demux_t *p_demux, int menu_titles);
static
int
bluraySetTitle
(
demux_t
*
p_demux
,
int
i_title
);
static
void
blurayOverlayProc
(
void
*
ptr
,
const
BD_OVERLAY
*
const
overlay
);
#if BLURAY_VERSION >= BLURAY_VERSION_CODE(0,3,0)
static
void
blurayArgbOverlayProc
(
void
*
ptr
,
const
BD_ARGB_OVERLAY
*
const
overlay
);
#endif
static
int
onMouseEvent
(
vlc_object_t
*
p_vout
,
const
char
*
psz_var
,
vlc_value_t
old
,
vlc_value_t
val
,
void
*
p_data
);
...
...
@@ -398,9 +401,11 @@ static int blurayOpen(vlc_object_t *object)
goto
error
;
}
#if BLURAY_VERSION >= BLURAY_VERSION_CODE(0,3,0)
/* Register ARGB overlay handler for BD-J */
if
(
disc_info
->
num_bdj_titles
)
bd_register_argb_overlay_proc
(
p_sys
->
bluray
,
p_demux
,
blurayArgbOverlayProc
,
NULL
);
#endif
/* libbluray will start playback from "First-Title" title */
if
(
bd_play
(
p_sys
->
bluray
)
==
0
)
...
...
@@ -970,6 +975,7 @@ static void blurayOverlayProc(void *ptr, const BD_OVERLAY *const overlay)
}
}
#if BLURAY_VERSION >= BLURAY_VERSION_CODE(0,3,0)
/*
* ARGB overlay (BD-J)
*/
...
...
@@ -1050,6 +1056,7 @@ static void blurayArgbOverlayProc(void *ptr, const BD_ARGB_OVERLAY *const overla
break
;
}
}
#endif
static
void
bluraySendOverlayToVout
(
demux_t
*
p_demux
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment