summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/lcms.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2016-05-03 21:58:03 +0200
committerwm4 <wm4@nowhere>2016-05-04 12:10:45 +0200
commit9054460bbaec267f7c08bf8115f50aba830bdc70 (patch)
tree8bcc99e886a481678d5ec77e7667a2a8d2807794 /video/out/opengl/lcms.h
parent05c398fb6c3a48c6a72b6b0706ea0156c46b146d (diff)
downloadmpv-9054460bbaec267f7c08bf8115f50aba830bdc70.tar.bz2
mpv-9054460bbaec267f7c08bf8115f50aba830bdc70.tar.xz
lcms: improve black point handling (especially BT.1886)
First of all, black point compensation is now on by default. This is really rather harmless and only improves the result (where "improvement" means "less black clipping"). Second, this adds an option to limit the ICC profile's contrast, which helps for untagged matrix profiles that are implicitly black scaled even in colorimetric intent. (Note that this relies on BPC being enabled to work properly, which is why the two changes are tied together) Third, this uses the LittleCMS built in black point estimator instead of relying on the presence of accurate A2B tables. This also checks tags and does some amounts of noise elimination. If the option is unspecified and the profile is missing black point information, print a warning instructing the user to set the option, and fall back to 1000 otherwise.
Diffstat (limited to 'video/out/opengl/lcms.h')
-rw-r--r--video/out/opengl/lcms.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/lcms.h b/video/out/opengl/lcms.h
index ee2a48b59c..4e0a18c3d2 100644
--- a/video/out/opengl/lcms.h
+++ b/video/out/opengl/lcms.h
@@ -13,6 +13,7 @@ struct mp_icc_opts {
char *cache_dir;
char *size_str;
int intent;
+ int contrast;
};
struct lut3d;