summaryrefslogtreecommitdiffstats
path: root/src/plugins/multimedia/ffmpeg/recordingengine/qffmpegencoderthread_p.h
blob: 1fe35303b0f37fac9113aa8c9291a8bd40ed1867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QFFMPEGENCODERTHREAD_P_H
#define QFFMPEGENCODERTHREAD_P_H

#include "qffmpegthread_p.h"

QT_BEGIN_NAMESPACE

namespace QFFmpeg {

class RecordingEngine;

class EncoderThread : public ConsumerThread
{
public:
    EncoderThread(RecordingEngine &recordingEngine);
    virtual void setPaused(bool b);

protected:
    QAtomicInteger<bool> m_paused = false;
    RecordingEngine &m_recordingEngine;
};

} // namespace QFFmpeg

QT_END_NAMESPACE

#endif