ci_adv_af_stop();
}
-
-static void
-lib_3a_ae_process( )
-{
- /* ? */
- // ia_3a_calibration_ae_process();;
-}
-
static void
lib_3a_ae_calc_for_flash( )
{
}
static void
-lib_3a_af_process( )
+lib_3a_AeAfAwb_process( struct timeval *frame_timestamp)
{
- /* ? TODO check */
int status;
- struct timeval frame_timestamp;
-
- status = gettimeofday(&frame_timestamp, NULL);
- status = ci_adv_process_frame(TRUE,&frame_timestamp);
+ status = ci_adv_process_frame(TRUE,frame_timestamp);
}
static void
lib_3a_get_statistics( )
lib_3a_awb_apply_results( )
{
}
-static void
-lib_3a_awb_process( )
-{
-}
void
lib_3a_link_functions_init (GstV4l2MFLDAdvCI *mfldadvci)
mfldadvci->mode_spec_init = lib_3a_int_void; /* TODO */
mfldadvci->switch_mode = lib_3a_switch_mode;
- mfldadvci->ae_process = lib_3a_ae_process;
- mfldadvci->af_process = lib_3a_af_process;
- mfldadvci->awb_process = lib_3a_awb_process;
+ mfldadvci->AeAfAwb_process = lib_3a_AeAfAwb_process;
mfldadvci->get_statistics = lib_3a_get_statistics; /* TODO atomisp_dis_statistics ? */
mfldadvci->ae_calc_for_flash = lib_3a_ae_calc_for_flash;
void (*get_statistics)(void);
- void (*ae_process)(void);
- void (*af_process)(void);
- void (*awb_process)(void);
+ void (*AeAfAwb_process)( struct timeval *frame_timestamp);
void (*ae_calc_for_flash)(void);
void (*ae_calc_without_flash)(void);
struct atomisp_dis_vector dvs_vector;
float frame_rate;
int sensor_type;
+ struct timeval timestamp;
};
struct buffer
{
mfldadvci->get_statistics ();
-
/* AE, AWB and AF Process */
- if (mfld_driver.ae_enabled)
- mfldadvci->ae_process ();
-
- if (mfld_driver.af_enabled)
- mfldadvci->af_process ();
-
- if (mfld_driver.awb_enabled)
- mfldadvci->awb_process ();
+ mfldadvci->AeAfAwb_process(&mfld_driver.timestamp);
/* apply Results */
if (mfld_driver.awb_enabled)
cam_driver_dbg ("%s: Error dqbuf %d\n", __func__, frame_cnt);
return CAM_ERR_SYS;
}
+
+ mfld_driver.timestamp = buffer->timestamp;
sem_post(&g_sem_3a);
/* DIS and DVS processing */
+* Mon Nov 05 2012 Marko Ollonen <marko.ollonen@ixonos.com> accepted/trunk/20121031.171703@db3d6d4
+- combine AfAeAwb process methods and pass frame timestamp to 3A.
+
* Mon Nov 05 2012 Marko Ollonen <marko.ollonen@ixonos.com> accepted/trunk/20121031.171703@35a52c7
- pass used frame rate info to 3A library.