📄 wndw_pop.c
字号:
else if(_mn_crnt_pos_main_ == POP_POS_ADO){
wndw_pop_sub_num_h = 6;
wndw_pop_sub_num_v = 3;//4;
CreatePopSub(_mn_crnt_pos_main_);
}
#elif defined(__WTH_VGA__)
// else if(_mn_crnt_pos_main_ == POP_POS_VGA){
else if((_mn_crnt_pos_main_ == POP_POS_VGA)&&(cmn_vga_det)){
wndw_pop_sub_num_h = 11;//15;
wndw_pop_sub_num_v = 4;
CreatePopSub(_mn_crnt_pos_main_);
}
#endif
else{
wndw_pop_sub_num_h = 0;
wndw_pop_sub_num_v = 0;
}
}
else{
if(_mn_crnt_pos_main_ == POP_POS_RC){
wndw_pop_sub_num_h = 6;
wndw_pop_sub_num_v = 3;
CreatePopSub(_mn_crnt_pos_main_);
}
#if defined(__WTH_ADO__)
else if(_mn_crnt_pos_main_ == POP_POS_ADO){
wndw_pop_sub_num_h = 6;
wndw_pop_sub_num_v = 3;//4;
CreatePopSub(_mn_crnt_pos_main_);
}
#elif defined(__WTH_VGA__)
// else if(_mn_crnt_pos_main_ == POP_POS_VGA){
else if((_mn_crnt_pos_main_ == POP_POS_VGA)&&(cmn_vga_det)){
wndw_pop_sub_num_h = 11;//15;
wndw_pop_sub_num_v = 4;
CreatePopSub(_mn_crnt_pos_main_);
}
#endif
else{
wndw_pop_sub_num_h = 0;
wndw_pop_sub_num_v = 0;
}
}
}
//... left button function
if(b_mse_btn_dwn_lb == 1){
b_mse_btn_dwn_lb = 0;
// if(BitSet(mse_flg,MSE_BTN_DWN_LB)){
// ClearBit(mse_flg,MSE_BTN_DWN_LB);
}
if(b_mse_clk_lb == 1){
b_mse_clk_lb = 0;
// if((_mn_crnt_pos_main_ == POP_POS_MTN)||(_mn_crnt_pos_main_ == POP_POS_VGA)||(_mn_crnt_pos_main_ == POP_POS_ADO)){
if(_mn_crnt_pos_main_ == POP_POS_MTN){
}
#if defined(__WTH_ADO__)
else if(_mn_crnt_pos_main_ == POP_POS_ADO){
//... no operation
}
#endif
//#if defined(__4CH__)
// else if((_mn_crnt_pos_main_ == POP_POS_CH)&&(wndw_ds_sc_fmt == SC_FMT_4CH)&&(b_ds_wth_4pb)){
// //... no operation
// }
//#elif defined(__16CH__)
// else if((_mn_crnt_pos_main_ == POP_POS_CH)&&(wndw_ds_sc_fmt == SC_FMT_16CH)&&(b_ds_wth_16pb)){
// //... no operation
// }
//#endif
else{
// if((b_mse_stts_pth_pop == MSE_PTH_Y)&&(_mn_crnt_pos_main_ == POP_POS_MTN)){
// //... no operation
// }
if((_mn_crnt_pos_main_ == POP_POS_DS)&&(b_mse_stts_pth_pop == MSE_PTH_X)){
//... no operation
}
else if((_mn_crnt_pos_main_ == POP_POS_RC)&&(b_mse_stts_pth_pop == MSE_PTH_Y)){
//... no operation
}
#if defined(__WTH_VGA__)
else if((_mn_crnt_pos_main_ == POP_POS_VGA)&&(cmn_vga_det)){
//... no operation
}
#endif
else{
RemovePopMain();
b_cmn_wndw_pop = OFF;
// ClearBit(cmn_flg,CMN_WNDW_POP);
b_mse_stts_pth_mn = b_mse_stts_pth_pop;
// if(BitClear(mse_flg,MSE_STTS_PTH_POP)) ClearBit(mse_flg,MSE_STTS_PTH_MN);
// else SetBit(mse_flg,MSE_STTS_PTH_MN);
if(b_mse_stts_pth_mn == MSE_PTH_X){
// if(BitClear(mse_flg,MSE_STTS_PTH_MN)){
// if(_mn_crnt_pos_main_ == POP_POS_CH) CreateWndwCh(PTH_Y);
// if(_mn_crnt_pos_main_ == POP_POS_ZM) CreateWndwZm();
// else if(_mn_crnt_pos_main_ == POP_POS_MTN) CreateWndwMtn(PTH_Y);
if(_mn_crnt_pos_main_ == POP_POS_RC){
b_mse_stts_pth = MSE_PTH_Y; //... change to record path
WriteAsicByte(cmn_dvc,DVC_PG1,0xa0,0xbb);
#if defined(__4CH__)
WriteAsicByte(cmn_dvc,DVC_PG1,0xa1,0x76); //... s-video (y path) //... 060705:temporal
#elif defined(__16CH__)
// WriteAsicByte(cmn_dvc,DVC_PG1,0xa1,0x67); //... s-video (y path)
WriteAsicByte(MASTER,DVC_PG1,0xa1,0x67); //...
WriteAsicByte(SLAVE1,DVC_PG1,0xa1,0xff); //...
WriteAsicByte(SLAVE2,DVC_PG1,0xa1,0xff); //...
WriteAsicByte(SLAVE3,DVC_PG1,0xa1,0xff); //...
#endif
WriteAsicByte(cmn_dvc,DVC_PG1,0xa2,0xd7); //... cvbs (y path)
WriteAsicByte(cmn_dvc,DVC_PG1,0xa3,0x10); //... 656 output
SetOSDNoMn();
wndw_mn_pos_crnt = 30;
}
// else if(_mn_crnt_pos_main_ == POP_POS_RG) CreateWndwRg(PTH_Y);
else if(_mn_crnt_pos_main_ == (POP_POS_RG+cmn_vga_det)) CreateWndwRg(PTH_Y);
// else if(_mn_crnt_pos_main_ == POP_POS_ABT) ;//CreateWndwAbt(PTH_Y);
// if(_mn_crnt_pos_main_ == POP_POS_RG) CreateWndwRg(PTH_X);
}
else{
if(_mn_crnt_pos_main_ == POP_POS_DS){
b_mse_stts_pth = MSE_PTH_X; //... change to display path
WriteAsicByte(cmn_dvc,DVC_PG1,0xa0,0x66);
#if defined(__4CH__)
WriteAsicByte(cmn_dvc,DVC_PG1,0xa1,0x32); //... s-video (x path) //... 060705:temporal
#elif defined(__16CH__)
// WriteAsicByte(cmn_dvc,DVC_PG1,0xa1,0x23); //... s-video (x path)
WriteAsicByte(MASTER,DVC_PG1,0xa1,0x23); //...
WriteAsicByte(SLAVE1,DVC_PG1,0xa1,0xff); //...
WriteAsicByte(SLAVE2,DVC_PG1,0xa1,0xff); //...
WriteAsicByte(SLAVE3,DVC_PG1,0xa1,0xff); //...
#endif
WriteAsicByte(cmn_dvc,DVC_PG1,0xa2,0x97); //... cvbs (x path)
WriteAsicByte(cmn_dvc,DVC_PG1,0xa3,0x01); //... 656 output
SetOSDNoMn();
wndw_mn_pos_crnt = 30;
}
// else if(_mn_crnt_pos_main_ == POP_POS_RG) CreateWndwRg(PTH_Y);
else if(_mn_crnt_pos_main_ == (POP_POS_RG+cmn_vga_det)) CreateWndwRg(PTH_Y);
// else if(_mn_crnt_pos_main_ == POP_POS_ABT) ;//CreateWndwAbt(PTH_Y);
}
}
}
}
if(b_mse_pshng_clk_lb == 1){
b_mse_pshng_clk_lb = 0;
// if(BitSet(mse_flg,MSE_PSHNG_CLK_LB)){
// ClearBit(mse_flg,MSE_PSHNG_CLK_LB);
}
//... right button function
if(b_mse_btn_dwn_rb == 1){
b_mse_btn_dwn_rb = 0;
}
if(b_mse_clk_rb == 1){
b_mse_clk_rb = 0;
}
if(b_mse_pshng_clk_rb == 1){
b_mse_pshng_clk_rb = 0;
}
}
else if(((_osd_pos_x_ >= mse_osd_x_sub)&&(_osd_pos_x_ <= (mse_osd_x_sub+wndw_pop_sub_num_h))&&
(_osd_pos_y_ >= mse_osd_y_sub)&&(_osd_pos_y_ < (mse_osd_y_sub+wndw_pop_sub_num_v)))//){
&& (b_mse_stts_pth_pop == b_mse_stts_pth)){
// && (((mse_flg&MSE_STTS_PTH_POP)>>1) == (mse_flg&MSE_STTS_PTH))){
SetBoxPopHLPos(BOX_POP_SB_HL,mse_osd_x_sub,_osd_pos_y_,wndw_pop_sub_num_h);
_mn_crnt_pos_sub_ = _osd_pos_y_ - mse_osd_y_sub;
//... left button function
if(b_mse_btn_dwn_lb == 1){
b_mse_btn_dwn_lb = 0;
// if(BitSet(mse_flg,MSE_BTN_DWN_LB)){
// ClearBit(mse_flg,MSE_BTN_DWN_LB);
}
if(b_mse_clk_lb == 1){
b_mse_clk_lb = 0;
// if(BitSet(mse_flg,MSE_CLK_LB)){
// ClearBit(mse_flg,MSE_CLK_LB);
_mn_crnt_pos_main_ = wndw_mn_pos_crnt&0x0f;
wndw_mn_pos_crnt |= _mn_crnt_pos_sub_<<4;
RemovePopSub();
RemovePopMain();
b_cmn_wndw_pop = OFF;
// ClearBit(cmn_flg,CMN_WNDW_POP);
b_mse_stts_pth_mn = b_mse_stts_pth_pop;
// if(BitClear(mse_flg,MSE_STTS_PTH_POP)) ClearBit(mse_flg,MSE_STTS_PTH_MN);
// else SetBit(mse_flg,MSE_STTS_PTH_MN);
if(b_mse_stts_pth_mn == MSE_PTH_X){
// if(BitClear(mse_flg,MSE_STTS_PTH_MN)){
// if(_mn_crnt_pos_main_ == POP_POS_SCRN_X) CreateWndwScrnX();
if(wndw_mn_pos_crnt == POP_POS_DS_SC) CreateWndwDsSc(PTH_Y);
// else if(wndw_mn_pos_crnt == POP_POS_DS_PB) CreateWndwDsPb(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_DS_SR){
#if defined(__4CH__)
if((wndw_ds_sc_fmt == SC_FMT_4CH)&&(b_ds_wth_4pb)){
//... no operation
}
#elif defined(__16CH__)
if((wndw_ds_sc_fmt == SC_FMT_16CH)&&(b_ds_wth_16pb)){
//... no operation
}
#endif
else CreateWndwDsSr(PTH_Y);
}
else if(wndw_mn_pos_crnt == POP_POS_DS_IN) CreateWndwDsIn(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_ZM) CreateWndwZm();
else if(wndw_mn_pos_crnt == POP_POS_MTN_MD) CreateWndwMtnMd(PTH_Y);
// else if(wndw_mn_pos_crnt == POP_POS_MTN_BD) CreateWndwMtnBd(PTH_Y);
// else if(wndw_mn_pos_crnt == POP_POS_MTN_ND) CreateWndwMtnNd(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_MTN_BD) CreateWndwMtnBdNd(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_MTN_ND) CreateWndwMtnBdNd(PTH_Y);
#if defined(__WTH_ADO__)
else if(wndw_mn_pos_crnt == POP_POS_ADO_GN) CreateWndwAdoGn(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_ADO_LV) CreateWndwAdoLv(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_ADO_RC) CreateWndwAdoRc(PTH_Y);
// else if(wndw_mn_pos_crnt == POP_POS_ADO_DT) CreateWndwAdoDt(PTH_Y);
#elif defined(__WTH_VGA__)
if((_mn_crnt_pos_main_ == POP_POS_VGA)&&(cmn_vga_det)){
if(wndw_mn_pos_crnt == POP_POS_VGA_OR) CreateWndwVGAOr(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_VGA_DI) CreateWndwVGADi(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_VGA_IE) CreateWndwVGAIe(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_VGA_NR) CreateWndwVGANr(PTH_Y);
}
#endif
}
else{
// if(_mn_crnt_pos_main_ == POP_POS_SCRN_Y) CreateWndwScrnY();
if(wndw_mn_pos_crnt == POP_POS_RC_FM) CreateWndwRcFm(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_RC_IN) CreateWndwRcIn(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_RC_NR) CreateWndwRcNr(PTH_Y);
#if defined(__WTH_ADO__)
else if(wndw_mn_pos_crnt == POP_POS_ADO_GN) CreateWndwAdoGn(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_ADO_LV) CreateWndwAdoLv(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_ADO_RC) CreateWndwAdoRc(PTH_Y);
// else if(wndw_mn_pos_crnt == POP_POS_ADO_DT) CreateWndwAdoDt(PTH_Y);
#elif defined(__WTH_VGA__)
if((_mn_crnt_pos_main_ == POP_POS_VGA)&&(cmn_vga_det)){
if(wndw_mn_pos_crnt == POP_POS_VGA_OR) CreateWndwVGAOr(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_VGA_DI) CreateWndwVGADi(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_VGA_IE) CreateWndwVGAIe(PTH_Y);
else if(wndw_mn_pos_crnt == POP_POS_VGA_NR) CreateWndwVGANr(PTH_Y);
}
#endif
}
}
if(b_mse_pshng_clk_lb == 1){
b_mse_pshng_clk_lb = 0;
// if(BitSet(mse_flg,MSE_PSHNG_CLK_LB)){
// ClearBit(mse_flg,MSE_PSHNG_CLK_LB);
}
//... right button function
if(b_mse_btn_dwn_rb == 1){
b_mse_btn_dwn_rb = 0;
}
if(b_mse_clk_rb == 1){
b_mse_clk_rb = 0;
}
if(b_mse_pshng_clk_rb == 1){
b_mse_pshng_clk_rb = 0;
}
}
else{
//... left button function
if(b_mse_btn_dwn_lb == 1){
b_mse_btn_dwn_lb = 0;
// if(BitSet(mse_flg,MSE_BTN_DWN_LB)){
// ClearBit(mse_flg,MSE_BTN_DWN_LB);
}
if(b_mse_clk_lb == 1){
b_mse_clk_lb = 0;
// if(BitSet(mse_flg,MSE_CLK_LB)){
// ClearBit(mse_flg,MSE_CLK_LB);
RemovePopSub();
RemovePopMain();
SetOSDNoMn();
wndw_mn_pos_crnt = 30;
b_cmn_wndw_pop = OFF;
// ClearBit(cmn_flg,CMN_WNDW_POP);
}
if(b_mse_pshng_clk_lb == 1){
b_mse_pshng_clk_lb = 0;
// if(BitSet(mse_flg,MSE_PSHNG_CLK_LB)){
// ClearBit(mse_flg,MSE_PSHNG_CLK_LB);
}
//... right button function
if(b_mse_btn_dwn_rb == 1){
b_mse_btn_dwn_rb = 0;
// if(BitSet(mse_flg,MSE_BTN_DWN_RB)){
// ClearBit(mse_flg,MSE_BTN_DWN_RB);
}
if(b_mse_clk_rb == 1){
b_mse_clk_rb = 0;
// if(BitSet(mse_flg,MSE_CLK_RB)){
// ClearBit(mse_flg,MSE_CLK_RB);
RemovePopSub();
CreatePopMain();
wndw_mn_pos_crnt = 30;
}
if(b_mse_pshng_clk_rb == 1){
b_mse_pshng_clk_rb = 0;
// if(BitSet(mse_flg,MSE_PSHNG_CLK_RB)){
// ClearBit(mse_flg,MSE_PSHNG_CLK_RB);
}
}
}
//==================================================================================
// if(b_mse_btn_dwn_lb == 1){
// b_mse_btn_dwn_lb = 0;
// }
// if(b_mse_clk_lb == 1){
// b_mse_clk_lb = 0;
// }
// if(b_mse_pshng_clk_lb == 1){
// b_mse_pshng_clk_lb = 0;
// }
//
//
// if(b_mse_btn_dwn_rb == 1){
// b_mse_btn_dwn_rb = 0;
// }
// if(b_mse_clk_rb == 1){
// b_mse_clk_rb = 0;
// }
// if(b_mse_pshng_clk_rb == 1){
// b_mse_pshng_clk_rb = 0;
// }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -