mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-07 07:16:23 +09:00
Update file size estimation for replay after gsr fix
This commit is contained in:
@@ -556,8 +556,8 @@ namespace gsr {
|
|||||||
|
|
||||||
void SettingsPage::update_estimated_file_size() {
|
void SettingsPage::update_estimated_file_size() {
|
||||||
const int64_t replay_time_seconds = atoi(replay_time_entry_ptr->get_text().c_str());
|
const int64_t replay_time_seconds = atoi(replay_time_entry_ptr->get_text().c_str());
|
||||||
const int64_t video_bitrate_bps = atoi(video_bitrate_entry_ptr->get_text().c_str()) * 1000LL;
|
const int64_t video_bitrate_bps = atoi(video_bitrate_entry_ptr->get_text().c_str()) * 1024LL;
|
||||||
const double video_filesize_mb = ((double)replay_time_seconds * (double)video_bitrate_bps) / 1024.0 / 1024.0 / 3.3333; // Why 3.3333?
|
const double video_filesize_mb = ((double)replay_time_seconds * (double)video_bitrate_bps) / 1024.0 / 1024.0;
|
||||||
|
|
||||||
char buffer[512];
|
char buffer[512];
|
||||||
snprintf(buffer, sizeof(buffer), "Estimated video max file size in RAM: %.2fMB", video_filesize_mb);
|
snprintf(buffer, sizeof(buffer), "Estimated video max file size in RAM: %.2fMB", video_filesize_mb);
|
||||||
|
|||||||
Reference in New Issue
Block a user