| | |
| | | { |
| | | public: |
| | | FFmpegH264Encoder(); |
| | | ~FFmpegH264Encoder(); |
| | | virtual ~FFmpegH264Encoder(); |
| | | |
| | | virtual void setCallbackFunctionFrameIsReady(std::function<void()> func); |
| | | |
| | | void SetupVideo(std::string filename, int Width, int Height, int FPS, int GOB, int BitPerSecond); |
| | | bool SetupVideo(std::string filename, int Width, int Height, int FPS, int GOB, int BitPerSecond); |
| | | void CloseVideo(); |
| | | void SetupCodec(const char *filename, int codec_id); |
| | | bool SetupCodec(const char *filename, int codec_id); |
| | | void CloseCodec(); |
| | | |
| | | |
| | | void SendNewFrame(uint8_t * RGBFrame); |
| | | void WriteFrame(uint8_t * RGBFrame); |
| | | bool WriteFrameRGB(uint8_t * RGBFrame); |
| | | bool WriteFrameYUV420(AVFrame * YUVFrame); |
| | | virtual char ReleaseFrame(); |
| | | |
| | | void run(); |