Hi Chip experts,
I tried -v option of /unit_tests/mxc_v4l2_overlay.out but nothing changed. Please see attached log.
(Q) Is this option no more supported?
I'm looking for CSC sample source code. I couldn't find any of them except this.
https://community.freescale.com/docs/DOC-101053
(Q) Can anyone help me to find it?
Anyone have any suggestions?
Thanks.
Poky (Yocto Project Reference Distro) 1.6.2 imx6dlsabresd /dev/ttymxc0
...
root@imx6dlsabresd:~# cd /unit_tests/
root@imx6dlsabresd:/unit_tests# ./mxc_v4l2_overlay.out -iw 640 -ih 480 -ow 640 -oh 480 -fr 30 -t 10 -v 1
g_display_width = 640, g_display_height = 480
g_display_top = 0, g_display_left = 0
sensor chip is ov5642_camera
sensor supported frame size:
640x480
320x240
720x480
720x576
1280x720
1920x1080
2592x1944
176x144
1024x768
sensor frame format: YUYV
frame_rate is 30RGB565frame buffer width 1024, height 768, bytesperline 2048
change the brightness 0
change the brightness 32
change the brightness 64
change the brightness 96
change the brightness 128
change the brightness 160
change the brightness 192
change the brightness 224
root@imx6dlsabresd:/unit_tests# ./mxc_v4l2_overlay.out -iw 640 -ih 480 -ow 640 -oh 480 -fr 30 -t 10 -v 2
...frame buffer width 1024, height 768, bytesperline 2048
change the color saturation 25
change the color saturation 50
change the color saturation 75
change the color saturation 100
change the color saturation 125
root@imx6dlsabresd:/unit_tests# ./mxc_v4l2_overlay.out -iw 640 -ih 480 -ow 640 -oh 480 -fr 30 -t 10 -v 3
...frame buffer width 1024, height 768, bytesperline 2048
change the red balance 0
change the red balance 32
change the red balance 64
change the red balance 96
change the red balance 128
change the red balance 160
change the red balance 192
change the red balance 224
root@imx6dlsabresd:/unit_tests# ./mxc_v4l2_overlay.out -iw 640 -ih 480 -ow 640 -oh 480 -fr 30 -t 10 -v 4
...frame buffer width 1024, height 768, bytesperline 2048
change the blue balance 0
change the blue balance 32
change the blue balance 64
change the blue balance 96
change the blue balance 128
change the blue balance 160
change the blue balance 192
change the blue balance 224
root@imx6dlsabresd:/unit_tests# ./mxc_v4l2_overlay.out -iw 640 -ih 480 -ow 640 -oh 480 -fr 30 -t 10 -v 5
...frame buffer width 1024, height 768, bytesperline 2048
change the black balance 0
change the black balance 1
change the black balance 2
change the black balance 3
root@imx6dlsabresd:/unit_tests#
Solved! Go to Solution.
When in the preview mode, I think the brightness and contrast should be controlled by the ov5642 driver (ov5642.c). But these part of code in the driver is empty. The Brightness and Contrast code (just some registers setting) can be found in the OmniVision's App. Note.
When in the preview mode, I think the brightness and contrast should be controlled by the ov5642 driver (ov5642.c). But these part of code in the driver is empty. The Brightness and Contrast code (just some registers setting) can be found in the OmniVision's App. Note.