]> granicus.if.org Git - libvpx/commit
Fix bug in use of zoom metric as part of arf breakout.
authorpaulwilkins <paulwilkins@google.com>
Thu, 4 Jan 2018 16:02:42 +0000 (16:02 +0000)
committerpaulwilkins <paulwilkins@google.com>
Fri, 5 Jan 2018 13:19:35 +0000 (13:19 +0000)
commit0226ce79e9389ccf7d10ed7acacba6840ad911c9
treeff2c56ed70f50c51179ae334d042a0fc563101b5
parent8a4336ed2edea09b67f49828df1f8c526a85a7a6
Fix bug in use of zoom metric as part of arf breakout.

The in/out (or zoom metrics) in accumulate_frame_motion_stats()
are in effect a % of the blocks that have a motion vector pointing
either towards or away from the center. As such they are already
normalized in terms of image size and the thresholds against which
these are tested should be image size independent.

In practice a zoom either in or out is an indicator for a shorter group
length so the abs value is more important as a breakout clause.

This patch fixes the threshold test. Clips without noticeable zoom show
no effect but some  with strong zooms such as "station" show a big
gain (5-10%). Average psnr-hvs gain on hdres set was 0.292%

Change-Id: I4f97a72b0e273e4e844ade15285749c32cd81c1c
vp9/encoder/vp9_firstpass.c