Transparent SVG over video [message #1698283] |
Fri, 12 June 2015 20:16 |
Mathew Benson Messages: 12 Registered: July 2010 |
Junior Member |
|
|
Can somebody recommend the best approach to render an SVG document over a panel with video? Basically, a SVG defined heads up display on live video. I wrote a functioning plugin but the SVG rendering is slow.
I wrote a plugin that uses JSVGCanvas to render a dynamic SVG document, with a transparent background, over a JPanel with the paint() function overriden to drawImage video frames decoded with Xuggle. The canvas and the JPanel are in a container with OverlayLayout. I'm also updating the SVG DOM to animate the rendered elements. The video works great but the the SVG seems slower than I would expect and progressively gets slower until I get maybe 5 seconds per frame. Is there a better way to do this?
[Updated on: Fri, 12 June 2015 20:19] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02172 seconds