[vlc-devel] How to draw a line in subpicture_t region

Peter Tap ptrtap at yahoo.com
Mon Aug 27 19:05:48 CEST 2012


Hi Olivier,

Thank you for your help.

$ cd vlc/modules/video_filter
$ grep -i svg *

I don't get any matching files.

Can you please point me to a VLC sample that I can look up?

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.

Regards,
Peter




----- Original Message -----
From: Olivier Aubert <olivier.aubert at liris.cnrs.fr>
To: vlc-devel at videolan.org
Cc: 
Sent: Monday, August 27, 2012 4:03 AM
Subject: Re: [vlc-devel] How to draw a line in subpicture_t region

Hello

Did you give the svg video filter a try? This would solve your line and
text drawing issues (and open possibilities to anything that can be
drawn in SVG).

Best regards,
Olivier

On Mon, 2012-08-27 at 00:27 -0700, Peter Tap wrote:
> Folks,
> 
> In the past, I have developed a video filter to write specific text on the screen at various locations while the movie is being played.
> 
> I now need to develop a new video filter that will cross out certain regions of a screen. All that is required is to draw two lines of specific sizes. The RGB color to be used for the line is obtained at runtime and varies over time as the movie progresses..
> 
> I am trying to understand how I can draw lines in subpicture_t structure.
> 
> After looking at various files under modules/video_filter, it appears:
> 
> subpicture_t has a field p_picture of type picture_t
> picture_t has a field called p of type plane_t
> plane_t has a field called p_pixels of type uint8_t*.
> 
> Do I have to write RGB values directly into p_pixels? 
> 
> Or, is there a drawLine API somewhere that I could use?
> 
> 
> I would appreciate your help if you could point me in the right direction.
> 
> Best regards,
> Peter
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel


_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc-devel




More information about the vlc-devel mailing list