File: codec-fwht.patch

package info (click to toggle)
v4l-utils 1.32.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,276 kB
  • sloc: ansic: 85,528; cpp: 69,473; perl: 11,915; sh: 1,333; python: 883; php: 119; makefile: 39
file content (33 lines) | stat: -rw-r--r-- 922 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/utils/common/codec-fwht.h.old	2019-02-23 09:38:59.454065366 -0800
+++ b/utils/common/codec-fwht.h	2019-02-23 09:40:44.007803414 -0800
@@ -8,8 +8,28 @@
 #define CODEC_FWHT_H
 
 #include <linux/types.h>
-#include <linux/bitops.h>
-#include <asm/byteorder.h>
+#include <string.h>
+#include <errno.h>
+#include <arpa/inet.h>
+#include <stdbool.h>
+#include <stdint.h>
+
+#define BIT(x) (1 << (x))
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#define GENMASK(h, l) \
+	(((~0UL) - (1UL << (l)) + 1) & (~0UL >> ((8 * sizeof(long)) - 1 - (h))))
+#define pr_err(arg...)
+#define __round_mask(x, y) ((__typeof__(x))((y)-1))
+#define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1)
+#define noinline_for_stack
+
+
+typedef __u64 u64;
+typedef __u32 u32;
+typedef __u16 u16;
+typedef __s16 s16;
+typedef __s32 s32;
+typedef __u8 u8;
 
 /*
  * The compressed format consists of a fwht_cframe_hdr struct followed by the