Only question ir idea ( i am not programmer) on possibilities of upscaling through GLSL of FSRCNNX x2 (8-0-4-1) with support video to 720p or AMD FSR 1 for higher videos as 720p. Maybe in futher is also good utility openNPU: https://github.com/poad42/opennpu_rk3588
AI was able draft code according to patch of https://github.com/CroqueMr/libreelec-CB1/pull/150 for RK 3588 for upscaling standalone for video e.g. 360p:
diff
--- a/xbmc/cores/VideoSettings.h
+++ b/xbmc/cores/VideoSettings.h
@@ -45,6 +45,7 @@ enum ESCALINGMETHOD
VS_SCALINGMETHOD_SPLINE36_OPTIMIZED,
VS_SCALINGMETHOD_LANCZOS3,
VS_SCALINGMETHOD_SPLINE36,
+ VS_SCALINGMETHOD_FSRCNNX,
VS_SCALINGMETHOD_MAX // do not use and keep as last enum value.
};
--- a/xbmc/settings/Settings.cpp
+++ b/xbmc/settings/Settings.cpp
@@ -1120,6 +1120,7 @@ void CSettings::InitializeOptionFillers()
// Video scaling methods
list.emplace_back(16301, VS_SCALINGMETHOD_NEAREST);
list.emplace_back(16302, VS_SCALINGMETHOD_LINEAR);
+ list.emplace_back(16325, VS_SCALINGMETHOD_FSRCNNX);
list.emplace_back(16316, VS_SCALINGMETHOD_AUTO);
}
--- a/xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGLES.h
+++ b/xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGLES.h
@@ -145,6 +145,10 @@ protected:
void RenderToFBO(int index, int field, bool weave = false);
void RenderFromFBO();
+ // FSRCNNX 2x Neural Upscaler FBO & Shader
+ GLuint m_fsrcnnxFBO = 0;
+ GLuint m_fsrcnnxTex = 0;
+ bool InitFSRCNNX(int width, int height);
+ void RenderFSRCNNX(GLuint srcTex, int width, int height);
+
ESCALINGMETHOD m_scalingMethod = VS_SCALINGMETHOD_LINEAR;
ESCALINGMETHOD m_scalingMethodGui = VS_SCALINGMETHOD_MAX;
Display More