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

📄 display.c

📁 Zoran VP2K731 DVD源代码,极具参考价值!
💻 C
📖 第 1 页 / 共 2 页
字号:
/***********************************************************************/
/* File:															   */
/*	  Copyright (c) 2000 ZORAN Corporation, All Rights Reserved		   */
/*	  THIS IS PROPRIETARY SOURCE CODE OF ZORAN CORPORATION             */
/*																	   */
/* ===========                                                         */
/* Descripton:                                                         */
/* ===========                                                         */
/*                                                                     */
/* Log:                                                                */
/* ===                                                                 */
/* $Name: V_1_16 V_1_15 V_1_14 V_1_13 V_1_12 NV_1_00 $                                                            
/* $Header: v:/dsg/rcs/dsg/vp2k/Customer/menu/zoran/display.c 1.27 2001/06/26 07:45:52 tonnyg Exp $                                                          
/* $Log: display.c $										                       
/* Revision 1.27  2001/06/26 07:45:52  tonnyg										                       
/* Revision 1.26  2001/06/06 06:15:07  dingming										                       
/* font 32X24 complile										                       
/* Revision 1.25  2001/01/27 00:09:22  bhupeshv										                       
/* In on_display_close() relpaced empty string("") with an array of 2char.										                       
/* Revision 1.24  2000/12/20 03:26:26  charlie										                       
/* Shortened Subtitle static text										                       
/* Revision 1.23  2000/12/07 02:29:44  charlie										                       
/* Added current_hide_time and total_hide_time for case when										                       
/* time_display == TRUE with runtime menu active.										                       
/* Revision 1.22  2000/11/17 18:54:11  charlie										                       
/* Use C_FOCUSED										                       
/* Revision 1.21  2000/11/17 17:58:38  charlie										                       
/* Use C_FOCUSED										                       
/* Revision 1.20  2000/11/13 23:32:05  charlie										                       
/* Fixed update_time for CD/MP3										                       
/* Revision 1.19  2000/11/12 02:01:10  charlie										                       
/* Added support for MP3 status, track, time display										                       
/* Revision 1.18  2000/11/09 04:07:30  cliff										                       
/***********************************************************************/
#include <stdio.h>
#include <string.h>
#include "sysdefs.h"
#include "..\..\..\ui\menu_sys\ms_wdgt.h"
#include "..\..\..\ui\menu_sys\ms_lib.h"
#include "..\..\..\ui\menu_sys\osd_drv.h"
#include "..\..\..\decoder\osdrendr.h"
#include "..\..\..\decoder\osdlayou.h"
#ifdef FONT32X24   //DM0605
#include "..\..\..\customer\dragon\strings\strings.h"
#else
#include "..\..\..\ui\strings\strings.h"
#endif
#include "..\..\..\playcore\scpad\scmgr.h"
#include "menu_var.h"
#include "..\..\..\playcore\coremain\coregdef.h"

extern DEC_DISC_TYPE g_disc_type;
static const MS_POS	screen_pos_dvd = {60, 60, 600, MS_MAX_LINES_SMALLMM};
static const MS_POS screen_pos_vcd = {60, 60, 600, 72};




static void layout (void)
{

	go_CurrentLayout.m_bBigMemMap = FALSE;//USE_BIGMEMMAP_WHEN_REQUIRED;
	go_CurrentLayout.m_cPixRes = 0;
	go_CurrentLayout.m_wOriginX = 0;
	go_CurrentLayout.m_wOriginY = 60;
	go_CurrentLayout.m_wWidth = 720;
	go_CurrentLayout.m_wHeight = 144;
	go_CurrentLayout.m_cNbrHole = 0;
	go_CurrentLayout.m_cInitColor = 0;
	go_CurrentLayout.m_cNbrColor = 16;
	go_CurrentLayout.m_pColorPalette = (OSD_Palette *)MenuBitmapColor;

	OSDSetLayout();
	OSDSetFont(0);

	rtouts("\nDISPLAY LAYOUT");
}


const MS_STATIC disk_type_dvd = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{10, MS_LINE_0, 120, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_DVD
};

const MS_STATIC disk_type_svcd = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{10, MS_LINE_0, 120, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_SVCD
};

const MS_STATIC disk_type_vcd11 = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{10, MS_LINE_0, 120, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_VCD11
};

const MS_STATIC disk_type_vcd20 = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{10, MS_LINE_0, 120, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_VCD20
};

const MS_STATIC disk_type_cdda = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{10, MS_LINE_0, 64, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_CDDA
};

const MS_STATIC disk_type_hdcd = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{10, MS_LINE_0, 120, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_HDCD
};
	

	
const MS_STATIC title_stat = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
//AW0115:move the title stat to the second place
	{200, MS_LINE_1, 92, MS_LINE_HEIGHT},

//	{0, MS_LINE_1, 120, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_TITLE
};

const MS_STATIC title_num_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
//AW0115:move title to the second place	
	{300,MS_LINE_1,80,MS_LINE_HEIGHT},	
//	{80, MS_LINE_1, 80, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_TITLE_MSG_ADDR
};

const MS_STATIC track_stat = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{10, MS_LINE_1, 120, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_TRACK
};

const MS_STATIC track_num_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{80, MS_LINE_1, 160 , MS_LINE_HEIGHT},//AW0110:change 
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_TITLE_MSG_ADDR
};
const MS_STATIC space_track_num_stat={
{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{80, MS_LINE_1, 160 , MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_NULL
};	


const MS_STATIC chapter_stat = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
//AW0115: move cahpter to the first place	
	{10,MS_LINE_1,100,MS_LINE_HEIGHT},
	//{160, MS_LINE_1, 168, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_CHAPTER
};


const MS_STATIC chapter_num_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	//AW0115:move the chatper num to the first place
	{110,MS_LINE_1,80,MS_LINE_HEIGHT},
//	{275, MS_LINE_1, 80, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_CHAPTER_MSG_ADDR
};

// ERIC Add MS_STATICs for track_stat and track_num_stat value here

#ifdef D_TIME_DISPLAY_BUG
const MS_STATIC t_time_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{448, MS_LINE_0, 88, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_TOTAL_TIME_MSG_ADDR
};

const MS_STATIC c_time_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{304, MS_LINE_0, 152,MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_CURRENT_TIME_MSG_ADDR
};
#else // D_TIME_DISPLAY_BUG
/*const MS_STATIC t_time_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{400, MS_LINE_0, 216, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_TOTAL_TIME_MSG_ADDR
};

const MS_STATIC c_time_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{264, MS_LINE_0, 216, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_CURRENT_TIME_MSG_ADDR
};*/
const MS_STATIC t_time_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{424, MS_LINE_0, 216, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_TOTAL_TIME_MSG_ADDR
};

const MS_STATIC c_time_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{264+48, MS_LINE_0, 216, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_CURRENT_TIME_MSG_ADDR
};
///////
const MS_STATIC ds_mp3_track_stat = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{312, MS_LINE_0, 72, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_TRACK
};

const MS_STATIC ds_mp3_track_num_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{390, MS_LINE_0, 104, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_CURRENT_TIME_MSG_ADDR
};

const MS_STATIC ds_mp3_time_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{496, MS_LINE_0, 88, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_TOTAL_TIME_MSG_ADDR
};



///
/*const MS_STATIC ds_mp3_track_stat = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{312, MS_LINE_0, 72, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_TRACK
};

const MS_STATIC ds_mp3_track_num_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{390, MS_LINE_0, 104, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_CURRENT_TIME_MSG_ADDR
};

const MS_STATIC ds_mp3_time_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{496, MS_LINE_0, 88, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_TOTAL_TIME_MSG_ADDR
};
*/
#endif // D_TIME_DISPLAY_BUG

const MS_STATIC angle_stat = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{400, MS_LINE_1, 100, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_ANGLE
};

const MS_STATIC angle_num_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{500, MS_LINE_1, 100,MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)SC_ANGLE_MSG_ADDR
};

const MS_STATIC audio_stat = {
	{
	0,
	ALIGN_LEFT,
	SCREEN_COLOR,
	{10, MS_LINE_2, 120, MS_LINE_HEIGHT},
	NO_PARENT,
	static_user_op,
	},
	(char *)S_AUDIO
};


const MS_STATIC audio_num_stat = {
	{
	MS_ASCII | MS_STRING_ON_SC,
	ALIGN_LEFT_PAD,
	SCREEN_COLOR,

⌨️ 快捷键说明

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