[x265] [PATCH] x265: Update DV P5 VUI defaults to ITU-T H.265 (07/2024)
Uthayakumar Muthu
uthayakumar.muthu at multicorewareinc.com
Thu Mar 5 11:53:17 UTC 2026
From 6a40ee3a3129e74a8663591af2a23abe8125ec5b Mon Sep 17 00:00:00 2001
From: Uthayakumar Muthu <uthayakumar.muthu at multicorewareinc.com>
Date: Thu, 5 Mar 2026 16:56:30 +0530
Subject: [PATCH] x265: 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 +-
source/x265cli.cpp | 2 +-
5 files changed, 6 insertions(+), 5 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 9d2ee6686..7dd58ab1f 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 c4a6aae75..0ce711ba9 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 221b6bfaf..b6257c436 100644
--- a/source/x265.h
+++ b/source/x265.h
@@ -751,7 +751,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 };
diff --git a/source/x265cli.cpp b/source/x265cli.cpp
index 6355ee15d..64b740090 100755
--- a/source/x265cli.cpp
+++ b/source/x265cli.cpp
@@ -327,7 +327,7 @@ namespace X265_NS {
H0(" smpte240m, linear, log100, log316, iec61966-2-4, bt1361e, iec61966-2-1,\n");
H0(" bt2020-10, bt2020-12, smpte2084, smpte428, arib-std-b67. Default unknown\n");
H1(" --colormatrix <string> Specify color matrix setting from unknown, bt709, fcc, bt470bg, smpte170m,\n");
- H1(" smpte240m, gbr, ycgco, bt2020nc, bt2020c, smpte2085, chroma-derived-nc, chroma-derived-c, ictcp. Default unknown\n");
+ H1(" smpte240m, gbr, ycgco, bt2020nc, bt2020c, smpte2085, chroma-derived-nc, chroma-derived-c, ictcp, ipt-pq-c2. Default unknown\n");
H1(" --chromaloc <integer> Specify chroma sample location (0 to 5). Default of %d\n", param->vui.chromaSampleLocTypeTopField);
H0(" --master-display <string> SMPTE ST 2086 master display color volume info SEI (HDR)\n");
H0(" format: G(x,y)B(x,y)R(x,y)WP(x,y)L(max,min)\n");
--
2.43.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20260305/c3069a5a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x265-Update-DV-P5-VUI-defaults-to-ITU-T-H.265-07-202.patch
Type: application/octet-stream
Size: 4774 bytes
Desc: 0001-x265-Update-DV-P5-VUI-defaults-to-ITU-T-H.265-07-202.patch
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20260305/c3069a5a/attachment-0001.obj>
More information about the x265-devel
mailing list