Created
April 13, 2013 16:34
-
-
Save paulzhol/5379108 to your computer and use it in GitHub Desktop.
Patch against XBMC 12.1 to disable drawing the window manager icon (seems broken for GLES 2.0 both Intel and PowerVR drivers due to color depth issues), and force the software conversion using ffmpeg libswscale from BCM70015 YUYV packed output to YV12 planner format. This is pretty fast with the optimized SSE/SIMD move instructions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/CrystalHD.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/CrystalHD.cpp | |
index 4b7a12f..dc8cc0b 100644 | |
--- a/xbmc/cores/dvdplayer/DVDCodecs/Video/CrystalHD.cpp | |
+++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/CrystalHD.cpp | |
@@ -850,7 +850,7 @@ bool CMPCOutputThread::GetDecoderOutput(void) | |
if (!pBuffer) | |
{ | |
// No free pre-allocated buffers so make one | |
- if (m_output_YV12) | |
+ if (1 || m_output_YV12) | |
{ | |
// output YV12, nouveau driver has slow NV12, YUY2 capability. | |
pBuffer = new CPictureBuffer(RENDER_FMT_YUV420P, m_width, m_height); | |
diff --git a/xbmc/windowing/X11/WinSystemX11GLES.cpp b/xbmc/windowing/X11/WinSystemX11GLES.cpp | |
index 50185f9..f664f0b 100644 | |
--- a/xbmc/windowing/X11/WinSystemX11GLES.cpp | |
+++ b/xbmc/windowing/X11/WinSystemX11GLES.cpp | |
@@ -157,7 +157,7 @@ bool CWinSystemX11GLES::CreateNewWindow(const CStdString& name, bool fullScreen, | |
CTexture iconTexture; | |
iconTexture.LoadFromFile("special://xbmc/media/icon.png"); | |
- SDL_WM_SetIcon(SDL_CreateRGBSurfaceFrom(iconTexture.GetPixels(), iconTexture.GetWidth(), iconTexture.GetHeight(), BPP, iconTexture.Get | |
+ //SDL_WM_SetIcon(SDL_CreateRGBSurfaceFrom(iconTexture.GetPixels(), iconTexture.GetWidth(), iconTexture.GetHeight(), BPP, iconTexture.G | |
SDL_WM_SetCaption("XBMC Media Center", NULL); | |
m_bWindowCreated = true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment