Skip to content

Commit

Permalink
Update outputsettingsdisplaywidget.h
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Mar 30, 2024
1 parent 29ae228 commit e2a455a
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions src/app/GUI/RenderWidgets/outputsettingsdisplaywidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,105 +75,83 @@ 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;
case AV_CODEC_ID_PRORES:
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;
case AV_CODEC_ID_AV1:
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;
case AV_CODEC_ID_VP9:
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;
case AV_CODEC_ID_MPEG4:
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;
case AV_CODEC_ID_VC1:
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;
default:;
}
return QString();
}

void setVideoCodecText(const QString &txt,
const AVCodec *codec,
int profile)
Expand Down

0 comments on commit e2a455a

Please sign in to comment.