summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/omap-wbcap.cpp6
-rw-r--r--utils/omap-wbm2m.cpp8
2 files changed, 7 insertions, 7 deletions
diff --git a/utils/omap-wbcap.cpp b/utils/omap-wbcap.cpp
index 5080159..fc004cc 100644
--- a/utils/omap-wbcap.cpp
+++ b/utils/omap-wbcap.cpp
@@ -31,7 +31,7 @@ public:
m_capdev.set_queue_size(s_fbs.size(), v4l2::VideoMemoryType::DMABUF);
for (auto fb : s_free_fbs) {
- v4l2::VideoBuffer vbuf {};
+ v4l2::VideoBuffer vbuf{};
vbuf.m_mem_type = v4l2::VideoMemoryType::DMABUF;
vbuf.m_fd = fb->prime_fd(0);
@@ -65,7 +65,7 @@ public:
{
auto vbuf = m_capdev.dequeue();
- auto iter = find_if(s_wb_fbs.begin(), s_wb_fbs.end(), [fd=vbuf.m_fd](auto& fb) { return fb->prime_fd(0) == fd; });
+ auto iter = find_if(s_wb_fbs.begin(), s_wb_fbs.end(), [fd = vbuf.m_fd](auto& fb) { return fb->prime_fd(0) == fd; });
auto fb = *iter;
s_wb_fbs.erase(iter);
@@ -82,7 +82,7 @@ public:
auto fb = s_free_fbs.back();
s_free_fbs.pop_back();
- v4l2::VideoBuffer vbuf {};
+ v4l2::VideoBuffer vbuf{};
vbuf.m_mem_type = v4l2::VideoMemoryType::DMABUF;
vbuf.m_fd = fb->prime_fd(0);
diff --git a/utils/omap-wbm2m.cpp b/utils/omap-wbm2m.cpp
index 6ac08e0..7dcae2e 100644
--- a/utils/omap-wbm2m.cpp
+++ b/utils/omap-wbm2m.cpp
@@ -136,7 +136,7 @@ int main(int argc, char** argv)
out_fbs.push_back(fb);
- v4l2::VideoBuffer vbuf {};
+ v4l2::VideoBuffer vbuf{};
vbuf.m_mem_type = v4l2::VideoMemoryType::DMABUF;
vbuf.m_fd = fb->prime_fd(0);
@@ -150,7 +150,7 @@ int main(int argc, char** argv)
in_fbs.push_back(fb);
- v4l2::VideoBuffer vbuf {};
+ v4l2::VideoBuffer vbuf{};
vbuf.m_mem_type = v4l2::VideoMemoryType::DMABUF;
vbuf.m_fd = fb->prime_fd(0);
@@ -184,7 +184,7 @@ int main(int argc, char** argv)
try {
auto dst_vbuf = in->dequeue();
- auto dst_fb = *find_if(in_fbs.begin(), in_fbs.end(), [fd=dst_vbuf.m_fd](auto& fb) { return fb->prime_fd(0) == fd; });
+ auto dst_fb = *find_if(in_fbs.begin(), in_fbs.end(), [fd = dst_vbuf.m_fd](auto& fb) { return fb->prime_fd(0) == fd; });
printf("Writing frame %u\n", dst_frame_num);
for (unsigned i = 0; i < dst_fb->num_planes(); ++i)
@@ -205,7 +205,7 @@ int main(int argc, char** argv)
auto src_vbuf = out->dequeue();
- auto src_fb = *find_if(out_fbs.begin(), out_fbs.end(), [fd=src_vbuf.m_fd](auto& fb) { return fb->prime_fd(0) == fd; });
+ auto src_fb = *find_if(out_fbs.begin(), out_fbs.end(), [fd = src_vbuf.m_fd](auto& fb) { return fb->prime_fd(0) == fd; });
if (src_frame_num < num_src_frames) {
read_frame(src_fb, src_frame_num++);