How to retrieve the metadata of CSI camera frame

For argus you can get it by this API

https://docs.nvidia.com/jetson/l4t-multimedia/classArgus_1_1ICaptureMetadata.html#a0bff976e9d1dfd965145e5c18f91fbb0