File indexing completed on 2025-01-19 03:57:03

0001 /*********************************************************
0002  * Copyright (C) 2020, Val Doroshchuk <valbok@gmail.com> *
0003  *                                                       *
0004  * This file is part of QtAVPlayer.                      *
0005  * Free Qt Media Player based on FFmpeg.                 *
0006  *********************************************************/
0007 
0008 #ifndef QAVFAUDIORAME_H
0009 #define QAVFAUDIORAME_H
0010 
0011 #include <QtAVPlayer/qavframe.h>
0012 #include <QtAVPlayer/qavaudioformat.h>
0013 
0014 QT_BEGIN_NAMESPACE
0015 
0016 class QAVAudioCodec;
0017 class QAVAudioFramePrivate;
0018 class QAVAudioFrame : public QAVFrame
0019 {
0020 public:
0021     QAVAudioFrame();
0022     ~QAVAudioFrame();
0023     QAVAudioFrame(const QAVFrame &other);
0024     QAVAudioFrame(const QAVAudioFrame &other);
0025     QAVAudioFrame(const QAVAudioFormat &format, const QByteArray &data);
0026     QAVAudioFrame &operator=(const QAVFrame &other);
0027     QAVAudioFrame &operator=(const QAVAudioFrame &other);
0028     operator bool() const;
0029 
0030     QAVAudioFormat format() const;
0031     QByteArray data() const;
0032 
0033 private:
0034     Q_DECLARE_PRIVATE(QAVAudioFrame)
0035 };
0036 
0037 Q_DECLARE_METATYPE(QAVAudioFrame)
0038 
0039 QT_END_NAMESPACE
0040 
0041 #endif