/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt for Python.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/

//workaround to access protected functions
#define protected public

// default includes
#include <shiboken.h>
#ifndef QT_NO_VERSION_TAGGING
#  define QT_NO_VERSION_TAGGING
#endif
#include <QDebug>
#include <pysidesignal.h>
#include <pysideproperty.h>
#include <pyside.h>
#include <pysideqenum.h>
#include <feature_select.h>
QT_WARNING_DISABLE_DEPRECATED

#include <typeinfo>
#include <iterator>

// module include
#include "pyside6_qtmultimedia_python.h"

// main header
#include "qmediaformat_wrapper.h"

// inner classes

// Extra includes
#include <QList>
#include <QtMultimedia/qmediaformat.h>
#include <qmimetype.h>
#include <qobject.h>


#include <cctype>
#include <cstring>



template <class T>
static const char *typeNameOf(const T &t)
{
    const char *typeName =  typeid(t).name();
    auto size = std::strlen(typeName);
#if defined(Q_CC_MSVC) // MSVC: "class QPaintDevice * __ptr64"
    if (auto lastStar = strchr(typeName, '*')) {
        // MSVC: "class QPaintDevice * __ptr64"
        while (*--lastStar == ' ') {
        }
        size = lastStar - typeName + 1;
    }
#else // g++, Clang: "QPaintDevice *" -> "P12QPaintDevice"
    if (size > 2 && typeName[0] == 'P' && std::isdigit(typeName[1])) {
        ++typeName;
        --size;
    }
#endif
    char *result = new char[size + 1];
    result[size] = '\0';
    memcpy(result, typeName, size);
    return result;
}


// Target ---------------------------------------------------------

extern "C" {
static int
Sbk_QMediaFormat_Init(PyObject *self, PyObject *args, PyObject *kwds)
{
    SbkObject *sbkSelf = reinterpret_cast<SbkObject *>(self);
    PySide::Feature::Select(self);
    if (Shiboken::Object::isUserType(self) && !Shiboken::ObjectType::canCallConstructor(self->ob_type, Shiboken::SbkType< ::QMediaFormat >()))
        return -1;

    ::QMediaFormat *cptr{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.__init__";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[1];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0};

    // invalid argument lengths
    if (numArgs > 1) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QMediaFormat_Init_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|O:QMediaFormat", &(pyArgs[0])))
        return -1;


    // Overloaded function decisor
    // 0: QMediaFormat::QMediaFormat(QMediaFormat::FileFormat)
    // 1: QMediaFormat::QMediaFormat(QMediaFormat)
    if (numArgs == 0) {
        overloadId = 0; // QMediaFormat(QMediaFormat::FileFormat)
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX]))->converter, (pyArgs[0])))) {
        overloadId = 0; // QMediaFormat(QMediaFormat::FileFormat)
    } else if (numArgs == 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], (pyArgs[0])))) {
        overloadId = 1; // QMediaFormat(QMediaFormat)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormat_Init_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // QMediaFormat(QMediaFormat::FileFormat format)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                PyObject *value{};
                Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
                static PyObject *const key_format = Shiboken::String::createStaticString("format");
                if (PyDict_Contains(kwds, key_format)) {
                    value = PyDict_GetItem(kwds, key_format);
                    if (value && pyArgs[0]) {
                        errInfo.reset(key_format);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QMediaFormat_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[0] = value;
                        if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX]))->converter, (pyArgs[0]))))
                            goto Sbk_QMediaFormat_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_format);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    goto Sbk_QMediaFormat_Init_TypeError;
                }
            }
            ::QMediaFormat::FileFormat cppArg0(QMediaFormat::FileFormat::UnspecifiedFormat);
            if (pythonToCpp[0])
                pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!PyErr_Occurred()) {
                // QMediaFormat(QMediaFormat::FileFormat)
                cptr = new ::QMediaFormat(cppArg0);
            }
            break;
        }
        case 1: // QMediaFormat(const QMediaFormat & other)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                errInfo.reset(kwds);
                Py_INCREF(errInfo.object());
                goto Sbk_QMediaFormat_Init_TypeError;
            }
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QMediaFormat cppArg0_local;
            ::QMediaFormat *cppArg0 = &cppArg0_local;
            if (pythonToCpp[0].isValue())
                pythonToCpp[0](pyArgs[0], &cppArg0_local);
            else
                pythonToCpp[0](pyArgs[0], &cppArg0);


            if (!PyErr_Occurred()) {
                // QMediaFormat(QMediaFormat)
                cptr = new ::QMediaFormat(*cppArg0);
            }
            break;
        }
    }

    if (PyErr_Occurred() || !Shiboken::Object::setCppPointer(sbkSelf, Shiboken::SbkType< ::QMediaFormat >(), cptr)) {
        delete cptr;
        return -1;
    }
    if (!cptr) goto Sbk_QMediaFormat_Init_TypeError;

    Shiboken::Object::setValidCpp(sbkSelf, true);
    if (Shiboken::BindingManager::instance().hasWrapper(cptr)) {
        Shiboken::BindingManager::instance().releaseWrapper(Shiboken::BindingManager::instance().retrieveWrapper(cptr));
    }
    Shiboken::BindingManager::instance().registerWrapper(sbkSelf, cptr);


    return 1;

    Sbk_QMediaFormat_Init_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return -1;
}

static PyObject *Sbk_QMediaFormatFunc_audioCodec(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.audioCodec";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // audioCodec()const
            QMediaFormat::AudioCodec cppResult = const_cast<const ::QMediaFormat *>(cppSelf)->audioCodec();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX]))->converter, &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QMediaFormatFunc_audioCodecDescription(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.audioCodecDescription";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QMediaFormat::audioCodecDescription(QMediaFormat::AudioCodec)->QString
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // audioCodecDescription(QMediaFormat::AudioCodec)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_audioCodecDescription_TypeError;

    // Call function/method
    {
        ::QMediaFormat::AudioCodec cppArg0{QMediaFormat::AudioCodec::MP3};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // audioCodecDescription(QMediaFormat::AudioCodec)
            QString cppResult = ::QMediaFormat::audioCodecDescription(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QMediaFormatFunc_audioCodecDescription_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_audioCodecName(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.audioCodecName";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QMediaFormat::audioCodecName(QMediaFormat::AudioCodec)->QString
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // audioCodecName(QMediaFormat::AudioCodec)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_audioCodecName_TypeError;

    // Call function/method
    {
        ::QMediaFormat::AudioCodec cppArg0{QMediaFormat::AudioCodec::MP3};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // audioCodecName(QMediaFormat::AudioCodec)
            QString cppResult = ::QMediaFormat::audioCodecName(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QMediaFormatFunc_audioCodecName_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_fileFormat(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.fileFormat";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // fileFormat()const
            QMediaFormat::FileFormat cppResult = const_cast<const ::QMediaFormat *>(cppSelf)->fileFormat();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX]))->converter, &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QMediaFormatFunc_fileFormatDescription(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.fileFormatDescription";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QMediaFormat::fileFormatDescription(QMediaFormat::FileFormat)->QString
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // fileFormatDescription(QMediaFormat::FileFormat)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_fileFormatDescription_TypeError;

    // Call function/method
    {
        ::QMediaFormat::FileFormat cppArg0{QMediaFormat::WMV};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // fileFormatDescription(QMediaFormat::FileFormat)
            QString cppResult = ::QMediaFormat::fileFormatDescription(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QMediaFormatFunc_fileFormatDescription_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_fileFormatName(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.fileFormatName";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QMediaFormat::fileFormatName(QMediaFormat::FileFormat)->QString
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // fileFormatName(QMediaFormat::FileFormat)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_fileFormatName_TypeError;

    // Call function/method
    {
        ::QMediaFormat::FileFormat cppArg0{QMediaFormat::WMV};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // fileFormatName(QMediaFormat::FileFormat)
            QString cppResult = ::QMediaFormat::fileFormatName(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QMediaFormatFunc_fileFormatName_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_isSupported(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.isSupported";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QMediaFormat::isSupported(QMediaFormat::ConversionMode)const->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // isSupported(QMediaFormat::ConversionMode)const
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_isSupported_TypeError;

    // Call function/method
    {
        ::QMediaFormat::ConversionMode cppArg0{QMediaFormat::Encode};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // isSupported(QMediaFormat::ConversionMode)const
            bool cppResult = const_cast<const ::QMediaFormat *>(cppSelf)->isSupported(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QMediaFormatFunc_isSupported_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_mimeType(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.mimeType";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // mimeType()const
            QMimeType cppResult = const_cast<const ::QMediaFormat *>(cppSelf)->mimeType();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QMIMETYPE_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QMediaFormatFunc_resolveForEncoding(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.resolveForEncoding";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QMediaFormat::resolveForEncoding(QMediaFormat::ResolveFlags)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_RESOLVEFLAGS_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // resolveForEncoding(QMediaFormat::ResolveFlags)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_resolveForEncoding_TypeError;

    // Call function/method
    {
        ::QMediaFormat::ResolveFlags cppArg0{QMediaFormat::NoFlags};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // resolveForEncoding(QMediaFormat::ResolveFlags)
            cppSelf->resolveForEncoding(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QMediaFormatFunc_resolveForEncoding_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_setAudioCodec(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.setAudioCodec";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QMediaFormat::setAudioCodec(QMediaFormat::AudioCodec)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setAudioCodec(QMediaFormat::AudioCodec)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_setAudioCodec_TypeError;

    // Call function/method
    {
        ::QMediaFormat::AudioCodec cppArg0{QMediaFormat::AudioCodec::MP3};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setAudioCodec(QMediaFormat::AudioCodec)
            cppSelf->setAudioCodec(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QMediaFormatFunc_setAudioCodec_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_setFileFormat(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.setFileFormat";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QMediaFormat::setFileFormat(QMediaFormat::FileFormat)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setFileFormat(QMediaFormat::FileFormat)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_setFileFormat_TypeError;

    // Call function/method
    {
        ::QMediaFormat::FileFormat cppArg0{QMediaFormat::WMV};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setFileFormat(QMediaFormat::FileFormat)
            cppSelf->setFileFormat(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QMediaFormatFunc_setFileFormat_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_setVideoCodec(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.setVideoCodec";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QMediaFormat::setVideoCodec(QMediaFormat::VideoCodec)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setVideoCodec(QMediaFormat::VideoCodec)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_setVideoCodec_TypeError;

    // Call function/method
    {
        ::QMediaFormat::VideoCodec cppArg0{QMediaFormat::VideoCodec::MPEG1};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setVideoCodec(QMediaFormat::VideoCodec)
            cppSelf->setVideoCodec(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QMediaFormatFunc_setVideoCodec_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_supportedAudioCodecs(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.supportedAudioCodecs";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QMediaFormat::supportedAudioCodecs(QMediaFormat::ConversionMode)->QList< QMediaFormat::AudioCodec >
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // supportedAudioCodecs(QMediaFormat::ConversionMode)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_supportedAudioCodecs_TypeError;

    // Call function/method
    {
        ::QMediaFormat::ConversionMode cppArg0{QMediaFormat::Encode};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // supportedAudioCodecs(QMediaFormat::ConversionMode)
            QList<QMediaFormat::AudioCodec > cppResult = cppSelf->supportedAudioCodecs(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtMultimediaTypeConverters[SBK_QTMULTIMEDIA_QLIST_QMEDIAFORMAT_AUDIOCODEC_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QMediaFormatFunc_supportedAudioCodecs_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_supportedFileFormats(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.supportedFileFormats";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QMediaFormat::supportedFileFormats(QMediaFormat::ConversionMode)->QList< QMediaFormat::FileFormat >
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // supportedFileFormats(QMediaFormat::ConversionMode)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_supportedFileFormats_TypeError;

    // Call function/method
    {
        ::QMediaFormat::ConversionMode cppArg0{QMediaFormat::Encode};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // supportedFileFormats(QMediaFormat::ConversionMode)
            QList<QMediaFormat::FileFormat > cppResult = cppSelf->supportedFileFormats(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtMultimediaTypeConverters[SBK_QTMULTIMEDIA_QLIST_QMEDIAFORMAT_FILEFORMAT_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QMediaFormatFunc_supportedFileFormats_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_supportedVideoCodecs(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.supportedVideoCodecs";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QMediaFormat::supportedVideoCodecs(QMediaFormat::ConversionMode)->QList< QMediaFormat::VideoCodec >
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // supportedVideoCodecs(QMediaFormat::ConversionMode)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_supportedVideoCodecs_TypeError;

    // Call function/method
    {
        ::QMediaFormat::ConversionMode cppArg0{QMediaFormat::Encode};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // supportedVideoCodecs(QMediaFormat::ConversionMode)
            QList<QMediaFormat::VideoCodec > cppResult = cppSelf->supportedVideoCodecs(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtMultimediaTypeConverters[SBK_QTMULTIMEDIA_QLIST_QMEDIAFORMAT_VIDEOCODEC_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QMediaFormatFunc_supportedVideoCodecs_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_swap(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.swap";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QMediaFormat::swap(QMediaFormat&)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], (pyArg)))) {
        overloadId = 0; // swap(QMediaFormat&)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_swap_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QMediaFormat cppArg0_local;
        ::QMediaFormat *cppArg0 = &cppArg0_local;
        if (pythonToCpp.isValue())
            pythonToCpp(pyArg, &cppArg0_local);
        else
            pythonToCpp(pyArg, &cppArg0);


        if (!PyErr_Occurred()) {
            // swap(QMediaFormat&)
            cppSelf->swap(*cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QMediaFormatFunc_swap_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_videoCodec(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.videoCodec";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // videoCodec()const
            QMediaFormat::VideoCodec cppResult = const_cast<const ::QMediaFormat *>(cppSelf)->videoCodec();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX]))->converter, &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QMediaFormatFunc_videoCodecDescription(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.videoCodecDescription";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QMediaFormat::videoCodecDescription(QMediaFormat::VideoCodec)->QString
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // videoCodecDescription(QMediaFormat::VideoCodec)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_videoCodecDescription_TypeError;

    // Call function/method
    {
        ::QMediaFormat::VideoCodec cppArg0{QMediaFormat::VideoCodec::MPEG1};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // videoCodecDescription(QMediaFormat::VideoCodec)
            QString cppResult = ::QMediaFormat::videoCodecDescription(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QMediaFormatFunc_videoCodecDescription_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormatFunc_videoCodecName(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaFormat.videoCodecName";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QMediaFormat::videoCodecName(QMediaFormat::VideoCodec)->QString
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // videoCodecName(QMediaFormat::VideoCodec)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaFormatFunc_videoCodecName_TypeError;

    // Call function/method
    {
        ::QMediaFormat::VideoCodec cppArg0{QMediaFormat::VideoCodec::MPEG1};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // videoCodecName(QMediaFormat::VideoCodec)
            QString cppResult = ::QMediaFormat::videoCodecName(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QMediaFormatFunc_videoCodecName_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QMediaFormat___copy__(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto &cppSelf = *reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    PyObject *pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], &cppSelf);
    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}


static const char *Sbk_QMediaFormat_PropertyStrings[] = {
    "audioCodec::",
    "fileFormat::",
    "videoCodec::",
    nullptr // Sentinel
};

static PyMethodDef Sbk_QMediaFormat_methods[] = {
    {"audioCodec", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_audioCodec), METH_NOARGS},
    {"audioCodecDescription", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_audioCodecDescription), METH_O|METH_STATIC},
    {"audioCodecName", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_audioCodecName), METH_O|METH_STATIC},
    {"fileFormat", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_fileFormat), METH_NOARGS},
    {"fileFormatDescription", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_fileFormatDescription), METH_O|METH_STATIC},
    {"fileFormatName", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_fileFormatName), METH_O|METH_STATIC},
    {"isSupported", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_isSupported), METH_O},
    {"mimeType", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_mimeType), METH_NOARGS},
    {"resolveForEncoding", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_resolveForEncoding), METH_O},
    {"setAudioCodec", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_setAudioCodec), METH_O},
    {"setFileFormat", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_setFileFormat), METH_O},
    {"setVideoCodec", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_setVideoCodec), METH_O},
    {"supportedAudioCodecs", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_supportedAudioCodecs), METH_O},
    {"supportedFileFormats", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_supportedFileFormats), METH_O},
    {"supportedVideoCodecs", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_supportedVideoCodecs), METH_O},
    {"swap", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_swap), METH_O},
    {"videoCodec", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_videoCodec), METH_NOARGS},
    {"videoCodecDescription", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_videoCodecDescription), METH_O|METH_STATIC},
    {"videoCodecName", reinterpret_cast<PyCFunction>(Sbk_QMediaFormatFunc_videoCodecName), METH_O|METH_STATIC},

    {"__copy__", reinterpret_cast<PyCFunction>(Sbk_QMediaFormat___copy__), METH_NOARGS},
    {nullptr, nullptr} // Sentinel
};

// Rich comparison
static PyObject * Sbk_QMediaFormat_richcompare(PyObject *self, PyObject *pyArg, int op)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto &cppSelf = *reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    switch (op) {
        case Py_NE:
            if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], (pyArg)))) {
                // operator!=(const QMediaFormat & other) const
                if (!Shiboken::Object::isValid(pyArg))
                    return {};
                ::QMediaFormat cppArg0_local;
                ::QMediaFormat *cppArg0 = &cppArg0_local;
                if (pythonToCpp.isValue())
                    pythonToCpp(pyArg, &cppArg0_local);
                else
                    pythonToCpp(pyArg, &cppArg0);

                bool cppResult = cppSelf !=(*cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            } else {
                pyResult = Py_True;
                Py_INCREF(pyResult);
            }

            break;
        case Py_EQ:
            if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], (pyArg)))) {
                // operator==(const QMediaFormat & other) const
                if (!Shiboken::Object::isValid(pyArg))
                    return {};
                ::QMediaFormat cppArg0_local;
                ::QMediaFormat *cppArg0 = &cppArg0_local;
                if (pythonToCpp.isValue())
                    pythonToCpp(pyArg, &cppArg0_local);
                else
                    pythonToCpp(pyArg, &cppArg0);

                bool cppResult = cppSelf ==(*cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            } else {
                pyResult = Py_False;
                Py_INCREF(pyResult);
            }

            break;
        default:
            // PYSIDE-74: By default, we redirect to object's tp_richcompare (which is `==`, `!=`).
            return FallbackRichCompare(self, pyArg, op);
            goto Sbk_QMediaFormat_RichComparison_TypeError;
    }

    if (pyResult && !PyErr_Occurred())
        return pyResult;
    Sbk_QMediaFormat_RichComparison_TypeError:
    PyErr_SetString(PyExc_NotImplementedError, "operator not implemented.");
    return {};

}

static PyObject *Sbk_QMediaFormat_get_fmt(PyObject *self, void *)
{
    if (!Shiboken::Object::isValid(self))
        return nullptr;
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    ::QMediaFormat::FileFormat cppOut_local = cppSelf->fmt;
    PyObject *pyOut = {};
    pyOut = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX]))->converter, &cppOut_local);
    return pyOut;
}
static int Sbk_QMediaFormat_set_fmt(PyObject *self, PyObject *pyIn, void *)
{
    if (!Shiboken::Object::isValid(self))
        return 0;
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    if (pyIn == nullptr) {
        PyErr_SetString(PyExc_TypeError, "'fmt' may not be deleted");
        return -1;
    }
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    if (!(pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX]))->converter, (pyIn)))) {
        PyErr_SetString(PyExc_TypeError, "wrong type attributed to 'fmt', 'FileFormat' or convertible type expected");
        return -1;
    }

    auto cppOut_local = cppSelf->fmt;
    pythonToCpp(pyIn, &cppOut_local);
    cppSelf->fmt = cppOut_local;

    return 0;
}

static PyObject *Sbk_QMediaFormat_get_audio(PyObject *self, void *)
{
    if (!Shiboken::Object::isValid(self))
        return nullptr;
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    ::QMediaFormat::AudioCodec cppOut_local = cppSelf->audio;
    PyObject *pyOut = {};
    pyOut = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX]))->converter, &cppOut_local);
    return pyOut;
}
static int Sbk_QMediaFormat_set_audio(PyObject *self, PyObject *pyIn, void *)
{
    if (!Shiboken::Object::isValid(self))
        return 0;
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    if (pyIn == nullptr) {
        PyErr_SetString(PyExc_TypeError, "'audio' may not be deleted");
        return -1;
    }
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    if (!(pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX]))->converter, (pyIn)))) {
        PyErr_SetString(PyExc_TypeError, "wrong type attributed to 'audio', 'AudioCodec' or convertible type expected");
        return -1;
    }

    auto cppOut_local = cppSelf->audio;
    pythonToCpp(pyIn, &cppOut_local);
    cppSelf->audio = cppOut_local;

    return 0;
}

static PyObject *Sbk_QMediaFormat_get_video(PyObject *self, void *)
{
    if (!Shiboken::Object::isValid(self))
        return nullptr;
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    ::QMediaFormat::VideoCodec cppOut_local = cppSelf->video;
    PyObject *pyOut = {};
    pyOut = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX]))->converter, &cppOut_local);
    return pyOut;
}
static int Sbk_QMediaFormat_set_video(PyObject *self, PyObject *pyIn, void *)
{
    if (!Shiboken::Object::isValid(self))
        return 0;
    auto cppSelf = reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    if (pyIn == nullptr) {
        PyErr_SetString(PyExc_TypeError, "'video' may not be deleted");
        return -1;
    }
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    if (!(pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX]))->converter, (pyIn)))) {
        PyErr_SetString(PyExc_TypeError, "wrong type attributed to 'video', 'VideoCodec' or convertible type expected");
        return -1;
    }

    auto cppOut_local = cppSelf->video;
    pythonToCpp(pyIn, &cppOut_local);
    cppSelf->video = cppOut_local;

    return 0;
}

// Getters and Setters for QMediaFormat
static PyGetSetDef Sbk_QMediaFormat_getsetlist[] = {
    {const_cast<char *>("fmt"), Sbk_QMediaFormat_get_fmt, Sbk_QMediaFormat_set_fmt},
    {const_cast<char *>("audio"), Sbk_QMediaFormat_get_audio, Sbk_QMediaFormat_set_audio},
    {const_cast<char *>("video"), Sbk_QMediaFormat_get_video, Sbk_QMediaFormat_set_video},
    {nullptr} // Sentinel
};

} // extern "C"

static int Sbk_QMediaFormat_traverse(PyObject *self, visitproc visit, void *arg)
{
    return SbkObject_TypeF()->tp_traverse(self, visit, arg);
}
static int Sbk_QMediaFormat_clear(PyObject *self)
{
    return reinterpret_cast<PyTypeObject *>(SbkObject_TypeF())->tp_clear(self);
}
// Class Definition -----------------------------------------------
extern "C" {
static PyTypeObject *_Sbk_QMediaFormat_Type = nullptr;
static PyTypeObject *Sbk_QMediaFormat_TypeF(void)
{
    return _Sbk_QMediaFormat_Type;
}

static PyType_Slot Sbk_QMediaFormat_slots[] = {
    {Py_tp_base,        nullptr}, // inserted by introduceWrapperType
    {Py_tp_dealloc,     reinterpret_cast<void *>(&SbkDeallocWrapper)},
    {Py_tp_repr,        nullptr},
    {Py_tp_hash,        nullptr},
    {Py_tp_call,        nullptr},
    {Py_tp_str,         nullptr},
    {Py_tp_getattro,    nullptr},
    {Py_tp_setattro,    nullptr},
    {Py_tp_traverse,    reinterpret_cast<void *>(Sbk_QMediaFormat_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QMediaFormat_clear)},
    {Py_tp_richcompare, reinterpret_cast<void *>(Sbk_QMediaFormat_richcompare)},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QMediaFormat_methods)},
    {Py_tp_getset,      reinterpret_cast<void *>(Sbk_QMediaFormat_getsetlist)},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QMediaFormat_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QMediaFormat_spec = {
    "2:PySide6.QtMultimedia.QMediaFormat",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QMediaFormat_slots
};

} //extern "C"


// Type conversion functions.

// Python to C++ enum conversion.
static void QMediaFormat_FileFormat_PythonToCpp_QMediaFormat_FileFormat(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QMediaFormat::FileFormat *>(cppOut) =
        static_cast<::QMediaFormat::FileFormat>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QMediaFormat_FileFormat_PythonToCpp_QMediaFormat_FileFormat_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX]))
        return QMediaFormat_FileFormat_PythonToCpp_QMediaFormat_FileFormat;
    return {};
}
static PyObject *QMediaFormat_FileFormat_CppToPython_QMediaFormat_FileFormat(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QMediaFormat::FileFormat *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX], castCppIn);

}

static void QMediaFormat_AudioCodec_PythonToCpp_QMediaFormat_AudioCodec(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QMediaFormat::AudioCodec *>(cppOut) =
        static_cast<::QMediaFormat::AudioCodec>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QMediaFormat_AudioCodec_PythonToCpp_QMediaFormat_AudioCodec_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX]))
        return QMediaFormat_AudioCodec_PythonToCpp_QMediaFormat_AudioCodec;
    return {};
}
static PyObject *QMediaFormat_AudioCodec_CppToPython_QMediaFormat_AudioCodec(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QMediaFormat::AudioCodec *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], castCppIn);

}

static void QMediaFormat_VideoCodec_PythonToCpp_QMediaFormat_VideoCodec(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QMediaFormat::VideoCodec *>(cppOut) =
        static_cast<::QMediaFormat::VideoCodec>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QMediaFormat_VideoCodec_PythonToCpp_QMediaFormat_VideoCodec_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX]))
        return QMediaFormat_VideoCodec_PythonToCpp_QMediaFormat_VideoCodec;
    return {};
}
static PyObject *QMediaFormat_VideoCodec_CppToPython_QMediaFormat_VideoCodec(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QMediaFormat::VideoCodec *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], castCppIn);

}

static void QMediaFormat_ConversionMode_PythonToCpp_QMediaFormat_ConversionMode(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QMediaFormat::ConversionMode *>(cppOut) =
        static_cast<::QMediaFormat::ConversionMode>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QMediaFormat_ConversionMode_PythonToCpp_QMediaFormat_ConversionMode_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX]))
        return QMediaFormat_ConversionMode_PythonToCpp_QMediaFormat_ConversionMode;
    return {};
}
static PyObject *QMediaFormat_ConversionMode_CppToPython_QMediaFormat_ConversionMode(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QMediaFormat::ConversionMode *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX], castCppIn);

}

static void QMediaFormat_ResolveFlags_PythonToCpp_QMediaFormat_ResolveFlags(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QMediaFormat::ResolveFlags *>(cppOut) =
        static_cast<::QMediaFormat::ResolveFlags>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QMediaFormat_ResolveFlags_PythonToCpp_QMediaFormat_ResolveFlags_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_RESOLVEFLAGS_IDX]))
        return QMediaFormat_ResolveFlags_PythonToCpp_QMediaFormat_ResolveFlags;
    return {};
}
static PyObject *QMediaFormat_ResolveFlags_CppToPython_QMediaFormat_ResolveFlags(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QMediaFormat::ResolveFlags *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_RESOLVEFLAGS_IDX], castCppIn);

}

// Python to C++ pointer conversion - returns the C++ object of the Python wrapper (keeps object identity).
static void QMediaFormat_PythonToCpp_QMediaFormat_PTR(PyObject *pyIn, void *cppOut)
{
    Shiboken::Conversions::pythonToCppPointer(Sbk_QMediaFormat_TypeF(), pyIn, cppOut);
}
static PythonToCppFunc is_QMediaFormat_PythonToCpp_QMediaFormat_PTR_Convertible(PyObject *pyIn)
{
    if (pyIn == Py_None)
        return Shiboken::Conversions::nonePythonToCppNullPtr;
    if (PyObject_TypeCheck(pyIn, reinterpret_cast<PyTypeObject *>(Sbk_QMediaFormat_TypeF())))
        return QMediaFormat_PythonToCpp_QMediaFormat_PTR;
    return {};
}

// C++ to Python pointer conversion - tries to find the Python wrapper for the C++ object (keeps object identity).
static PyObject *QMediaFormat_PTR_CppToPython_QMediaFormat(const void *cppIn)
{
    auto pyOut = reinterpret_cast<PyObject *>(Shiboken::BindingManager::instance().retrieveWrapper(cppIn));
    if (pyOut) {
        Py_INCREF(pyOut);
        return pyOut;
    }
    bool changedTypeName = false;
    auto tCppIn = reinterpret_cast<const ::QMediaFormat *>(cppIn);
    const char *typeName = typeid(*tCppIn).name();
    auto sbkType = Shiboken::ObjectType::typeForTypeName(typeName);
    if (sbkType && Shiboken::ObjectType::hasSpecialCastFunction(sbkType)) {
        typeName = typeNameOf(tCppIn);
        changedTypeName = true;
    }
    PyObject *result = Shiboken::Object::newObject(Sbk_QMediaFormat_TypeF(), const_cast<void *>(cppIn), false, /* exactType */ changedTypeName, typeName);
    if (changedTypeName)
        delete [] typeName;
    return result;
}

// C++ to Python copy conversion.
static PyObject *QMediaFormat_COPY_CppToPython_QMediaFormat(const void *cppIn)
{
    return Shiboken::Object::newObject(Sbk_QMediaFormat_TypeF(), new ::QMediaFormat(*reinterpret_cast<const ::QMediaFormat *>(cppIn)), true, true);
}

// Python to C++ copy conversion.
static void QMediaFormat_PythonToCpp_QMediaFormat_COPY(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QMediaFormat *>(cppOut) = *reinterpret_cast< ::QMediaFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], reinterpret_cast<SbkObject *>(pyIn)));
}
static PythonToCppFunc is_QMediaFormat_PythonToCpp_QMediaFormat_COPY_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, reinterpret_cast<PyTypeObject *>(Sbk_QMediaFormat_TypeF())))
        return QMediaFormat_PythonToCpp_QMediaFormat_COPY;
    return {};
}

// Implicit conversions.
static void QMediaFormat_FileFormat_PythonToCpp_QMediaFormat(PyObject *pyIn, void *cppOut)
{
    ::QMediaFormat::FileFormat cppIn{QMediaFormat::WMV};
    Shiboken::Conversions::pythonToCppCopy(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX]))->converter, pyIn, &cppIn);
    *reinterpret_cast<::QMediaFormat *>(cppOut) = ::QMediaFormat(cppIn);
}
static PythonToCppFunc is_QMediaFormat_FileFormat_PythonToCpp_QMediaFormat_Convertible(PyObject *pyIn)
{
    if (SbkObject_TypeCheck(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX], pyIn))
        return QMediaFormat_FileFormat_PythonToCpp_QMediaFormat;
    return {};
}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QMediaFormat_SignatureStrings[] = {
    "1:PySide6.QtMultimedia.QMediaFormat(self,format:PySide6.QtMultimedia.QMediaFormat.FileFormat=QMediaFormat.FileFormat.UnspecifiedFormat)",
    "0:PySide6.QtMultimedia.QMediaFormat(self,other:typing.Union[PySide6.QtMultimedia.QMediaFormat, PySide6.QtMultimedia.QMediaFormat.FileFormat])",
    "PySide6.QtMultimedia.QMediaFormat.audioCodec(self)->PySide6.QtMultimedia.QMediaFormat.AudioCodec",
    "PySide6.QtMultimedia.QMediaFormat.audioCodecDescription(codec:PySide6.QtMultimedia.QMediaFormat.AudioCodec)->QString",
    "PySide6.QtMultimedia.QMediaFormat.audioCodecName(codec:PySide6.QtMultimedia.QMediaFormat.AudioCodec)->QString",
    "PySide6.QtMultimedia.QMediaFormat.fileFormat(self)->PySide6.QtMultimedia.QMediaFormat.FileFormat",
    "PySide6.QtMultimedia.QMediaFormat.fileFormatDescription(fileFormat:PySide6.QtMultimedia.QMediaFormat.FileFormat)->QString",
    "PySide6.QtMultimedia.QMediaFormat.fileFormatName(fileFormat:PySide6.QtMultimedia.QMediaFormat.FileFormat)->QString",
    "PySide6.QtMultimedia.QMediaFormat.isSupported(self,mode:PySide6.QtMultimedia.QMediaFormat.ConversionMode)->bool",
    "PySide6.QtMultimedia.QMediaFormat.mimeType(self)->PySide6.QtCore.QMimeType",
    "PySide6.QtMultimedia.QMediaFormat.resolveForEncoding(self,flags:PySide6.QtMultimedia.QMediaFormat.ResolveFlags)",
    "PySide6.QtMultimedia.QMediaFormat.setAudioCodec(self,codec:PySide6.QtMultimedia.QMediaFormat.AudioCodec)",
    "PySide6.QtMultimedia.QMediaFormat.setFileFormat(self,f:PySide6.QtMultimedia.QMediaFormat.FileFormat)",
    "PySide6.QtMultimedia.QMediaFormat.setVideoCodec(self,codec:PySide6.QtMultimedia.QMediaFormat.VideoCodec)",
    "PySide6.QtMultimedia.QMediaFormat.supportedAudioCodecs(self,m:PySide6.QtMultimedia.QMediaFormat.ConversionMode)->QList[PySide6.QtMultimedia.QMediaFormat.AudioCodec]",
    "PySide6.QtMultimedia.QMediaFormat.supportedFileFormats(self,m:PySide6.QtMultimedia.QMediaFormat.ConversionMode)->QList[PySide6.QtMultimedia.QMediaFormat.FileFormat]",
    "PySide6.QtMultimedia.QMediaFormat.supportedVideoCodecs(self,m:PySide6.QtMultimedia.QMediaFormat.ConversionMode)->QList[PySide6.QtMultimedia.QMediaFormat.VideoCodec]",
    "PySide6.QtMultimedia.QMediaFormat.swap(self,other:typing.Union[PySide6.QtMultimedia.QMediaFormat, PySide6.QtMultimedia.QMediaFormat.FileFormat])",
    "PySide6.QtMultimedia.QMediaFormat.videoCodec(self)->PySide6.QtMultimedia.QMediaFormat.VideoCodec",
    "PySide6.QtMultimedia.QMediaFormat.videoCodecDescription(codec:PySide6.QtMultimedia.QMediaFormat.VideoCodec)->QString",
    "PySide6.QtMultimedia.QMediaFormat.videoCodecName(codec:PySide6.QtMultimedia.QMediaFormat.VideoCodec)->QString",
    "PySide6.QtMultimedia.QMediaFormat.__copy__()",
    nullptr}; // Sentinel

void init_QMediaFormat(PyObject *module)
{
    _Sbk_QMediaFormat_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QMediaFormat",
        "QMediaFormat",
        &Sbk_QMediaFormat_spec,
        &Shiboken::callCppDestructor< ::QMediaFormat >,
        0,
        0,
        0);
    auto *pyType = Sbk_QMediaFormat_TypeF(); // references _Sbk_QMediaFormat_Type
    InitSignatureStrings(pyType, QMediaFormat_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QMediaFormat_Type), Sbk_QMediaFormat_PropertyStrings);
    SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX]
        = Sbk_QMediaFormat_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QMediaFormat_TypeF(),
        QMediaFormat_PythonToCpp_QMediaFormat_PTR,
        is_QMediaFormat_PythonToCpp_QMediaFormat_PTR_Convertible,
        QMediaFormat_PTR_CppToPython_QMediaFormat,
        QMediaFormat_COPY_CppToPython_QMediaFormat);

    Shiboken::Conversions::registerConverterName(converter, "QMediaFormat");
    Shiboken::Conversions::registerConverterName(converter, "QMediaFormat*");
    Shiboken::Conversions::registerConverterName(converter, "QMediaFormat&");
    Shiboken::Conversions::registerConverterName(converter, typeid(::QMediaFormat).name());

    // Add Python to C++ copy (value, not pointer neither reference) conversion to type converter.
    Shiboken::Conversions::addPythonToCppValueConversion(converter,
        QMediaFormat_PythonToCpp_QMediaFormat_COPY,
        is_QMediaFormat_PythonToCpp_QMediaFormat_COPY_Convertible);
    // Add implicit conversions to type converter.
    Shiboken::Conversions::addPythonToCppValueConversion(converter,
        QMediaFormat_FileFormat_PythonToCpp_QMediaFormat,
        is_QMediaFormat_FileFormat_PythonToCpp_QMediaFormat_Convertible);

    // Initialization of enums.

    // Initialization of enum 'FileFormat'.
    SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QMediaFormat_TypeF(),
        "FileFormat",
        "2:PySide6.QtMultimedia.QMediaFormat.FileFormat",
        "QMediaFormat::FileFormat");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "UnspecifiedFormat", (long) QMediaFormat::FileFormat::UnspecifiedFormat))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "WMV", (long) QMediaFormat::FileFormat::WMV))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "AVI", (long) QMediaFormat::FileFormat::AVI))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "Matroska", (long) QMediaFormat::FileFormat::Matroska))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "MPEG4", (long) QMediaFormat::FileFormat::MPEG4))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "Ogg", (long) QMediaFormat::FileFormat::Ogg))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "QuickTime", (long) QMediaFormat::FileFormat::QuickTime))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "WebM", (long) QMediaFormat::FileFormat::WebM))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "Mpeg4Audio", (long) QMediaFormat::FileFormat::Mpeg4Audio))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "AAC", (long) QMediaFormat::FileFormat::AAC))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "WMA", (long) QMediaFormat::FileFormat::WMA))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "MP3", (long) QMediaFormat::FileFormat::MP3))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "FLAC", (long) QMediaFormat::FileFormat::FLAC))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "Wave", (long) QMediaFormat::FileFormat::Wave))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
        Sbk_QMediaFormat_TypeF(), "LastFileFormat", (long) QMediaFormat::FileFormat::LastFileFormat))
        return;
    // Register converter for enum 'QMediaFormat::FileFormat'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX],
            QMediaFormat_FileFormat_CppToPython_QMediaFormat_FileFormat);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QMediaFormat_FileFormat_PythonToCpp_QMediaFormat_FileFormat,
            is_QMediaFormat_FileFormat_PythonToCpp_QMediaFormat_FileFormat_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_FILEFORMAT_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QMediaFormat::FileFormat");
        Shiboken::Conversions::registerConverterName(converter, "FileFormat");
    }
    // End of 'FileFormat' enum.

    // Initialization of enum 'AudioCodec'.
    SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QMediaFormat_TypeF(),
        "AudioCodec",
        "2:PySide6.QtMultimedia.QMediaFormat.AudioCodec",
        "QMediaFormat::AudioCodec");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "Unspecified", (long) QMediaFormat::AudioCodec::Unspecified))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "MP3", (long) QMediaFormat::AudioCodec::MP3))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "AAC", (long) QMediaFormat::AudioCodec::AAC))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "AC3", (long) QMediaFormat::AudioCodec::AC3))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "EAC3", (long) QMediaFormat::AudioCodec::EAC3))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "FLAC", (long) QMediaFormat::AudioCodec::FLAC))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "DolbyTrueHD", (long) QMediaFormat::AudioCodec::DolbyTrueHD))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "Opus", (long) QMediaFormat::AudioCodec::Opus))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "Vorbis", (long) QMediaFormat::AudioCodec::Vorbis))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "Wave", (long) QMediaFormat::AudioCodec::Wave))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "WMA", (long) QMediaFormat::AudioCodec::WMA))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "ALAC", (long) QMediaFormat::AudioCodec::ALAC))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], "LastAudioCodec", (long) QMediaFormat::AudioCodec::LastAudioCodec))
        return;
    // Register converter for enum 'QMediaFormat::AudioCodec'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX],
            QMediaFormat_AudioCodec_CppToPython_QMediaFormat_AudioCodec);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QMediaFormat_AudioCodec_PythonToCpp_QMediaFormat_AudioCodec,
            is_QMediaFormat_AudioCodec_PythonToCpp_QMediaFormat_AudioCodec_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_AUDIOCODEC_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QMediaFormat::AudioCodec");
        Shiboken::Conversions::registerConverterName(converter, "AudioCodec");
    }
    // End of 'AudioCodec' enum.

    // Initialization of enum 'VideoCodec'.
    SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QMediaFormat_TypeF(),
        "VideoCodec",
        "2:PySide6.QtMultimedia.QMediaFormat.VideoCodec",
        "QMediaFormat::VideoCodec");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "Unspecified", (long) QMediaFormat::VideoCodec::Unspecified))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "MPEG1", (long) QMediaFormat::VideoCodec::MPEG1))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "MPEG2", (long) QMediaFormat::VideoCodec::MPEG2))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "MPEG4", (long) QMediaFormat::VideoCodec::MPEG4))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "H264", (long) QMediaFormat::VideoCodec::H264))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "H265", (long) QMediaFormat::VideoCodec::H265))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "VP8", (long) QMediaFormat::VideoCodec::VP8))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "VP9", (long) QMediaFormat::VideoCodec::VP9))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "AV1", (long) QMediaFormat::VideoCodec::AV1))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "Theora", (long) QMediaFormat::VideoCodec::Theora))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "WMV", (long) QMediaFormat::VideoCodec::WMV))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "MotionJPEG", (long) QMediaFormat::VideoCodec::MotionJPEG))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], "LastVideoCodec", (long) QMediaFormat::VideoCodec::LastVideoCodec))
        return;
    // Register converter for enum 'QMediaFormat::VideoCodec'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX],
            QMediaFormat_VideoCodec_CppToPython_QMediaFormat_VideoCodec);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QMediaFormat_VideoCodec_PythonToCpp_QMediaFormat_VideoCodec,
            is_QMediaFormat_VideoCodec_PythonToCpp_QMediaFormat_VideoCodec_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_VIDEOCODEC_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QMediaFormat::VideoCodec");
        Shiboken::Conversions::registerConverterName(converter, "VideoCodec");
    }
    // End of 'VideoCodec' enum.

    // Initialization of enum 'ConversionMode'.
    SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QMediaFormat_TypeF(),
        "ConversionMode",
        "2:PySide6.QtMultimedia.QMediaFormat.ConversionMode",
        "QMediaFormat::ConversionMode");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX],
        Sbk_QMediaFormat_TypeF(), "Encode", (long) QMediaFormat::ConversionMode::Encode))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX],
        Sbk_QMediaFormat_TypeF(), "Decode", (long) QMediaFormat::ConversionMode::Decode))
        return;
    // Register converter for enum 'QMediaFormat::ConversionMode'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX],
            QMediaFormat_ConversionMode_CppToPython_QMediaFormat_ConversionMode);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QMediaFormat_ConversionMode_PythonToCpp_QMediaFormat_ConversionMode,
            is_QMediaFormat_ConversionMode_PythonToCpp_QMediaFormat_ConversionMode_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_CONVERSIONMODE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QMediaFormat::ConversionMode");
        Shiboken::Conversions::registerConverterName(converter, "ConversionMode");
    }
    // End of 'ConversionMode' enum.

    // Initialization of enum 'ResolveFlags'.
    SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_RESOLVEFLAGS_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QMediaFormat_TypeF(),
        "ResolveFlags",
        "2:PySide6.QtMultimedia.QMediaFormat.ResolveFlags",
        "QMediaFormat::ResolveFlags");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_RESOLVEFLAGS_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_RESOLVEFLAGS_IDX],
        Sbk_QMediaFormat_TypeF(), "NoFlags", (long) QMediaFormat::ResolveFlags::NoFlags))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_RESOLVEFLAGS_IDX],
        Sbk_QMediaFormat_TypeF(), "RequiresVideo", (long) QMediaFormat::ResolveFlags::RequiresVideo))
        return;
    // Register converter for enum 'QMediaFormat::ResolveFlags'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_RESOLVEFLAGS_IDX],
            QMediaFormat_ResolveFlags_CppToPython_QMediaFormat_ResolveFlags);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QMediaFormat_ResolveFlags_PythonToCpp_QMediaFormat_ResolveFlags,
            is_QMediaFormat_ResolveFlags_PythonToCpp_QMediaFormat_ResolveFlags_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_RESOLVEFLAGS_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QMediaFormat::ResolveFlags");
        Shiboken::Conversions::registerConverterName(converter, "ResolveFlags");
    }
    // End of 'ResolveFlags' enum.

    qRegisterMetaType< ::QMediaFormat::FileFormat >("QMediaFormat::FileFormat");
    qRegisterMetaType< ::QMediaFormat::AudioCodec >("QMediaFormat::AudioCodec");
    qRegisterMetaType< ::QMediaFormat::VideoCodec >("QMediaFormat::VideoCodec");
    qRegisterMetaType< ::QMediaFormat::ConversionMode >("QMediaFormat::ConversionMode");
    qRegisterMetaType< ::QMediaFormat::ResolveFlags >("QMediaFormat::ResolveFlags");
}
