OMAP3 camera driver histogram H3A
PATCH 15/16 OMAP3 camera driver histogram H3A
From: Mohit Jalori <[email protected]>
ARM: OMAP: OMAP34XXCAM: ISP 3A & Histogram Blocks.
Adding ISP 3A and Histogram Statistics block support for OMAP 34xx Camera Driver.
Signed-off-by Mohit Jalori <[email protected]>
--- drivers/media/video/isp/Makefile | 2 drivers/media/video/isp/isp.c | 83 +++ drivers/media/video/isp/isph3a.c | 922 +++++++++++++++++++++++++++++++++++ drivers/media/video/isp/isph3a.h | 139 +++++ drivers/media/video/isp/isphist.c | 651 ++++++++++++++++++++++++ drivers/media/video/isp/isphist.h | 97 +++ drivers/media/video/omap34xxcam.c | 32 + include/asm-arm/arch-omap/isp_user.h | 121 ++++ 8 files changed, 2045 insertions(+), 2 deletions(-)
drivers/media/video/isp/Makefile +1 -1
@@ -6,6 +6,6 @@ obj-$(CONFIG_VIDEO_OMAP3) += \ else obj-$(CONFIG_VIDEO_OMAP3) += \ isp.o ispccdc.o ispmmu.o \ - isppreview.o ispresizer.o + isppreview.o ispresizer.o isph3a.o isphist.o endif
drivers/media/video/isp/isp.c +83 -0
131 lines not on this page · raw message
drivers/media/video/isp/isph3a.c new file +922 -0
922 lines not on this page · raw message
drivers/media/video/isp/isph3a.h new file +139 -0
139 lines not on this page · raw message
drivers/media/video/isp/isphist.c new file +651 -0
651 lines not on this page · raw message
drivers/media/video/isp/isphist.h new file +97 -0
97 lines not on this page · raw message
drivers/media/video/omap34xxcam.c +31 -1
@@ -38,6 +38,7 @@#include "isp/ispmmu.h" #include "isp/ispreg.h" #include "isp/ispccdc.h" +#include "isp/isph3a.h" #define OMAP34XXCAM_VERSION KERNEL_VERSION(0, 0, 0)
@@ -109,16 +110,21 @@ int omap34xxcam_update_vbq(struct videob {struct omap34xxcam_fh *fh = camfh_saved;struct omap34xxcam_videodev *vdev = fh->vdev; +struct isph3a_aewb_xtrastats xtrastats;int rval =0 ;do_gettimeofday (&vb->ts); vb->field_count =atomic_add_return (2 , &fh->field_count); vb->state =VIDEOBUF_DONE ; + xtrastats.ts = vb->ts; + xtrastats.field_count = vb->field_count; +if (vdev->streaming) rval =1 ;wake_up (&vb->done); +isph3a_aewb_setxtrastats (&xtrastats);return rval; }
@@ -1133,11 +1139,35 @@ static int omap34xxcam_handle_private(st rval = -EINVAL ; }else {switch (cmd) { +case VIDIOC_PRIVATE_ISP_AEWB_REQ : + { +/* Need to update sensor first */ +struct isph3a_aewb_data *data; +struct v4l2_control vc; + + data = (struct isph3a_aewb_data *) arg; +if (data->update &SET_EXPOSURE ) { + vc.id =V4L2_CID_EXPOSURE ; + vc.value = data->shutter; + rval =vidioc_int_s_ctrl (vdev->vdev_sensor, + &vc); +if (rval) + goto out; + } +if (data->update &SET_ANALOG_GAIN ) { + vc.id =V4L2_CID_GAIN ; + vc.value = data->gain; + rval =vidioc_int_s_ctrl (vdev->vdev_sensor, + &vc); +if (rval) + goto out; + } + }default : rval =isp_handle_private (cmd, arg); } } - +out:mutex_unlock (&vdev->mutex);return rval; }
include/asm-arm/arch-omap/isp_user.h +121 -0
127 lines not on this page · raw message
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list