You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-1
Original file line number
Diff line number
Diff line change
@@ -53,13 +53,40 @@ let package = Package(
53
53
54
54
libheif itself is not a full function decoder but an abstract layer. It needs [libde265](http://www.libde265.org/) for HEIF decoder support, and [x265](http://x265.org/) for HEIF encoder support.
55
55
56
+
Note: Since most of people's usage of this library is for HEIF decoding, and `x265` is under GPLv2 license, we only integrate libheif with [libde265-Xcode](https://github.com/SDWebImage/libde265-Xcode) on Carthage/SwiftPM package manager. If you want x265 with HEIF encoding support, read below carefully.
57
+
58
+
### x265 on CocoaPods
59
+
56
60
For CocoaPods user, you can use `libx265` subspec to integrate the x265 codec supports for HEIF encoding.
57
61
58
62
```ruby
59
63
pod 'libheif', :subspecs => ['libde265', 'libx265']
60
64
```
61
65
62
-
Since most of people's usage of this library is for HEIF decoding, and `x265` is under GPLv2 license, we only integrate libheif with the Carthage dependency [libde265-Xcode](https://github.com/SDWebImage/libde265-Xcode). To use x265 for HEIF encoding, try to build it by your own.
66
+
### x265 on Carthage
67
+
68
+
For Carthage user, export the environment (using bash profile or xcconfig if you want) `HAVE_X265=1`, and modify carthage's xcconfig about `GCC_PREPROCESSOR_DEFINITIONS` to build.
69
+
70
+
You can use the shell script to spawn carthage, like run via `carthage_build_with_x265.sh build`
0 commit comments