[vlc-devel] Question about video filters - svg rendering
Olivier Aubert
olivier.aubert at liris.cnrs.fr
Thu Jan 6 15:59:45 CET 2005
Hello
I am trying to update the SVG rendering module that worked in 0.7.2 to
use the new filter API of 0.8.1. It should be much simpler now that
there is a blending infrastructure, but I think I did not quite catched
how it works.
What I do is basically (using freetype.c as model) :
- in the RenderText function, render the SVG data into a GdkPixbuf that
is stored in the associated subpicture_data_t
- in the Render function, copy the rendered GdkPixbuf to a new
subpicture region
It does not work (displays nothing), so here are my questions :
- I assume that the Render method is passed a subpicture that is meant
to be filled with regions holding supplementary data. The additional
regions are to be rendered into the final picture by the VLC
infrastructure. Am I deeply wrong ?
In the previous version (the one that is still in svn:
module/misc/svg.c), I had to write the merging code myself, as I was
given a picture_t. I hoped (from what I saw) that the changes removed
this burden from the modules to the infrastructure. Here, a GdkPixbuf
happens to be a simple RGBA buffer, so I figured that I would simply
create a new region with a FOURCC RV32 and copy the pixbuf data to the
region's first plane.
- Is there any way for the filter_t* object to access the associated
video_output_t properties ? I need the width and height of the
video_output, as parameters for SVG rendering (and having matching
dimensions should speed the merging process).
Olivier
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list