various changes to rendering flow and structure
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
#ifndef VIDEOPARAMS_H
|
||||
#define VIDEOPARAMS_H
|
||||
|
||||
#include "common/rational.h"
|
||||
#include "pixelformat.h"
|
||||
#include "rendermodes.h"
|
||||
|
||||
class VideoParams
|
||||
{
|
||||
public:
|
||||
VideoParams();
|
||||
VideoParams(const int& width, const int& height, const rational& time_base);
|
||||
|
||||
const int& width() const;
|
||||
const int& height() const;
|
||||
const rational& time_base() const;
|
||||
|
||||
private:
|
||||
int width_;
|
||||
int height_;
|
||||
rational time_base_;
|
||||
|
||||
};
|
||||
|
||||
class VideoRenderingParams : public VideoParams {
|
||||
public:
|
||||
VideoRenderingParams();
|
||||
VideoRenderingParams(const int& width, const int& height, const rational& time_base, const olive::PixelFormat& format, const olive::RenderMode& mode, const int& divider = 1);
|
||||
VideoRenderingParams(const VideoParams& params, const olive::PixelFormat& format, const olive::RenderMode& mode, const int& divider = 1);
|
||||
|
||||
const int& divider() const;
|
||||
const int& effective_width() const;
|
||||
const int& effective_height() const;
|
||||
|
||||
bool is_valid() const;
|
||||
const olive::PixelFormat& format() const;
|
||||
const olive::RenderMode& mode() const;
|
||||
|
||||
private:
|
||||
void calculate_effective_size();
|
||||
|
||||
olive::PixelFormat format_;
|
||||
olive::RenderMode mode_;
|
||||
|
||||
int divider_;
|
||||
int effective_width_;
|
||||
int effective_height_;
|
||||
};
|
||||
|
||||
#endif // VIDEOPARAMS_H
|
||||
Reference in New Issue
Block a user