From 47a4f30fc852f4d49df6df7b4974c7c4751107f3 Mon Sep 17 00:00:00 2001 From: Comment Date: Fri, 20 Sep 2013 15:30:57 +0100 Subject: making video top and tail --- rotord/src/rotor.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'rotord/src/rotor.h') diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index d7480c2..6ab6bce 100644 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -243,7 +243,7 @@ namespace Rotor { void create_image_input(const string &_title,const string &_desc,Node* _connect=nullptr) { image_inputs.push_back(new Image_input(_desc,_title,_connect)); }; - Image *get_output(const Frame_spec &frame) { + Image *get_image_output(const Frame_spec &frame) { image.setup(frame.w,frame.h); update((Time_spec)frame); return output(frame); @@ -943,9 +943,12 @@ namespace Rotor { int lastframe; }; class Video_output: public Image_node { + //Video_output 'presents' the output movie. Aspect ratio, bars, fadein/fadeout would happen here public: Video_output(){ create_image_input("image to output","Image input"); + create_attribute("begin_mode","mode to begin movie","Begin mode","cut",{"cut","blank silence","fade peak"}); + create_attribute("end_mode","mode to end movie","End mode","cut",{"cut","blank silence","fade peak"}); title="Video output"; description="Output to video"; }; @@ -953,6 +956,9 @@ namespace Rotor { base_settings(settings); }; ~Video_output(){ }; + void create_envelope(const vector &audiodata){ + + } Image *output(const Frame_spec &frame){ Image *in=image_inputs[0]->get(frame); if (in){ -- cgit v1.2.3