Skip to content

Commit d85f36e

Browse files
committed
fixes bugs
1 parent 5e694b0 commit d85f36e

File tree

8 files changed

+21
-84
lines changed

8 files changed

+21
-84
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>2</integer>
20+
<integer>0</integer>
2121
</dict>
2222
<key>jxlcoder.xcscheme_^#shared#^_</key>
2323
<dict>

Gemfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GEM
33
specs:
44
CFPropertyList (3.0.6)
55
rexml
6-
activesupport (7.0.7.2)
6+
activesupport (7.0.8)
77
concurrent-ruby (~> 1.0, >= 1.0.2)
88
i18n (>= 1.6, < 2)
99
minitest (>= 5.1)
@@ -15,10 +15,10 @@ GEM
1515
json (>= 1.5.1)
1616
atomos (0.1.3)
1717
claide (1.1.0)
18-
cocoapods (1.12.1)
18+
cocoapods (1.13.0)
1919
addressable (~> 2.8)
2020
claide (>= 1.0.2, < 2.0)
21-
cocoapods-core (= 1.12.1)
21+
cocoapods-core (= 1.13.0)
2222
cocoapods-deintegrate (>= 1.0.3, < 2.0)
2323
cocoapods-downloader (>= 1.6.0, < 2.0)
2424
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -32,11 +32,11 @@ GEM
3232
molinillo (~> 0.8.0)
3333
nap (~> 1.0)
3434
ruby-macho (>= 2.3.0, < 3.0)
35-
xcodeproj (>= 1.21.0, < 2.0)
35+
xcodeproj (>= 1.23.0, < 2.0)
3636
cocoapods-catalyst-support (0.2.1)
3737
cocoapods (~> 1.9)
3838
colored2 (~> 3.1)
39-
cocoapods-core (1.12.1)
39+
cocoapods-core (1.13.0)
4040
activesupport (>= 5.0, < 8)
4141
addressable (~> 2.8)
4242
algoliasearch (~> 1.0)
@@ -64,15 +64,15 @@ GEM
6464
escape (0.0.4)
6565
ethon (0.16.0)
6666
ffi (>= 1.15.0)
67-
ffi (1.15.5)
67+
ffi (1.16.2)
6868
fourflusher (2.3.1)
6969
fuzzy_match (2.0.4)
7070
gh_inspector (1.1.3)
7171
httpclient (2.8.3)
7272
i18n (1.14.1)
7373
concurrent-ruby (~> 1.0)
7474
json (2.6.3)
75-
minitest (5.19.0)
75+
minitest (5.20.0)
7676
molinillo (0.8.0)
7777
nanaimo (0.3.0)
7878
nap (1.1.0)
@@ -89,7 +89,7 @@ GEM
8989
ethon (>= 0.9.0)
9090
tzinfo (2.0.6)
9191
concurrent-ruby (~> 1.0)
92-
xcodeproj (1.22.0)
92+
xcodeproj (1.23.0)
9393
CFPropertyList (>= 2.3.3, < 4.0)
9494
atomos (~> 0.1.3)
9595
claide (>= 1.0.2, < 2.0)

JxlCoder.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ 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 = '11.0'
1111
s.osx.deployment_target = '11.0'
12+
s.platform = :ios, '11.0'
13+
s.platform = :macos, '11.0'
1214
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'
1315
s.swift_version = ["5.3", "5.4", "5.5"]
1416
s.frameworks = "Foundation", "CoreGraphics", "Accelerate"
1517
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'
1618
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'
1719
s.public_header_files = 'Sources/jxlc/**.h', 'Sources/jxlc/**.hpp', 'Headers/**/*.h'
18-
s.project_header_files = 'Sources/jxlc/jxl_worker.hpp'
20+
s.project_header_files = 'Sources/jxlc/JxlWorker.hpp'
1921
s.pod_target_xcconfig = {
2022
'OTHER_CXXFLAGS' => '$(inherited) -std=c++20',
2123
'HEADER_SEARCH_PATHS' => '$(inherited) "$(PODS_TARGET_SRCROOT)/Sources/Frameworks/libjxl.xcframework/ios-arm64/Headers"',

Sources/jxlc/JxlInternalCoder.mm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
#import <vector>
2929
#import "JxlWorker.hpp"
3030
#import <Accelerate/Accelerate.h>
31-
#import "RgbRgbaConverter.h"
32-
#import "RgbScaler.h"
31+
#import "RgbRgbaConverter.hpp"
3332

3433
static void JXLCGData16ProviderReleaseDataCallback(void *info, const void *data, size_t size) {
3534
auto dataWrapper = static_cast<JXLDataWrapper<uint16_t>*>(info);
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#ifndef RgbRgbaConverter_h
2727
#define RgbRgbaConverter_h
2828

29+
#ifdef __cplusplus
30+
2931
#import <vector>
3032

3133
@interface RgbRgbaConverter : NSObject
@@ -88,5 +90,7 @@
8890
+(bool)convertRGBAU8ToRGBU8:(uint8_t*)src dst:(uint8_t*)dst width:(int)width height:(int)height;
8991
@end
9092

93+
#endif
94+
9195
#endif /* RgbRgbaConverter_h */
9296

Sources/jxlc/RgbRgbaConverter.mm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525

2626
#import <Foundation/Foundation.h>
2727
#import "Accelerate/Accelerate.h"
28-
#import "RgbRgbaConverter.h"
28+
#import "RgbRgbaConverter.hpp"
29+
30+
#ifdef __cplusplus
2931

3032
@implementation RgbRgbaConverter: NSObject
3133

@@ -143,3 +145,4 @@ +(bool)convertRGBAU16ToRGBU16:(uint16_t*)src dst:(uint16_t*)dst width:(int)width
143145

144146
@end
145147

148+
#endif

Sources/jxlc/RgbScaler.h

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

Sources/jxlc/RgbScaler.mm

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

0 commit comments

Comments
 (0)