forked from mikrosimage/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVideoEncoder.hpp
More file actions
34 lines (24 loc) · 823 Bytes
/
Copy pathVideoEncoder.hpp
File metadata and controls
34 lines (24 loc) · 823 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_ENCODER_VIDEO_ENCODER_HPP_
#define _AV_TRANSCODER_ENCODER_VIDEO_ENCODER_HPP_
#include "IEncoder.hpp"
#include <AvTranscoder/codec/VideoCodec.hpp>
#include <AvTranscoder/profile/ProfileLoader.hpp>
namespace avtranscoder
{
class AvExport VideoEncoder : public IEncoder
{
public:
VideoEncoder( const std::string& videoCodecName );
~VideoEncoder();
void setup();
bool encodeFrame( const Frame& sourceFrame, Frame& codedFrame );
bool encodeFrame( Frame& codedFrame );
ICodec& getCodec() { return _codec; }
VideoCodec& getVideoCodec() { return _codec; }
void setProfile( const ProfileLoader::Profile& profile, const avtranscoder::VideoFrameDesc& frameDesc );
private:
VideoCodec _codec;
AVFrame* _frame; ///< Contains the encoded data to pass to the Frame when encodeFrame
};
}
#endif