I am trying to understand the motion vectors returned from Method :: retrieve() described in the readme.md.
For 1, 2: I assumed to be w and h of the macroblock according to AVMotionVector. Would you mind confirming whether the size of the macroblock is for the current frame or the reference frame?
For 5, 6: I am confused about the x/y-center coordinate. Does this mean that the dst_x and dst_y represent the center of the current frame's macroblock instead of the top-left? And, do src_x and src_y represent the center of the reference frame's macroblock, as well?
For 7, 8: I am unsure how to use the equations for motion_x and motion_y. Are these equations for calculating each individual pixel within the macroblock?
For 9: Is this the current frame's macroblock scale compared to the reference frame's macroblock? For example, assume the w, h refer to the size of the current frame's macroblock and dst_x, dst_y, src_x, and src_y refer to the top-left positions of their corresponding macroblocks, if motion_scale = 2 and src_x, src_y = 1, 1 and dst_x, dst_y = 2, 3 and w, h = 16, 16, then does the macroblock of x1, x2, y1, y2 = 2, (2+16), 3, (3+16) of the current frame is reconstructed from the macroblock of x1, x2, y1, y2 = 1, (1+16/2), 1, (1+16/2) of the reference frame?
Hello,
I am trying to understand the motion vectors returned from
Method :: retrieve()
described in thereadme.md
.w
andh
of the macroblock according to AVMotionVector. Would you mind confirming whether the size of the macroblock is for the current frame or the reference frame?dst_x
anddst_y
represent the center of the current frame's macroblock instead of the top-left? And, dosrc_x
andsrc_y
represent the center of the reference frame's macroblock, as well?motion_x
andmotion_y
. Are these equations for calculating each individual pixel within the macroblock?w, h
refer to the size of the current frame's macroblock anddst_x
,dst_y
,src_x
, andsrc_y
refer to the top-left positions of their corresponding macroblocks, ifmotion_scale = 2
andsrc_x, src_y = 1, 1
anddst_x, dst_y = 2, 3
andw, h = 16, 16
, then does the macroblock ofx1, x2, y1, y2 = 2, (2+16), 3, (3+16)
of the current frame is reconstructed from the macroblock ofx1, x2, y1, y2 = 1, (1+16/2), 1, (1+16/2)
of the reference frame?I appreciate any help, thank you!