fixed: quell printf format warnings
copy: support chunked reads so that CFile internal buffer is eliminated

This eliminates memory copies cpu overhead by multiple calls.
gl: avoid grabbing viewport on each render

Same as 518556b45b61de06a0bc810147cd1a6347497461 but for GL
GL: switch to CPU based matrix caculations to match GLES

This drops use of glGet which causes a performance hit on some systems since
it forces a glFinish()
GL(ES): Simplify matrix stack handling
fixup! GL(ES): Simplify matrix stack handling
squash: Fixup build after glGet
changed: Rename confusing CSimpleDoubleCache class to CDoubleCache
fixed: FileCache-full logic was wrong + implement GetMaxWriteSize() function
fixed: Don't keep reading source when cache is full (fixes #15500)
changed: Use m_StateInput else dvdplayer osd info is 8 seconds delayed
fixed: Calling WaitForData with a large minimum could cause it to block the max. timeout
fixed: Typo in variable name