/* SPDX-FileCopyrightText: 2023 Aleix Pol Gonzalez SPDX-FileCopyrightText: 2023 Marco Martin SPDX-FileCopyrightText: 2023 Arjen Hiemstra SPDX-FileCopyrightText: 2023 Noah Davis SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "encoder_p.h" /** * A software encoder that uses libvpx-vp9 to encode to VP9. */ class LibVpxVp9Encoder : public SoftwareEncoder { public: LibVpxVp9Encoder(PipeWireProduce *produce); bool initialize(const QSize &size) override; protected: int percentageToAbsoluteQuality(const std::optional &quality) override; void applyEncodingPreference(AVDictionary *options) override; };