3 #include <tbb/cache_aligned_allocator.h>
\r
8 struct AVCodecContext;
\r
10 namespace caspar { namespace core { namespace ffmpeg{
\r
12 typedef std::vector<unsigned char, tbb::cache_aligned_allocator<unsigned char>> aligned_buffer;
\r
14 class input : boost::noncopyable
\r
17 input(const std::wstring& filename);
\r
18 const std::shared_ptr<AVCodecContext>& get_video_codec_context() const;
\r
19 const std::shared_ptr<AVCodecContext>& get_audio_codec_context() const;
\r
21 aligned_buffer get_video_packet();
\r
22 aligned_buffer get_audio_packet();
\r
24 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