mirror of https://github.com/mgba-emu/mgba.git
Qt: Add HEVC and NVENC to video formats
This commit is contained in:
parent
aff1486ec5
commit
e838c4fb0e
|
@ -63,7 +63,9 @@ VideoView::VideoView(QWidget* parent)
|
|||
if (s_vcodecMap.empty()) {
|
||||
s_vcodecMap["dirac"] = "libschroedinger";
|
||||
s_vcodecMap["h264"] = "libx264";
|
||||
s_vcodecMap["h264 nvenc"] = "h264_nvenc";
|
||||
s_vcodecMap["hevc"] = "libx265";
|
||||
s_vcodecMap["hevc nvenc"] = "hevc_nvenc";
|
||||
s_vcodecMap["theora"] = "libtheora";
|
||||
s_vcodecMap["vp8"] = "libvpx";
|
||||
s_vcodecMap["vp9"] = "libvpx-vp9";
|
||||
|
@ -458,6 +460,8 @@ void VideoView::uncheckIncompatible() {
|
|||
QString VideoView::sanitizeCodec(const QString& codec, const QMap<QString, QString>& mapping) {
|
||||
QString sanitized = codec.toLower();
|
||||
sanitized = sanitized.remove(QChar('.'));
|
||||
sanitized = sanitized.remove(QChar('('));
|
||||
sanitized = sanitized.remove(QChar(')'));
|
||||
if (mapping.contains(sanitized)) {
|
||||
sanitized = mapping[sanitized];
|
||||
}
|
||||
|
|
|
@ -266,12 +266,17 @@
|
|||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>VP8</string>
|
||||
<string>h.264 (NVENC)</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Xvid</string>
|
||||
<string>HEVC</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>VP8</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
|
|
Loading…
Reference in New Issue