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

📄 appdc.h

📁 一款SmartPhone的驱动代码
💻 H
字号:
/**************************************************************
*	Copyright(C) 2003--2006  
*	Epson Electronic Technology Development (ShenZhen) co., LTD
*   All rights reserved.
*	
*   File name:    AppDC.h
*	Platform:     VC++ simulator of EPSON GUI 
*	Author:       David Cheng
*   Dept:         Electronic Enginerring Department 
*   Date:         04/02/2003
*	Descriptions:demo program of Digital Camera 
*   Modified:     
*************************************************************/
#ifndef _APP_APPDC_H_
#define	_APP_APPDC_H_

#include "appjpeg.h"
#include "sysDM.h"

#ifdef __cplusplus
extern "C" {
#endif	// __cplusplus




// base of CONTROL ID 
#define		IDC_DC_BASE			1000

// 以下三个要改则必须同时改动
#define		IDC_DC_ICONCONTROL	IDC_DC_BASE	// 第一个按钮的ID
#define		IDB_DC_ZOOM			(IDC_DC_BASE + 0)
#define		IDB_DC_ROTATE		(IDC_DC_BASE + 1)
#define		IDB_DC_RECMJPEG		(IDC_DC_BASE + 2)
#define		IDB_DC_PLAYMJPEG	(IDC_DC_BASE + 3)

#define		DC_MAX_ICON			4		// 工具条上最多的按钮数

#define		DC_MAXZOOMLEVEL		8		// 最大的zoomji级别


#define		MSG_OPENCAMERA		(MSG_USER+1)	

/************* POSITION DEFINITION ***********************/
// self-draw tool bar position
#define		DC_BAR_LEFT					0
#define		DC_BAR_TOP					0
#define		DC_BAR_WIDTH				LCD_W
#define		DC_BAR_HEIGHT				24

#define		DC_ICON1_X					2	// first icon x
#define		DC_ICON1_Y					(DC_BAR_TOP+1)	// icon top
#define		DC_ICON1_INTERVAL			24  // ICON INTERVAL

// icon size(the size of all icon are same )
#define		DC_ICONWND_W				24
#define		DC_ICONWND_H				21


// control structure of ALBUM
typedef struct __ALBUM{
	pMJPEG_CONTROL	pCtrl;		// motion jpeg control
	T_UHWORD		PageStart;	// first order of current page
	T_UHWORD		Order;		// order of current page 
}ALBUM_CONTROL, *pALBUM_CONTROL;

// album macro definitions
#define		DC_ALBUM_MAXBUTTON		4	// button numbers	
#define		DC_ALBUMPERLINE			3
#define		DC_ALBUMPERROW			3
#define		DC_ALBUMPERPAGE			(DC_ALBUMPERLINE * DC_ALBUMPERROW)
#define		DC_ALBUM_LEFT			10	
#define		DC_ALBUM_TOP			30
#define		DC_ALBUM_WIDTH			44
#define		DC_ALBUM_HEIGHT			44
#define		DC_ALBUM_XSPACE			10
#define		DC_ALBUM_YSPACE			15

// the several type of 
#define		KILL_FOCUS				0
#define		GET_FOCUS				1
#define		DC_CHANGETOPREV			0
#define		DC_CHANGETONEXT			1

// CONTROL ID
#define		IDB_DC_ALBUMLEFT	(IDC_DC_BASE + DC_MAX_ICON)
#define		IDB_DC_ALBUMRIGHT	(IDC_DC_BASE + DC_MAX_ICON + 1)
#define		IDB_DC_ALBUMENTER	(IDC_DC_BASE + DC_MAX_ICON + 2)
#define		IDB_DC_ALBUMEXIT	(IDC_DC_BASE + DC_MAX_ICON + 3)



//T_BOOL DemoAlbum( T_GUI_HWND, pMJPEG_CONTROL );
//T_BOOL InitialAlbum(pALBUM_CONTROL,pMJPEG_CONTROL );
//T_BOOL ListAlbum(T_GUI_HWND,pALBUM_CONTROL );
//T_VOID SetPhotoFocus(T_GUI_HWND,pALBUM_CONTROL, T_UBYTE	);
//T_BOOL ChangePhotoFocus(T_GUI_HWND,pALBUM_CONTROL, T_UBYTE );

/*************  interface function declaration ************/
T_BOOL DigitalCamera( T_VOID );	// main function of DC



#ifdef __cplusplus
}
#endif	// __cplusplus

#endif	// _APP_APPDC_H_

⌨️ 快捷键说明

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