summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-01-29 17:18:16 +0100
committerPaul B Mahol <onemda@gmail.com>2022-01-29 17:36:37 +0100
commite13f0b9456a5028594090e4f6f10f0a9d76f1bd2 (patch)
tree3e110b4e2bed4ca839a67c5088d9b1a28892a0a2
parent3981dbd192aaa51377019de9868bca082cfd8c7d (diff)
avfilter/vf_v360: improve xyz_to_fisheye()
-rw-r--r--libavfilter/vf_v360.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index e2c90e7eb7..a216aeebdd 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -2941,8 +2941,8 @@ static int xyz_to_fisheye(const V360Context *s,
const int visible = -0.5f < uf && uf < 0.5f && -0.5f < vf && vf < 0.5f;
int ui, vi;
- uf = (uf + 0.5f) * width;
- vf = (vf + 0.5f) * height;
+ uf = scale(uf * 2.f, width);
+ vf = scale(vf * 2.f, height);
ui = floorf(uf);
vi = floorf(vf);