y4minput: add some tolerance for read short counts

Change-Id: Id5d3c536b7494eb3292f33f35c700b5de7034595
Return rate and distortion cost values from non-RD mode decision

This commit allows the non-RD mode decision process to return the
rate and distortion costs associated with the selected mode.

Change-Id: Ibe0f67d323f65839fd9cb0a726c1219bf7b55da9
Unify non-RD partition use cases

This commit unifies the non-RD partition use cases for both fixed
and variable block sizes. Deprecate and remove the separate function
for fixed partition type only.

Change-Id: I2b6cb945e90c1566f985adcebc4d0757480a8004
Refactor the non-RD partition decision process

Combine the common variables and functions used by different
speed features.

Change-Id: Ifd1fa86200edbcc9e50b3fc3b1ba8a275bc3c17f
Remove unused comment

Change-Id: I12ce22c036b12073a45b762d4dd38f6ec4960e56
Remove deprecated function nonrd_use_fixed_partition

This function was subsumed by nonrd_use_partition, hence removed.

Change-Id: Id36757bc600ce6cf6ca03ad5df80268c4786d386
Use of inline instead of INLINE.

This causes a build failure in VS 2008.

Change-Id: I03b0c0c006589b56d92a238d7b794711eb62575e
Merge "Return rate and distortion cost values from non-RD mode decision"
Merge "Unify non-RD partition use cases"
Merge "Refactor the non-RD partition decision process"
Merge "Remove unused comment"
Merge "Remove deprecated function nonrd_use_fixed_partition"
change to save rdmult value correctly

This commit moves the position where rdmult is saved to make sure it
is the correct value. Prior, an uninitialized value may be saved and
restored.

This addresses issue:
https://code.google.com/p/webm/issues/detail?id=733

Change-Id: I436407f289169bc63da3c5a6bf609bed16cb71b5
Merge "Use of inline instead of INLINE."
Properly reset the block coding skip flag array in non-RD mode

The block coding skip flags are assigned in the normal RD mode
decision loop. They are then used in the final encoding stage.
In the non-RD mode decision, the forward transform and quantization
stages are replaced by modeling based on SSE and variance of
prediction residues. This commit applies reset to this array in
the non-RD coding mode.

Change-Id: I66584669b035e9c8ac23e95047849ff277472742
Merge "change to save rdmult value correctly"
Merge "Properly reset the block coding skip flag array in non-RD mode"
Merge "y4minput: add some tolerance for read short counts"