How to use IPU to resize camera raw data in kernel space?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use IPU to resize camera raw data in kernel space?

2,796件の閲覧回数
zoe_chen
Contributor I

Hi All,

          I have used ipu resize camera data from 1280*720 to 720*480, now I want to do it in kernel space.

          My platform is i.MX6 , the camera sensor can only output 1280*720 raw data, but my applicantion need 720 × 480, So I use IPU to resize it after DQBUF. Then I find in mxc_v4l2_capture.c,Freescale Code will use IPU to convert our camera buffer, so I think whether I can resize my camera data in this layer. It can improve the efficiency.

          I have try to change ipu_csi_set_window_size, ipu_csi_set_window_pos, ipu_csi_init_interface parm in mxc_v4l2_s_param. But the effect is only crop not resize.

0 件の賞賛
返信
3 返答(返信)

2,523件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi zoe

in general one can try to use g2d for resizing, please refer to

attached Linux Guide sect.7.5.3 Video conversion

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,523件の閲覧回数
zoe_chen
Contributor I

Hi igor,

     Does g2d can output YUV format ? In "G2D API User Guide", it says

"RGB and YUV formats can be set in source surface, but only RGB format can be

set in destination surface". So I did not use g2d to resize a yuv buffer.

BR,

Zoe

0 件の賞賛
返信

2,523件の閲覧回数
saurabh206
Senior Contributor III

Hi Zoe,

G2D can only output in RGB format.

0 件の賞賛
返信