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

avfilter/vf_v360: fix M_PI_4 usage consistency

parent e55018ee
...@@ -1883,7 +1883,7 @@ static void barrel_to_xyz(const V360Context *s, ...@@ -1883,7 +1883,7 @@ static void barrel_to_xyz(const V360Context *s,
float l_x, l_y, l_z; float l_x, l_y, l_z;
if (i < 4 * width / 5) { if (i < 4 * width / 5) {
const float theta_range = M_PI / 4.f; const float theta_range = M_PI_4;
const int ew = 4 * width / 5; const int ew = 4 * width / 5;
const int eh = height; const int eh = height;
...@@ -1955,7 +1955,7 @@ static void xyz_to_barrel(const V360Context *s, ...@@ -1955,7 +1955,7 @@ static void xyz_to_barrel(const V360Context *s,
const float phi = atan2f(vec[0], -vec[2]) * s->input_mirror_modifier[0]; const float phi = atan2f(vec[0], -vec[2]) * s->input_mirror_modifier[0];
const float theta = asinf(-vec[1]) * s->input_mirror_modifier[1]; const float theta = asinf(-vec[1]) * s->input_mirror_modifier[1];
const float theta_range = M_PI / 4.f; const float theta_range = M_PI_4;
int ew, eh; int ew, eh;
int u_shift, v_shift; int u_shift, v_shift;
......
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