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_;
|
||||
|
||||
@@ -251,6 +251,7 @@ QString NodeParam::GetDefaultDataTypeName(const DataType& type)
|
||||
case kVec2: return tr("Vector2D");
|
||||
case kVec3: return tr("Vector3D");
|
||||
case kVec4: return tr("Vector4D");
|
||||
case kSamples: return tr("Samples");
|
||||
case kAny: return tr("Any");
|
||||
}
|
||||
|
||||
@@ -279,6 +280,7 @@ QByteArray NodeParam::ValueToBytes(const NodeParam::DataType &type, const QVaria
|
||||
case kTexture:
|
||||
case kBlock:
|
||||
case kTrack:
|
||||
case kSamples:
|
||||
case kAny:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -105,6 +105,9 @@ public:
|
||||
/// Resolves to `QVector4D`
|
||||
kVec4,
|
||||
|
||||
/// Resolves to `QByteArray`
|
||||
kSamples,
|
||||
|
||||
kAny
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user