Commit 5c93a0a1 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_v360: add support for mirroring to ball input format

parent 9def7efd
......@@ -1605,8 +1605,8 @@ static void xyz_to_ball(const V360Context *s,
float uf, vf;
int ui, vi;
uf = (1.f - r * vec[0] / l) * width / 2.f;
vf = (1.f + r * vec[1] / l) * height / 2.f;
uf = (1.f - r * vec[0] * s->input_mirror_modifier[0] / l) * width / 2.f;
vf = (1.f + r * vec[1] * s->input_mirror_modifier[1] / l) * height / 2.f;
ui = floorf(uf);
vi = floorf(vf);
......
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