[x265] [PATCH] Update DV P5 VUI defaults to ITU-T H.265 (07/2024) values

Uthayakumar Muthu uthayakumar.muthu at multicorewareinc.com
Thu Mar 5 04:30:18 UTC 2026


updated patch with the --colormatrix help message Fix.
________________________________
From: Uthayakumar Muthu
Sent: 04 March 2026 16:57
To: x265-devel at videolan.org <x265-devel at videolan.org>
Subject: [x265] [PATCH] Update DV P5 VUI defaults to ITU-T H.265 (07/2024) values

From 1fbd23f2b31f3ea8f16aec7b534099d6722452c5 Mon Sep 17 00:00:00 2001
From: Uthayakumar Muthu <uthayakumar.muthu at multicorewareinc.com>
Date: Tue, 28 Oct 2025 10:49:25 +0530
Subject: [PATCH] Update DV P5 VUI defaults to ITU-T H.265 (07/2024) values

---
 doc/reST/cli.rst           | 1 +
 source/common/param.cpp    | 4 ++--
 source/encoder/encoder.cpp | 2 +-
 source/x265.h              | 2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/doc/reST/cli.rst b/doc/reST/cli.rst
index 6bb99f92e..d42cb52fd 100755
--- a/doc/reST/cli.rst
+++ b/doc/reST/cli.rst
@@ -2369,6 +2369,7 @@ VUI fields must be manually specified.
      12. chroma-derived-nc
      13. chroma-derived-c
      14. ictcp
+     15. ipt-pq-c2

 .. option:: --chromaloc <0..5>

diff --git a/source/common/param.cpp b/source/common/param.cpp
index 1ba25113b..5f1b0b0e8 100755
--- a/source/common/param.cpp
+++ b/source/common/param.cpp
@@ -1810,10 +1810,10 @@ int x265_check_params(x265_param* param)
           " smpte170m, smpte240m, linear, log100, log316, iec61966-2-4, bt1361e,"
           " iec61966-2-1, bt2020-10, bt2020-12, smpte-st-2084, smpte-st-428 or arib-std-b67");
     CHECK(param->vui.matrixCoeffs < 0
-          || param->vui.matrixCoeffs > 14
+          || param->vui.matrixCoeffs > 15
           || param->vui.matrixCoeffs == 3,
           "Matrix Coefficients must be unknown, bt709, fcc, bt470bg, smpte170m,"
-          " smpte240m, gbr, ycgco, bt2020nc, bt2020c, smpte-st-2085, chroma-nc, chroma-c or ictcp");
+          " smpte240m, gbr, ycgco, bt2020nc, bt2020c, smpte-st-2085, chroma-nc, chroma-c, ictcp or ipt-pq-c2");
     CHECK(param->vui.chromaSampleLocTypeTopField < 0
           || param->vui.chromaSampleLocTypeTopField > 5,
           "Chroma Sample Location Type Top Field must be 0-5");
diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp
index 7b919d263..b8fe5c2ee 100644
--- a/source/encoder/encoder.cpp
+++ b/source/encoder/encoder.cpp
@@ -70,7 +70,7 @@ typedef struct

 DolbyVisionProfileSpec dovi[] =
 {
-    { 1, 1, 1, 1, 1, 5, 1,  2, 2, 2, 50 },
+    { 1, 1, 1, 1, 1, 5, 1, 16, 9, 15, 50 },
     { 1, 1, 1, 1, 1, 5, 0, 16, 9, 9, 81 },
     { 1, 1, 1, 1, 1, 5, 0,  1, 1, 1, 82 },
     { 1, 1, 1, 1, 1, 5, 0, 18, 9, 9, 84 }
diff --git a/source/x265.h b/source/x265.h
index afd629d61..abaf10264 100644
--- a/source/x265.h
+++ b/source/x265.h
@@ -750,7 +750,7 @@ static const char * const x265_transfer_names[] = { "reserved", "bt709", "unknow
                                                     "log316", "iec61966-2-4", "bt1361e", "iec61966-2-1", "bt2020-10", "bt2020-12",
                                                     "smpte2084", "smpte428", "arib-std-b67", 0 };
 static const char * const x265_colmatrix_names[] = { "gbr", "bt709", "unknown", "", "fcc", "bt470bg", "smpte170m", "smpte240m",
-                                                     "ycgco", "bt2020nc", "bt2020c", "smpte2085", "chroma-derived-nc", "chroma-derived-c", "ictcp", 0 };
+                                                     "ycgco", "bt2020nc", "bt2020c", "smpte2085", "chroma-derived-nc", "chroma-derived-c", "ictcp", "ipt-pq-c2", 0 };
 static const char * const x265_sar_names[] = { "unknown", "1:1", "12:11", "10:11", "16:11", "40:33", "24:11", "20:11",
                                                "32:11", "80:33", "18:11", "15:11", "64:33", "160:99", "4:3", "3:2", "2:1", 0 };
 static const char * const x265_interlace_names[] = { "prog", "tff", "bff", 0 };
--
2.39.2


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20260305/c0a47b7e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Update-DV-P5-VUI-defaults-to-ITU-T-H.265-07-2024-val.patch
Type: application/octet-stream
Size: 4767 bytes
Desc: 0001-Update-DV-P5-VUI-defaults-to-ITU-T-H.265-07-2024-val.patch
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20260305/c0a47b7e/attachment-0001.obj>


More information about the x265-devel mailing list