2020-09-06 18:17:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-12 15:54:12 +00:00
|
|
|
SCRIPT_REPO="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
|
2023-05-29 12:10:36 +00:00
|
|
|
SCRIPT_COMMIT="0f8b3a81363b7148f90a07f026f69c97d11e0363"
|
2020-09-06 18:17:54 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
2020-09-27 20:10:05 +00:00
|
|
|
[[ $TARGET == win32 ]] && return -1
|
2020-09-06 18:17:54 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerdl() {
|
2022-07-12 15:54:12 +00:00
|
|
|
git clone "$SCRIPT_REPO" svtav1
|
2020-09-06 18:17:54 +00:00
|
|
|
cd svtav1
|
2022-07-12 15:54:12 +00:00
|
|
|
git checkout "$SCRIPT_COMMIT"
|
2023-06-18 14:44:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
cd "$FFBUILD_DLDIR"/svtav1
|
2020-09-06 18:17:54 +00:00
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
2022-10-22 13:51:56 +00:00
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DBUILD_APPS=OFF -DENABLE_AVX512=ON ..
|
2020-09-06 18:17:54 +00:00
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libsvtav1
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libsvtav1
|
|
|
|
}
|