pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/multimedia/x265
Module Name: pkgsrc
Committed By: adam
Date: Mon Apr 20 18:05:26 UTC 2026
Modified Files:
pkgsrc/multimedia/x265: Makefile PLIST distinfo
pkgsrc/multimedia/x265/patches: patch-CMakeLists.txt
patch-common_cpu.cpp
Log Message:
x265: updated to 4.2
Version 4.2
New feature
-----------
1. Threaded Motion Estimation (Experimental feature)-It uses a dedicated threadpool to precompute Motion Estimation in parallel.Improves encoding speed upto 1.5x for 1080p & lower resolution on multi
core machines with low frequency setting. On high frequency systems or on machines with low number of cores, the overhead of additional Motion estimation work may outweigh parallelism
Enhancements to existing features
-------------
1.Add new Levels 6.3 to 7.2 specified in ITU-T H.265 (V9) (09/2023) and above
2.Improve Slices feature with check zeroMv
3.Enable frame parallelism with MCSTF feature
4.Updated support to signal AOM FGM params
5.Improve quality with SBRC feature
6.Updated DolbyVision P5 VUI defaults
API changes
-----------
1. API Support to enable Threaded Motion Estimation(--threaded-me)
Optimizations
-------------
1. RISC V optimizations including SAD, SATD, DCT, IDCT, block copy, pixel utilities, SAO, loopfilter, transpose kernels resulting in 2x encoding speed.
2. ARM SIMD optimizations including the use of NEON and SVE instruction set extensions. The following algorithms now have optimized SIMD implementations: DST, IDCT, SSE, SSD ,intra_pred_planar,
pelFilterLumaStrong, interpolation, planecopy, dequant_normal, blockcopy, pixel variance resulting in 8% faster encoding speed compared to v4.1
Bug fixes
---------
1. Fix memory leaks (no command line option, SEI buffer, analysis save/load)
2. Fix chroma qp offset for non yuv444 inputs
3. Fix max supported input resolution
4. Fix bugs with ARM SIMD optimizations
5. Fix Alpha and Multiview feature flag support in x265_config
6. Fix test harness issues, CMake errors
7. Fix inconsistent output with aq-motion
8. Fix crash with hist-scenecut on high bit-depth builds
9. Fix lookahead concurrency bug
10. Fix shared link issue (R_X86_64_PC32), yuv recon output issue, rd-refine and dynamic-refine issue, inputs for Windows named pipe,weighted prediction delta_chroma_offset, crf and vbv issue in
abr-ladder, psnr and ssim reported with MCSTF feature, internally overflowed VBV variables
Known issues
------------
1. Output mismatch between analysis save & load with cutree with reuse level < 10
2. Inconsistent hash mismatch with abr-ladder feature
3. Performance regression observed with threaded-me feature on high frequency systems and for higher resolutions (4k)
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/multimedia/x265/Makefile
cvs rdiff -u -r1.29 -r1.30 pkgsrc/multimedia/x265/PLIST
cvs rdiff -u -r1.44 -r1.45 pkgsrc/multimedia/x265/distinfo
cvs rdiff -u -r1.7 -r1.8 pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt
cvs rdiff -u -r1.4 -r1.5 pkgsrc/multimedia/x265/patches/patch-common_cpu.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/multimedia/x265/Makefile
diff -u pkgsrc/multimedia/x265/Makefile:1.45 pkgsrc/multimedia/x265/Makefile:1.46
--- pkgsrc/multimedia/x265/Makefile:1.45 Wed Feb 18 07:58:02 2026
+++ pkgsrc/multimedia/x265/Makefile Mon Apr 20 18:05:25 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.45 2026/02/18 07:58:02 wiz Exp $
+# $NetBSD: Makefile,v 1.46 2026/04/20 18:05:25 adam Exp $
-DISTNAME= x265_4.1
+DISTNAME= x265_4.2
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= multimedia
MASTER_SITES= https://bitbucket.org/multicoreware/x265_git/downloads/
@@ -18,15 +18,6 @@ CMAKE_CONFIGURE_ARGS+= -DENABLE_PIC=ON
# Set version here instead of relying on git; see patch-CMakeLists.txt
CMAKE_CONFIGURE_ARGS+= -DX265_VERSION=${PKGVERSION_NOREV}
CMAKE_CONFIGURE_ARGS+= -DX265_LATEST_TAG=${PKGVERSION_NOREV}
-# https://bitbucket.org/multicoreware/x265_git/issues/1008/build-fails-with-cmake-4
-CMAKE_CONFIGURE_ARGS+= -DCMAKE_POLICY_VERSION_MINIMUM=3.5
-
-SUBST_CLASSES+= cr
-SUBST_STAGE.cr= post-extract
-SUBST_FILES.cr+= *
-SUBST_FILES.cr+= */*
-SUBST_FILTER_CMD.cr= ${TR} -d '\r'
-SUBST_NOOP_OK.cr= yes
.include "options.mk"
Index: pkgsrc/multimedia/x265/PLIST
diff -u pkgsrc/multimedia/x265/PLIST:1.29 pkgsrc/multimedia/x265/PLIST:1.30
--- pkgsrc/multimedia/x265/PLIST:1.29 Sun Nov 24 06:55:24 2024
+++ pkgsrc/multimedia/x265/PLIST Mon Apr 20 18:05:25 2026
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.29 2024/11/24 06:55:24 adam Exp $
+@comment $NetBSD: PLIST,v 1.30 2026/04/20 18:05:25 adam Exp $
bin/x265
include/x265.h
include/x265_config.h
lib/libx265.a
lib/libx265.so
-lib/libx265.so.215
+lib/libx265.so.216
lib/pkgconfig/x265.pc
Index: pkgsrc/multimedia/x265/distinfo
diff -u pkgsrc/multimedia/x265/distinfo:1.44 pkgsrc/multimedia/x265/distinfo:1.45
--- pkgsrc/multimedia/x265/distinfo:1.44 Mon Aug 25 18:15:33 2025
+++ pkgsrc/multimedia/x265/distinfo Mon Apr 20 18:05:25 2026
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.44 2025/08/25 18:15:33 pho Exp $
+$NetBSD: distinfo,v 1.45 2026/04/20 18:05:25 adam Exp $
-BLAKE2s (x265_4.1.tar.gz) = d0b785b8746848f2fd4b62b81218485ad95d87c78ee53c74975059a23cc43857
-SHA512 (x265_4.1.tar.gz) = 5af5b958ff507f96a52813a6b72847c9fbc555bf95af287ae7f011055338266fb647dfea3b7789730c7f5c746f7e6cb7d9395ba10cbe43eb5034d3ed99730c3f
-Size (x265_4.1.tar.gz) = 1725279 bytes
-SHA1 (patch-CMakeLists.txt) = f49a5c0205eeaa4d927a230b5f7d04c537830bba
+BLAKE2s (x265_4.2.tar.gz) = cb25b083232b66c93aa916ed714ff3f91a05473b58638179e8c504dcdc7ef5d0
+SHA512 (x265_4.2.tar.gz) = 0c4ded0388b79ecdfe28b7f48da095ecb12a7e1fc7cd92f8d35a850087de562081582de69846a7d64e03889d6b8da620b5fa084dac3ab8734a05552f68bf8623
+Size (x265_4.2.tar.gz) = 1833442 bytes
+SHA1 (patch-CMakeLists.txt) = 26e5380e59c3fa3c44f766049d1172463d8e66dc
SHA1 (patch-common_common.h) = eece838c76a1f199af29de88d9fc5c5a7a7243c0
-SHA1 (patch-common_cpu.cpp) = 63c57523ab8b194bcbdddf7ba6cbdc565fa04187
+SHA1 (patch-common_cpu.cpp) = 9848fdb3664f3403f4c0c540fe77a41b4accb5ea
SHA1 (patch-common_cpu.h) = 000f9b6e40a459db4e3428730c8a9f5eeb6d9449
SHA1 (patch-common_quant.cpp) = 648e21479e7af9007e5aca1db86a7f1de50047ea
SHA1 (patch-common_version.cpp) = b7deaf67279a391e79e1820078bfd248fb66759a
Index: pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt
diff -u pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt:1.7 pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt:1.8
--- pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt:1.7 Mon Aug 25 18:14:39 2025
+++ pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt Mon Apr 20 18:05:26 2026
@@ -1,6 +1,4 @@
-$NetBSD: patch-CMakeLists.txt,v 1.7 2025/08/25 18:14:39 pho Exp $
-
-Do not insist on old cmake policies (allows build with cmake 4).
+$NetBSD: patch-CMakeLists.txt,v 1.8 2026/04/20 18:05:26 adam Exp $
Get X265_VERSION and X265_LATEST_TAG from outside.
@@ -11,34 +9,9 @@ Solaris ld: Passing "-Wa,--noexecstack"
requesting a non executable stack. I don't know if Solaris ld
is complying or just ignoring it.
---- CMakeLists.txt.orig 2024-11-22 12:07:34.000000000 +0000
+--- CMakeLists.txt.orig 2026-04-19 06:29:17.000000000 +0000
+++ CMakeLists.txt
-@@ -6,15 +6,9 @@ if(NOT CMAKE_BUILD_TYPE)
- FORCE)
- endif()
- message(STATUS "cmake version ${CMAKE_VERSION}")
--if(POLICY CMP0025)
-- cmake_policy(SET CMP0025 OLD) # report Apple's Clang as just Clang
--endif()
- if(POLICY CMP0042)
- cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH
- endif()
--if(POLICY CMP0054)
-- cmake_policy(SET CMP0054 OLD) # Only interpret if() arguments as variables or keywords when unquoted
--endif()
-
- project (x265)
- cmake_minimum_required (VERSION 2.8.8) # OBJECT libraries require 2.8.8
-@@ -168,7 +162,7 @@ if(APPLE)
- add_definitions(-DMACOS=1)
- endif()
-
--if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
-+if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang|AppleClang")
- set(CLANG 1)
- endif()
- if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
-@@ -207,6 +201,11 @@ if(HAVE_INT_TYPES_H)
+@@ -241,6 +241,11 @@ if(HAVE_INT_TYPES_H)
add_definitions(-DHAVE_INT_TYPES_H=1)
endif()
@@ -50,16 +23,16 @@ Solaris ld: Passing "-Wa,--noexecstack"
if(INTEL_CXX AND UNIX)
set(GCC 1) # treat icpc roughly like gcc
elseif(CLANG)
-@@ -614,7 +613,7 @@ endif(ARM64)
+@@ -754,7 +759,7 @@ endif(ARM64 OR RISCV64)
option(WARNINGS_AS_ERRORS "Stop compiles on first warning" OFF)
if(WARNINGS_AS_ERRORS)
- if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
+ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
add_definitions(-Werror)
- add_definitions(-Wno-unused)
elseif(MSVC)
-@@ -658,7 +657,6 @@ if(POWER)
+ add_definitions(/WX)
+@@ -797,7 +802,6 @@ if(POWER)
endif()
endif()
@@ -67,7 +40,7 @@ Solaris ld: Passing "-Wa,--noexecstack"
include_directories(. common encoder "${PROJECT_BINARY_DIR}")
option(ENABLE_PPA "Enable PPA profiling instrumentation" OFF)
-@@ -906,7 +904,11 @@ if(ENABLE_SHARED)
+@@ -1084,7 +1088,11 @@ if(ENABLE_SHARED)
elseif(CYGWIN)
# Cygwin is not officially supported or tested. MinGW with msys is recommended.
else()
Index: pkgsrc/multimedia/x265/patches/patch-common_cpu.cpp
diff -u pkgsrc/multimedia/x265/patches/patch-common_cpu.cpp:1.4 pkgsrc/multimedia/x265/patches/patch-common_cpu.cpp:1.5
--- pkgsrc/multimedia/x265/patches/patch-common_cpu.cpp:1.4 Fri Apr 5 13:45:50 2024
+++ pkgsrc/multimedia/x265/patches/patch-common_cpu.cpp Mon Apr 20 18:05:26 2026
@@ -1,19 +1,19 @@
-$NetBSD: patch-common_cpu.cpp,v 1.4 2024/04/05 13:45:50 ryoon Exp $
+$NetBSD: patch-common_cpu.cpp,v 1.5 2026/04/20 18:05:26 adam Exp $
Retire detect512, make enable512 a global.
---- common/cpu.cpp.orig 2024-04-04 09:39:50.000000000 +0000
+--- common/cpu.cpp.orig 2026-04-19 06:29:17.000000000 +0000
+++ common/cpu.cpp
-@@ -62,7 +62,7 @@ static void sigill_handler(int sig)
- #endif // if X265_ARCH_ARM
+@@ -63,7 +63,7 @@ static void sigill_handler(int sig)
namespace X265_NS {
+ #if X265_ARCH_X86
-static bool enable512 = false;
+bool enable512 = false;
+ #endif
const cpu_name_t cpu_names[] =
{
- #if X265_ARCH_X86
-@@ -135,10 +135,6 @@ uint64_t PFX(cpu_xgetbv)(int xcr);
+@@ -150,10 +150,6 @@ uint64_t PFX(cpu_xgetbv)(int xcr);
#pragma warning(disable: 4309) // truncation of constant value
#endif
Home |
Main Index |
Thread Index |
Old Index