video capure issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,086件の閲覧回数
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 解決策
834件の閲覧回数
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 返答(返信)
834件の閲覧回数
kanoumamoru
Contributor III

Hi, Guanqiong,

I  appreciate for your advice.

I'll try it.

kanou

0 件の賞賛
返信
835件の閲覧回数
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 件の賞賛
返信