Why did NvBufSurfTransform fail to scale a BMP image from 1920x1080 to 360x200 or 1440* 960?However, scaling to 960x540 works fine

EndopJetson.zip (507.1 KB)

hello 1256645363,

it looks due to alignment issue, you’ve to set the width alignment to 64.
hence, please try scale the frame into 384x200 for your use-case.

Thank you, 384*200 displays correctly. It seems that when scaling, the width being a multiple of 64 works fine.

There is another question: Based on the actual use case, we are considering scaling from 1920x1080 to 1440x960 because the extra areas of the sensor do not have video stream data. Is there a way to achieve this?

hello 1256645363,

you may using nvvidconv to crop the redundant region.
here’s sample pipeline for your reference,
$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=2592, height=1944, framerate=30/1, format=NV12' ! nvvidconv left=300 right=2200 top=100 bottom=1800 ! xvimagesink

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.