[vlc-commits] v4l2: add analag standard groups from Linux 3.2

Rémi Denis-Courmont git at videolan.org
Fri Jan 6 11:32:29 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jan  6 12:28:08 2012 +0200| [61994f3392444741c0a4a2cb66c22a6204ca44d7] | committer: Rémi Denis-Courmont

v4l2: add analag standard groups from Linux 3.2

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=61994f3392444741c0a4a2cb66c22a6204ca44d7
---

 modules/access/v4l2/v4l2.h  |    6 ++++++
 modules/access/v4l2/video.c |   17 ++++++++++-------
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/modules/access/v4l2/v4l2.h b/modules/access/v4l2/v4l2.h
index 8b227d1..6cdef4e 100644
--- a/modules/access/v4l2/v4l2.h
+++ b/modules/access/v4l2/v4l2.h
@@ -32,6 +32,12 @@
 #ifndef V4L2_CTRL_FLAG_VOLATILE /* 3.2 */
 # warning Please update Video4Linux2 headers!
 # define V4L2_CTRL_FLAG_VOLATILE 0x0080
+# define V4L2_STD_G (V4L2_STD_PAL_G|V4L2_STD_SECAM_G)
+# define V4L2_STD_H (V4L2_STD_PAL_H|V4L2_STD_SECAM_H)
+# define V4L2_STD_L (V4L2_STD_SECAM_L|V4L2_STD_SECAM_LC)
+# define V4L2_STD_BG (V4L2_STD_B|V4L2_STD_G)
+# define V4L2_STD_MTS (V4L2_STD_NTSC_M|V4L2_STD_PAL_M|V4L2_STD_PAL_N|\
+                       V4L2_STD_PAL_Nc)
 #endif
 #ifdef __linux__
 # include <linux/version.h>
diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c
index 951213d..9c31f3f 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -222,10 +222,11 @@ static const v4l2_std_id standards_v4l2[] = { V4L2_STD_UNKNOWN, V4L2_STD_ALL,
     V4L2_STD_PAL,     V4L2_STD_PAL_BG,   V4L2_STD_PAL_DK,
     V4L2_STD_NTSC,
     V4L2_STD_SECAM,   V4L2_STD_SECAM_DK,
-    V4L2_STD_525_60,  V4L2_STD_625_50,
+    V4L2_STD_MTS,     V4L2_STD_525_60,  V4L2_STD_625_50,
     V4L2_STD_ATSC,
 
-    V4L2_STD_MN,      V4L2_STD_B,        V4L2_STD_GH,       V4L2_STD_DK,
+    V4L2_STD_B,       V4L2_STD_G,        V4L2_STD_H,        V4L2_STD_L,
+    V4L2_STD_GH,      V4L2_STD_DK,       V4L2_STD_BG,       V4L2_STD_MN,
 
     V4L2_STD_PAL_B,   V4L2_STD_PAL_B1,   V4L2_STD_PAL_G,    V4L2_STD_PAL_H,
     V4L2_STD_PAL_I,   V4L2_STD_PAL_D,    V4L2_STD_PAL_D1,   V4L2_STD_PAL_K,
@@ -240,11 +241,12 @@ static const char *const standards_vlc[] = { "", "ALL",
     "PAL", "PAL_BG", "PAL_DK",
     "NTSC",
     "SECAM", "SECAM_DK",
-    "525_60", "625_50",
+    "MTS", "525_60", "625_50",
     "ATSC",
 
-    /* Areas (PAL/NTSC or PAL/SECAM) */
-    "MN", "B", "GH", "DK",
+    /* Chroma-agnostic ITU standards (PAL/NTSC or PAL/SECAM) */
+    "B",              "G",               "H",               "L",
+    "GH",             "DK",              "BG",              "MN",
 
     /* Individual standards */
     "PAL_B",          "PAL_B1",          "PAL_G",           "PAL_H",
@@ -259,11 +261,12 @@ static const char *const standards_user[] = { N_("Undefined"), N_("All"),
     "PAL",            "PAL B/G",         "PAL D/K",
     "NTSC",
     "SECAM",          "SECAM D/K",
+    N_("Multichannel television sound (MTS)"),
     N_("525 lines / 60 Hz"), N_("625 lines / 50 Hz"),
     "ATSC",
 
-    "PAL/NTSC M/N",
-    "PAL/SECAM B",    "PAL/SECAM G/H",   "PAL/SECAM D/K",
+    "PAL/SECAM B",    "PAL/SECAM G",     "PAL/SECAM H",     "PAL/SECAM L",
+    "PAL/SECAM G/H",  "PAL/SECAM D/K",   "PAL/SECAM B/G",   "PAL/NTSC M/N",
 
     "PAL B",          "PAL B1",          "PAL G",           "PAL H",
     "PAL I",          "PAL D",           "PAL D1",          "PAL K",



More information about the vlc-commits mailing list