File indexing completed on 2024-05-05 04:53:36

0001 /*
0002     SPDX-FileCopyrightText: 2023 Meltytech, LLC
0003     SPDX-License-Identifier: GPL-3.0-or-later
0004 */
0005 
0006 #pragma once
0007 
0008 #include "videowidget.h"
0009 
0010 class MetalVideoRenderer;
0011 
0012 class MetalVideoWidget : public VideoWidget
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit MetalVideoWidget(int id, QObject *parent);
0017     virtual ~MetalVideoWidget();
0018 
0019 public Q_SLOTS:
0020     virtual void initialize() override;
0021     virtual void renderVideo() override;
0022 
0023 protected:
0024     virtual void updateRulerHeight(int addedHeight) override;
0025 
0026 private:
0027     std::unique_ptr<MetalVideoRenderer> m_renderer;
0028 };