17 struct StreamProfileImpl;
18 struct StreamProfileListImpl;
22 class VideoStreamProfile;
23 class GyroStreamProfile;
24 class AccelStreamProfile;
29 std::unique_ptr<StreamProfileImpl>
impl_;
74 template <typename T>
bool is();
89 template <typename T> std::shared_ptr<T> as() {
91 throw "unsupported operation, object's type is not require type";
93 return std::static_pointer_cast<T>(std::const_pointer_cast<
StreamProfile>(shared_from_this()));
117 uint32_t fps()
const;
129 uint32_t width()
const;
141 uint32_t height()
const;
209 switch(this->type()) {
229 std::unique_ptr<StreamProfileListImpl>
impl_;
246 uint32_t count() const;
261 const std::shared_ptr<
StreamProfile> getProfile(uint32_t index);
enum OBGyroSampleRate OBAccelSampleRate
OBAccelFullScaleRange
加速度计量程枚举
std::unique_ptr< StreamProfileListImpl > impl_
提供SDK的结构体、枚举常量定义(依赖libobsensor/h/ObTypes.h)
OBGyroFullScaleRange
陀螺仪量程的枚举
bool is()
检查帧对象的运行时类型是否与给定类型兼容
std::unique_ptr< StreamProfileImpl > impl_
OBGyroSampleRate
IMU 采样率值的枚举 (陀螺仪或加速度计)