Merge with default (code freeze for 1.0)

--HG--
branch : stable
csv: always write summary info if file handle is open

fixes behavior of --csv FILE --log full

--HG--
branch : stable
rest: initial documentation for threading details and considerations

--HG--
branch : stable
fix WP issue for 422 and 444 format

--HG--
branch : stable
slicetype: pre-calculate cost estimates for B slices, simplify callback

rate control was always calling back for B slice estimates but since we were
only pre-calculating them if VBV was enabled we were forced to make the
estimates at that time (withing the context of the API thread).

With this patch, we estimate B costs unless CQP is in use, and this allows us
to simplify getEstimatedPictureCost()
Merge with stable
rdcost: use less fractional bits for lambda scale, and larger ints for chroma

This fixes really bad mode decisions made with some Main10 encodes that were
apparently caused by integer overflow

--HG--
branch : stable
fix g_chromaScale for 420 videos accordingly to the HEVC spec.

--HG--
branch : stable
interlace: set sourceScanType to 0 to indicate interlaced video

--HG--
branch : stable
extra : source : f3585fd81c3b94f8b1757d8fa3d60860b581e19c
interlace: set sourceScanType to 0 to indicate interlaced video
Added tag 1.0 for changeset cea97c4d7945

--HG--
branch : stable
Merge with stable
use fseekg() to skip frames for 64bit builds

This is orders of magnitude faster, at least on Windows, than repeated calls to
ignore(framesize)
cmake: add a clean-generated Makefile rule

'make clean-generated' will remove all the machine generated files in the build
folder so that they will be re-generated with more up-to-date version info the
next time you run 'make'

The "easy" workaround for this problem is to just nuke the build folder and
start a new one.