mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_v360: add support for mirroring to ball input format
This commit is contained in:
parent
9def7efdbf
commit
5c93a0a1e4
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue