* libghpoto2: update to 2.5.32 --------- Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
16 lines
636 B
Diff
16 lines
636 B
Diff
--- libgphoto2-2.5.32/camlibs/quicktake1x0/quicktake1x0.h.orig 2025-02-28 16:28:12.000000000 +0100
|
|
+++ libgphoto2-2.5.32/camlibs/quicktake1x0/quicktake1x0.h 2025-07-11 18:14:36.273226800 +0200
|
|
@@ -75,6 +75,12 @@
|
|
unsigned char getbithuff (int nbits, unsigned char **raw, unsigned short *huff);
|
|
|
|
#define ABS(x) (((int)(x) ^ ((int)(x) >> 31)) - ((int)(x) >> 31))
|
|
+#ifndef MAX
|
|
+# define MAX(a, b) ((a) > (b) ? (a) : (b))
|
|
+#endif
|
|
+#ifndef MIN
|
|
+# define MIN(a, b) ((a) < (b) ? (a) : (b))
|
|
+#endif
|
|
#define LIM(x,min,max) MAX(min,MIN(x,max))
|
|
#define RAW(ptr, row,col) (ptr)[(row)*width+(col)]
|
|
#define getbits(n, raw) getbithuff(n, raw, 0)
|