<br><br><div class="gmail_quote">2008/3/29 Konrad Materka <<a href="mailto:materka@gmail.com">materka@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Matthias Kretz napisał(a):<br>
(...)<br>
<div class="Ih2E3d">>>> Yes, write it like a library but for now just compile it into<br>
>>> phonon-xine.<br>
>> Parsing library is back-end independent, so it won't depend on xine.<br>
><br>
> Good. You should probably make that a requirement - then it's really easy to<br>
> take that code and use it in other backends or even in the frontend, should<br>
> we decide to do that later on.<br>
<br>
</div>(...)<br>
<div class="Ih2E3d">> The subtitle code should be able to provide masked QPixmaps, QImages, plain<br>
> text and perhaps other formats like e.g. rich text (think Karaoke where a<br>
> part of the text is colored differently). It will "push" that data out to the<br>
> frontend where the application either handles it itself or uses the widget<br>
> you will write as part of the Phonon frontend classes.<br>
<br>
</div>I was thinking about it (without Phonon) and I came up to the same<br>
conclusion :) My libsubtitle was designed to provide pixmaps and some<br>
text for widget and frontend application. Widget is in presentation<br>
layer with some funtion control layer. Library (no matter if separated<br>
or in Phonon) is in data layer with some controls.<br>
<br></blockquote><div><br>Maybe provide a QTextDocument, you can draw on any painter device like pixmap, widget..<br>with the draw method and offer rich text rendering. <br>But yes, all subtitle thing (parsing/select the good) dont need<br>
xine/gst/whatever, the only thing the developer need to provide is something to<br>sync the subtitle with audio/video<br></div></div><br>-- <br>Sylvain "Skarsnik" Colinet<br><br>Victory was near but the power of the ring couldn't be undone