5) In this "mx6s_v4l2_capture.c" demo test code, it can utilize software algorithm to implement CSC(Color Space Conversion) from YUV4:2:2 to RGB.
PXP module can realize hardware CSC and image resize.
6) How to use CSI + PXP to preview camera, refer to unit_tests "imx-test" package "pxp_v4l2_test" - "pxp_v4l2_test.c" .
Run following command in Target device FS: /unit_tests
/*Record raw camera UYVY data(720x576) to save in test1.yuv */ ./mx6s_v4l2_capture_uyvy.out -m 0 -t 10 -of test1.yuv -d /dev/video0
/*Play this test1.yuv file(UYVY) by PXP engine and resize to full screan(800x480) */ ./pxp_v4l2_test.out -sx 800 -sy 480 -res 720:576 -dst 0:0:800:480 -a 100 -f 5 test1.yuv BLANK
7) The "pxp_v4l2_preview_test.c" demo attached is a TV-in demo for i.MX6ul which support ADV7180 camera preview by PXP in time. This demo implements scaling image frame to full screen, Alpha blending and Composite two image together function by PXP hardware.