various: allow users to override the start and end index of image sequences

Also includes various fixes to footage property setting/signalling.
This commit is contained in:
itsmattkc
2020-03-09 19:58:42 +11:00
parent 0131d83256
commit 16b072fa98
11 changed files with 181 additions and 26 deletions
+5 -9
View File
@@ -69,22 +69,18 @@ void MediaInput::FootageChanged()
return;
}
if (connected_footage_ != nullptr) {
if (connected_footage_->type() == Stream::kImage || connected_footage_->type() == Stream::kVideo) {
disconnect(connected_footage_.get(), SIGNAL(ColorSpaceChanged()), this, SLOT(FootageColorSpaceChanged()));
}
if (connected_footage_) {
disconnect(connected_footage_.get(), &Stream::ParametersChanged, this, &MediaInput::FootageParametersChanged);
}
connected_footage_ = new_footage;
if (connected_footage_ != nullptr) {
if (connected_footage_->type() == Stream::kImage || connected_footage_->type() == Stream::kVideo) {
connect(connected_footage_.get(), SIGNAL(ColorSpaceChanged()), this, SLOT(FootageColorSpaceChanged()));
}
if (connected_footage_) {
connect(connected_footage_.get(), &Stream::ParametersChanged, this, &MediaInput::FootageParametersChanged);
}
}
void MediaInput::FootageColorSpaceChanged()
void MediaInput::FootageParametersChanged()
{
InvalidateCache(0, RATIONAL_MAX, footage_input_);
}
+1 -1
View File
@@ -48,7 +48,7 @@ protected:
private slots:
void FootageChanged();
void FootageColorSpaceChanged();
void FootageParametersChanged();
};