OrbbecSDK  1.0.0
StreamProfile.hpp
浏览该文件的文档.
1 
6 #pragma once
7 
8 #include "Types.hpp"
9 
10 #include <memory>
11 
12 struct StreamProfileImpl;
13 struct StreamProfileListImpl;
14 
15 namespace ob {
16 
17 class OB_EXTENSION_API StreamProfile {
18 private:
19  std::unique_ptr< StreamProfileImpl > impl_;
20 
21 public:
22  StreamProfile( std::unique_ptr< StreamProfileImpl > impl );
23  ~StreamProfile();
29  uint32_t fps();
35  uint32_t width();
41  uint32_t height();
47  OBFormat format();
53  OBStreamType type();
54 
55  friend class Sensor;
56 };
57 
58 class OB_EXTENSION_API StreamProfileList {
59 protected:
60  std::unique_ptr< StreamProfileListImpl > impl_;
61 
62 public:
63  StreamProfileList( std::unique_ptr< StreamProfileListImpl > impl );
65 
71  uint32_t count();
72 
79  const std::shared_ptr< StreamProfile > getProfile( uint32_t index );
80 };
81 } // namespace ob
Definition: Context.hpp:15
提供SDK的结构体、枚举常量定义(依赖libobsensor/h/ObTypes.h)