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

📄 mmidc_internal.h

📁 手机Camera部分上层软件代码
💻 H
📖 第 1 页 / 共 5 页
字号:
PUBLIC BOOLEAN DCAdap_DCOpen(void);

/*****************************************************************************/
// 	Description : Get preview/capture trim rect according to setting info
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
BOOLEAN DCSetting_GetTrimRect(RECT_T *p_trim_rect, RECT_T *p_disp_rect, const MMIDC_SETTING_INFO_T *setting_ptr, MMIDC_TRIMRECT_TYPE_E e_trimrect_type);


/*****************************************************************************/
// 	Description : search the same name in album list
//	Global resource dependence : 
//  Author:	bruce.chi
//	Note: 
/*****************************************************************************/
BOOLEAN MMIDC_IsIncludeInvalidChar(
                                    uint8* name_ptr, 
                                    uint16 len, 
                                    BOOLEAN is_ucs2
                                    );

/*****************************************************************************/
// 	Description : Get preview/capture trim rect according to setting info
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN DVSetting_GetTrimRect(RECT_T *p_trim_rect, RECT_T *p_disp_rect, const MMIDC_SETTING_INFO_T *setting_ptr);

/*****************************************************************************/
// 	Description : Get record target rect according to setting info
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN DVSetting_GEtTargetRect(uint16 *p_width, uint16 *p_height, const MMIDC_SETTING_INFO_T *setting_ptr);

/*****************************************************************************/
// 	Description : draw one black background
//	Global resource dependence : none
//  Author: 
//	Note:
/*****************************************************************************/
void PUBLIC DrawDefaultBackGroud(uint8 lcdID);

/*****************************************************************************/
// 	Description : get photo info after review
//	Global resource dependence : 
//  Author:bruce.chi
//	Note: 
/*****************************************************************************/
PUBLIC MMIDC_PHOTO_INFO_AFTER_REVIEW_T MMIDC_GetPhotoInfoAfterReview(void);

/*****************************************************************************/
// 	Description : set photo size after the size info got
//	Global resource dependence : 
//  Author: Bruce.Chi
//	Note:
///*****************************************************************************/
PUBLIC BOOLEAN DCSaveInfo_SetPhotoSize(uint32 photo_index, uint32 width, uint32 height);
/*****************************************************************************/
// 	Description : DC暂停mp3的播放
//	Global resource dependence : none
//  Author: bruce.chi
//	Note: 仅供DC模块调用
/*****************************************************************************/
PUBLIC void MMIDC_SuspendMp3(void);

/*****************************************************************************/
// 	Description : DC continue to play mp3 that was stopped by preview or review
//	Global resource dependence : none
//  Author: bruce.chi
//	Note: 
/*****************************************************************************/
PUBLIC void MMIDC_ContinuePlayMp3(void);

/*****************************************************************************/
// 	Description : create copy all window     
//	Global resource dependence : 
//  Author: bruce.chi
//	Note: 
/*****************************************************************************/
PUBLIC void MMIDC_OpenCopyAllWin(void);

/*****************************************************************************/
// 	Description : to check whether the name exist in another device
//	Global resource dependence : s_mmidc_photo_info
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN MMIDC_IsSameNameInOtherMedium(
									uint16  index 
									);

/*****************************************************************************/
// 	Description : copy DC to other medium
//	Global resource dependence : 
//  Author:louis.wei
//	Note: 
/*****************************************************************************/
PUBLIC void MMIDC_CopyFileBetweenMedium(
									 FILE_DEV_E_T	sour_dev,
									 FILE_DEV_E_T	dest_dev,
									 uint16		start_index,
									 BOOLEAN	is_copy_all
									 );

/*****************************************************************************/
// 	Description : to check the name 
//	Global resource dependence : s_mmidc_photo_info
//  Author: louis.wei
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN	MMIDC_IsSameNameBetweenMedium(
										  uint16  *udisk_num_ptr,
										  uint16  *sd_num_ptr
										  );
/*****************************************************************************/
// 	Description : String To UCS2 
//	Global resource dependence : 
//  Author: Great.Tian
//	Note:
/*****************************************************************************/
void Uint8StrToUint16Ucs2(
	                      uint16* dest_ucs2_ptr, //[OUT] ucs2 code
                          uint16  dest_ucs2_len, //[IN]  ucs2 length (word)
                          uint8*  src_str_ptr,   //[IN]  string
                          uint16  src_str_len,   //[IN]  string length (byte)
                          BOOLEAN src_is_ucs2    //[IN]  string is ucs2
	                      );

/*****************************************************************************/
// 	Description : get photo saved location
//	Global resource dependence : 
//  Author: Bruce.Chi
//	Note:
/*****************************************************************************/
PUBLIC FILE_DEV_E_T DCSaveInfo_GetPhotoStorageDev(uint32 photo_index);

/*****************************************************************************/
// 	Description : open review window     
//	Global resource dependence : 
//  Author:bruce.chi
//	Note: 
/*****************************************************************************/
BOOLEAN OpenPhotoBrowserWin(uint32 arr_index);

/*****************************************************************************/
// 	Description : get album open status that has been saved
//	Global resource dependence : 
//  Author: bruce.chi
//	Note: 
/*****************************************************************************/
PUBLIC const MMIDC_ALBUM_OPEN_FROM *GetAlbumOpenStatus(void);

/*****************************************************************************/
// 	Description : get album open status that has been saved
//	Global resource dependence : 
//  Author: 
//	Note: 
/*****************************************************************************/
PUBLIC void SetAlbumOpenStatus(MMIDC_ALBUM_OPEN_FROM open_status);

/*****************************************************************************/
// 	Description : get target width and height according to e_photo_size
//	Global resource dependence : none
//  Author: 
//	Note:
/*****************************************************************************/
PUBLIC void GetCapTargetRect(MMIDC_PHOTO_SIZE_E e_photo_size, int32 *target_width_ptr, int32 *target_height_ptr);

/*****************************************************************************/
// 	Description : get af setting
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC MMIDC_AF_TYPE_E DCSetting_GetAFType(void);

/*****************************************************************************/
// 	Description : get af setting
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
void  DCSetting_SetAFType(MMIDC_AF_TYPE_E e_af);

/*****************************************************************************/
// 	Description : use DC Driver interface to get sensor effect(brightness) sequence
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
DC_SENSOR_MODE_E DCAdap_GetSensorBrightnessSequence(const MMIDC_SETTING_INFO_T *setting_ptr);

/*****************************************************************************/
// 	Description : use DC Driver interface to get sensor effect(contrast) sequence
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
DC_SENSOR_MODE_E DCAdap_GetSensorContrastSequence(const MMIDC_SETTING_INFO_T *setting_ptr);

/*****************************************************************************/
// 	Description : use DC Driver interface to get sensor effect(sepia) sequence
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
DC_SENSOR_MODE_E DCAdap_GetSensorSepiaSequence(const MMIDC_SETTING_INFO_T *setting_ptr);

/*****************************************************************************/
// 	Description : get sensor width and height according to e_photo_size in af status
//	Global resource dependence : none
//  Author: 
//	Note:
/*****************************************************************************/
PUBLIC void GetDCSensorAFRect(MMIDC_PHOTO_SIZE_E e_photo_size, int32 *sensor_af_width_ptr, int32 *sensor_af_height_ptr);

/*****************************************************************************/
// 	Description : use DC Driver interface to set preview parameter in af status
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN DCAdap_SetAFSinglePreviewParam(const MMIDC_SETTING_INFO_T *setting_ptr);

/*****************************************************************************/
// 	Description : get photo size
//	Global resource dependence : 
//  Author: Bruce.Chi
//	Note:
/*****************************************************************************/
PUBLIC int32 DCSaveInfo_GetPhotoSize(uint32 photo_index);

/*****************************************************************************/
// 	Description : close capture window
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void MMIDC_CloseCaptureWin(void);

/*****************************************************************************/
// 	Description : set default character osd pallete
//	Global resource dependence : 
//  Author:	bruce.chi
//	Note: 
/*****************************************************************************/
PUBLIC void MMIDC_SetCharacterOSDPallete(void);

/*****************************************************************************/
// 	Description : Get record display rect according to setting info
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DVSetting_GetDispRect(uint16 *p_width, uint16 *p_height, uint16 video_width, uint16 wideo_height);


/*****************************************************************************/
// 	Description : get zoom trim according to e_photo_size
//	Global resource dependence : none
//  Author: 
//	Note:
/*****************************************************************************/
PUBLIC void GetCapZoomTrimRect(MMIDC_PHOTO_SIZE_E e_photo_size, int32 *target_width_ptr, int32 *target_height_ptr);


/*****************************************************************************/
// 	Description :zoom setting
//	Global resource dependence : 
//  Author: 
//	Note:
/*****************************************************************************/
PUBLIC uint8 DCAdap_GetZoomLevel(void);


/*****************************************************************************/
// 	Description : capture a photo
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN MMIDC_CaptureOnePhotoForOCR(uint8 **jpg_ptr_ptr,
							  uint32 *jpg_len_ptr
							  );
/*****************************************************************************/
// 	Description : draw waiting string when capture
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void DisplayCaptureWaitingStr(uint8 lcdID);
/*****************************************************************************/
// 	Description : draw waiting string when capture
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
PUBLIC void MMIDC_SetDCPreviewStatus(BOOLEAN status);

/**--------------------------------------------------------------------------*
 **                         Compiler Flag                                    *
 **--------------------------------------------------------------------------*/
#ifdef   __cplusplus
    }
#endif

#endif

⌨️ 快捷键说明

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