icamerasrc dmabuf export is not working with msdkvpp
This issue is submit to track in gst-msdk plugins first.
Platform: APL-I OS: Yocto Linux Gstreamer Framework : 1.16.0
Currently I'm using icamerasrc with camera sensor ov10635 that support with dmabuf export implementation. I found out step inside until media driver why vaCreateSurface is failing to map to dmabuf import to msdkvpp plugins is due to DdiMediaUtil_AllocateSurface: gmmSize=2064384 > bo->size=2052096.
If I comment out check the condition for gmmSize > bo->size, it is working.
This is information I retrieve it before calling to vaCreateSurfaces in gst_msdk_export_dmabuf_to_vaSurface function. Color format = UYVY width=1280 height=800 data_size pass in from camera is 2050560. Pitches = 2560
Feedback from Carl: For YUV packed surface, You need add 2 extra line, then align with page size 2560 x 802 = 2053120 , then align with page size , it should be 2056192, still smaller than 2064384 But the value still smaller than gmmSize. Try to get from Prashanth feedback but he still not yet feedback.
Gst-command: gst-launch-1.0 -v icamerasrc num-vc=1 device-name=ov10635-vc io-mode=2 ! video/x-raw,format=UYVY,width=1280,height=800 ! msdkvpp ! glimagesink