Do some housekeeping to better catch actual problems.
Change-Id: I1824e0b91c55450006fda1279012117bc9495164
static int
wrapper_default_int_void (void)
{
- return;
+ return 0;
}
static void
static ci_adv_Err wrapper_AeGetWindowsNum(int *num)
{
- return;
+ return ci_adv_Success;
}
+
static void wrapper_AwbVersion(int * major, int * minor)
{
return;
static ci_adv_Err wrapper_AfGetStillAfStatus(ci_adv_AfStatus *status)
{
- return;
+ return ci_adv_Success;
}
static void wrapper_RerVersion(int * major, int * minor)
static ci_adv_Err wrapper_AeGetManualShutter(int *time)
{
- return;
+ return ci_adv_Success;
}
static void wrapper_Awbdata(unsigned * num_p, unsigned * avg_r, unsigned * avg_gr,
static ci_adv_Err wrapper_AeGetManualAperture(int *aperture)
{
- return;
+ return ci_adv_Success;
}
static ci_adv_Err wrapper_AeGetFlashMode(ci_adv_AeFlashMode *mode)
{
- return;
+ return ci_adv_Success;
}
static ci_adv_Err wrapper_AwbGetManualColorTemperature(int *ctemp)
{
- return;
+ return ci_adv_Success;
}
static void wrapper_Awbmatrix(int msqWbGain[3], int msqCcMtrx[9], unsigned short * shift)
mfld_driver.fourcc = fourcc;
mfldadvci->mode_spec_init ();
+
+ return CAM_ERR_NONE;
}
cam_err_t
"capture correction",
};
-
/* write_settings: Called when some settings in v4l2camerasrc's #GstPhotoSettings
* structure has changed. Driver needs to forward the settings to device.
*/
if (mfld_driver.ae_enabled)
mfldadvci->ae_apply_results ();
} else
- return;
+ return NULL;
}
}
*status = 1;
else
*status = 0;
+
+ return CAM_ERR_NONE;
}
cam_err_t get_exp_mode(int fd, cam_scene_mode_t *expmode)
#include <errno.h>
#include <stdarg.h>
#include "mfld_driver.h"
+#include "sh_css_types.h"
#include "atomisp_v4l2.h"
#define CAM_ISP_IS_OPEN(fd) (fd > 0)
w_ispparm->vf_wind_len_x = w_ispparm->vf_wind_len_x * (factor);
w_ispparm->vf_wind_len_y = w_ispparm->vf_wind_len_y * (factor);
#endif
+ return CAM_ERR_NONE;
}
//Store the Y U V file name to sh_si_config
//superimpose_file_read((sh_si_config *) arg);
//Call the kernel to store the pattern to xmem.
+ return CAM_ERR_NONE;
}
cam_err_t
{
cam_err_t ret;
- cam_driver_set_led_flash (fd, V4L2_CID_FLASH_STROBE, 0);
+ ret = cam_driver_set_led_flash (fd, V4L2_CID_FLASH_STROBE, 0);
if (ret != CAM_ERR_NONE)
{
cam_driver_dbg ("%s: Error flash ioctl %d\n", __func__, 0);
#define ON 1
#define OFF 0
+void cam_err_print (cam_err_t err);
+
/* Color effect settings */
cam_err_t cam_driver_set_tone_mode (int fd, enum v4l2_colorfx colorfx);
cam_err_t cam_driver_get_tone_mode (int fd, int *colorfx);
void led_flash_trigger (int fd, int duration, int intensity);
void led_flash_off (int fd);
+cam_err_t cam_driver_get_aperture (int fd, int *aperture);
+
#endif /* _MFLD_DRIVER_H */
GST_DEBUG_OBJECT (v4l2camsrc, "Loading %s", module_file);
}
- printf("Camera Source Interface version is %d\n", LIBMFLDADVCI_VERSION);
+ GST_DEBUG_OBJECT(v4l2camsrc, "Camera Source Interface version is %d\n", LIBMFLDADVCI_VERSION);
if (v4l2camsrc->module) {
gboolean ret;
#include <gst/gst.h>
#include <gst/camera/gstmfldcamerasrc.h>
+#include <gst/interfaces/cameracontrol.h>
#include "mfld_cam.h"
#include "gstv4l2mfldadvci.h"
g_mutex_lock (v4l2camsrc->device_mutex);
if (v4l2camsrc->running) {
- cam_err_t err;
+ cam_err_t err = CAM_ERR_NONE;
//err= cam_set_autofocus(v4l2camsrc->video_fd, on);
v4l2camsrc->af_enabled = on;
g_mutex_lock (v4l2camsrc->device_mutex);
if (v4l2camsrc->running) {
- cam_err_t err;
+ cam_err_t err = CAM_ERR_NONE;
//err = cam_set_autoexposure(v4l2camsrc->video_fd, on);
v4l2camsrc->ae_enabled = on;