History log of /haiku/src/apps/mediaplayer/interface/SubtitleBitmap.cpp
Revision Date Author Comments
# 7050e3cd 21-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Fix wrong assignment. CID 702303.


# e65a6eb2 28-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Give some options for subtitle placement and size.
* Optimize subtitle drawing when subtitles are to be
displayed at screen bottom versus video bottom, and
the subtitle frame does not intersect the video. In
that case we only need to draw it when it changes
(or is to be removed). Fixed the dead-lock problem
in a nicer way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38841 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 01e0d327 28-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Use asynchronous bitmap drawing in VideoView. Wouldn't matter much, though.
* In SubtitleBitmap, if we ever take too long to generate a subtitle bitmap
with the drop-shadow, fall back to outline mode. The StackBlurFilter is
extremely fast, though, so there isn't a huge difference. It can fix some
jumps in the video when switching subtitles in fullscreen mode, though.
* Introduce overlay mode to SubpixelBitmap. It uses the black outline then
and disables font anti-aliasing (just for the outline).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38833 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c8ccdf52 27-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Added basic support for SRT subtitle files. It only works
if the SRT file is placed alongside the current playlist
item under the same name (sans extension). The name of the
language is taken from the file which needs to be separated
by a dot (should be improved).
* Instead of the black outline, subtitles have a nice drop
shadow now, which is easier on the eyes somehow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38827 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4ad39ed7 27-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Improve clarity of some code.
* Preserve transparency of default color when color
changes via tag.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38826 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f6d6a616 26-Sep-2010 Rene Gollent <anevilyak@gmail.com>

Work around gcc2 limitation to fix build.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38825 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ed74106b 26-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Added more comments to the code.
* Cleanup ParseStates in case the input didn't have
all closing tags.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38824 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 25fb0e67 26-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

Added SubtitleBitmap class which can create a transparent
BBitmap from a subtitle line as found in SRT files. It
supports all tags except positioning (should probably be
handled in upper layers anyway). The parsing is simplistic
but should be robust. The layout of text is handled by an
offsreen BTextView. VideoView can be given a subtitle
string.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38822 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7050e3cd84cbf0bfdbe4aee9406a9c7240de6e5c 21-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Fix wrong assignment. CID 702303.


# e65a6eb2e02c3b50ee594733f16b313562eaaf9c 28-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Give some options for subtitle placement and size.
* Optimize subtitle drawing when subtitles are to be
displayed at screen bottom versus video bottom, and
the subtitle frame does not intersect the video. In
that case we only need to draw it when it changes
(or is to be removed). Fixed the dead-lock problem
in a nicer way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38841 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 01e0d3278a2849546efa72c14eacd70854e0bc2e 28-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Use asynchronous bitmap drawing in VideoView. Wouldn't matter much, though.
* In SubtitleBitmap, if we ever take too long to generate a subtitle bitmap
with the drop-shadow, fall back to outline mode. The StackBlurFilter is
extremely fast, though, so there isn't a huge difference. It can fix some
jumps in the video when switching subtitles in fullscreen mode, though.
* Introduce overlay mode to SubpixelBitmap. It uses the black outline then
and disables font anti-aliasing (just for the outline).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38833 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c8ccdf52032feea5e7853631dee57cf7f6302c5d 27-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Added basic support for SRT subtitle files. It only works
if the SRT file is placed alongside the current playlist
item under the same name (sans extension). The name of the
language is taken from the file which needs to be separated
by a dot (should be improved).
* Instead of the black outline, subtitles have a nice drop
shadow now, which is easier on the eyes somehow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38827 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4ad39ed76d033a772629cd2378c067a9c7cb85f9 27-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Improve clarity of some code.
* Preserve transparency of default color when color
changes via tag.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38826 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f6d6a616455d1a7608be67a6e0b801a49369d7bf 26-Sep-2010 Rene Gollent <anevilyak@gmail.com>

Work around gcc2 limitation to fix build.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38825 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ed74106bcbfbb30c8cc62b665f24669dee4cf326 26-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Added more comments to the code.
* Cleanup ParseStates in case the input didn't have
all closing tags.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38824 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 25fb0e67fdb540a8fa867b3dbbe40ae7207e903a 26-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

Added SubtitleBitmap class which can create a transparent
BBitmap from a subtitle line as found in SRT files. It
supports all tags except positioning (should probably be
handled in upper layers anyway). The parsing is simplistic
but should be robust. The layout of text is handled by an
offsreen BTextView. VideoView can be given a subtitle
string.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38822 a95241bf-73f2-0310-859d-f6bbb57e9c96