#include "gstv4l2mfldadvci.h"
#include <linux/videodev2.h>
-#include <math.h>
#include <sys/ioctl.h>
#include <gst/gst.h>
{
}
-static ci_adv_Err wrapper_default_AeSetManualIso(int sensitivity)
+static ci_adv_Err wrapper_default_AeSetManualIso(float sensitivity)
{
return 0;
}
-static ci_adv_Err wrapper_default_AeGetManualIso(int *sensitivity)
+static ci_adv_Err wrapper_default_AeGetManualIso(float *sensitivity)
{
return 0;
}
void (*AeSetWindow)(advci_window *window);
void (*AeGetWindow)(advci_window *window);
- ci_adv_Err (*AeSetIso)(int sensitivity);
- ci_adv_Err (*AeGetIso)(int *sensitivity);
+ ci_adv_Err (*AeSetIso)(float sensitivity);
+ ci_adv_Err (*AeGetIso)(float *sensitivity);
void (*AfSetMode)(advci_af_mode mode);
advci_af_mode (*AfGetMode)(void);
/* AWB Light Source */
void (*AwbSetLightSource)(advci_awb_light_source ls);
- advci_awb_light_source (*AwbGetLightSource)(v);
+ advci_awb_light_source (*AwbGetLightSource)(void);
ci_adv_Err (*AeGetWindowsNum)(int *num);
void (*AwbVersion)(int * major, int * minor);
#include <sys/mman.h>
#include <string.h>
#include <sys/ioctl.h>
+#include <math.h>
#include <unistd.h>
return CAM_ERR_NONE;
}
//Manual Mode, check the error?
- mfldadvci->AwbGetLightSource (&ls);
+ ls = mfldadvci->AwbGetLightSource();
switch (ls) {
case advci_awb_light_source_filament_lamp:
*wb_mode = CAM_AWB_MODE_TUNGSTEN;
if (iso <=0)
return CAM_ERR_PARAM;
sv = log10((float)iso / 3.125) / log10(2.0);
- ret = mfldadvci->AeSetIso(mfld_cam_settings.iso_speed);
+ ret = mfldadvci->AeSetIso(sv);
}
return ret;
}