]> git.sesse.net Git - casparcg/blobdiff - modules/ffmpeg/producer/input/input.h
3607983: Added support for generating thumbnails
[casparcg] / modules / ffmpeg / producer / input / input.h
index b62a1eea624fa74c7d3835da799cba56b6e42e54..69984c6ade2536980235917044e00c5f9f143045 100644 (file)
@@ -28,6 +28,7 @@
 #include <cstdint>\r
 \r
 #include <boost/noncopyable.hpp>\r
+#include <boost/thread/future.hpp>\r
 \r
 struct AVFormatContext;\r
 struct AVPacket;\r
@@ -45,7 +46,7 @@ namespace ffmpeg {
 class input : boost::noncopyable\r
 {\r
 public:\r
-       explicit input(const safe_ptr<diagnostics::graph>& graph, const std::wstring& filename, bool loop, size_t start = 0, size_t length = std::numeric_limits<size_t>::max());\r
+       explicit input(const safe_ptr<diagnostics::graph>& graph, const std::wstring& filename, bool loop, uint32_t start, uint32_t length, bool thumbnail_mode);\r
 \r
        bool try_pop(std::shared_ptr<AVPacket>& packet);\r
        bool eof() const;\r
@@ -53,7 +54,7 @@ public:
        void loop(bool value);\r
        bool loop() const;\r
 \r
-       void seek(int64_t target);\r
+       boost::unique_future<bool> seek(uint32_t target);\r
 \r
        safe_ptr<AVFormatContext> context();\r
 private:\r