forked from mikrosimage/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVideoDecoder.hpp
More file actions
39 lines (26 loc) · 809 Bytes
/
Copy pathVideoDecoder.hpp
File metadata and controls
39 lines (26 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
35
36
37
38
39
#ifndef _AV_TRANSCODER_DECODER_VIDEO_DECODER_HPP_
#define _AV_TRANSCODER_DECODER_VIDEO_DECODER_HPP_
#include "IDecoder.hpp"
#include <AvTranscoder/profile/ProfileLoader.hpp>
struct AVFrame;
namespace avtranscoder
{
class InputStream;
class AvExport VideoDecoder : public IDecoder
{
public:
VideoDecoder( InputStream& inputStream );
~VideoDecoder();
void setup();
bool decodeNextFrame( Frame& frameBuffer );
bool decodeNextFrame( Frame& frameBuffer, const size_t subStreamIndex );
void flushDecoder();
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