When running mxc_v4l2_overlay, can I set the crop method dynamically?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

When running mxc_v4l2_overlay, can I set the crop method dynamically?

539 Views
raoudi82
Contributor I

hi. I'm a newbie for imx6.

mxc_v4l2_overlay is good working on the imx6 board.
I want to set x/y position and video size with VIDIOC_S_CROP ioctl dynamically when running mxc_v4l2_overlay.
I wrote code like below.
run mxc_v4l2_overlay
                 |
run key event thread function
                 |
when if the key event occurs, apply VIDIOC_S_CROP Ioctl

when my code is running, appear warning messages and wrong video images on LCD.
-------------------------------------------------------------------
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00000002

I knew IPU examples but I just want to set crop parameters without CPU mediation when running.
what can I do for this?

thank you for your help.

0 Kudos
1 Reply

478 Views
igorpadykov
NXP Employee
NXP Employee

Hi HanSu

I am afraid this is not possible as IPU is quite sensitive to register changes and

not allow "on fly" changes.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------