[vlc-commits] [Git][videolan/vlc][master] 3 commits: contrib: x265: update link and version of x265

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Thu Mar 24 11:30:22 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
3ab465b5 by rego21 at 2022-03-24T10:05:17+00:00
contrib: x265: update link and version of x265

The x265 link changed and version 2.7 isn't available in their downloads page.

- - - - -
4031359a by rego21 at 2022-03-24T10:05:17+00:00
contrib: x265: update patches

Update patches to tackle the 2.9 version

- - - - -
b65cd1f0 by rego21 at 2022-03-24T10:05:17+00:00
contrib: x265: add patch to enable detect512

Enables detect512 for all architectures

- - - - -


5 changed files:

- contrib/src/x265/SHA512SUMS
- contrib/src/x265/rules.mak
- + contrib/src/x265/x265-enable-detect512.patch
- contrib/src/x265/x265-ldl-linking.patch
- contrib/src/x265/x265-no-pdb-install.patch


Changes:

=====================================
contrib/src/x265/SHA512SUMS
=====================================
@@ -1 +1 @@
-58582ff5c282a8ca6213a98495b95fa941f323fa454924e4751dde6d2a0e87a08d6e8d98012164a3d83523f2b004e7a1420b60b64719fe30f460dd10ec075094  x265_2.7.tar.gz
+270818c7fd84947fde371e32bef225c1880cfb0bcd95378d95b51f50577a134d7cd585fcdfa43b103a24d76c5ad826b09509a07eb9e208e8f2b56f2f77365cf3  x265_2.9.tar.gz


=====================================
contrib/src/x265/rules.mak
=====================================
@@ -1,8 +1,8 @@
 # x265
 
 #X265_GITURL := https://github.com/videolan/x265
-X265_VERSION := 2.7
-X265_SNAPURL := https://bitbucket.org/multicoreware/x265/downloads/x265_$(X265_VERSION).tar.gz
+X265_VERSION := 2.9
+X265_SNAPURL := https://bitbucket.org/multicoreware/x265_git/downloads/x265_$(X265_VERSION).tar.gz
 
 ifdef BUILD_ENCODERS
 ifdef GPL
@@ -28,6 +28,7 @@ x265: x265_$(X265_VERSION).tar.gz .sum-x265
 	$(UNPACK)
 	$(APPLY) $(SRC)/x265/x265-ldl-linking.patch
 	$(APPLY) $(SRC)/x265/x265-no-pdb-install.patch
+	$(APPLY) $(SRC)/x265/x265-enable-detect512.patch
 	$(call pkg_static,"source/x265.pc.in")
 ifndef HAVE_WIN32
 	$(APPLY) $(SRC)/x265/x265-pkg-libs.patch


=====================================
contrib/src/x265/x265-enable-detect512.patch
=====================================
@@ -0,0 +1,26 @@
+This function is used on all architectures, not just X86.
+
+--- x265/source/common/cpu.cpp
++++ x265/source/common/cpu.cpp
+@@ -110,6 +110,11 @@
+     { "", 0 },
+ };
+ 
++bool detect512()
++{
++    return(enable512);
++}
++
+ #if X265_ARCH_X86
+ 
+ extern "C" {
+@@ -123,10 +128,6 @@
+ #pragma warning(disable: 4309) // truncation of constant value
+ #endif
+ 
+-bool detect512()
+-{
+-    return(enable512);
+-}
+ uint32_t cpu_detect(bool benableavx512 )
+ {


=====================================
contrib/src/x265/x265-ldl-linking.patch
=====================================
@@ -1,6 +1,6 @@
---- x265-1.9/source/CMakeLists.txt.orig	2016-01-25 06:16:50.000000000 +0100
-+++ x265-1.9/source/CMakeLists.txt	2016-07-10 13:36:14.759323966 +0200
-@@ -566,7 +566,7 @@
+--- x265/source/CMakeLists.txt.orig	2022-03-20 16:40:01.560434700 +0000
++++ x265/source/CMakeLists.txt	2022-03-20 16:41:20.563787600 +0000
+@@ -713,7 +713,7 @@
          if(WIN32 OR NOT ENABLE_SHARED OR INTEL_CXX)
              # The CLI cannot link to the shared library on Windows, it
              # requires internal APIs not exported from the DLL


=====================================
contrib/src/x265/x265-no-pdb-install.patch
=====================================
@@ -1,11 +1,11 @@
---- x265/source/CMakeLists.txt.nopdb	2018-05-18 16:28:43.150790700 +0200
-+++ x265/source/CMakeLists.txt	2018-05-18 16:28:53.838634400 +0200
-@@ -546,7 +546,7 @@ if(ENABLE_HDR10_PLUS)
+--- x265/source/CMakeLists.txt.nopdb	2022-03-20 16:50:06.435395700 +0000
++++ x265/source/CMakeLists.txt	2022-03-20 16:50:23.988474200 +0000
+@@ -554,7 +554,7 @@
          ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
  endif()
  install(FILES x265.h "${PROJECT_BINARY_DIR}/x265_config.h" DESTINATION include)
--if(WIN32)
-+if(WIN32 AND MSVC_IDE)
+-if((WIN32 AND ENABLE_CLI) OR (WIN32 AND ENABLE_SHARED))
++if((WIN32 AND ENABLE_CLI AND MSVC_IDE) OR (WIN32 AND ENABLE_SHARED AND MSVC_IDE))
      if(MSVC_IDE)
          install(FILES "${PROJECT_BINARY_DIR}/Debug/x265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS Debug)
          install(FILES "${PROJECT_BINARY_DIR}/RelWithDebInfo/x265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS RelWithDebInfo)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/eca00803d06cf436c214a7f51ec77e3743e0425b...b65cd1f02738d6cac5f3de3ade4890c9341af393

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/eca00803d06cf436c214a7f51ec77e3743e0425b...b65cd1f02738d6cac5f3de3ade4890c9341af393
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list