Hello,
I'm trying to use motion vector and SAD data provided by h264 encoder, but I can't make any sense from the data I receive. After calling process, the index 1 buffer should contain data in this format:
struct MotionData {
short MVx;
short MVy;
int SAD;
};
After calling the algorythm process() function, the correct buffer is filled with data. Correctly the data size is width/16 * height/16 * 8. But I can't make sense of the buffer content.
It seems that MVy is always 0, SAD is "strange"... Perhaps someone can explain me how to read this data...
This is an hex dump of a part of the data:
00000000 d6 1f 00 00 09 00 00 00 08 01 00 00 01 00 00 00
00000010 ec 00 00 00 01 00 00 00 f2 00 00 00 01 00 00 00
00000020 d6 00 00 00 01 00 00 00 49 02 00 00 00 00 00 00
00000030 b1 04 00 00 00 00 00 00 63 04 00 00 00 00 00 00
00000040 1e 04 00 00 ff ff 00 00 19 04 00 00 00 00 00 00
00000050 77 04 00 00 00 00 00 00 a7 04 00 00 00 00 00 00
00000060 86 04 00 00 00 00 00 00 fb 03 00 00 00 00 00 00
00000070 7a 04 00 00 00 00 00 00 e4 04 00 00 00 00 00 00
00000080 59 04 00 00 00 00 00 00 e3 02 00 00 00 00 00 00
...