Skip to content

Commit

Permalink
avfilter/vf_v360: improve xyz_to_fisheye()
Browse files Browse the repository at this point in the history
  • Loading branch information
richardpl committed Jan 29, 2022
1 parent 3981dbd commit e13f0b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavfilter/vf_v360.c
Original file line number Diff line number Diff line change
Expand Up @@ -2941,8 +2941,8 @@ static int xyz_to_fisheye(const V360Context *s,
const int visible = -0.5f < uf && uf < 0.5f && -0.5f < vf && vf < 0.5f;
int ui, vi;

uf = (uf + 0.5f) * width;
vf = (vf + 0.5f) * height;
uf = scale(uf * 2.f, width);
vf = scale(vf * 2.f, height);

ui = floorf(uf);
vi = floorf(vf);
Expand Down

0 comments on commit e13f0b9

Please sign in to comment.