|
|
|
@ -172,7 +172,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
CPhoneCamera(CPhoneDevice* dev, int32_t width, int32_t height, const NdkCamera::CAMERA_PARAMS& params);
|
|
|
|
|
virtual ~CPhoneCamera();
|
|
|
|
|
virtual bool on_image(cv::Mat& rgb);
|
|
|
|
|
virtual bool on_image(cv::Mat rgb);
|
|
|
|
|
virtual void on_error(const std::string& msg);
|
|
|
|
|
virtual void onDisconnected(ACameraDevice* device);
|
|
|
|
|
virtual bool onBurstCapture(std::shared_ptr<ACameraMetadata> characteristics, std::vector<std::shared_ptr<ACameraMetadata> >& results, uint32_t ldr, uint32_t duration, std::vector<std::vector<uint8_t> >& frames);
|
|
|
|
@ -248,7 +248,7 @@ public:
|
|
|
|
|
|
|
|
|
|
void UpdatePosition(double lon, double lat, double radius, time_t ts);
|
|
|
|
|
bool OnVideoReady(bool photoOrVideo, bool result, const char* path, unsigned int photoId);
|
|
|
|
|
bool OnCaptureReady(bool photoOrVideo, bool result, cv::Mat& mat, unsigned int photoId);
|
|
|
|
|
bool OnCaptureReady(bool photoOrVideo, bool result, cv::Mat mat, unsigned int photoId);
|
|
|
|
|
|
|
|
|
|
void UpdateSignalLevel(int signalLevel);
|
|
|
|
|
void UpdateTfCardPath(const std::string& tfCardPath)
|
|
|
|
@ -273,7 +273,7 @@ protected:
|
|
|
|
|
// bool MatchCaptureSizeRequest(ACameraManager *cameraManager, const char *selectedCameraId, unsigned int width, unsigned int height, uint32_t cameraOrientation_,
|
|
|
|
|
|
|
|
|
|
bool TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, const std::string& path, std::vector<IDevice::OSD_INFO>& osds, std::shared_ptr<PowerControl> powerCtrlPtr);
|
|
|
|
|
bool PostProcessPhoto(const PHOTO_INFO& photoInfo, const vector<IDevice::OSD_INFO>& osds, const std::string& path, const std::string& cameraInfo, cv::Mat& mat);
|
|
|
|
|
bool PostProcessPhoto(const PHOTO_INFO& photoInfo, const vector<IDevice::OSD_INFO>& osds, const std::string& path, const std::string& cameraInfo, cv::Mat mat);
|
|
|
|
|
inline bool TakePhotoCb(int res, const IDevice::PHOTO_INFO& photoInfo, const string& path, time_t photoTime, const std::vector<IDevice::RECOG_OBJECT>& objects) const
|
|
|
|
|
{
|
|
|
|
|
if (m_listener != NULL)
|
|
|
|
@ -318,7 +318,7 @@ protected:
|
|
|
|
|
void QueryPowerInfo(std::map<std::string, std::string>& powerInfo);
|
|
|
|
|
std::string QueryCpuTemperature();
|
|
|
|
|
|
|
|
|
|
bool OnImageReady(cv::Mat& mat);
|
|
|
|
|
bool OnImageReady(cv::Mat mat);
|
|
|
|
|
bool onOneCapture(std::shared_ptr<ACameraMetadata> characteristics, std::shared_ptr<ACameraMetadata> results, uint32_t ldr, uint32_t duration, cv::Mat rgb);
|
|
|
|
|
bool onBurstCapture(std::shared_ptr<ACameraMetadata> characteristics, std::vector<std::shared_ptr<ACameraMetadata> >& results, uint32_t ldr, uint32_t duration, std::vector<std::vector<uint8_t> >& frames);
|
|
|
|
|
bool onBurstCapture(std::shared_ptr<ACameraMetadata> characteristics, std::vector<std::shared_ptr<ACameraMetadata> >& results, uint32_t ldr, uint32_t duration, std::vector<std::shared_ptr<AImage> >& frames);
|
|
|
|
|