File indexing completed on 2024-05-05 05:30:17
0001 /* 0002 SPDX-FileCopyrightText: 2023 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 SPDX-FileCopyrightText: 2023 Marco Martin <mart@kde.org> 0004 SPDX-FileCopyrightText: 2023 Arjen Hiemstra <ahiemstra@heimr.nl> 0005 SPDX-FileCopyrightText: 2023 Noah Davis <noahadvs@gmail.com> 0006 0007 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0008 */ 0009 0010 #include "encoder_p.h" 0011 0012 /** 0013 * A software encoder that uses libvpx-vp9 to encode to VP9. 0014 */ 0015 class LibVpxVp9Encoder : public SoftwareEncoder 0016 { 0017 public: 0018 LibVpxVp9Encoder(PipeWireProduce *produce); 0019 0020 bool initialize(const QSize &size) override; 0021 0022 protected: 0023 int percentageToAbsoluteQuality(const std::optional<quint8> &quality) override; 0024 };