mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
avfilter/vf_v360: improve dfisheye_to_xyz() output
This commit is contained in:
parent
e6ea0e7429
commit
90913abc2e
@ -2777,7 +2777,7 @@ static int dfisheye_to_xyz(const V360Context *s,
|
|||||||
const float m = i >= ew ? -1.f : 1.f;
|
const float m = i >= ew ? -1.f : 1.f;
|
||||||
|
|
||||||
const float uf = ((2.f * ei) / ew - 1.f) * scale;
|
const float uf = ((2.f * ei) / ew - 1.f) * scale;
|
||||||
const float vf = ((2.f * j) / eh - 1.f) * scale;
|
const float vf = ((2.f * j + 1.f) / eh - 1.f) * scale;
|
||||||
|
|
||||||
const float h = hypotf(uf, vf);
|
const float h = hypotf(uf, vf);
|
||||||
const float lh = h > 0.f ? h : 1.f;
|
const float lh = h > 0.f ? h : 1.f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user