mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
avfilter/vf_v360: improve xyz_to_dfisheye()
This commit is contained in:
parent
741b5061ea
commit
06a54a4ec7
@ -3451,7 +3451,7 @@ static int xyz_to_dfisheye(const V360Context *s,
|
|||||||
const float *vec, int width, int height,
|
const float *vec, int width, int height,
|
||||||
int16_t us[4][4], int16_t vs[4][4], float *du, float *dv)
|
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 eh = height;
|
||||||
|
|
||||||
const float h = hypotf(vec[0], vec[1]);
|
const float h = hypotf(vec[0], vec[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user