2 * copyright (c) 2010 Sveriges Television AB <info@casparcg.com>
\r
4 * This file is part of CasparCG.
\r
6 * CasparCG is free software: you can redistribute it and/or modify
\r
7 * it under the terms of the GNU General Public License as published by
\r
8 * the Free Software Foundation, either version 3 of the License, or
\r
9 * (at your option) any later version.
\r
11 * CasparCG is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 * GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License
\r
17 * along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
\r
22 #include <common/diagnostics/graph.h>
\r
27 struct AVCodecContext;
\r
31 class input : boost::noncopyable
\r
34 explicit input(const safe_ptr<diagnostics::graph>& graph, const std::wstring& filename, bool loop, int start);
\r
35 const std::shared_ptr<AVCodecContext>& get_video_codec_context() const;
\r
36 const std::shared_ptr<AVCodecContext>& get_audio_codec_context() const;
\r
38 bool try_pop_video_packet(std::shared_ptr<AVPacket>& packet);
\r
39 bool try_pop_audio_packet(std::shared_ptr<AVPacket>& packet);
\r
41 bool has_video_packet() const;
\r
42 bool has_audio_packet() const;
\r
43 bool is_running() const;
\r
46 struct implementation;
\r
47 std::shared_ptr<implementation> impl_;
\r