File indexing completed on 2025-01-19 03:57:06
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 QAVVIDEOBUFFER_GPU_P_H 0009 #define QAVVIDEOBUFFER_GPU_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 "qavvideobuffer_p.h" 0023 #include "qavvideobuffer_cpu_p.h" 0024 0025 QT_BEGIN_NAMESPACE 0026 0027 class QAVVideoBuffer_GPU : public QAVVideoBuffer 0028 { 0029 public: 0030 QAVVideoBuffer_GPU() = default; 0031 explicit QAVVideoBuffer_GPU(const QAVVideoFrame &frame) : QAVVideoBuffer(frame) { } 0032 ~QAVVideoBuffer_GPU() = default; 0033 0034 QAVVideoFrame::MapData map() override; 0035 0036 protected: 0037 QAVVideoBuffer_CPU m_cpu; 0038 }; 0039 0040 QT_END_NAMESPACE 0041 0042 #endif