From 2bd85abc108e0688384f42b0ec83dcd5a622d50d Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 22 Dec 2022 12:04:50 +0200 Subject: Code formatting fixes Signed-off-by: Tomi Valkeinen --- v4l2++/src/videodevice.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'v4l2++/src/videodevice.cpp') diff --git a/v4l2++/src/videodevice.cpp b/v4l2++/src/videodevice.cpp index c25e9be..909cb1b 100644 --- a/v4l2++/src/videodevice.cpp +++ b/v4l2++/src/videodevice.cpp @@ -551,7 +551,7 @@ std::vector VideoStreamer::get_formats() return v4l2_get_formats(m_fd, get_buf_type(m_type)); } -int VideoStreamer::get_format(PixelFormat &fmt, uint32_t &width, uint32_t &height) +int VideoStreamer::get_format(PixelFormat& fmt, uint32_t& width, uint32_t& height) { return v4l2_get_format(m_fd, get_buf_type(m_type), fmt, width, height); } @@ -580,7 +580,7 @@ void VideoStreamer::set_queue_size(uint32_t queue_size, VideoMemoryType mem_type m_fbs.resize(queue_size); } -void VideoStreamer::queue(VideoBuffer &fb) +void VideoStreamer::queue(VideoBuffer& fb) { uint32_t idx; @@ -600,7 +600,7 @@ void VideoStreamer::queue(VideoBuffer &fb) VideoBuffer VideoStreamer::dequeue() { - VideoBuffer fb {}; + VideoBuffer fb{}; fb.m_mem_type = m_mem_type; uint32_t idx = v4l2_dequeue(m_fd, fb, get_buf_type(m_type)); @@ -637,8 +637,6 @@ int VideoStreamer::export_buffer(uint32_t index) return expbuf.fd; } - - MetaStreamer::MetaStreamer(int fd, StreamerType type) : VideoStreamer(fd, type) { @@ -648,7 +646,7 @@ void MetaStreamer::set_format(PixelFormat fmt, uint32_t size) { int r; - v4l2_format v4lfmt {}; + v4l2_format v4lfmt{}; v4lfmt.type = get_buf_type(m_type); //r = ioctl(m_fd, VIDIOC_G_FMT, &v4lfmt); -- cgit v1.2.3