Add support for 24 and 25 fps modes.
Fix bug on applying maximum fps parameter.
BUG :
7385305
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Change-Id: I005f87da69ca12d408b51d46f1fbd75d1a1a6cc5
sizeof(exposureCompensationRange)/sizeof(int32_t));
static const int32_t availableTargetFpsRanges[] = {
- 15, 15, 15, 30, 30, 30
+ 15, 15, 24, 24, 25, 25, 15, 30, 30, 30
};
ADD_OR_SIZE(ANDROID_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES,
availableTargetFpsRanges,
shot_ext->request_scc = 0;
}
+ switch (shot_ext->shot.ctl.aa.aeTargetFpsRange[1]) {
+ case 15:
+ shot_ext->shot.ctl.sensor.frameDuration = (66666 * 1000);
+ break;
+
+ case 24:
+ shot_ext->shot.ctl.sensor.frameDuration = (41666 * 1000);
+ break;
+
+ case 25:
+ shot_ext->shot.ctl.sensor.frameDuration = (40000 * 1000);
+ break;
+
+ case 30:
+ default:
+ shot_ext->shot.ctl.sensor.frameDuration = (33333 * 1000);
+ break;
+ }
+ shot_ext->shot.ctl.aa.aeTargetFpsRange[1] = 30;
+
// Flash mode
// Keep and Skip request_scc = 1 at flash enable mode to operate flash sequence
if ((m_ctlInfo.flash.i_flashMode >= AA_AEMODE_ON_AUTO_FLASH)