2006-10-15, 20:47
for some movie have wrong PixelRatio get from Mplayer, i made a new VideoMode for replace VIEW_MODE_ORIGINAL (this mode is few to use).
http://forum.xbmc.org/showthread.php?tid=21673
with jmarshall help , i make it down, it work pefect and easy to use , but today i found if use movie stack , use this mode in second files in stack or 3rd files , this PixelRatio will wrong , the screen will blank, it's see stack mode g_application.m_pPlayer->GetVideoAspectRatio is not work right in second files or 3rd files and next files. if stop movie then resume play , work again.
it see fAR is same with fSourceFrameRatio.
can help me to fix this code work with stack mode?
i sguesst add this view mode offical , it's so useful to some moive , and easy to use than use coustom PixelRatio .
http://forum.xbmc.org/showthread.php?tid=21673
with jmarshall help , i make it down, it work pefect and easy to use , but today i found if use movie stack , use this mode in second files in stack or 3rd files , this PixelRatio will wrong , the screen will blank, it's see stack mode g_application.m_pPlayer->GetVideoAspectRatio is not work right in second files or 3rd files and next files. if stop movie then resume play , work again.
Code:
else // if (g_stSettings.m_currentVideoSettings.m_ViewMode == VIEW_MODE_ORIGINAL)
{
RECT SrcRect, DestRect;
float fAR;
g_application.m_pPlayer->GetVideoRect(SrcRect, DestRect);
g_application.m_pPlayer->GetVideoAspectRatio(fAR);
g_stSettings.m_fZoomAmount = 1.0;
g_stSettings.m_fPixelRatio = (float)(((float)(SrcRect.right - SrcRect.left)/(float)(SrcRect.bottom - SrcRect.top)) / fAR) ;
}
Code:
else // if (g_stSettings.m_currentVideoSettings.m_ViewMode == VIEW_MODE_ORIGINAL)
{
RECT SrcRect, DestRect;
float fAR;
g_application.m_pPlayer->GetVideoRect(SrcRect, DestRect);
g_application.m_pPlayer->GetVideoAspectRatio(fAR);
g_stSettings.m_fZoomAmount = 1.0;
g_stSettings.m_fPixelRatio = (float)(((float)(SrcRect.right - SrcRect.left)/(float)(SrcRect.bottom - SrcRect.top)) / fSourceFrameRatio) ;
}
it see fAR is same with fSourceFrameRatio.
can help me to fix this code work with stack mode?
i sguesst add this view mode offical , it's so useful to some moive , and easy to use than use coustom PixelRatio .