Skip to content

Commit

Permalink
define v4l2_fourcc_be fallback
Browse files Browse the repository at this point in the history
do we actually need this?
  • Loading branch information
umlaeute committed Mar 24, 2021
1 parent 1b95bba commit 09f82ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions v4l2loopback_formats.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@

#define LINUX_BACKPORT(__sym) backport_##__sym

#ifndef v4l2_fourcc
#define v4l2_fourcc(a, b, c, d) \
((__u32)(a) | ((__u32)(b) << 8) | ((__u32)(c) << 16) | \
((__u32)(d) << 24))
#endif
#ifndef v4l2_fourcc_be
#define v4l2_fourcc_be(a, b, c, d) (v4l2_fourcc(a, b, c, d) | (1U << 31))
#endif

static const __u32 formats[] = {
// Generated by:
// $ cd kernel_tree
Expand Down

0 comments on commit 09f82ec

Please sign in to comment.