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.
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!
-----------------------------------------------------------------------------------------------------------------------
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
Hi Zoe,
G2D can only output in RGB format.