diff options
author | wm4 <wm4@nowhere> | 2013-05-30 15:37:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-30 15:55:41 +0200 |
commit | bbc865a4da72349682db666713e88e19300d0b6a (patch) | |
tree | 2a720809d1b7c1f5fa5232ca5369ae987fc47bba /video/sws_utils.h | |
parent | 5d0c4b6ac34911cbac27507b553f767c1a4ec2a5 (diff) | |
download | mpv-bbc865a4da72349682db666713e88e19300d0b6a.tar.bz2 mpv-bbc865a4da72349682db666713e88e19300d0b6a.tar.xz |
gl_video: add some debug code for testing texture depth
This probes and prints the depth of some texture formats with the help
of a FBO. By default it tests the format used for scaling, as well as
the format used for dithering and the 3D LUT (if any of these are
enabled).
The output is visible only with -v. Some representative values are
probed, and the difference of input and output value is printed as hex-
float. Hex-floats are used because they make the implied precision more
obvious. Originally I wanted to do some more sophisticated guessing of
the implied depth/precision for more user-friendly reporting, but then
I decided that printing raw data is better for debugging, especially if
things go wrong.
This does not try to disable any functionality and does not print any
warnings if the depth is lower than what it should be.
Diffstat (limited to 'video/sws_utils.h')
0 files changed, 0 insertions, 0 deletions