summaryrefslogtreecommitdiffstats
path: root/video/csputils.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-12 19:30:34 +0100
committerwm4 <wm4@nowhere>2014-11-12 19:30:59 +0100
commite9792326e396f4575941cb381c8bad9c9221e50a (patch)
tree94741b2d200d028b4450f31c4752fdb4e5cb9d21 /video/csputils.h
parent41365313433875b0ac2f1fa0e6d14ffa4f5e4e8d (diff)
downloadmpv-e9792326e396f4575941cb381c8bad9c9221e50a.tar.bz2
mpv-e9792326e396f4575941cb381c8bad9c9221e50a.tar.xz
mp_image: slightly better image params verbose info
Diffstat (limited to 'video/csputils.h')
-rw-r--r--video/csputils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/csputils.h b/video/csputils.h
index a494a06b28..33bac87f64 100644
--- a/video/csputils.h
+++ b/video/csputils.h
@@ -96,6 +96,8 @@ extern const char *const mp_stereo3d_names[MP_STEREO3D_COUNT];
#define MP_STEREO3D_NAME(x) \
((x) >= 0 && (x) < MP_STEREO3D_COUNT ? (char *)mp_stereo3d_names[(x)] : NULL)
+#define MP_STEREO3D_NAME_DEF(x, def) \
+ (MP_STEREO3D_NAME(x) ? MP_STEREO3D_NAME(x) : (def))
struct mp_csp_details {
enum mp_csp format;