📄 osddraw.lst
字号:
698 2 Show_Demo_Page();
699 2 break;
700 2 case 1:
701 2 ShowAudioFreqPage();
702 2 break;
703 2 case 2:
704 2 ShowWarning1Page();
705 2 break;
706 2 case 3:
C51 COMPILER V8.08 OSDDRAW 11/08/2007 00:32:37 PAGE 13
707 2 ShowWarning3Page();
708 2 break;
709 2 case 4:
710 2 ShowDVDMenuPage();
711 2 break;
712 2 case 5:
713 2 ShowDialogPage();
714 2 break;
715 2 case 6:
716 2 ShowAnglePage();
717 2 break;
718 2 case 7:
719 2 ShowQueryPage();
720 2 break;
721 2 default:
722 2 break;
723 2 }
724 1 }
725
726
727 void test_message(void)
728 {
729 1
730 1 uCHAR i,j;
731 1 //EX0 = 0; // Disable Externel Interrup 0
732 1 m_bOSD2Showed = 1;
733 1 //OSDDisable();
734 1 //OSDCfgWr(OSD1_CTRL,0x18);
735 1 OSDEnable();
736 1 OSD2Disable();
737 1
738 1 //OSD1ClearMenu(BGND_COLOR_TRANSPERANT|FGND_COLOR_TRANSPERANT);
739 1 OSD2ClearMenu(1);
740 1 //ClosePanel(0, 0x80, 0x80);
741 1 //ClosePanel(0x10, 0xff, 0x40);
742 1 OSDCfgWr(CHAR_DLY_1,OSD1_H_START_POS);
743 1 OSDCfgWr(CHAR_DLY_2,OSD1_V_START_POS);
744 1
745 1
746 1 OSD1SetLineAttribute(1,RGAP_BG|RGAP_0|Char_Height_Single|Char_Width_Single);//0x82
747 1 OSD1ShowLine(iPICTURE_CD,2,0,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
748 1 OSD1ShowLine(iFOLDERS,8,0,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,OSD_LENGTH,0);
749 1 OSD1ShowLine(iFILES,20,0,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,OSD_LENGTH,0);
750 1
751 1 OSD1SetLineAttribute(3,RGAP_BG|RGAP_8|Char_Height_Single|Char_Width_Single);
752 1 OSD1ShowLine(iPICTURE,8,3,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,OSD_LENGTH,0);
753 1
754 1 OSD1SetLineAttribute(5,RGAP_BG|RGAP_4|Char_Height_Single|Char_Width_Single);
755 1 OSD1ShowLine(iYFDFDF,4,5,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
756 1
757 1 OSD1SetLineAttribute(7,RGAP_BG|RGAP_0|Char_Height_Single|Char_Width_Single);
758 1 OSD1ShowLine(iPICTURE,2,7,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
759 1 OSD1PutChar(_1,9,7,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,0);
760 1 OSD1ShowLine(iJPEG,10,7,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
761 1 OSD1ShowLine(iPICTURE,2,9,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
762 1 OSD1PutChar(_2,9,9,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,0);
763 1 OSD1ShowLine(iJPEG,10,9,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
764 1 OSD1ShowLine(iPICTURE,2,11,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
765 1 OSD1PutChar(_3,9,11,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,0);
766 1 OSD1ShowLine(iJPEG,10,11,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
767 1 OSD1ShowLine(iPICTURE,2,13,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
768 1 OSD1PutChar(_4,9,13,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,0);
C51 COMPILER V8.08 OSDDRAW 11/08/2007 00:32:37 PAGE 14
769 1 OSD1ShowLine(iJPEG,10,13,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
770 1 OSD1ShowLine(iPICTURE,2,15,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
771 1 OSD1PutChar(_5,9,15,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,0);
772 1 OSD1ShowLine(iJPEG,10,15,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
773 1
774 1
775 1 OSD1SetLineAttribute(16,RGAP_BG|RGAP_8|Char_Height_Single|Char_Width_Single);
776 1 OSD1PutChar(_btn_pause,3,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,0);
777 1 OSD1PutChar(_btn_rec,8,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,0);
778 1 OSD1PutChar(_btn_last,13,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,0);
779 1 OSD1PutChar(_btn_next,18,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,0);
780 1 OSD1ShowLine(i_BTN_DISP,22,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
781 1 OSD1ShowLine(i_BTN_AUDIO,27,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
782 1 OSD1PutChar(_btn_zoom,33,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,0);
783 1 OSD1ShowLine(i_BTN_AMENU,37,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
784 1 OSD1ShowLine(iOK,37,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
785 1
786 1 // TitleBar
787 1 DrawTitleBar();
788 1
789 1 //List Background
790 1 OSD2Show4BPIcon(ListBGNDUnit1Start,0,3,0,0,0,1,0);
791 1 OSD2Show4BPIcon(IconFile1,1,3,0,0,0,1,0);
792 1 OSD2Show4BPIcon(IconFold1,4,3,0,0,0,1,0);
793 1 OSD2Show4BPIcon(ListBGNDUnit1Mid,3,3,0,0,0,1,0);
794 1 OSD2Show4BPIcon(ListBGNDUnit2Mid,3,4,0,0,0,1,0);
795 1
796 1 for(i = 0; i < 15; i++)
797 1 OSD2Show4BPIcon(ListBGNDUnit1Mid,6+i,3,0,0,0,1,0);
798 1 OSD2Show4BPIcon(ListBGNDUnit1End,21,3,0,0,0,1,0);
799 1 OSD2Show4BPIcon(ListBGNDUnit2Start,0,4,0,0,0,1,0);
800 1 for(i = 0; i < 15; i++)
801 1 OSD2Show4BPIcon(ListBGNDUnit2Mid,6+i,4,0,0,0,1,0);
802 1 OSD2Show4BPIcon(ListBGNDUnit2End,21,4,0,0,0,1,0);
803 1
804 1 OSD2Show4BPIcon(ListBGNDUnit3Start,0,5,0,0,0,1,0);
805 1 OSD2Show4BPIcon(ListBGNDUnit4Start,0,6,0,0,0,1,0);
806 1 OSD2Show4BPIcon(IconFold2,1,5,0,0,0,1,0);
807 1 for(i = 0; i<17; i++)
808 1 {
809 2 OSD2Show4BPIcon(ListBGNDUnit3Mid,3+i,5,0,0,0,1,0);
810 2 OSD2Show4BPIcon(ListBGNDUnit4Mid,3+i,6,0,0,0,1,0);
811 2 }
812 1
813 1 OSD2Show4BPIcon(FocusBarUnit1Start,0,7,0,0,0,1,0);
814 1 OSD2Show4BPIcon(FocusBarUnit2Start,0,8,0,0,0,1,0);
815 1 for(i = 0; i<19; i++)
816 1 {
817 2 OSD2Show4BPIcon(FocusBarUnit1Mid,1+i,7,0,0,0,1,0);
818 2 OSD2Show4BPIcon(FocusBarUnit2Mid,1+i,8,0,0,0,1,0);
819 2 }
820 1
821 1
822 1 for(j = 0; j < 3; j++)
823 1 {
824 2 OSD2Show4BPIcon(ListBGNDUnit3Start,0,9+2*j,0,0,0,1,0);
825 2 for(i = 0; i < 19; i++)
826 2 OSD2Show4BPIcon(ListBGNDUnit3Mid,1+i,9+2*j,0,0,0,1,0);
827 2 // OSD2Show4BPIcon(ListBGNDUnit3End,19,5+2*j,0,0,0,1);
828 2 OSD2Show4BPIcon(ListBGNDUnit4Start,0,10+2*j,0,0,0,1,0);
829 2 for(i = 0; i < 19; i++)
830 2 OSD2Show4BPIcon(ListBGNDUnit4Mid,1+i,10+2*j,0,0,0,1,0);
C51 COMPILER V8.08 OSDDRAW 11/08/2007 00:32:37 PAGE 15
831 2 // OSD2Show4BPIcon(ListBGNDUnit4End,19,6+2*j,0,0,0,1);
832 2 }
833 1 OSD2Show4BPIcon(ListBGNDUnit3Start,0,15,0,0,0,1,0);
834 1 for(i = 0; i < 19; i++)
835 1 OSD2Show4BPIcon(ListBGNDUnit3Mid,1+i,15,0,0,0,1,0);
836 1 // OSD2Show4BPIcon(ListBGNDUnit3End,19,15,0,0,0,1);
837 1 OSD2Show4BPIcon(ListBGNDUnit5Start,0,16,0,0,0,1,0);
838 1 for(i = 0; i < 19; i++)
839 1 OSD2Show4BPIcon(ListBGNDUnit5Mid,1+i,16,0,0,0,1,0);
840 1 // OSD2Show4BPIcon(ListBGNDUnit5End,19,16,0,0,0,1);
841 1
842 1 //Vertical Scorll bar
843 1 OSD2Show4BPIcon(IconBTN1,20,5,0,0,0,1,0);
844 1 OSD2Show4BPIcon(IconBtnUnit1,20,15,0,0,0,1,0);
845 1 OSD2Show4BPIcon(IconBtnUnit2,20,16,0,0,0,1,0);
846 1 OSD2Show4BPIcon(IconListCursor,20,7,0,0,0,1,0);
847 1
848 1 for(i = 0; i < 6; i++)
849 1 OSD2Show4BPIcon(IconVScrollUnit2,20,8+i,0,0,0,1,0);
850 1 OSD2Show4BPIcon(IconVScrollUnit3,20,14,0,0,0,1,0);
851 1 // OSD2Show4BPIcon(IconVScrollUnit1,25,12,0,0,0,1);
852 1 // OSD2Show4BPIcon(IconVScrollUnit2,25,13,0,0,0,1);
853 1 // OSD2Show4BPIcon(IconVScrollUnit3,25,14,0,0,0,1);
854 1
855 1 // Function Button
856 1 for(j = 0; j < 8; j++)
857 1 OSD2ShowFuncBtn1(0+5*j,17,3,OSD2BGNDColor_TRANSPRENT);
858 1
859 1 //---Function Button2
860 1 OSD2Show4BPIcon(IconZoom,35,5,0,0,0,1,0);
861 1 OSD2Show4BPIcon(IconZoomIn,35,7,0,0,0,1,0);
862 1 OSD2Show4BPIcon(IconZoomOut,35,9,0,0,0,1,0);
863 1
864 1
865 1 OSDEnable();
866 1
867 1 //OSD2Enable();
868 1 //OSD2Menu1Enable();
869 1 ShowAudioFreqPage();
870 1
871 1 }
872
873 #if 1
874 void Show_Demo_Page(void)
875 {
876 1
877 1 uCHAR i,j;
878 1 //EX0 = 0; // Disable Externel Interrup 0
879 1 m_bOSD2Showed = 1;
880 1 //OSDDisable();
881 1 OSDCfgWr(OSD1_CTRL,0x18);
882 1 OSD2Disable();
883 1 OSD1ClearMenu(BGND_COLOR_TRANSPERANT|FGND_COLOR_TRANSPERANT);
884 1 OSD2ClearMenu(1);
885 1 //ClosePanel(0, 0x80, 0x80);
886 1 //ClosePanel(0x10, 0xff, 0x40);
887 1 OSDCfgWr(CHAR_DLY_1,OSD1_H_START_POS);
888 1 OSDCfgWr(CHAR_DLY_2,OSD1_V_START_POS);
889 1
890 1
891 1 OSD1SetLineAttribute(1,RGAP_BG|RGAP_0|Char_Height_Single|Char_Width_Single);//0x82
892 1 OSD1ShowLine(iPICTURE_CD,2,0,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
C51 COMPILER V8.08 OSDDRAW 11/08/2007 00:32:37 PAGE 16
893 1 OSD1ShowLine(iFOLDERS,8,0,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,OSD_LENGTH,0);
894 1 OSD1ShowLine(iFILES,20,0,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,OSD_LENGTH,0);
895 1
896 1 OSD1SetLineAttribute(3,RGAP_BG|RGAP_8|Char_Height_Single|Char_Width_Single);
897 1 OSD1ShowLine(iPICTURE,8,3,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,OSD_LENGTH,0);
898 1
899 1 OSD1SetLineAttribute(5,RGAP_BG|RGAP_4|Char_Height_Single|Char_Width_Single);
900 1 OSD1ShowLine(iYFDFDF,4,5,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
901 1
902 1 OSD1SetLineAttribute(7,RGAP_BG|RGAP_0|Char_Height_Single|Char_Width_Single);
903 1 OSD1ShowLine(iPICTURE,2,7,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
904 1 OSD1PutChar(_1,9,7,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,0);
905 1 OSD1ShowLine(iJPEG,10,7,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
906 1 OSD1ShowLine(iPICTURE,2,9,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
907 1 OSD1PutChar(_2,9,9,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,0);
908 1 OSD1ShowLine(iJPEG,10,9,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
909 1 OSD1ShowLine(iPICTURE,2,11,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
910 1 OSD1PutChar(_3,9,11,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,0);
911 1 OSD1ShowLine(iJPEG,10,11,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
912 1 OSD1ShowLine(iPICTURE,2,13,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
913 1 OSD1PutChar(_4,9,13,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,0);
914 1 OSD1ShowLine(iJPEG,10,13,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
915 1 OSD1ShowLine(iPICTURE,2,15,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
916 1 OSD1PutChar(_5,9,15,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,0);
917 1 OSD1ShowLine(iJPEG,10,15,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
918 1
919 1
920 1 OSD1SetLineAttribute(16,RGAP_BG|RGAP_8|Char_Height_Single|Char_Width_Single);
921 1 OSD1PutChar(_btn_pause,3,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,0);
922 1 OSD1PutChar(_btn_rec,8,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,0);
923 1 OSD1PutChar(_btn_last,13,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,0);
924 1 OSD1PutChar(_btn_next,18,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,0);
925 1 OSD1ShowLine(i_BTN_DISP,22,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
926 1 OSD1ShowLine(i_BTN_AUDIO,27,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
927 1 OSD1PutChar(_btn_zoom,33,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_WHITE,0);
928 1 OSD1ShowLine(i_BTN_AMENU,37,16,BGND_COLOR_TRANSPERANT|FGND_COLOR_BLACK,OSD_LENGTH,0);
929 1
930 1 // TitleBar
931 1 DrawTitleBar();
932 1
933 1 //List Background
934 1 OSD2Show4BPIcon(ListBGNDUnit1Start,0,3,0,0,0,1,0);
935 1 OSD2Show4BPIcon(IconFile1,1,3,0,0,0,1,0);
936 1 OSD2Show4BPIcon(IconFold1,4,3,0,0,0,1,0);
937 1 OSD2Show4BPIcon(ListBGNDUnit1Mid,3,3,0,0,0,1,0);
938 1 OSD2Show4BPIcon(ListBGNDUnit2Mid,3,4,0,0,0,1,0);
939 1
940 1 for(i = 0; i < 15; i++)
941 1 OSD2Show4BPIcon(ListBGNDUnit1Mid,6+i,3,0,0,0,1,0);
942 1 OSD2Show4BPIcon(ListBGNDUnit1End,21,3,0,0,0,1,0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -