搭建代码框架并更新文档
This commit is contained in:
65
platforms/android/src/capture/camera_capture.cpp
Normal file
65
platforms/android/src/capture/camera_capture.cpp
Normal file
@@ -0,0 +1,65 @@
|
||||
#include "displayflow/platform/android/capture/camera_capture.h"
|
||||
|
||||
namespace displayflow {
|
||||
namespace platform {
|
||||
namespace android {
|
||||
|
||||
CameraCapture::CameraCapture() {
|
||||
// TODO: 实现构造函数
|
||||
}
|
||||
|
||||
CameraCapture::~CameraCapture() {
|
||||
// TODO: 实现析构函数
|
||||
}
|
||||
|
||||
bool CameraCapture::Initialize() {
|
||||
// TODO: 实现初始化逻辑
|
||||
return false;
|
||||
}
|
||||
|
||||
std::vector<CameraInfo> CameraCapture::EnumerateCameras() {
|
||||
// TODO: 实现枚举摄像头逻辑
|
||||
return {};
|
||||
}
|
||||
|
||||
bool CameraCapture::OpenCamera(const std::string& cameraId) {
|
||||
// TODO: 实现打开摄像头逻辑
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CameraCapture::StartCapture(const Resolution& resolution, int fps) {
|
||||
// TODO: 实现开始捕获逻辑
|
||||
return false;
|
||||
}
|
||||
|
||||
void CameraCapture::StopCapture() {
|
||||
// TODO: 实现停止捕获逻辑
|
||||
}
|
||||
|
||||
void CameraCapture::CloseCamera() {
|
||||
// TODO: 实现关闭摄像头逻辑
|
||||
}
|
||||
|
||||
void CameraCapture::SetFrameCallback(std::function<void(const VideoFrame&)> callback) {
|
||||
// TODO: 实现设置回调逻辑
|
||||
}
|
||||
|
||||
bool CameraCapture::SetFocusMode(const std::string& mode) {
|
||||
// TODO: 实现设置对焦模式逻辑
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CameraCapture::SetExposureMode(const std::string& mode) {
|
||||
// TODO: 实现设置曝光模式逻辑
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CameraCapture::SetWhiteBalanceMode(const std::string& mode) {
|
||||
// TODO: 实现设置白平衡模式逻辑
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace platform
|
||||
} // namespace displayflow
|
||||
|
||||
Reference in New Issue
Block a user