implemented speed/duration dialog and most of its functionality
An earlier commit implementing media in and out parameters was primarily for this addition. A simple control dialog for the clip's speed presentation reimplemented from the old codebase.
This commit is contained in:
@@ -159,6 +159,11 @@ rational Block::media_length() const
|
||||
return media_out() - media_in();
|
||||
}
|
||||
|
||||
double Block::speed() const
|
||||
{
|
||||
return media_length().toDouble() / length().toDouble();
|
||||
}
|
||||
|
||||
const QString &Block::block_name() const
|
||||
{
|
||||
return block_name_;
|
||||
|
||||
@@ -72,6 +72,7 @@ public:
|
||||
void set_media_out(const rational& media_out);
|
||||
|
||||
rational media_length() const;
|
||||
double speed() const;
|
||||
|
||||
const QString& block_name() const;
|
||||
void set_block_name(const QString& name);
|
||||
|
||||
Reference in New Issue
Block a user