AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IOutputStream.hpp
Go to the documentation of this file.
1 #ifndef _AV_TRANSCODER_STREAM_I_OUTPUT_STREAM_HPP_
2 #define _AV_TRANSCODER_STREAM_I_OUTPUT_STREAM_HPP_
3 
7 
8 namespace avtranscoder
9 {
10 
11 class AvExport IOutputStream
12 {
13 public:
14  /**
15  * @brief define wrapping result status
16  **/
18  {
19  eWrappingSuccess = 0,
22  };
23 
24  virtual ~IOutputStream(){};
25 
26  virtual size_t getStreamIndex() const = 0;
27 
28  /**
29  * @return The current duration of the stream, in seconds.
30  */
31  virtual float getStreamDuration() const = 0;
32 
33  /**
34  * @return The current number of frame of the stream.
35  */
36  virtual size_t getNbFrames() const = 0;
37 
38  /**
39  * @brief Wrap a packet of data
40  * @return the wrapping status after wrapping
41  * @see EWrappingStatus
42  **/
43  virtual EWrappingStatus wrap(const CodedData& data) = 0;
44 };
45 }
46 
47 #endif
EWrappingStatus
define wrapping result status
This class describes coded data.
Definition: CodedData.hpp:18