The following example configures vvas_xabrscaler for one input and three outputs. The input is 1920 x 1080 resolution in a NV12 format. This input is cropped at X:140, Y:300, Width:640, Height:480.
The cropped input is scaled and converted to the following format:
640 * 480 in RGB format
320 * 240 in RGB format
256 * 256 in NV12 format
gst-launch-1.0 -v \
videotestsrc num-buffers=10 ! video/x-raw,format=NV12,width=1920,height=1080 \
! vvas_xabrscaler xclbin-location=/run/media/mmcblk0p1/x_plus_ml.xclbin crop-x=140 crop-y=300 crop-width=640 crop-height=480 name=sc \
sc.src_0 ! queue ! video/x-raw,format=RGB,width=640,height=480 ! filesink location=out_480p.rgb \
sc.src_1 ! queue ! video/x-raw,format=RGB,width=320,height=240 ! filesink location=out_240p.rgb \
sc.src_2 ! queue ! video/x-raw,format=NV12,width=256,height=256 ! filesink location=out_256p.nv12 -v