cn.tee3.avd_SDK-C++  2.1.0
videocapture.h
浏览该文件的文档.
1 #ifndef RTC_FakeVideoCapturer_H_
2 #define RTC_FakeVideoCapturer_H_
3 
4 #include "common.h"
5 #include "videorender.h"
6 
7 namespace tee3 {
8  namespace avd {
9 
16  public:
22  class Listener {
23  public:
29  virtual bool OnStart() = 0;
34  virtual void OnStop() = 0;
35  };
36 
37  public:
45  static FakeVideoCapturer* Create(FakeVideoCapturer::Listener* listener, bool isScreen = false);
46 
55  static FakeVideoCapturer* Create(FakeVideoCapturer::Listener* listener, FourCC fourFormat, bool isScreen = false);
56 
61  static void Destroy(FakeVideoCapturer* capturer);
62 
66  virtual bool isRunning() = 0;
84  virtual Result inputCapturedFrame(
85  uint64 timestamp_ns, uint32 format, int w, int h, const uint8* data, size_t len, int rotation, bool mirror) = 0;
99  virtual Result inputEncodedFrame(
100  uint64 timestamp_ns, int w, int h, const uint8* sample, size_t sample_size) = 0;
101 
102  virtual FourCC format() = 0;
103  protected:
104  virtual ~FakeVideoCapturer() {};
105  };
106 
107  } // namespace avd
108 } // namespace tee3
109 
110 #endif //RTC_FakeVideoCapturer_H_
int Result
返回值类型
Definition: combase.h:9
#define RT_API_EXPORT
Definition: defines.h:186
unsigned int uint32
Definition: defines.h:391
virtual ~FakeVideoCapturer()
Definition: videocapture.h:104
unsigned long long uint64
Definition: defines.h:380
视频流导入接口.
Definition: videocapture.h:15
FourCC
Definition: combase.h:626
视频流导入回调接口.
Definition: videocapture.h:22
unsigned char uint8
Definition: defines.h:395
Definition: audiocapture.h:5