AvTranscoder
0.9.4
C++APIforLibav/FFmpeg
|
#include <OutputStream.hpp>
Public Member Functions | |
OutputStream (OutputFile &outputFile, const size_t streamIndex) | |
size_t | getStreamIndex () const |
float | getStreamDuration () const |
size_t | getNbFrames () const |
If audio stream, returns number of packets. More... | |
int | getStreamPTS () const |
Get current AVStream PTS. More... | |
bool | isPTSGenerated () const |
IOutputStream::EWrappingStatus | wrap (const CodedData &data) |
Wrap a packet of data. More... | |
![]() | |
virtual | ~IOutputStream () |
Private Attributes | |
OutputFile & | _outputFile |
Has link (no ownership) More... | |
const AVStream & | _outputAVStream |
Has link (no ownership) More... | |
size_t | _streamIndex |
Index of the stream in the output file. More... | |
size_t | _wrappedPacketsDuration |
int | _lastWrappedPacketDuration |
bool | _isPTSGenerated |
Additional Inherited Members | |
![]() | |
enum | EWrappingStatus { eWrappingSuccess = 0, eWrappingWaitingForData, eWrappingError } |
define wrapping result status More... | |
Definition at line 13 of file OutputStream.hpp.
avtranscoder::OutputStream::OutputStream | ( | OutputFile & | outputFile, |
const size_t | streamIndex | ||
) |
Definition at line 10 of file OutputStream.cpp.
|
virtual |
If audio stream, returns number of packets.
Implements avtranscoder::IOutputStream.
Definition at line 43 of file OutputStream.cpp.
References _outputAVStream.
|
virtual |
Implements avtranscoder::IOutputStream.
Definition at line 21 of file OutputStream.cpp.
References _outputAVStream, _streamIndex, _wrappedPacketsDuration, and LOG_WARN.
|
inlinevirtual |
Implements avtranscoder::IOutputStream.
Definition at line 18 of file OutputStream.hpp.
int avtranscoder::OutputStream::getStreamPTS | ( | ) | const |
Get current AVStream PTS.
Definition at line 48 of file OutputStream.cpp.
References _outputAVStream.
|
inline |
Definition at line 23 of file OutputStream.hpp.
|
virtual |
Wrap a packet of data.
Implements avtranscoder::IOutputStream.
Definition at line 54 of file OutputStream.cpp.
References _isPTSGenerated, _lastWrappedPacketDuration, _outputAVStream, _outputFile, _streamIndex, _wrappedPacketsDuration, avtranscoder::CodedData::getAVPacket(), avtranscoder::CodedData::getSize(), LOG_WARN, and avtranscoder::OutputFile::wrap().
|
private |
Definition at line 38 of file OutputStream.hpp.
Referenced by wrap().
|
private |
Definition at line 37 of file OutputStream.hpp.
Referenced by wrap().
|
private |
Has link (no ownership)
Definition at line 28 of file OutputStream.hpp.
Referenced by getNbFrames(), getStreamDuration(), getStreamPTS(), and wrap().
|
private |
|
private |
Index of the stream in the output file.
Definition at line 30 of file OutputStream.hpp.
Referenced by getStreamDuration(), and wrap().
|
private |
Definition at line 36 of file OutputStream.hpp.
Referenced by getStreamDuration(), and wrap().