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

📄 cam_macro.h

📁 MMI层OBJ不能完全编译
💻 H
字号:
/* 联想  密级:绝密 保密期限:3年                  */

/***CONFIDENTIAL *****************************************************
本文件属于公司秘密信息,请您恪守保密义务,勿向第三人透露。谢谢合作。 
This file is confidential. Recipient(s) is(are) obligated to maintain secrecy
and is(are) not permitted to disclose the contents of this communication to others. 
Thank you. 
***********************************************************************/
/**************************************************************************
*
*                        联想移动上海研发中心
*							软件二处
*
*			 联想移动上海研发中心 版权所有(c)  
*
* 文件名    :  cam_macro.h
*
* 目的      :    Camera macro define file on CLC 712S8 platform
*               
* 作者      :   Mark Hu
* 
* 生成日期  :   2005.01.20
*
* 修改纪录  :
* 
* 
*-------------------------------------------------------------------------
* 姓名          日期            版本            描述
*-------------------------------------------------------------------------
* Mark hu   2005.01.20     		0.1         		创建
*                                        
***************************************************************************/
#ifndef __CAM_MACRO_H__
#define __CAM_MACRO_H__


//======================part I define=======================
//default window size and position
#define PREVIEW_XSTART      	0           //固定不变
#define PREVIEW_YSTART      	0
#define PREVIEW_WIDTH       	128         //固定不变
#define PREVIEW_HEIGHT      	160         //(96--160),且为4的倍数

#define DISPLAY_XSTART      	0
#define DISPLAY_YSTART      	0
#define DISPLAY_WIDTH       	128
#define DISPLAY_HEIGHT      	128

#define MOVIE_XSTART		0
//#define MOVIE_YSTART		14
#define MOVIE_YSTART		21
#define MOVIE_WIDTH		128
//#define MOVIE_HEIGHT		96
#define MOVIE_HEIGHT		120


//Operate mode							can refresh
#define ALL_CLEAR               	0x0000		//can
#define PREVIEW                 	0x0001		//can't
#define STILL_CAPTURE           	0x0002		//can't
#define DISPLAY                 	0x0003		//
#define JPEG_CONVERT            	0x0004		//can
#define MOTION_VIEW             	0x0005		//can
#define MOTION_CAPTURE        0x0006		//
#define MOTION_PLAYBACK      0x0007
#define OSD_CAPTURE             	0x0008
#define DATA_TRANSFER         	0x0009
#define MULTI_CAPTURE		0x000a



//zoom
#define ZOOM_MAX        		6	//8


//preview and display rotation              reg0x01 bit[4:2]	or bit[7:5]
#define ROTATION_0            			0x00	//000   
#define ROTATION_90           			0x01       //001
#define ROTATION_180          			0x02       //010
#define ROTATION_270          			0x03       //011
#define MIRROR             				0x04       //100
#define VERTICAL_FLIP           			0x05      	//101

//image effect mode             reg0x02 bit[10:0]  
#define IMG_NORMAL              			0x0000	//bit[10:8] 000       bit[7:0]	0
#define IMG_WARM1                			0x0147   	//bit[10:8] 001       bit[7:0]	71	sepia
#define IMG_WARM2					0x0192	//bit[10:8] 001       bit[7:0]	146	antique
#define IMG_COOL1                			0x0245	//bit[10:8] 010       bit[7:0]	69	cool 
#define IMG_COOL2					0x02b7	//bit[10:8] 010       bit[7:0]	183	moonlight
#define IMG_FOG                 			0x0300	//bit[10:8] 011 
#define IMG_NEGATION            		0x0400	//bit[10:8] 100 
//use color key
#define IMG_SUMMATION         			0x0500	//bit[10:8] 101 
#define IMG_AND                 			0x0600	//bit[10:8] 110 
#define IMG_OR                  			0x0700	//bit[10:8] 111    

//command status			reg0x05
#define STATUS_CAP_END          		0x0002      //still image capture end:  0-waiting,1-completed
#define STATUS_CAP_ERROR        		0x0004      //still image capture error:0-ok,  1-error
#define STATUS_MULICAP_END      		0x0008      //continuous shot 1 frame end:0-waiting,1-completed
#define STATUS_DOWNLOAD_END		0x0080      //data transfer to mcu end:0-waiting,1-completed
#define STATUS_DOWNLOAD_ERROR   	0x0100      //data transfer to mcu error:0-0k,1-error
#define STATUS_MOVCAP_END       		0x0200      //movie capture end:0-waiting,1-completed
#define STATUS_MOVCAP_ERROR     	0x0400      //movie capture error:0-ok,1-error
#define STATUS_DEC_END          		0x0800      //still image capture end:0-waiting,1-completed
#define STATUS_DEC_ERROR        		0x1000      //still image capture error:0-ok,1-error
#define STATUS_MOVDEC_END       		0x2000      //movie capture end:0-waiting,1-completed
#define STATUS_MOVDEC_ERROR     	0x4000      //movie capture error:0-ok,1-error

//jpeg quantity			reg0x16[7:0]
#define BEST_QUANTITY          			0x0008		//0x000a
#define HIGH_QUANTITY          			0x000c          //0x000c		//0x0018      
#define NORMAL_QUANTITY			0x0018		//0x0025
#define LOW_QUANTITY           			0x0025		//0x0030

//OSD MODE      			reg0x18[4:0]
#define OSD_NORMAL              			0x0000		// 0 00 00
#define OSD_OVERWRITE           		0x0001		// 0 00 01
#define OSD_OVERLAY_OR             		0x0002		// 0 00 10
#define OSD_OVERLAY_75				0x0006		// 0 01 10
#define OSD_OVERLAY_50				0x000a		// 0 10 10
#define OSD_OVERLAY_25				0x000e		// 0 11 10
#define OSD_OVERLAY_100			0x0012		// 1 00 10

//PIP Mode reg0x18		reg0x18[10:8]
#define PIP_JPEG_OVERWRITE			0x0001		
#define PIP_JPEG_OVERLAY			0x0002
#define PIP_VIEW_OVERWRITE			0x0005
#define PIP_VIEW_OVERLAY			0x0006

//GPIO define 
#define CLC_GPIO_0		0
#define CLC_GPIO_1		1
#define CLC_GPIO_2		2


//decode & display adjust
#define ZOOM_UP         				0x0000
#define ZOOM_DOWN       				0x0001
#define MOVE_LEFT       				0x0002
#define MOVE_RIGHT      				0x0003
#define MOVE_UP         				0x0004
#define MOVE_DOWN       				0x0005


//preview&capture mode
//#define MODE_1280_960				0x0000
#define MODE_128_160				0x0000
#define MODE_640_480				0x0001
//#define MODE_320_240				0x0002
//#define MODE_128_96				0x0002
#define MODE_128_120				0x0002


	
//framerate
#define INTERVAL_HIGH				0x0008
#define INTERVAL_NORMAL			0x0005
#define INTERVAL_LOW				0x0003


//movie control
#define MOVIE_CAP_START			0x0000
#define MOVIE_CAP_STOP				0x0001

#define MOVIE_PLAY_START			0x0000
#define MOVIE_PLAY_STOP			0x0001

#endif

⌨️ 快捷键说明

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