command: remove some unused property metadata

Also add an OSD entry for the video aspect.
This commit is contained in:
wm4 2019-10-25 00:50:38 +02:00
parent 223876d92b
commit 767c35c883
1 changed files with 2 additions and 16 deletions

View File

@ -3710,8 +3710,7 @@ static const char *const *const mp_event_property_change[] = {
E(MPV_EVENT_VIDEO_RECONFIG, "video-out-params", "video-params",
"video-format", "video-codec", "video-bitrate", "dwidth", "dheight",
"width", "height", "fps", "aspect", "vo-configured", "current-vo",
"colormatrix", "colormatrix-input-range", "colormatrix-output-range",
"colormatrix-primaries", "video-aspect", "video-dec-params",
"video-aspect", "video-dec-params",
"hwdec", "hwdec-current", "hwdec-interop"),
E(MPV_EVENT_AUDIO_RECONFIG, "audio-format", "audio-codec", "audio-bitrate",
"samplerate", "channels", "audio", "volume", "mute",
@ -3918,16 +3917,6 @@ static const struct property_osd_display {
{"border", "Border"},
{"framedrop", "Framedrop"},
{"deinterlace", "Deinterlace"},
{"colormatrix",
.msg = "YUV colormatrix:\n${colormatrix}"},
{"colormatrix-input-range",
.msg = "YUV input range:\n${colormatrix-input-range}"},
{"colormatrix-output-range",
.msg = "RGB output range:\n${colormatrix-output-range}"},
{"colormatrix-primaries",
.msg = "Colorspace primaries:\n${colormatrix-primaries}"},
{"colormatrix-gamma",
.msg = "Colorspace gamma:\n${colormatrix-gamma}"},
{"gamma", "Gamma", .osd_progbar = OSD_BRIGHTNESS },
{"brightness", "Brightness", .osd_progbar = OSD_BRIGHTNESS},
{"contrast", "Contrast", .osd_progbar = OSD_CONTRAST},
@ -3949,14 +3938,11 @@ static const struct property_osd_display {
{"sub-ass-override", "ASS subtitle style override"},
{"vf", "Video filters", .msg = "Video filters:\n${vf}"},
{"af", "Audio filters", .msg = "Audio filters:\n${af}"},
{"tv-brightness", "Brightness", .osd_progbar = OSD_BRIGHTNESS},
{"tv-hue", "Hue", .osd_progbar = OSD_HUE},
{"tv-saturation", "Saturation", .osd_progbar = OSD_SATURATION},
{"tv-contrast", "Contrast", .osd_progbar = OSD_CONTRAST},
{"ab-loop-a", "A-B loop start"},
{"ab-loop-b", .msg = "A-B loop: ${ab-loop-a} - ${ab-loop-b}"},
{"audio-device", "Audio device"},
{"hwdec", .msg = "Hardware decoding: ${hwdec-current}"},
{"video-aspect-override", "Aspect ratio override"},
// By default, don't display the following properties on OSD
{"pause", NULL},
{"fullscreen", NULL},