mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
Merge pull request #6092 from HiassofT/le10-kodi-deinterlace
[le10] RPi: add kodi patches for deinterlacing and 10/12bit video output
This commit is contained in:
commit
5ae77b2e84
1007
projects/RPi/patches/kodi/kodi-001-deinterlace.patch
Normal file
1007
projects/RPi/patches/kodi/kodi-001-deinterlace.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,47 @@
|
||||
From a6ae5efa976dc0d2c3ca5cf431e6411baafdac29 Mon Sep 17 00:00:00 2001
|
||||
From: Dom Cobley <popcornmix@gmail.com>
|
||||
Date: Fri, 3 Dec 2021 16:00:50 +0000
|
||||
Subject: [PATCH] gbm: Set max bpc for high bit depth videos
|
||||
|
||||
---
|
||||
.../HwDecRender/VideoLayerBridgeDRMPRIME.cpp | 16 +++++++++++++++-
|
||||
1 file changed, 15 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp
|
||||
index 4f07ffc0b8..64574b2467 100644
|
||||
--- a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp
|
||||
+++ b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp
|
||||
@@ -35,8 +35,15 @@ void CVideoLayerBridgeDRMPRIME::Disable()
|
||||
m_DRM->AddProperty(plane, "FB_ID", 0);
|
||||
m_DRM->AddProperty(plane, "CRTC_ID", 0);
|
||||
|
||||
- // disable HDR metadata
|
||||
auto connector = m_DRM->GetConnector();
|
||||
+
|
||||
+ // reset max bpc back to default of 8
|
||||
+ int bpc = 8;
|
||||
+ bool result = m_DRM->AddProperty(connector, "max bpc", bpc);
|
||||
+ CLog::Log(LOGDEBUG, "CVideoLayerBridgeDRMPRIME::{} - setting max bpc to {} ({})", __FUNCTION__,
|
||||
+ bpc, result);
|
||||
+
|
||||
+ // disable HDR metadata
|
||||
if (connector->SupportsProperty("HDR_OUTPUT_METADATA"))
|
||||
{
|
||||
m_DRM->AddProperty(connector, "HDR_OUTPUT_METADATA", 0);
|
||||
@@ -173,6 +180,13 @@ void CVideoLayerBridgeDRMPRIME::Configure(CVideoBufferDRMPRIME* buffer)
|
||||
m_DRM->AddProperty(plane, "COLOR_RANGE", value);
|
||||
|
||||
auto connector = m_DRM->GetConnector();
|
||||
+
|
||||
+ // set max bpc to allow the drm driver to choose a deep colour mode
|
||||
+ int bpc = picture.colorBits > 8 ? 12 : 8;
|
||||
+ result = m_DRM->AddProperty(connector, "max bpc", bpc);
|
||||
+ CLog::Log(LOGDEBUG, "CVideoLayerBridgeDRMPRIME::{} - setting max bpc to {} ({})", __FUNCTION__,
|
||||
+ bpc, result);
|
||||
+
|
||||
if (connector->SupportsProperty("HDR_OUTPUT_METADATA"))
|
||||
{
|
||||
m_hdr_metadata.metadata_type = HDMI_STATIC_METADATA_TYPE1;
|
||||
--
|
||||
2.30.2
|
||||
|
@ -1,13 +1,13 @@
|
||||
From a6834e2b37fa968c2cb7f57c6198d7ecb03f8583 Mon Sep 17 00:00:00 2001
|
||||
From 74142da97eddf6792146d4b2641a46f88cf37123 Mon Sep 17 00:00:00 2001
|
||||
From: Lukas Rusak <lorusak@gmail.com>
|
||||
Date: Mon, 29 Apr 2019 18:48:45 -0700
|
||||
Subject: [PATCH] CVideoLayerBridgeDRMPRIME add colourspace connector property
|
||||
|
||||
---
|
||||
.../Buffers/VideoBufferDRMPRIME.cpp | 12 ++++++++++
|
||||
.../Buffers/VideoBufferDRMPRIME.cpp | 12 ++++++++++++
|
||||
.../VideoPlayer/Buffers/VideoBufferDRMPRIME.h | 1 +
|
||||
.../HwDecRender/VideoLayerBridgeDRMPRIME.cpp | 22 ++++++++++++++++++-
|
||||
3 files changed, 34 insertions(+), 1 deletion(-)
|
||||
.../HwDecRender/VideoLayerBridgeDRMPRIME.cpp | 19 +++++++++++++++++++
|
||||
3 files changed, 32 insertions(+)
|
||||
|
||||
diff --git a/xbmc/cores/VideoPlayer/Buffers/VideoBufferDRMPRIME.cpp b/xbmc/cores/VideoPlayer/Buffers/VideoBufferDRMPRIME.cpp
|
||||
index b85097d37b..037f66db72 100644
|
||||
@ -45,39 +45,35 @@ index e77f75b58b..4de9732308 100644
|
||||
std::string GetColorRange(const VideoPicture& picture);
|
||||
uint8_t GetEOTF(const VideoPicture& picture);
|
||||
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp
|
||||
index 4f07ffc0b8..c78636b680 100644
|
||||
index 64574b2467..efb3938080 100644
|
||||
--- a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp
|
||||
+++ b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VideoLayerBridgeDRMPRIME.cpp
|
||||
@@ -35,8 +35,18 @@ void CVideoLayerBridgeDRMPRIME::Disable()
|
||||
m_DRM->AddProperty(plane, "FB_ID", 0);
|
||||
m_DRM->AddProperty(plane, "CRTC_ID", 0);
|
||||
@@ -43,6 +43,16 @@ void CVideoLayerBridgeDRMPRIME::Disable()
|
||||
CLog::Log(LOGDEBUG, "CVideoLayerBridgeDRMPRIME::{} - setting max bpc to {} ({})", __FUNCTION__,
|
||||
bpc, result);
|
||||
|
||||
- // disable HDR metadata
|
||||
auto connector = m_DRM->GetConnector();
|
||||
+
|
||||
+ bool result;
|
||||
+ uint64_t value;
|
||||
+ std::tie(result, value) = connector->GetPropertyValue("Colorspace", "Default");
|
||||
+ if (result)
|
||||
+ {
|
||||
+ CLog::Log(LOGDEBUG, "CVideoLayerBridgeDRMPRIME::{} - setting connector colorspace to Default", __FUNCTION__);
|
||||
+ CLog::Log(LOGDEBUG, "CVideoLayerBridgeDRMPRIME::{} - setting connector colorspace to Default",
|
||||
+ __FUNCTION__);
|
||||
+ m_DRM->AddProperty(connector, "Colorspace", value);
|
||||
+ m_DRM->SetActive(true);
|
||||
+ }
|
||||
+
|
||||
+ // disable HDR metadata
|
||||
// disable HDR metadata
|
||||
if (connector->SupportsProperty("HDR_OUTPUT_METADATA"))
|
||||
{
|
||||
m_DRM->AddProperty(connector, "HDR_OUTPUT_METADATA", 0);
|
||||
@@ -173,6 +183,16 @@ void CVideoLayerBridgeDRMPRIME::Configure(CVideoBufferDRMPRIME* buffer)
|
||||
m_DRM->AddProperty(plane, "COLOR_RANGE", value);
|
||||
@@ -187,6 +197,15 @@ void CVideoLayerBridgeDRMPRIME::Configure(CVideoBufferDRMPRIME* buffer)
|
||||
CLog::Log(LOGDEBUG, "CVideoLayerBridgeDRMPRIME::{} - setting max bpc to {} ({})", __FUNCTION__,
|
||||
bpc, result);
|
||||
|
||||
auto connector = m_DRM->GetConnector();
|
||||
+
|
||||
+ std::tie(result, value) = connector->GetPropertyValue("Colorspace", GetColorimetry(picture));
|
||||
+ std::tie(result, value) = connector->GetPropertyValue("Colorspace", GetColorimetry(picture));
|
||||
+ if (result)
|
||||
+ {
|
||||
+ CLog::Log(LOGDEBUG, "CVideoLayerBridgeDRMPRIME::{} - setting connector colorspace to {}", __FUNCTION__,
|
||||
+ GetColorimetry(picture));
|
||||
+ CLog::Log(LOGDEBUG, "CVideoLayerBridgeDRMPRIME::{} - setting connector colorspace to {}",
|
||||
+ __FUNCTION__, GetColorimetry(picture));
|
||||
+ m_DRM->AddProperty(connector, "Colorspace", value);
|
||||
+ m_DRM->SetActive(true);
|
||||
+ }
|
||||
@ -86,5 +82,5 @@ index 4f07ffc0b8..c78636b680 100644
|
||||
{
|
||||
m_hdr_metadata.metadata_type = HDMI_STATIC_METADATA_TYPE1;
|
||||
--
|
||||
2.20.1
|
||||
2.30.2
|
||||
|
Loading…
x
Reference in New Issue
Block a user