MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / onCaptureCodecChanged

Method onCaptureCodecChanged

pcsx2-qt/Settings/GraphicsSettingsWidget.cpp:920–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918}
919
920void GraphicsSettingsWidget::GraphicsSettingsWidget::onCaptureCodecChanged()
921{
922 QObject::disconnect(m_capture.videoCaptureFormat, &QComboBox::currentIndexChanged, nullptr, nullptr);
923 m_capture.videoCaptureFormat->clear();
924 //: This string refers to a default pixel format
925 m_capture.videoCaptureFormat->addItem(tr("Default"), "");
926
927 const std::string codec(
928 dialog()->getEffectiveStringValue("EmuCore/GS", "VideoCaptureCodec", ""));
929
930 if (!codec.empty())
931 {
932 for (const auto& [id, name] : GSCapture::GetVideoFormatList(codec.c_str()))
933 {
934 const QString qid(QString::number(id));
935 const QString qname(QString::fromStdString(name));
936 m_capture.videoCaptureFormat->addItem(qname, qid);
937 }
938 }
939
940 SettingWidgetBinder::BindWidgetToStringSetting(
941 dialog()->getSettingsInterface(), m_capture.videoCaptureFormat, "EmuCore/GS", "VideoCaptureFormat");
942}
943
944void GraphicsSettingsWidget::onEnableVideoCaptureChanged()
945{

Callers

nothing calls this directly

Calls 6

getSettingsInterfaceMethod · 0.80
clearMethod · 0.45
emptyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected