pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/multimedia/libvpx



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Mon Jan 22 13:09:26 UTC 2024

Modified Files:
        pkgsrc/multimedia/libvpx: Makefile PLIST buildlink3.mk distinfo
        pkgsrc/multimedia/libvpx/patches: patch-build_make_Makefile
            patch-build_make_configure.sh

Log Message:
libvpx: Update to 1.14.0

Changelog:
2024-01-02 v1.14.0 "Venetian Duck"
  This release drops support for old C compilers, such as Visual Studio 2012
  and older, that disallow mixing variable declarations and statements (a C99
  feature). It adds support for run-time CPU feature detection for Arm
  platforms, as well as support for darwin23 (macOS 14).

  - Upgrading:
    This release is ABI incompatible with the previous release.

    Various new features for rate control library for real-time: SVC parallel
    encoding, loopfilter level, support for frame dropping, and screen content.

    New callback function send_tpl_gop_stats for vp9 external rate control
    library, which can be used to transmit TPL stats for a group of pictures. A
    public header vpx_tpl.h is added for the definition of TPL stats used in
    this callback.

    libwebm is upgraded to libwebm-1.0.0.29-9-g1930e3c.

  - Enhancement:
    Improvements on Neon optimizations: VoD: 12-35% speed up for bitdepth 8,
    68%-151% speed up for high bitdepth.

    Improvements on AVX2 and SSE optimizations.
    Improvements on LSX optimizations for LoongArch.
    42-49% speedup on speed 0 VoD encoding.
    Android API level predicates.

  - Bug fixes:
    Fix to missing prototypes from the rtcd header.
    Fix to segfault when total size is enlarged but width is smaller.
    Fix to the build for arm64ec using MSVC.
    Fix to copy BLOCK_8X8's mi to PICK_MODE_CONTEXT::mic.
    Fix to -Wshadow warnings.
    Fix to heap overflow in vpx_get4x4sse_cs_neon.
    Fix to buffer overrun in highbd Neon subpel variance filters.
    Added bitexact encode test script.
    Fix to -Wl,-z,defs with Clang's sanitizers.
    Fix to decoder stability after error & continued decoding.
    Fix to mismatch of VP9 encode with NEON intrinsics with C only version.
    Fix to Arm64 MSVC compile vpx_highbd_fdct4x4_neon.
    Fix to fragments count before use.
    Fix to a case where target bandwidth is 0 for SVC.
    Fix mask in vp9_quantize_avx2,highbd_get_max_lane_eob.
    Fix to int overflow in vp9_calc_pframe_target_size_one_pass_cbr.
    Fix to integer overflow in vp8,ratectrl.c.
    Fix to integer overflow in vp9 svc.
    Fix to avg_frame_bandwidth overflow.
    Fix to per frame qp for temporal layers.
    Fix to unsigned integer overflow in sse computation.
    Fix to uninitialized mesh feature for BEST mode.
    Fix to overflow in highbd temporal_filter.
    Fix to unaligned loads w/w==4 in vpx_convolve_copy_neon.
    Skip arm64_neon.h workaround w/VS >= 2019.
    Fix to c vs avx mismatch of diamond_search_sad().
    Fix to c vs intrinsic mismatch of vpx_hadamard_32x32() function.
    Fix to a bug in vpx_hadamard_32x32_neon().
    Fix to Clang -Wunreachable-code-aggressive warnings.
    Fix to a bug in vpx_highbd_hadamard_32x32_neon().
    Fix to -Wunreachable-code in mfqe_partition.
    Force mode search on 64x64 if no mode is selected.
    Fix to ubsan failure caused by left shift of negative.
    Fix to integer overflow in calc_pframe_target_size.
    Fix to float-cast-overflow in vp8_change_config().
    Fix to a null ptr before use.
    Conditionally skip using inter frames in speed features.
    Remove invalid reference frames.
    Disable intra mode search speed features conditionally.
    Set nonrd keyframe under dynamic change of deadline for rtc.
    Fix to scaled reference offsets.
    Set skip_recode=0 in nonrd_pick_sb_modes.
    Fix to an edge case when downsizing to one.
    Fix to a bug in frame scaling.
    Fix to pred buffer stride.
    Fix to a bug in simple motion search.
    Update frame size in actual encoding.


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 pkgsrc/multimedia/libvpx/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/multimedia/libvpx/PLIST
cvs rdiff -u -r1.9 -r1.10 pkgsrc/multimedia/libvpx/buildlink3.mk
cvs rdiff -u -r1.49 -r1.50 pkgsrc/multimedia/libvpx/distinfo
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/multimedia/libvpx/patches/patch-build_make_Makefile
cvs rdiff -u -r1.3 -r1.4 \
    pkgsrc/multimedia/libvpx/patches/patch-build_make_configure.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/multimedia/libvpx/Makefile
diff -u pkgsrc/multimedia/libvpx/Makefile:1.102 pkgsrc/multimedia/libvpx/Makefile:1.103
--- pkgsrc/multimedia/libvpx/Makefile:1.102     Thu Nov  9 16:48:03 2023
+++ pkgsrc/multimedia/libvpx/Makefile   Mon Jan 22 13:09:26 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.102 2023/11/09 16:48:03 nia Exp $
+# $NetBSD: Makefile,v 1.103 2024/01/22 13:09:26 ryoon Exp $
 
-DISTNAME=      libvpx-1.13.1
+DISTNAME=      libvpx-1.14.0
 CATEGORIES=    multimedia
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=webmproject/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}

Index: pkgsrc/multimedia/libvpx/PLIST
diff -u pkgsrc/multimedia/libvpx/PLIST:1.7 pkgsrc/multimedia/libvpx/PLIST:1.8
--- pkgsrc/multimedia/libvpx/PLIST:1.7  Wed Apr 14 07:02:49 2021
+++ pkgsrc/multimedia/libvpx/PLIST      Mon Jan 22 13:09:26 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2021/04/14 07:02:49 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2024/01/22 13:09:26 ryoon Exp $
 bin/vpxdec
 bin/vpxenc
 include/vpx/vp8.h
@@ -11,5 +11,6 @@ include/vpx/vpx_ext_ratectrl.h
 include/vpx/vpx_frame_buffer.h
 include/vpx/vpx_image.h
 include/vpx/vpx_integer.h
+include/vpx/vpx_tpl.h
 lib/libvpx.la
 lib/pkgconfig/vpx.pc

Index: pkgsrc/multimedia/libvpx/buildlink3.mk
diff -u pkgsrc/multimedia/libvpx/buildlink3.mk:1.9 pkgsrc/multimedia/libvpx/buildlink3.mk:1.10
--- pkgsrc/multimedia/libvpx/buildlink3.mk:1.9  Tue Jul 18 18:34:31 2023
+++ pkgsrc/multimedia/libvpx/buildlink3.mk      Mon Jan 22 13:09:26 2024
@@ -1,12 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.9 2023/07/18 18:34:31 nia Exp $
+# $NetBSD: buildlink3.mk,v 1.10 2024/01/22 13:09:26 ryoon Exp $
 
 BUILDLINK_TREE+=       libvpx
 
 .if !defined(LIBVPX_BUILDLINK3_MK)
 LIBVPX_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.6.0
-BUILDLINK_ABI_DEPENDS.libvpx+= libvpx>=1.11.0nb1
+BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.14.0
+BUILDLINK_ABI_DEPENDS.libvpx+= libvpx>=1.14.0
 BUILDLINK_PKGSRCDIR.libvpx?=   ../../multimedia/libvpx
 
 USE_CXX_FEATURES+=     c++11

Index: pkgsrc/multimedia/libvpx/distinfo
diff -u pkgsrc/multimedia/libvpx/distinfo:1.49 pkgsrc/multimedia/libvpx/distinfo:1.50
--- pkgsrc/multimedia/libvpx/distinfo:1.49      Sun Oct  1 08:20:19 2023
+++ pkgsrc/multimedia/libvpx/distinfo   Mon Jan 22 13:09:26 2024
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.49 2023/10/01 08:20:19 wiz Exp $
+$NetBSD: distinfo,v 1.50 2024/01/22 13:09:26 ryoon Exp $
 
-BLAKE2s (libvpx-1.13.1.tar.gz) = 43dd93abcb6ca410aab9393ae5dd408ac2736aeba0f54f681acdc8e416769e79
-SHA512 (libvpx-1.13.1.tar.gz) = 49706838563c92fab7334376848d0f374efcbc1729ef511e967c908fd2ecd40e8d197f1d85da6553b3a7026bdbc17e5a76595319858af26ce58cb9a4c3854897
-Size (libvpx-1.13.1.tar.gz) = 5515662 bytes
-SHA1 (patch-build_make_Makefile) = 908b1abc8c5eed56e920f442f8f1f80c49838a6f
-SHA1 (patch-build_make_configure.sh) = 018bb2333f1de509a81ae4c7b390076043f18118
+BLAKE2s (libvpx-1.14.0.tar.gz) = 3a33d153ec455c2cb72951ca89ef04fdb1caf9d72f2f5e61bf3652950f61d51b
+SHA512 (libvpx-1.14.0.tar.gz) = 724150c5cafa934e0a8dd9aebbab8afd25aa4f584734e0de37837ec2e8bdcbd9390acd7f883665be7ecdc27af93afda737a4dea7e3bd7531abffcc5bb7c2c7d2
+Size (libvpx-1.14.0.tar.gz) = 5606471 bytes
+SHA1 (patch-build_make_Makefile) = f36e7addd3e26536e80f806e1bf759a9a72b4ce8
+SHA1 (patch-build_make_configure.sh) = ef4247ed3712ed81654f465f813160685dc09e8b
 SHA1 (patch-configure) = aeb5bfd9d58b06b4f2fdbdb8c73b03339de313e7
 SHA1 (patch-examples.mk) = 17410f43ff9952d616be3211ca697f37c107610a
 SHA1 (patch-libs.mk) = 9ddc9cb6c09c9eefce59072c2a657bc5b7e1d295

Index: pkgsrc/multimedia/libvpx/patches/patch-build_make_Makefile
diff -u pkgsrc/multimedia/libvpx/patches/patch-build_make_Makefile:1.2 pkgsrc/multimedia/libvpx/patches/patch-build_make_Makefile:1.3
--- pkgsrc/multimedia/libvpx/patches/patch-build_make_Makefile:1.2      Tue Jan 28 19:20:09 2020
+++ pkgsrc/multimedia/libvpx/patches/patch-build_make_Makefile  Mon Jan 22 13:09:26 2024
@@ -1,8 +1,8 @@
-$NetBSD: patch-build_make_Makefile,v 1.2 2020/01/28 19:20:09 adam Exp $
+$NetBSD: patch-build_make_Makefile,v 1.3 2024/01/22 13:09:26 ryoon Exp $
 
---- build/make/Makefile.orig   2017-01-12 20:27:27.000000000 +0000
+--- build/make/Makefile.orig   2024-01-09 21:12:22.000000000 +0000
 +++ build/make/Makefile
-@@ -147,7 +147,7 @@ $(BUILD_PFX)%.c.d: %.c
+@@ -173,7 +173,7 @@ $(BUILD_PFX)%.c.d: %.c
  $(BUILD_PFX)%.c.o: %.c
        $(if $(quiet),@echo "    [CC] $@")
        $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@))
@@ -11,7 +11,7 @@ $NetBSD: patch-build_make_Makefile,v 1.2
  
  $(BUILD_PFX)%.cc.d: %.cc
        $(if $(quiet),@echo "    [DEP] $@")
-@@ -157,7 +157,7 @@ $(BUILD_PFX)%.cc.d: %.cc
+@@ -183,7 +183,7 @@ $(BUILD_PFX)%.cc.d: %.cc
  $(BUILD_PFX)%.cc.o: %.cc
        $(if $(quiet),@echo "    [CXX] $@")
        $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@))
@@ -20,7 +20,7 @@ $NetBSD: patch-build_make_Makefile,v 1.2
  
  $(BUILD_PFX)%.cpp.d: %.cpp
        $(if $(quiet),@echo "    [DEP] $@")
-@@ -167,7 +167,7 @@ $(BUILD_PFX)%.cpp.d: %.cpp
+@@ -193,7 +193,7 @@ $(BUILD_PFX)%.cpp.d: %.cpp
  $(BUILD_PFX)%.cpp.o: %.cpp
        $(if $(quiet),@echo "    [CXX] $@")
        $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@))
@@ -29,7 +29,7 @@ $NetBSD: patch-build_make_Makefile,v 1.2
  
  $(BUILD_PFX)%.asm.d: %.asm
        $(if $(quiet),@echo "    [DEP] $@")
-@@ -178,7 +178,8 @@ $(BUILD_PFX)%.asm.d: %.asm
+@@ -204,7 +204,8 @@ $(BUILD_PFX)%.asm.d: %.asm
  $(BUILD_PFX)%.asm.o: %.asm
        $(if $(quiet),@echo "    [AS] $@")
        $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@))
@@ -39,7 +39,7 @@ $NetBSD: patch-build_make_Makefile,v 1.2
  
  $(BUILD_PFX)%.S.d: %.S
        $(if $(quiet),@echo "    [DEP] $@")
-@@ -189,7 +190,8 @@ $(BUILD_PFX)%.S.d: %.S
+@@ -215,7 +216,8 @@ $(BUILD_PFX)%.S.d: %.S
  $(BUILD_PFX)%.S.o: %.S
        $(if $(quiet),@echo "    [AS] $@")
        $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@))
@@ -49,7 +49,7 @@ $NetBSD: patch-build_make_Makefile,v 1.2
  
  .PRECIOUS: %.c.S
  %.c.S: CFLAGS += -DINLINE_ASM
-@@ -254,13 +256,15 @@ define linker_template
+@@ -280,13 +282,15 @@ define linker_template
  $(1): $(filter-out -%,$(2))
  $(1):
        $(if $(quiet),@echo    "    [LD] $$@")
@@ -67,7 +67,7 @@ $NetBSD: patch-build_make_Makefile,v 1.2
  endef
  # make-3.80 has a bug with expanding large input strings to the eval function,
  # which was triggered in some cases by the following component of
-@@ -273,8 +277,12 @@ endef
+@@ -299,8 +303,12 @@ endef
  define install_map_template
  $(DIST_DIR)/$(1): $(2)
        $(if $(quiet),@echo "    [INSTALL] $$@")
@@ -82,7 +82,7 @@ $NetBSD: patch-build_make_Makefile,v 1.2
  endef
  
  define archive_template
-@@ -283,7 +291,9 @@ define archive_template
+@@ -309,7 +317,9 @@ define archive_template
  # for creating them.
  $(1):
        $(if $(quiet),@echo "    [AR] $$@")
@@ -92,8 +92,8 @@ $NetBSD: patch-build_make_Makefile,v 1.2
 +              -version-info $(VERSION_MAJOR):$(VERSION_MINOR)
  endef
  
- define so_template
-@@ -377,9 +387,9 @@ clean::
+ # Don't use -Wl,-z,defs with Clang's sanitizers.
+@@ -417,9 +427,9 @@ clean::
        rm -f .bins .install-bins $(BINS)
  
  LIBS=$(call enabled,LIBS)
@@ -105,7 +105,7 @@ $NetBSD: patch-build_make_Makefile,v 1.2
  $(foreach lib,$(filter %so.$(SO_VERSION_MAJOR).$(SO_VERSION_MINOR).$(SO_VERSION_PATCH),$(LIBS)),$(eval $(call so_template,$(lib))))
  $(foreach lib,$(filter %$(SO_VERSION_MAJOR).dylib,$(LIBS)),$(eval $(call dl_template,$(lib))))
  $(foreach lib,$(filter %$(SO_VERSION_MAJOR).dll,$(LIBS)),$(eval $(call dll_template,$(lib))))
-@@ -388,11 +398,11 @@ INSTALL-LIBS=$(call cond_enabled,CONFIG_
+@@ -428,11 +438,11 @@ INSTALL-LIBS=$(call cond_enabled,CONFIG_
  ifeq ($(MAKECMDGOALS),dist)
  INSTALL-LIBS+=$(call cond_enabled,CONFIG_INSTALL_LIBS,DIST-LIBS)
  endif
@@ -119,7 +119,7 @@ $NetBSD: patch-build_make_Makefile,v 1.2
  
  ifeq ($(CONFIG_EXTERNAL_BUILD),yes)
  PROJECTS=$(call enabled,PROJECTS)
-@@ -442,7 +452,7 @@ ifeq ($(CONFIG_EXTERNAL_BUILD),yes)
+@@ -482,7 +492,7 @@ ifeq ($(CONFIG_EXTERNAL_BUILD),yes)
      BUILD_TARGETS += .projects
      INSTALL_TARGETS += .install-projects
  endif

Index: pkgsrc/multimedia/libvpx/patches/patch-build_make_configure.sh
diff -u pkgsrc/multimedia/libvpx/patches/patch-build_make_configure.sh:1.3 pkgsrc/multimedia/libvpx/patches/patch-build_make_configure.sh:1.4
--- pkgsrc/multimedia/libvpx/patches/patch-build_make_configure.sh:1.3  Fri Jul 15 11:04:33 2022
+++ pkgsrc/multimedia/libvpx/patches/patch-build_make_configure.sh      Mon Jan 22 13:09:26 2024
@@ -1,4 +1,4 @@
-$NetBSD: patch-build_make_configure.sh,v 1.3 2022/07/15 11:04:33 adam Exp $
+$NetBSD: patch-build_make_configure.sh,v 1.4 2024/01/22 13:09:26 ryoon Exp $
 
 *BSD and qnx are identified as linux.
 Add another SDK path on Mac OS X.
@@ -6,9 +6,9 @@ All sparc cpus can not do unaligned acce
 Detect NetBSD ARMv7 hardfloat toolchain.
 Recognize powerpc as a target ISA, so we don't end up with generic-gnu
 
---- build/make/configure.sh.orig       2022-06-28 19:00:48.000000000 +0000
+--- build/make/configure.sh.orig       2024-01-09 21:12:22.000000000 +0000
 +++ build/make/configure.sh
-@@ -751,7 +751,7 @@ process_common_toolchain() {
+@@ -752,7 +752,7 @@ process_common_toolchain() {
        aarch64*)
          tgt_isa=arm64
          ;;
@@ -17,7 +17,7 @@ Recognize powerpc as a target ISA, so we
          tgt_isa=armv7
          float_abi=hard
          ;;
-@@ -783,6 +783,9 @@ process_common_toolchain() {
+@@ -784,6 +784,9 @@ process_common_toolchain() {
        loongarch64*)
          tgt_isa=loongarch64
          ;;
@@ -27,7 +27,7 @@ Recognize powerpc as a target ISA, so we
      esac
  
      # detect tgt_os
-@@ -805,7 +808,7 @@ process_common_toolchain() {
+@@ -806,7 +809,7 @@ process_common_toolchain() {
          [ -z "$tgt_isa" ] && tgt_isa=x86
          tgt_os=win32
          ;;
@@ -36,7 +36,7 @@ Recognize powerpc as a target ISA, so we
          tgt_os=linux
          ;;
        *solaris2.10)
-@@ -856,6 +859,9 @@ process_common_toolchain() {
+@@ -861,6 +864,9 @@ process_common_toolchain() {
        soft_enable lasx
        enable_feature loongarch
        ;;
@@ -45,8 +45,8 @@ Recognize powerpc as a target ISA, so we
 +      ;;
    esac
  
-   # PIC is probably what we want when building shared libs
-@@ -1506,7 +1512,7 @@ EOF
+   # Position independent code (PIC) is probably what we want when building
+@@ -1533,7 +1539,7 @@ EOF
    check_cc <<EOF
  unsigned int e = 'O'<<24 | '2'<<16 | 'B'<<8 | 'E';
  EOF
@@ -55,7 +55,7 @@ Recognize powerpc as a target ISA, so we
          grep '4f *32 *42 *45' >/dev/null 2>&1 && enable_feature big_endian
  
      # Try to find which inline keywords are supported
-@@ -1523,7 +1529,7 @@ EOF
+@@ -1550,7 +1556,7 @@ EOF
          # bionic includes basic pthread functionality, obviating -lpthread.
          ;;
        *)



Home | Main Index | Thread Index | Old Index