git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
741b506
)
avfilter/vf_v360: improve xyz_to_dfisheye()
author
Paul B Mahol
<onemda@gmail.com>
Sat, 22 Jan 2022 09:32:34 +0000
(10:32 +0100)
committer
Paul B Mahol
<onemda@gmail.com>
Sat, 22 Jan 2022 17:32:58 +0000
(18:32 +0100)
libavfilter/vf_v360.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_v360.c
b/libavfilter/vf_v360.c
index
9e590a2
..
7f1baa4
100644
(file)
--- a/
libavfilter/vf_v360.c
+++ b/
libavfilter/vf_v360.c
@@
-3451,7
+3451,7
@@
static int xyz_to_dfisheye(const V360Context *s,
const float *vec, int width, int height,
int16_t us[4][4], int16_t vs[4][4], float *du, float *dv)
{
- const float ew =
(width - 1)
* 0.5f;
+ const float ew =
width
* 0.5f;
const float eh = height;
const float h = hypotf(vec[0], vec[1]);