[common] Add API which appends a GstMemory into given GstBuffer
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Thu, 9 Feb 2023 12:11:10 +0000 (21:11 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Fri, 10 Feb 2023 10:54:40 +0000 (19:54 +0900)
commit092a0a0b48cd74142fd04813471b06015a1d9db9
tree76c5d1bb13cab2b2f41db1659a8676a8225ca1d7
parente09781ea99d0c2efcdaa51fa2dbc74295a8b4fec
[common] Add API which appends a GstMemory into given GstBuffer

- Add a function to check whether the given memory has extra tensors.
- Add an API which appends given GstMemory into given GstBuffer.
  It append the memory into the last block of buffer with given tensor
  info in extra tensor scenario.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
gst/nnstreamer/include/nnstreamer_plugin_api.h
gst/nnstreamer/nnstreamer_plugin_api_impl.c