3 #include <Media/Libav.hpp>
5 #include <Video/VideoInterface.hpp>
7 #include <score_plugin_media_export.h>
10 #include <libavformat/avformat.h>
11 #include <libswscale/swscale.h>
31 void requestThumbnails(int64_t req, QVector<int64_t> flicks)
32 E_SIGNAL(SCORE_PLUGIN_MEDIA_EXPORT, requestThumbnails, req, flicks)
34 void thumbnailReady(int64_t req, int64_t flicks, QImage thumb)
35 E_SIGNAL(SCORE_PLUGIN_MEDIA_EXPORT, thumbnailReady, req, flicks, thumb)
37 QImage process(int64_t flicks);
43 void onRequest(int64_t req, QVector<int64_t> flicks);
46 QVector<int64_t> m_requests;
47 int64_t m_requestIndex{};
50 AVFormatContext* m_formatContext{};
51 AVCodecContext* m_codecContext{};
52 SwsContext* m_rescale{};
53 const AVCodec* m_codec{};
55 int64_t m_last_dts = 0;
62 W_REGISTER_ARGTYPE(QVector<int64_t>)
Definition: Thumbnailer.hpp:25