g_module_symbol (mod, "ci_adv_get_focus_current_pos", (gpointer) &mfldadvci->GetCurrFocusPos);
g_module_symbol (mod, "ci_adv_focus_pos_to_distance", (gpointer) &mfldadvci->FocusPosToDisctance);
+ g_module_symbol (mod, "ci_adv_ae_set_backlight_correction", (gpointer) &mfldadvci->AeSetBacklightCorrection);
+
mfldadvci->initialized = 0;
// TODO
mfldadvci->GetCurrFocusPos = wrapper_default_int_int;
mfldadvci->FocusPosToDisctance = wrapper_default_int_int;
+ mfldadvci->AeSetBacklightCorrection = wrapper_default_enable;
+
}
int (*GetCurrFocusPos)(int *pos);
int (*FocusPosToDisctance)(int pos); /*!< Converts pos to focus distance in cm */
+ void (*AeSetBacklightCorrection)(gboolean enable);
+
};
void lib_3a_link_functions_init (GstV4l2MFLDAdvCI *mfldadvci, GModule *mod);
scene = advci_ae_exposure_program_night;
break;
case CAM_GENERAL_SCENE_MODE_AUTO:
+ case CAM_GENERAL_SCENE_MODE_BACKLIGHT:
scene = advci_ae_exposure_program_auto;
break;
case CAM_GENERAL_SCENE_MODE_FIREWORKS:
break;
}
mfldadvci->AeSetExposureProgram (scene);
+
+ if (mode == CAM_GENERAL_SCENE_MODE_BACKLIGHT)
+ mfldadvci->AeSetBacklightCorrection(TRUE);
+ else
+ mfldadvci->AeSetBacklightCorrection(FALSE);
+
}
mfld_cam_settings.scene_mode = mode;
return CAM_ERR_NONE;
mfldadvci->AfSetMode(advci_af_mode_auto);
mfldadvci->AeSetFlickerMode (advci_ae_flicker_mode_50hz);
mfldadvci->AfSetMeteringMode(advci_af_metering_mode_auto);
-
+ mfldadvci->AeSetBacklightCorrection(FALSE);
mfldadvci->af_stop ();
}
else{
CAM_GENERAL_SCENE_MODE_NIGHT,
CAM_GENERAL_SCENE_MODE_AUTO,
CAM_GENERAL_SCENE_MODE_FIREWORKS,
+ CAM_GENERAL_SCENE_MODE_BACKLIGHT
} cam_scene_mode_t;
/* Focus Status */
CAM_GENERAL_SCENE_MODE_SPORT,
CAM_GENERAL_SCENE_MODE_NIGHT,
CAM_GENERAL_SCENE_MODE_AUTO,
+ CAM_GENERAL_SCENE_MODE_BACKLIGHT,
-1
};
+* Wed May 22 2013 Marko Ollonen <marko.ollonen@ixonos.com> accepted/tizen_2.0/20130307.195130@d028212
+- backlight correction added to scene modes.
+
* Mon May 13 2013 Marko Ollonen <marko.ollonen@ixonos.com> accepted/tizen_2.0/20130307.195130@b43a6e2
- unref still image buffer in signal based capture, TZSP-6410.