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

📄 key_2_uop.c

📁 SAMSUNG 5009的源代码
💻 C
📖 第 1 页 / 共 2 页
字号:
	Uop_t	tx;	switch( gMain_state.disc )	{		case DVDV_DISC:			tx.uop_id = UOP_DVDV_TIME_SEARCH;			tx.param.dvdv_time_search.hour = hour;			tx.param.dvdv_time_search.min = min;			tx.param.dvdv_time_search.sec = sec;			SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );			break;	#if _APP_CAP_NAV_DVD_VIDEO					case DVDA_DISC:			tx.uop_id = UOP_DVDA_TIME_SEARCH;			tx.param.dvda_time_search.hour = hour;			tx.param.dvda_time_search.min = min;			tx.param.dvda_time_search.sec = sec;			SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );			break;#endif		case SVCD_DISC:		case VCD_DISC:		case CD_I:		case CD_DA:  //added by phk 20050329		case HQVCD_DISC:			tx.uop_id = UOP_SVCD_TIME_SEARCH;			tx.param.svcd_time_search.hour = hour;			tx.param.svcd_time_search.min = min;			tx.param.svcd_time_search.sec = sec;			SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );			break;#if _APP_CAP_NAV_MMP_PLAY_VIDEO_FILE	// cydrain 20060117		case CD_DATA:		case DVD_DATA:		case USB_DATA:		case FX_DATA:			tx.uop_id = UOP_MMP_TIME_SEARCH;			tx.param.time_search.hour = hour;			tx.param.time_search.min = min;			tx.param.time_search.sec = sec;			SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );			break;#endif		default:			break;	}}#if 0 //can be replaced by uitimesearch azureming@060726/****************************************************************************** *  Function name : UiMmpTimeSearch *  Arguments     : hour, min, sec,key *  Return        : VOID *  By            : Taejin Kwon *  Description   :	 *  Revisions     : (Qian liping 060227) ****************************************************************************** */VOID UiMmpTimeSearch(  UopId_t	uop_id, UCHAR hour, UCHAR min, UCHAR sec, BYTE1 key){	Uop_t	tx;	tx.uop_id = uop_id;	tx.param.time_search.hour = hour;	tx.param.time_search.min = min;	tx.param.time_search.sec = sec;	tx.param.time_search.key = key;		SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}#endif/****************************************************************************** *  Function name : UiRepeat *  Arguments     :  *  Return        : VOID *  By            : Taejin Kwon *  Description   :  *  Revisions     : ****************************************************************************** */VOID UiRepeat( BYTE1 type ){	Uop_t tx;	UCHAR	uop_id[] = { 		UOP_NULL, 		UOP_DVDV_REPEAT, 		UOP_SVCD_REPEAT,		UOP_MMP_REPEAT	};	tx.uop_id = (UopId_t)uop_id[S5H_GetAppType()];	if(S5H_GetAppType() == APP_MMN)		// cydrain 20060410		tx.param.repeat.repeat_action = type;	else		tx.param.repeat.repeat_action = (type-REPEAT_SUB_NONE) + PARAM_REPEAT_CANCEL;		SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );		}#if _APP_CAP_FUNC_BOOKMARK/****************************************************************************** *  Function name : UiBookmark *  Arguments     :  *  Return        : VOID *  By            : Taejin Kwon *  Description   :  *  Revisions     : ****************************************************************************** */VOID UiBookmark( UINT	bookmark, UINT type ){	Uop_t tx;	DiscType_t		disc;	disc = GetDiscState();	switch( disc )	{		case DVDV_DISC:		case DVDA_DISC:/*Jiangshanbin  For DVDA disc. 060323*/			tx.uop_id = UOP_DVDV_BOOKMARK;			tx.param.dvdv_bookmark.bookmark_num = (BYTE1)bookmark;			tx.param.dvdv_bookmark.bookmark_action = (BYTE1)type;			break;					case SVCD_DISC:		case VCD_DISC:		case CD_I:		case CD_DA:		case HQVCD_DISC:			tx.uop_id = UOP_SVCD_BOOKMARK;			tx.param.svcd_bookmark.bookmark_num = (BYTE1)bookmark;			tx.param.svcd_bookmark.bookmark_action = (BYTE1)type;			break;			#ifdef _MMP_BOOKMARK	// cydrain 20060210		case CD_DATA:		case DVD_DATA:		case USB_DATA:		case FX_DATA:			tx.uop_id = UOP_MMP_BOOKMARK;			tx.param.mmp_bookmark.bookmark_num = (BYTE1)bookmark;			tx.param.mmp_bookmark.bookmark_action = (BYTE1)type;			break;#endif	}	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}#endif/****************************************************************************** *  Function name : UiTrackPlay *  Arguments     : title_num *  Return        : VOID *  By            : Taejin Kwon *  Description   :	 *  Revisions     : ****************************************************************************** */VOID UiTrackPlay( UCHAR	track_num, BYTE1 mode ){	Uop_t	tx;	tx.uop_id = UOP_SVCD_TRACK_PLAY;	tx.param.svcd_track_play.track_num = track_num;	tx.param.svcd_track_play.play_mode = mode;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}/****************************************************************************** *  Function name : UiDvdvPassword *  Arguments     : passwd *  Return        : VOID *  By            : Taejin Kwon *  Description   :	 *  Revisions     : ****************************************************************************** */VOID UiDvdvPassword( BOOL pass ){	Uop_t	tx;	tx.uop_id = UOP_DVDV_PASSWORD;	tx.param.dvdv_password.passed = pass;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}#if _APP_CAP_FUNC_DISPLAY_FIT/****************************************************************************** *  Function name : UiDisplayFit *  Arguments     :  *  Return        : VOID *  By            : Taejin Kwon *  Description   :  *  Revisions     : ****************************************************************************** */VOID UiDisplayFit( VOID ){	Uop_t	tx;	tx.uop_id = UOP_DVDV_EZ_VIEW;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}#endif#if _APP_CAP_FUNC_INSTANT_PLAY/****************************************************************************** *  Function name : UiInstantReplay *  Arguments     :  *  Return        : VOID *  By            : Taejin Kwon *  Description   :  *  Revisions     : ****************************************************************************** */VOID UiInstantReplay( VOID ){	Uop_t	tx;	tx.uop_id = UOP_DVDV_INSTANT_REPLAY;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}/****************************************************************************** *  Function name : UiInstantSkip *  Arguments     :  *  Return        : VOID *  By            : Taejin Kwon *  Description   :  *  Revisions     : ****************************************************************************** */VOID UiInstantSkip( VOID ){	Uop_t	tx;	tx.uop_id = UOP_DVDV_INSTANT_SKIP;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}#endif#if _APP_CAP_FUNC_VCD_DIGEST_PREVIEW||_APP_CAP_FUNC_DVD_DIGEST/****************************************************************************** *  Function name : UiDigest *  Arguments     :  *  Return        : VOID *  By            : WangLin *  Description   :  *  Revisions     : changlina 060731 add code for dvd digest ****************************************************************************** */VOID UiDigest(BYTE1 mode)//clina061009{	Uop_t tx;	tx.uop_id =UOP_DIGEST;//UOP_SVCD_DIGEST;	tx.param.digest_mode.mode = mode;		SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}#endif/****************************************************************************** * Function name  : UiMmpChangeMedia  * Arguments      :   *     IN         *			 MmpFileType_et type_select *     OUT        *     I/O        * Return         :   *			 VOID * By             : Kim Do Yeon * Description    :   * Revision       :   ****************************************************************************** */VOID UiMmpChangeMedia(MmpFileType_et type_select){	Uop_t	tx;	tx.uop_id = UOP_MMP_CHANGE_MEDIA_TYPE;	tx.param.mmp_change.file_type = type_select;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}	/****************************************************************************** * Function name  : UiMmpChangeDir  * Arguments      :   *     IN         *			 BYTE2 folder_index, BYTE2 file_index, BYTE1 sub_action *     OUT        *     I/O        * Return         :   *			 VOID * By             : Kim Do Yeon * Description    :   * Revision       :   ****************************************************************************** */VOID UiMmpChangeDir(BYTE2 folder_index, BYTE2 file_index, BYTE1 sub_action){	Uop_t	tx;	SYS_RETURN ret;	tx.uop_id = UOP_MMP_CHANGE_DIR;	tx.param.mmp_dir.open_folder = folder_index;	tx.param.mmp_dir.open_file = file_index;	tx.param.mmp_dir.sub_action = sub_action;		ret = SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}	/****************************************************************************** * Function name  : UiMmpPlayFile  * Arguments      :   *     IN         *			 BYTE2 file_index *     OUT        *     I/O        * Return         :   *			 BOOL * By             : Kim Do Yeon * Description    :   * Revision       :   ****************************************************************************** */BOOL UiMmpPlayFile(BYTE2 file_index){	Uop_t	tx;#if 0	if(file_index == MMP_NO_SELECTION)		return FALSE;#endif		tx.uop_id = UOP_PLAY;	tx.param.mmp_index.index = file_index;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );	return TRUE;}/****************************************************************************** *  Function name : UiMmpSlideShow *  Arguments     : BYTE2 file_index, UINT slide_time *  Return        : VOID *  By            : Liurenliang *  Description   :  *  Revisions     : ****************************************************************************** */VOID UiMmpSlideShow(BYTE2 file_index, UINT slide_time){	Uop_t	tx;	tx.uop_id = UOP_MMP_SLIDE_SHOW;	tx.param.mmp_slide_show.file_index = file_index;	tx.param.mmp_slide_show.time = slide_time;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}/****************************************************************************** * Function name  : UiMmpDrawImagePreview  * Arguments      :   *     IN         *			 BYTE2 file_index, SH_RotateAngle_et rotate *     OUT        *     I/O        * Return         :   *			 VOID * By             : Kim Do Yeon * Description    :   * Revision       :   ****************************************************************************** */VOID UiMmpDrawImagePreview(BYTE2 file_index, SH_RotateAngle_et rotate){	Uop_t	tx;	tx.uop_id = UOP_MMP_IMAGE_PREVIEW;	tx.param.mmp_image.file_index = file_index;	tx.param.mmp_image.angle = rotate;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}/****************************************************************************** * Function name  : UiMmpDrawImageFull * Arguments      :   *     IN         *			 BYTE2 file_index, SH_RotateAngle_et rotate *     OUT        *     I/O        * Return         :   *			 VOID * By             : Kim Do Yeon * Description    :   * Revision       :   ****************************************************************************** */VOID UiMmpDrawImageFull(BYTE2 file_index, SH_RotateAngle_et rotate){	Uop_t	tx;	tx.uop_id = UOP_MMP_IMAGE_FULL;	tx.param.mmp_image.file_index = file_index;	tx.param.mmp_image.angle = rotate;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}/****************************************************************************** * Function name  : UiMmpDelayedPlay * Arguments      :   *     IN         *			 BYTE2 file_index *     OUT        *     I/O        * Return         :   *			 VOID * By             : Kim Do Yeon * Description    :   * Revision       :   ****************************************************************************** */ VOID UiMmpDelayedPlay(BYTE2 file_index){	Uop_t	tx;	SYS_RETURN ret;	tx.uop_id = UOP_MMP_DELAYED_PLAY ;	tx.param.mmp_index.index = file_index;	ret = SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}/****************************************************************************** * Function name  : UiMmpDrawAlbum * Arguments      :   *     IN         *			 BYTE2 select, BYTE1 draw_history *     OUT        *     I/O        * Return         :   *			 VOID * By             : Kim Do Yeon * Description    :   * Revision       :   ****************************************************************************** */VOID UiMmpDrawAlbum(BYTE2 select, BYTE1 draw_history){	Uop_t	tx;	tx.uop_id = UOP_MMP_DRAW_ALBUM ;	tx.param.mmp_show_album.file_index = select;	tx.param.mmp_show_album.draw_history = draw_history;		SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}VOID UiMmpAlbumEnter(BYTE2 select){	Uop_t	tx;	tx.uop_id = UOP_MMP_ALBUM_ENTER ;	tx.param.mmp_show_album.file_index = select;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}/****************************************************************************** * Function name  : UiMmpUpdateAlbumSelect * Arguments      :   *     IN         *			 BYTE2 album_select *     OUT        *     I/O        * Return         :   *			 VOID * By             : Kim Do Yeon * Description    :   * Revision       :   ****************************************************************************** */VOID UiMmpUpdateAlbumSelect(BYTE2 album_select){	Uop_t	tx;	tx.uop_id = UOP_MMP_UPDATE_ALBUM;	tx.param.mmp_index.index = album_select;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}	//gaoping 20060403 when one jpg full is end , if you press stop quickly it will hangupVOID UiMmpImageReturn(BOOL stop_state){	Uop_t	tx;	tx.uop_id = UOP_MMP_IMAGE_RETURN;	tx.param.is_mmp_image_stop=stop_state;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}/****************************************************************************** * Function name  : UiMmpFullStop * Arguments      :   *     IN         *			 MmpReqMode_et req_mode *     OUT        *     I/O        * Return         :   *			 VOID * By             : Kim Do Yeon * Description    :   * Revision       :   ****************************************************************************** */VOID UiMmpFullStop(MmpReqMode_et req_mode){	Uop_t	tx;	tx.uop_id = UOP_MMP_FULL_STOP;	tx.param.mmp_full_stop.req = req_mode;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );	}#if _APP_CAP_OSD_FLATTEN_EXPLORERVOID UiMmpIntoImgDisplay( BYTE2 folder_index,BYTE2 file_index)//xh 20060424{	Uop_t	tx;	tx.uop_id = UOP_MMP_INTO_IMAGE_FULL;	tx.param.mmp_image.folder_index=folder_index;	tx.param.mmp_image.file_index = file_index;	SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}#endif /* _APP_CAP_OSD_FLATTEN_EXPLORER */#if !(_APP_CAP_OSD_FLATTEN_EXPLORER)/****************************************************************************** * Function name  : UiMmpPlayAvailFile * Arguments      :   *     IN         *			 BYTE1 sub_act *     OUT        *     I/O        * Return         :   *			 VOID * By             : Kim Do Yeon * Description    :   * Revision       :   ****************************************************************************** */VOID UiMmpPlayAvailFile(BYTE1 sub_act){	Uop_t	tx;	tx.uop_id = UOP_MMP_NEXT_FOLDER;	tx.param.mmp_next.sub_act = sub_act;		SysSendMsg( &gQ_gui, &tx, sizeof(Uop_t), SYS_NO_WAIT, 0 );}#endif /* !(_APP_CAP_OSD_FLATTEN_EXPLORER) */

⌨️ 快捷键说明

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