-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Understanding Motion Vectors #37
Comments
Hello @chanwutk,
|
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!
The text was updated successfully, but these errors were encountered: