summaryrefslogtreecommitdiffstats
path: root/video/csputils.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2014-04-02 00:40:36 +0200
committerwm4 <wm4@nowhere>2014-06-22 19:05:43 +0200
commit664f8e9832e7ee9835816621faf4b57ffbcc8628 (patch)
tree5a4183678358bdfa04a3a88ec94350b6a430323a /video/csputils.h
parentfbd35caef830a1d0a25f1ee6e3b5d71453c98a59 (diff)
downloadmpv-664f8e9832e7ee9835816621faf4b57ffbcc8628.tar.bz2
mpv-664f8e9832e7ee9835816621faf4b57ffbcc8628.tar.xz
video: Include better heuristics for guessing primaries
These consult the vertical resolution, matching against 576 for PAL and 480/486 for NTSC. The documentation has also been updated. Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'video/csputils.h')
-rw-r--r--video/csputils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/csputils.h b/video/csputils.h
index 9257102df5..757ac72cdc 100644
--- a/video/csputils.h
+++ b/video/csputils.h
@@ -180,6 +180,7 @@ int mp_csp_levels_to_avcol_range(enum mp_csp_levels range);
int mp_csp_prim_to_avcol_pri(enum mp_csp_prim prim);
enum mp_csp mp_csp_guess_colorspace(int width, int height);
+enum mp_csp_prim mp_csp_guess_primaries(int width, int height);
enum mp_chroma_location avchroma_location_to_mp(int avloc);
int mp_chroma_location_to_av(enum mp_chroma_location mploc);