img_format: remove some unneeded alpha flag handling

Don't know what this was for, but the result doesn't change.
This commit is contained in:
wm4 2019-11-08 17:22:42 +01:00
parent 1edb3d061b
commit bcfabf40a4
2 changed files with 0 additions and 6 deletions

View File

@ -212,9 +212,6 @@ struct mp_imgfmt_desc mp_imgfmt_get_desc(int mpfmt)
if (pd->flags & AV_PIX_FMT_FLAG_ALPHA)
desc.flags |= MP_IMGFLAG_ALPHA;
if (mpfmt >= IMGFMT_RGB0_START && mpfmt <= IMGFMT_RGB0_END)
desc.flags &= ~MP_IMGFLAG_ALPHA;
if (!(pd->flags & AV_PIX_FMT_FLAG_HWACCEL) &&
!(pd->flags & AV_PIX_FMT_FLAG_BITSTREAM))
{

View File

@ -179,9 +179,6 @@ enum mp_imgfmt {
IMGFMT_0BGR,
IMGFMT_RGB0,
IMGFMT_RGB0_START = IMGFMT_0RGB,
IMGFMT_RGB0_END = IMGFMT_RGB0,
// Like IMGFMT_RGBA, but 2 bytes per component.
IMGFMT_RGBA64,