Commit e6ea0e74 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_v360: improve fisheye_to_xyz() output

parent 9e0ddb5e
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment