History

avfilter/vf_v360: fix fov calculation for stereographic output

Paul B Mahol committed 7 years ago

Commit ccaeabd1 parent 7fddf4b1 file · +2 −2Browse files

Unified · Split

libavfilter/vf_v360.c+2−2
@@ -1410,8 +1410,8 @@ static void stereographic_to_xyz(const V360Context *s, · 1409 unmodified lines
14101410 int i, int j, int width, int height,
14111411 float *vec)
14121412 {
1413− const float x = ((2.f * i) / width - 1.f) * (s->h_fov / 180.f) * M_PI;
1414− const float y = ((2.f * j) / height - 1.f) * (s->v_fov / 90.f) * M_PI_2;
1413+ const float x = ((2.f * i) / width - 1.f) * (s->h_fov / 180.f);
1414+ const float y = ((2.f * j) / height - 1.f) * (s->v_fov / 180.f);
14151415 const float xy = x * x + y * y;
14161416
14171417 vec[0] = 2.f * x / (1.f + xy);

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