forked from mikrosimage/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAudioDecoder.hpp
More file actions
37 lines (25 loc) · 799 Bytes
/
Copy pathAudioDecoder.hpp
File metadata and controls
37 lines (25 loc) · 799 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
35
36
37
#ifndef _AV_TRANSCODER_ESSENCE_STREAM_AV_INPUT_AUDIO_HPP_
#define _AV_TRANSCODER_ESSENCE_STREAM_AV_INPUT_AUDIO_HPP_
#include "IDecoder.hpp"
#include <AvTranscoder/profile/ProfileLoader.hpp>
struct AVFrame;
namespace avtranscoder
{
class InputStream;
class AvExport AudioDecoder : public IDecoder
{
public:
AudioDecoder( InputStream& inputStream );
~AudioDecoder();
void setup();
bool decodeNextFrame( Frame& frameBuffer );
bool decodeNextFrame( Frame& frameBuffer, const size_t subStreamIndex );
void setProfile( const ProfileLoader::Profile& profile );
private:
bool decodeNextFrame();
private:
InputStream* _inputStream; ///< Stream from which we read next frames (no ownership, has link)
AVFrame* _frame; ///< Libav object to store decoded data (has ownership)
};
}
#endif