aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-10-09 19:08:55 +0200
committerdec05eba <dec05eba@protonmail.com>2024-10-09 19:11:16 +0200
commit9d76b0861eb0249194e96b663fbeca60cd5bfeb0 (patch)
tree7f4746e0e6985b4ca7f590d5f0ced2a2a6fdc355 /include
parent61c9b4918ed81a6ad439748f8bcb1c6f9b0cf65e (diff)
Add constant bitrate option
Diffstat (limited to 'include')
-rw-r--r--include/Config.hpp1
-rw-r--r--include/gui/SettingsPage.hpp7
2 files changed, 6 insertions, 2 deletions
diff --git a/include/Config.hpp b/include/Config.hpp
index 549696e..0d2c822 100644
--- a/include/Config.hpp
+++ b/include/Config.hpp
@@ -17,6 +17,7 @@ namespace gsr {
int32_t record_area_width = 0;
int32_t record_area_height = 0;
int32_t fps = 60;
+ int32_t video_bitrate = 5000;
bool merge_audio_tracks = true;
std::vector<std::string> audio_tracks;
std::string color_range = "limited";
diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp
index e9102da..4f5a7c9 100644
--- a/include/gui/SettingsPage.hpp
+++ b/include/gui/SettingsPage.hpp
@@ -49,8 +49,9 @@ namespace gsr {
std::unique_ptr<List> create_audio_track_section();
std::unique_ptr<CheckBox> create_merge_audio_tracks_checkbox();
std::unique_ptr<Widget> create_audio_device_section();
- std::unique_ptr<ComboBox> create_video_quality_box();
- std::unique_ptr<List> create_video_quality();
+ std::unique_ptr<List> create_video_quality_box();
+ std::unique_ptr<Entry> create_video_bitrate_entry();
+ std::unique_ptr<List> create_video_bitrate();
std::unique_ptr<ComboBox> create_color_range_box();
std::unique_ptr<List> create_color_range();
std::unique_ptr<List> create_video_quality_section();
@@ -115,6 +116,8 @@ namespace gsr {
Entry *area_width_entry_ptr = nullptr;
Entry *area_height_entry_ptr = nullptr;
Entry *framerate_entry_ptr = nullptr;
+ Entry *video_bitrate_entry_ptr = nullptr;
+ List *video_bitrate_list_ptr = nullptr;
List *audio_devices_list_ptr = nullptr;
CheckBox *merge_audio_tracks_checkbox_ptr = nullptr;
ComboBox *color_range_box_ptr = nullptr;