TDA4VH-Q1: DOF confidence calculation (API: tivxDmpacDofNode)

Part Number: TDA4VH-Q1

Good day, I'm currently encountering a problem with the API tivxDmpacDofNode as shown in the picture below. This was found in the RTOS SDK for TDA4VH-Q1.  May I know where is the location of the source code calculating the confidence for the optical flow, and eventually outputs result through the flow_vector_field_out parameter? I'm currently trying to figure out how is the confidence value being determeined for each of the flow. 

  • Just an add-on to the request, the confidence data I am asking about is encoded in the first 4 bits of the 32-bit flow_vector_out parameter. I need to know how and which part of the program calculates this confidence data and the output flow vector in general.