work towards dropping clips into the timeline

This commit is contained in:
itsmattkc
2019-08-09 22:25:16 +10:00
parent e96aa8fdfa
commit 7dd7e83373
8 changed files with 246 additions and 35 deletions
+7
View File
@@ -72,6 +72,12 @@ NodeOutput *MediaInput::texture_output()
return texture_output_;
}
void MediaInput::SetFootage(Footage *f)
{
// FIXME: Need some protection for Time == 0
footage_input_->set_value(0, PtrToValue(f));
}
void MediaInput::Process(const rational &time)
{
// FIXME: Use OCIO for color management
@@ -96,6 +102,7 @@ void MediaInput::Process(const rational &time)
}
if (decoder_->stream() == nullptr) {
// FIXME: Hardcoded stream 0
decoder_->set_stream(footage->stream(0));
}
+2
View File
@@ -51,6 +51,8 @@ public:
NodeOutput* texture_output();
void SetFootage(Footage* f);
public slots:
virtual void Process(const rational &time) override;