TinkerBoard / debian_kernel

Debian Kernel source for Tinker Board
Other
143 stars 64 forks source link

[imx219] Support 2x2 binning #29

Closed cristiklein closed 5 years ago

cristiklein commented 5 years ago

This patch adds a new mode to the IMX219 sensor. The sensor returns a 1640x1232 image by returning the average over 4 pixels, 2 horizontally and 2 vertically.

jamess-huang commented 5 years ago

Dear, cristiklein Thanks for your commits. May I know which image version of Tinker-OS do you test with this commit ?

cristiklein commented 5 years ago

Dear Huang,

I tested it on top of the latest TinkerOS 2.0.8.

On Thu, 6 Dec 2018, 08:29 Jamess, Huang <notifications@github.com wrote:

Dear, cristiklein Thanks for your commits. May I know which image version of Tinker-OS do you test with this commit ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TinkerBoard/debian_kernel/pull/29#issuecomment-444775044, or mute the thread https://github.com/notifications/unsubscribe-auth/ABlXocRjn_jSdkdDalv27ZS4OLr2KEO0ks5u2MdegaJpZM4ZErNu .

jamess-huang commented 5 years ago

Dear, cristiklein Thanks for your quickly reply. But we can not use gstreamer to enable the 2x2 binning mode. Can you share your gstreamer command to us ?

cristiklein commented 5 years ago

Hi,

I set the sensor mode using media-ctl. Gstreamer got a regular 1640x1232 video stream. I used no ISP 3A, since that requires updating /etc/cam_iq/IMX219.xml, and I currently lack the knowledge to do that myself. I set gain an exposure using v4l2-ctl.

I can come back later with the exact command.

On Thu, 6 Dec 2018, 09:06 Jamess, Huang <notifications@github.com wrote:

Dear, cristiklein Thanks for your quickly reply. But we can not use gstreamer to enable the 2x2 binning mode. Can you share your gstreamer command to us ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TinkerBoard/debian_kernel/pull/29#issuecomment-444783449, or mute the thread https://github.com/notifications/unsubscribe-auth/ABlXoU7VhYGIegPoJ4A4oFYvjrmX-nbtks5u2NAggaJpZM4ZErNu .

cristiklein commented 5 years ago

Hi,

Here are the commands I used for testing:

media-ctl --set-v4l2 '"imx219 2-0010":0[
fmt:SRGGB10_1X10/1640x1232]'
gst-launch-1.0 rkcamsrc device=/dev/vide
o1 ! video/x-raw,width=1640,height=1232,format=NV12,framerat
e=15/1 ! queue name=to-jpegenc ! jpegenc ! multipartmux ! tc
pserversink host=127.0.0.1 port=9999

Let me know what other information I can provide you with.

On Thu, 6 Dec 2018, 09:23 Cristian KLEIN <cristiklein@gmail.com wrote:

Hi,

I set the sensor mode using media-ctl. Gstreamer got a regular 1640x1232 video stream. I used no ISP 3A, since that requires updating /etc/cam_iq/IMX219.xml, and I currently lack the knowledge to do that myself. I set gain an exposure using v4l2-ctl.

I can come back later with the exact command.

On Thu, 6 Dec 2018, 09:06 Jamess, Huang <notifications@github.com wrote:

Dear, cristiklein Thanks for your quickly reply. But we can not use gstreamer to enable the 2x2 binning mode. Can you share your gstreamer command to us ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TinkerBoard/debian_kernel/pull/29#issuecomment-444783449, or mute the thread https://github.com/notifications/unsubscribe-auth/ABlXoU7VhYGIegPoJ4A4oFYvjrmX-nbtks5u2NAggaJpZM4ZErNu .

jamess-huang commented 5 years ago

Dear, cristiklein Thanks for your commit. We will try to enable the 3A of this binning mode.

cristiklein commented 5 years ago

Thanks Huang!

On Fri, 7 Dec 2018, 07:02 Jamess, Huang <notifications@github.com wrote:

Dear, cristiklein Thanks for your commit. We will try to enable the 3A of this binning mode.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TinkerBoard/debian_kernel/pull/29#issuecomment-445132286, or mute the thread https://github.com/notifications/unsubscribe-auth/ABlXofm6JUi8W6XuvC-IMIq0ku9O5yPrks5u2gSCgaJpZM4ZErNu .