?? o_message_device.c
字號:
break;
case MSG_DEVICE_MEDIA_CLIP:
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
eMsg = S_CLIP;
break;
#ifdef SUPPORT_FLASH_CARD
case MSG_DEVICE_MEDIA_BAD_CARD:
eMsg = S_BAD_CARD;
pMessage->moParam.mpIcon = BMP_MESSAGE_DEVICE_CARD;
pMessage->moParam.mwTimer = OMESSAGE_INFINITE_TIMEOUT;
break;
case MSG_DEVICE_MEDIA_BAD_USB:
eMsg = S_BAD_USB;
pMessage->moParam.mpIcon = BMP_MESSAGE_DEVICE_USB;
pMessage->moParam.mwTimer = OMESSAGE_INFINITE_TIMEOUT;
break;
case MSG_DEVICE_MEDIA_CARD_REMOVED:
eMsg = S_CARD_REMOVED;
pMessage->moParam.mpIcon = BMP_MESSAGE_DEVICE_CARD;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
case MSG_DEVICE_MEDIA_USB_REMOVED:
eMsg = S_CARD_REMOVED;
pMessage->moParam.mpIcon = BMP_MESSAGE_DEVICE_USB;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
case MSG_DEVICE_MEDIA_SD:
eMsg = S_CARD_SD;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
case MSG_DEVICE_MEDIA_MMC:
eMsg = S_CARD_MMC;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
case MSG_DEVICE_MEDIA_MS:
eMsg = S_CARD_MS;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
case MSG_DEVICE_MEDIA_MSPRO:
eMsg = S_CARD_MSPRO;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
case MSG_DEVICE_MEDIA_CF:
eMsg = S_CARD_CF;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
case MSG_DEVICE_MEDIA_SM:
eMsg = S_CARD_SM;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
case MSG_DEVICE_MEDIA_XD:
eMsg = S_CARD_XD;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
case MSG_DEVICE_MEDIA_USB:
eMsg = S_USB;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
#endif //SUPPORT_FLASH_CARD
#ifdef FTA_SUPPORT
case MSG_DEVICE_MEDIA_FTA:
eMsg = S_FTA;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
#endif // FTA_SUPPORT
case MSG_DEVICE_MEDIA_UPGRADE_DISC:
eMsg = S_UPGRADE_DISC;
pMessage->moParam.mwTimer = pMessageDescriptor->mwDefaultTimeout;
break;
default:
// Don't store pDeviceMessage->moParam.wMediaType
return MsOp;
}
// Store the media type for future reference:
pDeviceMessage->moParam.wMediaType = lParam;
break;
default:
bSaveAndUpdate = FALSE;
break;
}
if(eMsg != S_NULL)
{
OSDR_GetFormUniStr_OsdMessage((FORMATED_UNICODE_STRING __NEAR*)&oFormUniStr, (UINT32) eMsg);
}
if(bSaveAndUpdate == TRUE)
{
pMessage->moParam.mMsOpMsg = MsOp;
MsOp = MS_OP_MSO_MESSAGE_BUILD;
lParam = (UINT32)&oFormUniStr;
}
MsOp = OMESSAGE_Operation(pThis, MsOp, lParam);
return MsOp;
}
/****************************************************************************************************
* Function : _GetMediaTypeMsg
*
* Input : Parameter_1 - description
* Parameter_2 - description
*
* Output : Parameter_3 - description
* Parameter_4 - description
*
* Return : Describe_possible_returned_values_and_their_meaning
*
* Description : Describe_what_the_function_does_in_English
*
****************************************************************************************************/
STATIC MSG_DEVICE_MEDIA_TYPE_PARAM _GetMediaTypeMsg(UINT16 wDeviceId)
{
switch(DeviceManager_GetMediaType(wDeviceId))
{
case MEDIA_TYPE_DVD_VIDEO:
return MSG_DEVICE_MEDIA_DVDV;
#ifdef DVD_AUDIO_SUPPORT
case MEDIA_TYPE_DVD_AUDIO:
return MSG_DEVICE_MEDIA_DVDA;
#endif // DVD_AUDIO_SUPPORT
#ifdef DVD_VR_SUPPORT
case MEDIA_TYPE_DVDVR:
// <<< ramw_cl_1881
return MSG_DEVICE_MEDIA_DVDVR;
// >>> ramw_cl_1881
#endif // DVD_VR_SUPPORT
case MEDIA_TYPE_SVCD:
return MSG_DEVICE_MEDIA_SVCD;
case MEDIA_TYPE_VCD:
return MSG_DEVICE_MEDIA_VCD2P0;
return MSG_DEVICE_MEDIA_VCD1P1;
#if D_SUPPORT_SACD
case MEDIA_TYPE_SACD:
return MSG_DEVICE_MEDIA_SACD;
#endif // D_SUPPORT_SACD
#ifdef FTA_SUPPORT
case MEDIA_TYPE_FTA:
return MSG_DEVICE_MEDIA_FTA;
#endif // FTA_SUPPORT
#ifdef D_KADAK_PICTURE_CD_SUPPORT
case MEDIA_TYPE_KADAK_PICTURE_CD:
#endif // D_KADAK_PICTURE_CD_SUPPORT
#ifdef D_FUJICOLOR_PICTURE_CD_SUPPORT
case MEDIA_TYPE_FUJICOLOR_PICTURE_CD:
#endif // D_FUJICOLOR_PICTURE_CD_SUPPORT
case MEDIA_TYPE_CLIPS:
switch(DeviceManager_GetDeviceType(wDeviceId))
{
#ifdef SUPPORT_FLASH_CARD
case DEVICE_TYPE_SD:
return MSG_DEVICE_MEDIA_SD;
case DEVICE_TYPE_MMC:
return MSG_DEVICE_MEDIA_MMC;
case DEVICE_TYPE_MS:
return MSG_DEVICE_MEDIA_MS;
case DEVICE_TYPE_MSPRO:
return MSG_DEVICE_MEDIA_MSPRO;
case DEVICE_TYPE_CF:
return MSG_DEVICE_MEDIA_CF;
case DEVICE_TYPE_SM:
return MSG_DEVICE_MEDIA_SM;
case DEVICE_TYPE_XD:
return MSG_DEVICE_MEDIA_XD;
case DEVICE_TYPE_USB:
return MSG_DEVICE_MEDIA_USB;
#endif// SUPPORT_FLASH_CARD
case DEVICE_TYPE_DISC:
if(DeviceManager_IsDiscCDDTS())
return MSG_DEVICE_MEDIA_CDDTS;
else if(DeviceManager_IsDiscCDDA())
return MSG_DEVICE_MEDIA_CDDA;
else if (CoreAPI_IsCDUpdateDisc())
return MSG_DEVICE_MEDIA_UPGRADE_DISC;
else
return MSG_DEVICE_MEDIA_CLIP;
default:
break;
}
case MEDIA_TYPE_NOMEDIA:
if (DEVICE_TYPE_DISC == DeviceManager_GetDeviceType(wDeviceId))
return MSG_DEVICE_MEDIA_NO_DISK;
break;
case MEDIA_TYPE_UNKNOWN:
{
switch(DeviceManager_GetDeviceType(wDeviceId))
{
#ifdef SUPPORT_FLASH_CARD
case DEVICE_TYPE_SD:
case DEVICE_TYPE_MMC:
case DEVICE_TYPE_MS:
case DEVICE_TYPE_MSPRO:
case DEVICE_TYPE_CF:
case DEVICE_TYPE_SM:
case DEVICE_TYPE_XD:
return MSG_DEVICE_MEDIA_BAD_CARD;
case DEVICE_TYPE_USB:
return MSG_DEVICE_MEDIA_BAD_USB;
#endif// SUPPORT_FLASH_CARD
default:
return MSG_DEVICE_MEDIA_BAD_DISK;
}
}
default:
break;
}
return MSG_DEVICE_MEDIA_NONE;
}
static CONST UINT8 * _GetDeviceIcon(UINT16 wDeviceId)
{
//can't get disc device type before load
if (DEVICE_DISC == wDeviceId)
return BMP_MESSAGE_DEVICE_DISC;
switch (DeviceManager_GetDeviceType(wDeviceId))
{
#ifdef SUPPORT_FLASH_CARD
case DEVICE_TYPE_SD:
return BMP_MESSAGE_DEVICE_SD;
case DEVICE_TYPE_MMC:
return BMP_MESSAGE_DEVICE_MMC;
case DEVICE_TYPE_MS:
return BMP_MESSAGE_DEVICE_MS;
case DEVICE_TYPE_MSPRO:
return BMP_MESSAGE_DEVICE_MSPRO;
case DEVICE_TYPE_CF:
return BMP_MESSAGE_DEVICE_CF;
case DEVICE_TYPE_SM:
return BMP_MESSAGE_DEVICE_SM;
case DEVICE_TYPE_XD:
return BMP_MESSAGE_DEVICE_XD;
case DEVICE_TYPE_USB:
return BMP_MESSAGE_DEVICE_USB;
#endif//SUPPORT_FLASH_CARD
case DEVICE_TYPE_DISC:
return BMP_MESSAGE_DEVICE_DISC;
default:
return NULL;
}
}
/****************************************************************************************************
* DEFINITION: Private functions
****************************************************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -