📄 osd.lst
字号:
264 2 else
265 2 {
266 3 PrintChar(HexTab[value/Level], color);
267 3 value=value%Level;
268 3 Level=Level/10;
269 3 }
270 2 }
271 1 }
272
273 #if 0
void ClearOSDRegion(BYTE startX, BYTE startY, BYTE color)
{/*
BYTE i;
for(i=0;i<=MainPageYEnd;i++)
{
gotoxy(startX,startY+i);
PrintString(EmptyString,MainPageItemLength,color);
} */
DisableOSD();
OSDConVal=BSEN;
EnableOSDRAMClr();
EnableOSDWinClr();
DoWait(5);
DisableOSDWinClr();
DisableOSDRAMClr();
}
#endif
291
292 void InitialOSD(void)
293 {
294 1
295 1 DisableOSD();
296 1 OSDConVal=BSEN;
297 1 EnableOSDRAMClr();
298 1 EnableOSDWinClr();
299 1 DoWait(50);
300 1 DisableOSDWinClr();
301 1 DisableOSDRAMClr();
302 1 }
C51 COMPILER V7.09 OSD 09/06/2006 13:39:48 PAGE 6
303
304 void InitialFlag(void)
305 {
306 1 bDEMOFlag = 0;
307 1 bMenuFlag = 0;
308 1 bSubMenuFlag=0;
309 1 bClrFlag=0;
310 1 bSwapFlag=0;
311 1 bFactoryflag = 0;
312 1
313 1 bGammaFlag=0;
314 1 MenuFlagState = 0;
315 1
316 1 PowerFlag = 0;
317 1 FormatValue=0;
318 1
319 1 SourceFlag=0; //AV1
320 1 NTSCFlag = 1; //NTSC
321 1
322 1 bNoSync = 1;
323 1 bVsyncChange = 1;
324 1 bNTSCVideo = 1;
325 1 byVideoMode = NoVideoInout;
326 1 SyncStep = 0;
327 1
328 1 OldSyncPulse[0] = 0xFFFF; //Initial the Sync Counter Variable
329 1 OldSyncPulse[1] = 0xFFFF;
330 1
331 1 bRotationFlag = 0;
332 1
333 1 FactoryFg = 0;
334 1
335 1 SyncSW = 0;
336 1 WIDEBLKPOL = 0;
337 1 VSW = 0;
338 1 ColorSys = 0;
339 1
340 1
341 1 }
342
343 void GammaMenu(void)
344 {
345 1 if(bFactoryflag)
346 1 {
347 2 gotoxy(1,7);
348 2 PrintChar(_F,Red);
349 2 }
350 1 else
351 1 {
352 2 gotoxy(1,7);
353 2 PrintChar(__,MainPageColor);
354 2 }
355 1
356 1 gotoxy(MainPageXStart,MainPageYStart);
357 1 PrintByteString(VG1Str,MainPageItemLength,MainPageCharColor);
358 1 gotoxy(MainPageXStart,MainPageYStart+1);
359 1 PrintByteString(VG2Str,MainPageItemLength,MainPageCharColor);
360 1 gotoxy(MainPageXStart,MainPageYStart+2);
361 1 PrintByteString(ComAMP,MainPageItemLength,MainPageCharColor);
362 1 gotoxy(MainPageXStart,MainPageYStart+3);
363 1 PrintByteString(COMDC,MainPageItemLength,MainPageCharColor);
364 1 gotoxy(MainPageXStart,MainPageYStart+4);
C51 COMPILER V7.09 OSD 09/06/2006 13:39:48 PAGE 7
365 1 PrintByteString(SDriveRed,MainPageItemLength,MainPageCharColor);
366 1 gotoxy(MainPageXStart,MainPageYStart+5);
367 1 PrintByteString(SDriveGreen,MainPageItemLength,MainPageCharColor);
368 1 gotoxy(MainPageXStart,MainPageYStart+6);
369 1 PrintByteString(SDriveBlue,MainPageItemLength,MainPageCharColor);
370 1 gotoxy(MainPageXStart,MainPageYStart+7);
371 1 PrintByteString(ReturnStr,MainPageItemLength,MainPageCharColor);
372 1 }
373
374 void VideoMenu(void)
375 {
376 1 EnableOSDRAMClr();
377 1 EnableOSDWinClr();
378 1 DisableOSD();
379 1
380 1 if(bFactoryflag)
381 1 {
382 2 gotoxy(1,7);
383 2 PrintChar(_F,Red);
384 2 }
385 1 else
386 1 {
387 2 gotoxy(1,7);
388 2 PrintChar(__,MainPageColor);
389 2 }
390 1
391 1 //gotoxy(MainPageXStart,MainPageYStart);
392 1 //PrintString(Saturation_Item,MainPageItemLength,MainPageCharColor);
393 1 gotoxy(MainPageXStart,MainPageYStart);
394 1 PrintString(VideoColor_Item,sizeof(VideoColor_Item),MainPageCharColor);
395 1 //gotoxy(MainPageXStart,MainPageYStart+2);
396 1 //PrintString(Hue_Item,MainPageItemLength,MainPageCharColor);
397 1 //gotoxy(MainPageXStart,MainPageYStart+3);
398 1 //PrintString(Contrast_Item,MainPageItemLength,MainPageCharColor);
399 1 //gotoxy(MainPageXStart,MainPageYStart+3);
400 1 //PrintString(Sharpness_Item,MainPageItemLength,MainPageCharColor);
401 1
402 1 gotoxy(MainPageXStart,MainPageYStart+1);
403 1 PrintString(Rotation_Item,sizeof(Rotation_Item),MainPageCharColor);
404 1
405 1 gotoxy(MainPageXStart,MainPageYStart+2);
406 1 PrintString(Format_Item,sizeof(Format_Item),MainPageCharColor);
407 1
408 1 gotoxy(MainPageXStart,MainPageYStart+3);
409 1 PrintByteString(Gamma_Item,sizeof(Gamma_Item),MainPageCharColor);
410 1
411 1 gotoxy(MainPageXStart,MainPageYStart+4);
412 1 PrintByteString(InputSource_Item,sizeof(InputSource_Item),MainPageCharColor);
413 1
414 1 gotoxy(MainPageXStart,MainPageYStart+5);
415 1 PrintByteString(OSDPosition_Item,sizeof(OSDPosition_Item),MainPageCharColor);
416 1
417 1 gotoxy(MainPageXStart,MainPageYStart+6);
418 1 PrintString(VideoPosition_Item,sizeof(VideoPosition_Item),MainPageCharColor);
419 1
420 1 gotoxy(MainPageXStart,MainPageYStart+7);
421 1 PrintString(VideoDafaultStr,sizeof(VideoDafaultStr),MainPageCharColor);
422 1
423 1 gotoxy(MainPageXStart,MainPageYStart+8);
424 1 PrintString(ExitStr,sizeof(ExitStr),Red);
425 1 // gotoxy(MainPageXStart,MainPageYStart+6);
426 1 // gotoxy(MainPageXStart,MainPageYStart+7);
C51 COMPILER V7.09 OSD 09/06/2006 13:39:48 PAGE 8
427 1 // PrintString(Exit_Item[sOSD.LANGUAGE],MainPageItemLength,Red);
428 1 // PrintString(OSDSetup_Item[sOSD.LANGUAGE],MainPageItemLength,White);
429 1 // PrintString(Contrast_Item[sOSD.LANGUAGE],MainPageItemLength,MainPageCharColor);
430 1 // PrintString(OSDHPosition_Item[sOSD.LANGUAGE],MainPageItemLength,MainPageCharColor);
431 1 // gotoxy(MainPageXStart,MainPageYStart+5);
432 1 // PrintString(OSDVPosition_Item[sOSD.LANGUAGE],MainPageItemLength,MainPageCharColor);
433 1 }
434
435
436 #ifdef _MTV332_
437 void Disp_NTSC_Mode(void)
438 {
439 1
440 1 Set_TintPWM = 0xAF;
441 1
442 1 byMTV_TCONADDR = 0x0b; // 0x00 ~ 0x1d
443 1 byMTV_TCONDATA = 0x88;
444 1
445 1 if(bVsyncChange){
446 2 InitialOSD();
447 2 gotoxy(20,0);
448 2 PrintChar(__,MainPageColor);
449 2 PrintString(NTSC_STR,MainPageItemLength,MainPageCharColor);
450 2 EnableOSD();
451 2 bVsyncChange = 0;
452 2 }
453 1 }
454
455 void Disp_PAL_Mode(void)
456 {
457 1
458 1 Set_TintPWM = 0x00;
459 1 byMTV_TCONADDR = 0x0b; // 0x00 ~ 0x1d
460 1 byMTV_TCONDATA = 0x85;
461 1
462 1 if(bVsyncChange){
463 2 InitialOSD();
464 2 gotoxy(20,0);
465 2 PrintChar(__,MainPageColor);
466 2 PrintString(PAL_STR,MainPageItemLength,MainPageCharColor);
467 2 EnableOSD();
468 2 bVsyncChange =0;
469 2 }
470 1 }
471 #endif
472
473 void Disp_NoSync_Input(void)
474 {
475 1 if(bVsyncChange)
476 1 {
477 2 InitialOSD();
478 2 gotoxy(20,0);
479 2 PrintChar(__,MainPageColor);
480 2 PrintString(NoSyncInput_STR,MainPageItemLength,MainPageCharColor);
481 2 EnableOSD();
482 2 bVsyncChange = 0;
483 2 }
484 1 }
485
486 void Disp_EmptyString(void)
487 {
488 1 BYTE i;
C51 COMPILER V7.09 OSD 09/06/2006 13:39:48 PAGE 9
489 1 for( i = 0; i < 15; i++)
490 1 {
491 2 gotoxy(0,i);
492 2 PrintString(EmptyString,30,MainPageColor);
493 2 }
494 1
495 1 }
496
497 #ifdef _DebugMsg_
498 void Disp_DebugMsg(void)
499 {
500 1 gotoxy(26,1);
501 1 PrintString(DEBUG_STR,1,Magenta);
502 1 EnableOSD();
503 1 }
504 #endif
505
506 #if 0
void VideoSetupMenu(void)
{
}
void VideoBrightMenu(void)
{
if(bFactoryflag)
{
gotoxy(1,7);
PrintChar(_F,Red);
}
else
{
gotoxy(1,7);
PrintChar(__,MainPageColor);
}
OpenWindow(MainPageWinNo,MainPageXStart,MainPageYStart,MainPageXEnd,MainPageYEnd,MainPageColor);
//OpenWindow(BackGroundWinNo,BackGroundXStart,BackGroundYStart,BackGroundXEnd,BackGroundYEnd,BackGroundCo
-lor);
gotoxy(MainPageXStart,MainPageYStart);
PrintString(Brightness_Item[sOSD.LANGUAGE],MainPageItemLength,MainPageCharColor);
gotoxy(MainPageXStart,MainPageYStart+1);
PrintString(Contrast_Item[sOSD.LANGUAGE],MainPageItemLength,MainPageCharColor);
gotoxy(MainPageXStart,MainPageYStart+2);
PrintString(Exit_Item[sOSD.LANGUAGE],MainPageItemLength,Red);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -