mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
pzapit: hack for HD51 mix-up letterbox<->panscan
videosettings.cpp: improved debug output for mode_43
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user