pzapit: hack for HD51 mix-up letterbox<->panscan

videosettings.cpp: improved debug output for mode_43
This commit is contained in:
GetAway
2018-04-26 09:14:44 +02:00
parent 6a9150d898
commit 1ae5c80dda
2 changed files with 15 additions and 1 deletions

View File

@@ -629,7 +629,13 @@ bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void * /*
void CVideoSettings::next43Mode(void)
{
printf("[neutrino VideoSettings] %s setting 43Mode...\n", __FUNCTION__);
printf("[neutrino VideoSettings] %s setting 43Mode -> ", __FUNCTION__);
#if HAVE_ARM_HARDWARE
/* HD51 has non standard order */
static const char *m[] = { "letterbox", "panscan", "bestfit", "nonlinear", "(unset)" };
#else
static const char *m[] = { "panscan", "letterbox", "bestfit", "nonlinear", "(unset)" };
#endif
neutrino_locale_t text;
unsigned int curmode = 0;
@@ -646,6 +652,7 @@ void CVideoSettings::next43Mode(void)
text = videomenu_43mode_options[curmode].value;
g_settings.video_43mode = videomenu_43mode_options[curmode].key;
g_Zapit->setMode43(g_settings.video_43mode);
printf("%s\n", m[g_settings.video_43mode]);
#ifdef ENABLE_PIP
pipDecoder->setAspectRatio(-1, g_settings.video_43mode);
#endif

View File

@@ -505,11 +505,18 @@ int main (int argc, char** argv)
if (mode43)
{
#if HAVE_ARM_HARDWARE
/* hack for mix-up letterbox / panscan */
m43 = (m43 == 0 || m43 == 1) ? !m43 : m43;
#endif
if(m43 >= 0)
zapit.setMode43(m43);
else
{
zapit.getMode43(&m43);
#if HAVE_ARM_HARDWARE
m43 = (m43 == 0 || m43 == 1) ? !m43 : m43;
#endif
printf("%d\n",m43);
}
return 0;