architecture: move loop modes to clips

This commit is contained in:
itsmattkc
2022-07-17 15:22:36 -07:00
parent 4c71a33b7b
commit 0d9727b6d2
13 changed files with 179 additions and 79 deletions
+3 -17
View File
@@ -29,17 +29,15 @@ class FootageJob
{
public:
FootageJob() :
type_(Track::kNone),
loop_mode_(Footage::kLoopModeOff)
type_(Track::kNone)
{
}
FootageJob(const QString& decoder, const QString& filename, Track::Type type, const rational& length, Footage::LoopMode loop_mode) :
FootageJob(const QString& decoder, const QString& filename, Track::Type type, const rational& length) :
decoder_(decoder),
filename_(filename),
type_(type),
length_(length),
loop_mode_(loop_mode)
length_(length)
{
}
@@ -98,16 +96,6 @@ public:
length_ = length;
}
Footage::LoopMode loop_mode() const
{
return loop_mode_;
}
void set_loop_mode(Footage::LoopMode loop_mode)
{
loop_mode_ = loop_mode;
}
private:
QString decoder_;
@@ -123,8 +111,6 @@ private:
rational length_;
Footage::LoopMode loop_mode_;
};
}
+1 -1
View File
@@ -503,7 +503,7 @@ void RenderProcessor::ProcessAudioFootage(SampleBuffer &destination, const Foota
Decoder::RetrieveAudioStatus status = decoder->RetrieveAudio(destination,
input_time, audio_params,
stream.cache_path(),
stream.loop_mode(),
loop_mode(),
static_cast<RenderMode::Mode>(ticket_->property("mode").toInt()));
if (status == Decoder::kWaitingForConform) {