[FFmpeg-trac] #9617(avfilter:reopened): v360: rounding or +-1 errors

FFmpeg trac at avcodec.org
Sun Feb 27 20:43:15 EET 2022


#9617: v360: rounding or +-1 errors
--------------------------------------+------------------------------------
             Reporter:  Michael Koch  |                    Owner:  (none)
                 Type:  defect        |                   Status:  reopened
             Priority:  normal        |                Component:  avfilter
              Version:  git-master    |               Resolution:
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+------------------------------------
Changes (by Michael Koch):

 * status:  closed => reopened
 * resolution:  fixed =>

Comment:

 It's not yet fixed. The following four cases with double-fisheye input
 have wrong output:

 ffmpeg -f lavfi -i color=black:s=180x90 -lavfi
 geq=r='255*mod(trunc(4*X/W),2)':g='255*trunc(2*X/W)':b='255*trunc(2*Y/H)'
 -frames 1 -y test.png

 ffmpeg -i test.png -lavfi v360=dfisheye:e:interp=near -y dfish2eq.png
 ffmpeg -i test.png -lavfi v360=dfisheye:dfisheye:interp=near -y
 dfish2dfish.png
 ffmpeg -i test.png -lavfi
 v360=dfisheye:cylindrical:h_fov=360:v_fov=120:w=180:h=90:interp=near -y
 dfish2cyl.png
 ffmpeg -i test.png -lavfi v360=dfisheye:ball:interp=near -y dfish2ball.png

 As I already wrote, these issues can be fixed in line 3471:
 uf = ew - 1.f - uf;
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9617#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list