History

avfilter/vf_v360: improve dfisheye_to_xyz() output

Paul B Mahol committed 6 years ago

Commit 90913ab1 parent e6ea0e71 file · +1 −1Browse files

Unified · Split

libavfilter/vf_v360.c+1−1
@@ -2777,7 +2777,7 @@ static int dfisheye_to_xyz(const V360Context *s, · 2776 unmodified lines
2777 const float m = i >= ew ? -1.f : 1.f;2777 const float m = i >= ew ? -1.f : 1.f;
2778 2778
2779 const float uf = ((2.f * ei) / ew - 1.f) * scale;2779 const float uf = ((2.f * ei) / ew - 1.f) * scale;
2780 const float vf = ((2.f * j) / eh - 1.f) * scale;2780 const float vf = ((2.f * j + 1.f) / eh - 1.f) * scale;
2781 2781
2782 const float h = hypotf(uf, vf);2782 const float h = hypotf(uf, vf);
2783 const float lh = h > 0.f ? h : 1.f;2783 const float lh = h > 0.f ? h : 1.f;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t