more or less completed OIIO decoder

This commit is contained in:
itsmattkc
2019-09-05 01:15:50 +10:00
parent 695adea562
commit faa7f798ff
11 changed files with 134 additions and 47 deletions
+7 -8
View File
@@ -146,23 +146,22 @@ void Footage::UpdateIcon()
// Prioritize the video icon
set_icon(olive::icon::Video);
// FIXME: When image sources can be reliably picked up, use image icon instead
// Perhaps all image sources can be left to OpenImageIO meaning only video sources need to be here
break;
} else if (HasStreamsOfType(Stream::kAudio)) {
// Otherwise assume it's audio only
set_icon(olive::icon::Audio);
break;
} else {
} else if (HasStreamsOfType(Stream::kImage)) {
// FIXME Icon/indicator for a media file with no video or audio streams?
// The footage should probably be deemed kInvalid in this state
// Otherwise assume it's an image
set_icon(olive::icon::Image);
break;
}
break;
case kInvalid:
[[clang::fallthrough]]; case kInvalid:
set_icon(olive::icon::Error);
break;
}