\r
const size_t width_;\r
const size_t height_;\r
- bool progressive_;\r
+ bool is_progressive_;\r
\r
public:\r
explicit ffmpeg_producer(const safe_ptr<core::frame_factory>& frame_factory, const std::wstring& filename, const std::wstring& filter, bool loop, int start, int length) \r
, last_frame_(core::basic_frame::empty())\r
, width_(video_decoder_.width())\r
, height_(video_decoder_.height())\r
- , progressive_(true)\r
+ , is_progressive_(true)\r
{\r
graph_->add_guide("frame-time", 0.5);\r
graph_->set_color("frame-time", diagnostics::color(0.1f, 1.0f, 0.1f));\r
auto video_frames = video_decoder_.poll();\r
BOOST_FOREACH(auto& video, video_frames) \r
{\r
- if(video)\r
- progressive_ &= video->interlaced_frame != 0;\r
+ is_progressive_ = video ? video->interlaced_frame == 0 : is_progressive_;\r
muxer_.push(video, hints); \r
}\r
},\r
virtual std::wstring print() const\r
{\r
return L"ffmpeg[" + boost::filesystem::wpath(filename_).filename() + L"|" \r
- + boost::lexical_cast<std::wstring>(fps_) + (progressive_ ? L"p" : L"i") +L"|"\r
+ + boost::lexical_cast<std::wstring>(fps_) + (is_progressive_ ? L"p" : L"i") +L"|"\r
+ boost::lexical_cast<std::wstring>(width_) + L"x" + boost::lexical_cast<std::wstring>(height_) + L"]";\r
}\r
};\r