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

📄 mmidc_internal.h

📁 手机Camera部分上层软件代码
💻 H
📖 第 1 页 / 共 5 页
字号:
MMIDC_FFS_WRITE_RESULT_E DCSaveInfo_AsyAdd(
										MMI_WIN_ID_T	win_id,		//the window that will receive the ffs callback message
										FILE_DEV_E_T	e_file_dev,
										uint8			*buf_ptr,
										uint32			memory_size,
										uint16			width,
										uint16			height,
										uint8			*name_ptr,
										uint16			name_len,
										BOOLEAN			is_ucs2
										 );

/*****************************************************************************/
// 	Description : get total photo total number
//	Global resource dependence : 
//  Author: Bruce.Chi
//	Note:
///*****************************************************************************/
PUBLIC uint32 DCSaveInfo_GetPotoTotalNum(void);

/*****************************************************************************/
// 	Description : read a photo file
//	Global resource dependence :
//  Author: bruce.chi
//	Note:	make sure it is ucs2 name
/*****************************************************************************/
MMIDC_FFS_READ_RESULT_E DCSaveInfo_AsyRead(
										MMI_WIN_ID_T	win_id,		//the window that will receive the ffs callback message
										uint32			photo_index,
										uint8			*buf_ptr,
										uint32			buf_len
										 );

/*****************************************************************************/
// 	Description : check this file name whether exists in ffs
//	Global resource dependence : 
//  Author:	bruce.chi
//	Note: 
/*****************************************************************************/
PUBLIC BOOLEAN MMIDC_CheckNameExist(
							FILE_DEV_E_T e_file_dev,
                            uint8*  name_ptr,
                            uint16  name_len,
                            BOOLEAN is_ucs2
                            );

/*****************************************************************************/
// 	Description : open photo input name win
//	Global resource dependence : none
//  Author:	bruce.chi
//	Note: 
/*****************************************************************************/
PUBLIC BOOLEAN MMIDC_OpenInputNameWin(uint32 photo_index);

/*****************************************************************************/
// 	Description : get photo name according to photo_index
//	Global resource dependence : 
//  Author: Bruce.Chi
//	Note:
///*****************************************************************************/
PUBLIC MMI_STRING_T DCSaveInfo_GetPotoName(uint32 photo_index);


/*****************************************************************************/
// 	Description : get dc preview or capture window mode
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC PREV_WIN_MODE_E DCSetting_GetPreviewWinMode(void);

/*****************************************************************************/
// 	Description : set dc preview or capture window mode
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DCSetting_SetPreviewWinMode(PREV_WIN_MODE_E e_win_mode);

/*****************************************************************************/
// 	Description : get preview image osd menu info
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DCSetting_GetPreviewImgOSDMenuIndex(int *cur_index_ptr, int *left_index_ptr);

/*****************************************************************************/
// 	Description : get preview image osd menu info
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DCSetting_SetPreviewImgOSDMenuIndex(int cur_index, int left_index);

/*****************************************************************************/
// 	Description : get capture shutter voice
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN DCSetting_IsShutterVoiceEnable(void);

/*****************************************************************************/
// 	Description : set capture shutter voice
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DCSetting_SetShutterVoice(BOOLEAN is_enable);

/*****************************************************************************/
// 	Description : get capture over time setting
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC MMIDC_OVERTIME_CAP_E DCSetting_GetOverTimeSetting(void);

/*****************************************************************************/
// 	Description : set capture over time setting
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DCSetting_SetOverTimeSetting(MMIDC_OVERTIME_CAP_E e_overtime);

/*****************************************************************************/
// 	Description : get capture over time (ms)
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC int DCSetting_GetOverTimeCount(void);

/*****************************************************************************/
// 	Description : get circle setting
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC MMIDC_CIRCLE_E DCSetting_GetOSDCircle(void);

/*****************************************************************************/
// 	Description : set circle setting
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DCSetting_SetOSDCircle(MMIDC_CIRCLE_E e_circle);

/*****************************************************************************/
// 	Description : get captuer osd type
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC MMIDC_CAPTURE_OSD_TYPE DCSetting_GetCaptureOSDType(void);

/*****************************************************************************/
// 	Description : set captuer osd type
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DCSetting_SetCaptureOSDType(MMIDC_CAPTURE_OSD_TYPE e_cap);

/*****************************************************************************/
// 	Description : set storage device
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DCSetting_SetStorageDev(FILE_DEV_E_T e_storage_dev);

/*****************************************************************************/
// 	Description : get storage device
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC FILE_DEV_E_T DCSetting_GetStorageDev(void);

/*****************************************************************************/
// 	Description : get captuer osd character
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC MMI_STRING_T DCSetting_GetCaptuerCharacter(void);

/*****************************************************************************/
// 	Description : set captuer osd character
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DCSetting_SetCaptuerCharacter(
										  uint8		*str_ptr,
										  uint16	str_len,
										  BOOLEAN	is_ucs2
										  );

/*****************************************************************************/
// 	Description : Get OSD Image By String
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
BOOLEAN OSD_GetCharacterOSD(	
							uint8*      text_ptr, 
							uint16		text_len,
                            BOOLEAN     is_ucs2,
							uint8		*p_cr_table
							);

/*****************************************************************************/
// 	Description : do capture
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN DCAdap_Capture(MMIDC_SETTING_INFO_T *setting_ptr);

/*****************************************************************************/
// 	Description : Allocate memory to store one jpg 
//	Global resource dependence : none
//  Author:bruce.chi
//	Note: 
/*****************************************************************************/
PUBLIC uint8 *MMIDC_AllocJpegMemory(
							uint32  buf_length
						    );

/*****************************************************************************/
// 	Description : free the memory allocated by  MMIDC_AllocJpegMemory
//	Global resource dependence : none
//  Author:bruce.chi
//	Note: 
/*****************************************************************************/
PUBLIC BOOLEAN FreeJpegMemory(void *buf_ptr);

/*****************************************************************************/
// 	Description : use DC Driver interface to stop preview
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN DCAdap_StopPreview(void);

/*****************************************************************************/
// 	Description : use DC Driver interface to start preview
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:	这个函数用于Stop了Preview以后,再次Start
/*****************************************************************************/
PUBLIC BOOLEAN DCAdap_StartPreview(void);

/*****************************************************************************/
// 	Description : set preview param, set osd, set sensor effect
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:	for MMI upper level
/*****************************************************************************/
PUBLIC BOOLEAN DCAdap_SetAllPreviewParam(void);

/*****************************************************************************/
// 	Description : use DC Driver interface to close dc
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN DCAdap_DCClose(void);

/*****************************************************************************/
// 	Description : get dc setting info
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC MMIDC_SETTING_INFO_T* MMIDC_GetSettingInfo(void);

/*****************************************************************************/
// 	Description : check whether the name of photo is valid
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
BOOLEAN MMIDC_IsFileNameValid(
							  const uint8*	name_ptr,
							  const uint16	name_len,
							  const uint16	is_ucs2
							  );

/*****************************************************************************/
// 	Description : start preview
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:	for MMI upper level
/*****************************************************************************/
BOOLEAN MMIDC_StartPreview(void);

/*****************************************************************************/
// 	Description : use DC Driver interface to get sensor mode sequence
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
DC_SENSOR_MODE_E DCAdap_GetSensorModeSequence(const MMIDC_SETTING_INFO_T *setting_ptr, MMIDC_TRIMRECT_TYPE_E e_trimrect_type);

/*****************************************************************************/
// 	Description : use DC Driver interface to open DC
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/

⌨️ 快捷键说明

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