mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/gui: Add SW Ultrafast and SW Veryfast pipelines
Yes, I really need those. SW Fast is still the default.
This commit is contained in:
parent
29acdba23f
commit
8fe2a86886
|
@ -67,6 +67,8 @@ create_pipeline(struct gui_record_window *rw)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (rw->gst.pipeline) {
|
switch (rw->gst.pipeline) {
|
||||||
|
case GUI_RECORD_PIPELINE_SOFTWARE_ULTRAFAST: speed_preset = "ultrafast"; break;
|
||||||
|
case GUI_RECORD_PIPELINE_SOFTWARE_VERYFAST: speed_preset = "veryfast"; break;
|
||||||
case GUI_RECORD_PIPELINE_SOFTWARE_FAST: speed_preset = "fast"; break;
|
case GUI_RECORD_PIPELINE_SOFTWARE_FAST: speed_preset = "fast"; break;
|
||||||
case GUI_RECORD_PIPELINE_SOFTWARE_MEDIUM: speed_preset = "medium"; break;
|
case GUI_RECORD_PIPELINE_SOFTWARE_MEDIUM: speed_preset = "medium"; break;
|
||||||
case GUI_RECORD_PIPELINE_SOFTWARE_SLOW: speed_preset = "slow"; break;
|
case GUI_RECORD_PIPELINE_SOFTWARE_SLOW: speed_preset = "slow"; break;
|
||||||
|
@ -166,7 +168,8 @@ draw_gst(struct gui_record_window *rw)
|
||||||
bool recording = rw->gst.gp != NULL;
|
bool recording = rw->gst.gp != NULL;
|
||||||
os_mutex_unlock(&rw->gst.mutex);
|
os_mutex_unlock(&rw->gst.mutex);
|
||||||
|
|
||||||
igComboStr("Pipeline", (int *)&rw->gst.pipeline, "SW Fast\0SW Medium\0SW Slow\0SW Veryslow\0VAAPI H264\0\0", 5);
|
igComboStr("Pipeline", (int *)&rw->gst.pipeline,
|
||||||
|
"SW Ultrafast\0SW Veryfast\0SW Fast\0SW Medium\0SW Slow\0SW Veryslow\0VAAPI H264\0\0", 5);
|
||||||
igComboStr("Bitrate", (int *)&rw->gst.bitrate, "32768bps (Be careful!)\0004096bps\0002048bps\0001024bps\0\0",
|
igComboStr("Bitrate", (int *)&rw->gst.bitrate, "32768bps (Be careful!)\0004096bps\0002048bps\0001024bps\0\0",
|
||||||
3);
|
3);
|
||||||
|
|
||||||
|
@ -269,6 +272,7 @@ gui_window_record_init(struct gui_record_window *rw)
|
||||||
|
|
||||||
snprintf(rw->gst.filename, sizeof(rw->gst.filename), "/tmp/capture.mp4");
|
snprintf(rw->gst.filename, sizeof(rw->gst.filename), "/tmp/capture.mp4");
|
||||||
rw->gst.bitrate = GUI_RECORD_BITRATE_4096;
|
rw->gst.bitrate = GUI_RECORD_BITRATE_4096;
|
||||||
|
rw->gst.pipeline = GUI_RECORD_PIPELINE_SOFTWARE_FAST;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,8 @@ enum gui_record_bitrate
|
||||||
|
|
||||||
enum gui_record_pipeline
|
enum gui_record_pipeline
|
||||||
{
|
{
|
||||||
|
GUI_RECORD_PIPELINE_SOFTWARE_ULTRAFAST,
|
||||||
|
GUI_RECORD_PIPELINE_SOFTWARE_VERYFAST,
|
||||||
GUI_RECORD_PIPELINE_SOFTWARE_FAST,
|
GUI_RECORD_PIPELINE_SOFTWARE_FAST,
|
||||||
GUI_RECORD_PIPELINE_SOFTWARE_MEDIUM,
|
GUI_RECORD_PIPELINE_SOFTWARE_MEDIUM,
|
||||||
GUI_RECORD_PIPELINE_SOFTWARE_SLOW,
|
GUI_RECORD_PIPELINE_SOFTWARE_SLOW,
|
||||||
|
|
Loading…
Reference in a new issue