Skip to content

Commit

Permalink
fix: Add missing #include
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav1 committed Jun 30, 2023
1 parent 38d5d8a commit 0d716c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions inc/udmaio/FrameFormat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <cstddef>
#include <cstdint>
#include <string>
#include <unordered_map>

namespace udmaio {

Expand All @@ -23,7 +24,7 @@ class FrameFormat {
struct dim_t {
uint16_t width;
uint16_t height;
dim_t(uint16_t w, uint16_t h):width(w),height(h){}
dim_t(uint16_t w, uint16_t h) : width(w), height(h) {}
};

// clang-format off
Expand Down Expand Up @@ -115,19 +116,19 @@ class FrameFormat {
/// @param dim Width and height of the video frame (in pixels)
/// @param bytes_per_pix Number of bytes per pixel, pixel format will be set to unknown
/// @param word_width Number of bytes per data word used by the dma
void set_format(dim_t dim, uint16_t bytes_per_pixel, uint8_t word_width=4);
void set_format(dim_t dim, uint16_t bytes_per_pixel, uint8_t word_width = 4);

/// @brief Set format of the frames used for the video stream
/// @param dim Width and height of the video frame (in pixels)
/// @param pixFmt Pixel format, will be used to set bytes per pixel value
/// @param word_width Number of bytes per data word used by the dma
void set_format(dim_t dim, std::string pix_fmt_str, uint8_t word_width=4);
void set_format(dim_t dim, std::string pix_fmt_str, uint8_t word_width = 4);

/// @brief Set format of the frames used for the video stream
/// @param dim Width and height of the video frame (in pixels)
/// @param pixFmt Pixel format, will be used to set bytes per pixel value
/// @param word_width Number of bytes per data word used by the dma
void set_format(dim_t dim, PixelFormat pix_fmt, uint8_t word_width=4);
void set_format(dim_t dim, PixelFormat pix_fmt, uint8_t word_width = 4);

/// @brief Set format of the frames used for the video stream, pixel format is untouched
/// @param dim Width and height of the video frame (in pixels)
Expand Down

0 comments on commit 0d716c0

Please sign in to comment.