30 typedef std::function<void(std::shared_ptr<FrameSet> frame)>
FrameSetCallback;
34 std::unique_ptr<PipelineImpl> impl_;
58 Pipeline(std::shared_ptr<Device> device);
85 void start(std::shared_ptr<Config> config);
122 std::shared_ptr<Config> getConfig();
137 std::shared_ptr<FrameSet> waitForFrames(uint32_t timeout_ms);
150 std::shared_ptr<Device> getDevice();
163 std::shared_ptr<Playback> getPlayback();
179 std::shared_ptr<StreamProfileList> getStreamProfileList(
OBSensorType sensorType);
189 void enableFrameSync();
198 void disableFrameSync();
230 std::shared_ptr<StreamProfileList> getD2CDepthProfileList(std::shared_ptr<StreamProfile> colorProfile,
OBAlignMode alignMode);
248 OBRect getD2CValidArea(uint32_t minimumDistance, uint32_t maximumDistance = 0);
261 void switchConfig(std::shared_ptr<Config> config);
274 void startRecord(
const char *filename);
288 std::unique_ptr<ConfigImpl> impl_;
305 void enableStream(std::shared_ptr<StreamProfile> streamProfile);
313 void enableAllStream();
333 void disableAllStream();
359 void setDepthScaleRequire(
bool enable);
376 void setD2CTargetResolution(uint32_t d2cTargetWidth, uint32_t d2cTargetHeight);
std::function< void(std::shared_ptr< FrameSet > frame)> FrameSetCallback
提供SDK的结构体、枚举常量定义(依赖libobsensor/h/ObTypes.h)