media-gfx/exact-image: remove unused patches

Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger
2025-04-22 20:28:27 +02:00
committed by Alfredo Tupone
parent 9d1da557c0
commit 91c10fcc7e
2 changed files with 0 additions and 90 deletions

View File

@@ -1,26 +0,0 @@
--- a/codecs/dcraw.h 2020-09-10 08:42:19.905105346 +0200
+++ b/codecs/dcraw.h 2020-09-10 08:47:50.826316874 +0200
@@ -96,6 +96,14 @@
#define ushort unsigned short
#endif
+#undef SEEK_SET
+#undef SEEK_CUR
+#undef SEEK_END
+
+#define SEEK_SET std::ios::beg
+#define SEEK_CUR std::ios::cur
+#define SEEK_END std::ios::end
+
namespace dcraw {
/*
@@ -9964,7 +9956,7 @@
strncpy (th->desc, desc, 512);
strncpy (th->make, make, 64);
strncpy (th->model, model, 64);
- strcpy (th->soft, "dcraw v"DCRAW_VERSION);
+ strcpy (th->soft, "dcraw v" DCRAW_VERSION);
t = localtime (&timestamp);
sprintf (th->date, "%04d:%02d:%02d %02d:%02d:%02d",
t->tm_year+1900,t->tm_mon+1,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);

View File

@@ -1,64 +0,0 @@
Bug: https://bugs.gentoo.org/600380
--- a/bardecode/code25i.hh
+++ b/bardecode/code25i.hh
@@ -21,6 +21,12 @@
#include "scanner_utils.hh"
+#if __cplusplus >= 201103L
+#define STATIC_CONST_DOUBLE static constexpr double
+#else
+#define STATIC_CONST_DOUBLE static const double
+#endif
+
namespace BarDecode
{
struct code25i_t
@@ -31,11 +37,11 @@
static const int END_SEQUENCE = 0xD;
static const char no_entry = 0;
- static const double n_lq = 15;
- static const double n_hq = 5.3;
- static const double w_lq = 5.2;
- static const double w_hq = 1.5;
- static const double tol = 0.2;
+ STATIC_CONST_DOUBLE n_lq = 15;
+ STATIC_CONST_DOUBLE n_hq = 5.3;
+ STATIC_CONST_DOUBLE w_lq = 5.2;
+ STATIC_CONST_DOUBLE w_hq = 1.5;
+ STATIC_CONST_DOUBLE tol = 0.2;
static const usize_t min_quiet_usize = 5;
//static const usize_t min_quiet_usize = 10;
--- a/codecs/dcraw.h
+++ b/codecs/dcraw.h
@@ -3958,22 +3958,22 @@
-2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,
-2,+1,-1,+0,0,0x04, -2,+1,+0,-1,1,0x04, -2,+1,+0,+0,0,0x06,
-2,+1,+0,+1,0,0x02, -2,+2,+0,+0,1,0x04, -2,+2,+0,+1,0,0x04,
- -1,-2,-1,+0,0,0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
- -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,0x88, -1,-1,+1,-2,0,0x40,
+ -1,-2,-1,+0,0,(signed char) 0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
+ -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,(signed char) 0x88, -1,-1,+1,-2,0,0x40,
-1,-1,+1,-1,0,0x22, -1,-1,+1,+0,0,0x33, -1,-1,+1,+1,1,0x11,
-1,+0,-1,+2,0,0x08, -1,+0,+0,-1,0,0x44, -1,+0,+0,+1,0,0x11,
-1,+0,+1,-2,1,0x40, -1,+0,+1,-1,0,0x66, -1,+0,+1,+0,1,0x22,
-1,+0,+1,+1,0,0x33, -1,+0,+1,+2,1,0x10, -1,+1,+1,-1,1,0x44,
-1,+1,+1,+0,0,0x66, -1,+1,+1,+1,0,0x22, -1,+1,+1,+2,0,0x10,
-1,+2,+0,+1,0,0x04, -1,+2,+1,+0,1,0x04, -1,+2,+1,+1,0,0x04,
- +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
+ +0,-2,+0,+0,1,(signed char) 0x80, +0,-1,+0,+1,1,(signed char) 0x88, +0,-1,+1,-2,0,0x40,
+0,-1,+1,+0,0,0x11, +0,-1,+2,-2,0,0x40, +0,-1,+2,-1,0,0x20,
+0,-1,+2,+0,0,0x30, +0,-1,+2,+1,1,0x10, +0,+0,+0,+2,1,0x08,
+0,+0,+2,-2,1,0x40, +0,+0,+2,-1,0,0x60, +0,+0,+2,+0,1,0x20,
+0,+0,+2,+1,0,0x30, +0,+0,+2,+2,1,0x10, +0,+1,+1,+0,0,0x44,
+0,+1,+1,+2,0,0x10, +0,+1,+2,-1,1,0x40, +0,+1,+2,+0,0,0x60,
- +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80,
- +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
+ +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,(signed char) 0x80,
+ +1,-1,+1,+1,0,(signed char) 0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
+1,+0,+2,+1,0,0x10
}, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
ushort (*brow[5])[4], *pix;