Brightness and Contrast control of /imx-test/mxc_v4l2_test

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Brightness and Contrast control of /imx-test/mxc_v4l2_test

跳至解决方案
1,564 次查看
torus1000
Contributor V

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 30RGB565

frame 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#

标签 (2)
0 项奖励
回复
1 解答
1,270 次查看
jimmychan
NXP TechSupport
NXP TechSupport

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.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,271 次查看
jimmychan
NXP TechSupport
NXP TechSupport

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.

0 项奖励
回复