2021-09-27 v1.11.0 "Smew Duck" This maintenance release adds support for VBR mode in VP9 rate control interface, new codec controls to get quantization parameters and loop filter levels, and includes several improvements to NEON and numerous bug fixes. - Upgrading: New codec control is added to get quantization parameters and loop filter levels. VBR mode is supported in VP9 rate control library. - Enhancement: Numerous improvements for Neon optimizations. Code clean-up and refactoring. Calculation of rd multiplier is changed with BDRATE gains. - Bug fixes: Fix to overflow on duration. Fix to several instances of -Wunused-but-set-variable. Fix to avoid chroma resampling for 420mpeg2 input. Fix to overflow in calc_iframe_target_size. Fix to disallow skipping transform and quantization. Fix some -Wsign-compare warnings in simple_encode. Fix input file path in simple_encode_test. Fix valid range for under/over_shoot pct. Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
80 lines
2.2 KiB
Makefile
80 lines
2.2 KiB
Makefile
#
|
|
# Copyright (C) 2008-2015 OpenWrt.org
|
|
# Copyright (C) 2016 Luiz Angelo Daros de Luca
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libvpx
|
|
PKG_VERSION:=1.11.0
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://chromium.googlesource.com/webm/libvpx
|
|
PKG_MIRROR_HASH:=495e1f6d389d1c3b613a97927df7750aa499c649fd11eec6e1c9dcf5f403f134
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_CPE_ID:=cpe:/a:john_koleszar:libvpx
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_ABI_VERSION:=$(subst $(space),.,$(wordlist 1, 2, $(subst .,$(space),$(PKG_VERSION))))
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libvpx
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=libvpx
|
|
URL:=https://www.webmproject.org/
|
|
DEPENDS:=+libpthread
|
|
ABI_VERSION:=$(PKG_ABI_VERSION)
|
|
endef
|
|
|
|
define Package/libvpx/description
|
|
libvpx is a VP8/VP9 Codec SDK.
|
|
endef
|
|
|
|
CONFIGURE_ARGS = \
|
|
--target=generic-gnu \
|
|
--prefix=$(CONFIGURE_PREFIX) \
|
|
--libdir=/usr/lib \
|
|
--enable-static \
|
|
--enable-shared \
|
|
--disable-examples \
|
|
--disable-docs \
|
|
--disable-unit-tests \
|
|
|
|
# Add --enable-small as openwrt gcc flags are overwritten
|
|
ifneq ($(findstring -Os,$(TARGET_CFLAGS)),)
|
|
CONFIGURE_ARGS += --enable-small
|
|
endif
|
|
|
|
# libvpx expects gcc as linker but uses $LD if provided
|
|
# However, OpenWRT defines LD as *-uclibc-ld and not *-gcc
|
|
CONFIGURE_VARS := $(filter-out LD=%,$(CONFIGURE_VARS)) LD="$(TARGET_CC)" \
|
|
CROSS=$(GNU_TARGET_NAME)
|
|
MAKE_FLAGS := $(filter-out LD=%,$(MAKE_FLAGS)) LD="$(TARGET_CC)"
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/vpx/
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/vpx/* $(1)/usr/include/vpx/
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libvpx/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libvpx))
|