aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-10-10 22:49:05 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2016-10-10 22:49:05 +0200
commitca34e4fa4690bb232382159edf36cf3099f4c017 (patch)
tree15e685f4d729d389472d02cd0c282facd6a50717
parent405f0c21e0b52836d22c999aa4ee1f51d87998b2 (diff)
v4l2-ctl: support new standard and flags
Support the new SDI standard, the new v4l2_bt_timings flag and the new input flags. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-io.cpp2
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-stds.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-io.cpp b/utils/v4l2-ctl/v4l2-ctl-io.cpp
index 30798eaf..f84bdc95 100644
--- a/utils/v4l2-ctl/v4l2-ctl-io.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-io.cpp
@@ -54,6 +54,8 @@ static const flag_def in_status_def[] = {
{ V4L2_IN_ST_HFLIP, "hflip" },
{ V4L2_IN_ST_VFLIP, "vflip" },
{ V4L2_IN_ST_NO_H_LOCK, "no hsync lock" },
+ { V4L2_IN_ST_NO_V_LOCK, "no vsync lock" },
+ { V4L2_IN_ST_NO_STD_LOCK, "no standard format lock" },
{ V4L2_IN_ST_COLOR_KILL, "color kill" },
{ V4L2_IN_ST_NO_SYNC, "no sync lock" },
{ V4L2_IN_ST_NO_EQU, "no equalizer lock" },
diff --git a/utils/v4l2-ctl/v4l2-ctl-stds.cpp b/utils/v4l2-ctl/v4l2-ctl-stds.cpp
index a36cd552..3480762a 100644
--- a/utils/v4l2-ctl/v4l2-ctl-stds.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-stds.cpp
@@ -362,6 +362,7 @@ static const flag_def dv_standards_def[] = {
{ V4L2_DV_BT_STD_DMT, "DMT" },
{ V4L2_DV_BT_STD_CVT, "CVT" },
{ V4L2_DV_BT_STD_GTF, "GTF" },
+ { V4L2_DV_BT_STD_SDI, "SDI" },
{ 0, NULL }
};
@@ -381,6 +382,8 @@ static std::string dvflags2s(unsigned vsync, int val)
s += "half-line, ";
if (val & V4L2_DV_FL_IS_CE_VIDEO)
s += "CE-video, ";
+ if (val & V4L2_DV_FL_FIRST_FIELD_EXTRA_LINE)
+ s += "first field has extra line, ";
if (s.length())
return s.erase(s.length() - 2, 2);
return s;

Privacy Policy