A wrapper for libavif + Xcode project. This enables Carthage && SwiftPM support.
This repo also including the CocoaPods's spec file to use libavif.
- iOS 8
- macOS 10.10
- tvOS 9.0 (rav1e unavailable)
- watchOS 2.0 (rav1e unavailable)
By default, libavif is built with aom codec support. aom is the first AV1 codec during the standard draft implementation. However, there are also other AV1 codec implementation available. libavif supports most of them. You can choose to integarte the one you'd like. By default we use aom for both decoding and encoding.
dav1d is the new and next generation AV1 codec, focused on speed and correctness.
See more about explanation for why starting a new project but not improving aom
From v0.3.0, libavif can built with dav1d. For CocoaPods user, you can simply use the subspec for this. Carthage for optional dav1d codec is not supported currently.
libgav1 libgav1 is a Main profile (0) & High profile (1) compliant AV1 decoder. More information on the AV1 video format can be found at aomedia.org.
From v0.8.3, libavif can built with libgav1. For For CocoaPods user, you can simply use the subspec for this.
rav1e is the fastest and safest AV1 encoder. Which use Rust programming to provide fast and safe codec compared to aom. Its current form it is most suitable for cases where libaom (the reference encoder) is too slow.
See more about performance
From v0.4.3, libavif can built with rav1e. For CocoaPods user, you can simply use the subspec for this. Carthage for optional rav1c codec is not supported currently.
Note rav1e currently only support iOS && macOS. watchOS and tvOS supports need Rust community upstream support.
SVT-AV1 is the Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) is an AV1-compliant encoder/decoder library core.
From v0.8.3, libavif can built with STV-AV1. For For CocoaPods user, you can simply use the subspec for this.
libavif is (via this repo) available through Carthage.
github "SDWebImage/libavif-Xcode"
Note Carthage does not support dav1d/rav1e/SVT-AV1 optional codec, use only aom.
libavif is available through CocoaPods.
By default, libavif is built with aom decoding/encoding codec, which is stable, but slow.
pod 'libavif'
If you need the dav1d decoding codec, use the subspec:
pod 'libavif/libdav1d'
If you need the libgav1 decoding codec, use the subspec:
pod 'libavif/libgav1'
If you need the rav1e encoding codec, use the subspec:
pod 'libavif/librav1e'
If you need the SVT-AV1 encoding codec, use the subspec:
pod 'libavif/SVT-AV1'
libavif is available through Swift Package Manager.
let package = Package(
dependencies: [
.package(url: "https://github.com/delneg/libavif-XCode", from: "0.9.3")
],
// ...
)
Note SwiftPM does not support dav1d/rav1e/SVT-AV1 optional codec, use only aom.
Use libavif as you would normally, this is just a repo that adds an Xcode proj.
For Swift Package Manager user, it's recommended to use the modular import instead of C headers.
- Objective-C
@import libavif;
// or if you don't use module
#import <avif/avif.h>
- Swift
import libavif
libavif is available under the BSD License.