Cleaning up calculate_modified_err().

Change-Id: I87bb1876f8a04ef28cb7135b657815e12f2f31cb
[spatial svc] Remove hard coded rc_end_usage setting

Change-Id: Ifb09502ddf62664b3bfc62172de46bc36fde8efb
Enable various thresholds of motion detection

This commit changed to enable the encoder to adjust motion dection
speed threshold based on picture size. In addition, cpu-used 1 now
does a partition search every other frame instead of every third
frame for low resolution inputs.

The change has no quality/speed impact for 720p and above. Test
showed the change increase encoding time by between 3% to 6% for
cpu-used 2 encodiong of 360p sequences. It also has a compression
gain about .3%.

For cpu-used 2, the change resolved some very disturbing visual
artifacts in certain sequences when large block partitionings and
transforms are used as a result of copying the partition from a
previous frame.

Change-Id: Ic7fd22508cdb811d4ca935655adbf20109286cfa
Reusing rd_less_than_thresh() function.

Change-Id: I29df10fde86128467f5e99fc373ac04f004257e1
Renames x86_64 specific asm files

Renames all x86_64 specific assembly files to consistently
end in _x86_64.asm. This will be useful for build systems to
handle these files differently.
All new 64-bit specific assembly files should use the new
naming convention.

Change-Id: I36c89584967c82ffc4088b1b5044ac15d2bb7536
Removing decoded_key_frame flag.

Change-Id: I79576920efb7f3f6f197d386727409759d8bda8d
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
tools_common: fix test_name quoting

quoting within $() doesn't need to be escaped; removes trailing " in
test_name

Change-Id: I97ffad9fdfd97b3cdf4dec2a8547804875d85e66
vpx_temporal_svc_encoder: fix memory leak on success

more work would be necessary to avoid leaks in all failure cases

Change-Id: I9c92ae1c34e120b17109bc832b6b2789b909761d
Merge "vpx_temporal_svc_encoder: fix memory leak on success"
Revert "Cleaning up calculate_section_intra_ratio()."

Breaks rate control completely.

This reverts commit 9067b293b39e97f3bc8c62646120cdfd4c956310.

Change-Id: I8f89e209cf7bd607f7de5c4872adcd57a9c5c72b
Merge "Enable various thresholds of motion detection"
Merge "Revert "Cleaning up calculate_section_intra_ratio().""
Cleaning up calculate_section_intra_ratio().

Addition of reset_fpf_position() call fixes previous issue with this patch.

Change-Id: I356186d5a1032297a147194e81e9c7db252d14a6
Merge "Removing decoded_key_frame flag."
Cleaning up calc_frame_boost().

Change-Id: I3ba9374de96dc31fb4e736742603ef988d8aaa5f
Merge "Cleaning up calculate_modified_err()."
Adding several consts to assign_std_frame_bits().

Change-Id: I6c27c60f7192b1b397f01882ab68a68cdf767534
Adjust cq_level in constrained quality mode

If we are already saving a lot in bits from the target (maximum)
bitrate in the constrained quality mode, allow the quantizer
to go lower than the cq level. This hopefully will solve issues
with getting too low a bitrate and consequently poor quality for
certain videos in cq mode.

Change-Id: I1c4e8b0171fcf58f95198b3add85eea5f3c8f19f
Merge "Renames x86_64 specific asm files"