[vlc-commits] [Git][videolan/vlc][master] 3 commits: fourcc: fix NV16 description

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Wed Feb 23 07:32:52 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
da88517c by Rémi Denis-Courmont at 2022-02-23T07:15:59+00:00
fourcc: fix NV16 description

Omitted from 9b8944c7042fdbb374d43f87b326f2d65fe984d9.

- - - - -
f00a0969 by Rémi Denis-Courmont at 2022-02-23T07:15:59+00:00
fourcc: add NV24 description

- - - - -
62d0a882 by Rémi Denis-Courmont at 2022-02-23T07:15:59+00:00
v4l2: add NV16 and NV24 formats

- - - - -


2 changed files:

- modules/access/v4l2/demux.c
- src/misc/fourcc.c


Changes:

=====================================
modules/access/v4l2/demux.c
=====================================
@@ -118,7 +118,7 @@ typedef struct
 {
     uint32_t v4l2;
     vlc_fourcc_t vlc;
-    uint8_t bpp; /**< Bytes per pixel (largest plane) */
+    uint8_t bpp; /**< Bytes per pixel (first plane) */
     uint32_t red;
     uint32_t green;
     uint32_t blue;
@@ -143,10 +143,10 @@ static const vlc_v4l2_fmt_t v4l2_fmts[] =
     { V4L2_PIX_FMT_YUV410,  VLC_CODEC_I410, 1, 0, 0, 0 },
 //  { V4L2_PIX_FMT_YVU410     },
 
-//  { V4L2_PIX_FMT_NV24,      },
-//  { V4L2_PIX_FMT_NV42,      },
-//  { V4L2_PIX_FMT_NV16,    VLC_CODEC_NV16, 1, 0, 0, 0 },
-//  { V4L2_PIX_FMT_NV61,    VLC_CODEC_NV61, 1, 0, 0, 0 },
+    { V4L2_PIX_FMT_NV24,    VLC_CODEC_NV24, 1, 0, 0, 0 },
+    { V4L2_PIX_FMT_NV42,    VLC_CODEC_NV42, 1, 0, 0, 0 },
+    { V4L2_PIX_FMT_NV16,    VLC_CODEC_NV16, 1, 0, 0, 0 },
+    { V4L2_PIX_FMT_NV61,    VLC_CODEC_NV61, 1, 0, 0, 0 },
     { V4L2_PIX_FMT_NV12,    VLC_CODEC_NV12, 1, 0, 0, 0 },
     { V4L2_PIX_FMT_NV21,    VLC_CODEC_NV21, 1, 0, 0, 0 },
 


=====================================
src/misc/fourcc.c
=====================================
@@ -729,9 +729,10 @@ static const struct
     { { VLC_CODEC_YUV_PLANAR_420 },            PLANAR_8(3, 2, 2) },
     { { VLC_CODEC_NV12, VLC_CODEC_NV21 },      SEMIPLANAR(2, 2, 1, 8) },
     { { VLC_CODEC_YUV_PLANAR_422 },            PLANAR_8(3, 2, 1) },
-    { { VLC_CODEC_NV16, VLC_CODEC_NV61 },      PLANAR_8(2, 1, 1) },
+    { { VLC_CODEC_NV16, VLC_CODEC_NV61 },      SEMIPLANAR(2, 1, 1, 8) },
     { { VLC_CODEC_YUV_PLANAR_440 },            PLANAR_8(3, 1, 2) },
     { { VLC_CODEC_YUV_PLANAR_444 },            PLANAR_8(3, 1, 1) },
+    { { VLC_CODEC_NV24, VLC_CODEC_NV42 },      SEMIPLANAR(1, 1, 1, 8) },
     { { VLC_CODEC_YUVA },                      PLANAR_8(4, 1, 1) },
     { { VLC_CODEC_YUV420A },                   PLANAR_8(4, 2, 2) },
     { { VLC_CODEC_YUV422A },                   PLANAR_8(4, 2, 1) },



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/db3b4b964e55cae725d38de119ab5350813b9f9b...62d0a8825a133c0e5b70eb795507d662e8f11cda

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/db3b4b964e55cae725d38de119ab5350813b9f9b...62d0a8825a133c0e5b70eb795507d662e8f11cda
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