From 98352362ea17075400818e9439f9740c4c19bbbc Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 3 Nov 2019 23:18:35 +0100 Subject: img_format: remove some unused format flags They were used at some point, but then fell into disuse. In general, these old flags are all a bit fuzzy, so it's a good idea to remove them as much as possible. The comment about MP_IMGFLAG_PAL isn't true anymore. The old meaning was deprecated at some point, and the flag was removed from "pseudo paletted" formats. I think mpv at one point changed its own flag from AV_PIX_FMT_FLAG_PSEUDOPAL to AV_PIX_FMT_FLAG_PAL, when the former was deprecated, and it became unnecessary to allocate a palette for non-paletted formats. (The one who deprecated in FFmpeg was me, if you wonder.) MP_IMGFLAG_PLANAR was used in command.c, use a relatively similar flag as replacement. --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 1d0da8e105..ac49157aee 100644 --- a/player/command.c +++ b/player/command.c @@ -2359,7 +2359,7 @@ static int property_imgparams(struct mp_image_params p, int action, void *arg) {"average-bpp", SUB_PROP_INT(bpp), .unavailable = !bpp}, {"plane-depth", SUB_PROP_INT(desc.plane_bits), - .unavailable = !(desc.flags & MP_IMGFLAG_PLANAR)}, + .unavailable = !(desc.flags & MP_IMGFLAG_YUV_P)}, {"w", SUB_PROP_INT(p.w)}, {"h", SUB_PROP_INT(p.h)}, {"dw", SUB_PROP_INT(d_w)}, -- cgit v1.2.3