use correct size with media node
This commit is contained in:
@@ -26,13 +26,15 @@
|
||||
|
||||
RenderInstance::RenderInstance(const int& width,
|
||||
const int& height,
|
||||
const int ÷r,
|
||||
const olive::PixelFormat& format,
|
||||
const olive::RenderMode& mode) :
|
||||
share_ctx_(nullptr),
|
||||
width_(width),
|
||||
height_(height),
|
||||
format_(format),
|
||||
mode_(mode)
|
||||
mode_(mode),
|
||||
divider_(divider)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -130,6 +132,11 @@ const int &RenderInstance::height() const
|
||||
return height_;
|
||||
}
|
||||
|
||||
const int &RenderInstance::divider() const
|
||||
{
|
||||
return divider_;
|
||||
}
|
||||
|
||||
const olive::PixelFormat &RenderInstance::format() const
|
||||
{
|
||||
return format_;
|
||||
|
||||
@@ -41,6 +41,7 @@ class RenderInstance : public QObject
|
||||
public:
|
||||
RenderInstance(const int& width,
|
||||
const int& height,
|
||||
const int& divider,
|
||||
const olive::PixelFormat& format,
|
||||
const olive::RenderMode& mode);
|
||||
|
||||
@@ -60,6 +61,8 @@ public:
|
||||
|
||||
const int& height() const;
|
||||
|
||||
const int& divider() const;
|
||||
|
||||
const olive::PixelFormat& format() const;
|
||||
|
||||
const olive::RenderMode& mode() const;
|
||||
|
||||
Reference in New Issue
Block a user