Add vulkan video encoding option, improve translation strings

This commit is contained in:
dec05eba
2026-04-18 20:45:45 +02:00
parent 0c6d887def
commit 532c50ce6d
15 changed files with 184 additions and 50 deletions

View File

@@ -57,6 +57,7 @@ namespace gsr {
bool record_cursor = true;
bool restore_portal_session = true;
bool low_power_mode = false;
bool enable_vulkan_video_encoding = false;
std::string webcam_source = "";
bool webcam_flip_horizontally = false;

View File

@@ -18,6 +18,13 @@ namespace gsr {
bool av1_10bit = false;
bool vp8 = false;
bool vp9 = false;
bool h264_vulkan = false;
bool hevc_vulkan = false;
bool hevc_hdr_vulkan = false;
bool hevc_10bit_vulkan = false;
bool av1_vulkan = false;
bool av1_hdr_vulkan = false;
bool av1_10bit_vulkan = false;
};
struct SupportedImageFormats {

View File

@@ -109,6 +109,7 @@ namespace gsr {
std::unique_ptr<List> create_framerate_mode();
std::unique_ptr<List> create_framerate_section();
std::unique_ptr<Widget> create_record_cursor_section();
std::unique_ptr<Widget> create_enable_vulkan_video_encoding_section();
std::unique_ptr<Widget> create_video_section();
std::unique_ptr<Widget> create_settings();
void add_widgets();
@@ -131,9 +132,9 @@ namespace gsr {
std::unique_ptr<CheckBox> create_save_recording_in_game_folder();
std::unique_ptr<Label> create_estimated_record_file_size();
void update_estimated_record_file_size();
std::unique_ptr<CheckBox> create_led_indicator(const char *type);
std::unique_ptr<CheckBox> create_notifications(const char *type);
std::unique_ptr<List> create_indicator(const char *type);
std::unique_ptr<CheckBox> create_led_indicator();
std::unique_ptr<CheckBox> create_notifications();
std::unique_ptr<List> create_indicator();
std::unique_ptr<Widget> create_low_power_mode();
void add_replay_widgets();
void add_record_widgets();
@@ -232,6 +233,7 @@ namespace gsr {
CheckBox *flip_camera_horizontally_checkbox_ptr = nullptr;
CheckBox *low_power_mode_checkbox_ptr = nullptr;
CheckBox *replay_power_supply_checkbox_ptr = nullptr;
CheckBox *enable_vulkan_checkbox_ptr = nullptr;
PageStack *page_stack = nullptr;