mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-28 19:16:48 +08:00
remove VideoRenderer::lastXXX
This commit is contained in:
@@ -170,12 +170,6 @@ private:
|
||||
void setInSize(int width, int height); //private? for internal use only, called by VideoThread.
|
||||
//qreal sourceAspectRatio() const;//TODO: from AVCodecContext
|
||||
//we don't need api like QSize sourceSize() const. you should get them from player or avinfo(not implemented)
|
||||
|
||||
//private? for internal use only, called by VideoThread.
|
||||
QSize lastSize() const;
|
||||
int lastWidth() const;
|
||||
int lastHeight() const;
|
||||
|
||||
};
|
||||
|
||||
} //namespace QtAV
|
||||
|
||||
@@ -144,23 +144,6 @@ void VideoRenderer::setInSize(int width, int height)
|
||||
d.aspect_ratio_changed = false; //TODO: why graphicsitemrenderer need this? otherwise aspect_ratio_changed is always true?
|
||||
}
|
||||
|
||||
QSize VideoRenderer::lastSize() const
|
||||
{
|
||||
DPTR_D(const VideoRenderer);
|
||||
return QSize(d.src_width, d.src_height);
|
||||
}
|
||||
|
||||
int VideoRenderer::lastWidth() const
|
||||
{
|
||||
DPTR_D(const VideoRenderer);
|
||||
return d.src_width;
|
||||
}
|
||||
int VideoRenderer::lastHeight() const
|
||||
{
|
||||
DPTR_D(const VideoRenderer);
|
||||
return d.src_height;
|
||||
}
|
||||
|
||||
bool VideoRenderer::open()
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user