| 1 | /**************************************************************************** |
| 2 | ** |
| 3 | ** Copyright (C) 2017 The Qt Company Ltd. |
| 4 | ** Contact: https://www.qt.io/licensing/ |
| 5 | ** |
| 6 | ** This file is part of the Qt Toolkit. |
| 7 | ** |
| 8 | ** $QT_BEGIN_LICENSE:LGPL$ |
| 9 | ** Commercial License Usage |
| 10 | ** Licensees holding valid commercial Qt licenses may use this file in |
| 11 | ** accordance with the commercial license agreement provided with the |
| 12 | ** Software or, alternatively, in accordance with the terms contained in |
| 13 | ** a written agreement between you and The Qt Company. For licensing terms |
| 14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
| 15 | ** information use the contact form at https://www.qt.io/contact-us. |
| 16 | ** |
| 17 | ** GNU Lesser General Public License Usage |
| 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
| 19 | ** General Public License version 3 as published by the Free Software |
| 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
| 21 | ** packaging of this file. Please review the following information to |
| 22 | ** ensure the GNU Lesser General Public License version 3 requirements |
| 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
| 24 | ** |
| 25 | ** GNU General Public License Usage |
| 26 | ** Alternatively, this file may be used under the terms of the GNU |
| 27 | ** General Public License version 2.0 or (at your option) the GNU General |
| 28 | ** Public license version 3 or any later version approved by the KDE Free |
| 29 | ** Qt Foundation. The licenses are as published by the Free Software |
| 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
| 31 | ** included in the packaging of this file. Please review the following |
| 32 | ** information to ensure the GNU General Public License requirements will |
| 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
| 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. |
| 35 | ** |
| 36 | ** $QT_END_LICENSE$ |
| 37 | ** |
| 38 | ****************************************************************************/ |
| 39 | |
| 40 | #include "qmultimedia.h" |
| 41 | |
| 42 | QT_BEGIN_NAMESPACE |
| 43 | |
| 44 | /*! |
| 45 | \namespace QMultimedia |
| 46 | \ingroup multimedia-namespaces |
| 47 | \ingroup multimedia |
| 48 | \inmodule QtMultimedia |
| 49 | |
| 50 | \ingroup multimedia |
| 51 | \ingroup multimedia_core |
| 52 | |
| 53 | \brief The QMultimedia namespace contains miscellaneous identifiers used throughout the Qt Multimedia library. |
| 54 | |
| 55 | */ |
| 56 | |
| 57 | static void qRegisterMultimediaMetaTypes() |
| 58 | { |
| 59 | qRegisterMetaType<QMultimedia::AvailabilityStatus>(); |
| 60 | qRegisterMetaType<QMultimedia::SupportEstimate>(); |
| 61 | qRegisterMetaType<QMultimedia::EncodingMode>(); |
| 62 | qRegisterMetaType<QMultimedia::EncodingQuality>(); |
| 63 | } |
| 64 | |
| 65 | Q_CONSTRUCTOR_FUNCTION(qRegisterMultimediaMetaTypes) |
| 66 | |
| 67 | |
| 68 | /*! |
| 69 | \enum QMultimedia::SupportEstimate |
| 70 | |
| 71 | Enumerates the levels of support a media service provider may have for a feature. |
| 72 | |
| 73 | \value NotSupported The feature is not supported. |
| 74 | \value MaybeSupported The feature may be supported. |
| 75 | \value ProbablySupported The feature is probably supported. |
| 76 | \value PreferredService The service is the preferred provider of a service. |
| 77 | */ |
| 78 | |
| 79 | /*! |
| 80 | \enum QMultimedia::EncodingQuality |
| 81 | |
| 82 | Enumerates quality encoding levels. |
| 83 | |
| 84 | \value VeryLowQuality |
| 85 | \value LowQuality |
| 86 | \value NormalQuality |
| 87 | \value HighQuality |
| 88 | \value VeryHighQuality |
| 89 | */ |
| 90 | |
| 91 | /*! |
| 92 | \enum QMultimedia::EncodingMode |
| 93 | |
| 94 | Enumerates encoding modes. |
| 95 | |
| 96 | \value ConstantQualityEncoding Encoding will aim to have a constant quality, adjusting bitrate to fit. |
| 97 | \value ConstantBitRateEncoding Encoding will use a constant bit rate, adjust quality to fit. |
| 98 | \value AverageBitRateEncoding Encoding will try to keep an average bitrate setting, but will use |
| 99 | more or less as needed. |
| 100 | \value TwoPassEncoding The media will first be processed to determine the characteristics, |
| 101 | and then processed a second time allocating more bits to the areas |
| 102 | that need it. |
| 103 | */ |
| 104 | |
| 105 | /*! |
| 106 | \enum QMultimedia::AvailabilityStatus |
| 107 | |
| 108 | Enumerates Service status errors. |
| 109 | |
| 110 | \value Available The service is operating correctly. |
| 111 | \value ServiceMissing There is no service available to provide the requested functionality. |
| 112 | \value ResourceError The service could not allocate resources required to function correctly. |
| 113 | \value Busy The service must wait for access to necessary resources. |
| 114 | */ |
| 115 | |
| 116 | QT_END_NAMESPACE |
| 117 | |