Dan Dennedy: Kino and MLT Developer
Saturday, 31 December 2022
Home arrow Categories arrow Kino arrow New, easy Kino FX instant preview
 
Main Menu
 Home
 Categories

Projects
Shotcut
cross-platform video editor
MLT
Media processing framework
Kino and dvgrab
Non-linear DV video editor for Linux
Linux 1394
Firewire drivers for Linux

Syndication Feeds
RSS 2.0 Feed

Dan Dennedy's Facebook profile
 

New, easy Kino FX instant preview  
Saturday, 14 January 2006

I was reflecting upon the preview functions built into KinoPlus and how I do not like them. I came to realize that they were written prior to the FX layout changes that rendered the preview always available. Then, I realized it was quite simple to display a frame with the video effect applied in the Preview without having to click Preview. Furthermore, after a short investigation, it would be quite simple to let an effect tell FX to update the Preview. And voila, any little change in the effect's option GUI can be instantly previewed. Furthermore, it does not need to be limited to the first frame; it is easy to enable some of the transport controls within FX to let one step through the frames of the region.

How easy is it for a plugin author?

  1. Add the "#include <kino/kino_extra.h>" include.
  2. Connect the logical "changed" signal for each widget to a single function named "Repaint."
  3. Finally, define the Repaint method:
static void Repaint() {
    GetSelectedFramesForFX().Repaint();
}