[FFmpeg-cvslog] avfilter/vf_v360: improve fisheye_to_xyz() output
Paul B Mahol
git at videolan.org
Sun Feb 23 23:03:46 EET 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Feb 23 21:55:35 2020 +0100| [e6ea0e7429924bd8d9f20089e57540208abf8a01] | committer: Paul B Mahol
avfilter/vf_v360: improve fisheye_to_xyz() output
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e6ea0e7429924bd8d9f20089e57540208abf8a01
---
libavfilter/vf_v360.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index dee632c258..4bd545697f 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -2401,7 +2401,7 @@ static int fisheye_to_xyz(const V360Context *s,
float *vec)
{
const float uf = s->flat_range[0] * ((2.f * i) / width - 1.f);
- const float vf = s->flat_range[1] * ((2.f * j) / height - 1.f);
+ const float vf = s->flat_range[1] * ((2.f * j + 1.f) / height - 1.f);
const float phi = -atan2f(vf, uf);
const float theta = -M_PI_2 * (1.f - hypotf(uf, vf));
More information about the ffmpeg-cvslog
mailing list