Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-09-20 22:34:46 +0300
committerPaul B Mahol <onemda@gmail.com>2019-09-20 22:34:46 +0300
commit5c93a0a1e40969802f67647aaf2f4ce64f469db0 (patch)
treee76cddaaecec030734f498320ccdddfbbe000182 /libavfilter/vf_v360.c
parent9def7efdbf6e469f822654fecca9bad8ea239f8b (diff)
avfilter/vf_v360: add support for mirroring to ball input format
Diffstat (limited to 'libavfilter/vf_v360.c')
-rw-r--r--libavfilter/vf_v360.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index 79415efd6c..6f1359d2c8 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -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);