-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* AVIF added to generics - Avif from Image package added to generics - Some tests added to image/generic.rs (however they are all failing) - Docker image works fine, and AVIF files are encoded properly (despite test failures) * AVIF tests passing - Added avif-native feature to image in cargo.toml - Added tests to all generic formats - Had to strip alpha information from JPEG - Added tests to webp from avif * dav1d added to dockerfile * Dav1d CI edits * Added Luma8 Support for Jpeg * CI composite action for dav1d setup * Change dav1d repo * Setup-dav1d fixes - Added shell to setup-dav1d/action - Added checks for dav1d for setup-script and installation for some distros - Added system-deps to build dependencies * Add Dav1d req to contrib docs
- Loading branch information
Showing
12 changed files
with
606 additions
and
56 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Dav1d | ||
description: Compile and install dav1d | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# Linux Section | ||
- name: Install nasm | ||
if: runner.os == 'Linux' | ||
uses: ilammy/setup-nasm@v1 | ||
|
||
- name: Install Python 3.9 | ||
if: runner.os == 'Linux' | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install pip packages | ||
if: runner.os == 'Linux' | ||
shell: bash | ||
run: | | ||
pip install -U pip | ||
pip install -U wheel setuptools | ||
pip install -U meson ninja | ||
- name: Build dav1d | ||
if: runner.os == 'Linux' | ||
env: | ||
DAV1D_DIR: dav1d_dir | ||
LIB_PATH: lib/x86_64-linux-gnu | ||
shell: bash | ||
run: | | ||
git clone --branch 1.3.0 --depth 1 https://code.videolan.org/videolan/dav1d.git | ||
cd dav1d | ||
meson build -Dprefix=$HOME/$DAV1D_DIR -Denable_tools=false -Denable_examples=false --buildtype release | ||
ninja -C build | ||
ninja -C build install | ||
echo "PKG_CONFIG_PATH=$HOME/$DAV1D_DIR/$LIB_PATH/pkgconfig" >> $GITHUB_ENV | ||
echo "LD_LIBRARY_PATH=$HOME/$DAV1D_DIR/$LIB_PATH" >> $GITHUB_ENV | ||
# Windows setup | ||
- name: Install nasm | ||
if: runner.os == 'Windows' | ||
uses: ilammy/setup-nasm@v1 | ||
|
||
- name: Install Python 3.9 | ||
if: runner.os == 'Windows' | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install pip packages | ||
if: runner.os == 'Windows' | ||
shell: powershell | ||
run: | | ||
pip install -U pip | ||
pip install -U wheel setuptools | ||
pip install -U meson ninja | ||
- name: Setting up environment | ||
if: runner.os == 'Windows' | ||
shell: bash | ||
run: | | ||
echo "PKG_CONFIG=c:\build\bin\pkg-config.exe" >> $GITHUB_ENV | ||
echo "PKG_CONFIG_PATH=C:\build\lib\pkgconfig" >> $GITHUB_ENV | ||
echo "C:\build\bin" >> $GITHUB_PATH | ||
- name: Build pkg-config | ||
if: runner.os == 'Windows' | ||
shell: powershell | ||
run: | | ||
git clone --branch meson-glib-subproject --depth 1 https://gitlab.freedesktop.org/tpm/pkg-config.git | ||
cd pkg-config | ||
meson build -Dprefix=C:\build --buildtype release | ||
ninja -C build | ||
ninja -C build install | ||
- name: Build dav1d | ||
if: runner.os == 'Windows' | ||
shell: powershell | ||
run: | | ||
git clone --branch 1.3.0 --depth 1 https://code.videolan.org/videolan/dav1d.git | ||
cd dav1d | ||
meson build -Dprefix=C:\build -Denable_tools=false -Denable_examples=false --buildtype release | ||
ninja -C build | ||
ninja -C build install | ||
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
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
Oops, something went wrong.