forked from avTranscoder/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIOutputStream.hpp
More file actions
47 lines (38 loc) · 1 KB
/
Copy pathIOutputStream.hpp
File metadata and controls
47 lines (38 loc) · 1 KB
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
40
41
42
43
44
45
46
47
#ifndef _AV_TRANSCODER_STREAM_I_OUTPUT_STREAM_HPP_
#define _AV_TRANSCODER_STREAM_I_OUTPUT_STREAM_HPP_
#include <AvTranscoder/codec/AudioCodec.hpp>
#include <AvTranscoder/codec/VideoCodec.hpp>
#include <AvTranscoder/data/coded/CodedData.hpp>
namespace avtranscoder
{
class AvExport IOutputStream
{
public:
/**
* @brief define wrapping result status
**/
enum EWrappingStatus
{
eWrappingSuccess = 0,
eWrappingWaitingForData,
eWrappingError,
};
virtual ~IOutputStream(){};
virtual size_t getStreamIndex() const = 0;
/**
* @return The current duration of the stream, in seconds.
*/
virtual float getStreamDuration() const = 0;
/**
* @return The current number of frame of the stream.
*/
virtual size_t getNbFrames() const = 0;
/**
* @brief Wrap a packet of data
* @return the wrapping status after wrapping
* @see EWrappingStatus
**/
virtual EWrappingStatus wrap(const CodedData& data) = 0;
};
}
#endif