5 #include <system_error>
\r
6 #include "../../frame/frame_fwd.h"
\r
8 namespace caspar{ namespace ffmpeg{
\r
10 typedef std::shared_ptr<AVFormatContext> AVFormatContextPtr;
\r
12 class input : boost::noncopyable
\r
15 input(const frame_format_desc& format_desc);
\r
16 void load(const std::string& filename);
\r
17 const std::shared_ptr<AVCodecContext>& get_video_codec_context() const;
\r
18 const std::shared_ptr<AVCodecContext>& get_audio_codec_context() const;
\r
20 video_packet_ptr get_video_packet();
\r
21 audio_packet_ptr get_audio_packet();
\r
23 bool seek(unsigned long long frame);
\r
26 bool is_eof() const;
\r
27 void set_loop(bool value);
\r
29 struct implementation;
\r
30 std::shared_ptr<implementation> impl_;
\r
32 typedef std::shared_ptr<input> input_ptr;
\r
33 typedef std::unique_ptr<input> input_uptr;
\r