This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: [TDA4VMXEVM] DMPAC dense optical flow

Part Number: TDA4VM

Hello.

Flow Vector Output Data Packing Format

Horizontal flow vector (9bit signed integer, 4 bit fractional):

  • [19:16] Fractional is 4 bits (support 1/16th pixel of precision)
  • [28:20] Signed Integer is 9 bits (support up to +255 to -255 pixel Horizontal flow vectors)
  • [31:29] Copies of signed bit from integer

In the above picture and explanation, the horizontal flow vector's integer is 9 bits, and unlike the vertical flow vector's sign bits, it is 3 bits not 1 bit. I would like to know exactly how to calculate this part.

The parameter description of tivxDmpacDofNode() says that 31:29 bits of flow_vector_out are copied from the integer, but I don't know how to calculate when signed bits are 3 bits.

And in the above explanation, the horizontal flow vector's integer range is -255 to +255, but according to TRM, it is -191 to +191.

Please explain this part as well.