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

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 QAVFRAME_P_H
0009 #define QAVFRAME_P_H
0010 
0011 //
0012 //  W A R N I N G
0013 //  -------------
0014 //
0015 // This file is not part of the Qt API. It exists purely as an
0016 // implementation detail. This header file may change from version to
0017 // version without notice, or even be removed.
0018 //
0019 // We mean it.
0020 //
0021 
0022 #include "qavstreamframe_p.h"
0023 
0024 extern "C" {
0025 #include <libavutil/frame.h>
0026 }
0027 
0028 QT_BEGIN_NAMESPACE
0029 
0030 struct AVFrame;
0031 class QAVFramePrivate : public QAVStreamFramePrivate
0032 {
0033 public:
0034 
0035     double pts() const override;
0036     double duration() const override;
0037 
0038     AVFrame *frame = nullptr;
0039     // Overridden data from filters if any
0040     AVRational frameRate{};
0041     AVRational timeBase{};
0042     // Name of a filter the frame has retrieved from
0043     QString filterName;
0044 };
0045 
0046 QT_END_NAMESPACE
0047 
0048 #endif