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