remove VideoRenderer::lastXXX

This commit is contained in:
wang-bin
2013-11-11 10:05:37 +08:00
parent 359f659439
commit 6aab855bf5
2 changed files with 0 additions and 23 deletions
-6
View File
@@ -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
-17
View File
@@ -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;