https://github.com/sdwebimage/librav1e-xcode
A wrapper for rav1e (Fast AV1 Encoder) + Xcode project. Using pre-built binary to support CocoaPods.
https://github.com/sdwebimage/librav1e-xcode
av1 av1-codec avif cocoapods ios macosx rust
Last synced: 18 days ago
JSON representation
A wrapper for rav1e (Fast AV1 Encoder) + Xcode project. Using pre-built binary to support CocoaPods.
- Host: GitHub
- URL: https://github.com/sdwebimage/librav1e-xcode
- Owner: SDWebImage
- Created: 2019-10-31T14:17:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-13T07:44:49.000Z (over 1 year ago)
- Last Synced: 2025-06-04T02:42:55.838Z (25 days ago)
- Topics: av1, av1-codec, avif, cocoapods, ios, macosx, rust
- Language: Ruby
- Size: 28.3 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# librav1e + Xcode
[](http://cocoapods.org/pods/librav1e)
[](http://cocoapods.org/pods/librav1e)
[](http://cocoapods.org/pods/librav1e)A wrapper for [rav1e](https://github.com/xiph/rav1e).
rav1e is the fast Rust library of AV1 image encoding.
Since Xcode does not support Rust, we provide a pre-built binary on target platforms and CocoaPods spec.
## Requirements
+ iOS 9
+ macOS 10.11 (64-bit only)tvOS and watchOS is not supported currently because of Rust language itself, see: [rust-lang/rust#48862](https://github.com/rust-lang/rust/issues/48862)
## Installation
### CocoaPods
librav1e is available through [CocoaPods](https://github.com/CocoaPods/CocoaPods).
```
pod 'librav1e', '~> 0.3.0'
```#### Carthage
librav1e is available through [Carthage](https://github.com/Carthage/Carthage).
Carthage dependency is Binary only frameworks, see: [Cartfile Syntax](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md).
You should use the following Cartfile syntax to include the dependency:
```
binary "https://raw.githubusercontent.com/SDWebImage/librav1e-Xcode/master/librav1e.json" ~> 0.3.0
```### Manual
librav1e repo contains the pre-built framework in [Release Page](https://github.com/SDWebImage/librav1e-Xcode/releases). You can just download the zip and add framework to your Xcode project and use.
## Usage
You can use rav1e this Rust library by using the generated C API with [cargo-c](https://crates.io/crates/cargo-c).
## License
librav1e is available under the [BSD 2-Clause License](https://github.com/xiph/rav1e/blob/master/LICENSE).