MCPcopy Create free account
hub / github.com/clementgallet/libTAS / slotOk

Method slotOk

src/program/ui/EncodeWindow.cpp:212–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void EncodeWindow::slotOk()
213{
214 /* Fill encode filename */
215 context->config.dumpfile = encodePath->text().toStdString();
216 context->config.dumpfile_modified = true;
217
218 /* Set video codec and bitrate */
219 context->config.sc.video_codec = videoChoice->currentIndex();
220 context->config.sc.video_bitrate = videoBitrate->value();
221
222 /* Set audio codec and bitrate */
223 context->config.sc.audio_codec = audioChoice->currentIndex();
224 context->config.sc.audio_bitrate = audioBitrate->value();
225 context->config.ffmpegoptions = ffmpegOptions->text().toStdString();
226
227 if (framerateGroupBox->isChecked())
228 context->config.sc.video_framerate = videoFramerate->value();
229 else
230 context->config.sc.video_framerate = 0;
231
232 context->config.sc_modified = true;
233
234 /* Close window */
235 accept();
236}
237
238void EncodeWindow::slotDefault()
239{

Callers

nothing calls this directly

Calls 2

textMethod · 0.80
valueMethod · 0.80

Tested by

no test coverage detected