Solved: Dear all: 本人在使用imx8mq mipi csi2接口采集图像,sensor是 ov5640相机,使用的bsp是4.14.98-imx_4.14.98_2.0.0_ga,编写测试程序测试yuyv
if ( inp_bitdepth==16 ) { YUYV_2_RGB(ENC_frame,RGB_frame,width,height); } return 1; break; /* NEEDS MORE HANDLERS HERE */ default : printf("Unhandled format :S needs addition here\n"); break; }; return 0; } /* --- YUYV -> RGB24 Conversion following..! Next two functions...
AV_PIX_FMT_ARGB, ///< packed ARGB 8:8:8:8, 32bpp, ARGBARGB... AV_PIX_FMT_RGBA, ///< packed RGBA 8:8:8:8, 32bpp, RGBARGBA... AV_PIX_FMT_ABGR, ///< packed ABGR 8:8:8:8, 32bpp, ABGRABGR... AV_PIX_FMT_BGRA, ///< packed BGRA 8:8:8:8, 32bpp, BGRABGRA... ...