footageviewer: set divider
This commit is contained in:
@@ -136,7 +136,12 @@ void Footage::InputValueChangedEvent(const QString &input, int element)
|
||||
decoder_ = footage_info.decoder();
|
||||
|
||||
for (int i=0; i<footage_info.GetVideoStreams().size(); i++) {
|
||||
AddStream(Track::kVideo, QVariant::fromValue(footage_info.GetVideoStreams().at(i)));
|
||||
VideoParams vp = footage_info.GetVideoStreams().at(i);
|
||||
|
||||
// FIXME: Make this customizable
|
||||
vp.set_divider(VideoParams::generate_auto_divider(vp.width(), vp.height()));
|
||||
|
||||
AddStream(Track::kVideo, QVariant::fromValue(vp));
|
||||
}
|
||||
|
||||
if (!footage_info.GetVideoStreams().isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user