亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? o_karaoke.c

?? ZORAN 962/966 SOURCE CODE,DVD chip
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* **************************************************************************************
*  Copyright (c) 2005 ZORAN Corporation, All Rights Reserved
*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
*  File: $Workfile: o_karaoke.c$
*
* Description:
* ========
* Project definition of the MSO_KARAOKE
*
****************************************************************************************/
#include "Config.h"				// Global Configuration - do not remove!
#include "Include\SysDefs.h"	// Global definition - do not remove!

#ifdef _DEBUG
#undef IFTRACE
#define IFTRACE if (gTraceUI)
#include "Debug\DbgMain.h"
#endif //_DEBUG

#ifdef INTERNAL_KARAOKE

/***************************************************************************************
* Include files
****************************************************************************************/
#include <stdio.h>
#include <string.h>
#include "include\sysdefs.h"
#include "Playcore\Coremain\coregdef.h"
#include "Playcore\Ps\Ps.h"

//Include API Files
#include "CoreAPI\CoreAPI.h"

// Included UI LOW LEVEL files

// Included UI MENU SYSTEM files
#include "GUI\Menu_system\ms_object.h"
#include "GUI\Menu_system\osd_rendering.h"
#include "GUI\Menu_system\ms_screen.h"
#include "GUI\Menu_system\ms_menu.h"
#include "GUI\Menu_system\ms_component.h"
#include "GUI\Menu_system\ms_container.h"
#include "GUI\Menu_system\ms_display.h"

#include "GUI\Object_class\Text\mso_text.h"
#include "GUI\Object_class\Hscroll\mso_hscroll_text.h"
#include "GUI\Object_class\Page\mso_page.h"
#include "GUI\Object_class\Button\mso_button.h"
#include "GUI\Object_class\Vlist\mso_vlist.h"
#include "GUI\Object_class\Choice\mso_choice.h"
#include "GUI\Object_class\Hslider\mso_hslider.h"

// Included CUSTOMER files
#include "Components\Message\o_message_handler.h"
#include "Resource\Bitmap\bitmap.h"
#include "Menu\menu_operation_def.h"
#include "Menu_config\menu_config_common.h"

// Included string related files
#include "Library\String_generate.h"
#include "Library\Number.h"
#include "Strings\Strings.h"
#include "Library\Container_misc.h"


#ifndef DEBUG_UI_TRACE
#undef dbg_printf(sMsg)
#define dbg_printf(sMsg)
#undef	dbgm_printf(sMsg, mode)
#define dbgm_printf(sMsg, mode)
#endif

// Include the module header file
#include "Components\Karaoke\o_karaoke.h"
// Include custom header file: customer specific definitions, over-writing common ones.
#include "Components\Karaoke\o_karaoke_config.h"
// Include configuration header file: named constants, macros and typedefs.
#include "Components\Custom\Karaoke\o_karaoke_custom.h"


/***************************************************************************************
* 	Utility functions
****************************************************************************************/
static BOOL _AddItemsToKaraokeKit(MSO_VLIST __NEAR* pList);
STATIC int _CalculateKeyShift(int iHardwareValue);
STATIC int _CalculateEcho(int iHardwareValue);

/***************************************************************************************
* 	Operation functions
****************************************************************************************/
static MS_OP _KaraokeOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);
static MS_OP _KaraokeKitOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);
static MS_OP _KaraokekitVlistOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);
static MS_OP _KaraokeOnOffChoiceOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);

#ifdef D_KARAOKE_LRMODE
static MS_OP _LRModeChoiceOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);
#endif//D_KARAOKE_LRMODE

static MS_OP _KeyShiftHSliderOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);
static MS_OP _EchoHSliderOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);
static MS_OP _VoiceCancelChoiceOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);

#ifdef D_KARAOKE_MELODY
static MS_OP _MelodyChoiceOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);
#endif//D_KARAOKE_MELODY

#ifdef D_KARAOKE_MIC_EFFECT
static MS_OP _MicEffectChoiceOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);
#endif//D_KARAOKE_MIC_EFFECT

#ifdef D_VOCAL_SUPPORT_ENABLED
static MS_OP _VocalEffectChoiceOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);
#endif // D_VOCAL_SUPPORT_ENABLED

/***************************************************************************************
* 	Display functions
****************************************************************************************/
static BOOL _KaraokeFillOSDSeg(MSO_OBJECT __NEAR* pThis, MS_AREA __NEAR* pAbsArea);

/***************************************************************************************
* 	Choice item action functions
****************************************************************************************/
STATIC void _KaraokeOnOffChoiceAction(MSO_OBJECT __NEAR* pThis, enMutatorType eType, UINT16 wValue);
#ifdef D_KARAOKE_LRMODE
STATIC void _LRModeChoiceAction(MSO_OBJECT __NEAR* pThis, enMutatorType eType, UINT16 wValue);
#endif//D_KARAOKE_LRMODE
STATIC UINT16 _KeyShiftSliderAction(HSLIDER_ACTION eType, UINT16 wValue);
STATIC UINT16 _EchoSliderAction(HSLIDER_ACTION eType, UINT16 wValue);
STATIC void _VoiceCancelChoiceAction(MSO_OBJECT __NEAR* pThis, enMutatorType eType, UINT16 wValue);
#ifdef D_KARAOKE_MELODY
STATIC void _MelodyChoiceAction(MSO_OBJECT __NEAR* pThis, enMutatorType eType, UINT16 wValue);
#endif//D_KARAOKE_MELODY

#ifdef D_KARAOKE_MIC_EFFECT
STATIC void _MicEffectChoiceAction(MSO_OBJECT __NEAR* pThis, enMutatorType eType, UINT16 wValue);
#endif//D_KARAOKE_MIC_EFFECT

#ifdef  D_VOCAL_SUPPORT_ENABLED
STATIC void  _VocalEffectChoiceAction(MSO_OBJECT __NEAR* pThis, enMutatorType eType, UINT16 wValue);
#endif//D_VOCAL_SUPPORT_ENABLED

/***************************************************************************************
* 	Include customization file.
****************************************************************************************/

// Include custom code file: customer specific code, over-writing common one.
#include "Components\Custom\Karaoke\o_karaoke_custom.c"
// Include configuration file: constants.
#include "Components\Karaoke\o_karaoke_config.c"


/***************************************************************************************
* 	Utility functions
****************************************************************************************/
static BOOL _AddItemsToKaraokeKit(MSO_VLIST __NEAR* pList)
{
	if(NULL != pList)
	{
		UINT8 cIndex;
		UINT8 cNumItems;
		UINT8 cTotalItemsInToolkit = 0;
		MSO_OBJECT __NEAR* pObject;

		// Get the total number of tools in the toolkit
		while(NULL != aKaraokeKit[cTotalItemsInToolkit])
			cTotalItemsInToolkit++;

		pList->moParam.mwTotalItems = cTotalItemsInToolkit;
		
		cNumItems = MIN(pList->moParam.mcNumVisibleItems, (pList->moParam.mwTotalItems - pList->moParam.mwFirstDisplayItem));
		
		for(cIndex = 0; cIndex < cNumItems; cIndex++)
		{			
			pObject = OVLIST_CreateAndAppendItem(pList, aKaraokeKit[pList->moParam.mwFirstDisplayItem + cIndex]);
			
			MS_SendOperation(pObject, MS_OP_OPEN, 0);
			MS_SendOperation(pObject, MS_OP_INIT, 0);		
		}			
		return TRUE;
	}	
	return FALSE;
}

/***************************************************************************************
*	Function	: 	_CalculateKeyShift
*
*	In		: 	iHardwareValue	=	Hardware value of the keyshift.
*
*	Out		: 	None.
*
*	Return	:	Hardware value of the keyshift translated to slider value.
*
*	Desc 	:	Translates the actual value to a slider value.
****************************************************************************************/
CONST KARAOKE_KEYSHIFT_SETTING aKeyShiftStages[] = 
{	
	KARAOKE_KEY_SHIFT_L7, KARAOKE_KEY_SHIFT_L6, KARAOKE_KEY_SHIFT_L5, KARAOKE_KEY_SHIFT_L4,
	KARAOKE_KEY_SHIFT_L3, KARAOKE_KEY_SHIFT_L2, KARAOKE_KEY_SHIFT_L1,
	KARAOKE_KEY_SHIFT_OFF,
	KARAOKE_KEY_SHIFT_R1, KARAOKE_KEY_SHIFT_R2, KARAOKE_KEY_SHIFT_R3, KARAOKE_KEY_SHIFT_R4,
	KARAOKE_KEY_SHIFT_R5, KARAOKE_KEY_SHIFT_R6, KARAOKE_KEY_SHIFT_R7
 };

STATIC int _CalculateKeyShift(int iHardwareValue)
{
	int iKeyShift = 0;

	while (aKeyShiftStages[iKeyShift ] != iHardwareValue)
	{ 
		iKeyShift ++;
	}
	return iKeyShift;
}


/***************************************************************************************
*	Function	: 	_CalculateEcho
*
*	In		: 	iHardwareValue	=	Hardware value of Echo.
*
*	Out		: 	None.
*
*	Return	:	Hardware value of the Echo translated to slider value.
*
*	Desc 	:	Translates the actual value to a slider value.
****************************************************************************************/
STATIC int _CalculateEcho(int iHardwareValue)
{
	return (iHardwareValue * ECHO_SLIDER_MAX_VALUE  / HW_MAX_ECHO_DELAY);
}

/***************************************************************************************
* 	Operation functions
****************************************************************************************/

/***************************************************************************************
*	Function 	: 	_KaraokeOperation
*
*	In		:
*
*	Out		:
*
*	Desc 	:	MSO_KARAOKE user operation function.
****************************************************************************************/
#pragma argsused
static MS_OP _KaraokeOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam)
{
	// Pre-processing
	switch(MsOp)
	{
	case MS_OP_INIT:
		{
#ifdef D_GUI_O_KARAOKE_TIMEOUT
			MSO_KARAOKE __NEAR* pKaraoke = (MSO_KARAOKE __NEAR*)pThis;
			pKaraoke->moParam.mwTimeOut = KARAOKE_TIMEOUT_SECONDS * 10;
#endif
			MS_ComponentInitFocus((MSO_COMPONENT __NEAR*)pThis);
		}
		break;

	case MS_OP_TICK:
		if (!CoreAPI_IsBitsteamAllowedKaraoke())
		{
			MS_SendOperation(pThis, MS_OP_CLOSE_PARENT, 0);
		}
#ifdef D_GUI_O_KARAOKE_TIMEOUT
		else
		{
			MSO_KARAOKE __NEAR* pKaraoke = (MSO_KARAOKE __NEAR*)pThis;
			if (pKaraoke->moParam.mwTimeOut)
			{
				pKaraoke->moParam.mwTimeOut--;
				if (0 == pKaraoke->moParam.mwTimeOut)
				{
					MS_SendOperation(pThis, MS_OP_CLOSE_PARENT, 0);
				}
			}
		}
#endif
		break;

#ifdef D_GUI_O_KARAOKE_TIMEOUT
	case MS_OP_UP:
	case MS_OP_DOWN:
	case MS_OP_RIGHT:
	case MS_OP_LEFT:
	case MS_OP_ENTER:
		{
			MSO_KARAOKE __NEAR* pKaraoke = (MSO_KARAOKE __NEAR*)pThis;
			pKaraoke->moParam.mwTimeOut = KARAOKE_TIMEOUT_SECONDS * 10;
		}
		break;
#endif

	case MS_OP_LR:
		{
			// There are two ways to modify the L/R mode:
			// 1. Pressing the L/R key on the remote control.
			// 2. Pressing the L/R Mode button on the Karaoke component. 
			// If the L/R key is pressed, the value displayed for the L/R mode on the karaoke component 
			// needs to be refreshed. An easy solution(Kerchak solution) is to close the karaoke component.
			MS_SendOperation(pThis, MS_OP_CLOSE_PARENT, 0);
		}
		break;
		
	case MS_OP_KARAOKE:
		{
			MS_SendOperation(pThis, MS_OP_CLOSE_PARENT, 0);
		}
		return MS_OP_NONE;

	case MS_OP_CLOSE_PARENT:
		{
			// When close the componet, save setting
			CoreAPI_UpdatePlayerSetting(PS_UPDATE_SAVE_SETTINGS, 0);
		}
		break;

	default:
		break;
	}	
	return MS_ComponentBasicOperation(pThis, MsOp, lParam);
}

/***************************************************************************************
*	Function 	: 	_KaraokeKitOperation
*
*	In		:
*
*	Out		:
*
*	Desc 	:	The karaoke kit operation function.
****************************************************************************************/
#pragma argsused
static MS_OP _KaraokeKitOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam)
{
	//Pre-processing
	// TODO : if any	

	MsOp = VScrollListOperation(pThis, MsOp, lParam);

	// Post-processing
	switch(MsOp)
	{		
	case MS_OP_REFRESH:
		{			
			MSO_VLIST __NEAR* pList = (MSO_VLIST __NEAR*)MS_GetObjectListPtr(pThis);				
			MS_ASSERT(NULL != pList);

			if(pList->moParam.mwTotalItems > pList->moParam.mcNumVisibleItems)
			{
				// Remove all items.
				MS_SendOperation((MSO_OBJECT __NEAR*)pList, MS_OP_EMPTY, 0);

				_AddItemsToKaraokeKit(pList);
				MS_DisplayAddObject(pThis);	

				// Set focus to the appropriate list item.
				if(MS_IsFocused(pList))
				{
					MSO_OBJECT __NEAR* pObject = MS_GetObjectListPtr(pList);
						
					if(!MS_IS_FOCUS_ON_LASTITEM(pList))	
						MS_ScreenSetFocusObject(pObject);
					else
					{						
						// Make sure we do not set focus on the Value VScroll list.					
						while(NULL != pObject->mpNext)
							pObject = pObject->mpNext;						
						MS_ScreenSetFocusObject(pObject);
					}
				}
			}			
		}
		return MS_OP_NONE;
		
	default:
		break;
	}	
	return MsOp;
}

/***************************************************************************************
*	Function 	: 	_KaraokekitVlistOperation
*
*	In		:
*
*	Out		:
*
*	Desc 	:	The karaoke kit VLIST operation function.
****************************************************************************************/
#pragma argsused
static MS_OP _KaraokekitVlistOperation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam)
{
	switch(MsOp)
	{
	case MS_OP_INIT:
		return MS_OP_NONE;
		
	case MS_OP_OPEN:
		_AddItemsToKaraokeKit((MSO_VLIST __NEAR*)pThis);
		break;
		
	default:
		break;
	}	
	return VListOperation(pThis, MsOp, lParam);
}

/***************************************************************************************
*	Function 	: 	_KaraokeOnOffChoiceOperation
*
*	In		:
*

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丁香天五香天堂综合| 久久亚洲综合av| 在线观看亚洲专区| 99riav一区二区三区| av电影一区二区| 91色porny在线视频| av亚洲精华国产精华| 97成人超碰视| 91美女视频网站| 欧美羞羞免费网站| 欧美性xxxxxx少妇| 69精品人人人人| 日韩欧美一级二级| 精品av久久707| 日本一区二区免费在线| 亚洲欧洲av一区二区三区久久| 亚洲视频一二三| 亚洲线精品一区二区三区八戒| 亚洲v日本v欧美v久久精品| 日韩中文字幕麻豆| 美国av一区二区| 国产精品香蕉一区二区三区| www.av亚洲| 欧美亚洲高清一区二区三区不卡| 这里只有精品电影| 2020日本不卡一区二区视频| 国产人成一区二区三区影院| 亚洲色图一区二区三区| 亚洲成人动漫av| 激情小说欧美图片| 成人免费视频免费观看| 色婷婷香蕉在线一区二区| 欧美性大战xxxxx久久久| 日韩欧美久久一区| 亚洲国产精品99久久久久久久久 | 亚洲电影你懂得| 麻豆久久一区二区| jizz一区二区| 欧美日韩成人综合在线一区二区| 精品久久久久久无| 中文字幕中文字幕一区| 天堂va蜜桃一区二区三区| 国产剧情av麻豆香蕉精品| 色综合天天综合给合国产| 日韩视频一区二区| 综合激情网...| 男女男精品视频| 成人激情图片网| 欧美一级高清片在线观看| 中文字幕av一区二区三区免费看| 亚洲国产美女搞黄色| 国产一区福利在线| 欧美日韩国产免费一区二区| 国产精品美女视频| 日韩精品成人一区二区三区| 丁香婷婷综合网| 欧美一区二区三区不卡| 亚洲欧洲色图综合| 久久99国产精品麻豆| 91国在线观看| 国产清纯在线一区二区www| 日本成人在线不卡视频| 一本大道久久a久久综合婷婷 | 日本sm残虐另类| 91片黄在线观看| 国产欧美一区二区精品仙草咪| 日韩成人伦理电影在线观看| 99re亚洲国产精品| 久久精品一区二区三区不卡| 午夜伦理一区二区| 一道本成人在线| 中文字幕精品综合| 久久99国产精品尤物| 678五月天丁香亚洲综合网| 亚洲欧美偷拍三级| 粉嫩蜜臀av国产精品网站| 日韩午夜精品视频| 亚洲成人av在线电影| 91在线高清观看| 国产色综合久久| 韩国女主播成人在线| 欧美一区二区视频在线观看2020 | 中文字幕不卡三区| 国产在线精品不卡| 日韩一区二区电影在线| 婷婷开心激情综合| 欧美亚洲自拍偷拍| 一个色综合网站| 91网上在线视频| 中文字幕一区二区三区在线观看| 国产在线观看免费一区| 精品久久五月天| 久久99精品国产麻豆婷婷洗澡| 日韩一区二区在线看| 亚洲va国产天堂va久久en| 91激情在线视频| 一区二区三区在线影院| 欧美在线观看视频一区二区 | 色综合久久久久久久久| 亚洲女人****多毛耸耸8| zzijzzij亚洲日本少妇熟睡| 国产精品国产三级国产| 不卡av在线网| 中文字幕色av一区二区三区| heyzo一本久久综合| 亚洲欧美色图小说| 在线观看三级视频欧美| 一区二区三区欧美激情| 欧美性色欧美a在线播放| 亚洲一区在线观看免费 | 久久久不卡影院| 国产精品1区二区.| 精品久久久三级丝袜| av亚洲精华国产精华| 国产精品污网站| 激情伊人五月天久久综合| 久久亚洲欧美国产精品乐播 | 91麻豆自制传媒国产之光| 亚洲视频香蕉人妖| 欧美性生活影院| 日本欧美肥老太交大片| 久久久久高清精品| 成人精品国产福利| 亚洲综合在线观看视频| 欧美日韩精品欧美日韩精品一| 蜜桃久久久久久久| 久久精品人人做| 成人av网站在线观看免费| 亚洲精品日日夜夜| 欧美一级专区免费大片| 国产精品一区二区久久精品爱涩 | 亚洲男人的天堂av| 欧美日韩成人在线一区| 狠狠色丁香久久婷婷综合_中| 国产精品美女久久久久aⅴ| 色综合天天综合在线视频| 日日夜夜精品视频天天综合网| 久久日韩精品一区二区五区| 波多野结衣中文一区| 国产精品视频免费看| 国产精品久久久久一区二区三区共| 成人免费视频视频| 亚洲18色成人| 日韩欧美国产一区二区三区| 丁香六月综合激情| 亚洲综合色噜噜狠狠| 精品国产乱码久久久久久1区2区| 99视频有精品| 免费欧美高清视频| 国产精品蜜臀在线观看| 3d动漫精品啪啪一区二区竹菊| 国产高清一区日本| 午夜视黄欧洲亚洲| 国产精品拍天天在线| 欧美精品高清视频| 国v精品久久久网| 日本不卡免费在线视频| 中文字幕日本乱码精品影院| 欧美一区二区三区视频免费| 91网站在线播放| 久草精品在线观看| 亚洲精品v日韩精品| 久久久精品黄色| 欧美日韩一级二级| 粉嫩欧美一区二区三区高清影视| 天天色天天爱天天射综合| 亚洲日本一区二区| 2023国产精品自拍| 911精品国产一区二区在线| www.综合网.com| 国产真实精品久久二三区| 五月综合激情日本mⅴ| 国产传媒一区在线| 国产资源在线一区| 亚洲国产美女搞黄色| 国产精品无遮挡| 精品国产乱码91久久久久久网站| 欧美日韩一本到| 91网站最新网址| 99这里都是精品| 国产一区免费电影| 久久精品国产久精国产爱| 亚洲尤物视频在线| 亚洲男人天堂一区| 亚洲欧洲av另类| 国产精品护士白丝一区av| 久久久久久久久岛国免费| 欧美一区二区三区男人的天堂| 欧美日韩情趣电影| 色婷婷久久久综合中文字幕| 99久久伊人精品| 风间由美中文字幕在线看视频国产欧美 | 欧美精品视频www在线观看| 91网址在线看| 91免费看片在线观看| 9i看片成人免费高清| 高清不卡在线观看av| 国产91精品入口| 国产99久久久精品| 国产成人小视频|