ffmpeg | branch: master | Paul B Mahol <[email protected]> | Fri Sep 20 21:34:46 
2019 +0200| [5c93a0a1e40969802f67647aaf2f4ce64f469db0] | committer: Paul B Mahol

avfilter/vf_v360: add support for mirroring to ball input format

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5c93a0a1e40969802f67647aaf2f4ce64f469db0
---

 libavfilter/vf_v360.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index 79415efd6c..6f1359d2c8 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -1605,8 +1605,8 @@ static void xyz_to_ball(const V360Context *s,
     float uf, vf;
     int ui, vi;
 
-    uf = (1.f - r * vec[0] / l) * width  / 2.f;
-    vf = (1.f + r * vec[1] / l) * height / 2.f;
+    uf = (1.f - r * vec[0] * s->input_mirror_modifier[0] / l) * width  / 2.f;
+    vf = (1.f + r * vec[1] * s->input_mirror_modifier[1] / l) * height / 2.f;
     ui = floorf(uf);
     vi = floorf(vf);
 

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to