AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
avtranscoder::OutputStream Class Reference

#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...
 
- Public Member Functions inherited from avtranscoder::IOutputStream
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

- Public Types inherited from avtranscoder::IOutputStream
enum  EWrappingStatus { eWrappingSuccess = 0, eWrappingWaitingForData, eWrappingError }
 define wrapping result status More...
 

Detailed Description

Definition at line 13 of file OutputStream.hpp.

Constructor & Destructor Documentation

avtranscoder::OutputStream::OutputStream ( OutputFile outputFile,
const size_t  streamIndex 
)

Definition at line 10 of file OutputStream.cpp.

Member Function Documentation

size_t avtranscoder::OutputStream::getNbFrames ( ) const
virtual

If audio stream, returns number of packets.

Implements avtranscoder::IOutputStream.

Definition at line 43 of file OutputStream.cpp.

References _outputAVStream.

float avtranscoder::OutputStream::getStreamDuration ( ) const
virtual
Returns
The current duration of the stream, in seconds.

Implements avtranscoder::IOutputStream.

Definition at line 21 of file OutputStream.cpp.

References _outputAVStream, _streamIndex, _wrappedPacketsDuration, and LOG_WARN.

size_t avtranscoder::OutputStream::getStreamIndex ( ) const
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.

bool avtranscoder::OutputStream::isPTSGenerated ( ) const
inline

Definition at line 23 of file OutputStream.hpp.

IOutputStream::EWrappingStatus avtranscoder::OutputStream::wrap ( const CodedData data)
virtual

Field Documentation

bool avtranscoder::OutputStream::_isPTSGenerated
private

Definition at line 38 of file OutputStream.hpp.

Referenced by wrap().

int avtranscoder::OutputStream::_lastWrappedPacketDuration
private

Definition at line 37 of file OutputStream.hpp.

Referenced by wrap().

const AVStream& avtranscoder::OutputStream::_outputAVStream
private

Has link (no ownership)

Definition at line 28 of file OutputStream.hpp.

Referenced by getNbFrames(), getStreamDuration(), getStreamPTS(), and wrap().

OutputFile& avtranscoder::OutputStream::_outputFile
private

Has link (no ownership)

Definition at line 27 of file OutputStream.hpp.

Referenced by wrap().

size_t avtranscoder::OutputStream::_streamIndex
private

Index of the stream in the output file.

Definition at line 30 of file OutputStream.hpp.

Referenced by getStreamDuration(), and wrap().

size_t avtranscoder::OutputStream::_wrappedPacketsDuration
private

Definition at line 36 of file OutputStream.hpp.

Referenced by getStreamDuration(), and wrap().


The documentation for this class was generated from the following files:
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy