Skip to content

Commit 792d414

Browse files
committed
fixed scaling
1 parent 1c7d1bc commit 792d414

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.swiftpm/xcode/xcuserdata/radzivonbartoshyk.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>JxlCoder.xcscheme_^#shared#^_</key>
1818
<dict>
1919
<key>orderHint</key>
20-
<integer>1</integer>
20+
<integer>2</integer>
2121
</dict>
2222
<key>jxlcoder.xcscheme_^#shared#^_</key>
2323
<dict>

JxlCoder.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ Pod::Spec.new do |s|
99
s.source = { :git => 'https://github.com/awxkee/jxl-coder-swift.git', :tag => "#{s.version}" }
1010
s.ios.deployment_target = '13.0'
1111
s.osx.deployment_target = '12.0'
12-
s.source_files = 'Sources/jxlc/*.{swift,h,m,cpp,mm,hpp}', "Sources/JxlCoder/*.swift", 'Sources/Module/JxlCoder.h', 'Sources/Frameworks/libjxl.xcframework/ios-arm64/Headers/**/*.h'
12+
s.source_files = 'Sources/jxlc/**/*.{swift,h,m,cpp,mm,hpp}', "Sources/JxlCoder/*.swift", 'Sources/Module/JxlCoder.h', 'Sources/Frameworks/libjxl.xcframework/ios-arm64/Headers/**/*.h'
1313
s.swift_version = ["5.3", "5.4", "5.5"]
1414
s.frameworks = "Foundation", "CoreGraphics", "Accelerate"
1515
s.ios.vendored_frameworks = 'Sources/Frameworks/libbrotlicommon.xcframework', 'Sources/Frameworks/libbrotlidec.xcframework', 'Sources/Frameworks/libbrotlienc.xcframework', 'Sources/Frameworks/libhwy.xcframework', 'Sources/Frameworks/libjxl.xcframework', 'Sources/Frameworks/libjxl_threads.xcframework', 'Sources/Frameworks/libjxl_cms.xcframework', 'Sources/Frameworks/libskcms.xcframework'
1616
s.osx.vendored_frameworks = 'Sources/Frameworks/libbrotlicommon.xcframework', 'Sources/Frameworks/libbrotlidec.xcframework', 'Sources/Frameworks/libbrotlienc.xcframework', 'Sources/Frameworks/libhwy.xcframework', 'Sources/Frameworks/libjxl.xcframework', 'Sources/Frameworks/libjxl_threads.xcframework', 'Sources/Frameworks/libjxl_cms.xcframework', 'Sources/Frameworks/libskcms.xcframework'
17-
s.public_header_files = 'Sources/jxlc/**.h', 'Sources/jxlc/**.hpp', 'Headers/**/*.h', 'Sources/jxlc/algo/**.h'
17+
s.public_header_files = 'Sources/jxlc/**.h', 'Sources/jxlc/**.hpp', 'Headers/**/*.h'
1818
s.project_header_files = 'Sources/jxlc/JxlWorker.hpp'
1919
s.pod_target_xcconfig = {
2020
'OTHER_CXXFLAGS' => '$(inherited) -std=c++20 -ffast-math',
21-
'HEADER_SEARCH_PATHS' => '$(inherited) "$(PODS_TARGET_SRCROOT)/Sources/Frameworks/libjxl.xcframework/ios-arm64/Headers" "$(PODS_TARGET_SRCROOT)/Sources/Frameworks/libhwy.xcframework/ios-arm64/Headers" "$(PODS_TARGET_SRCROOT)/Sources/jxlc"',
21+
'HEADER_SEARCH_PATHS' => '$(inherited) "$(PODS_TARGET_SRCROOT)/Sources/Frameworks/libjxl.xcframework/ios-arm64/Headers" "$(PODS_TARGET_SRCROOT)/Sources/Frameworks/libhwy.xcframework/ios-arm64/Headers"',
2222
'OTHER_CPLUSPLUSFLAGS' => '$(inherited) -fmodules -fcxx-modules -std=c++20 -ffast-math'
2323
}
2424
s.preserve_paths = "Sources/Frameworks/*.xcframework", "Sources/Frameworks/*.xcframework/**/Headers", "Sources/Frameworks/libjxl.xcframework/ios-arm64/Headers/jxl", "Sources/Frameworks/libjxl.xcframework/ios-arm64/Headers/jpegli",
25-
"Sources/Frameworks/libjxl.xcframework/ios-arm64/Headers/libhwy", "Sources/jxlc/algo"
25+
"Sources/Frameworks/libjxl.xcframework/ios-arm64/Headers/libhwy"
2626
s.libraries = 'c++'
2727
s.requires_arc = true
2828
end

Package.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ let package = Package(
2020
dependencies: ["libbrotlicommon", "libbrotlidec", "libbrotlienc", "libhwy",
2121
"libjxl_threads", "libjxl", "libjxl_cms", "libskcms"],
2222
publicHeadersPath: "include",
23+
cSettings: [.headerSearchPath("./algo")],
24+
cxxSettings: [.headerSearchPath("./algo")],
2325
linkerSettings: [
2426
.linkedFramework("Accelerate")
2527
]),

Sources/jxlc/XScaler.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "half.hpp"
99
#include <thread>
1010
#include <vector>
11-
#include "algo/sampler.h"
11+
#include "sampler.h"
1212

1313
#define HWY_COMPILE_ONLY_STATIC
1414

@@ -21,8 +21,8 @@
2121

2222
#include "hwy/foreach_target.h"
2323
#include "hwy/highway.h"
24-
#include "algo/sampler-inl.h"
25-
#include "algo/math-inl.h"
24+
#include "sampler-inl.h"
25+
#include "math-inl.h"
2626

2727
using namespace half_float;
2828
using namespace std;

0 commit comments

Comments
 (0)