Skip to content

Commit

Permalink
[#48460] example: Added an enum for the BX24 format
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Bylicki <jbylicki@antmicro.com>
  • Loading branch information
jbylicki committed Aug 25, 2023
1 parent 68fee86 commit 79cb58a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ Config parseOptions(int argc, char const *argv[])
// clang-format on

std::unordered_map<std::string, unsigned int> pix_formats = {
{"YUYV", V4L2_PIX_FMT_YYUV}, {"JPG", V4L2_PIX_FMT_MJPEG}, {"BGRA", V4L2_PIX_FMT_ABGR32},
{"AR24", V4L2_PIX_FMT_ABGR32}, {"RGGB", V4L2_PIX_FMT_SRGGB8}, {"RG10", V4L2_PIX_FMT_SRGGB10},
{"RG12", V4L2_PIX_FMT_SRGGB12}};
{"YUYV", V4L2_PIX_FMT_YYUV}, {"JPG", V4L2_PIX_FMT_MJPEG}, {"BGRA", V4L2_PIX_FMT_ABGR32},
{"AR24", V4L2_PIX_FMT_ABGR32}, {"RGGB", V4L2_PIX_FMT_SRGGB8}, {"RG10", V4L2_PIX_FMT_SRGGB10},
{"RG12", V4L2_PIX_FMT_SRGGB12}, {"BX24", V4L2_PIX_FMT_XRGB32}};

// Get command line parameters and parse them
try
Expand Down

0 comments on commit 79cb58a

Please sign in to comment.