added basic sequence parameters
This commit is contained in:
@@ -31,3 +31,53 @@ Item::Type Sequence::type() const
|
||||
{
|
||||
return kSequence;
|
||||
}
|
||||
|
||||
const int &Sequence::video_width()
|
||||
{
|
||||
return video_width_;
|
||||
}
|
||||
|
||||
void Sequence::set_video_width(const int &width)
|
||||
{
|
||||
video_width_ = width;
|
||||
}
|
||||
|
||||
const int &Sequence::video_height() const
|
||||
{
|
||||
return video_height_;
|
||||
}
|
||||
|
||||
void Sequence::set_video_height(const int &video_height)
|
||||
{
|
||||
video_height_ = video_height;
|
||||
}
|
||||
|
||||
const rational &Sequence::video_time_base()
|
||||
{
|
||||
return video_time_base_;
|
||||
}
|
||||
|
||||
void Sequence::set_video_time_base(const rational &time_base)
|
||||
{
|
||||
video_time_base_ = time_base;
|
||||
}
|
||||
|
||||
const int &Sequence::audio_sampling_rate()
|
||||
{
|
||||
return audio_sampling_rate_;
|
||||
}
|
||||
|
||||
void Sequence::set_audio_sampling_rate(const int &sample_rate)
|
||||
{
|
||||
audio_sampling_rate_ = sample_rate;
|
||||
}
|
||||
|
||||
const rational &Sequence::audio_time_base()
|
||||
{
|
||||
return audio_time_base_;
|
||||
}
|
||||
|
||||
void Sequence::set_audio_time_base(const rational &time_base)
|
||||
{
|
||||
audio_time_base_ = time_base;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "node/graph.h"
|
||||
#include "project/item/item.h"
|
||||
#include "rational.h"
|
||||
|
||||
class Sequence : public Item, public NodeGraph
|
||||
{
|
||||
@@ -30,6 +31,33 @@ public:
|
||||
Sequence();
|
||||
|
||||
virtual Type type() const override;
|
||||
|
||||
/* VIDEO GETTER/SETTER FUNCTIONS */
|
||||
|
||||
const int& video_width();
|
||||
void set_video_width(const int& width);
|
||||
|
||||
const int& video_height() const;
|
||||
void set_video_height(const int& video_height);
|
||||
|
||||
const rational& video_time_base();
|
||||
void set_video_time_base(const rational& time_base);
|
||||
|
||||
/* AUDIO GETTER/SETTER FUNCTIONS */
|
||||
|
||||
const int& audio_sampling_rate();
|
||||
void set_audio_sampling_rate(const int& sample_rate);
|
||||
|
||||
const rational& audio_time_base();
|
||||
void set_audio_time_base(const rational& time_base);
|
||||
|
||||
private:
|
||||
int video_width_;
|
||||
int video_height_;
|
||||
rational video_time_base_;
|
||||
|
||||
int audio_sampling_rate_;
|
||||
rational audio_time_base_;
|
||||
};
|
||||
|
||||
#endif // SEQUENCE_H
|
||||
|
||||
Reference in New Issue
Block a user