menu "Multimedia"
source "package/bitstream/Config.in"
+ source "package/dav1d/Config.in"
source "package/kvazaar/Config.in"
source "package/libaacs/Config.in"
source "package/libamcodec/Config.in"
--- /dev/null
+config BR2_PACKAGE_DAV1D
+ bool "dav1d"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # pthread
+ help
+ dav1d is a new AV1 cross-platform decoder, open-source, and
+ focused on speed and correctness.
+
+ https://code.videolan.org/videolan/dav1d
+
+comment "dav1d needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
--- /dev/null
+################################################################################
+#
+# dav1d
+#
+################################################################################
+
+DAV1D_VERSION = 0.4.0
+DAV1D_SOURCE = dav1d-$(DAV1D_VERSION).tar.bz2
+DAV1D_SITE = https://code.videolan.org/videolan/dav1d/-/archive/$(DAV1D_VERSION)
+DAV1D_LICENSE = BSD-2-Clause
+DAV1D_LICENSE_FILES = COPYING
+DAV1D_INSTALL_STAGING = YES
+
+ifeq ($(BR2_i386)$(BR2_x86_64),y)
+DAV1D_DEPENDENCIES += host-nasm
+endif
+
+# ARM assembly requires v6+ ISA
+ifeq ($(BR2_ARM_CPU_ARMV4)$(BR2_ARM_CPU_ARMV5)$(BR2_ARM_CPU_ARMV7M),y)
+DAV1D_CONF_OPTS = -Denable_asm=false
+endif
+
+# Uses __atomic_fetch_add_4
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+DAV1D_LDFLAGS += -latomic
+endif
+
+$(eval $(meson-package))