AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AudioDecoder.hpp
Go to the documentation of this file.
1 #ifndef _AV_TRANSCODER_ESSENCE_STREAM_AV_INPUT_AUDIO_HPP_
2 #define _AV_TRANSCODER_ESSENCE_STREAM_AV_INPUT_AUDIO_HPP_
3 
4 #include "IDecoder.hpp"
5 
6 namespace avtranscoder
7 {
8 
9 class InputStream;
10 
11 class AvExport AudioDecoder : public IDecoder
12 {
13 public:
14  AudioDecoder(InputStream& inputStream);
15  ~AudioDecoder();
16 
17  void setupDecoder(const ProfileLoader::Profile& profile = ProfileLoader::Profile());
18 
19  bool decodeNextFrame(Frame& frameBuffer);
20  bool decodeNextFrame(Frame& frameBuffer, const size_t channelIndex);
21 
22  void flushDecoder();
23 
24 private:
25  InputStream* _inputStream; ///< Stream from which we read next frames (no ownership, has link)
26 
27  bool _isSetup;
28 };
29 }
30 
31 #endif
std::map< std::string, std::string > Profile
InputStream * _inputStream
Stream from which we read next frames (no ownership, has link)
This class describes decoded (raw) audio or video data.
Definition: Frame.hpp:16
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