From 170b2493fcd978bc26de04da78559f6efd309e22 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 3 Jan 2025 04:33:12 +0100 Subject: Show estimated file size for cbr for recording and mb/sec for streaming --- src/gui/SettingsPage.cpp | 64 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 51 insertions(+), 13 deletions(-) (limited to 'src/gui') diff --git a/src/gui/SettingsPage.cpp b/src/gui/SettingsPage.cpp index fa745df..9a8866a 100644 --- a/src/gui/SettingsPage.cpp +++ b/src/gui/SettingsPage.cpp @@ -338,11 +338,27 @@ namespace gsr { return list; } - std::unique_ptr SettingsPage::create_video_bitrate_entry() { + std::unique_ptr SettingsPage::create_video_bitrate_entry() { + auto list = std::make_unique(List::Orientation::HORIZONTAL, List::Alignment::CENTER); auto video_bitrate_entry = std::make_unique(&get_theme().body_font, "15000", (int)(get_theme().body_font.get_character_size() * 4.0f)); video_bitrate_entry->validate_handler = create_entry_validator_integer_in_range(1, 500000); video_bitrate_entry_ptr = video_bitrate_entry.get(); - return video_bitrate_entry; + list->add_widget(std::move(video_bitrate_entry)); + + if(type == Type::STREAM) { + auto size_mb_label = std::make_unique