Template macros to generate subpix variance functions.

Tidying up the high bitdepth variance implementation to match
the corresponding change 69840 on master.

Change-Id: I213d28950e63cef7b9664639bc266f6a6a99c5f5
Fix SAD adjustment to stop overrunning array

Change-Id: Ib98f5688abc80ebbaa6512f9b052b40640507744
Adding sad function generation macros

Tidying up the high bitdepth SAD implementation to match
the corresponding change 69783 on master.

Change-Id: I9c415a996a3ff237b2d25c57ad874284a45793fc
Added 16bit scaling functions to libyuv

This is an unoptimized C implementation of a 16bit
scaling function.

Change-Id: I4241442dde3cbf347988c555776a5cdd0189bb4d
Added high bitdepth support to postprocessing deblock and denoise.

Change-Id: I68d5521349dde2bc1832562cfd6f879966b8fcf1
Add control to read bit_depth

This is needed to calculate high bitdepth PSNR in vpxenc.c.

Change-Id: I60cea0e0a263e33ee1a8706517131c4b9fa1aafd
Fixed PSNR calculation for high bitdepth.

Change-Id: I7b60bd8b1c7a67aabf152f2f6f0c1ff5a7fbb43c
Corrected block_variance computation for high bitdepth.

Change-Id: I84ffe759b2a32ba208f915684a7a75f7f78ffa0b
Added call to high bitdepth sse in partition fn.

Change-Id: I647522cf1a633ec9a9db12f163c75f572081ecb7
Added high bitdepth ssim functions.

Change-Id: Ib52d6882e1b9e58cd41d2771258a7a8c959730ec
Use 16bit scaling function in vpxenc.

Change-Id: Ib8b25b558c0a0c1bc87863f592ea043cf65cc792
Added high bitdepth resize plane function.

Change-Id: I9b9d95fbed19f711a54a22d3181aca109a69f8f3
Added missing 8-bit image formats to vpx_image

This is needed for the high bitdepth work because
we use vpx image to allocate an output 8bit buffer.

Change-Id: I5404a628e9d207bf0a3a94bdb514611c836b68bd
Fixed libyuv image copy for high bitdepth

When scaling and extending frames in high bitdepth,
there is a special case when no scaling is required.
This triggers a code path that calls CopyPlane16.
In this case the high bitdepth code was not
copying enough bytes.

Change-Id: I0fe2dc667ca8d7b0d03c0290a5716d53309c8198
Fixed bug in scale_and_extend_frame for 16bit

When configured in high bitdepth mode,
scale_and_extend_frame was always calling the
16bit code instead of dynamically switching.

Change-Id: I0542398d214a091d0740615689c786026aacedd6
Added high bitdepth support for decoder postproc

Change-Id: Id1fdf5c3c75b6b92a144f06284a7e0051345e60b
Decoder can now output 16bit YUV

Change-Id: I9c390030571388fe4e9a463a3ee959364c9c7386
Changed debug function to also work with 16bit YUV

Change-Id: I14cd322d6e360dcd6499e0dc9cfdf44d9f6336e8
Added high bitdepth decoder scaling support

Change-Id: Id88da51d7f200ff347658140be3b5f6fe2d78121
Added rounding to highbitdepth subtraction

This improves encoding performance for high
bitrate sequences when using 10 or 12bit.

Change-Id: I358d30a69251d58589c075b7d52c0d9ae76b26ee