TX1 gstreamer nvvidconv will not pass out of NVMM memory

hi LBurner,
nvvidconv supports
video/x-raw(memory:NVMM) ! nvvidconv ! video/x-raw(memory:NVMM)
video/x-raw(memory:NVMM) ! nvvidconv ! video/x-raw
video/x-raw ! nvvidconv ! video/x-raw(memory:NVMM)

,but does not support
video/x-raw ! nvvidconv ! video/x-raw

The reason is that HW engine only accepts NVMM memory inputs/outputs, so the following cases perform memcpy():
video/x-raw(memory:NVMM) ! nvvidconv ! memcpy(video/x-raw(memory:NVMM)->video/x-raw)
memcpy(video/x-raw->video/x-raw(memory:NVMM)) ! nvvidconv ! video/x-raw(memory:NVMM)

For video/x-raw ! nvvidconv ! video/x-raw, it has to perform two memcpy for each conversion. It is probably worse than videoconvert.

1 Like