[VDPAU] [PATCH] Support new HEVC / H.265 profiles added in libvdpau 1.4

ManojGuptaBonda mbonda at nvidia.com
Tue Apr 14 10:22:07 UTC 2020


Add names for the new 10,12-Bit surface formats.
Name mappings are required for vdpauinfo to report support is
available. Depend on vdpau >= 1.4 for 10,12-Bit Decode support
---
 configure.ac  | 2 +-
 vdpauinfo.cpp | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 4df48bd..f90d0da 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,7 @@ AM_MAINTAINER_MODE
 AC_PROG_CXX
 AC_PROG_INSTALL
 
-PKG_CHECK_MODULES(VDPAU, x11 [vdpau >= 1.3])
+PKG_CHECK_MODULES(VDPAU, x11 [vdpau >= 1.4])
 VDPAUINFO_CXXFLAGS="$VDPAUINFO_CXXFLAGS $VDPAU_CFLAGS"
 VDPAUINFO_LIBS="$VDPAUINFO_LIBS $VDPAU_LIBS"
 
diff --git a/vdpauinfo.cpp b/vdpauinfo.cpp
index 9db705f..10dbdf3 100644
--- a/vdpauinfo.cpp
+++ b/vdpauinfo.cpp
@@ -64,6 +64,9 @@ Desc chroma_types[] = {
 {"420", VDP_CHROMA_TYPE_420},
 {"422", VDP_CHROMA_TYPE_422},
 {"444", VDP_CHROMA_TYPE_444},
+{"420_16", VDP_CHROMA_TYPE_420_16},
+{"422_16", VDP_CHROMA_TYPE_422_16},
+{"444_16", VDP_CHROMA_TYPE_444_16},
 };
 const size_t chroma_type_count = sizeof(chroma_types)/sizeof(Desc);
 
@@ -76,6 +79,9 @@ Desc ycbcr_types[] = {
 {"V8U8Y8A8", VDP_YCBCR_FORMAT_V8U8Y8A8},
 {"NV24", VDP_YCBCR_FORMAT_Y_UV_444},
 {"YV24", VDP_YCBCR_FORMAT_Y_U_V_444},
+{"P010", VDP_YCBCR_FORMAT_P010},
+{"P016", VDP_YCBCR_FORMAT_P016},
+{"Y_U_V_444_16", VDP_YCBCR_FORMAT_Y_U_V_444_16},
 };
 const size_t ycbcr_type_count = sizeof(ycbcr_types)/sizeof(Desc);
 
@@ -368,6 +374,9 @@ Desc decoder_profiles[] = {
 {"HEVC_MAIN_STILL",             VDP_DECODER_PROFILE_HEVC_MAIN_STILL},
 {"HEVC_MAIN_12",                VDP_DECODER_PROFILE_HEVC_MAIN_12},
 {"HEVC_MAIN_444",               VDP_DECODER_PROFILE_HEVC_MAIN_444},
+{"HEVC_MAIN_444_10",            VDP_DECODER_PROFILE_HEVC_MAIN_444_10},
+{"HEVC_MAIN_444_12",            VDP_DECODER_PROFILE_HEVC_MAIN_444_12},
+
 };
 const size_t decoder_profile_count = sizeof(decoder_profiles)/sizeof(Desc);
 
-- 
2.17.1



More information about the VDPAU mailing list