diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2017-10-03 18:36:51 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2017-10-03 18:36:51 -0400 |
commit | 3005f7ab6b19cabf423b85ec7c3845d840c7cb18 (patch) | |
tree | aed60a1f70a13d09be3733449420564f6ae32349 /src-qt5/desktop-utils/lumina-fm/widgets | |
parent | add libav video thumbnail code back to project (diff) | |
download | lumina-3005f7ab6b19cabf423b85ec7c3845d840c7cb18.tar.gz lumina-3005f7ab6b19cabf423b85ec7c3845d840c7cb18.tar.bz2 lumina-3005f7ab6b19cabf423b85ec7c3845d840c7cb18.zip |
Reworked the VideoSurface subclass
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/widgets')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/widgets/vidnail.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/vidnail.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/vidnail.cpp index ee76a8dc..d0ecdecf 100644 --- a/src-qt5/desktop-utils/lumina-fm/widgets/vidnail.cpp +++ b/src-qt5/desktop-utils/lumina-fm/widgets/vidnail.cpp @@ -18,7 +18,7 @@ struct vFrame { public: QString getCodec(); - void goto(int timeInSeconds); + void skipTo(int timeInSeconds); void readVideoFrame(); void getScaledVideoFrame(int scaledSize, vFrame& vFrame); @@ -35,14 +35,12 @@ public: private: - bool readVideoPacket(); bool getVideoPacket(); void scaleVideo(int scaledSize, int& scaledWidth, int& scaledHeight); void createVFrame(AVFrame *vFrame, quint8 *frameBuffer, int width, int height); void calculateDimensions(int size); - void generateThumbnail(const QString& videoFile, ImageWriter& imageWriter, QImage& -image); + void generateThumbnail(const QString& videoFile, ImageWriter& imageWriter, QImage& image); QString getMimeType(const QString& videoFile); QString getExtension(const QString& videoFilename); |