Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GNASH_AUDIODECODERGST_H
00021 #define GNASH_AUDIODECODERGST_H
00022
00023 #include "log.h"
00024 #include "AudioDecoder.h"
00025
00026 #include <gst/gst.h>
00027 #include "GnashImage.h"
00028
00029 #include "swfdec_codec_gst.h"
00030
00031
00032 namespace gnash {
00033 namespace media {
00034 class AudioInfo;
00035 class SoundInfo;
00036 }
00037 }
00038
00039 namespace gnash {
00040 namespace media {
00041 namespace gst {
00042
00044 class DSOEXPORT AudioDecoderGst : public AudioDecoder {
00045
00046 public:
00047 AudioDecoderGst(const AudioInfo& info);
00048 AudioDecoderGst(SoundInfo& info);
00049
00050 ~AudioDecoderGst();
00051
00052 boost::uint8_t* decode(const boost::uint8_t* input, boost::uint32_t inputSize,
00053 boost::uint32_t& outputSize, boost::uint32_t& decodedData);
00054 boost::uint8_t* decode(const EncodedAudioFrame& ef, boost::uint32_t& outputSize);
00055
00056 private:
00057
00058 boost::uint8_t* pullBuffers(boost::uint32_t& outputSize);
00059
00060 void setup(GstCaps* caps);
00061
00062 SwfdecGstDecoder _decoder;
00063
00064 };
00065
00066 }
00067 }
00068 }
00069
00070 #endif // __AUDIODECODERGST_H__
00071