diff --git a/src/QtAV/VideoRenderer.h b/src/QtAV/VideoRenderer.h index 1baee2da..f8277ba0 100644 --- a/src/QtAV/VideoRenderer.h +++ b/src/QtAV/VideoRenderer.h @@ -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 diff --git a/src/VideoRenderer.cpp b/src/VideoRenderer.cpp index 14743ec2..f5ed514a 100644 --- a/src/VideoRenderer.cpp +++ b/src/VideoRenderer.cpp @@ -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;