Moving itxm_add pointer from MACROBLOCKD to MACROBLOCK.

The final goal is eventually to get rid of both itxm_add and fwd_txm4x4.
This patch does it in the decoder.

Change-Id: Ibb3db57efbcbb1ac387c6742538a9fcf2c6f24a5
Reusing rd_less_than_thresh() function.

Change-Id: I29df10fde86128467f5e99fc373ac04f004257e1
Fix to reduce block artifacts from vp8 temporal denoiser.

If the denoiser filter causes too big a change in the absolute pixel difference
(between source and denoised signal), the block is not denoised, which can cause
visual block artifacts. This change applies a second adjustment to the temporal filter
to effectively allow for a (weaker) denoising for such blocks (which can keep
the absolute differnence within the tolerance range in most cases).
This helps to reduce some of the block artifacts from the denoising.
The additional cost of re-applying the filter to this set of blocks is low,
as the percentage of blocks per frame (with too big a change in absolute pixel difference)
is typically small, 2-5%.

Change-Id: Id9b56e59e33f3c22e79d2f89f763bdde246fdf3f
Remove Wextra warnings from vp9_sad.c

As a side-effect, the sad unit tests for VP8 and VP9
had to be separated.

Change-Id: I068cc2391eed51e9b140ea6aba78338c5fec8d71
Removing vp8/common/pragmas.h.

Change-Id: I80630a7350e884ebc4fef73fb5b52ec25f908523
Fix decoder mismatch in sub-pixel AVX2 intrinsic filters

The subpixel SSSE3 was fixed in this patch:
https://gerrit.chromium.org/gerrit/#/c/70283/
So the equivalent AVX2 is fixed accordingly.

Change-Id: Ieebbc1949c99d34b12b8b47692df71aca5001f3a
Converting target_bandwidth to Bit/s at very beginning.

Change-Id: I1d8c9fe4228e2f1ef67a66883694842a9545e7b9
neon matches "C" when using increase_denoising

If increase_denoising is set,
vp8_denoiser_filter_neon() produced incorrect results.

Change-Id: I645f78e48b8f6657fa8a4b69d2c4d3488a0581dc
Remove brightness weighting in two pass.

This code dates from the ancient past and
applied an error score weighting based on pixel
brightness. This not seem to be providing any
benefit metrics wise and could be making some
visual issues in dark frames worse.

The field is left in place in the FIRSTPASS_STATS data
structure in this patch, pending changes to unit tests that
use a pre-defined first pass file.

Change-Id: Id50f04205230234858e7548ce523f11acaf3567d
Merge "neon matches "C" when using increase_denoising"
Turn on unit tests for AVX2 convolve functions

This patch turned on unit tests for AVX2 convolve functions.

Change-Id: I51b8bfdaa290fb22862c68af61abf2394d00d47c
Merge "Removing vp8/common/pragmas.h."
Merge "Reusing rd_less_than_thresh() function."
Merge "Fix decoder mismatch in sub-pixel AVX2 intrinsic filters"
Merge "Remove Wextra warnings from vp9_sad.c"
Revert "Making vp9_get_sse_sum_{8x8, 16x16} static."

This reverts commit e8bbb3d9db797dab7c2f947cc43e8d0f168e4953.

Change-Id: Ie368d36fd249d323d859d208609c711f04537bbc
Cleaning up vp9_variance_sse2.c.

Change-Id: I5ec336848f6489c31cf2b645026fa2025db07466
Merge "Turn on unit tests for AVX2 convolve functions"
vp9_rdopt.c: Removed 2 unused parameters

Change-Id: I935ec0e78570ce3d3585f972350e39043eefa30a
Merge "Revert "Making vp9_get_sse_sum_{8x8, 16x16} static.""