Skip to content

Commit

Permalink
mlv_lite.c: set lv zoom to x5 if it's x10 and if crop_rec is enabled …
Browse files Browse the repository at this point in the history
…before recording
  • Loading branch information
bilalfakhouri committed Mar 27, 2023
1 parent 84264c6 commit 8c501f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/mlv_lite/mlv_lite.c
Expand Up @@ -3426,6 +3426,15 @@ void raw_video_rec_task(uint32_t thread)
/* assume x10 is for focusing */
/* todo: detect x5 preset in crop_rec? */
set_lv_zoom(1);

if (crop_rec_is_enabled())
{
/* our crop_rec for entry-level models work only in x5 mode */
if (cam_100d || cam_650d || cam_700d || cam_eos_m)
{
set_lv_zoom(5);
}
}
}

/* note: rec_trigger is implemented via pre_recording */
Expand Down

0 comments on commit 8c501f6

Please sign in to comment.