42 if (strcmp(Name,
"Resolution") == 0)
Resolution = atoi(Value);
44 else if (strcmp(Name,
"TvFormat") == 0)
TvFormat = atoi(Value);
45 else if (strcmp(Name,
"VideoConversion") == 0)
VideoConversion = atoi(Value);
46 else if (strcmp(Name,
"AnalogueVideo") == 0)
AnalogueVideo = atoi(Value);
47 else if (strcmp(Name,
"AudioDelay") == 0)
AudioDelay = atoi(Value);
48 else if (strcmp(Name,
"AudioDownmix") == 0)
AudioDownmix = atoi(Value);
49 else if (strcmp(Name,
"OsdSize") == 0)
OsdSize = atoi(Value);
50 else if (strcmp(Name,
"CecEnabled") == 0)
CecEnabled = atoi(Value);
51 else if (strcmp(Name,
"CecTvOn") == 0)
CecTvOn = atoi(Value);
52 else if (strcmp(Name,
"CecTvOff") == 0)
CecTvOff = atoi(Value);
53 else if (strcmp(Name,
"RemoteProtocol") == 0)
RemoteProtocol = atoi(Value);
54 else if (strcmp(Name,
"RemoteAddress") == 0)
RemoteAddress = atoi(Value);
55 else if (strcmp(Name,
"HighLevelOsd") == 0)
HighLevelOsd = atoi(Value);
56 else if (strcmp(Name,
"TrueColorOsd") == 0)
TrueColorOsd = atoi(Value);
57 else if (strcmp(Name,
"HideMainMenu") == 0)
HideMainMenu = atoi(Value);
78 PixelAspect = 16.0 / 9.0;
80 PixelAspect = 4.0 / 3.0;
85 PixelAspect = 16.0 / 9.0;
90 PixelAspect = 16.0 / 9.0;
95 PixelAspect = 16.0 / 9.0;
100 PixelAspect = 4.0 / 3.0;
102 PixelAspect /= double(Width) / Height;
167 return tr(
"Automatic");
169 return tr(
"Letterbox 16/9");
171 return tr(
"Letterbox 14/9");
173 return tr(
"Pillarbox");
175 return tr(
"CentreCutOut");
177 return tr(
"Always 16/9");
179 return tr(
"Zoom 16/9");
186 const int kResolutions = 4;
187 const int kVideoModeAdaptions = 4;
188 const int kTvFormats = 2;
189 const int kAnalogueVideos = 4;
190 const int kAudioDownmixes = 5;
191 const int kOsdSizes = 5;
192 const int kRemoteProtocols = 3;
194 static const char * ResolutionItems[kResolutions] =
202 static const char * VideoModeAdaptionItems[kVideoModeAdaptions] =
210 static const char * TvFormatItems[kTvFormats] =
216 static const char * AnalogueVideoItems[kAnalogueVideos] =
224 static const char * AudioDownmixItems[kAudioDownmixes] =
233 static const char * OsdSizeItems[kOsdSizes] =
235 tr(
"Follow resolution"),
242 static const char * RemoteProtocolItems[] =
312 const int kVideoConversions4by3 = 3;
313 const int kVideoConversions16by9 = 4;
315 static const char * VideoConversionItems4by3[kVideoConversions4by3] =
317 tr(
"Letterbox 16/9"),
318 tr(
"Letterbox 14/9"),
322 static const char * VideoConversionItems16by9[kVideoConversions16by9] =
336 kVideoConversions16by9, VideoConversionItems16by9);
341 kVideoConversions4by3, VideoConversionItems4by3);
418 memset(&hdmiConfig, 0,
sizeof(hdmiConfig));