diff options
author | 2013-03-30 20:08:56 +0100 | |
---|---|---|
committer | 2013-03-30 20:23:45 +0100 | |
commit | ef3c0e6edafd6460d30c24dfd9f5b2f50401f38f (patch) | |
tree | 5b6b085430e3f200bfb033ca721c996e1d092c37 /core/defaultopts.c | |
parent | d39b131bde2f90c1607e1d9292c1a4ce291eb148 (diff) |
osd: draw the OSD bar with ASS vector drawings
Drawing the bar with vector drawings (instead with characters from the
OSD font) offers more flexibility and looks better. This also adds
chapter marks to the OSD bar, which are visible as small triangles on
the top and bottom inner border of the bar.
Change the default position of the OSD bar below the center of the
screen. This is less annoying than putting the bar directly into the
center of the view, where it obscures the video. The new position is
not quite on the bottom of the screen to avoid collisions with
subtitles.
The old centered position can be forced with ``--osd-bar-align-y=0``.
Also make it possible to change the OSD bar width/height with the new
--osd-bar-w and --osd-bar-h options.
It's possible that the new OSD bar renders much slower than the old
one. There are two reasons for this: 1. the character based bar
allowed libass to cache each character, while the vector drawing forces
it to redraw every time the bar position changes. 2., the bar position
is updated at a much higher granularity (the bar position is passed
along as float instead of as integer in the range 0-100, so the bar
will be updated on every single video frame).
Diffstat (limited to 'core/defaultopts.c')
-rw-r--r-- | core/defaultopts.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/defaultopts.c b/core/defaultopts.c index 9f544d6d55..36170df725 100644 --- a/core/defaultopts.c +++ b/core/defaultopts.c @@ -43,6 +43,9 @@ void set_default_mplayer_options(struct MPOpts *opts) .gamma_hue = 1000, .osd_level = 1, .osd_duration = 1000, + .osd_bar_align_y = 0.5, + .osd_bar_w = 75.0, + .osd_bar_h = 3.125, .loop_times = -1, .ordered_chapters = 1, .chapter_merge_threshold = 100, |