-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
editLink: true | ||
--- | ||
|
||
# AVIF | ||
|
||
AVIF is a new image format based on AV1 video encoding. Compared with image formats such as JPEG and WEBP, it has a higher compression ratio and better picture details. And most importantly, it is free and open source, with no licensing fees. | ||
|
||
The rust community also provides the corresponding crate [libavif-sys](https://github.com/njaard/libavif-rs), implemented based on [libavif](https://github.com/AOMediaCodec/libavif). The relevant openharmony adaptation has been submitted, you can refer to this [PR](https://github.com/njaard/libavif-rs/pull/99). | ||
|
||
You can wait for the PR to merge or directly reference through git. | ||
|
||
## Example | ||
|
||
```toml | ||
[dependencies] | ||
libavif = { git = "https://github.com/southorange0929/libavif-rs.git", default-features = false, features = [ | ||
"codec-aom", | ||
] } | ||
``` | ||
|
||
## Tip | ||
|
||
For the `x86_64-unknown-linux-ohos` target, you need to install `yasm` or `nasm` to support assembly compilation. |