⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slideplay.c

📁 M3355的源代码
💻 C
📖 第 1 页 / 共 4 页
字号:
#if(_JPEG_ZOOM_MODE==_JPG_ZOOM_ENABLE)
			jpgrunzoom();
#endif
			bzoomokflag = 1;
			gZoomFuncPlus=TRUE;
		break;
	case V_KEY_RETURN:
		if(bZoomCount == ZOOMNORMAL)
			SlideV_KEY_RETURN();
		break;
	case V_KEY_LEFT:
//		MPA_RefreshAuxiliary(AT_SLIDESHOWHELP_CLOSE, &gAuxParam);

		if(NVChkZoomEnable()==FALSE)//benjamin add
			return UI_IS_FUNC_MSG;
			if(bzoomokflag)//benjamin add
				return UI_IS_FUNC_MSG;
			if(jpgfadinshowflag)//now is fadin show the jpg
				return UI_IS_FUNC_MSG;
			NVPlayModeChg(0x26,0);//benjamin add
			
        if (bZoomCount == 3)
        {
            if (bZoomHRatio > 0)
            {
                bZoomHRatio--;
                ModifyZoomOSD(MsgInput);
                RunZoom();
            }
            break;
        }
        else
        {
            if (bZoomXOffset > -moveRange)
            {
                bZoomXOffset--;
            }
            ModifyZoomOSD(MsgInput);
            RunZoom();//31217_01 Sean update for LA new Zoom Spec.
            gZoomFuncPlus=TRUE;

        }
        break;
#ifdef _BRIGHT_ENABLE_
	case V_KEY_VOLDOWN:
		bZoomBrightFlag=ZOOMBRIGHT_BRIGHT;
		gui_hdc=gAUXdc;
		ptr_UiSubFuncBrightContrastSharpInit = UiSubFuncBrightContrastSharpInit;
		(*ptr_UiSubFuncBrightContrastSharpInit)();
		break;
#endif
    case V_KEY_RIGHT:
//    	MPA_RefreshAuxiliary(AT_SLIDESHOWHELP_CLOSE, &gAuxParam);

		if(NVChkZoomEnable()==FALSE)//benjamin add
			return UI_IS_FUNC_MSG;
			if(bzoomokflag)//benjamin add
				return UI_IS_FUNC_MSG;
			if(jpgfadinshowflag)//now is fadin show the jpg
				return UI_IS_FUNC_MSG;
			NVPlayModeChg(0x26,0);//benjamin add
        if (bZoomCount == 3)
        {
           if (bZoomHRatio < SCREEN_FIT_SCALE_RANGE)
            {
                bZoomHRatio++;
                ModifyZoomOSD(MsgInput);
                RunZoom();
                return UI_IS_FUNC_MSG;
            }
            ShowScreenFitWindow(bScreenFitCount);
            break;
        }
        else
        {
            if (bZoomXOffset < moveRange)
            {
                bZoomXOffset++;
            }
            ModifyZoomOSD(MsgInput);
            RunZoom();//31217_01 Sean update for LA new Zoom Spec.
            gZoomFuncPlus=TRUE;
        }
        break;
    case V_KEY_UP:
//    	MPA_RefreshAuxiliary(AT_SLIDESHOWHELP_CLOSE, &gAuxParam);
    	
		if(NVChkZoomEnable()==FALSE)//benjamin add
			return UI_IS_FUNC_MSG;
			if(bzoomokflag)//benjamin add
				return UI_IS_FUNC_MSG;
			if(jpgfadinshowflag)//now is fadin show the jpg
				return UI_IS_FUNC_MSG;
			NVPlayModeChg(0x26,0);//benjamin add
        if (bZoomCount == 3)
        {
           if (bZoomVRatio < SCREEN_FIT_SCALE_RANGE)
            {
                bZoomVRatio ++;
                ModifyZoomOSD(MsgInput);
                RunZoom();

            }
            break;
        }
        else
        {
            if (bZoomYOffset > -moveRange)
            {
                bZoomYOffset--;
            }
            ModifyZoomOSD(MsgInput);
            RunZoom();//31217_01 Sean update for LA new Zoom Spec.
            gZoomFuncPlus=TRUE;

        }
        break;
    case V_KEY_DOWN:
//    	MPA_RefreshAuxiliary(AT_SLIDESHOWHELP_CLOSE, &gAuxParam);
    	
		if(NVChkZoomEnable()==FALSE)//benjamin add
			return UI_IS_FUNC_MSG;
			if(bzoomokflag)//benjamin add
				return UI_IS_FUNC_MSG;
			if(jpgfadinshowflag)//now is fadin show the jpg
				return UI_IS_FUNC_MSG;
			NVPlayModeChg(0x26,0);//benjamin add
        if (bZoomCount == 3)
        {
            if (bZoomVRatio > 0)
            {
                bZoomVRatio--;
                ModifyZoomOSD(MsgInput);
                RunZoom();
            }
            break;
        }
        else
        {
            if (bZoomYOffset < moveRange)
            {
               bZoomYOffset++;
            }
            ModifyZoomOSD(MsgInput);
            RunZoom();//31217_01 Sean update for LA new Zoom Spec.
            gZoomFuncPlus=TRUE;

        }
        break;
    case V_KEY_CLEAR:
        bZoomCount = ZOOMNORMAL;

            RunZoom();
				if(zoomnum!=0xffff)
				{
#if(_JPEG_ZOOM_MODE==_JPG_ZOOM_ENABLE)
					jpgrunzoom();
#endif
					zoomnum = 0xffff;
					bzoomokflag = 1;
				}
            ModifyZoomOSD(V_KEY_CLEAR);
            SetTimer(OSD2_TM_ID, CancelZoom, INFINITETIME);
			gAuxParam.bDrawSlideShowHelp=&bDrawSlideShowHelp;
       		iTotalPic=FileOpenMenuGetTTNs();
			iCurPic = wShowedNum+1;
			gAuxParam.iCurPic = &iCurPic;
       		gAuxParam.iTotalPic=&iTotalPic;
       		MPA_RefreshAuxiliary(AT_SLIDESHOWHELP_INIT, &gAuxParam);
	        gZoomFuncPlus=FALSE;
	     	bZoomBrightFlag=ZOOMBRIGHT_NONE;
		break;
    case V_KEY_ZOOM:
//    	MPA_RefreshAuxiliary(AT_SLIDESHOWHELP_CLOSE, &gAuxParam);
			if(CanZoom())
				return;
    	
		if(NVChkZoomEnable()==FALSE)//benjamin add
			return UI_IS_FUNC_MSG;
			if(bzoomokflag)//benjamin add
				return UI_IS_FUNC_MSG;
			if(jpgfadinshowflag)//now is fadin show the jpg
				return UI_IS_FUNC_MSG;
			NVPlayModeChg(0x26,0);//benjamin add
        bZoomCount++;

#if (_SW_SCREEN_FIT==_SW_SCREEN_FIT_ENABLE)
        if (bZoomCount == 3)
        {
        	if ( (NoZoomDspMode==Letterbox) || (NoZoomDspMode == Panscan) ) //031023 Panscan dead temp fixed
        	{
        	}
        	else
        	{
		            bZoomHRatio = 0;
		            bZoomVRatio = 0;
        	}
        }
        else if (bZoomCount > 3)
#else
        if (bZoomCount >= 3)
#endif
        {
            bZoomCount = ZOOMNORMAL;
        }

        if (bZoomCount == ZOOMNORMAL)
        {

            RunZoom();
				if(zoomnum!=0xffff)
				{
#if(_JPEG_ZOOM_MODE==_JPG_ZOOM_ENABLE)
					jpgrunzoom();
#endif
					zoomnum = 0xffff;
					bzoomokflag = 1;
				}
            ModifyZoomOSD(V_KEY_CLEAR);
            SetTimer(OSD2_TM_ID, CancelZoom, INFINITETIME);
//			Send_UI_Message(0x46,0,0);//show slide show help 
//			Send_UI_Message(C_SLIDESHOW_HELP, 0, 0); //changed by chena, Aug. 18, 2004

			//-->Alan, disable below line for bug 161 and 177
			//Send_UI_Message(C_FP_KEY, V_KEY_DOWN, 0);  

			gAuxParam.bDrawSlideShowHelp=&bDrawSlideShowHelp;
       		iTotalPic=FileOpenMenuGetTTNs();
			iCurPic = wShowedNum+1;
			gAuxParam.iCurPic = &iCurPic;
       		gAuxParam.iTotalPic=&iTotalPic;
       		MPA_RefreshAuxiliary(AT_SLIDESHOWHELP_INIT, &gAuxParam);
	     gZoomFuncPlus=FALSE;
	     if( g_UiCrntSubFunc == UI_SUBFUNC_BRIGHTCONTRASTSHARP)
	     	bZoomBrightFlag=ZOOMBRIGHT_BRIGHT;
	     else
	     	bZoomBrightFlag=ZOOMBRIGHT_NONE;
        }
        else
        {
            bZoomXOffset = 0;
            bZoomYOffset = 0;
            ModifyZoomOSD(MsgInput);//31217_01 Sean update for LA new Zoom Spec.
            RunZoom();
            gZoomFuncPlus=TRUE;

			if(bZoomCount==3)
			{
					if(zoomnum!=0xffff)
					{
#if(_JPEG_ZOOM_MODE==_JPG_ZOOM_ENABLE)
						jpgrunzoom();
#endif
						zoomnum = 0xffff;
						bzoomokflag = 1;

					}
			gZoomFuncPlus=FALSE;

			}
        }
        break;
    case V_KEY_FILEOPEN:
    	
        CloseZoom();//for lg bug2765       
        return UI_NOUSE_FUNC_MSG;
    case V_KEY_MENU:
#if 0        
    	 if ((NVIsMenu(ROOT_MENU)&&(DiscType == C_DVD || DiscType == C_DVD_AUDIO)) || (DiscType == C_DVD_VR) )
        {
           
            CloseZoom();//for lg bug2765           
            return UI_NOUSE_FUNC_MSG;
        }
        else
#endif			
            return UI_IS_FUNC_MSG;
    case V_KEY_TITLE:
#if 0		
        if ((NVIsMenu(TITLE_MENU)&&(DiscType == C_DVD || DiscType == C_DVD_AUDIO)) || (DiscType == C_DVD_VR) )
        {
           
            CloseZoom();//for lg bug2765           
            return UI_NOUSE_FUNC_MSG;
        }
        else
#endif			
            return UI_IS_FUNC_MSG;

    case V_KEY_SETUP:
			NVPlayModeChg(C_NV_Stop,C_STOP_SHOWLOGO);
        CloseZoom();//for lg bug2765
//Joey add for no_setup respond?

	  MPA_RefreshAuxiliary(AT_CLOSE, &gAuxParam);
        CaseV_KEY_SETUP();
        return UI_NOUSE_FUNC_MSG;

        
//    case V_KEY_STOP:
//    	SlideV_KEY_STOP();
//    	return UI_NOUSE_FUNC_MSG;

    case V_KEY_OPEN:
    case V_KEY_PBC_ONOFF:
      	ModifyZoomOSD(V_KEY_CLEAR);
        SetTimer(OSD2_TM_ID, CancelZoom, INFINITETIME);
		Send_UI_Message(0x46,0,0);//show slide show help 
      
	    gZoomFuncPlus=FALSE;
        CloseZoom();//for lg bug2765
        return UI_NOUSE_FUNC_MSG;
    case V_KEY_SETUPDEFAULT:
        CloseZoom();//for lg bug2765
        return UI_NOUSE_FUNC_MSG;
    //David: Console+Zoom	
#if 0    
    case V_KEY_VOLUM:
#endif		
    case V_KEY_TMSCR:
    case V_KEY_CONSOLE:
		gZoomFuncPlus = TRUE;
		return UI_NOUSE_FUNC_MSG;
	case V_KEY_CLOSEZOOM://benjamin add for mix play cancel zoom
		if(bMixPlay)
			CloseZoom();
		break;
	case V_KEY_NEXT:
		SlideV_KEY_NEXT();
		break;
	case V_KEY_PREV:
		SlideV_KEY_PREV();
		break;
		
    default:
		if(MsgInput==V_KEY_PAUSE||(MsgInput==V_KEY_PLAY&&g_UiCoreState == UI_CORE_PAUSE))
		{
			if(MsgInput==V_KEY_PLAY)
				SetTimer(OSD2_TM_ID,CancelZoom,TIME_10SEC);
			SlideRespondFPKey(MsgInput);
		}
        return UI_NOUSE_FUNC_MSG;
    }

    return UI_IS_FUNC_MSG;
}

BYTE SlideZoomTimer(DWORD MsgInput)
{
    WORD iCurPic, iTotalPic;
    int i;
#if 0
	tPositionInfo  iPos;

	MPO_GetPositionInfo(&iPos);
#endif

    switch (MsgInput)
    {
    case C_ZOOM_TIMER:
		if(g_UiCoreState==UI_CORE_PAUSE)
		{
			ClearRectArea(gui_hdc, GUITYPE_ZOOM);
			return UI_IS_FUNC_MSG;
		}
		CloseZoom();
	
		if( g_UiCrntSubFunc == UI_SUBFUNC_BRIGHTCONTRASTSHARP)
	     		bZoomBrightFlag=ZOOMBRIGHT_BRIGHT;
	      else
	     		bZoomBrightFlag=ZOOMBRIGHT_NONE;

//		gZoomFuncPlus=FALSE;
//		ClearRectArea(gui_hdc, GUITYPE_ZOOM);
//		SetTimer(OSD2_TM_ID, CancelZoom, INFINITETIME);
#if 0
		switch(iPos.iPlayerFocused)
		{
		case MPLR_PHOTO:
#endif			
//		GPRINTF("zoom timer\n");
//		Send_UI_Message(0x46,0,0);//show slide show help
		Send_UI_Message(C_FP_KEY, V_KEY_DOWN, 0);//by chena, Aug. 18, 2004

#if 0	              
			break;
 		default:
			break;
		}
#endif	
		gAuxParam.bDrawSlideShowHelp=&bDrawSlideShowHelp;
       	iTotalPic=FileOpenMenuGetTTNs();
		iCurPic = wShowedNum+1;
		gAuxParam.iCurPic = &iCurPic;
       	gAuxParam.iTotalPic=&iTotalPic;
       	MPA_RefreshAuxiliary(AT_SLIDESHOWHELP_INIT, &gAuxParam);
        return UI_IS_FUNC_MSG;
	case C_PLAYMODEGUI_TIMER:
		SlideRespondTimerActive(MsgInput);
		return UI_IS_FUNC_MSG;	
    default:
        return UI_NOUSE_FUNC_MSG;
    }
}

BYTE SlideZoomNVNotice(DWORD MsgInput)
{
#if 0
	int i;

    switch (MsgInput)
    {   
    default:
        break;
    }
#endif	
    return UI_NOUSE_FUNC_MSG;
}

void Slide_NextPrevProc(DWORD UserKey, int iNum);

void Slide_RespondNVSegEnd(void)
{
   if(g_UiCoreState==UI_CORE_PAUSE)
   return;
   
   Slide_NextPrevProc(V_KEY_NEXT,1);
}

void Slide_NextPrevProc(DWORD UserKey, int iNum)
{
	switch(UserKey)
	{
		case V_KEY_NEXT:
				SlideShowNext(iNum);
				break;
		case V_KEY_PREV:
				SlideShowPrev(iNum);
				break;
		default:
				break;
	}
}

//end of Joey add for new_512k

#else
void UiFuncSlideInit(void)
{
}
void UiFuncSlideProc(WORD MsgType, DWORD MsgInput)
{
}
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -