|
AvTranscoder
0.9.4
C++APIforLibav/FFmpeg
|
#include <AudioProperties.hpp>
Public Member Functions | |
| AudioProperties (const FormatContext &formatContext, const size_t index) | |
| std::string | getSampleFormatName () const |
| std::string | getSampleFormatLongName () const |
| std::string | getChannelLayout () const |
| std::string | getChannelName () const |
| std::string | getChannelDescription () const |
| size_t | getSampleRate () const |
| size_t | getNbChannels () const |
| size_t | getBitRate () const |
| 0 if unknown More... | |
| size_t | getNbSamples () const |
| size_t | getTicksPerFrame () const |
| AVCodecContext & | getAVCodecContext () |
| PropertyVector & | fillVector (PropertyVector &data) const |
| To avoid copy of the vector. More... | |
Public Member Functions inherited from avtranscoder::StreamProperties | |
| StreamProperties (const FormatContext &formatContext, const size_t index) | |
| virtual | ~StreamProperties ()=0 |
| size_t | getStreamIndex () const |
| size_t | getStreamId () const |
| Rational | getTimeBase () const |
| float | getDuration () const |
| in seconds More... | |
| AVMediaType | getStreamType () const |
| size_t | getCodecId () const |
| std::string | getCodecName () const |
| std::string | getCodecLongName () const |
| const PropertyVector & | getMetadatas () const |
| const AVFormatContext & | getAVFormatContext () const |
| std::string | asJson () const |
| Return all properties as a json format. More... | |
| PropertyMap | asMap () const |
| Return all properties as a map (name of property, value) More... | |
| PropertyVector | asVector () const |
| Same data with a specific order. More... | |
Private Member Functions | |
| template<typename T > | |
| void | addProperty (PropertyVector &data, const std::string &key, T(AudioProperties::*getter)(void) const) const |
Additional Inherited Members | |
Protected Attributes inherited from avtranscoder::StreamProperties | |
| const AVFormatContext * | _formatContext |
| Has link (no ownership) More... | |
| AVCodecContext * | _codecContext |
| Has link (no ownership) More... | |
| AVCodec * | _codec |
| Has link (no ownership) More... | |
| size_t | _streamIndex |
| PropertyVector | _metadatas |
Definition at line 11 of file AudioProperties.hpp.
| avtranscoder::AudioProperties::AudioProperties | ( | const FormatContext & | formatContext, |
| const size_t | index | ||
| ) |
Definition at line 18 of file AudioProperties.cpp.
|
inlineprivate |
Definition at line 38 of file AudioProperties.hpp.
References avtranscoder::detail::add(), and avtranscoder::detail::propertyValueIfError.
Referenced by fillVector().
|
virtual |
To avoid copy of the vector.
Reimplemented from avtranscoder::StreamProperties.
Definition at line 152 of file AudioProperties.cpp.
References addProperty(), avtranscoder::StreamProperties::fillVector(), getBitRate(), getChannelDescription(), getChannelLayout(), getChannelName(), getNbChannels(), getNbSamples(), getSampleFormatLongName(), getSampleFormatName(), getSampleRate(), and getTicksPerFrame().
|
inline |
Definition at line 30 of file AudioProperties.hpp.
| size_t avtranscoder::AudioProperties::getBitRate | ( | ) | const |
0 if unknown
Definition at line 121 of file AudioProperties.cpp.
References avtranscoder::StreamProperties::_codecContext.
Referenced by fillVector().
| std::string avtranscoder::AudioProperties::getChannelDescription | ( | ) | const |
Definition at line 92 of file AudioProperties.cpp.
References avtranscoder::StreamProperties::_codecContext.
Referenced by fillVector().
| std::string avtranscoder::AudioProperties::getChannelLayout | ( | ) | const |
Definition at line 70 of file AudioProperties.cpp.
References avtranscoder::StreamProperties::_codecContext.
Referenced by fillVector().
| std::string avtranscoder::AudioProperties::getChannelName | ( | ) | const |
Definition at line 80 of file AudioProperties.cpp.
References avtranscoder::StreamProperties::_codecContext.
Referenced by fillVector().
| size_t avtranscoder::AudioProperties::getNbChannels | ( | ) | const |
Definition at line 114 of file AudioProperties.cpp.
References avtranscoder::StreamProperties::_codecContext.
Referenced by fillVector(), getNbSamples(), and avtranscoder::Transcoder::getProfileFromFile().
| size_t avtranscoder::AudioProperties::getNbSamples | ( | ) | const |
Definition at line 135 of file AudioProperties.cpp.
References avtranscoder::StreamProperties::_formatContext, avtranscoder::StreamProperties::_streamIndex, avtranscoder::StreamProperties::getDuration(), getNbChannels(), and getSampleRate().
Referenced by fillVector().
| std::string avtranscoder::AudioProperties::getSampleFormatLongName | ( | ) | const |
Definition at line 35 of file AudioProperties.cpp.
References avtranscoder::StreamProperties::_codecContext.
Referenced by fillVector().
| std::string avtranscoder::AudioProperties::getSampleFormatName | ( | ) | const |
Definition at line 23 of file AudioProperties.cpp.
References avtranscoder::StreamProperties::_codecContext.
Referenced by fillVector(), and avtranscoder::Transcoder::getProfileFromFile().
| size_t avtranscoder::AudioProperties::getSampleRate | ( | ) | const |
Definition at line 107 of file AudioProperties.cpp.
References avtranscoder::StreamProperties::_codecContext.
Referenced by fillVector(), getNbSamples(), and avtranscoder::Transcoder::getProfileFromFile().
| size_t avtranscoder::AudioProperties::getTicksPerFrame | ( | ) | const |
Definition at line 145 of file AudioProperties.cpp.
References avtranscoder::StreamProperties::_codecContext.
Referenced by fillVector().