Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -1410,8 +1410,8 @@ static void stereographic_to_xyz(const V360Context *s, · 1409 unmodified lines | |||
| 1410 | int i, int j, int width, int height, | 1410 | int i, int j, int width, int height, |
| 1411 | float *vec) | 1411 | float *vec) |
| 1412 | { | 1412 | { |
| 1413 | const float x = ((2.f * i) / width - 1.f) * (s->h_fov / 180.f) * M_PI; | 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 / 90.f) * M_PI_2; | 1414 | const float y = ((2.f * j) / height - 1.f) * (s->v_fov / 180.f); |
| 1415 | const float xy = x * x + y * y; | 1415 | const float xy = x * x + y * y; |
| 1416 | 1416 | ||
| 1417 | vec[0] = 2.f * x / (1.f + xy); | 1417 | vec[0] = 2.f * x / (1.f + xy); |