csputils: adjust comment

Make it clear that the value is linked to the StereoMode element. You
can't change this without adjusting demux_mkv.c.
This commit is contained in:
wm4 2014-08-30 23:54:19 +02:00
parent 8599c959fe
commit 94140e0897
2 changed files with 5 additions and 3 deletions

View File

@ -79,8 +79,8 @@ const char *const mp_chroma_names[MP_CHROMA_COUNT] = {
// The short name _must_ match with what vf_stereo3d accepts (if supported).
// The long name is closer to the Matroska spec (StereoMode element).
// If you add entries that don't match Matroska, make sure demux_mkv.c rejects
// them properly.
// The numeric index matches the Matroska StereoMode value. If you add entries
// that don't match Matroska, make sure demux_mkv.c rejects them properly.
// The long name is unused.
#define E(index, short, long) [index] = short
const char *const mp_stereo3d_names[MP_STEREO3D_COUNT] = {
@ -89,7 +89,7 @@ const char *const mp_stereo3d_names[MP_STEREO3D_COUNT] = {
E(2, "abr", "top_bottom_right"),
E(3, "abl", "top_bottom_left"),
E(4, "checkr", "checkboard_right"), // unsupported by vf_stereo3d
E(5, "checkl", "checkboard_left"),
E(5, "checkl", "checkboard_left"), // unsupported by vf_stereo3d
E(6, "irr", "row_interleaved_right"),
E(7, "irl", "row_interleaved_left"),
E(8, "icr", "column_interleaved_right"),// unsupported by vf_stereo3d

View File

@ -79,9 +79,11 @@ enum mp_render_intent {
MP_INTENT_ABSOLUTE_COLORIMETRIC = 3
};
// The numeric values (except -1) match the Matroska StereoMode element value.
enum mp_stereo3d_mode {
MP_STEREO3D_INVALID = -1,
MP_STEREO3D_MONO = 0,
/* no explicit enum entries for most valid values */
MP_STEREO3D_COUNT = 13, // 12 is last valid mode
};