From 6db890ebab2839443ddbfc34a4a0246d464bd14f Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 11 May 2020 19:37:16 +0200 Subject: video: remove RGB32/BGR32 aliases They are sort of confusing, and they hide the fact that they have an alpha component. Using the actual formats directly is no problem, sicne these were useful only for big endian systems, something we can't test anyway. --- video/img_format.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'video/img_format.h') diff --git a/video/img_format.h b/video/img_format.h index 158fdb9df9..f3d9750585 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -251,15 +251,6 @@ enum mp_imgfmt { IMGFMT_AVPIXFMT_END = IMGFMT_AVPIXFMT_START + 500, IMGFMT_END, - - // Redundant format aliases for native endian access - - // The IMGFMT_RGB32 and IMGFMT_BGR32 formats provide bit-shift access to - // normally byte-accessed formats: - // IMGFMT_RGB32 = r | (g << 8) | (b << 16) | (a << 24) - // IMGFMT_BGR32 = b | (g << 8) | (r << 16) | (a << 24) - IMGFMT_RGB32 = MP_SELECT_LE_BE(IMGFMT_RGBA, IMGFMT_ABGR), - IMGFMT_BGR32 = MP_SELECT_LE_BE(IMGFMT_BGRA, IMGFMT_ARGB), }; static inline bool IMGFMT_IS_RGB(int fmt) -- cgit v1.2.3