File indexing completed on 2025-01-19 03:57:06

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2022-03-17
0007  * Description : Methods to list FFMPEG features.
0008  *
0009  * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_FFMPEG_CONFIG_HELPER_H
0016 #define DIGIKAM_FFMPEG_CONFIG_HELPER_H
0017 
0018 // Qt includes
0019 
0020 #include <QString>
0021 #include <QStringList>
0022 #include <QMap>
0023 
0024 // Local includes
0025 
0026 #include "digikam_export.h"
0027 
0028 namespace Digikam
0029 {
0030 
0031 typedef QMap<QString, QStringList> FFMpegProperties;
0032 
0033 class DIGIKAM_EXPORT FFMpegConfigHelper
0034 {
0035 public:
0036 
0037     /**
0038      * Return a map of video Codec Name with a list of properties:
0039      *    - Codecs description.
0040      *    - Read support.
0041      *    - Write support.
0042      */
0043     static FFMpegProperties getVideoCodecsProperties();
0044 
0045     /**
0046      * Return a map of audio Codec Name with a list of properties:
0047      *    - Codecs description.
0048      *    - Read support.
0049      *    - Write support.
0050      */
0051     static FFMpegProperties getAudioCodecsProperties();
0052 
0053     /**
0054      * Return a file extensions supported a list of properties:
0055      *    - Format description.
0056      */
0057     static FFMpegProperties getExtensionsProperties();
0058 
0059 private:
0060 
0061     FFMpegConfigHelper()  = delete;
0062     ~FFMpegConfigHelper() = delete;
0063 
0064     Q_DISABLE_COPY(FFMpegConfigHelper)
0065 };
0066 
0067 } // namespace Digikam
0068 
0069 #endif // DIGIKAM_FFMPEG_CONFIG_HELPER_H