head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.16 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.14 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.12 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.10 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.8 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.6 pkgsrc-2024Q4-base:1.4 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.42 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.40 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.38 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.36 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.34 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.32 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.30 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.28 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.26 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.24 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.22 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.20 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.18 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.16 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.14 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.12 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.8 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.10 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.6 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.4 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.2 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.1.0.2 pkgsrc-2018Q4-base:1.1; locks; strict; comment @// @; 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 2019.01.25.09.01.13; author adam; state Exp; branches; next 1.1; commitid 3sETXiNMklvHW89B; 1.1 date 2018.12.11.17.55.56; author jklos; state Exp; branches; next ; commitid jhMSr3mRqRU6lp3B; desc @@ 1.4 log @multimedia/x265: Follow upstream tarball replace @ text @$NetBSD: patch-common_quant.cpp,v 1.3 2024/04/05 09:22:33 adam Exp $ Use enable512 as a global, not through detect512 --- common/quant.cpp.orig 2024-04-05 09:11:03.482354127 +0000 +++ common/quant.cpp @@@@ -708,7 +708,6 @@@@ uint32_t Quant::rdoQuant(const CUData& c uint32_t scanPosBase = (cgScanPos << MLS_CG_SIZE); uint32_t blkPos = codeParams.scan[scanPosBase]; #if X265_ARCH_X86 - bool enable512 = detect512(); if (enable512) primitives.cu[log2TrSize - 2].psyRdoQuant(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos); else @@@@ -795,7 +794,6 @@@@ uint32_t Quant::rdoQuant(const CUData& c if (usePsyMask) { #if X265_ARCH_X86 - bool enable512 = detect512(); if (enable512) primitives.cu[log2TrSize - 2].psyRdoQuant(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos); else @ 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-common_quant.cpp,v 1.2 2019/01/25 09:01:13 adam Exp $ d8 7 a14 7 uint32_t scanPosBase = (cgScanPos << MLS_CG_SIZE); uint32_t blkPos = codeParams.scan[scanPosBase]; #if X265_ARCH_X86 - bool enable512 = detect512(); if (enable512) primitives.cu[log2TrSize - 2].psyRdoQuant(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos); else d16 7 a22 7 if (usePsyMask) { #if X265_ARCH_X86 - bool enable512 = detect512(); if (enable512) primitives.cu[log2TrSize - 2].psyRdoQuant(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos); else @ 1.2 log @x265: updated to 3.0 Version 3.0 New features option:: ‘–dolby-vision-profile ’ generates bitstreams confirming to the specified Dolby Vision profile. Currently profile 5, profile 8.1 and profile 8.2 enabled, Default 0 (disabled) option:: ‘–dolby-vision-rpu’ File containing Dolby Vision RPU metadata. If given, x265’s Dolby Vision metadata parser will fill the RPU field of input pictures with the metadata read from the file. The library will interleave access units with RPUs in the bitstream. Default NULL (disabled). option:: ‘–zonefile ’ specifies a text file which contains the boundaries of the zones where each of zones are configurable. option:: ‘–qp-adaptation-range’ Delta-QP range by QP adaptation based on a psycho-visual model. Default 1.0. option:: ‘–refine-ctu-distortion <0/1>’ store/normalize ctu distortion in analysis-save/load. Default 0. Experimental feature option:: ‘–hevc-aq’ enables adaptive quantization It scales the quantization step size according to the spatial activity of one coding unit relative to frame average spatial activity. This AQ method utilizes the minimum variance of sub-unit in each coding unit to represent the coding unit’s spatial complexity. Encoder enhancements Preset: change param defaults for veryslow and slower preset. Replace slower preset with defaults used in veryslow preset and change param defaults in veryslow preset as per experimental results. AQ: change default AQ mode to auto-variance Cutree offset reuse: restricted to analysis reuse-level 10 for analysis-save -> analysis-load Tune: introduce –tune animation option which improves encode quality for animated content Reuse CU depth for B frame and allow I, P frame to follow x265 depth decision Bug fixes RC: fix rowStat computation in const-vbv Dynamic-refine: fix memory reset size. Fix linking issue on non x86 platform Encoder: Do not include CLL SEI message if empty Fix build error in VMAF lib @ text @d1 1 a1 1 $NetBSD: patch-common_quant.cpp,v 1.1 2018/12/11 17:55:56 jklos Exp $ d5 1 a5 1 --- common/quant.cpp.orig 2019-01-23 09:47:18.000000000 +0000 d7 16 a22 16 @@@@ -724,7 +724,6 @@@@ uint32_t Quant::rdoQuant(const CUData& c uint32_t scanPosBase = (cgScanPos << MLS_CG_SIZE); uint32_t blkPos = codeParams.scan[scanPosBase]; #if X265_ARCH_X86 - bool enable512 = detect512(); if (enable512) primitives.cu[log2TrSize - 2].psyRdoQuant(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos); else @@@@ -811,7 +810,6 @@@@ uint32_t Quant::rdoQuant(const CUData& c if (usePsyMask) { #if X265_ARCH_X86 - bool enable512 = detect512(); if (enable512) primitives.cu[log2TrSize - 2].psyRdoQuant(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos); else @ 1.1 log @Fix x265 on non-x86 architectures. Patches are from maya@@netbsd.org. Thanks! @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- common/quant.cpp.orig 2018-10-05 12:14:40.000000000 +0000 d7 1 a7 2 @@@@ -723,7 +723,6 @@@@ uint32_t Quant::rdoQuant(const CUData& c X265_CHECK(coeffNum[cgScanPos] == 0, "count of coeff failure\n"); d10 1 d15 1 a15 2 @@@@ -805,8 +804,6 @@@@ uint32_t Quant::rdoQuant(const CUData& c uint32_t blkPos = codeParams.scan[scanPosBase]; d18 1 a19 1 - @