Skip to content

Commit c00e6c8

Browse files
committed
Merge pull request #105856 from akien-mga/basis_universal-rediff-patches
basis_universal: Rediff patches, remove Windows encoding fix
2 parents 32eafc1 + 151e2ec commit c00e6c8

File tree

6 files changed

+6
-20
lines changed

6 files changed

+6
-20
lines changed

thirdparty/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ Patches:
8989
- `0002-external-jpgd.patch` (GH-88508)
9090
- `0003-external-tinyexr.patch` (GH-97582)
9191
- `0004-remove-tinydds-qoi.patch` (GH-97582)
92-
- `0005-windows-illegal-character.patch` (GH-103968)
93-
- `0006-ambiguous-calls.patch` (GH-103968)
92+
- `0005-ambiguous-calls.patch` (GH-103968)
9493

9594

9695
## brotli

thirdparty/basis_universal/encoder/basisu_astc_hdr_6x6_enc.h

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace astc_6x6_hdr
1616
{
1717
// Important: The Delta ITP colorspace error metric we use internally makes several assumptions about the nature of the HDR RGB inputs supplied to the encoder.
1818
// This encoder computes colorspace error in the ICtCp (or more accurately the delta ITP, where CT is scaled by .5 vs. ICtCp to become T) colorspace, so getting this correct is important.
19-
// By default the encoder assumes the input is in absolute luminance (in nits or candela per square meter, cd/m^2), specified as positive-only linear light RGB, using the REC 709 colorspace gamut (but NOT the sRGB transfer function, i.e. linear light).
19+
// By default the encoder assumes the input is in absolute luminance (in nits or candela per square meter, cd/m²), specified as positive-only linear light RGB, using the REC 709 colorspace gamut (but NOT the sRGB transfer function, i.e. linear light).
2020
// If the m_rec2020_bt2100_color_gamut flag is true, the input colorspace is treated as REC 2020/BT.2100 (which is wider than 709).
2121
// For SDR/LDR->HDR upconversion, the REC 709 sRGB input should be converted to linear light (sRGB->linear) and the resulting normalized linear RGB values scaled by either 80 or 100 nits (the luminance of a typical SDR monitor).
2222
// SDR upconversion to normalized [0,1] (i.e. non-absolute) luminances may work but is not supported because ITP errors will not be predicted correctly.

thirdparty/basis_universal/patches/0002-external-jpgd.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/thirdparty/basis_universal/encoder/basisu_enc.cpp b/thirdparty/basis_universal/encoder/basisu_enc.cpp
2-
index b9804090b1..5987685ae7 100644
2+
index 1f870c5de4..1cc982b134 100644
33
--- a/thirdparty/basis_universal/encoder/basisu_enc.cpp
44
+++ b/thirdparty/basis_universal/encoder/basisu_enc.cpp
5-
@@ -492,7 +492,7 @@ namespace basisu
5+
@@ -504,7 +504,7 @@ namespace basisu
66
bool load_jpg(const char *pFilename, image& img)
77
{
88
int width = 0, height = 0, actual_comps = 0;
@@ -11,7 +11,7 @@ index b9804090b1..5987685ae7 100644
1111
if (!pImage_data)
1212
return false;
1313

14-
@@ -512,7 +512,7 @@ namespace basisu
14+
@@ -524,7 +524,7 @@ namespace basisu
1515
}
1616

1717
int width = 0, height = 0, actual_comps = 0;

thirdparty/basis_universal/patches/0003-external-tinyexr.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/thirdparty/basis_universal/encoder/basisu_enc.cpp b/thirdparty/basis_universal/encoder/basisu_enc.cpp
2-
index 7904aab91c..4d885cba16 100644
2+
index 1cc982b134..ab9a458744 100644
33
--- a/thirdparty/basis_universal/encoder/basisu_enc.cpp
44
+++ b/thirdparty/basis_universal/encoder/basisu_enc.cpp
55
@@ -29,7 +29,7 @@

thirdparty/basis_universal/patches/0005-windows-illegal-character.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)