forked from mikrosimage/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVideoGenerator.hpp
More file actions
34 lines (24 loc) · 867 Bytes
/
Copy pathVideoGenerator.hpp
File metadata and controls
34 lines (24 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _AV_TRANSCODER_DECODER_VIDEO_GENERATOR_HPP_
#define _AV_TRANSCODER_DECODER_VIDEO_GENERATOR_HPP_
#include "IDecoder.hpp"
#include <AvTranscoder/codec/VideoCodec.hpp>
namespace avtranscoder
{
class AvExport VideoGenerator : public IDecoder
{
public:
VideoGenerator();
~VideoGenerator();
VideoFrameDesc& getVideoFrameDesc() { return _frameDesc; }
void setVideoFrameDesc( const VideoFrameDesc& frameDesc );
void setup() {}
void setNextFrame( Frame& inputFrame );
bool decodeNextFrame( Frame& frameBuffer );
bool decodeNextFrame( Frame& frameBuffer, const size_t subStreamIndex );
private:
Frame* _inputFrame; ///< A frame given from outside (has link, no ownership)
VideoFrame* _blackImage; ///< The generated black image (has ownership)
VideoFrameDesc _frameDesc; ///< The description of the black image (width, height...)
};
}
#endif