vp9-rtc: Move noise estimation to after scene change detection
authorMarco Paniconi <marpan@google.com>
Mon, 1 Apr 2019 21:18:54 +0000 (14:18 -0700)
committerMarco Paniconi <marpan@google.com>
Tue, 2 Apr 2019 16:14:17 +0000 (09:14 -0700)
commitce9e52b13c9f1d1e356d3061877e661b5ab1f4da
treead786c4d964e81262261f0ed4ef19b35676795e4
parent1c0857d648c1e2eb13de3d2e717b1848bbc602d9
vp9-rtc: Move noise estimation to after scene change detection

This allows to use result from scene chage detection to exclude
the current frame from noise estimation analysis if the frame has
scene/ big content change (i.e., high_source_sad flag is set).

The behavior change for noise estimation may be small in practice,
since in the current code, a scene change would have blocks excluded
due to thresh_sum_diff, and the subsequent frames would also be mostly
excluded due to (past) non-zero motion vectors (until the
consec_zeromv > thresh_consec_zeromv is satisfied again).
But its better to completely exclude current frame if its a scene change.

Change-Id: Icd08bab7a8e1b994c7accced89697e0b2d7f50c5
vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_noise_estimate.c