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

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

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

1,313 Views
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 Kudos
Reply
3 Replies

1,041 Views
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 Kudos
Reply

1,041 Views
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 Kudos
Reply

1,041 Views
saurabh206
Senior Contributor III

Hi Zoe,

G2D can only output in RGB format.

0 Kudos
Reply