From e2a455abd5b88971e78b6780c225266eb07bc0d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Sat, 30 Mar 2024 17:57:22 +0100 Subject: [PATCH] Update outputsettingsdisplaywidget.h --- .../outputsettingsdisplaywidget.h | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/app/GUI/RenderWidgets/outputsettingsdisplaywidget.h b/src/app/GUI/RenderWidgets/outputsettingsdisplaywidget.h index 01f326c72..7d6020353 100644 --- a/src/app/GUI/RenderWidgets/outputsettingsdisplaywidget.h +++ b/src/app/GUI/RenderWidgets/outputsettingsdisplaywidget.h @@ -75,13 +75,10 @@ class OutputSettingsDisplayWidget : public QWidget { switch (profile) { case FF_PROFILE_H264_BASELINE: return tr("Baseline"); - break; case FF_PROFILE_H264_MAIN: return tr("Main"); - break; case FF_PROFILE_H264_HIGH: return tr("High"); - break; default:; } break; @@ -89,22 +86,16 @@ class OutputSettingsDisplayWidget : public QWidget { switch (profile) { case FF_PROFILE_PRORES_PROXY: return tr("Proxy"); - break; case FF_PROFILE_PRORES_LT: return tr("LT"); - break; case FF_PROFILE_PRORES_STANDARD: return tr("Standard"); - break; case FF_PROFILE_PRORES_HQ: return tr("HQ"); - break; case FF_PROFILE_PRORES_4444: return tr("4444"); - break; case FF_PROFILE_PRORES_XQ: return tr("XQ"); - break; default:; } break; @@ -112,13 +103,10 @@ class OutputSettingsDisplayWidget : public QWidget { switch (profile) { case FF_PROFILE_AV1_MAIN: return tr("Main"); - break; case FF_PROFILE_AV1_HIGH: return tr("High"); - break; case FF_PROFILE_AV1_PROFESSIONAL: return tr("Professional"); - break; default:; } break; @@ -126,16 +114,12 @@ class OutputSettingsDisplayWidget : public QWidget { switch (profile) { case FF_PROFILE_VP9_0: return tr("0"); - break; case FF_PROFILE_VP9_1: return tr("1"); - break; case FF_PROFILE_VP9_2: return tr("2"); - break; case FF_PROFILE_VP9_3: return tr("3"); - break; default:; } break; @@ -143,13 +127,10 @@ class OutputSettingsDisplayWidget : public QWidget { switch (profile) { case FF_PROFILE_MPEG4_SIMPLE: return tr("Simple"); - break; case FF_PROFILE_MPEG4_CORE: return tr("Core"); - break; case FF_PROFILE_MPEG4_MAIN: return tr("Main"); - break; default:; } break; @@ -157,16 +138,12 @@ class OutputSettingsDisplayWidget : public QWidget { switch (profile) { case FF_PROFILE_VC1_SIMPLE: return tr("Simple"); - break; case FF_PROFILE_VC1_MAIN: return tr("Main"); - break; case FF_PROFILE_VC1_COMPLEX: return tr("Complex"); - break; case FF_PROFILE_VC1_ADVANCED: return tr("Advanced"); - break; default:; } break; @@ -174,6 +151,7 @@ class OutputSettingsDisplayWidget : public QWidget { } return QString(); } + void setVideoCodecText(const QString &txt, const AVCodec *codec, int profile)