You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/vf_v360: improve xyz_to_dfisheye()
This commit is contained in:
@@ -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]);
|
||||||
|
Reference in New Issue
Block a user