]> git.sesse.net Git - casparcg/blobdiff - modules/ffmpeg/producer/input.h
2.0. Updated namespaces.
[casparcg] / modules / ffmpeg / producer / input.h
index 262aca4cc487992c421e24c2fb592524db8e2cd9..6b391581f519b7ab615aa52478316632676777d4 100644 (file)
@@ -36,22 +36,25 @@ namespace diagnostics {
 class graph;\r
 \r
 }\r
-       \r
+        \r
+namespace ffmpeg {\r
+\r
 class input : boost::noncopyable\r
 {\r
 public:\r
-       explicit input(const safe_ptr<diagnostics::graph>& graph, const std::wstring& filename, bool loop, int start, int length);\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
 \r
        bool try_pop(std::shared_ptr<AVPacket>& packet);\r
        bool eof() const;\r
 \r
        size_t nb_frames() const;\r
+       size_t nb_loops() const;\r
 \r
-       std::shared_ptr<AVFormatContext> context();\r
+       safe_ptr<AVFormatContext> context();\r
 private:\r
        struct implementation;\r
        std::shared_ptr<implementation> impl_;\r
 };\r
 \r
        \r
-}\r
+}}\r