diff options
author | wm4 <wm4@nowhere> | 2020-05-11 19:37:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-11 19:57:34 +0200 |
commit | 6db890ebab2839443ddbfc34a4a0246d464bd14f (patch) | |
tree | bed087dd0f72b1365fa9ebb69462504db80e4474 /video/img_format.h | |
parent | b5284a68296519480d9d4142880c13a8112feb18 (diff) | |
download | mpv-6db890ebab2839443ddbfc34a4a0246d464bd14f.tar.bz2 mpv-6db890ebab2839443ddbfc34a4a0246d464bd14f.tar.xz |
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.
Diffstat (limited to 'video/img_format.h')
-rw-r--r-- | video/img_format.h | 9 |
1 files changed, 0 insertions, 9 deletions
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) |