]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/motion_vector.h
avutil/motion_vector: export subpel motion information
[ffmpeg] / libavutil / motion_vector.h
index 30cfb994b7c0b2fc0ada02528633d79d4c7fcd6d..ec295563889a0a79ab9a8de8c147292fab1bb7ee 100644 (file)
@@ -45,6 +45,13 @@ typedef struct AVMotionVector {
      * Currently unused.
      */
     uint64_t flags;
+    /**
+     * Motion vector
+     * src_x = dst_x + motion_x / motion_scale
+     * src_y = dst_y + motion_y / motion_scale
+     */
+    int32_t motion_x, motion_y;
+    uint16_t motion_scale;
 } AVMotionVector;
 
 #endif /* AVUTIL_MOTION_VECTOR_H */