Commit 61994f33 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

v4l2: add analag standard groups from Linux 3.2

parent c5c882ab
...@@ -32,6 +32,12 @@ ...@@ -32,6 +32,12 @@
#ifndef V4L2_CTRL_FLAG_VOLATILE /* 3.2 */ #ifndef V4L2_CTRL_FLAG_VOLATILE /* 3.2 */
# warning Please update Video4Linux2 headers! # warning Please update Video4Linux2 headers!
# define V4L2_CTRL_FLAG_VOLATILE 0x0080 # 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 #endif
#ifdef __linux__ #ifdef __linux__
# include <linux/version.h> # include <linux/version.h>
......
...@@ -222,10 +222,11 @@ static const v4l2_std_id standards_v4l2[] = { V4L2_STD_UNKNOWN, V4L2_STD_ALL, ...@@ -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_PAL, V4L2_STD_PAL_BG, V4L2_STD_PAL_DK,
V4L2_STD_NTSC, V4L2_STD_NTSC,
V4L2_STD_SECAM, V4L2_STD_SECAM_DK, 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_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_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, 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", ...@@ -240,11 +241,12 @@ static const char *const standards_vlc[] = { "", "ALL",
"PAL", "PAL_BG", "PAL_DK", "PAL", "PAL_BG", "PAL_DK",
"NTSC", "NTSC",
"SECAM", "SECAM_DK", "SECAM", "SECAM_DK",
"525_60", "625_50", "MTS", "525_60", "625_50",
"ATSC", "ATSC",
/* Areas (PAL/NTSC or PAL/SECAM) */ /* Chroma-agnostic ITU standards (PAL/NTSC or PAL/SECAM) */
"MN", "B", "GH", "DK", "B", "G", "H", "L",
"GH", "DK", "BG", "MN",
/* Individual standards */ /* Individual standards */
"PAL_B", "PAL_B1", "PAL_G", "PAL_H", "PAL_B", "PAL_B1", "PAL_G", "PAL_H",
...@@ -259,11 +261,12 @@ static const char *const standards_user[] = { N_("Undefined"), N_("All"), ...@@ -259,11 +261,12 @@ static const char *const standards_user[] = { N_("Undefined"), N_("All"),
"PAL", "PAL B/G", "PAL D/K", "PAL", "PAL B/G", "PAL D/K",
"NTSC", "NTSC",
"SECAM", "SECAM D/K", "SECAM", "SECAM D/K",
N_("Multichannel television sound (MTS)"),
N_("525 lines / 60 Hz"), N_("625 lines / 50 Hz"), N_("525 lines / 60 Hz"), N_("625 lines / 50 Hz"),
"ATSC", "ATSC",
"PAL/NTSC M/N", "PAL/SECAM B", "PAL/SECAM G", "PAL/SECAM H", "PAL/SECAM L",
"PAL/SECAM B", "PAL/SECAM G/H", "PAL/SECAM D/K", "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 B", "PAL B1", "PAL G", "PAL H",
"PAL I", "PAL D", "PAL D1", "PAL K", "PAL I", "PAL D", "PAL D1", "PAL K",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment