• Hardware Platform: Jetson
• DeepStream Version: 6.2
• JetPack Version: 5.1.1
• Issue Type: Bug
I am using NvBufSurfTransform to scale a surface by a ratio of 1/16, but get an error message that the ratio is below 1/16. The scaling is from 3840x1604 to 240x101. Changing the output height to 102 solves the problem. 1604/16=100.25, so 101 should work. Is there a reason behind this?
The 1/16 ratio has consistently been a hardware limitation of the VIC engine. Another constraint is its use of a 4-byte word size, so you can’t actually allocate a 101 pixels wide buffer. The value is likely rounded down to 100, causing the issue because of the 1/16 limitation.
Some trick for alignment.
#define ALIGN(x, a) (((x) + ((a) - 1)) & ~((a) - 1))
int width = ALIGN(w, 4);
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.