Skip to content

Comments

Avif and default tests#1421

Merged
197g merged 2 commits intoimage-rs:masterfrom
197g:avif-and-default-tests
Feb 3, 2021
Merged

Avif and default tests#1421
197g merged 2 commits intoimage-rs:masterfrom
197g:avif-and-default-tests

Conversation

@197g
Copy link
Member

@197g 197g commented Feb 2, 2021

Note that this splits avif-feature into encoder and decoder.

They require different native dependencies in their build systems, one
of the available on Ubuntu-20.04 (the latest Github build environment)
while the other one is not.

Unblocks: #1418

197g added 2 commits February 2, 2021 22:00
This includes rendering the reference files, a task that usually
requires both the dedicate feature of the format as well as the `png`
feature for the reference images.
They require different native dependencies in their build systems, one
of the available on Ubuntu-20.04 (the latest Github build environment)
while the other one is not.
Copy link
Contributor

@paolobarbolini paolobarbolini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

- name: build
run: cargo build -v --no-default-features --features="avif"
# We don't test this yet, as it requires libdav1d which isn't in ubuntu 20.04
# run: cargo build -v --no-default-features --features="avif-decoding"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As described in the readme for dav1d-rs (https://github.com/rust-av/dav1d-rs#building) you may be able to work around this issue by setting the SYSTEM_DEPS_DAV1D_BUILD_INTERNAL=always environment variable to make it git clone dav1d from source, compile it and link it statically.

ninja and meson will have to be installed for this to work.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, seems interesting. I'll try after the release.

@197g 197g merged commit 13698c9 into image-rs:master Feb 3, 2021
@197g 197g deleted the avif-and-default-tests branch February 3, 2021 18:40
@197g 197g mentioned this pull request Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants