Intel® Collaboration Suite for WebRTC  version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for Windows*
framegeneratorinterface.h
1 // Copyright (C) <2018> Intel Corporation
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 #ifndef OWT_BASE_FRAMEGENERATORINTERFACE_H_
5 #define OWT_BASE_FRAMEGENERATORINTERFACE_H_
6 #include "stdint.h"
7 namespace owt {
8 namespace base {
15  public:
25  virtual uint32_t GenerateFramesForNext10Ms(uint8_t* buffer,
26  const uint32_t capacity) = 0;
28  virtual int GetSampleRate() = 0;
30  virtual int GetChannelNumber() = 0;
31  virtual ~AudioFrameGeneratorInterface(){}
32 };
38  public:
39  enum VideoFrameCodec {
40  I420,
41  VP8,
42  H264,
43  };
54  virtual uint32_t GenerateNextFrame(uint8_t* buffer,
55  const uint32_t capacity) = 0;
56  virtual ~VideoFrameGeneratorInterface() {}
60  virtual uint32_t GetNextFrameSize() = 0;
64  virtual int GetHeight() = 0;
68  virtual int GetWidth() = 0;
72  virtual int GetFps() = 0;
76  virtual VideoFrameCodec GetType() = 0;
77 };
78 } // namespace base
79 } // namespace owt
80 #endif // OWT_BASE_FRAMEGENERATORINTERFACE_H_
virtual uint32_t GenerateFramesForNext10Ms(uint8_t *buffer, const uint32_t capacity)=0
Generate frames for next 10ms.
virtual int GetWidth()=0
This function gets the width of video frame.
virtual VideoFrameCodec GetType()=0
This function gets the video frame type of video frame generator.
frame generator interface for audio
Definition: framegeneratorinterface.h:14
VideoFrameGeneratorInterface()
This function generates one frame data.
Definition: framegeneratorinterface.h:53
Definition: audioplayerinterface.h:8
virtual int GetChannelNumber()=0
Get numbers of channel for frames generated.
virtual uint32_t GetNextFrameSize()=0
This function gets the size of next video frame.
virtual int GetSampleRate()=0
Get sample rate for frames generated.
frame generator interface for users to generates frame. FrameGeneratorInterface is the virtual class ...
Definition: framegeneratorinterface.h:37
virtual int GetHeight()=0
This function gets the height of video frame.
virtual int GetFps()=0
This function gets the fps of video frame generator.