Hi, we are migrating the usage of MMAPI to JetPack 5.x from 4.x, according to the migration guide, NvBufferComposite is replaced by NvBufSurfTransformMultiInputBufComposite, but this new API cannot be found anywhere in nvbufsurftransform.h and/or libnvbufsurftransform.so; only the NvBufSurfTransformComposite API can be found, which requires all input buffers in a single batched-NvBufSurface, apparently not what we need.
Is there any way we can use the new NvBufSurfTransformMultiInputBufComposite API or a similar one? Thanks for your help.
Should I use NvBufSurfTransformMultiInputBufCompositeBlend instead of the doc-noted NvBufSurfTransformMultiInputBufComposite ? Alright, I’ll give it a try. Thanks.
Yet I have another question: the area not covered by any dst_comp_rect will always filled with the black color, not the color specified in NvBufSurfTransformCompositeBlendParamsEx.params.color_bg (like NvBufferCompositeParams.composite_bgcolor worked in legacy API), any idea for this?
Verified the NVBUFSURF_TRANSFORM_COMPOSITE | NVBUFSURF_TRANSFORM_BLEND flag, didn’t work either, still black bg.
Meanwhile, our input buffers came from the video decoder, of which the format is something like NV12. Transforming every single frame of every camera/stream into BGRA might impact the system overall performance. Is there any other approaches?
Hi,
Certain fucntions are supported in RGBA only so need to convert the surfaces into RGBA first. Fr optimal performance of conversion, please refer to the page to run hardware converter(VIC engine) at maximum clock: VPI - Vision Programming Interface: Performance Benchmark