<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xine-lib/src/libsputext, branch 1.1.10</title>
<subtitle>xine-lib git mirror
</subtitle>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/'/>
<entry>
<title>Constify bits of the OGM subtitle hack. Add a changelog entry.</title>
<updated>2008-01-06T15:56:24+00:00</updated>
<author>
<name>Darren Salt</name>
<email>linux@youmustbejoking.demon.co.uk</email>
</author>
<published>2008-01-06T15:56:24+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=3b8eab0196256be7240878cb718fceb7cd373549'/>
<id>3b8eab0196256be7240878cb718fceb7cd373549</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>for resolving Korean subtitle bug</title>
<updated>2008-01-06T16:03:20+00:00</updated>
<author>
<name>Dongsu Park</name>
<email>dpark1978@gmail.com</email>
</author>
<published>2008-01-06T16:03:20+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=45aa7ebe596abd3263c747c642a2416a7ebbbbba'/>
<id>45aa7ebe596abd3263c747c642a2416a7ebbbbba</id>
<content type='text'>
In draw_subtitle(), if the given encoding is one the CJK charset, colored
typefaces functionality is disabled and subtitles are printed with the
render_text() method. Otherwise subtitles are drawn by ogm_render_line()
function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In draw_subtitle(), if the given encoding is one the CJK charset, colored
typefaces functionality is disabled and subtitles are printed with the
render_text() method. Otherwise subtitles are drawn by ogm_render_line()
function.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Subtitles] SSA-tags patch</title>
<updated>2007-12-27T14:24:48+00:00</updated>
<author>
<name>Dubois Nicolas</name>
<email>sn00py.2@laposte.net</email>
</author>
<published>2007-12-27T14:24:48+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=84e2f56c6cc81e9bed8ba03b29a8c69aa7d08d89'/>
<id>84e2f56c6cc81e9bed8ba03b29a8c69aa7d08d89</id>
<content type='text'>
I watch a lot of movies with subtitles and I need "vobsub subtitles"
work in xine, then I decide to write this patch.
It may support SSA tags for all text subtiles (ssa, ass, srt, ...)

This patch :

1. Remove all SSA tags from stream (they are ugly : {\a6})
2. Handle some of them (b, i, a, an, pos). The other ones control
colours, shadow, animation, ... I can't make them work in an easy way.
3. Correct wrap algorithm which have minors bugs (we can see them only
with SSA patch...)


Modified files :

libsputext/demux_sputext.c
just remove unneeded code (which remove some of SSA-tags)

libsputext/xine_sputext_decoder.c
the main modified file.

video_out/video_out_xshm.c
video_out/video_out_xv.c
xine-engine/video_out.h
get video output (position and size). See below.


1.
Removing SSA tags is done in ogm_render_line_internal() like for
html-like tags. (this was done in the previous version of xine)


2.
b(bold) and i(italic) are implemented like html-ones, in
ogm_render_line_internal().

The other tags this patch support are :
aX       : alignment in SSA-code
anX      : alignment in numpad code
pos(X,Y) : position, depend on alignment

For those ones, I need in first a full-screen OSD, not a five lines one.
Then, I need to remember where the last subtitle was drawn, in order to
erase it. At last, I need a translation function to convert subtitle
coordinates in screen coordinates.
For this last point, I first write a full-screen translation (don't care
about blacks borders), but it's not really good: the 'pos' tag is
sometime used to point out something in the video. (Moreover, ASS spec
say we have to draw subtitle on the video)
For doing this, I need the real video output size and position, which
are only know by the video output driver! Then I had 4 VO properties
(in xine-engine/video_out.h) for video driver could give us those
informations.
I implement it only in xshm and xv drivers (I can't test other ones).
If video driver can't give us those informations, the patch fallback in
a full-screen translation.


3.
there was 3 problem with the wrap algorithm :
1. It was in double: exactly the same, twice. Look like a merge problem.
I remove one and all work fine.
2. It want to cut string in equivalent display length but it cut it in
equivalent byte length. In most cases, this is the same, but if we have
UTF-8 chars or long SSA-tags (which will not be displayed) the result is
strange.
3. If we have a too-long part (in bytes) of the string without spaces
(bad subtitle file or long SSA-code), the algorithm don't know what to
do. (this case is not handled)

I re-write the wrap algorithm to correct those problems. Note that my
version is slower than previous one : working with bytes is really
faster than computing text-length. Maybe I should had to propose an
other patch for this part...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I watch a lot of movies with subtitles and I need "vobsub subtitles"
work in xine, then I decide to write this patch.
It may support SSA tags for all text subtiles (ssa, ass, srt, ...)

This patch :

1. Remove all SSA tags from stream (they are ugly : {\a6})
2. Handle some of them (b, i, a, an, pos). The other ones control
colours, shadow, animation, ... I can't make them work in an easy way.
3. Correct wrap algorithm which have minors bugs (we can see them only
with SSA patch...)


Modified files :

libsputext/demux_sputext.c
just remove unneeded code (which remove some of SSA-tags)

libsputext/xine_sputext_decoder.c
the main modified file.

video_out/video_out_xshm.c
video_out/video_out_xv.c
xine-engine/video_out.h
get video output (position and size). See below.


1.
Removing SSA tags is done in ogm_render_line_internal() like for
html-like tags. (this was done in the previous version of xine)


2.
b(bold) and i(italic) are implemented like html-ones, in
ogm_render_line_internal().

The other tags this patch support are :
aX       : alignment in SSA-code
anX      : alignment in numpad code
pos(X,Y) : position, depend on alignment

For those ones, I need in first a full-screen OSD, not a five lines one.
Then, I need to remember where the last subtitle was drawn, in order to
erase it. At last, I need a translation function to convert subtitle
coordinates in screen coordinates.
For this last point, I first write a full-screen translation (don't care
about blacks borders), but it's not really good: the 'pos' tag is
sometime used to point out something in the video. (Moreover, ASS spec
say we have to draw subtitle on the video)
For doing this, I need the real video output size and position, which
are only know by the video output driver! Then I had 4 VO properties
(in xine-engine/video_out.h) for video driver could give us those
informations.
I implement it only in xshm and xv drivers (I can't test other ones).
If video driver can't give us those informations, the patch fallback in
a full-screen translation.


3.
there was 3 problem with the wrap algorithm :
1. It was in double: exactly the same, twice. Look like a merge problem.
I remove one and all work fine.
2. It want to cut string in equivalent display length but it cut it in
equivalent byte length. In most cases, this is the same, but if we have
UTF-8 chars or long SSA-tags (which will not be displayed) the result is
strange.
3. If we have a too-long part (in bytes) of the string without spaces
(bad subtitle file or long SSA-code), the algorithm don't know what to
do. (this case is not handled)

I re-write the wrap algorithm to correct those problems. Note that my
version is slower than previous one : working with bytes is really
faster than computing text-length. Maybe I should had to propose an
other patch for this part...
</pre>
</div>
</content>
</entry>
<entry>
<title>Delete most of the CVS $Id$/$Log$ lines.</title>
<updated>2007-11-10T22:06:10+00:00</updated>
<author>
<name>Darren Salt</name>
<email>linux@youmustbejoking.demon.co.uk</email>
</author>
<published>2007-11-10T22:06:10+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=3c175fd21df04c5c0afa160f81aea0c305f69dc5'/>
<id>3c175fd21df04c5c0afa160f81aea0c305f69dc5</id>
<content type='text'>
--HG--
extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
--HG--
extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
</pre>
</div>
</content>
</entry>
<entry>
<title>Update FSF address on non-contributed code and COPYING files.</title>
<updated>2007-11-09T17:11:05+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2007-11-09T17:11:05+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=c8f3cd1faf678b64920ad62f1275b03aae0157a7'/>
<id>c8f3cd1faf678b64920ad62f1275b03aae0157a7</id>
<content type='text'>
For contributed code, leave whatever the version we last synced for is using
to make simpler future syncs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For contributed code, leave whatever the version we last synced for is using
to make simpler future syncs.
</pre>
</div>
</content>
</entry>
<entry>
<title>small bugfix: make sure width/height are known before trying to use them (wait the main stream to fully initialize)</title>
<updated>2007-10-21T22:12:32+00:00</updated>
<author>
<name>"Miguel Freitas ext:(%22)</name>
<email>miguelfreitas@users.sourceforge.net</email>
</author>
<published>2007-10-21T22:12:32+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=1205d480e42125d78b1d987c639e49371a35d5fe'/>
<id>1205d480e42125d78b1d987c639e49371a35d5fe</id>
<content type='text'>
prevents division by zero in draw_subtitle().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
prevents division by zero in draw_subtitle().
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge and clean up ogm_get_width &amp; ogm_render_line; fix strncmp() length params.</title>
<updated>2007-08-19T01:10:09+00:00</updated>
<author>
<name>Darren Salt</name>
<email>linux@youmustbejoking.demon.co.uk</email>
</author>
<published>2007-08-19T01:10:09+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=92ed8db740b18f751707ad9c6c8ad32e8a48d5d7'/>
<id>92ed8db740b18f751707ad9c6c8ad32e8a48d5d7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>libsputext colored typefaces patch</title>
<updated>2007-08-18T22:23:27+00:00</updated>
<author>
<name>Christophe Thommeret</name>
<email>hftom@free.fr</email>
</author>
<published>2007-08-18T22:23:27+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=bfeb9ba11a2845d5b45f36c3612c5c59c5d986aa'/>
<id>bfeb9ba11a2845d5b45f36c3612c5c59c5d986aa</id>
<content type='text'>
Le dimanche 24 décembre 2006 13:38, Miguel Freitas a écrit:
&gt; Hi Christophe,
&gt;
&gt; On 12/8/06, Christophe Thommeret &lt;hftom@free.fr&gt; wrote:
&gt; &gt; Here is a patch that makes use of different colors for typeface tags.
&gt; &gt; It uses yellow for italics and red for bold.
&gt;
&gt; this is an interesting idea and i agree it is probably better to use
&gt; the "ogm" rendering functions for other formats as well.
&gt;
&gt; however i have one problem with this change: it will override user's
&gt; selection of "ui.osd.text_palette".
&gt;
&gt; how can we implement this without losing ability to select font color?
&gt;
&gt; Miguel

Well, seems i've forgot this one ;)

This new patch honors ui.osd.text_palette
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Le dimanche 24 décembre 2006 13:38, Miguel Freitas a écrit:
&gt; Hi Christophe,
&gt;
&gt; On 12/8/06, Christophe Thommeret &lt;hftom@free.fr&gt; wrote:
&gt; &gt; Here is a patch that makes use of different colors for typeface tags.
&gt; &gt; It uses yellow for italics and red for bold.
&gt;
&gt; this is an interesting idea and i agree it is probably better to use
&gt; the "ogm" rendering functions for other formats as well.
&gt;
&gt; however i have one problem with this change: it will override user's
&gt; selection of "ui.osd.text_palette".
&gt;
&gt; how can we implement this without losing ability to select font color?
&gt;
&gt; Miguel

Well, seems i've forgot this one ;)

This new patch honors ui.osd.text_palette
</pre>
</div>
</content>
</entry>
<entry>
<title>Add $(LTLIBINTL) wherever objdump -R shows a dependency on gettext functions.</title>
<updated>2007-06-09T16:59:03+00:00</updated>
<author>
<name>Darren Salt</name>
<email>linux@youmustbejoking.demon.co.uk</email>
</author>
<published>2007-06-09T16:59:03+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=89af20ee5fcefa96ac7eaf8ca36c3be72e38ea4f'/>
<id>89af20ee5fcefa96ac7eaf8ca36c3be72e38ea4f</id>
<content type='text'>
Some plugins may have been missed due to them not being built here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some plugins may have been missed due to them not being built here.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename xine_decoder.c to xine_sputext_decoder.c.</title>
<updated>2007-04-04T20:50:17+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2007-04-04T20:50:17+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=cf701273878fafeef78183bac35576de902f78f3'/>
<id>cf701273878fafeef78183bac35576de902f78f3</id>
<content type='text'>
Use xineplug_LTLIBRARIES.

--HG--
rename : src/libsputext/xine_decoder.c =&gt; src/libsputext/xine_sputext_decoder.c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use xineplug_LTLIBRARIES.

--HG--
rename : src/libsputext/xine_decoder.c =&gt; src/libsputext/xine_sputext_decoder.c
</pre>
</div>
</content>
</entry>
</feed>
