After going through lib files.
This is what I need to do.
In the nvinfer config file, neet to include flag
parse-bbox-func-name
By default, parseBoundingBox is called inside nvdsinfer_context_impl_output_parsing.cpp.
If we provide custom parsing function registered, custom function will be called from m_CustomBBoxParseFunc(outputLayers, m_NetworkInfo, m_DetectionParams, m_ObjectList).
Custom function is implemented inside nvdsinfer_custombboxparser.cpp.
Since my output is not bounding box and class id, I need another Struct to be defined for my output inside nvdsinfer.h.
That is how I understood for the process flow.
May be somebody can highlight me if it is not correct or need some more steps.
I hope this helps to others as well.