head 1.8; access; symbols pkgsrc-2026Q1:1.7.0.6 pkgsrc-2026Q1-base:1.7 pkgsrc-2025Q4:1.7.0.4 pkgsrc-2025Q4-base:1.7 pkgsrc-2025Q3:1.7.0.2 pkgsrc-2025Q3-base:1.7 pkgsrc-2025Q2:1.5.0.6 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.4 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.2 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.4.0.4 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.2 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.2.0.24 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.22 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.20 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.18 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.16 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.14 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.12 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.10 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.8 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.6 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.4 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.2 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.1.0.34 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.32 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.30 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.26 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.6 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.28 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.24 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.22 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.20 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.18 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.16 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.14 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.12 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.10 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.8 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.4 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.2 pkgsrc-2017Q1-base:1.1; locks; strict; comment @# @; 1.8 date 2026.04.20.18.05.26; author adam; state Exp; branches; next 1.7; commitid HtlaD1LsXdR62JCG; 1.7 date 2025.08.25.18.14.39; author pho; state Exp; branches; next 1.6; commitid dDFiryrb7aAJI88G; 1.6 date 2025.08.11.08.33.14; author wiz; state Exp; branches; next 1.5; commitid mi9D583gtc4hYh6G; 1.5 date 2024.11.28.09.35.34; author nia; state Exp; branches; next 1.4; commitid 7qtb5Z2zEqQIxozF; 1.4 date 2024.04.05.13.45.50; author ryoon; state Exp; branches; next 1.3; commitid iZAEup8AipOZxX4F; 1.3 date 2024.04.05.09.22.33; author adam; state Exp; branches; next 1.2; commitid gNhdjE5NvYzw5W4F; 1.2 date 2021.04.10.08.36.03; author adam; state Exp; branches; next 1.1; commitid KnLxuHfRkTySTIOC; 1.1 date 2017.02.13.13.39.55; author fhajny; state Exp; branches; next ; commitid kUVwd5mCPnc4lNFz; desc @@ 1.8 log @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) @ text @$NetBSD: patch-CMakeLists.txt,v 1.7 2025/08/25 18:14:39 pho Exp $ Get X265_VERSION and X265_LATEST_TAG from outside. Solaris ld: Provided assembler is not PIC, so we pass "-mimpure-text" to the compiler so it doesn't send "-ztext" to ld. Solaris ld: Passing "-Wa,--noexecstack" to gcc will generate an ELF section requesting a non executable stack. I don't know if Solaris ld is complying or just ignoring it. --- CMakeLists.txt.orig 2026-04-19 06:29:17.000000000 +0000 +++ CMakeLists.txt @@@@ -241,6 +241,11 @@@@ if(HAVE_INT_TYPES_H) add_definitions(-DHAVE_INT_TYPES_H=1) endif() +check_include_files(alloca.h HAVE_ALLOCA_H) +if(HAVE_ALLOCA_H) + add_definitions(-DHAVE_ALLOCA_H=1) +endif() + if(INTEL_CXX AND UNIX) set(GCC 1) # treat icpc roughly like gcc elseif(CLANG) @@@@ -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) elseif(MSVC) add_definitions(/WX) @@@@ -797,7 +802,6 @@@@ if(POWER) endif() endif() -include(Version) # determine X265_VERSION and X265_LATEST_TAG include_directories(. common encoder "${PROJECT_BINARY_DIR}") option(ENABLE_PPA "Enable PPA profiling instrumentation" OFF) @@@@ -1084,7 +1088,11 @@@@ if(ENABLE_SHARED) elseif(CYGWIN) # Cygwin is not officially supported or tested. MinGW with msys is recommended. else() - list(APPEND LINKER_OPTIONS "-Wl,-Bsymbolic,-znoexecstack") + if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") + list(APPEND LINKER_OPTIONS "-mimpure-text -Wa,--noexecstack") + else() + list(APPEND LINKER_OPTIONS "-Wl,-Bsymbolic,-znoexecstack") + endif() endif() endif() set_target_properties(x265-shared PROPERTIES SOVERSION ${X265_BUILD}) @ 1.7 log @multimedia/x265: Fix build on Darwin This was a fallout of cmake 4 migration. The cmake policy CMP0025 has been switched to "NEW", which means cmake now reports Apple's clang as "AppleClang" as opposed to just "Clang", but CMakeLists.txt didn't know this compiler. @ text @d1 1 a1 3 $NetBSD: patch-CMakeLists.txt,v 1.6 2025/08/11 08:33:14 wiz Exp $ Do not insist on old cmake policies (allows build with cmake 4). d12 1 a12 1 --- CMakeLists.txt.orig 2024-11-22 12:07:34.000000000 +0000 d14 1 a14 26 @@@@ -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) d26 1 a26 1 @@@@ -614,7 +613,7 @@@@ endif(ARM64) a32 1 add_definitions(-Wno-unused) d34 2 a35 1 @@@@ -658,7 +657,6 @@@@ if(POWER) d43 1 a43 1 @@@@ -906,7 +904,11 @@@@ if(ENABLE_SHARED) @ 1.6 log @x265: fix build with cmake 4 @ text @d1 1 a1 1 $NetBSD: patch-CMakeLists.txt,v 1.5 2024/11/28 09:35:34 nia Exp $ d32 9 d53 9 @ 1.5 log @x265: Detect and use it if available. Should help the build on SunOS which is currently broken due to alloca being undefined. @ text @d1 3 a3 1 $NetBSD: patch-CMakeLists.txt,v 1.4 2024/04/05 13:45:50 ryoon Exp $ d16 17 a32 1 @@@@ -207,6 +207,11 @@@@ if(HAVE_INT_TYPES_H) d44 1 a44 1 @@@@ -658,7 +663,6 @@@@ if(POWER) d52 1 a52 1 @@@@ -906,7 +910,11 @@@@ if(ENABLE_SHARED) @ 1.4 log @multimedia/x265: Follow upstream tarball replace @ text @d1 1 a1 1 $NetBSD: patch-CMakeLists.txt,v 1.3 2024/04/05 09:22:33 adam Exp $ d12 1 a12 1 --- CMakeLists.txt.orig 2024-04-04 09:39:50.000000000 +0000 d14 13 a26 1 @@@@ -523,7 +523,6 @@@@ if(POWER) d34 1 a34 1 @@@@ -745,7 +744,11 @@@@ if(ENABLE_SHARED) @ 1.3 log @x265: updated to 3.6 Version 3.6 =========== Release date - 4th April, 2024. New feature ----------- 1. Segment based Ratecontrol (SBRC) feature 2. Motion-Compensated Spatio-Temporal Filtering 3. Scene-cut aware qp - BBAQ (Bidirectional Boundary Aware Quantization) 4. Histogram-Based Scene Change Detection 5. Film-Grain characteristics as a SEI message to support Film Grain Synthesis(FGS) 6. Add temporal layer implementation(Hierarchical B-frame implementation) Enhancements to existing features --------------------------------- 1. Added Dolby Vision 8.4 Profile Support API changes ----------- 1. Add Segment based Ratecontrol(SBRC) feature: "--[no-]sbrc". 2. Add command line parameter for mcstf feature: "--[no-]mctf". 3. Add command line parameters for the scene cut aware qp feature: "--scenecut-aware-qp" and "--masking-strength". 4. Add command line parameters for Histogram-Based Scene Change Detection: "--hist-scenecut". 5. Add film grain characteristics as a SEI message to the bitstream: "--film-grain " 6. cli: add new option --cra-nal (Force nal type to CRA to all frames expect for the first frame, works only with keyint 1) Optimizations --------------------- ARM64 NEON optimizations:- Several time-consuming C functions have been optimized for the targeted platform - aarch64. The overall performance increased by around 20%. SVE/SVE2 optimizations Bug fixes --------- 1. Linux bug to utilize all the cores 2. Crash with hist-scenecut build when source resolution is not multiple of minCuSize 3. 32bit and 64bit builds generation for ARM 4. bugs in zonefile feature (Reflect Zonefile Parameters inside Lookahead, extra IDR issue, Avg I Slice QP value issue etc..) 5. Add x86 ASM implementation for subsampling luma 6. Fix for abrladder segfault with load reuse level 1 7. Reorder miniGOP based on temporal layer hierarchy and add support for more B frame 8. Add MacOS aarch64 build support 9. Fix boundary condition issue for Gaussian filter @ text @d1 1 a1 1 $NetBSD: patch-CMakeLists.txt,v 1.2 2021/04/10 08:36:03 adam Exp $ d15 7 a21 7 endif() endif() -include(Version) # determine X265_VERSION and X265_LATEST_TAG include_directories(. common encoder "${PROJECT_BINARY_DIR}") option(ENABLE_PPA "Enable PPA profiling instrumentation" OFF) d23 12 a34 12 elseif(CYGWIN) # Cygwin is not officially supported or tested. MinGW with msys is recommended. else() - list(APPEND LINKER_OPTIONS "-Wl,-Bsymbolic,-znoexecstack") + if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") + list(APPEND LINKER_OPTIONS "-mimpure-text -Wa,--noexecstack") + else() + list(APPEND LINKER_OPTIONS "-Wl,-Bsymbolic,-znoexecstack") + endif() endif() endif() set_target_properties(x265-shared PROPERTIES SOVERSION ${X265_BUILD}) @ 1.2 log @x265: updated to 3.5 Version 3.5 New feature Real-time VBV for ABR (Average BitRate) encodes in –pass 2 using --vbv-live-multi-pass: Improves VBV compliance with no significant impact on coding efficiency. Enhancements to existing features Improved hist-based scene cut algorithm: Reduces false positives by leveraging motion and scene transition info. Support for RADL pictures at IDR scene cuts: Improves coding efficiency with no significant impact on performance. Bidirectional scene cut aware Frame Quantizer Selection: Saves bits than forward masking with no noticeable perceptual quality difference. API changes Additions to x265_param structure to support the newly added features and encoder enhancements. New x265_param options --min-vbv-fullness and --max-vbv-fullness to control min and max VBV fullness. Bug fixes Incorrect VBV lookahead in --analysis-load + --scale-factor. Encoder hang when VBV is used with slices. QP spikes in the row-level VBV rate-control when WPP enabled. Encoder crash in --abr-ladder. @ text @d1 1 a1 1 $NetBSD$ d12 1 a12 1 --- CMakeLists.txt.orig 2021-03-16 12:53:00.000000000 +0000 d14 21 a34 21 @@@@ -485,7 +485,6 @@@@ if(POWER) endif() endif() -include(Version) # determine X265_VERSION and X265_LATEST_TAG include_directories(. common encoder "${PROJECT_BINARY_DIR}") option(ENABLE_PPA "Enable PPA profiling instrumentation" OFF) @@@@ -665,7 +664,11 @@@@ if(ENABLE_SHARED) elseif(CYGWIN) # Cygwin is not officially supported or tested. MinGW with msys is recommended. else() - list(APPEND LINKER_OPTIONS "-Wl,-Bsymbolic,-znoexecstack") + if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") + list(APPEND LINKER_OPTIONS "-mimpure-text -Wa,--noexecstack") + else() + list(APPEND LINKER_OPTIONS "-Wl,-Bsymbolic,-znoexecstack") + endif() endif() endif() set_target_properties(x265-shared PROPERTIES SOVERSION ${X265_BUILD}) @ 1.1 log @Add support for the Sun linker. Fixes joyent/pkgsrc/issues/455 on SunOS. Based on jcea's pull request. @ text @d1 3 a3 1 $NetBSD: $ d12 11 a22 3 --- CMakeLists.txt.OLD 2017-01-27 02:42:21.295232904 +0000 +++ CMakeLists.txt 2017-01-27 02:51:32.144600352 +0000 @@@@ -523,7 +523,11 @@@@ @