Video cropping on CSI->MEM path

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

Video cropping on CSI->MEM path

Jump to solution
869 Views
henri_bragge
Contributor II

I have modified mxc_v4l2_tvin demo by adding VIDIOC_S_CROP call to crop the input frame. Cropping vertically (left/width) works just fine but when I crop horizontally (top/height), the image starts scrolling. The image seems to be cropped though, but I can't stabilize it.

Any ideas what could be wrong? On CSI->IC path cropping works OK.

I'm using MX537 CPU with Linux image based on 11.09.01 release (kernel 2.6.35.3).

Labels (3)
Tags (3)
0 Kudos
1 Solution
584 Views
JayTu
NXP Employee
NXP Employee

My guessing is the hsync/vsync isn't match the size no matter vertically/horizontally scrolling.

You can try IPUx_CSIx_OUT_FRM_CTRL:CSIx_VSC (or related) increase/decrease value to suits your case.

View solution in original post

0 Kudos
1 Reply
585 Views
JayTu
NXP Employee
NXP Employee

My guessing is the hsync/vsync isn't match the size no matter vertically/horizontally scrolling.

You can try IPUx_CSIx_OUT_FRM_CTRL:CSIx_VSC (or related) increase/decrease value to suits your case.

0 Kudos