相机管理

2024-04-02
暂无评分

目录

宏定义、枚举和结构体

E_DjiCameraManagerWorkMode
E_DjiCameraManagerShootPhotoMode
E_DjiCameraManagerExposureMode
E_DjiCameraManagerFocusMode
E_DjiCameraManagerShutterMode
E_DjiCameraManagerShutterSpeed
E_DjiCameraManagerISO
E_DjiCameraManagerExposureCompensation
E_DjiCameraManagerAperture
E_DjiCameraManagerRecordingControl
E_DjiCameraManagerFileListCountPerSlice
E_DjiCameraManagerStreamStorage
E_DjiCameraManagerNightSceneMode
E_DjiCameraManagerCaptureOrRecording
E_DjiCameraManagerExpandNameType
E_DjiCameraManagerPhotoRatio
E_DjiDownloadFileEvent
E_DjiCameraManagerVideoResolution
E_DjiCameraManagerVideoFrameRate
E_DjiCameraManagerPhotoStorageFormat
E_DjiCameraManagerVideoStorageFormat
E_DjiCameraManagerMeteringMode
E_DjiCameraManagerFfcMode
E_DjiCameraManagerIrGainMode
E_DjiCameraManagerCapturingState
E_DjiCameraManagerRecordingState
T_DjiCameraManagerFirmwareVersion
T_DjiCameraManagerOpticalZoomParam
T_DjiCameraManagerFileCreateTime
T_DjiCameraManagerFileAttributeData
T_DjiCameraManagerSubFileListInfo
T_DjiCameraManagerFileListInfo
T_DjiCameraManagerFileList
T_DjiCameraManagerSliceConfig
T_DjiCameraManagerPointThermometryCoordinate
T_DjiCameraManagerAreaThermometryCoordinate
T_DjiCameraManagerPointThermometryData
T_DjiCameraManagerAreaThermometryData
T_DjiDownloadFilePacketInfo
T_DjiCameraManagerLaserRangingInfo
T_DjiCameraManagerStreamList
T_DjiCameraManagerVideoFormat
T_DjiCameraManagerRangeList
T_DjiCameraManagerIrTempMeterRange
T_DjiCameraManagerStorageInfo
T_DjiCameraManagerPointCloudHeader
T_DjiCameraManagerPointXYZRGBInfo
T_DjiCameraManagerColorPointCloud

函数原型

DjiCameraManager_Init
DjiCameraManager_DeInit
DjiCameraManager_GetCameraType
DjiCameraManager_GetFirmwareVersion
DjiCameraManager_GetCameraConnectStatus
DjiCameraManager_SetMode
DjiCameraManager_GetMode
DjiCameraManager_SetShootPhotoMode
DjiCameraManager_GetShootPhotoMode
DjiCameraManager_StartShootPhoto
DjiCameraManager_StopShootPhoto
DjiCameraManager_GetCapturingState
DjiCameraManager_SetPhotoBurstCount
DjiCameraManager_SetPhotoTimeIntervalSettings
DjiCameraManager_GetPhotoTimeIntervalSettings
DjiCameraManager_GetIntervalShootingRemainTime
DjiCameraManager_SetFocusMode
DjiCameraManager_GetFocusMode
DjiCameraManager_SetFocusTarget
DjiCameraManager_GetFocusTarget
DjiCameraManager_StartContinuousOpticalZoom
DjiCameraManager_StopContinuousOpticalZoom
DjiCameraManager_SetOpticalZoomParam
DjiCameraManager_GetOpticalZoomParam
DjiCameraManager_SetInfraredZoomParam
DjiCameraManager_SetTapZoomEnabled
DjiCameraManager_GetTapZoomEnabled
DjiCameraManager_SetTapZoomMultiplier
DjiCameraManager_GetTapZoomMultiplier
DjiCameraManager_TapZoomAtTarget
DjiCameraManager_GetFocusRingRange
DjiCameraManager_SetFocusRingValue
DjiCameraManager_GetFocusRingValue
DjiCameraManager_SetExposureMode
DjiCameraManager_GetExposureMode
DjiCameraManager_SetISO
DjiCameraManager_GetISO
DjiCameraManager_SetAperture
DjiCameraManager_GetAperture
DjiCameraManager_SetShutterSpeed
DjiCameraManager_GetShutterSpeed
DjiCameraManager_SetExposureCompensation
DjiCameraManager_GetExposureCompensation
DjiCameraManager_SetAELockEnabled
DjiCameraManager_GetAELockEnabled
DjiCameraManager_ResetCameraSettings
DjiCameraManager_StartRecordVideo
DjiCameraManager_StopRecordVideo
DjiCameraManager_GetRecordingState
DjiCameraManager_GetRecordingTime
DjiCameraManager_GetStreamSourceRange
DjiCameraManager_SetStreamSource
DjiCameraManager_GetPhotoStorageFormatRange
DjiCameraManager_SetPhotoFormat
DjiCameraManager_GetPhotoFormat
DjiCameraManager_GetVideoFormatRange
DjiCameraManager_SetVideoStorageFormat
DjiCameraManager_GetVideoFormat
DjiCameraManager_GetPhotoRatioRange
DjiCameraManager_SetPhotoRatio
DjiCameraManager_GetPhotoRatio
DjiCameraManager_GetVideoResolutionFrameRate
DjiCameraManager_GetNightSceneModeRange
DjiCameraManager_SetNightSceneMode
DjiCameraManager_GetNightSceneMode
DjiCameraManager_GetStreamStorageRange
DjiCameraManager_SetCaptureRecordingStreams
DjiCameraManager_GetCaptureRecordingStreams
DjiCameraManager_SetSynchronizedSplitScreenZoomEnabled
DjiCameraManager_SetCustomExpandName
DjiCameraManager_GetCustomExpandName
DjiCameraManager_DownloadFileList
DjiCameraManager_DownloadFileListBySlices
DjiCameraManager_RegDownloadFileDataCallback
DjiCameraManager_DownloadFileByIndex
DjiCameraManager_DownloadSubFileByIndexAndSubType
DjiCameraManager_ObtainDownloaderRights
DjiCameraManager_ReleaseDownloaderRights
DjiCameraManager_FormatStorage
DjiCameraManager_GetStorageInfo
DjiCameraManager_DeleteFileByIndex
DjiCameraManager_GetLaserRangingInfo
DjiCameraManager_SetPointThermometryCoordinate
DjiCameraManager_GetPointThermometryData
DjiCameraManager_SetAreaThermometryCoordinate
DjiCameraManager_GetAreaThermometryData
DjiCameraManager_SetFfcMode
DjiCameraManager_TriggerFfc
DjiCameraManager_SetInfraredCameraGainMode
DjiCameraManager_GetInfraredCameraGainModeTemperatureRange
DjiCameraManager_SetMeteringMode
DjiCameraManager_GetMeteringMode
DjiCameraManager_GetMeteringPointRegionRange
DjiCameraManager_SetMeteringPoint
DjiCameraManager_GetMeteringPoint
DjiCameraManager_StartRecordPointCloud
DjiCameraManager_StopRecordPointCloud

宏定义、枚举和结构体

typedef enum E_DjiCameraManagerWorkMode

typedef enum {
/*!
- 拍照模式。用户可在此模式下拍照。
*/
DJI_CAMERA_MANAGER_WORK_MODE_SHOOT_PHOTO = 0,
/*!
- 录像模式。用户可在此模式下录制视频。
*/
DJI_CAMERA_MANAGER_WORK_MODE_RECORD_VIDEO = 1,
/*!
- 回放模式。用户可预览和删除照片和视频。适用于 Phantom 3 专业版相机、X3、X5、X5R、
、Phantom 4 相机。不支持 Z30、X5S、X4S、Phantom 4 Pro、Mavic Pro、Phantom 3 
标准版、Phantom 3 高级版、Phantom 3 4K 和 Osmo 系列。
*/
DJI_CAMERA_MANAGER_WORK_MODE_PLAYBACK = 2,
/*!
- 媒体下载模式。用户可以下载媒体到移动设备。不支持挂载在飞机上的 X5 和 X5R 摄像机。
*/
DJI_CAMERA_MANAGER_WORK_MODE_MEDIA_DOWNLOAD = 3,
/*!
- 此模式下,分辨率和帧率设置为 1080i50(PAL)或 720p60(NTSC)。此模式可以录制视频,
照片拍摄仅能在视频录制时进行,只支持通过更换模式为 RECORD_VIDEO 来退出直播模式。仅
Inspire 2 支持此模式。
*/
DJI_CAMERA_MANAGER_WORK_MODE_BROADCAST = 4,
/*!
* 摄像机工作模式未知。
*/
DJI_CAMERA_MANAGER_WORK_MODE_WORK_MODE_UNKNOWN = 0xFF,
} E_DjiCameraManagerWorkMode;

typedef enum E_DjiCameraManagerShootPhotoMode

typedef enum {
/*!
- 单拍模式。
*/
DJI_CAMERA_MANAGER_SHOOT_PHOTO_MODE_SINGLE = 0x01,
/*!
- HDR 模式。X5、X5R、XT、Z30、Phantom 4 Pro、X4S 和 X5S 相机不支持此模式。
*/
DJI_CAMERA_MANAGER_SHOOT_PHOTO_MODE_HDR = 0x02,
/*!
- 连拍模式。XT 相机不支持。
*/
DJI_CAMERA_MANAGER_SHOOT_PHOTO_MODE_BURST = 0x04,
/*!
- AEB 模式。可快速拍摄多张(默认三张)不同曝光值的照片。XT 和 Z30 相机不支持。
*/
DJI_CAMERA_MANAGER_SHOOT_PHOTO_MODE_AEB = 0x05,
/*!
- 定时拍摄模式。 JPEG 的最小拍摄间隔为 2s,RAW 和 RAW+JPEG 的最小拍摄间隔为 10s,部分机型
的 RAW 和 RAW+JPEG 拍摄最小间隔为 5s。
*/
DJI_CAMERA_MANAGER_SHOOT_PHOTO_MODE_INTERVAL = 0x06,
/*!
- RAW 连拍模式。仅 X5S 摄像机支持。
*/
DJI_CAMERA_MANAGER_SHOOT_PHOTO_MODE_RAW_BURST = 0x09,
/*!
- 区域拍摄模式。支持 H20/H20T。
*/
DJI_CAMERA_MANAGER_SHOOT_PHOTO_MODE_REGIONAL_SR = 0x16,
/*!
- 拍照模式未知。
*/
DJI_CAMERA_MANAGER_SHOOT_PHOTO_MODE_UNKNOWN = 0xFF,
} E_DjiCameraManagerShootPhotoMode;

typedef enum E_DjiCameraManagerExposureMode

typedef enum {
DJI_CAMERA_MANAGER_EXPOSURE_MODE_PROGRAM_AUTO = 1,       /*!< 自动程序模式 */
DJI_CAMERA_MANAGER_EXPOSURE_MODE_SHUTTER_PRIORITY = 2,   /*!< 快门优先模式 */
DJI_CAMERA_MANAGER_EXPOSURE_MODE_APERTURE_PRIORITY = 3,  /*!< 光圈优先模式 */
DJI_CAMERA_MANAGER_EXPOSURE_MODE_EXPOSURE_MANUAL = 4,    /*!< 手动模式 */
DJI_CAMERA_MANAGER_EXPOSURE_MODE_EXPOSURE_UNKNOWN = 0xFF /*!< 曝光模式未知 */
} E_DjiCameraManagerExposureMode;

typedef enum E_DjiCameraManagerFocusMode

typedef enum {
/*!
- 手动对焦模式。在此模式下,用户可通过调整对焦环值来调整焦距。
*/
DJI_CAMERA_MANAGER_FOCUS_MODE_MANUAL = 0,
/*!
- 自动对焦模式。对于 Z30 相机,焦点会自动计算。对于其他相机,用户可以设置一个对焦目标以
自动计算焦点。
*/
DJI_CAMERA_MANAGER_FOCUS_MODE_AUTO = 1,
/*!
- 连续自动对焦模式。仅支持固件版本为 V01.03.0000 或更高的 Mavic Pro、X4S 相机、
Mavic 2 Zoom 相机和 Mavic 2 Pro 相机。
*/
DJI_CAMERA_MANAGER_FOCUS_MODE_AFC = 2,
/*!
- 相机对焦模式未知。
*/
DJI_CAMERA_MANAGER_FOCUS_MODE_UNKNOWN = 0xFF,
} E_DjiCameraManagerFocusMode;

typedef enum E_DjiCameraManagerShutterMode

typedef enum {
/*! 相机快门模式为自动。 */
DJI_CAMERA_MANAGER_SHUTTER_AUTO_MODE = 0x00,
/*! 相机快门模式为手动,此时快门速度设置有效。 */
DJI_CAMERA_MANAGER_SHUTTER_MANUAL_MODE = 0x01,
} E_DjiCameraManagerShutterMode;

typedef enum E_DjiCameraManagerShutterSpeed

typedef enum {
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_8000 = 0,     /*!< 1/8000 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_6400 = 1,     /*!< 1/6400 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_6000 = 2,     /*!< 1/6000 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_5000 = 3,     /*!< 1/5000 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_4000 = 4,     /*!< 1/4000 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_3200 = 5,     /*!< 1/3200 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_3000 = 6,     /*!< 1/3000 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_2500 = 7,     /*!< 1/2500 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_2000 = 8,     /*!< 1/2000 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_1600 = 9,     /*!< 1/1600 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_1500 = 10,    /*!< 1/1500 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_1250 = 11,    /*!< 1/1250 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_1000 = 12,    /*!< 1/1000 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_800 = 13,     /*!< 1/800 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_725 = 14,     /*!< 1/725 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_640 = 15,     /*!< 1/640 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_500 = 16,     /*!< 1/500 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_400 = 17,     /*!< 1/400 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_350 = 18,     /*!< 1/350 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_320 = 19,     /*!< 1/320 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_250 = 20,     /*!< 1/250 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_240 = 21,     /*!< 1/240 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_200 = 22,     /*!< 1/200 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_180 = 23,     /*!< 1/180 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_160 = 24,     /*!< 1/160 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_125 = 25,     /*!< 1/125 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_120 = 26,     /*!< 1/120 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_100 = 27,     /*!< 1/100 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_90 = 28,      /*!< 1/90 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_80 = 29,      /*!< 1/80 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_60 = 30,      /*!< 1/60 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_50 = 31,      /*!< 1/50 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_40 = 32,      /*!< 1/40 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_30 = 33,      /*!< 1/30 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_25 = 34,      /*!< 1/25 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_20 = 35,      /*!< 1/20 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_15 = 36,      /*!< 1/15 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_12DOT5 = 37,  /*!< 1/12.5 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_10 = 38,      /*!< 1/10 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_8 = 39,       /*!< 1/8 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_6DOT25 = 40,  /*!< 1/6.25 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_5 = 41,       /*!< 1/5 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_4 = 42,       /*!< 1/4 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_3 = 43,       /*!< 1/3 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_2DOT5 = 44,   /*!< 1/2.5 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_2 = 45,       /*!< 1/2 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_1DOT67 = 46,  /*!< 1/1.67 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1_1DOT25 = 47,  /*!< 1/1.25 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1 = 48,         /*!< 1.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1DOT3 = 49,     /*!< 1.3 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_1DOT6 = 50,     /*!< 1.6 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_2 = 51,         /*!< 2.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_2DOT5 = 52,     /*!< 2.5 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_3 = 53,         /*!< 3.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_3DOT2 = 54,     /*!< 3.2 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_4 = 55,         /*!< 4.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_5 = 56,         /*!< 5.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_6 = 57,         /*!< 6.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_7 = 58,         /*!< 7.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_8 = 59,         /*!< 8.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_9 = 60,         /*!< 9.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_10 = 61,        /*!< 10.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_13 = 62,        /*!< 13.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_15 = 63,        /*!< 15.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_20 = 64,        /*!< 20.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_25 = 65,        /*!< 25.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_30 = 66,        /*!< 30.0 s */
DJI_CAMERA_MANAGER_SHUTTER_SPEED_UNKNOWN = 0xFF, /*!< Unknown */
} E_DjiCameraManagerShutterSpeed;

typedef enum E_DjiCameraManagerISO

typedef enum {
/*! 自动设置 ISO 值。并非所有相机的手动模式下可用。 */
DJI_CAMERA_MANAGER_ISO_AUTO = 0x00,
/*!  ISO 100. */
DJI_CAMERA_MANAGER_ISO_100 = 0x03,
/*! ISO 值设置为 100. */
DJI_CAMERA_MANAGER_ISO_200 = 0x04,
/*! ISO 值设置为 100.*/
DJI_CAMERA_MANAGER_ISO_400 = 0x05,
/*! ISO 值设置为 100.*/
DJI_CAMERA_MANAGER_ISO_800 = 0x06,
/*! ISO 值设置为 100.*/
DJI_CAMERA_MANAGER_ISO_1600 = 0x07,
/*! ISO 值设置为 100.*/
DJI_CAMERA_MANAGER_ISO_3200 = 0x08,
/*! ISO 值设置为 100.*/
DJI_CAMERA_MANAGER_ISO_6400 = 0x09,
/*! ISO 值设置为 100.*/
DJI_CAMERA_MANAGER_ISO_12800 = 0x0A,
/*! ISO 值设置为 100.*/
DJI_CAMERA_MANAGER_ISO_25600 = 0x0B,
/*! ISO 值由相机固件固定。当相机色彩设置为 D_LOG 时,相机将把 ISO 固定在一个特定的值以
优化性能。
*/
DJI_CAMERA_MANAGER_ISO_FIXED = 0xFF,
} E_DjiCameraManagerISO;

typedef enum E_DjiCameraManagerExposureCompensation

typedef enum {
/*! 相机曝光补偿为 -5.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_5_0 = 1,
/*! 相机曝光补偿为 -4.7ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_4_7 = 2,
/*! 相机曝光补偿为 -4.3ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_4_3 = 3,
/*! 相机曝光补偿为 -4.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_4_0 = 4,
/*! 相机曝光补偿为 -3.7ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_3_7 = 5,
/*! 相机曝光补偿为 -3.3ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_3_3 = 6,
/*! 相机曝光补偿为 -3.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_3_0 = 7,
/*! 相机曝光补偿为 -2.7ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_2_7 = 8,
/*! 相机曝光补偿为 -2.3ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_2_3 = 9,
/*! 相机曝光补偿为 -2.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_2_0 = 10,
/*! 相机曝光补偿为 -1.7ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_1_7 = 11,
/*! 相机曝光补偿为 -1.3ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_1_3 = 12,
/*! 相机曝光补偿为 -1.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_1_0 = 13,
/*! 相机曝光补偿为 -0.7ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_0_7 = 14,
/*! 相机曝光补偿为 -0.3ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_0_3 = 15,
/*! 相机曝光补偿为 0.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_0_0 = 16,
/*! 相机曝光补偿为 +0.3ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_0_3 = 17,
/*! 相机曝光补偿为 +0.7ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_0_7 = 18,
/*! 相机曝光补偿为 +1.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_1_0 = 19,
/*! 相机曝光补偿为 +1.3ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_1_3 = 20,
/*! 相机曝光补偿为 +1.7ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_1_7 = 21,
/*! 相机曝光补偿为 +2.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_2_0 = 22,
/*! 相机曝光补偿为 +2.3ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_2_3 = 23,
/*! 相机曝光补偿为 +2.7ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_2_7 = 24,
/*! 相机曝光补偿为 +3.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_3_0 = 25,
/*! 相机曝光补偿为 +3.3ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_3_3 = 26,
/*! 相机曝光补偿为 +3.7ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_3_7 = 27,
/*! 相机曝光补偿为 +4.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_4_0 = 28,
/*! 相机曝光补偿为 +4.3ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_4_3 = 29,
/*! 相机曝光补偿为 +4.7ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_4_7 = 30,
/*! 相机曝光补偿为 +5.0ev.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_5_0 = 31,
/*! 相机曝光补偿为 fixed by the camera.*/
DJI_CAMERA_MANAGER_EXPOSURE_COMPENSATION_FIXED = 0xFF,
} E_DjiCameraManagerExposureCompensation;

typedef enum E_DjiCameraManagerAperture

typedef enum {
/*! 光圈值为 f/1.6。只有 Z30 相机支持。*/
DJI_CAMERA_MANAGER_APERTURE_F_1_DOT_6 = 160,
/*! 光圈值为 f/1.7.*/
DJI_CAMERA_MANAGER_APERTURE_F_1_DOT_7 = 170,
/*! 光圈值为 f/1.8.*/
DJI_CAMERA_MANAGER_APERTURE_F_1_DOT_8 = 180,
/*! 光圈值为 f/2.*/
DJI_CAMERA_MANAGER_APERTURE_F_2 = 200,
/*! 光圈值为 f/2.2.*/
DJI_CAMERA_MANAGER_APERTURE_F_2_DOT_2 = 220,
/*! 光圈值为 f/2.4. 只有 Z30 相机支持。*/
DJI_CAMERA_MANAGER_APERTURE_F_2_DOT_4 = 240,
/*! 光圈值为 f/2.5.*/
DJI_CAMERA_MANAGER_APERTURE_F_2_DOT_5 = 250,
/*! 光圈值为 f/2.6.*/
DJI_CAMERA_MANAGER_APERTURE_F_2_DOT_6 = 260,
/*! 光圈值为 f/2.8.*/
DJI_CAMERA_MANAGER_APERTURE_F_2_DOT_8 = 280,
/*! 光圈值为 f/3.2.*/
DJI_CAMERA_MANAGER_APERTURE_F_3_DOT_2 = 320,
/*! 光圈值为 f/3.4.*/
DJI_CAMERA_MANAGER_APERTURE_F_3_DOT_4 = 340,
/*! 光圈值为 f/3.5.*/
DJI_CAMERA_MANAGER_APERTURE_F_3_DOT_5 = 350,
/*! 光圈值为 f/4.*/
DJI_CAMERA_MANAGER_APERTURE_F_4 = 400,
/*! 光圈值为 f/4.5.*/
DJI_CAMERA_MANAGER_APERTURE_F_4_DOT_5 = 450,
/*! 光圈值为 f/4.8.*/
DJI_CAMERA_MANAGER_APERTURE_F_4_DOT_8 = 480,
/*! 光圈值为 f/5.*/
DJI_CAMERA_MANAGER_APERTURE_F_5 = 500,
/*! 光圈值为 f/5.6.*/
DJI_CAMERA_MANAGER_APERTURE_F_5_DOT_6 = 560,
/*! 光圈值为 f/6.3.*/
DJI_CAMERA_MANAGER_APERTURE_F_6_DOT_3 = 630,
/*! 光圈值为 f/6.8.*/
DJI_CAMERA_MANAGER_APERTURE_F_6_DOT_8 = 680,
/*! 光圈值为 f/7.1.*/
DJI_CAMERA_MANAGER_APERTURE_F_7_DOT_1 = 710,
/*! 光圈值为 f/8.*/
DJI_CAMERA_MANAGER_APERTURE_F_8 = 800,
/*! 光圈值为 f/9.*/
DJI_CAMERA_MANAGER_APERTURE_F_9 = 900,
/*! 光圈值为 f/9.6.*/
DJI_CAMERA_MANAGER_APERTURE_F_9_DOT_6 = 960,
/*! 光圈值为 f/10.*/
DJI_CAMERA_MANAGER_APERTURE_F_10 = 1000,
/*! 光圈值为 f/11.*/
DJI_CAMERA_MANAGER_APERTURE_F_11 = 1100,
/*! 光圈值为 f/13.*/
DJI_CAMERA_MANAGER_APERTURE_F_13 = 1300,
/*! 光圈值为 f/14.*/
DJI_CAMERA_MANAGER_APERTURE_F_14 = 1400,
/*! 光圈值为 f/16.*/
DJI_CAMERA_MANAGER_APERTURE_F_16 = 1600,
/*! 光圈值为 f/18.*/
DJI_CAMERA_MANAGER_APERTURE_F_18 = 1800,
/*! 光圈值为 f/19.*/
DJI_CAMERA_MANAGER_APERTURE_F_19 = 1900,
/*! 光圈值为 f/20.*/
DJI_CAMERA_MANAGER_APERTURE_F_20 = 2000,
/*! 光圈值为 f/22.*/
DJI_CAMERA_MANAGER_APERTURE_F_22 = 2200,
/*! 光圈值为未知。*/
DJI_CAMERA_MANAGER_APERTURE_F_UNKNOWN = 0xFFFF,
} E_DjiCameraManagerAperture;

typedef enum E_DjiCameraManagerRecordingControl

typedef enum {
DJI_CAMERA_MANAGER_RECORDING_CONTROL_STOP = 0,
DJI_CAMERA_MANAGER_RECORDING_CONTROL_BEGIN = 1,
DJI_CAMERA_MANAGER_RECORDING_CONTROL_PAUSE = 2,
DJI_CAMERA_MANAGER_RECORDING_CONTROL_RESUME = 3,
} E_DjiCameraManagerRecordingControl;

typedef enum E_DjiCameraManagerFileListCountPerSlice

typedef enum {
DJI_CAMERA_MANAGER_FILE_LIST_COUNT_60_PER_SLICE = 60,
DJI_CAMERA_MANAGER_FILE_LIST_COUNT_120_PER_SLICE = 120,
DJI_CAMERA_MANAGER_FILE_LIST_COUNT_ALL_PER_SLICE = 0xFFFF,
} E_DjiCameraManagerFileListCountPerSlice;

Enum E_DjiCameraManagerStreamStorage

CameraModule aperture values. @note X5, X5R, Z30, Phantom 4 Pro camera, X4S and X5S support this setting.

typedef enum {
DJI_CAMERA_MANAGER_SOURCE_DEFAULT_CAM = 0x0,
DJI_CAMERA_MANAGER_SOURCE_WIDE_CAM = 0x1,
DJI_CAMERA_MANAGER_SOURCE_ZOOM_CAM = 0x2,
DJI_CAMERA_MANAGER_SOURCE_IR_CAM = 0x3,
DJI_CAMERA_MANAGER_SOURCE_VISIBLE_CAM = 0x7,
} E_DjiCameraManagerStreamSource, E_DjiCameraManagerStreamStorage;

typedef enum E_DjiCameraManagerNightSceneMode

typedef enum {
DJI_CAMERA_MANAGER_NIGHT_SCENE_MODE_DISABLE = 0,
DJI_CAMERA_MANAGER_NIGHT_SCENE_MODE_ENABLE = 1,
DJI_CAMERA_MANAGER_NIGHT_SCENE_MODE_AUTO = 2,
} E_DjiCameraManagerNightSceneMode;

typedef enum E_DjiCameraManagerCaptureOrRecording

typedef enum {
DJI_CAMERA_MANAGER_CAPTURE_OR_RECORDING_CAPTURE = 0,
DJI_CAMERA_MANAGER_CAPTURE_OR_RECORDING_RECORDING = 1,
} E_DjiCameraManagerCaptureOrRecording;

typedef enum E_DjiCameraManagerExpandNameType

typedef enum {
DJI_CAMERA_MANAGER_EXPAND_NAME_TYPE_FILE = 1,
DJI_CAMERA_MANAGER_EXPAND_NAME_TYPE_DIR = 2,
} E_DjiCameraManagerExpandNameType;

typedef enum E_DjiCameraManagerPhotoRatio

typedef enum {
DJI_CAMERA_MANAGER_PHOTO_RATIO_4X3 = 0,
DJI_CAMERA_MANAGER_PHOTO_RATIO_16X9 = 1,
DJI_CAMERA_MANAGER_PHOTO_RATIO_3X2 = 2,
DJI_CAMERA_MANAGER_PHOTO_RATIO_1X1 = 3,
DJI_CAMERA_MANAGER_PHOTO_RATIO_18X3 = 4,
DJI_CAMERA_MANAGER_PHOTO_RATIO_5X4 = 5,
} E_DjiCameraManagerPhotoRatio;

typedef enum E_DjiDownloadFileEvent

typedef enum {
DJI_DOWNLOAD_FILE_EVENT_START,
DJI_DOWNLOAD_FILE_EVENT_TRANSFER,
DJI_DOWNLOAD_FILE_EVENT_END,
} E_DjiDownloadFileEvent;

typedef enum E_DjiCameraManagerVideoResolution

typedef enum {
DJI_CAMERA_MANAGER_VIDEO_RESOLUTION_640X480P = 0, // 640X480P
DJI_CAMERA_MANAGER_VIDEO_RESOLUTION_1280X640P = 2, // 1280X640P
DJI_CAMERA_MANAGER_VIDEO_RESOLUTION_1280X720P = 4, // 1280X720P
DJI_CAMERA_MANAGER_VIDEO_RESOLUTION_1920X1080P = 10, // 1920X1080P
DJI_CAMERA_MANAGER_VIDEO_RESOLUTION_3840X2160P = 16, // 3840X2160P
} E_DjiCameraManagerVideoResolution;

typedef enum E_DjiCameraManagerVideoFrameRate

typedef enum {
DJI_CAMERA_MANAGER_VIDEO_FRAME_RATE_15FPS = 0, // 14.985
DJI_CAMERA_MANAGER_VIDEO_FRAME_RATE_25FPS = 2, // 25.000
DJI_CAMERA_MANAGER_VIDEO_FRAME_RATE_30FPS = 3, // 29.970
DJI_CAMERA_MANAGER_VIDEO_FRAME_RATE_60FPS = 6, // 59.940
} E_DjiCameraManagerVideoFrameRate;

typedef enum E_DjiCameraManagerPhotoStorageFormat

typedef enum {
DJI_CAMERA_MANAGER_PHOTO_STORAGE_FORMAT_RAW = 0,
DJI_CAMERA_MANAGER_PHOTO_STORAGE_FORMAT_JPEG = 1,
DJI_CAMERA_MANAGER_PHOTO_STORAGE_FORMAT_RAW_JPEG = 2,
DJI_CAMERA_MANAGER_PHOTO_STORAGE_FORMAT_YUV = 3, // 保存为 YUV 格式的图片
DJI_CAMERA_MANAGER_PHOTO_STORAGE_FORMAT_RJPEG = 7, // 热辐射 JPEG
} E_DjiCameraManagerPhotoStorageFormat;

typedef enum E_DjiCameraManagerVideoStorageFormat

typedef enum {
DJI_CAMERA_MANAGER_VIDEO_STORAGE_FORMAT_MOV = 0,
DJI_CAMERA_MANAGER_VIDEO_STORAGE_FORMAT_MP4 = 1,
} E_DjiCameraManagerVideoStorageFormat;

typedef enum E_DjiCameraManagerMeteringMode

typedef enum {
DJI_CAMERA_MANAGER_METERING_MODE_CENTRAL = 0,
DJI_CAMERA_MANAGER_METERING_MODE_AVERAGE = 1,
DJI_CAMERA_MANAGER_METERING_MODE_SPOT = 2,
} E_DjiCameraManagerMeteringMode;

typedef enum E_DjiCameraManagerFfcMode

typedef enum {
DJI_CAMERA_MANAGER_FFC_MODE_MANUAL = 0,
DJI_CAMERA_MANAGER_FFC_MODE_AUTO = 1,
} E_DjiCameraManagerFfcMode;

typedef enum E_DjiCameraManagerIrGainMode

typedef enum {
DJI_CAMERA_MANAGER_IR_GAIN_MODE_AUTO = 0,
DJI_CAMERA_MANAGER_IR_GAIN_MODE_LOW = 1,
DJI_CAMERA_MANAGER_IR_GAIN_MODE_HIGH = 2,
} E_DjiCameraManagerIrGainMode;

typedef enum E_DjiCameraManagerCapturingState

typedef enum {
/* 未拍摄*/
DJI_CAMERA_MANAGER_CAPTURING_STATE_IDLE = 0,

/* 单次拍摄中 */
DJI_CAMERA_MANAGER_CAPTURING_STATE_SINGLE = 1,

/* 多次拍摄中 */
DJI_CAMERA_MANAGER_CAPTURING_STATE_MULTI = 2,
} E_DjiCameraManagerCapturingState;

typedef enum E_DjiCameraManagerRecordingState

typedef enum {
DJI_CAMERA_MANAGER_RECORDING_STATE_IDLE = 0,
DJI_CAMERA_MANAGER_RECORDING_STATE_STARTING = 0,
DJI_CAMERA_MANAGER_RECORDING_STATE_RECORDING = 0,
DJI_CAMERA_MANAGER_RECORDING_STATE_STOPPING = 0,
} E_DjiCameraManagerRecordingState;

typedef struct T_DjiCameraManagerFirmwareVersion

摄像头模块光圈值。

typedef struct {
uint8_t firmware_version[4];
} T_DjiCameraManagerFirmwareVersion;

typedef struct T_DjiCameraManagerOpticalZoomParam

用户使用的点击对焦目标点数据结构体。

typedef struct {
dji_f32_t currentOpticalZoomFactor;
dji_f32_t maxOpticalZoomFactor;
} T_DjiCameraManagerOpticalZoomParam;

typedef struct T_DjiCameraManagerFileCreateTime

typedef struct {
uint8_t second;
uint8_t minute;
uint8_t hour;
uint8_t day;
uint8_t month;
uint16_t year;
} T_DjiCameraManagerFileCreateTime;

typedef struct T_DjiCameraManagerFileAttributeData

typedef struct {
    union {
        struct {
            uint32_t attributePhotoReserved: 22;
            uint32_t attributePhotoRatio: 8;
            uint32_t attributePhotoRotation: 2;
            uint8_t reserved[12];
        } photoAttribute;
        struct {
            uint32_t attributeVideoDuration: 16;
            uint32_t attributeVideoFramerate: 6;
            uint32_t attributeVideoRotation: 2;
            uint32_t attributeVideoResolution: 8;
            uint8_t reserved[12];
        } videoAttribute;
    };
} T_DjiCameraManagerFileAttributeData;

Struct T_DjiCameraManagerSubFileListInfo

typedef struct {
char fileName[DJI_FILE_NAME_SIZE_MAX];
uint32_t fileSize;
uint32_t fileIndex;
T_DjiCameraManagerFileCreateTime createTime;
E_DjiCameraMediaFileSubType type;
T_DjiCameraManagerFileAttributeData attributeData;
} T_DjiCameraManagerSubFileListInfo;

typedef struct T_DjiCameraManagerFileListInfo

typedef struct {
char fileName[256];
uint32_t fileSize;
uint32_t fileIndex;
T_DjiCameraManagerFileCreateTime createTime;
E_DjiCameraMediaFileType type;
T_DjiCameraManagerFileAttributeData attributeData;
} T_DjiCameraManagerFileListInfo;

typedef struct T_DjiCameraManagerFileList

typedef struct {
uint16_t totalCount;
T_DjiCameraManagerFileListInfo *fileListInfo;
} T_DjiCameraManagerFileList;

typedef struct T_DjiCameraManagerSliceConfig

typedef struct {
uint16_t sliceStartIndex;
E_DjiCameraManagerFileListCountPerSlice countPerSlice;
} T_DjiCameraManagerSliceConfig;

typedef struct T_DjiCameraManagerPointThermometryCoordinate

typedef struct {
dji_f32_t pointX;               /*! 点温测的 x 坐标,范围:0-1 */
dji_f32_t pointY;               /*! 点温测的 y 坐标,范围:0-1 */
} T_DjiCameraManagerPointThermometryCoordinate;

typedef struct T_DjiCameraManagerAreaThermometryCoordinate

typedef struct {
dji_f32_t areaTempLtX;          /*! 区域温测左上角的 x 坐标,范围:0-1 */
dji_f32_t areaTempLtY;          /*! 区域温测左上角的 y 坐标,范围:0-1 */
dji_f32_t areaTempRbX;          /*! 区域温测右下角的 x 坐标,范围:0-1 */
dji_f32_t areaTempRbY;          /*! 区域温测右下角的 y 坐标,范围:0-1 */
} T_DjiCameraManagerAreaThermometryCoordinate;

typedef struct T_DjiCameraManagerPointThermometryData

typedef struct {
dji_f32_t pointX;               /*! 点温测的 x 坐标,范围:0-1 */
dji_f32_t pointY;               /*! 点温测的 y 坐标,范围:0-1 */
dji_f32_t pointTemperature;     /*! 当前点的温度 */
} T_DjiCameraManagerPointThermometryData;

typedef struct T_DjiCameraManagerAreaThermometryData

typedef struct {
dji_f32_t areaTempLtX;          /*! 当前测温区域左上角的 x 坐标 */
dji_f32_t areaTempLtY;          /*! 当前测温区域左上角的 y 坐标 */
dji_f32_t areaTempRbX;          /*! 当前测温区域右下角的 x 坐标 */
dji_f32_t areaTempRbY;          /*! 当前测温区域右下角的 y 坐标 */
dji_f32_t areaAveTemp;          /*! 当前测温区域的平均温度 */
dji_f32_t areaMinTemp;          /*! 当前测温区域的最低温度 */
dji_f32_t areaMaxTemp;          /*! 当前测温区域的最高温度 */
dji_f32_t areaMinTempPointX;    /*! 测温区域内最低温度的 x 坐标 */
dji_f32_t areaMinTempPointY;    /*! 测温区域内最低温度的 y 坐标 */
dji_f32_t areaMaxTempPointX;    /*! 测温区域内最高温度的 x 坐标 */
dji_f32_t areaMaxTempPointY;    /*! 测温区域内最高温度的 y 坐标 */
} T_DjiCameraManagerAreaThermometryData;

typedef struct T_DjiDownloadFilePacketInfo

typedef struct {
E_DjiDownloadFileEvent downloadFileEvent;
uint32_t fileIndex;
uint32_t fileSize;
dji_f32_t progressInPercent;
} T_DjiDownloadFilePacketInfo;

typedef struct T_DjiCameraManagerLaserRangingInfo

typedef struct {
dji_f64_t longitude; /*! 范围:[-180,180] */
dji_f64_t latitude; /*! 范围:[-90,90] */
int32_t altitude; /*! 单位:0.1m */
int32_t distance; /*! 单位:0.1m */
int16_t screenX; /*! 单位:0.1% */
int16_t screenY; /*! 单位:0.1% */
bool enable_lidar;
uint8_t exception;
} T_DjiCameraManagerLaserRangingInfo;

typedef struct T_DjiCameraManagerStreamList

typedef struct {
uint32_t size;
E_DjiCameraManagerStreamSource streamSource[4];
E_DjiCameraManagerStreamSource streamStorage[4];
} T_DjiCameraManagerStreamList;

typedef struct T_DjiCameraManagerVideoFormat

typedef struct {
E_DjiCameraManagerVideoResolution videoResolution;
E_DjiCameraManagerVideoFrameRate videoFrameRate;
} T_DjiCameraManagerVideoFormat;

typedef struct T_DjiCameraManagerRangeList

/*! @brief

typedef struct {
    uint8_t size;
    union {
        E_DjiCameraManagerPhotoStorageFormat photoStorageFormat[16];
        E_DjiCameraManagerVideoStorageFormat videoStorageFormat[16];
        E_DjiCameraManagerPhotoRatio photoRatioFormat[16];
        E_DjiCameraManagerStreamSource streamSource[16];
        E_DjiCameraManagerStreamSource streamStorage[16];
        E_DjiCameraManagerNightSceneMode nightSceneMode[16];
    };
    uint32_t minValue;
    uint32_t maxValue;
} T_DjiCameraManagerRangeList;

typedef struct T_DjiCameraManagerIrTempMeterRange

typedef struct {
double lowGainTempMin;
double lowGainTempMax;
double highGainTempMin;
double highGainTempMax;
} T_DjiCameraManagerIrTempMeterRange;

typedef struct T_DjiCameraManagerStorageInfo

typedef struct {
uint32_t totalCapacity;     /* MByte */
uint32_t remainCapacity;    /* MByte */
} T_DjiCameraManagerStorageInfo;

typedef struct T_DjiCameraManagerPointCloudHeader

typedef struct {
    uint32_t flag; /* 0xFFFFFFFF */
    uint32_t seqNum;
    uint64_t timestamp;
    uint32_t dataByte; /* 雷达点所用到的数据结构实际字节长度 */
} T_DjiCameraManagerPointCloudHeader;

typedef struct T_DjiCameraManagerPointXYZRGBInfo

typedef struct {
    float x; /* NED 坐标系的 x 轴 */
    float y; /* NED 坐标系的 y 轴 */
    float z; /* NED 坐标系的 z 轴 */
    uint8_t intensity;
    uint8_t r;
    uint8_t g;
    uint8_t b;
} T_DjiCameraManagerPointXYZRGBInfo;

typedef struct T_DjiCameraManagerColorPointCloud

typedef struct {
    T_DjiCameraManagerPointCloudHeader pointCloudHeader;
    uint32_t crc_header;
    uint32_t crc_rest;
    T_DjiCameraManagerPointXYZRGBInfo points[1];
} T_DjiCameraManagerColorPointCloud;

Function

function DjiCameraManager_Init

功能:初始化摄像头管理模块。用户应调用此函数。适用产品:所有
T_DjiReturnCode DjiCameraManager_Init(void);
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_DeInit

功能:反初始化摄像头管理模块。适用产品:所有
T_DjiReturnCode DjiCameraManager_DeInit(void);
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetCameraType

功能:获取选定挂载位置的相机类型。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetCameraType(E_DjiMountPosition position, E_DjiCameraType *cameraType);
参数
cameraType:参见 E_DjiCameraType
position:相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetFirmwareVersion

功能:获取选定挂载位置的相机固件版本。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetFirmwareVersion(E_DjiMountPosition position, T_DjiCameraManagerFirmwareVersion *firmwareVersion);
参数
firmwareVersion:参见 T_DjiCameraManagerFirmwareVersion
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetCameraConnectStatus

功能:Get camera connect status.适用产品:所有
T_DjiReturnCode DjiCameraManager_GetCameraConnectStatus(E_DjiMountPosition position, bool *connectStatus);
参数
connectStatus:连接状态的返回值
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetMode

功能:设置选定挂载位置相机的工作模式。适用产品:所有

Note: 可将相机的工作模式设置为拍照、录像、回放、下载等。当有任务正在进行时不可更改模式。更改模式需要 1-2 s。

T_DjiReturnCode DjiCameraManager_SetMode(E_DjiMountPosition position, E_DjiCameraManagerWorkMode workMode);
参数
workMode: 请参见 E_DjiCameraManagerWorkMode
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetMode

功能:获取选定安装位置摄像头的工作模式。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetMode(E_DjiMountPosition position, E_DjiCameraManagerWorkMode *workMode);
参数
workMode: 请参见 E_DjiCameraManagerWorkMode
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetShootPhotoMode

功能:设置选定挂载位置相机的拍照模式。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetShootPhotoMode(E_DjiMountPosition position, E_DjiCameraManagerShootPhotoMode mode);
参数
mode: 请参见 E_DjiCameraManagerShootPhotoMode
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetShootPhotoMode

功能:获取选定挂载位置相机的拍照模式。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetShootPhotoMode(E_DjiMountPosition position, E_DjiCameraManagerShootPhotoMode *takePhotoMode);
参数
mode: 请参见 E_DjiCameraManagerShootPhotoMode
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_StartShootPhoto

功能:开始拍照。适用产品:所有

Note: 相机必须处于拍照模式。

T_DjiReturnCode DjiCameraManager_StartShootPhoto(E_DjiMountPosition position, E_DjiCameraManagerShootPhotoMode mode);
参数
mode: 请参见 E_DjiCameraManagerShootPhotoMode
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_StopShootPhoto

功能:拍照过程中停止拍照。适用产品:所有

Note: StartShootPhoto has been invoked and the shoot mode is either

T_DjiReturnCode DjiCameraManager_StopShootPhoto(E_DjiMountPosition position);
参数
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetCapturingState

功能:获取相机拍摄状态。适用产品:所有

Note: L1/P1 不支持此接口 .

T_DjiReturnCode DjiCameraManager_GetCapturingState(E_DjiMountPosition position, E_DjiCameraManagerCapturingState *capturingState);
参数
capturingState:获取结果,详见 E_DjiCameraManagerCapturingState
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetPhotoBurstCount

功能:在连拍模式下设置连拍张数。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetPhotoBurstCount(E_DjiMountPosition position, E_DjiCameraBurstCount count);
参数
count: 请参见 E_DjiCameraBurstCount
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetPhotoBurstCount

功能:在连拍模式下获取连拍张数。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetPhotoBurstCount(E_DjiMountPosition position, E_DjiCameraBurstCount *count);
参数
count: 请参见 E_DjiCameraBurstCount
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetPhotoAEBCount

功能:设置 AEB(自动曝光拍摄)模式下的连拍数量。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetPhotoAEBCount(E_DjiMountPosition position, E_DjiCameraManagerPhotoAEBCount count);
参数
count: 请参见 E_DjiCameraManagerPhotoAEBCount
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetPhotoAEBCount

功能:获取 AEB 模式下的连拍数量。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetPhotoAEBCount(E_DjiMountPosition position, E_DjiCameraManagerPhotoAEBCount *count);
参数
count: 请参见 E_DjiCameraManagerPhotoAEBCount
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetPhotoTimeIntervalSettings

功能:设置间隔拍摄模式的参数。适用产品:所有

Note: 在此拍照模式下,相机将拍摄一张照片,等待指定时间间隔,然后继续拍摄,直至完成所需数量的照片。该模式也支持热成像相机。

T_DjiReturnCode DjiCameraManager_SetPhotoTimeIntervalSettings(E_DjiMountPosition position, T_DjiCameraPhotoTimeIntervalSettings intervalSetting);
参数
intervalSetting: 请参见 T_DjiCameraPhotoTimeIntervalSettings
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetPhotoTimeIntervalSettings

功能:获取间隔拍摄模式的参数。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetPhotoTimeIntervalSettings(E_DjiMountPosition position, T_DjiCameraPhotoTimeIntervalSettings *intervalSetting);
参数
intervalSetting: 请参见 T_DjiCameraPhotoTimeIntervalSettings
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetIntervalShootingRemainTime

功能:获取间隔拍摄的剩余时间。适用产品:所有

Note: L1/P1 不支持此 API。

T_DjiReturnCode DjiCameraManager_GetIntervalShootingRemainTime(E_DjiMountPosition position, uint8_t *remainTime);
参数
remainTime:剩余时间(以秒为单位)
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetFocusMode

功能:设置选定相机挂载位置的相机对焦模式。适用产品:所有

Note: 设置镜头对焦模式。自动对焦模式下,目标点为焦点;手动对焦模式下,若启用了对焦助手,目标点为缩小区域。

T_DjiReturnCode DjiCameraManager_SetFocusMode(E_DjiMountPosition position, E_DjiCameraManagerFocusMode focusMode);
参数
focusMode: 请参见 E_DjiCameraManagerFocusMode
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetFocusMode

功能:获取选定相机挂载位置的对焦模式。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetFocusMode(E_DjiMountPosition position, E_DjiCameraManagerFocusMode *focusMode);
参数
focusMode: 请参见 E_DjiCameraManagerFocusMode
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetFocusTarget

功能:设置选定相机挂载位置的对焦点。适用产品:所有

Note: 设置镜头对焦目标点。自动对焦模式下,目标点为焦点;手动对焦模式下,若启用了对焦助手,目标点为缩小区域。

T_DjiReturnCode DjiCameraManager_SetFocusTarget(E_DjiMountPosition position, T_DjiCameraManagerFocusPosData focusPosData);
参数
focusPosData: 请参见 T_DjiCameraManagerFocusPosData
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetFocusTarget

功能:获取选定相机挂载位置的对焦点。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetFocusTarget(E_DjiMountPosition position, T_DjiCameraManagerFocusPosData *tapFocusPos);
参数
focusPosData: 请参见 T_DjiCameraManagerFocusPosData
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_StartContinuousOpticalZoom

功能:开启选定挂载位置相机的持续光学变焦。适用产品:所有

Note: 以指定速度和方向开始改变镜头的焦距。当达到最大或最小焦距,或调用 DjiCameraManager_StopContinuousOpticalZoom 时,焦距变化将停止。

T_DjiReturnCode DjiCameraManager_StartContinuousOpticalZoom(E_DjiMountPosition position, E_DjiCameraZoomDirection zoomDirection, E_DjiCameraZoomSpeed zoomSpeed);
参数
zoomSpeed:相机变焦速度,请参见 E_DjiCameraZoomSpeed
zoomDirection:相机变焦方向,请参见 E_DjiCameraZoomDirection
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_StopContinuousOpticalZoom

功能:停止选定挂载位置相机的持续光学变焦。适用产品:所有

Note: 当在 DjiCameraManager_StartContinuousOpticalZoom 调用中处于焦距变化状态时,调用此函数以停止焦距变化。

T_DjiReturnCode DjiCameraManager_StopContinuousOpticalZoom(E_DjiMountPosition position);
参数
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetOpticalZoomParam

功能:设置选定挂载位置相机的光学变焦参数。适用产品:所有

Note: 在此接口中,将根据您设置的变焦参数进行变焦操作。

T_DjiReturnCode DjiCameraManager_SetOpticalZoomParam(E_DjiMountPosition position, E_DjiCameraZoomDirection zoomDirection, dji_f32_t factor);
参数
factor:变焦参数
zoomDirection:光学变焦方向,请参见 E_DjiCameraZoomDirection
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetOpticalZoomParam

功能:获取选定挂载位置相机的光学变焦参数。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetOpticalZoomParam(E_DjiMountPosition position, T_DjiCameraManagerOpticalZoomParam *opticalZoomParam);
参数
opticalZoomParam: 请参见 T_DjiCameraManagerOpticalZoomParam
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetInfraredZoomParam

功能:设置指定挂载位置相机的红外变焦参数。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetInfraredZoomParam(E_DjiMountPosition position, dji_f32_t factor);
参数
factor:目标变焦参数
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetTapZoomEnabled

功能:启用或禁用指定挂载位置相机的点击变焦功能。适用产品:所有

Note: 只有在启用点击变焦功能后,才能调用 TapZoomAtTarget。

T_DjiReturnCode DjiCameraManager_SetTapZoomEnabled(E_DjiMountPosition position, bool param);
参数
param:启用 / 禁用
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetTapZoomEnabled

功能:获取指定挂载位置相机的点击变焦状态。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetTapZoomEnabled(E_DjiMountPosition position, bool *param);
参数
param:启用 / 禁用
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetTapZoomMultiplier

功能:设置指定挂载位置相机的点击变焦倍数。适用产品:所有

Note: Tap-zoom 使用一个系数来改变缩放比例。TapZoom 的最终缩放比例为:当前缩放比例 x 系数。

T_DjiReturnCode DjiCameraManager_SetTapZoomMultiplier(E_DjiMountPosition position, uint8_t tapZoomMultiplier);
参数
tapZoomMultiplier:倍数范围为 [1,5]。倍数为 1 时,变焦不会改变。
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetTapZoomMultiplier

功能:获取指定挂载位置相机的点击变焦倍数。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetTapZoomMultiplier(E_DjiMountPosition position, uint8_t *tapZoomMultiplier);
参数
tapZoomMultiplier:倍数范围为 [1,5]。倍数为 1 时,变焦不会改变。
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_TapZoomAtTarget

功能:设置指定挂载位置相机的点击变焦点。适用产品:所有

Note: 在目标处进行 Tap-zoom。只有在启用了 TapZoom 时才能调用。设置新目标后,云台将旋转并将目标定位在屏幕中心,同时,相机将通过乘以 TapZoom 系数进行缩放。

T_DjiReturnCode DjiCameraManager_TapZoomAtTarget(E_DjiMountPosition position, T_DjiCameraManagerTapZoomPosData tapZoomPos);
参数
tapZoomPos: 请参见 T_DjiCameraManagerTapZoomPosData
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetFocusRingRange

功能:获取相机焦距环的值范围。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetFocusRingRange(E_DjiMountPosition position, T_DjiCameraManagerRangeList *rangeList);
参数
rangeList:返回的值范围列表。
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetFocusRingValue

功能:设置相机焦距环的值。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetFocusRingValue(E_DjiMountPosition position, uint16_t value);
参数
value:焦距环的值
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetFocusRingValue

功能:获取相机焦距环的类型。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetFocusRingValue(E_DjiMountPosition position, uint16_t *value);
参数
value:待返回的变焦环的值
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetExposureMode

功能:设置选定的挂载位置相机的曝光模式。适用产品:所有

Note: 不同的曝光模式定义了光圈、快门速度、ISO 是否可以自动或手动设置。除手动模式外,所有模式都可以更改曝光补偿。

T_DjiReturnCode DjiCameraManager_SetExposureMode(E_DjiMountPosition position, E_DjiCameraManagerExposureMode mode);
参数
mode: 请参见 E_DjiCameraManagerExposureMode
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetExposureMode

功能:获取选定的挂载位置相机的曝光模式。适用产品:所有

Note: 不同的曝光模式定义了光圈、快门速度、ISO 是否可以自动或手动设置。除手动模式外,所有模式都可以更改曝光补偿。

T_DjiReturnCode DjiCameraManager_GetExposureMode(E_DjiMountPosition position, E_DjiCameraManagerExposureMode *mode);
参数
mode: 请参见 E_DjiCameraManagerExposureMode
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetISO

功能:设置选定的挂载位置相机的 ISO 值。适用产品:所有

Note: 只有在相机曝光模式为手动模式时才可以设置 ISO 值。

T_DjiReturnCode DjiCameraManager_SetISO(E_DjiMountPosition position, E_DjiCameraManagerISO iso);
参数
iso: 请参见 E_DjiCameraManagerISO
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetISO

功能:获取选定的挂载位置相机的 ISO 值。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetISO(E_DjiMountPosition position, E_DjiCameraManagerISO *iso);
参数
iso: 请参见 E_DjiCameraManagerISO
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetAperture

功能:设置选定的挂载位置相机的光圈值。适用产品:所有

Note: 曝光模式必须为 DJI_CAMERA_MANAGER_EXPOSURE_MODE_EXPOSURE_MANUAL 或 DJI_CAMERA_MANAGER_EXPOSURE_MODE_APERTURE_PRIORITY。

T_DjiReturnCode DjiCameraManager_SetAperture(E_DjiMountPosition position, E_DjiCameraManagerAperture aperture);
参数
aperture: 请参见 E_DjiCameraManagerAperture
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetAperture

功能:获取选定的挂载位置相机的光圈值。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetAperture(E_DjiMountPosition position, E_DjiCameraManagerAperture *aperture);
参数
aperture: 请参见 E_DjiCameraManagerAperture
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetShutterSpeed

功能:设置指定挂载位置相机的快门速度。适用产品:所有

Note: 设置相机的快门速度。当相机处于 RECORD_VIDEO 模式时,快门速度不应低于视频帧率。例如,如果视频帧率为 30fps,快门速度必须<= 1/30。前提条件:只有在相机曝光模式为 DJI_CAMERA_MANAGER_EXPOSURE_MODE_EXPOSURE_MANUAL 或 DJI_CAMERA_MANAGER_EXPOSURE_MODE_SHUTTER_PRIORITY 时,才能设置快门速度。

T_DjiReturnCode DjiCameraManager_SetShutterSpeed(E_DjiMountPosition position, E_DjiCameraManagerShutterSpeed shutterSpeed);
参数
shutterSpeed: 请参见 E_DjiCameraManagerShutterSpeed
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetShutterSpeed

功能:获取指定挂载位置相机的快门速度。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetShutterSpeed(E_DjiMountPosition position, E_DjiCameraManagerShutterSpeed *shutterSpeed);
参数
shutterSpeed: 请参见 E_DjiCameraManagerShutterSpeed
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetExposureCompensation

功能:设置指定挂载位置相机的曝光补偿。适用产品:所有

Note: 设置相机的曝光补偿。要使用此功能,请将相机曝光模式设置为快门、程序或光圈。曝光模式为 DJI_CAMERA_MANAGER_EXPOSURE_MODE_EXPOSURE_MANUAL、DJI_CAMERA_MANAGER_EXPOSURE_MODE_SHUTTER_PRIORITY 或 DJI_CAMERA_MANAGER_EXPOSURE_APERTURE_PRIORITY。

T_DjiReturnCode DjiCameraManager_SetExposureCompensation(E_DjiMountPosition position, E_DjiCameraManagerExposureCompensation ev);
参数
ev: 请参见 E_DjiCameraManagerExposureCompensation
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetExposureCompensation

功能:获取指定挂载位置相机的曝光补偿。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetExposureCompensation(E_DjiMountPosition position, E_DjiCameraManagerExposureCompensation *ev);
参数
ev: 请参见 E_DjiCameraManagerExposureCompensation
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetAELockEnabled

功能:设置自动曝光锁定。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetAELockEnabled(E_DjiMountPosition position, bool enable);
参数
enable:启用为 true,禁用为 false
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetAELockEnabled

功能:获取自动曝光锁定状态。适用产品:所有

Note: L1/P1 相机不支持此接口。

T_DjiReturnCode DjiCameraManager_GetAELockEnabled(E_DjiMountPosition position, bool *enable);
参数
enable:自动曝光锁定启用 / 禁用状态
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_ResetCameraSettings

功能:重置相机设置。适用产品:所有
T_DjiReturnCode DjiCameraManager_ResetCameraSettings(E_DjiMountPosition position);
参数
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_StartRecordVideo

功能:选定挂载位置相机开始录像。适用产品:所有

Note: 相机必须处于 RECORD_VIDEO 模式。对于热成像相机,用户可以在视频录制时拍摄单张照片。

T_DjiReturnCode DjiCameraManager_StartRecordVideo(E_DjiMountPosition position);
参数
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_StopRecordVideo

功能:选定挂载位置相机停止录像。适用产品:所有

Note: 前提条件:相机当前正在录像。

T_DjiReturnCode DjiCameraManager_StopRecordVideo(E_DjiMountPosition position);
参数
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetRecordingState

功能:获取相机录像状态。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetRecordingState(E_DjiMountPosition position, E_DjiCameraManagerRecordingState *recordingState);
参数
recordingState:获取的录像状态,请参见 E_DjiCameraManagerRecordingState
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetRecordingTime

功能:获取录像时长。适用产品:所有

Note: L1/P1 不支持此接口。

T_DjiReturnCode DjiCameraManager_GetRecordingTime(E_DjiMountPosition position, uint16_t *recordingTime);
参数
recordingTime:获取的录像时长,单位为秒
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetStreamSourceRange

功能:获取相机流媒体数据源范围。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetStreamSourceRange(E_DjiMountPosition position, T_DjiCameraManagerRangeList *rangeList);
参数
rangeList:返回的范围结果
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetStreamSource

功能:选择相机流媒体数据源。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetStreamSource(E_DjiMountPosition position, E_DjiCameraManagerStreamSource streamSource);
参数
streamSource:待选相机流媒体数据源
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetPhotoStorageFormatRange

功能:获取照片存储格式范围。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetPhotoStorageFormatRange(E_DjiMountPosition position, T_DjiCameraManagerRangeList *rangeList);
参数
rangeList:返回值范围列表
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetPhotoFormat

功能:设置照片存储格式。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetPhotoFormat(E_DjiMountPosition position, E_DjiCameraManagerPhotoStorageFormat format);
参数
format:存储格式
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetPhotoFormat

功能:获取照片存储格式。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetPhotoFormat(E_DjiMountPosition position, E_DjiCameraManagerPhotoStorageFormat *format);
参数
format:存储格式返回值
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetVideoFormatRange

功能:获取视频存储格式范围。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetVideoFormatRange(E_DjiMountPosition position, T_DjiCameraManagerRangeList *rangeList);
参数
rangeList:返回值范围列表
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetVideoStorageFormat

功能:设置视频存储格式。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetVideoStorageFormat(E_DjiMountPosition position, E_DjiCameraManagerVideoStorageFormat format);
参数
format:存储格式。
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetVideoFormat

功能:获取视频存储格式。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetVideoFormat(E_DjiMountPosition position, E_DjiCameraManagerVideoStorageFormat *format);
参数
format:存储格式返回值。
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetPhotoRatioRange

功能:获取照片比例范围。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetPhotoRatioRange(E_DjiMountPosition position, T_DjiCameraManagerRangeList *rangeList);
参数
rangeList:返回的比例范围列表
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetPhotoRatio

功能:设置照片比例。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetPhotoRatio(E_DjiMountPosition position, E_DjiCameraManagerPhotoRatio photoRatio);
参数
photoRatio:要设置的比例
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetPhotoRatio

功能:获取照片比例。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetPhotoRatio(E_DjiMountPosition position, E_DjiCameraManagerPhotoRatio *photoRatio);
参数
photoRatio:返回的照片比例
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetVideoResolutionFrameRate

功能:获取视频分辨率和帧率。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetVideoResolutionFrameRate(E_DjiMountPosition position, T_DjiCameraManagerVideoFormat *videoParam);
参数
photoRatio:返回的视频分辨率和帧率
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetNightSceneModeRange

功能:获取夜景模式范围。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetNightSceneModeRange(E_DjiMountPosition position, T_DjiCameraManagerRangeList *rangeList);
参数
tempRange:返回的夜景模式范围
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetNightSceneMode

功能:设置夜景模式。适用产品:所有

Note: 确保流媒体数据源为变焦或广角相机。

T_DjiReturnCode DjiCameraManager_SetNightSceneMode(E_DjiMountPosition position, E_DjiCameraManagerNightSceneMode nightSceneMode);
参数
nightSceneMode:夜景模式
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetNightSceneMode

功能:获取夜景模式。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetNightSceneMode(E_DjiMountPosition position, E_DjiCameraManagerNightSceneMode *nightSceneMode);
参数
nightSceneMode:返回的夜景模式
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetStreamStorageRange

功能:获取拍摄或录像时流媒体数据源的存储范围。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetStreamStorageRange(E_DjiMountPosition position, T_DjiCameraManagerRangeList *rangeList);
参数
rangeList:返回流媒体存储范围的值
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetCaptureRecordingStreams

功能:选择要存储的拍摄或录像流。适用产品:所有

Note: 前提条件:设置相机的工作模式以匹配流类型。

T_DjiReturnCode DjiCameraManager_SetCaptureRecordingStreams(E_DjiMountPosition position, E_DjiCameraManagerCaptureOrRecording streamType, T_DjiCameraManagerStreamList *streamStorageList);
参数
streamStorageList:指向包含流列表的结构体指针
streamType:拍摄模式或录像模式
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetCaptureRecordingStreams

功能:获取要存储的拍摄或录像流。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetCaptureRecordingStreams(E_DjiMountPosition position, E_DjiCameraManagerCaptureOrRecording streamType, T_DjiCameraManagerStreamList *streamStorageList);
参数
streamSourceList:实际返回值
streamType:拍摄模式或录像模式
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetSynchronizedSplitScreenZoomEnabled

功能:启用 / 禁用同步分屏缩放功能。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetSynchronizedSplitScreenZoomEnabled(E_DjiMountPosition position, bool enable);
参数
enable:设置为 true 以启用,false 以禁用
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetCustomExpandName

功能:设置目录或文件的后缀名。适用产品:所有

Note: 对于文件名,该设置仅一次有效。

T_DjiReturnCode DjiCameraManager_SetCustomExpandName(E_DjiMountPosition position, E_DjiCameraManagerExpandNameType nameType, const uint8_t *nameStr, uint32_t nameSize);
参数
nameStr:自定义后缀名的内容
nameSize:名称字符串的大小,必须在 1-239 范围内
nameType:参见 E_DjiCameraManagerExpandNameType,选择设置目录或文件名
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetCustomExpandName

功能:获取最近目录或文件名的自定义后缀。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetCustomExpandName(E_DjiMountPosition position, E_DjiCameraManagerExpandNameType nameType, uint8_t *nameStr, uint32_t *nameSize);
参数
nameSize:指示 nameStr 的大小。该值必须在 1-239 范围内,如果超出限制会将后缀名截断。
nameStr:后缀名
nameType:选择要获取自定义名称的目录或文件名
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_DownloadFileList

功能:下载选定的相机媒体文件列表。适用产品:所有

Note: 该接口为同步接口,使用时会占用较多的 CPU 资源。

T_DjiReturnCode DjiCameraManager_DownloadFileList(E_DjiMountPosition position, T_DjiCameraManagerFileList *fileList);
参数
fileList:指向下载的相机文件列表的指针
position:相机的挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_DownloadFileListBySlices

功能:分块下载选定的相机媒体文件列表。适用产品:所有

Note: 该接口为同步接口,使用时会占用较多的 CPU 资源。

T_DjiReturnCode DjiCameraManager_DownloadFileListBySlices(E_DjiMountPosition position, T_DjiCameraManagerSliceConfig sliceConfig, T_DjiCameraManagerFileList *fileList);
参数
fileList:指向下载的相机文件列表的指针
sliceConfig:用于下载文件列表的分块配置
position:相机的挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_RegDownloadFileDataCallback

功能:注册选定相机下载文件数据的回调。适用产品:所有
T_DjiReturnCode DjiCameraManager_RegDownloadFileDataCallback(E_DjiMountPosition position, DjiCameraManagerDownloadFileDataCallback callback);
参数
callback:下载文件数据的回调
position:相机的挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_DownloadFileByIndex

功能:通过文件索引下载选定的相机媒体文件。适用产品:所有

Note: 仅支持同时下载一个文件,新文件的下载需要等待前一个文件下载完成。此接口为同步接口,在使用时占用更多的 CPU 资源。如果下载文件失败,超时时间为 3 秒。

T_DjiReturnCode DjiCameraManager_DownloadFileByIndex(E_DjiMountPosition position, uint32_t fileIndex);
参数
fileIndex:相机媒体文件的索引
position:相机的挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_DownloadSubFileByIndexAndSubType

功能:通过文件索引和文件类型下载选定的相机媒体文件。适用产品:所有

Note: 此 API 仅支持 L2 相机,一次支持下载一个文件,下载完成后再开始下载另一个文件。这个同步接口可能会导致较高的 CPU 使用率。如果下载失败,3 秒后超时。

T_DjiReturnCode DjiCameraManager_DownloadSubFileByIndexAndSubType(E_DjiMountPosition position, uint32_t index, E_DjiCameraMediaFileSubType fileType);
参数
position:相机的挂载位置
fileIndex:相机媒体文件的索引
fileType:相机媒体子文件的类型
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_ObtainDownloaderRights

功能:下载媒体文件前获取媒体文件下载权限适用产品:所有
T_DjiReturnCode DjiCameraManager_ObtainDownloaderRights(E_DjiMountPosition position);
参数
position:相机的挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见: DjiErrorCode

function DjiCameraManager_ReleaseDownloaderRights

功能:下载媒体文件后释放媒体文件下载权限适用产品:所有

Note: 释放下载权限失败可能导致 Pilot 访问相册受限。

T_DjiReturnCode DjiCameraManager_ReleaseDownloaderRights(E_DjiMountPosition position);
参数
position:相机的挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见: DjiErrorCode

function DjiCameraManager_FormatStorage

功能:格式化 SD 卡。适用产品:所有
T_DjiReturnCode DjiCameraManager_FormatStorage(E_DjiMountPosition position);
参数
position:相机的挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetStorageInfo

功能:Get 获取 SD 卡的存储信息。适用产品:所有

Note: L1/P1 相机不支持此 API。

T_DjiReturnCode DjiCameraManager_GetStorageInfo(E_DjiMountPosition position, T_DjiCameraManagerStorageInfo *storageInfo);
参数
storageInfo:SD 卡存储信息的获取结果
position:相机的挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_DeleteFileByIndex

功能:通过文件索引删除选定的相机媒体文件。适用产品:所有
T_DjiReturnCode DjiCameraManager_DeleteFileByIndex(E_DjiMountPosition position, uint32_t fileIndex);
参数
fileIndex:相机媒体文件的索引
position:相机的挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetLaserRangingInfo

功能:获取选定挂载位置的相机激光测距信息。适用产品:所有

Note: 最大数据更新频率为 5Hz。

T_DjiReturnCode DjiCameraManager_GetLaserRangingInfo(E_DjiMountPosition position, T_DjiCameraManagerLaserRangingInfo *laserRangingInfo);
参数
laserRangingInfo:指向相机激光测距信息的指针
position:相机的挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetPointThermometryCoordinate

功能:设置选定挂载位置的相机点温度坐标。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetPointThermometryCoordinate(E_DjiMountPosition position, T_DjiCameraManagerPointThermometryCoordinate pointCoordinate);
参数
pointCoordinate:点温度坐标
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetPointThermometryData

功能:获取点温度结果。适用产品:所有

Note: 在从相机获取点温度数据之前,必须先调用 DjiCameraManager_SetPointThermometryCoordinate() 函数。

T_DjiReturnCode DjiCameraManager_GetPointThermometryData(E_DjiMountPosition position, T_DjiCameraManagerPointThermometryData *pointThermometryData);
参数
pointThermometryData:点温度结果
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetAreaThermometryCoordinate

功能:设置选定挂载位置的相机区域温度坐标。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetAreaThermometryCoordinate(E_DjiMountPosition position, T_DjiCameraManagerAreaThermometryCoordinate areaCoordinate);
参数
areaCoordinate:区域温度坐标
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetAreaThermometryData

功能:获取区域温度结果。适用产品:所有

Note: 在从相机获取区域温度数据之前,必须先调用 DjiCameraManager_SetAreaThermometryCoordinate() 函数。

T_DjiReturnCode DjiCameraManager_GetAreaThermometryData(E_DjiMountPosition position, T_DjiCameraManagerAreaThermometryData *areaThermometryData);
参数
areaThermometryData:区域温度结果
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetFfcMode

功能:设置 FFC 模式。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetFfcMode(E_DjiMountPosition position, E_DjiCameraManagerFfcMode ffcMode);
参数
ffcMode:待设置的模式
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_TriggerFfc

功能:触发一次 FFC。适用产品:所有
T_DjiReturnCode DjiCameraManager_TriggerFfc(E_DjiMountPosition position);
参数
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetInfraredCameraGainMode

功能:设置红外相机增益模式。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetInfraredCameraGainMode(E_DjiMountPosition position, E_DjiCameraManagerIrGainMode gainMode);
参数
gainMode:待设置的增益模式
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetInfraredCameraGainModeTemperatureRange

功能:获取红外相机的温度范围。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetInfraredCameraGainModeTemperatureRange(E_DjiMountPosition position, T_DjiCameraManagerIrTempMeterRange *tempRange);
参数
tempRange:返回的温度范围值
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetMeteringMode

功能:设置相机测光模式。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetMeteringMode(E_DjiMountPosition position, E_DjiCameraManagerMeteringMode meteringMode);
参数
meteringMode:测光模式
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetMeteringMode

功能:获取相机测光模式。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetMeteringMode(E_DjiMountPosition position, E_DjiCameraManagerMeteringMode *meteringMode);
参数
meteringMode:返回的测光模式值
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetMeteringPointRegionRange

功能:获取测光点范围。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetMeteringPointRegionRange(E_DjiMountPosition position, uint8_t *hrzNum, uint8_t *vtcNum);
参数
vtcNum:返回的垂直范围值
hrzNum:返回的水平范围值
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_SetMeteringPoint

功能:设置测光点。适用产品:所有
T_DjiReturnCode DjiCameraManager_SetMeteringPoint(E_DjiMountPosition position, uint8_t x, uint8_t y);
参数
y:垂直坐标值,不得大于 vtcNum - 1
x:水平坐标值,不得大于 hrzNum - 1
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_GetMeteringPoint

功能:获取当前测光点。适用产品:所有
T_DjiReturnCode DjiCameraManager_GetMeteringPoint(E_DjiMountPosition position, uint8_t *x, uint8_t *y);
参数
y:返回的当前垂直坐标
x:返回的当前水平坐标
position: 相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_StartRecordPointCloud

功能:开启当前相机挂载位置的点云录制适用产品:所有
T_DjiReturnCode DjiCameraManager_StartRecordPointCloud(E_DjiMountPosition position);
参数
position:相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

function DjiCameraManager_StopRecordPointCloud

功能:停止当前相机挂载位置的点云录制适用产品:所有

Note: 前置条件:相机当前正在录制。

T_DjiReturnCode DjiCameraManager_StopRecordPointCloud(E_DjiMountPosition position);
参数
position:相机挂载位置
返回值
根据程序执行的情况输出对应的返回值,详情请参见:DjiErrorCode

若您对文档有意见或疑惑,点击可快速反馈,我们会与您联系。