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