Skip to content

Commit 50f7f86

Browse files
committed
Fix hwy, HWY only static
1 parent a0d8d05 commit 50f7f86

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

avif-coder/src/main/cpp/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ if (ANDROID_ABI STREQUAL arm64-v8a)
5252
add_definitions("-DHAVE_NEON=1")
5353
endif ()
5454

55-
#add_definitions(-DHWY_COMPILE_ONLY_STATIC)
56-
57-
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
58-
add_definitions(-DHWY_COMPILE_ONLY_STATIC)
59-
endif ()
55+
add_definitions(-DHWY_COMPILE_ONLY_STATIC)
6056

6157
set(CMAKE_CXX_STANDARD 20)
6258
set(CMAKE_CXX_STANDARD_REQUIRED ON)

avif-coder/src/main/cpp/colorspace/HDRTransferAdapter.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -867,16 +867,16 @@ namespace coder::HWY_NAMESPACE {
867867

868868
if (halfFloats) {
869869
auto ptr16 = reinterpret_cast<uint16_t *>(data + y * stride);
870-
HWY_DYNAMIC_DISPATCH(ProcessF16Row)(reinterpret_cast<uint16_t *>(ptr16), width,
871-
gammaCorrection, function, curveToneMapper,
872-
conversion, gamma, useChromaticAdaptation);
870+
ProcessF16Row(reinterpret_cast<uint16_t *>(ptr16), width,
871+
gammaCorrection, function, curveToneMapper,
872+
conversion, gamma, useChromaticAdaptation);
873873
} else {
874874
auto ptr16 = reinterpret_cast<uint8_t *>(data + y * stride);
875-
HWY_DYNAMIC_DISPATCH(ProcessUSRow)(reinterpret_cast<uint8_t *>(ptr16),
876-
width,
877-
(float) maxColors, gammaCorrection, function,
878-
curveToneMapper, conversion, gamma,
879-
useChromaticAdaptation);
875+
ProcessUSRow(reinterpret_cast<uint8_t *>(ptr16),
876+
width,
877+
(float) maxColors, gammaCorrection, function,
878+
curveToneMapper, conversion, gamma,
879+
useChromaticAdaptation);
880880
}
881881
}
882882

0 commit comments

Comments
 (0)