| 
    AvTranscoder
    0.9.4
    
   C++APIforLibav/FFmpeg 
   | 
 
Description to create an audio frame. This corresponds to the number of samples, which corresponds to one video frame. More...
#include <AudioFrame.hpp>
Public Member Functions | |
| AudioFrameDesc (const size_t sampleRate=0, const size_t channels=0, const AVSampleFormat sampleFormat=AV_SAMPLE_FMT_NONE) | |
| AudioFrameDesc (const size_t sampleRate, const size_t channels, const std::string &sampleFormatName) | |
| void | setParameters (const ProfileLoader::Profile &profile) | 
| Set the attributes from the given profile.  More... | |
Data Fields | |
| size_t | _sampleRate | 
| size_t | _nbChannels | 
| AVSampleFormat | _sampleFormat | 
Description to create an audio frame. This corresponds to the number of samples, which corresponds to one video frame.
Definition at line 14 of file AudioFrame.hpp.
| avtranscoder::AudioFrameDesc::AudioFrameDesc | ( | const size_t | sampleRate = 0,  | 
        
| const size_t | channels = 0,  | 
        ||
| const AVSampleFormat | sampleFormat = AV_SAMPLE_FMT_NONE  | 
        ||
| ) | 
Definition at line 15 of file AudioFrame.cpp.
| avtranscoder::AudioFrameDesc::AudioFrameDesc | ( | const size_t | sampleRate, | 
| const size_t | channels, | ||
| const std::string & | sampleFormatName | ||
| ) | 
Definition at line 22 of file AudioFrame.cpp.
| void avtranscoder::AudioFrameDesc::setParameters | ( | const ProfileLoader::Profile & | profile | ) | 
Set the attributes from the given profile.
Definition at line 29 of file AudioFrame.cpp.
References _nbChannels, _sampleFormat, _sampleRate, avtranscoder::constants::avProfileChannel, avtranscoder::constants::avProfileSampleFormat, avtranscoder::constants::avProfileSampleRate, and avtranscoder::getAVSampleFormat().
Referenced by avtranscoder::StreamTranscoder::StreamTranscoder().
| size_t avtranscoder::AudioFrameDesc::_nbChannels | 
Definition at line 29 of file AudioFrame.hpp.
Referenced by avtranscoder::AudioFrame::allocateAVSample(), avtranscoder::AudioCodec::setAudioParameters(), setParameters(), and avtranscoder::StreamTranscoder::StreamTranscoder().
| AVSampleFormat avtranscoder::AudioFrameDesc::_sampleFormat | 
Definition at line 30 of file AudioFrame.hpp.
Referenced by avtranscoder::AudioFrame::allocateAVSample(), avtranscoder::AudioCodec::setAudioParameters(), and setParameters().
| size_t avtranscoder::AudioFrameDesc::_sampleRate | 
Definition at line 28 of file AudioFrame.hpp.
Referenced by avtranscoder::AudioFrame::allocateAVSample(), avtranscoder::AudioCodec::setAudioParameters(), and setParameters().