1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00
mpv/DOCS
wm4 7b6e3772ab vo_opengl: support 10 bit support with ANGLE
GLES does not support high bit depth fixed point textures for unknown
reasons, so direct 10 bit input is not possible. But we can still use
integer textures, which are supported by GLES 3.0. These store integer
data just like the standard fixed point textures, except they are not
normalized on sampling. They also don't support bilinear filtering, and
require a special sampler ("usampler2D").

While these texture formats enable us to shuffle the data to the GPU,
they're rather impractical with the requirements mentioned above and our
current architecture. One problem is that most code assumes it can
always use bilinear scaling (even if bilinear is never used when using
appropriate scale/cscale options). Another is that we don't have any
concept of running a function on a texture in an uniform way.

So for now, run a simple conversion step through a FBO. The FBO will use
the rgba16f format normally, which gives enough bits for 10 bit, and
will at least gracefully degrade with higher depth input.

This is bound to be much slower than a more "direct" method, but at
least it works and is simple to implement.

The odd change of function call order in init_video() is to properly
disable "dumb mode" (no FBO use) if these texture formats are in use.
2016-01-26 21:35:23 +01:00
..
client_api_examples examples/qt_opengl: Use fbo of the widget and not the thread context 2015-12-03 10:41:49 +01:00
man vo_opengl: support 10 bit support with ANGLE 2016-01-26 21:35:23 +01:00
client-api-changes.rst client API: rename GL_MP_D3D_interfaces 2015-09-24 21:07:37 +02:00
compile-windows.md DOCS/compile-windows: pthreads is not needed anymore 2015-12-20 11:18:02 +01:00
contribute.md Add a CONTRIBUTING.md file 2015-12-22 23:18:46 +01:00
edl-mpv.rst Drop libquvi support 2014-10-25 20:18:22 +02:00
encoding.rst manpage: update config file locations 2014-06-28 15:55:09 +02:00
interface-changes.rst command: always allow setting volume/mute properties 2016-01-26 15:23:09 +01:00
mplayer-changes.rst Disable DVD and BD menu support (to be removed) 2015-06-26 23:37:30 +02:00
release-policy.md DOCS: update release policy 2015-09-23 01:07:52 +02:00
tech-overview.txt options: remove --leak-report 2015-05-02 19:03:28 +02:00
waf-buildsystem.rst Various spelling fixes 2015-06-18 19:36:58 +02:00