AnsweredAssumed Answered

VPU for motion estimation

Question asked by bao bui on Mar 9, 2015
Latest reply on Mar 30, 2015 by Joan Xie

Dear all,


I am using the VPU of i.mx6 Quad to calculate the motion estimation. From the i.MX 6Dual/6Quad VPU Application Programming Interface Linux Reference Manual

, there is API for the VPU encoder to encode H.264 from YUV input, and this API output the motion estimation vector.

The motion infor struct is:

typedef struct {

int enable;

int type;

int size;

Uint8 *addr;

} EncReportInfo;


i can get the data out of the API, however the data is all 0x17 at the beginning, and after some 0x17 value, the rest is zeros. I changed many inputs, and the result is the same.


My question is what is the format of the output buffer? (the start address is addr) The size of each motion vector is 16 bit or 8 bit?


Do you have any example that calculate the motion vector using the VPU? I used the encode example from FreeScale, it disabled the motion estimation. When I enable it, i get the result that I told you above


Thank you very much