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

The CodecParametersView class. More...

#include <codecparameters.h>

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

Public Member Functions

 CodecParametersView (AVCodecParameters *codecpar=nullptr)
 
bool isValid () const
 
void copyFrom (CodecParametersView src, OptionalErrorCode ec=throws())
 
void copyTo (CodecParametersView dst, OptionalErrorCode ec=throws()) const
 
void copyFrom (const class CodecContext2 &src, OptionalErrorCode ec=throws())
 
void copyTo (class CodecContext2 &dst, OptionalErrorCode ec=throws()) const
 
int getAudioFrameDuration (int frame_bytes) const
 
AVMediaType codecType () const
 
void codecType (AVMediaType codec_type)
 
AVMediaType mediaType () const
 
void mediaType (AVMediaType media_type)
 
AVCodecID codecId () const
 
void codecId (AVCodecID codec_id)
 
Codec encodingCodec () const
 
Codec decodingCodec () const
 
uint32_t codecTag () const
 
void codecTag (uint32_t codec_tag)
 
- Public Member Functions inherited from FFWrapperPtr< AVCodecParameters >
 FFWrapperPtr ()=default
 
 FFWrapperPtr (AVCodecParameters *raw)
 
const AVCodecParameters * raw () const
 
AVCodecParameters * raw ()
 
void reset (AVCodecParameters *raw=nullptr)
 
bool isNull () const
 
void _log (int level, const char *fmt) const
 
void _log (int level, const char *fmt, const Args &... args) const
 

Additional Inherited Members

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

Detailed Description

The CodecParametersView class.

Not-owned wrapper for AVCodecParameters. Do not keep for a long time.

Constructor & Destructor Documentation

◆ CodecParametersView()

av::CodecParametersView::CodecParametersView ( AVCodecParameters *  codecpar = nullptr)

Member Function Documentation

◆ codecId() [1/2]

AVCodecID av::CodecParametersView::codecId ( ) const

◆ codecId() [2/2]

void av::CodecParametersView::codecId ( AVCodecID  codec_id)

◆ codecTag() [1/2]

uint32_t av::CodecParametersView::codecTag ( ) const

◆ codecTag() [2/2]

void av::CodecParametersView::codecTag ( uint32_t  codec_tag)

◆ codecType() [1/2]

AVMediaType av::CodecParametersView::codecType ( ) const

◆ codecType() [2/2]

void av::CodecParametersView::codecType ( AVMediaType  codec_type)

◆ copyFrom() [1/2]

void av::CodecParametersView::copyFrom ( CodecParametersView  src,
OptionalErrorCode  ec = throws() 
)

◆ copyFrom() [2/2]

void av::CodecParametersView::copyFrom ( const class CodecContext2 src,
OptionalErrorCode  ec = throws() 
)

◆ copyTo() [1/2]

void av::CodecParametersView::copyTo ( class CodecContext2 dst,
OptionalErrorCode  ec = throws() 
) const

◆ copyTo() [2/2]

void av::CodecParametersView::copyTo ( CodecParametersView  dst,
OptionalErrorCode  ec = throws() 
) const

◆ decodingCodec()

Codec av::CodecParametersView::decodingCodec ( ) const

◆ encodingCodec()

Codec av::CodecParametersView::encodingCodec ( ) const

◆ getAudioFrameDuration()

int av::CodecParametersView::getAudioFrameDuration ( int  frame_bytes) const

◆ isValid()

bool av::CodecParametersView::isValid ( ) const

◆ mediaType() [1/2]

AVMediaType av::CodecParametersView::mediaType ( ) const

◆ mediaType() [2/2]

void av::CodecParametersView::mediaType ( AVMediaType  media_type)

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