Skip to content

Commit

Permalink
much higher bitrate (95000kbps) for o22 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Jan 25, 2025
1 parent 6336414 commit 1dde154
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/app/ui/settings/panes/basic.pane.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ static void on_res_fps_updated(lv_event_t *e) {
basic_pane_t *pane = lv_event_get_user_data(e);
int bitrate = settings_optimal_bitrate(&pane->parent->app->ss4s.video_cap, app_configuration->stream.width,
app_configuration->stream.height, app_configuration->stream.fps);
lv_slider_set_value(pane->bitrate_slider, bitrate / BITRATE_STEP, LV_ANIM_OFF);
app_configuration->stream.bitrate = lv_slider_get_value(pane->bitrate_slider) * BITRATE_STEP;
if (bitrate > app_configuration->stream.bitrate) {
lv_slider_set_value(pane->bitrate_slider, bitrate / BITRATE_STEP, LV_ANIM_OFF);
app_configuration->stream.bitrate = lv_slider_get_value(pane->bitrate_slider) * BITRATE_STEP;
}
if (app_configuration->stream.width > 1920 && app_configuration->stream.height > 1080 &&
app_configuration->stream.fps > 60) {
lv_obj_clear_flag(pane->res_warning, LV_OBJ_FLAG_HIDDEN);
Expand Down

0 comments on commit 1dde154

Please sign in to comment.