3 #include <common/diagnostics/graph.h>
\r
5 #include <tbb/cache_aligned_allocator.h>
\r
10 struct AVCodecContext;
\r
14 typedef std::vector<unsigned char, tbb::cache_aligned_allocator<unsigned char>> aligned_buffer;
\r
16 class input : boost::noncopyable
\r
19 explicit input(const safe_ptr<diagnostics::graph>& graph, const std::wstring& filename, bool loop);
\r
20 const std::shared_ptr<AVCodecContext>& get_video_codec_context() const;
\r
21 const std::shared_ptr<AVCodecContext>& get_audio_codec_context() const;
\r
23 aligned_buffer get_video_packet();
\r
24 aligned_buffer get_audio_packet();
\r
26 bool is_eof() const;
\r
27 bool is_running() const;
\r
30 struct implementation;
\r
31 std::shared_ptr<implementation> impl_;
\r