avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Public Member Functions | Friends | List of all members
av::Stream Class Reference

#include <stream.h>

Inheritance diagram for av::Stream:
Inheritance graph
[legend]
Collaboration diagram for av::Stream:
Collaboration graph
[legend]

Public Member Functions

 Stream ()=default
 
bool isValid () const
 
int index () const
 
int id () const
 
Rational frameRate () const
 
Rational timeBase () const
 
Rational sampleAspectRatio () const
 
Rational averageFrameRate () const
 
Timestamp startTime () const
 
Timestamp duration () const
 
Timestamp currentDts () const
 
AVMediaType mediaType () const
 
bool isAudio () const
 
bool isVideo () const
 
bool isData () const
 
bool isSubtitle () const
 
bool isAttachment () const
 
Direction direction () const
 
void setTimeBase (const Rational &timeBase)
 
void setFrameRate (const Rational &frameRate)
 
void setSampleAspectRatio (const Rational &aspectRatio)
 
void setAverageFrameRate (const Rational &frameRate)
 
CodecParametersView codecParameters () const
 
void setCodecParameters (CodecParametersView codecpar, OptionalErrorCode ec=throws())
 
int eventFlags () const noexcept
 Flags to the user to detect events happening on the stream. More...
 
bool eventFlags (int flags) const noexcept
 
void eventFlagsClear (int flags) noexcept
 
void setupEncodingParameters (const class VideoEncoderContext &ctx, OptionalErrorCode ec=throws())
 
- Public Member Functions inherited from FFWrapperPtr< AVStream >
 FFWrapperPtr ()=default
 
 FFWrapperPtr (AVStream *raw)
 
const AVStream * raw () const
 
AVStream * raw ()
 
void reset (AVStream *raw=nullptr)
 
bool isNull () const
 
void _log (int level, const char *fmt) const
 
void _log (int level, const char *fmt, const Args &... args) const
 

Friends

class FormatContext
 

Additional Inherited Members

- Protected Attributes inherited from FFWrapperPtr< AVStream >
AVStream * m_raw
 

Constructor & Destructor Documentation

◆ Stream()

av::Stream::Stream ( )
default

Member Function Documentation

◆ averageFrameRate()

Rational av::Stream::averageFrameRate ( ) const

◆ codecParameters()

CodecParametersView av::Stream::codecParameters ( ) const

◆ currentDts()

Timestamp av::Stream::currentDts ( ) const

◆ direction()

Direction av::Stream::direction ( ) const
inline

◆ duration()

Timestamp av::Stream::duration ( ) const

◆ eventFlags() [1/2]

int av::Stream::eventFlags ( ) const
noexcept

Flags to the user to detect events happening on the stream.

A combination of AVSTREAM_EVENT_FLAG_*. Must be cleared by the user.

See also
AVFormatContext::event_flags
Returns

◆ eventFlags() [2/2]

bool av::Stream::eventFlags ( int  flags) const
noexcept

◆ eventFlagsClear()

void av::Stream::eventFlagsClear ( int  flags)
noexcept

◆ frameRate()

Rational av::Stream::frameRate ( ) const

◆ id()

int av::Stream::id ( ) const

◆ index()

int av::Stream::index ( ) const

◆ isAttachment()

bool av::Stream::isAttachment ( ) const

◆ isAudio()

bool av::Stream::isAudio ( ) const

◆ isData()

bool av::Stream::isData ( ) const

◆ isSubtitle()

bool av::Stream::isSubtitle ( ) const

◆ isValid()

bool av::Stream::isValid ( ) const

◆ isVideo()

bool av::Stream::isVideo ( ) const

◆ mediaType()

AVMediaType av::Stream::mediaType ( ) const

◆ sampleAspectRatio()

Rational av::Stream::sampleAspectRatio ( ) const

◆ setAverageFrameRate()

void av::Stream::setAverageFrameRate ( const Rational frameRate)

◆ setCodecParameters()

void av::Stream::setCodecParameters ( CodecParametersView  codecpar,
OptionalErrorCode  ec = throws() 
)

◆ setFrameRate()

void av::Stream::setFrameRate ( const Rational frameRate)

◆ setSampleAspectRatio()

void av::Stream::setSampleAspectRatio ( const Rational aspectRatio)

◆ setTimeBase()

void av::Stream::setTimeBase ( const Rational timeBase)

◆ setupEncodingParameters()

void av::Stream::setupEncodingParameters ( const class VideoEncoderContext ctx,
OptionalErrorCode  ec = throws() 
)

◆ startTime()

Timestamp av::Stream::startTime ( ) const

◆ timeBase()

Rational av::Stream::timeBase ( ) const

Friends And Related Function Documentation

◆ FormatContext

friend class FormatContext
friend

The documentation for this class was generated from the following files: