Skip to content

Commit 423e5d6

Browse files
committed
Update the readme about aom and dav1d
1 parent 7fa46ad commit 423e5d6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ AVIF image spec is still in evolve. And the current upstream AVIF codec is a sim
2020

2121
Since we rely on the external codec libavif. We may periodically update the dependency and bump version. Make sure you're using the latest version as possible as you can :)
2222

23+
## aom && dav1d
24+
25+
libavif is a still image codec. But AVIF is based on the AV1 Video standard. So it need a AV1 codec for support. This relationship is just like HEIF(image) and HEVC(video) codec.
26+
27+
By default, libavif is built with [aom](https://aomedia.googlesource.com/aom/) codec support. aom is the first AV1 codec during the standard draft implementation.
28+
29+
[dav1d](https://github.com/videolan/dav1d) is the new and next generation AV1 codec, focused on speed and correctness.
30+
31+
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.
32+
2333
## Requirements
2434

2535
+ iOS 8
@@ -37,6 +47,13 @@ it, simply add the following line to your Podfile:
3747
pod 'SDWebImageAVIFCoder'
3848
```
3949

50+
Note: From version 0.4.0, if you want to use dav1d instead aom for libavif which we dependency on, control the subspec of libavif as well:
51+
52+
```ruby
53+
pod 'SDWebImageAVIFCoder'
54+
pod 'libavif/libdav1d'
55+
```
56+
4057
Note: From version 0.2.0, the dependency libavif and libaom use the portable C implementation to works on Apple platforms. If you need the pre-built library with SIMD/AVX and assembly optimization, try the 0.1.0 version.
4158

4259
#### Carthage

0 commit comments

Comments
 (0)