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

📄 o_brightness_edge_controller_config.c

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 C
字号:
/* **************************************************************************************
*  Copyright (c) 2004 ZORAN Corporation, All Rights Reserved
*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
*  File: o_brightness_edge_controller_config.c
*
* Description:
* ========
*
****************************************************************************************/
/***************************************************************************************
* 	The  Component objects
****************************************************************************************/
/***************************************************************************************
* 	Private data structures.
****************************************************************************************/
#ifndef D_CUSTOM_oTextAlignToContainer
CONST MS_X_Y_ALIGN oTextAlignToContainer =
{
	0,
	0,
	ALIGN_H_LEFT_TO_CONTAINER,
    	ALIGN_V_CENTER_TO_CONTAINER
};
#endif // D_CUSTOM
/***************************************************************************************
*	Descriptor 	: 	oBrightnessTitleDescriptor 
*
*	Purpose	 	:	Descriptor of brightness title.
 ****************************************************************************************/
 #ifndef D_CUSTOM_oBrightnessTitleText
static CONST OSD_TEXT oBrightnessTitleText =	
{	OSDR_GetFormUniStr_OsdMessage,		S_BRIGHTNESS};
#endif // D_CUSTOM

#ifndef D_CUSTOM_oBrightnessTitleDescriptor
static CONST MS_DESCRIPTOR_TEXT oBrightnessTitleDescriptor =
{ // MS_DESCRIPTOR_TEXT
	{ // MS_DESCRIPTOR
        	sizeof(MSO_TEXT),
        	MS_NAV_NULL,
        	MS_ATTR_OSD_LAYER_0,
        	{
        		TEXT_START_X,
			TEXT_START_Y,
            		TEXT_WIDTH,
            		TEXT_HEIGHT
        	},
        	OTEXT_Operation,
        	OTEXT_FillOSDSeg,
        	(UINT8*)NULL
    	},
    	(MS_X_Y_ALIGN *)&oTextAlignToContainer,
	(MS_COLOR_SET *)&oDefaultTextColorSet,
	NULL,
	(OSD_TEXT*)&oBrightnessTitleText,
	FONT_0,
	NULL,
	NULL
};
#endif //D_CUSTOM

/***************************************************************************************
*	Descriptor 	: 	oEdgesTitleDescriptor
*
*	Purpose	 	:	Descriptor of edges title.
 ****************************************************************************************/
 #ifndef D_CUSTOM_oEdgesTitleText
static CONST OSD_TEXT oEdgesTitleText =	
{	OSDR_GetFormUniStr_OsdMessage,		S_EDGES};
#endif // D_CUSTOM

#ifndef D_CUSTOM_oEdgesTitleDescriptor
static CONST MS_DESCRIPTOR_TEXT oEdgesTitleDescriptor =
{ // MS_DESCRIPTOR_TEXT
	{ // MS_DESCRIPTOR
        	sizeof(MSO_TEXT),
        	MS_NAV_NULL,
        	MS_ATTR_OSD_LAYER_0,
        	{
        		TEXT_START_X,
			TEXT_START_Y+TEXT_HEIGHT,
            		TEXT_WIDTH,
            		TEXT_HEIGHT
        	},
        	OTEXT_Operation,
        	OTEXT_FillOSDSeg,
        	(UINT8*)NULL
    	},
    	(MS_X_Y_ALIGN *)&oTextAlignToContainer,
	(MS_COLOR_SET *)&oDefaultTextColorSet,
	NULL,
	(OSD_TEXT*)&oEdgesTitleText,
	FONT_0,
	NULL,
	NULL
};
#endif //D_CUSTOM

/***************************************************************************************
*	Descriptor 	: 	oBrightCtrlSliderDescriptor
*
*	Purpose	 	:	The Brightness control Horizontal slider control descriptor.
****************************************************************************************/
#ifndef D_CUSTOM_oBrightCtrlSliderParams
STATIC CONST MS_PARAM_HSLIDER oBrightCtrlSliderParams =
{
	BRIGHT_SLIDER_MIN_VALUE,
	BRIGHT_SLIDER_MAX_VALUE,
	BRIGHT_SLIDER_CURRENT_VALUE,
	BRIGHT_SLIDER_STEP_INDEX
};
#endif //D_CUSTOM

#ifndef D_CUSTOM_oBrightCtrlSliderDescriptor
STATIC CONST MS_DESCRIPTOR_HSLIDER oBrightCtrlSliderDescriptor =
{
	{
    		sizeof(MSO_HSLIDER),
        	MS_NAV_DISABLE_LR,
        	MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0,
        	{
			AREA_SLIDER_X, AREA_SLIDER_Y, AREA_SLIDER_W, AREA_SLIDER_H
        	},
        	HSliderOperation,
        	HSliderFillOSDSeg,
        	(UINT8*)&oBrightCtrlSliderParams
    	},
    	RUNTIME_HSLIDER_BAR_HEIGHT,
    	RUNTIME_HSLIDER_BAR_WIDTH,
    	RUNTIME_HTAB_HEIGHT,
    	RUNTIME_HTAB_WIDTH,
   	HS_HIGHLIGHT_ON_OBJECT,
    	FALSE,	// bDisplayCurrentValue
    	TRUE,//FALSE,	// bDisplayMinAndMaxValues
    	_BrightCtrlSliderAction
};
#endif // D_CUSTOM
/***************************************************************************************
*	Descriptor 	: 	oEdgeCtrlSliderDescriptor
*
*	Purpose	 	:	The Edge control Horizontal slider control descriptor.
****************************************************************************************/
#ifndef D_CUSTOM_oEdgeCtrlSliderParams
STATIC CONST MS_PARAM_HSLIDER oEdgeCtrlSliderParams =
{
	EDGE_SLIDER_MIN_VALUE,
	EDGE_SLIDER_MAX_VALUE,
	EDGE_SLIDER_CURRENT_VALUE,
	EDGE_SLIDER_STEP_INDEX
};
#endif // D_CUSTOM

#ifndef D_CUSTOM_oEdgeCtrlSliderDescriptor
STATIC CONST MS_DESCRIPTOR_HSLIDER oEdgeCtrlSliderDescriptor =
{
	{
    		sizeof(MSO_HSLIDER),
        	MS_NAV_DISABLE_LR,
        	MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0,
        	{
			AREA_SLIDER_X, AREA_SLIDER_Y+AREA_SLIDER_H, AREA_SLIDER_W, AREA_SLIDER_H
        	},
        	HSliderOperation,
        	HSliderFillOSDSeg,
        	(UINT8*)&oEdgeCtrlSliderParams
    	},
    	RUNTIME_HSLIDER_BAR_HEIGHT,
    	RUNTIME_HSLIDER_BAR_WIDTH,
    	RUNTIME_HTAB_HEIGHT,
    	RUNTIME_HTAB_WIDTH,
   	HS_HIGHLIGHT_ON_OBJECT,
    	FALSE,	// bDisplayCurrentValue
    	TRUE,//FALSE,	// bDisplayMinAndMaxValues
    	_EdgeCtrlSliderAction
};
#endif
/***************************************************************************************
* 	The BrightnessEdgeController component
****************************************************************************************/
#define NBR_BRIGHTNESS_EDGE_CONTROLLER_CONTENTS		4

#ifndef D_CUSTOM_apBrightnessEdgeControllerContents
static CONST MS_DESCRIPTOR* CONST apBrightnessEdgeControllerContents[NBR_BRIGHTNESS_EDGE_CONTROLLER_CONTENTS] = 
{
	(MS_DESCRIPTOR*)&oBrightnessTitleDescriptor,
	(MS_DESCRIPTOR*)&oEdgesTitleDescriptor,
	(MS_DESCRIPTOR*)&oBrightCtrlSliderDescriptor,
	(MS_DESCRIPTOR*)&oEdgeCtrlSliderDescriptor
};
#endif //D_CUSTOM

#ifndef D_CUSTOM_oBrightnessEdgeControllerDescriptor
CONST MS_DESCRIPTOR_BRIGHTNESS_EDGE_CONTROLLER oBrightnessEdgeControllerDescriptor =
{
	{// MS_DESCRIPTOR_COMPONENT
		{// MS_DESCRIPTOR_CONTAINER
			{// MS_DESCRIPTOR
				sizeof(MSO_BRIGHTNESS_EDGE_CONTROLLER),
				MS_NAV_DISABLE_LR|MS_NAV_CONTAINER_WRAP_UD,
				MS_ATTR_CONTAINER|MS_ATTR_FOCUSABLE|MS_ATTR_OSD_LAYER_0,
				{ 
					AREA_BRIGHTNESS_EDGE_CONTROLLER_X, 
					AREA_BRIGHTNESS_EDGE_CONTROLLER_Y, 
					AREA_BRIGHTNESS_EDGE_CONTROLLER_W, 
					AREA_BRIGHTNESS_EDGE_CONTROLLER_H
				},
				_BrightnessEdgeControllerComponentOperation,
				_BrightnessEdgeControllerComponentFillOSDSeg,
				mpParamNull
			},			
			(CONST MS_DESCRIPTOR**)apBrightnessEdgeControllerContents,	
			NBR_BRIGHTNESS_EDGE_CONTROLLER_CONTENTS
		},
		(MS_DESCRIPTOR*)&oBrightCtrlSliderDescriptor
	},
	BMP_BG_2
};
#endif //D_CUSTOM

⌨️ 快捷键说明

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