[vlc-devel] How to draw a line in subpicture_t region
Olivier Aubert
olivier.aubert at liris.cnrs.fr
Mon Aug 27 20:59:31 CEST 2012
Hi
On Mon, 2012-08-27 at 10:05 -0700, Peter Tap wrote:
> Hi Olivier,
>
> Thank you for your help.
>
> $ cd vlc/modules/video_filter
> $ grep -i svg *
> I don't get any matching files.
True, it is in fact a text renderer. If you feed it text, it will render
it through a template. If you feed it svg it will render svg.
> Can you please point me to a VLC sample that I can look up?
See the last post of http://forum.videolan.org/viewtopic.php?f=2&t=874&p=298269&hilit=svg#p298269
> Also, I am thinking just drawing a line should not be that hard. The problem is I cannot identify a sample file I can look up to get an idea. Most filters dealing with graphics seem to load/copy images.
See http://en.wikipedia.org/wiki/Line_drawing_algorithm
Bresenham algorithm is the most well known.
Regards,
Olivier
More information about the vlc-devel
mailing list