summaryrefslogtreecommitdiffstats
path: root/video/img_format.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-18 13:46:34 +0200
committerwm4 <wm4@nowhere>2017-06-18 13:46:34 +0200
commit937dcc25adc20872f7b0751ddfecb89acebd05a2 (patch)
tree92bb6161aabc8a1bbaac513c02e6540bcfc52cdc /video/img_format.c
parent0bac1a52e8a5e60359dc010551a36ab7940ed552 (diff)
downloadmpv-937dcc25adc20872f7b0751ddfecb89acebd05a2.tar.bz2
mpv-937dcc25adc20872f7b0751ddfecb89acebd05a2.tar.xz
img_format: drop legacy name mappings
Not needed anymore.
Diffstat (limited to 'video/img_format.c')
-rw-r--r--video/img_format.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/video/img_format.c b/video/img_format.c
index 395ba7e2d5..64b459bcfb 100644
--- a/video/img_format.c
+++ b/video/img_format.c
@@ -41,24 +41,7 @@ static const struct mp_imgfmt_entry mp_imgfmt_list[] = {
// FFmpeg names have an annoying "_vld" suffix
{"videotoolbox", IMGFMT_VIDEOTOOLBOX},
{"vaapi", IMGFMT_VAAPI},
- // names below this are not preferred over the FFmpeg names
- // the "none" entry makes mp_imgfmt_to_name prefer FFmpeg names
{"none", 0},
- // endian-specific aliases (not in FFmpeg)
- {"rgb32", IMGFMT_RGB32},
- {"bgr32", IMGFMT_BGR32},
- // old names we keep around
- {"y8", IMGFMT_Y8},
- {"420p", IMGFMT_420P},
- {"yv12", IMGFMT_420P},
- {"420p16", IMGFMT_420P16},
- {"420p10", IMGFMT_420P10},
- {"444p", IMGFMT_444P},
- {"444p9", IMGFMT_444P9},
- {"444p10", IMGFMT_444P10},
- {"422p", IMGFMT_422P},
- {"422p9", IMGFMT_422P9},
- {"422p10", IMGFMT_422P10},
{0}
};
@@ -69,7 +52,7 @@ char **mp_imgfmt_name_list(void)
int num = 0;
for (int n = IMGFMT_START; n < IMGFMT_END; n++) {
const char *name = mp_imgfmt_to_name(n);
- if (strcmp(name, "none") != 0 && strcmp(name, "unknown") != 0)
+ if (strcmp(name, "unknown") != 0)
list[num++] = talloc_strdup(list, name);
}
return list;