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.

using H.264 encoder with DMAI and getiing motion vectors

In the H.264 codec datasheet it is written that it is possibile to get the motion vector field used to encode the frame by setting mVDataEnable=1 .

The datasheet also explians how to get the vectors by using XDM.

But how can they be accessed when using DMAI?

  • I am not sure if you could make such a call through DMAI itself, but since DMAI is primarily an abstraction layer for underlying driver and codec engine functions if it is not exposing a capability like this than you could make the appropriate xDM/VISA call directly, thus bypassing DMAI.

  • Ok, but in XDM I can find the motion vector information in an XDM_BufDesc struct, while DMAI uses a Buffer_Handle, which I think should be a wrapper.

    Since I wouldn't like to convert all my program from DMAI to XDM, is there a way to get a pointer to the XDM_BufDesc from the Buffer_Handle that is used in DMAI?