[vlc-commits] [Git][videolan/vlc][master] access/v4l2: bring back deprecated pixel formats mapping.

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Dec 7 13:57:36 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
366198ca by Steve Lhomme at 2024-12-07T13:36:07+00:00
access/v4l2: bring back deprecated pixel formats mapping.

Removed in d0494dcdee7dc256db34161c3ffb05cffde02972.

They are equivalent to V4L2_PIX_FMT_ABGR32/V4L2_PIX_FMT_RGB32 respectively
according to [1]. They may still be used by legacy code.

[1] https://www.kernel.org/doc/html/v4.15/media/uapi/v4l/pixfmt-packed-rgb.html

- - - - -


1 changed file:

- modules/access/v4l2/video.c


Changes:

=====================================
modules/access/v4l2/video.c
=====================================
@@ -610,6 +610,9 @@ static const vlc_v4l2_fmt_t v4l2_fmts[] =
     { V4L2_PIX_FMT_XBGR32,   VLC_CODEC_BGRX, 4 },
     { V4L2_PIX_FMT_XRGB32,   VLC_CODEC_XRGB, 4 },
 
+    { V4L2_PIX_FMT_BGR32,    VLC_CODEC_BGRA, 4 },
+    { V4L2_PIX_FMT_RGB32,    VLC_CODEC_ARGB, 4 },
+
     { V4L2_PIX_FMT_RGB24,   VLC_CODEC_RGB24, 3 },
     { V4L2_PIX_FMT_BGR24,   VLC_CODEC_BGR24, 3 },
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/366198ca18fc672c6a9621cd76b1879f045050f1

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/366198ca18fc672c6a9621cd76b1879f045050f1
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list