From: Nikita Yushchenko <nyushchenko@dev.rtsoft.ru>
To: "Dmitriy B." <rzk333@gmail.com>
Cc: Gennady Kuznetsov <kuznetsovg@dev.rtsoft.ru>,
"meta-freescale@yoctoproject.org"
<meta-freescale@yoctoproject.org>,
arusalin <arusalin@dev.rtsoft.ru>
Subject: Re: OV5640 autofocus kernel+gstreamer+Qt implementation
Date: Mon, 05 Oct 2015 09:50:01 +0300 [thread overview]
Message-ID: <56121D99.10908@dev.rtsoft.ru> (raw)
In-Reply-To: <CAPhrY5MgqW8S7ZGDtKGxyeasf2ZA91ySMHzv8LD9gpZf18x6Ng@mail.gmail.com>
Hi Dmitry.
Sorry missed your mail (I'm not at list)
>> Kernel patches are against imx_3.14.28_1.0.0_ga branch.
>>
>> First patch is generic mxc_v4l2_capture cleanup. Unfortunately driver
>> was quite racy and did not survive even streaming stop+start from within
>> Qt. Had to do some cleanup to mitigate that.
>>
>> Second patch contains actual implementation of focus-related v4l ioctls.
>>
>> Autofocus firmware embedded into patch was taken from
>> http://crewrktablets.arctablet.com:8080/opendev/kernel_rockchip.git,
>> branch rockchip-3.10-rk3288
>> file drivers/media/video/ov5640_af_firmware.c
>> and converted to format that existing driver uses. I've tried different
>> firmwares found over the net, this one shows the best behaviour.
>>
>
> Interesting, you seem to have better implementation of AF than
> https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.10.53_1.1.1_ga/drivers/media/platform/mxc/capture/ov5640_mipi.c#L120
I've seen that, but it is incomplete, single AF only, no notifications, etc.
My implementation does not have manual adjustment ... but I do not like
idea to use custom command for that, V4L has
V4L2_CID_FOCUS_ABSOLUTE / V4L2_CID_FOCUS_RELATIVE for that.
Also, I did the full stack - from Qt through gstreamer to kernel. This
is what I believe is not yet available in opensource ... at least I was
not able find any GstPhotography implementation in the net, just
mentions that it was used in Maemo and probably is used in some closed
projects.
>> *) Legal status of AF firmware is unclear.
>>
>
> Boundarydevices and Arrow (Wandcam) distribute the above mentioned source
> of AF firmware for long time now.
> Should not be a problem, since they already licensed it. Another question
> is if you changed it or distribute unknown Chinese unlicensed manufacturer
> firmware.
Firmware version that I got from crewrktablets kernel_rockchip repo has
working continuous AF. BoundaryDevices version does not.
Internally, we are working with OmniVision to get official supported
firmware - but that will likely be under NDA and thus I won't be able to
share it. By re-distributing firmware from crewrktablets repo, I just
publish what is already available.
>> *) Setting camera parameters is not implemented. Camera always captures
>> at 640x480 with all default settings.
>
> boundarydevices implemented that
> https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.10.53_1.1.1_ga/drivers/media/platform/mxc/capture/ov5640_mipi.c#L56
Thanks for the link, will check.
>> *) 'imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00000001'
>> message sometimes appears
>>
>
> Carlos might know? I remember seeing something like this when using gst-imx.
Any hint here will be useful...
>
>
>> Any comments on all this are welcome.
>>
>> Nikita Yushchenko,
>> System Software Engineer at Software Development Center, RTsoft
>
>
> BR,
> Dmitriy Beykun
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150930/4a44bfb6/attachment.html>
>
next prev parent reply other threads:[~2015-10-05 6:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-29 20:10 OV5640 autofocus kernel+gstreamer+Qt implementation Nikita Yushchenko
2015-09-29 22:03 ` Dmitriy B.
2015-10-05 6:50 ` Nikita Yushchenko [this message]
2015-10-05 16:22 ` Pushpal Sidhu
2015-10-02 8:34 ` Carlos Rafael Giani
2015-10-08 8:47 ` Nikita Yushchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56121D99.10908@dev.rtsoft.ru \
--to=nyushchenko@dev.rtsoft.ru \
--cc=arusalin@dev.rtsoft.ru \
--cc=kuznetsovg@dev.rtsoft.ru \
--cc=meta-freescale@yoctoproject.org \
--cc=rzk333@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.