4 #ifndef OWT_BASE_FRAMEGENERATORINTERFACE_H_ 5 #define OWT_BASE_FRAMEGENERATORINTERFACE_H_ 26 const uint32_t capacity) = 0;
39 enum VideoFrameCodec {
54 virtual uint32_t GenerateNextFrame(uint8_t* buffer,
55 const uint32_t capacity) = 0;
76 virtual VideoFrameCodec
GetType() = 0;
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.