Hi,
I want composite several image using NvBufferTransform.
Firstly I wrote simple program copying buffer.
Each plane of input buffer were filled with ‘Y’(0x59) for plane[0], ‘U’(0x55) for plane[1] and ‘V’(0x56) for plane[2].
But each plane of output buffer filled with 0x54, 0x58 and 0x4E.
Here is outline of source code.
I use JetPack 4.6.2 and /etc/nv_tegra_release is following.
# R32 (release), REVISION: 7.2, GCID: 30192233, BOARD: t186ref, EABI: aarch64, DATE: Sun Apr 17 09:53:50 UTC 2022
video_convert select bilinear interpolation by default. so I understand chroma values
are different between input and output.
But in this case, Cr an Cb are filled with ‘U’ and ‘V’, so I think Cr and Cb values don’t change
regardless of the interpolation algorithm.
I also test with nearest neighbor interpolation using -im 0 option, but ‘U’ values was also disappeared.
I think it meens that Cr were not sampled and Cb value were sampled when Cr plane interpolation.
Hi
For Jetpack 4, please apply the attached lib. For Jetpack 5, we switch to NvBufSurface and the cases can be different. Will do further check on Jetpack 5.
For Jetpack 4, please apply the attached lib. For Jetpack 5, we switch to NvBufSurface and the cases can be different. Will do further check on Jetpack 5.
I’ ve seen NvBufSurface API reference. It seems nicer design.
Does NvBufSurface API work with multimedia API on Jetson 4 platform?
If is that true, I’ll consider to switch API.
Hi,
On Jetpack 4, NvBufSurface is used only in DeepStream SDK. If you can use DeepStream SDK in your use-case, can switch to NvBufSurface APIs. If your use-case is based on jetson_multimedia_api, have to use NvBuffer APIs.
On Jetpack 5, we have deprecated NvBuffer and unified to NvBufSurface APIs.