aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-09-13 11:08:34 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2014-09-13 11:08:34 +0200
commit8e17b16829d1a4081e007f164fc69a7bfa28fb65 (patch)
treeed2eb4181bfc106bdf08963105b432778a351b58
parent0f48cb39576aaa3eaef459156d0d577deca6f548 (diff)
qv4l2: the helper now zeroes bytesperline
So we no longer need to do it in qv4l2. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/qv4l2/general-tab.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/utils/qv4l2/general-tab.cpp b/utils/qv4l2/general-tab.cpp
index fad11a32..59995413 100644
--- a/utils/qv4l2/general-tab.cpp
+++ b/utils/qv4l2/general-tab.cpp
@@ -1373,9 +1373,6 @@ void GeneralTab::vidCapFormatChanged(int idx)
g_fmt(fmt);
fmt.s_pixelformat(desc.pixelformat);
- // Force the driver to recalculate bytesperline.
- for (unsigned p = 0; p < fmt.g_num_planes(); p++)
- fmt.s_bytesperline(0, p);
if (try_fmt(fmt) == 0)
s_fmt(fmt);
@@ -1433,9 +1430,6 @@ void GeneralTab::frameWidthChanged()
if (m_frameWidth->isEnabled()) {
g_fmt(fmt);
fmt.s_width(val);
- // Force the driver to recalculate bytesperline.
- for (unsigned p = 0; p < fmt.g_num_planes(); p++)
- fmt.s_bytesperline(0, p);
if (try_fmt(fmt) == 0)
s_fmt(fmt);
}
@@ -1468,9 +1462,6 @@ void GeneralTab::frameSizeChanged(int idx)
g_fmt(fmt);
fmt.s_width(frmsize.discrete.width);
fmt.s_height(frmsize.discrete.height);
- // Force the driver to recalculate bytesperline.
- for (unsigned p = 0; p < fmt.g_num_planes(); p++)
- fmt.s_bytesperline(0, p);
if (try_fmt(fmt) == 0)
s_fmt(fmt);
}

Privacy Policy