Skip to content

Commit

Permalink
moved fallback defines for V4L2_PIX_FMT_* to v4l2loopback_formats.h
Browse files Browse the repository at this point in the history
  • Loading branch information
umlaeute committed Oct 14, 2020
1 parent afb9153 commit a1f3e03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions v4l2loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,6 @@ struct v4l2l_format {
#define FORMAT_FLAGS_PLANAR 0x01
#define FORMAT_FLAGS_COMPRESSED 0x02

#ifndef V4L2_PIX_FMT_VP9
#define V4L2_PIX_FMT_VP9 v4l2_fourcc('V', 'P', '9', '0')
#endif
#ifndef V4L2_PIX_FMT_HEVC
#define V4L2_PIX_FMT_HEVC v4l2_fourcc('H', 'E', 'V', 'C')
#endif

static const struct v4l2l_format formats[] = {
#include "v4l2loopback_formats.h"
};
Expand Down
7 changes: 7 additions & 0 deletions v4l2loopback_formats.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#ifndef V4L2_PIX_FMT_VP9
#define V4L2_PIX_FMT_VP9 v4l2_fourcc('V', 'P', '9', '0')
#endif
#ifndef V4L2_PIX_FMT_HEVC
#define V4L2_PIX_FMT_HEVC v4l2_fourcc('H', 'E', 'V', 'C')
#endif

/* here come the packed formats */
{
.name = "32 bpp RGB, le",
Expand Down

0 comments on commit a1f3e03

Please sign in to comment.