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

📄 sanyoapi.h

📁 使用Java的Jni技术对三洋数码相机驱动程序的封装,封装后的动态库可在Java开发环境中应用,解决了Java中调用Vc中开发的Dll问题
💻 H
📖 第 1 页 / 共 2 页
字号:
typedef struct _CAM_LIGHT_PARAM
{
	LONG lcam_light_param_r;
	LONG lcam_light_param_g;
} CAM_LIGHT_PARAM, *pCAM_LIGHT_PARAM;
#endif	//!_TYPE_ENUM_

/******************************************************************************/
/*  Library Control Function   */
/*							   */
SANYO_API CAM_ERROR WINAPI MCam_error(HANDLE hCam);
/* This is the error return function. */

SANYO_API CAM_ERROR WINAPI MCam_reset_dll();
/* This routine resets the DLL to it's default state. */

SANYO_API HANDLE WINAPI MCam_create_handle();
/* This routine create the handle for the camera control. */

SANYO_API CAM_ERROR WINAPI MCam_close_handle(HANDLE hCom);
/* This routine close the handle for the camera control. */

/* ***Application Provided Status callback function *** */
typedef BOOL (CALLBACK *LPFNSTATUS)(LPARAM lAppData, CAM_STATTYPE message_type, LONG lPercent);
SANYO_API CAM_ERROR WINAPI MCam_setup_callback(LPFNSTATUS callback_proc, LPARAM lAppData, HANDLE hCam);
/* This function sets up a status callback, to return information on the progress of MCam_xxx functions. */

SANYO_API CAM_COMM_PORT WINAPI MCam_set_port(CAM_COMM_PORT port_sel, HANDLE hCam);
/* This function assigns the com port specified by port_sel to the camera communications session. */

SANYO_API CAM_ERROR WINAPI MCam_session_enabled(BOOL enable_switch, HANDLE hCam);
/* This function is used to initiate or terminate a communications session with the camera. */

SANYO_API BOOL WINAPI MCam_ready(HANDLE hCam);
/* This function returns ready or not ready. */

/******************************************************************************/
/*  Camera Control Function 1  */
/*							   */
SANYO_API CAM_ERROR WINAPI MCam_set_resolution(CAM_RES iRes, HANDLE hCam);
/* This function sets the resolution for the camera. */

SANYO_API CAM_RES WINAPI MCam_get_resolution(HANDLE hCam);
/* This function returns the current camera resolution setting. */

SANYO_API CAM_ERROR WINAPI MCam_set_exposure(LONG exp_duration, HANDLE hCam);
/* This function sets the exposure duration for the camera. */

SANYO_API LONG WINAPI MCam_get_exposure(HANDLE hCam);
/* This function returns the current exposure duration for the camera. */

SANYO_API CAM_ERROR  WINAPI MCam_set_flash_mode(CAM_FLASH_MODE flash_ctl, HANDLE hCam);
/* This function sets the flash mode for the camera. */

SANYO_API CAM_FLASH_MODE  WINAPI MCam_get_flash_mode(HANDLE hCam);
/* This function returns the current setting of the flash from the camera */

SANYO_API LONG WINAPI MCam_get_picture_count(HANDLE hCam);
/* This function returns the number of pictures stored in the camera.*/

SANYO_API LONG  WINAPI MCam_get_remaining_count(HANDLE hCam);
/* This function returns number of remaining pictures which can be stored in the
 camera, with the current camera settings.*/

SANYO_API LONG WINAPI MCam_get_picture_size(LONG pic_num, HANDLE hCam);
/* This function returns the size of picture file indexed by pic_num. */

SANYO_API LONG WINAPI MCam_get_thumbnail_size(LONG pic_num, HANDLE hCam);
/* This function returns the size of thumbnail file indexed by pic_num.*/

SANYO_API CAM_ERROR WINAPI MCam_get_picture_buffer(UCHAR *image_ptr, LONG pic_num, HANDLE hCam);
/* These functions download a picture indexed by pic_num, and places it into
 Global Memory. */ 

SANYO_API CAM_ERROR WINAPI MCam_get_picture_file(HANDLE hOutFile, LONG pic_num, HANDLE hCam);
/* This function downloads a picture indexed by pic_num, and places it into the
 file specified by hOutFile. */

SANYO_API CAM_ERROR WINAPI MCam_get_thumbnail_buffer(UCHAR *thumb_ptr, LONG pic_num, HANDLE hCam);
/* This function downloads a thumbnail of the picture indexed by pic_num, and
 places it into Global Memory. */

SANYO_API CAM_ERROR WINAPI MCam_get_thumbnail_file(HANDLE hOutFile, LONG pic_num, HANDLE hCam);
/* This function downloads a thumbnail of the picture indexed by pic_num, and
 places it into the file specified by hOutFile. */

SANYO_API CAM_ERROR WINAPI MCam_set_pc_camera_mode(LONG lMode, HANDLE hCam);
/* This function sets the high speed live view picture mode. */

SANYO_API CAM_ERROR WINAPI MCam_get_through_picture(PBYTE pBuffer, LONG *lSize, HANDLE hCam);
/* This function downloads a picture on high speed live view mode. */

SANYO_API SHORT WINAPI MCam_get_battery_status(HANDLE hCam);
/* This function returns the battery status indicator. */

SANYO_API CAM_ERROR WINAPI MCam_set_exposure_bias(pCAM_SFRACTION lpExposure_Bias, HANDLE hCam);
/* This function sets the value of exposure compensation for the camera. */

SANYO_API CAM_ERROR WINAPI MCam_get_exposure_bias(pCAM_SFRACTION lpExposure_Bias, HANDLE hCam);
/* This function gets the current setting of exposure compensation value from the camera. */

SANYO_API CAM_ERROR WINAPI MCam_set_light_source(CAM_LIGHT_SOURCE light_source, HANDLE hCam);
/* This function sets the white balance mode for the camera. */

SANYO_API CAM_LIGHT_SOURCE WINAPI MCam_get_light_source(HANDLE hCam); 
/* This function gets the current setting of white balance mode from the camera. */

SANYO_API CAM_ERROR WINAPI MCam_set_iso_speed_ratings(SPEED_RATING speed_rating, HANDLE hCam); 
/* This function sets the iso speed rating for the camera. */

SANYO_API SPEED_RATING WINAPI MCam_get_iso_speed_ratings(HANDLE hCam); 
/* This function gets the iso speed rating from the camera. */

SANYO_API CAM_ERROR WINAPI MCam_set_exposure_mode(pEXPOSURE_MODE lpExposure_mode, HANDLE hCam);
/* This fnction sets the exposure mode information. */

SANYO_API CAM_ERROR WINAPI MCam_get_exposure_mode(pEXPOSURE_MODE lpExposure_mode, HANDLE hCam);
/* This fnction gets the exposure mode information. */

SANYO_API CAM_ERROR WINAPI MCam_set_interval_time(LONG time, HANDLE hCam);
/* This function sets the interval time for the sequential shot */

SANYO_API LONG WINAPI MCam_get_interval_time(HANDLE hCam);
/* This function gets the interval time for the sequential shot */

/******************************************************************************/
/*  Camera Control Function 2  */
/*							   */
SANYO_API CAM_ERROR WINAPI MCam_erase_last(HANDLE hCam);
/* This function erases the last image in the camera. */

SANYO_API CAM_ERROR WINAPI MCam_erase_all(HANDLE hCam);
/* This function erases all of the images in the camera. */

SANYO_API CAM_ERROR WINAPI MCam_take_pic(HANDLE hCam);
/* This function causes the camera to take a single picture. */

SANYO_API CAM_ERROR WINAPI MCam_take_pic_sequential(UCHAR count, HANDLE hCam);
/* This function causes the camera to take picture for sequential shot by count. */

SANYO_API CAM_ERROR WINAPI MCam_take_preview(HANDLE hCam);
/* This function causes the camera to take a preview picture. */

SANYO_API CAM_ERROR WINAPI MCam_erase_select(LONG pic_num, HANDLE hCam);
/* This function erases the image indexed by pic_num in the camera. */

/******************************************************************************/
/*  Focus Control Function  */
/*					        */
SANYO_API CAM_ERROR WINAPI MCam_set_focus(CAM_FOCUS_MODE focus_select, HANDLE hCam);
/* This function sets the focus mode for the camera. */

SANYO_API CAM_FOCUS_MODE WINAPI MCam_get_focus(HANDLE hCam);
/* This function returns the current focus mode for the camera. */

SANYO_API CAM_ERROR WINAPI MCam_set_focal_length(pCAM_FRACTION lpFocal_Lemgth, HANDLE hCam); 
/* This function sets the focal length for the camera. */

SANYO_API CAM_ERROR WINAPI MCam_get_focal_length(pCAM_FRACTION lpFocal_Lemgth, HANDLE hCam);
/* This function gets the current setting of focal length from the camera. */

SANYO_API CAM_ERROR WINAPI MCam_set_manual_focus(LONG lmove_focus_position, HANDLE hCam);
/* This function sets the manual focus position for the camera. */

SANYO_API LONG WINAPI MCam_get_manual_focus(HANDLE hCam);
/* This function returns the current manual focus position for the camera. */

SANYO_API CAM_ERROR WINAPI MCam_control_lcd(LCD_OPCODE_ENUM lcd_opcode, LONG opcode_data, HANDLE hCam);
/* This function controls the LCD monitor of the camera. */

/******************************************************************************/
/*  Camera Status Function  */
/*							*/
SANYO_API CAM_ERROR WINAPI MCam_get_current_setting(pCURRENT_SETTING lpcurrent_setting, HANDLE hCam);
/* This function gets the current settings information from the camera. */

/******************************************************************************/
/*  Diagnostic & Calibration Function  */
/*							           */
SANYO_API CAM_ERROR WINAPI MCam_get_diag_info_2(pDIAG_INFO_2 lpdiag_info_2, HANDLE hCam);
/*  */

SANYO_API CAM_ERROR WINAPI MCam_set_light_param(pCAM_LIGHT_PARAM pLParam, HANDLE hCam);
/*  */

SANYO_API CAM_ERROR WINAPI MCam_get_light_param(pCAM_LIGHT_PARAM pLParam, HANDLE hCam);
/*  */

#ifdef	__cplusplus
}
#endif	//__cplusplus
#endif	//!SANYO_API_H

⌨️ 快捷键说明

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