?? useradj.lst
字號:
645 2 //FuncMax = ClockBase - Hresolution - 2;
646 2 //FuncMax = FuncBuf[pCLOCK] - H_Act - 2;
647 2 break;
648 2 case pVPOSITION:
649 2 if(FuncBuf[pVPOSITION] < 2)
650 2 FuncMin = FuncBuf[pVPOSITION]-1;
651 2 else
652 2 FuncMin = 2;
653 2 FuncMax = VTotal - Vresolution + 20;
654 2 break;
655 2 case pOSDHPOSITION:
656 2 FuncMax = 4;
657 2 //FuncMax = (PanelWidth-OSD_WIDTH*12)/5;
658 2 break;
659 2 // Jacky 0201 removed
660 2 // case pOSDVPOSITION:
661 2 // FuncMax = (PanelHeight-OSD_HIGH*18)/5;
662 2 // break;
663 2 case pOSDTIMER:
664 2 FuncMin = 5;
665 2 FuncMax = 60;
666 2 break;
667 2 case pSATURATION:
668 2 FuncMax = 100;
669 2 break;
670 2 case pTINT:
671 2 FuncMax = 100;
672 2 break;
C51 COMPILER V6.12 USERADJ 03/05/2008 14:34:52 PAGE 12
673 2 case pRCOLOR:
674 2 case pGCOLOR:
675 2 case pBCOLOR:
676 2 FuncMax = 255;
677 2 break;
678 2 case pCOLORTEMP:
679 2 FuncMax = MAX_COLOR_TEMP-1;
680 2 break;
681 2 case pLANGUAGE:
682 2 FuncMax = MAX_LANGUAGE-1;
683 2 break;
684 2 case pSHARPNESS:
685 2 if(FuncBuf[pVIDEOSOURCE] < 3)
686 2 FuncMax = 4;
687 2 //else
688 2 // FuncMax = 23;
689 2 break;
690 2 case pTRANSOSD:
691 2 FuncMax = 0x05;
692 2 break;
693 2 case pVIDEOSOURCE:
694 2 if(Saa7114En)
695 2 FuncMax = 4;
696 2 else
697 2 FuncMax = 1;
698 2 break;
699 2 case pVOLUME:
700 2 FuncMax = 100;
701 2 break;
702 2 case pVCMVOL:
703 2 FuncMax = 0xe6;
704 2 FuncMin = 0x63;
705 2 break;
706 2 case pRADC:
707 2 case pGADC:
708 2 case pBADC:
709 2 FuncMax = 255;
710 2 break;
711 2 case pROFFSET:
712 2 case pGOFFSET:
713 2 case pBOFFSET:
714 2 FuncMax = 255;
715 2 break;
716 2 case pContMax:
717 2 FuncMax = 100;
718 2 FuncMin = 0;
719 2 break;
720 2 case pContMin:
721 2 FuncMax = 50;
722 2 FuncMin = 0;
723 2 break;
724 2 case pBrigMax:
725 2 FuncMax = 127;
726 2 FuncMin = 0;
727 2 break;
728 2 case pBrigMin:
729 2 FuncMax = 50;
730 2 FuncMin = 0;
731 2 break;
732 2 case pLIGHTBRIGHT:
733 2 FuncMax = 100;
734 2 //FuncMax = 255;
C51 COMPILER V6.12 USERADJ 03/05/2008 14:34:52 PAGE 13
735 2 break;
736 2 case pLIGHTCONTRAST:
737 2 //FuncMin = 20;
738 2 FuncMax = 100;
739 2 break;
740 2 case pLIGHTHSTART:
741 2 case pLIGHTHWIDTH:
742 2 FuncMin = 0;
743 2 FuncMax = 100;
744 2 break;
745 2 case pLIGHTVSTART:
746 2 case pLIGHTVHIGHT:
747 2 FuncMin = 0;
748 2 FuncMax = 100;
749 2 break;
750 2 };
751 1 }
752
753 void Recall(bit All)
754 {
755 1 Word addr;
756 1 Byte i;
757 1 if(FuncBuf[pVIDEOSOURCE] == 0 ||FuncBuf[pVIDEOSOURCE] == 2)
758 1 {
759 2 if(ModePoint < UserModeSt)
760 2 {
761 3 addr = ModePoint * 8;
762 3 for(i=0; i<6; i++)
763 3 {
764 4 Write24C16(addr+ep_Sync_Data,EEP_SyncMap[addr]);
765 4 addr++;
766 4 }
767 3 addr++;
768 3 Write24C16(addr+ep_Sync_Data,EEP_SyncMap[addr]);
769 3 }
770 2 if(All)
771 2 {
772 3 Write24C16(ep_Brightness,EEP_GeoMap[ep_Brightness-0x200]);
773 3 Write24C16(ep_Contrast,EEP_GeoMap[ep_Contrast-0x200]);
774 3 }
775 2 LoadModeIndependentSettings();
776 2 LoadModeDependentSettings();
777 2 //Write24C16(ep_Color_Ptr,EEP_GeoMap[ep_Color_Ptr-0x200]);
778 2 //FuncBuf[pCOLORTEMP] = Read24C16(ep_Color_Ptr);
779 2 //LoadColor(FuncBuf[pCOLORTEMP]);
780 2 SetADC_PLL();
781 2 SetADC_Phase();
782 2
783 2 if(SyncMode != 3)
784 2 {
785 3 SetHP();
786 3 SetVP();
787 3 }
788 2 if(Interlance){
789 3 WriteWordIIC563(0x032,Vresolution); // Capture V_Active
790 3 }
791 2 else{
792 3 WriteWordIIC563(0x032,Vresolution); // Capture V_Active
793 3 }
794 2 WriteWordIIC563(0x036,Hresolution); // Capture H_Active
795 2 //WriteWordIIC563(0x036,Hresolution + H_ActErrTab[ResolutionPtr]); // Capture H_Active
796 2 //SetScaler();
C51 COMPILER V6.12 USERADJ 03/05/2008 14:34:52 PAGE 14
797 2 SetSharpness();
798 2 //SetBrightness();
799 2 //SetContrast();
800 2 //sRGB();
801 2 }
802 1 if(FuncBuf[pVIDEOSOURCE] == 1)
803 1 {
804 2 //Write24C16(ep_DVI_Contrast,EEP_GeoMap[ep_DVI_Contrast-0x200]);
805 2 Write24C16(ep_Contrast,EEP_GeoMap[ep_Contrast-0x200]);
806 2 Write24C16(ep_Brightness,EEP_GeoMap[ep_Brightness-0x200]);
807 2 Write24C16(ep_Color_Ptr,EEP_GeoMap[ep_Color_Ptr-0x200]);
808 2 //FuncBuf[pCONTRAST] = Read24C16(ep_DVI_Contrast);
809 2 FuncBuf[pCONTRAST] = Read24C16(ep_Contrast);
810 2 FuncBuf[pBRIGHTNESS] = Read24C16(ep_Brightness);
811 2 FuncBuf[pCOLORTEMP] = Read24C16(ep_Color_Ptr);
812 2 SetBrightness();
813 2 LoadColor(FuncBuf[pCOLORTEMP]);
814 2 SetContrast();
815 2 addr = ModePoint * 8;
816 2 Write24C16(addr+ep_Sync_Data,EEP_SyncMap[addr]);
817 2 FuncBuf[pSHARPNESS] = EEP_SyncMap[addr];
818 2 //addr = ep_Shape_Offset + (ModePoint * 8);
819 2 //FuncBuf[pSHARPNESS] = Read24C16(addr);
820 2 SetSharpness();
821 2 }
822 1 /*
823 1 if(FuncBuf[pVIDEOSOURCE] > 2)
824 1 {
825 1 Write24C16(ep_Video_Contrast,EEP_GeoMap[ep_Video_Contrast-0x200]);
826 1 Write24C16(ep_Video_Brightness,EEP_GeoMap[ep_Video_Brightness-0x200]);
827 1 Write24C16(ep_Video_Tint,EEP_GeoMap[ep_Video_Tint-0x200]);
828 1 Write24C16(ep_Video_Saturation,EEP_GeoMap[ep_Video_Saturation-0x200]);
829 1 Write24C16(ep_Video_Shapness,EEP_GeoMap[ep_Video_Shapness-0x200]);
830 1 FuncBuf[pBRIGHTNESS] = Read24C16(ep_Video_Brightness);
831 1 FuncBuf[pCONTRAST] = Read24C16(ep_Video_Contrast);
832 1 FuncBuf[pSATURATION] = Read24C16(ep_Video_Saturation);
833 1 FuncBuf[pSHARPNESS] = Read24C16(ep_Video_Shapness);
834 1 FuncBuf[pTINT] = Read24C16(ep_Video_Tint);
835 1 SetVideoBrightness();
836 1 SetVideoContrast();
837 1 SetVideoSaturation();
838 1 SetVideoSharpness();
839 1 SetVideoTint();
840 1 sRGB(50,(Byte)FuncBuf[pRCOLOR],(Byte)FuncBuf[pGCOLOR],(Byte)FuncBuf[pBCOLOR]);
841 1 }
842 1 */
843 1 //common area
844 1 //---user color
845 1 Write24C16(ep_Color4_R,Read24C16(ep_Color6_R)); //R Gain
846 1 Write24C16(ep_Color4_G,Read24C16(ep_Color6_G)); //G Gain
847 1 Write24C16(ep_Color4_B,Read24C16(ep_Color6_B)); //B Gain
848 1 //---Color tempeture
849 1 Write24C16(ep_Color_Ptr,EEP_GeoMap[ep_Color_Ptr-0x200]); //Reset Color
850 1 //---Osd Timer
851 1 Write24C16(ep_Osd_Timer,EEP_GeoMap[ep_Osd_Timer-0x200]);
852 1 //---Osd Position
853 1 Write24C16(ep_OsdH_Pos,EEP_GeoMap[ep_OsdH_Pos-0x200]);
854 1 //Write24C16(ep_OsdV_Pos,EEP_GeoMap[ep_OsdV_Pos-0x200]);
855 1 //---Osd Effect
856 1 Write24C16(ep_Osd_Effect,EEP_GeoMap[ep_Osd_Effect-0x200]);
857 1 //---Back light
858 1 Write24C16(ep_BackLight,EEP_GeoMap[ep_BackLight-0x200]);
C51 COMPILER V6.12 USERADJ 03/05/2008 14:34:52 PAGE 15
859 1 //---Audio Volume
860 1 Write24C16(ep_Volume,EEP_GeoMap[ep_Volume-0x200]);
861 1 //---Color tempeture
862 1 FuncBuf[pCOLORTEMP] = Read24C16(ep_Color_Ptr);
863 1 //---Osd Timer
864 1 FuncBuf[pOSDTIMER] = Read24C16(ep_Osd_Timer);
865 1 //---Osd Position
866 1 FuncBuf[pOSDHPOSITION] = Read24C16(ep_OsdH_Pos);
867 1 //FuncBuf[pOSDVPOSITION] = Read24C16(ep_OsdV_Pos);
868 1 //---Osd Effect
869 1 FuncBuf[pTRANSOSD] = Read24C16(ep_Osd_Effect);
870 1 //---Back light
871 1 FuncBuf[pBACKLIGHT] = Read24C16(ep_BackLight);
872 1 //---Audio Volume
873 1 FuncBuf[pVOLUME] = Read24C16(ep_Volume);
874 1
875 1 LoadColor(FuncBuf[pCOLORTEMP]);
876 1 SetBrightness();
877 1 SetContrast();
878 1 SetOsdTrans();
879 1 OsdPosition();
880 1 SetInverter();
881 1 SetAudioVolume();
882 1 AudioMute = 0;
883 1 SetAudioMute();
884 1 AutoSetting = 1;
885 1 Write24C16(ep_Status,StatusFlag);
886 1 // Write24C16(ep_Language,EEP_GeoMap[ep_Language-0x200]);
887 1 }
888
889 void LoadModeIndependentSettings(void)
890 {
891 1 Word Addr;
892 1 FuncBuf[pBRIGHTNESS] = Read24C16(ep_Brightness); //0xd0 = FuncBuf[pBRIGHTNESS]
893 1 // if(FuncBuf[pVIDEOSOURCE] == 0)
894 1 FuncBuf[pCONTRAST] = Read24C16(ep_Contrast); //0xd1 = FuncBuf[pCONTRAST]
895 1 // else
896 1 // FuncBuf[pCONTRAST] = Read24C16(ep_DVI_Contrast); //0xd1 = FuncBuf[pCONTRAST]
897 1 if(FuncBuf[pVIDEOSOURCE] == 2){
898 2 FuncBuf[pSATURATION] = Read24C16(ep_sRGB_Saturation); //0xc8 = FuncBuf[pSATURATION]
899 2 FuncBuf[pTINT] = Read24C16(ep_sRGB_Tint); //0xc9 = FuncBuf[pTINT]
900 2 }
901 1 else{
902 2 FuncBuf[pSATURATION] = 50; //0xc8 = FuncBuf[pSATURATION]
903 2 FuncBuf[pTINT] = 50; //0xc9 = FuncBuf[pTINT]
904 2 }
905 1 FuncBuf[pOSDHPOSITION] = Read24C16(ep_OsdH_Pos); //0xdd = osd position x
906 1 // Jacky 0201 removed
907 1 // FuncBuf[pOSDVPOSITION] = Read24C16(ep_OsdV_Pos); //0xdd = osd position y
908 1 FuncBuf[pOSDTIMER] = Read24C16(ep_Osd_Timer); //0xcf = osd timer
909 1 FuncBuf[pLANGUAGE] = Read24C16(ep_Language); //0xe0 = Language
910 1 FuncBuf[pBACKLIGHT2] = Read24C16(ep_sRGB_Backlight);
911 1 FuncBuf[pTRANSOSD] = Read24C16(ep_Osd_Effect);
912 1 if(FuncBuf[pTRANSOSD] > 5)
913 1 FuncBuf[pTRANSOSD] = 0;
914 1 FuncBuf[pCOLORTEMP] = Read24C16(ep_Color_Ptr);
915 1 if(FuncBuf[pCOLORTEMP] >= MAX_COLOR_TEMP)
916 1 FuncBuf[pCOLORTEMP] = 0;
917 1 Addr = FuncBuf[pCOLORTEMP] * 3 + ep_Color1_R; //Select color temperature
918 1 FuncBuf[pRCOLOR] = Read24C16(Addr++);
919 1 FuncBuf[pGCOLOR] = Read24C16(Addr++);
920 1 FuncBuf[pBCOLOR] = Read24C16(Addr);
C51 COMPILER V6.12 USERADJ 03/05/2008 14:34:52 PAGE 16
921 1 FuncBuf[pBACKLIGHT] = Read24C16(ep_BackLight); //0xd5 = FuncBuf[pBACKLIGHT]
922 1 FuncBuf[pVCMVOL] = Read24C16(ep_VCMVol); //0x0f = vcom vol
923 1 FuncBuf[pVOLUME] = Read24C16(ep_Volume); //0xcf = volume
924 1 FuncBuf[pContMax] = Read24C16(ep_ContMax);
925 1 FuncBuf[pContMin] = Read24C16(ep_ContMin);
926 1 FuncBuf[pBrigMax] = Read24C16(ep_BrigMax);
927 1 FuncBuf[pBrigMin] = Read24C16(ep_BrigMin);
928 1
929 1 FuncBuf[pLIGHTCONTRAST] = Read24C16(ep_Light_Contrast);
930 1 FuncBuf[pLIGHTBRIGHT] = Read24C16(ep_Light_Bright);
931 1
932 1 FuncBuf[pLIGHTHSTART] = Read24C16(ep_Light_HSMSB);
933 1 FuncBuf[pLIGHTHSTART] <<= 8;
934 1 FuncBuf[pLIGHTHSTART] |= Read24C16(ep_Light_HSLSB);
935 1 FuncBuf[pLIGHTHWIDTH] = Read24C16(ep_Light_HWMSB);
936 1 FuncBuf[pLIGHTHWIDTH] <<= 8;
937 1 FuncBuf[pLIGHTHWIDTH] |= Read24C16(ep_Light_HWLSB);
938 1 FuncBuf[pLIGHTVSTART] = Read24C16(ep_Light_VSMSB);
939 1 FuncBuf[pLIGHTVSTART] <<= 8;
940 1 FuncBuf[pLIGHTVSTART] |= Read24C16(ep_Light_VSLSB);
941 1 FuncBuf[pLIGHTVHIGHT] = Read24C16(ep_Light_VHMSB);
942 1 FuncBuf[pLIGHTVHIGHT] <<= 8;
943 1 FuncBuf[pLIGHTVHIGHT] |= Read24C16(ep_Light_VHLSB);
944 1
945 1 BackLightTimer = Read24C16(ep_BkLightTime_Offset+3);
946 1 BackLightTimer <<= 8;
947 1 BackLightTimer |= Read24C16(ep_BkLightTime_Offset+2);
948 1 BackLightTimer <<= 8;
949 1 BackLightTimer |= Read24C16(ep_BkLightTime_Offset+1);
950 1 BackLightTimer <<= 8;
951 1 BackLightTimer |= Read24C16(ep_BkLightTime_Offset);
952 1
953 1 }
954
955 void LoadColor(Word Ptr)
956 {
957 1 Word Addr;
958 1 Addr = Ptr * 3 + ep_Color1_R; //Select color temperature
959 1 FuncBuf[pRCOLOR] = Read24C16(Addr++);
960 1 FuncBuf[pGCOLOR] = Read24C16(Addr++);
961 1 FuncBuf[pBCOLOR] = Read24C16(Addr);
962 1 }
963
964 void LoadModeDependentSettings(void)
965 {
966 1 // Sharp,V_BP,H_BP,H_Tatol,Phase
967 1 unsigned short addr;
968 1 addr = ep_Sync_Data + (ModePoint * 8);
969 1 FuncBuf[pSHARPNESS] = Read24C16(addr++);
970 1 FuncBuf[pVPOSITION] = Read24C16(addr++);
971 1 FuncBuf[pHPOSITION] = Read24C16(addr++);
972 1 FuncBuf[pHPOSITION] <<= 8;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -