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

This commit is contained in:
Paul B Mahol 2019-09-20 21:34:46 +02:00
parent 9def7efdbf
commit 5c93a0a1e4
1 changed files with 2 additions and 2 deletions

View File

@ -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);