diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2022-12-22 12:04:50 +0200 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2022-12-22 12:04:50 +0200 |
| commit | 2bd85abc108e0688384f42b0ec83dcd5a622d50d (patch) | |
| tree | 903a9f221a2dc71435b52ace7c815f68217509f3 /v4l2++/inc | |
| parent | 32b6f82fb55b7f9ce1cd8a9e2e8ebdc3a7ac746c (diff) | |
Code formatting fixes
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'v4l2++/inc')
| -rw-r--r-- | v4l2++/inc/v4l2++/helpers.h | 4 | ||||
| -rw-r--r-- | v4l2++/inc/v4l2++/pixelformats.h | 2 | ||||
| -rw-r--r-- | v4l2++/inc/v4l2++/videodevice.h | 10 |
3 files changed, 7 insertions, 9 deletions
diff --git a/v4l2++/inc/v4l2++/helpers.h b/v4l2++/inc/v4l2++/helpers.h index b5c3284..f672b10 100644 --- a/v4l2++/inc/v4l2++/helpers.h +++ b/v4l2++/inc/v4l2++/helpers.h @@ -26,9 +26,9 @@ } while (0) #define FAIL_IF(x, format, ...) \ - if (unlikely(x)) { \ + if (unlikely(x)) { \ fprintf(stderr, "%s:%d: %s:\n" format "\n", __FILE__, __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__); \ - abort(); \ + abort(); \ } #define EXIT(fmt, ...) \ diff --git a/v4l2++/inc/v4l2++/pixelformats.h b/v4l2++/inc/v4l2++/pixelformats.h index 777d0ec..d5af2c2 100644 --- a/v4l2++/inc/v4l2++/pixelformats.h +++ b/v4l2++/inc/v4l2++/pixelformats.h @@ -110,4 +110,4 @@ struct PixelFormatInfo { const struct PixelFormatInfo& get_pixel_format_info(PixelFormat format); -} // namespace kms +} // namespace v4l2 diff --git a/v4l2++/inc/v4l2++/videodevice.h b/v4l2++/inc/v4l2++/videodevice.h index 9016a7f..4ceafa3 100644 --- a/v4l2++/inc/v4l2++/videodevice.h +++ b/v4l2++/inc/v4l2++/videodevice.h @@ -11,8 +11,7 @@ namespace v4l2 class VideoStreamer; class MetaStreamer; -enum class VideoMemoryType -{ +enum class VideoMemoryType { MMAP, DMABUF, }; @@ -87,10 +86,10 @@ public: OutputMulti, CaptureMeta, OutputMeta, - }; + }; VideoStreamer(int fd, StreamerType type); - virtual ~VideoStreamer() { } + virtual ~VideoStreamer() {} std::vector<std::string> get_ports(); void set_port(uint32_t index); @@ -117,7 +116,6 @@ protected: std::vector<bool> m_fbs; }; - class MetaStreamer : public VideoStreamer { public: @@ -126,4 +124,4 @@ public: void set_format(PixelFormat fmt, uint32_t size); }; -} +} // namespace v4l2 |
