Line data Source code
1 : /*
2 : * SPDX-License-Identifier: GPL-3.0-only
3 : * MuseScore-Studio-CLA-applies
4 : *
5 : * MuseScore Studio
6 : * Music Composition & Notation
7 : *
8 : * Copyright (C) 2025 MuseScore Limited
9 : *
10 : * This program is free software: you can redistribute it and/or modify
11 : * it under the terms of the GNU General Public License version 3 as
12 : * published by the Free Software Foundation.
13 : *
14 : * This program is distributed in the hope that it will be useful,
15 : * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 : * GNU General Public License for more details.
18 : *
19 : * You should have received a copy of the GNU General Public License
20 : * along with this program. If not, see <https://www.gnu.org/licenses/>.
21 : */
22 :
23 : #pragma once
24 :
25 : #include "io/path.h"
26 : #include "async/notification.h"
27 :
28 : #include "modularity/imoduleinterface.h"
29 :
30 : #include "mediatypes.h"
31 :
32 : #include "ivideoencoder.h"
33 :
34 : namespace muse::media {
35 : class IVideoEncoderResolver : MODULE_GLOBAL_INTERFACE
36 : {
37 0 : INTERFACE_ID(IVideoEncoderResolver)
38 :
39 : public:
40 0 : virtual ~IVideoEncoderResolver() = default;
41 :
42 : virtual void loadFFmpeg(const muse::io::path_t& ffmpegLibsDir) = 0;
43 : virtual io::path_t loadedFFmpegDir() const = 0;
44 : virtual FFmpegVersion loadedFFmpegVersion() const = 0;
45 : virtual async::Notification loadedFFmpegChanged() const = 0;
46 :
47 : virtual IVideoEncoderPtr currentVideoEncoder() const = 0;
48 : virtual void setCurrentVideoEncoder(IVideoEncoderPtr encoder) = 0;
49 :
50 : virtual void setIsSettingMode(bool arg) = 0;
51 : };
52 : }
|