1 From 1d031966e08aef92ef742ae3cf91e1addaf95a47 Mon Sep 17 00:00:00 2001
2 From: "Benjamin A. Beasley" <code@musicinmybrain.net>
3 Date: Wed, 8 Dec 2021 18:14:54 -0500
4 Subject: [PATCH 1/4] Use a patch file to document changes from upstream
8 thirdparty/stb/stb_image.patch | 15 +++++++++++++++
9 1 file changed, 15 insertions(+)
10 create mode 100644 thirdparty/stb/stb_image.patch
12 diff --git a/thirdparty/stb/stb_image.patch b/thirdparty/stb/stb_image.patch
14 index 0000000..5153728
16 +++ b/thirdparty/stb/stb_image.patch
18 +diff -Naur upstream/stb_image.h zxing/stb_image.h
19 +--- upstream/stb_image.h 2021-12-08 18:11:28.170529096 -0500
20 ++++ zxing/stb_image.h 2021-12-08 18:06:42.706717697 -0500
21 +@@ -1644,7 +1644,11 @@
23 + static stbi_uc stbi__compute_y(int r, int g, int b)
26 + return (stbi_uc) (((r*77) + (g*150) + (29*b)) >> 8);
27 ++#else // zxing (see ReadBarcode.cpp:RGBToGray)
28 ++ return (stbi_uc) ((306 * r + 601 * g + 117 * b + 0x200) >> 10);