Tool/software:
SDK ver: 10_00_00_08
I have a gst-launch-1.0 pipeline that works perfectly, it gives me the exact screen output I want.
gst-launch-1.0 v4l2src device=/dev/video3 io-mode=dmabuf-import ! \ video/x-bayer, width=1920, height=1536, framerate=60/1, format=bggr12 ! \ tiovxisp sink_0::device=/dev/v4l-subdev4 \ sensor-name="X3F" \ dcc-isp-file=/opt/imaging/ox03f/dcc_viss.bin \ sink_0::dcc-2a-file=/opt/imaging/ox03f/dcc_2a.bin format-msb=9 ! \ video/x-raw, format=NV12, width=1920, height=1536, framerate=60/1 ! \ tiovxmultiscaler name=multi \ src_0::roi-startx=0 src_0::roi-starty=0 src_0::roi-width=1280 src_0::roi-height=720 \ src_1::roi-startx=0 src_1::roi-starty=0 src_1::roi-width=1920 src_1::roi-height=1080 \ multi.src_0 ! video/x-raw, width=1280,height=720,format=NV12 ! queue ! mosaic.sink_0 \ multi.src_1 ! video/x-raw, width=640,height=720,format=NV12 ! queue ! mosaic.sink_1 \ tiovxmosaic name=mosaic \ sink_0::startx="<0>" sink_0::starty="<0>" \ sink_1::startx="<1280>" sink_1::starty="<0>" ! \ kmssink driver-name=tidss sync=false skip-vsync=true
But whe I try to convert convert it to a C API program for project, I got some problems. I've tried multiple ways to set the "startx" and "starty" properties of "tiovxmosaic", but the exproted DOT file shows these value stuck at 0, and the sink_1 video stream cant display properly.
How can I fix this and set "startx" correctly? Is there any example for this plugin?
Here is the C API program pipeline
Here is the gst-launch-1.0 pipeline