added samples type and duplicated video renderer
This commit is contained in:
@@ -28,6 +28,10 @@ ViewerOutput::ViewerOutput() :
|
||||
texture_input_->add_data_input(NodeInput::kTexture);
|
||||
AddParameter(texture_input_);
|
||||
|
||||
samples_input_ = new NodeInput("samples_in");
|
||||
samples_input_->add_data_input(NodeInput::kSamples);
|
||||
AddParameter(samples_input_);
|
||||
|
||||
length_input_ = new NodeInput("length_in");
|
||||
length_input_->add_data_input(NodeInput::kRational);
|
||||
AddParameter(length_input_);
|
||||
@@ -70,6 +74,11 @@ NodeInput *ViewerOutput::texture_input()
|
||||
return texture_input_;
|
||||
}
|
||||
|
||||
NodeInput *ViewerOutput::samples_input()
|
||||
{
|
||||
return samples_input_;
|
||||
}
|
||||
|
||||
NodeInput *ViewerOutput::length_input()
|
||||
{
|
||||
return length_input_;
|
||||
|
||||
@@ -44,9 +44,11 @@ public:
|
||||
void SetTimebase(const rational& timebase);
|
||||
|
||||
NodeInput* texture_input();
|
||||
NodeInput* samples_input();
|
||||
NodeInput* length_input();
|
||||
|
||||
RenderTexturePtr GetTexture(const rational& time);
|
||||
QByteArray GetSamples(const rational& in, const rational& out);
|
||||
|
||||
virtual void InvalidateCache(const rational &start_range, const rational &end_range, NodeInput *from = nullptr) override;
|
||||
|
||||
@@ -70,6 +72,8 @@ protected:
|
||||
private:
|
||||
NodeInput* texture_input_;
|
||||
|
||||
NodeInput* samples_input_;
|
||||
|
||||
NodeInput* length_input_;
|
||||
|
||||
rational timebase_;
|
||||
|
||||
Reference in New Issue
Block a user