micro-reader-codecs 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- micro_reader_codecs-0.0.1/.cargo/config.toml +15 -0
- micro_reader_codecs-0.0.1/Cargo.lock +716 -0
- micro_reader_codecs-0.0.1/Cargo.toml +41 -0
- micro_reader_codecs-0.0.1/LICENSE +21 -0
- micro_reader_codecs-0.0.1/PKG-INFO +104 -0
- micro_reader_codecs-0.0.1/README.md +83 -0
- micro_reader_codecs-0.0.1/THIRD_PARTY_LICENSES.txt +2933 -0
- micro_reader_codecs-0.0.1/pyproject.toml +33 -0
- micro_reader_codecs-0.0.1/rust-toolchain.toml +5 -0
- micro_reader_codecs-0.0.1/scripts/third_party_licenses.py +112 -0
- micro_reader_codecs-0.0.1/src/lib.rs +522 -0
- micro_reader_codecs-0.0.1/src/stream.rs +512 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# C code built by the cc crate (OpenJPEG, libzstd, libdeflate).
|
|
2
|
+
#
|
|
3
|
+
# MSVC never defines __SSE__ / __SSE2__, which OpenJPEG uses to select its
|
|
4
|
+
# SIMD wavelet and colour-transform code (GCC and Clang define them on every
|
|
5
|
+
# x86-64 target). Defining them gives Windows the same code paths as the
|
|
6
|
+
# Linux / macOS wheels, so lossy (floating-point) JPEG 2000 decodes the same
|
|
7
|
+
# way on every x86-64 platform. SSE2 is part of the x86-64 baseline, so the
|
|
8
|
+
# wheels stay portable. AVX2 is not baseline and stays off: it would need
|
|
9
|
+
# runtime dispatch.
|
|
10
|
+
#
|
|
11
|
+
# Measured 2026-10-01: no speed change on our files, with or without these
|
|
12
|
+
# defines. /Ob3 and /arch:AVX2 gave none either, and /GL breaks the Rust
|
|
13
|
+
# link. See micro-reader PLAN.md, codec audit follow-up.
|
|
14
|
+
[env]
|
|
15
|
+
CFLAGS_x86_64_pc_windows_msvc = "/D__SSE__ /D__SSE2__"
|