video capure issue

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

video capure issue

跳至解决方案
1,128 次查看
kanoumamoru
Contributor III

Hi,

 

We have i.MX6S V4L2 video capture issue, we did further investigation and we report to you our new findings below,

 

We made a small test program which does V4L2 output to video17 device. The some problem happens even without involving the capture path. The test program calls VIDIOC_S_CROP  to set 1280*720 as display output range, and it calls VIDIOC_S_FMT to set 720*480 as input range. When the ioctl VIDIOC_S_FMT  is executed, we found out that the input is only valid for the range of 688*480, and the right most 32 pixels of each line are lost.

 

We did some kernel debugging and when VIDIOC_S_FMT  is executed,

 

mxc_vidioc_s_fmt_vid_out ->mxc_vout_try_format ->mxc_vout_try_task ->ipu_try_task ->ipu_check_task ->check_task ->update_split_setting ->ipu_calc_stripes_sizes

 

We noticed that return value of ipu_check_task() indicated 4 times of IPU_CHECK_ERR_SPLIT_INPUTW_OVER , and this causes 4*8=32 to be lost, that’s why the input image cannot be fully displayed.

 

Would you please give us advice such as, what causes this problem, and how to avoid it? (We have to use input image size of 720x480 because that is the only valid imput range from MHL input source (processed by TW8836), and we have to use output screen size of 1280x720  because that is the hardware TFT resolution).

 

Best Regards.

Kanou

Original Attachment has been moved to: tvinout_test.zip

标签 (6)
0 项奖励
回复
1 解答
876 次查看
joanxie
NXP TechSupport
NXP TechSupport

if you use IC module, the ouput limit is 1024*1024, so you should split the input video then scale to the demands output.

I send the source sample code to you for reference, hope helpful for you.

rogeriorps/ipu-examples · GitHub

在原帖中查看解决方案

0 项奖励
回复
2 回复数
876 次查看
kanoumamoru
Contributor III

Hi, Guanqiong,

I  appreciate for your advice.

I'll try it.

kanou

0 项奖励
回复
877 次查看
joanxie
NXP TechSupport
NXP TechSupport

if you use IC module, the ouput limit is 1024*1024, so you should split the input video then scale to the demands output.

I send the source sample code to you for reference, hope helpful for you.

rogeriorps/ipu-examples · GitHub

0 项奖励
回复