/****************************************************************************
**
** 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 "qvideoframe_wrapper.h"

// inner classes

// Extra includes
#include <QtGui/qimage.h>
#include <QtMultimedia/qvideoframe.h>
#include <QtMultimedia/qvideoframeformat.h>
#include <qsize.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_QVideoFrame_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< ::QVideoFrame >()))
        return -1;

    ::QVideoFrame *cptr{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QVideoFrame.__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 (!PyArg_UnpackTuple(args, "QVideoFrame", 0, 1, &(pyArgs[0])))
        return -1;


    // Overloaded function decisor
    // 0: QVideoFrame::QVideoFrame()
    // 1: QVideoFrame::QVideoFrame(QVideoFrame)
    // 2: QVideoFrame::QVideoFrame(QVideoFrameFormat)
    if (numArgs == 0) {
        overloadId = 0; // QVideoFrame()
    } else if (numArgs == 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAMEFORMAT_IDX], (pyArgs[0])))) {
        overloadId = 2; // QVideoFrame(QVideoFrameFormat)
    } else if (numArgs == 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_IDX], (pyArgs[0])))) {
        overloadId = 1; // QVideoFrame(QVideoFrame)
    }

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

    // Call function/method
    switch (overloadId) {
        case 0: // QVideoFrame()
        {

            if (!PyErr_Occurred()) {
                // QVideoFrame()
                cptr = new ::QVideoFrame();
            }
            break;
        }
        case 1: // QVideoFrame(const QVideoFrame & other)
        {
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QVideoFrame cppArg0_local;
            ::QVideoFrame *cppArg0 = &cppArg0_local;
            if (pythonToCpp[0].isValue())
                pythonToCpp[0](pyArgs[0], &cppArg0_local);
            else
                pythonToCpp[0](pyArgs[0], &cppArg0);


            if (!PyErr_Occurred()) {
                // QVideoFrame(QVideoFrame)
                cptr = new ::QVideoFrame(*cppArg0);
            }
            break;
        }
        case 2: // QVideoFrame(const QVideoFrameFormat & format)
        {
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QVideoFrameFormat cppArg0_local;
            ::QVideoFrameFormat *cppArg0 = &cppArg0_local;
            if (pythonToCpp[0].isValue())
                pythonToCpp[0](pyArgs[0], &cppArg0_local);
            else
                pythonToCpp[0](pyArgs[0], &cppArg0);


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

    if (PyErr_Occurred() || !Shiboken::Object::setCppPointer(sbkSelf, Shiboken::SbkType< ::QVideoFrame >(), cptr)) {
        delete cptr;
        return -1;
    }
    if (!cptr) goto Sbk_QVideoFrame_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_QVideoFrame_Init_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return -1;
}

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

    // Overloaded function decisor
    // 0: QVideoFrame::bits(int)->uchar*
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArg)))) {
        overloadId = 0; // bits(int)
    }

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

    // Call function/method
    {
        int cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // bits(int)
            // Begin code injection
            // ========================================================================
            // START of custom code block [file: ../glue/qtmultimedia.cpp (qvideoframe-bits)]
            PyThreadState *_save = PyEval_SaveThread(); // Py_BEGIN_ALLOW_THREADS
            uchar * cppResult = cppSelf->bits(cppArg0);
            PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS
            const auto size = cppSelf->mappedBytes(cppArg0);
            pyResult = Shiboken::Buffer::newObject(cppResult, size, Shiboken::Buffer::ReadWrite);
            // END of custom code block [file: ../glue/qtmultimedia.cpp (qvideoframe-bits)]
            // ========================================================================
            // End of code injection

        }
    }

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

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

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

    // Overloaded function decisor
    // 0: QVideoFrame::bytesPerLine(int)const->int
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArg)))) {
        overloadId = 0; // bytesPerLine(int)const
    }

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

    // Call function/method
    {
        int cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // bytesPerLine(int)const
            int cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->bytesPerLine(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // endTime()const
            qint64 cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->endTime();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<qint64>(), &cppResult);
        }
    }

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // height()const
            int cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->height();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Overloaded function decisor
    // 0: QVideoFrame::map(QVideoFrame::MapMode)->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // map(QVideoFrame::MapMode)
    }

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

    // Call function/method
    {
        ::QVideoFrame::MapMode cppArg0{QVideoFrame::NotMapped};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // map(QVideoFrame::MapMode)
            bool cppResult = cppSelf->map(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

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

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

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

    // Call function/method
    {

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

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

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

    // Overloaded function decisor
    // 0: QVideoFrame::mappedBytes(int)const->int
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArg)))) {
        overloadId = 0; // mappedBytes(int)const
    }

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

    // Call function/method
    {
        int cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // mappedBytes(int)const
            int cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->mappedBytes(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // pixelFormat()const
            QVideoFrameFormat::PixelFormat cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->pixelFormat();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAMEFORMAT_PIXELFORMAT_IDX]))->converter, &cppResult);
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // planeCount()const
            int cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->planeCount();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

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

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

    // Call function/method
    {

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

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

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

    // Overloaded function decisor
    // 0: QVideoFrame::setEndTime(qint64)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<qint64>(), (pyArg)))) {
        overloadId = 0; // setEndTime(qint64)
    }

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

    // Call function/method
    {
        qint64 cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setEndTime(qint64)
            cppSelf->setEndTime(cppArg0);
        }
    }

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

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

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

    // Overloaded function decisor
    // 0: QVideoFrame::setMirrored(bool)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), (pyArg)))) {
        overloadId = 0; // setMirrored(bool)
    }

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

    // Call function/method
    {
        bool cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setMirrored(bool)
            cppSelf->setMirrored(cppArg0);
        }
    }

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

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

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

    // Overloaded function decisor
    // 0: QVideoFrame::setRotationAngle(QVideoFrame::RotationAngle)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setRotationAngle(QVideoFrame::RotationAngle)
    }

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

    // Call function/method
    {
        ::QVideoFrame::RotationAngle cppArg0{QVideoFrame::Rotation0};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setRotationAngle(QVideoFrame::RotationAngle)
            cppSelf->setRotationAngle(cppArg0);
        }
    }

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

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

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

    // Overloaded function decisor
    // 0: QVideoFrame::setStartTime(qint64)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<qint64>(), (pyArg)))) {
        overloadId = 0; // setStartTime(qint64)
    }

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

    // Call function/method
    {
        qint64 cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setStartTime(qint64)
            cppSelf->setStartTime(cppArg0);
        }
    }

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

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

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

    // Overloaded function decisor
    // 0: QVideoFrame::setSubtitleText(QString)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArg)))) {
        overloadId = 0; // setSubtitleText(QString)
    }

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

    // Call function/method
    {
        ::QString cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setSubtitleText(QString)
            cppSelf->setSubtitleText(cppArg0);
        }
    }

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // size()const
            QSize cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->size();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QSIZE_IDX], &cppResult);
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // startTime()const
            qint64 cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->startTime();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<qint64>(), &cppResult);
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // subtitleText()const
            QString cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->subtitleText();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // surfaceFormat()const
            QVideoFrameFormat cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->surfaceFormat();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAMEFORMAT_IDX], &cppResult);
        }
    }

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

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

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

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

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


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

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

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

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

    // Overloaded function decisor
    // 0: QVideoFrame::textureHandle(int)const->quint64
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArg)))) {
        overloadId = 0; // textureHandle(int)const
    }

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

    // Call function/method
    {
        int cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // textureHandle(int)const
            quint64 cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->textureHandle(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<quint64>(), &cppResult);
        }
    }

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toImage()const
            QImage cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->toImage();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtGuiTypes[SBK_QIMAGE_IDX], &cppResult);
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // unmap()
            cppSelf->unmap();
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // width()const
            int cppResult = const_cast<const ::QVideoFrame *>(cppSelf)->width();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

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

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


static const char *Sbk_QVideoFrame_PropertyStrings[] = {
    nullptr // Sentinel
};

static PyMethodDef Sbk_QVideoFrame_methods[] = {
    {"bits", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_bits), METH_O},
    {"bytesPerLine", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_bytesPerLine), METH_O},
    {"endTime", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_endTime), METH_NOARGS},
    {"handleType", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_handleType), METH_NOARGS},
    {"height", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_height), METH_NOARGS},
    {"isMapped", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_isMapped), METH_NOARGS},
    {"isReadable", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_isReadable), METH_NOARGS},
    {"isValid", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_isValid), METH_NOARGS},
    {"isWritable", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_isWritable), METH_NOARGS},
    {"map", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_map), METH_O},
    {"mapMode", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_mapMode), METH_NOARGS},
    {"mappedBytes", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_mappedBytes), METH_O},
    {"mirrored", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_mirrored), METH_NOARGS},
    {"pixelFormat", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_pixelFormat), METH_NOARGS},
    {"planeCount", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_planeCount), METH_NOARGS},
    {"rotationAngle", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_rotationAngle), METH_NOARGS},
    {"setEndTime", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_setEndTime), METH_O},
    {"setMirrored", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_setMirrored), METH_O},
    {"setRotationAngle", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_setRotationAngle), METH_O},
    {"setStartTime", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_setStartTime), METH_O},
    {"setSubtitleText", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_setSubtitleText), METH_O},
    {"size", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_size), METH_NOARGS},
    {"startTime", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_startTime), METH_NOARGS},
    {"subtitleText", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_subtitleText), METH_NOARGS},
    {"surfaceFormat", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_surfaceFormat), METH_NOARGS},
    {"swap", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_swap), METH_O},
    {"textureHandle", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_textureHandle), METH_O},
    {"toImage", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_toImage), METH_NOARGS},
    {"unmap", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_unmap), METH_NOARGS},
    {"width", reinterpret_cast<PyCFunction>(Sbk_QVideoFrameFunc_width), METH_NOARGS},

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

// Rich comparison
static PyObject * Sbk_QVideoFrame_richcompare(PyObject *self, PyObject *pyArg, int op)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto &cppSelf = *reinterpret_cast< ::QVideoFrame *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_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_QVIDEOFRAME_IDX], (pyArg)))) {
                // operator!=(const QVideoFrame & other) const
                if (!Shiboken::Object::isValid(pyArg))
                    return {};
                ::QVideoFrame cppArg0_local;
                ::QVideoFrame *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_QVIDEOFRAME_IDX], (pyArg)))) {
                // operator==(const QVideoFrame & other) const
                if (!Shiboken::Object::isValid(pyArg))
                    return {};
                ::QVideoFrame cppArg0_local;
                ::QVideoFrame *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_QVideoFrame_RichComparison_TypeError;
    }

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

}

} // extern "C"

static int Sbk_QVideoFrame_traverse(PyObject *self, visitproc visit, void *arg)
{
    return SbkObject_TypeF()->tp_traverse(self, visit, arg);
}
static int Sbk_QVideoFrame_clear(PyObject *self)
{
    return reinterpret_cast<PyTypeObject *>(SbkObject_TypeF())->tp_clear(self);
}
extern "C"
{
static PyObject *Sbk_QVideoFrame__repr__(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QVideoFrame *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    QBuffer buffer;
    buffer.open(QBuffer::ReadWrite);
    QDebug dbg(&buffer);
    dbg << *cppSelf;
    buffer.close();
    QByteArray str = buffer.data();
    int idx = str.indexOf('(');
    if (idx >= 0)
        str.replace(0, idx, Py_TYPE(self)->tp_name);
    str = str.trimmed();
    PyObject *mod = PyDict_GetItem(Py_TYPE(self)->tp_dict, Shiboken::PyMagicName::module());
    if (mod && !strchr(str, '.'))
        return Shiboken::String::fromFormat("<%s.%s at %p>", Shiboken::String::toCString(mod), str.constData(), self);
    else
        return Shiboken::String::fromFormat("<%s at %p>", str.constData(), self);
}
} // extern C

// Class Definition -----------------------------------------------
extern "C" {
static PyTypeObject *_Sbk_QVideoFrame_Type = nullptr;
static PyTypeObject *Sbk_QVideoFrame_TypeF(void)
{
    return _Sbk_QVideoFrame_Type;
}

static PyType_Slot Sbk_QVideoFrame_slots[] = {
    {Py_tp_base,        nullptr}, // inserted by introduceWrapperType
    {Py_tp_dealloc,     reinterpret_cast<void *>(&SbkDeallocWrapper)},
    {Py_tp_repr,        reinterpret_cast<void *>(Sbk_QVideoFrame__repr__)},
    {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_QVideoFrame_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QVideoFrame_clear)},
    {Py_tp_richcompare, reinterpret_cast<void *>(Sbk_QVideoFrame_richcompare)},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QVideoFrame_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QVideoFrame_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QVideoFrame_spec = {
    "2:PySide6.QtMultimedia.QVideoFrame",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QVideoFrame_slots
};

} //extern "C"


// Type conversion functions.

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

}
static PythonToCppFunc is_QVideoFrame_HandleType_PythonToCpp_QVideoFrame_HandleType_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_HANDLETYPE_IDX]))
        return QVideoFrame_HandleType_PythonToCpp_QVideoFrame_HandleType;
    return {};
}
static PyObject *QVideoFrame_HandleType_CppToPython_QVideoFrame_HandleType(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QVideoFrame::HandleType *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_HANDLETYPE_IDX], castCppIn);

}

static void QVideoFrame_MapMode_PythonToCpp_QVideoFrame_MapMode(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QVideoFrame::MapMode *>(cppOut) =
        static_cast<::QVideoFrame::MapMode>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QVideoFrame_MapMode_PythonToCpp_QVideoFrame_MapMode_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX]))
        return QVideoFrame_MapMode_PythonToCpp_QVideoFrame_MapMode;
    return {};
}
static PyObject *QVideoFrame_MapMode_CppToPython_QVideoFrame_MapMode(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QVideoFrame::MapMode *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX], castCppIn);

}

static void QVideoFrame_RotationAngle_PythonToCpp_QVideoFrame_RotationAngle(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QVideoFrame::RotationAngle *>(cppOut) =
        static_cast<::QVideoFrame::RotationAngle>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QVideoFrame_RotationAngle_PythonToCpp_QVideoFrame_RotationAngle_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX]))
        return QVideoFrame_RotationAngle_PythonToCpp_QVideoFrame_RotationAngle;
    return {};
}
static PyObject *QVideoFrame_RotationAngle_CppToPython_QVideoFrame_RotationAngle(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QVideoFrame::RotationAngle *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX], castCppIn);

}

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

// C++ to Python pointer conversion - tries to find the Python wrapper for the C++ object (keeps object identity).
static PyObject *QVideoFrame_PTR_CppToPython_QVideoFrame(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 ::QVideoFrame *>(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_QVideoFrame_TypeF(), const_cast<void *>(cppIn), false, /* exactType */ changedTypeName, typeName);
    if (changedTypeName)
        delete [] typeName;
    return result;
}

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

// Python to C++ copy conversion.
static void QVideoFrame_PythonToCpp_QVideoFrame_COPY(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QVideoFrame *>(cppOut) = *reinterpret_cast< ::QVideoFrame *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_IDX], reinterpret_cast<SbkObject *>(pyIn)));
}
static PythonToCppFunc is_QVideoFrame_PythonToCpp_QVideoFrame_COPY_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, reinterpret_cast<PyTypeObject *>(Sbk_QVideoFrame_TypeF())))
        return QVideoFrame_PythonToCpp_QVideoFrame_COPY;
    return {};
}

// Implicit conversions.
static void constQVideoFrameFormatREF_PythonToCpp_QVideoFrame(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QVideoFrame *>(cppOut) = ::QVideoFrame( *reinterpret_cast< ::QVideoFrameFormat *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAMEFORMAT_IDX], reinterpret_cast<SbkObject *>(pyIn))));
}
static PythonToCppFunc is_constQVideoFrameFormatREF_PythonToCpp_QVideoFrame_Convertible(PyObject *pyIn)
{
    if (SbkObject_TypeCheck(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAMEFORMAT_IDX], pyIn))
        return constQVideoFrameFormatREF_PythonToCpp_QVideoFrame;
    return {};
}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QVideoFrame_SignatureStrings[] = {
    "2:PySide6.QtMultimedia.QVideoFrame(self)",
    "1:PySide6.QtMultimedia.QVideoFrame(self,other:typing.Union[PySide6.QtMultimedia.QVideoFrame, PySide6.QtMultimedia.QVideoFrameFormat])",
    "0:PySide6.QtMultimedia.QVideoFrame(self,format:PySide6.QtMultimedia.QVideoFrameFormat)",
    "PySide6.QtMultimedia.QVideoFrame.bits(self,plane:int)->uchar*",
    "PySide6.QtMultimedia.QVideoFrame.bytesPerLine(self,plane:int)->int",
    "PySide6.QtMultimedia.QVideoFrame.endTime(self)->qint64",
    "PySide6.QtMultimedia.QVideoFrame.handleType(self)->PySide6.QtMultimedia.QVideoFrame.HandleType",
    "PySide6.QtMultimedia.QVideoFrame.height(self)->int",
    "PySide6.QtMultimedia.QVideoFrame.isMapped(self)->bool",
    "PySide6.QtMultimedia.QVideoFrame.isReadable(self)->bool",
    "PySide6.QtMultimedia.QVideoFrame.isValid(self)->bool",
    "PySide6.QtMultimedia.QVideoFrame.isWritable(self)->bool",
    "PySide6.QtMultimedia.QVideoFrame.map(self,mode:PySide6.QtMultimedia.QVideoFrame.MapMode)->bool",
    "PySide6.QtMultimedia.QVideoFrame.mapMode(self)->PySide6.QtMultimedia.QVideoFrame.MapMode",
    "PySide6.QtMultimedia.QVideoFrame.mappedBytes(self,plane:int)->int",
    "PySide6.QtMultimedia.QVideoFrame.mirrored(self)->bool",
    "PySide6.QtMultimedia.QVideoFrame.pixelFormat(self)->PySide6.QtMultimedia.QVideoFrameFormat.PixelFormat",
    "PySide6.QtMultimedia.QVideoFrame.planeCount(self)->int",
    "PySide6.QtMultimedia.QVideoFrame.rotationAngle(self)->PySide6.QtMultimedia.QVideoFrame.RotationAngle",
    "PySide6.QtMultimedia.QVideoFrame.setEndTime(self,time:qint64)",
    "PySide6.QtMultimedia.QVideoFrame.setMirrored(self,arg__1:bool)",
    "PySide6.QtMultimedia.QVideoFrame.setRotationAngle(self,arg__1:PySide6.QtMultimedia.QVideoFrame.RotationAngle)",
    "PySide6.QtMultimedia.QVideoFrame.setStartTime(self,time:qint64)",
    "PySide6.QtMultimedia.QVideoFrame.setSubtitleText(self,text:QString)",
    "PySide6.QtMultimedia.QVideoFrame.size(self)->PySide6.QtCore.QSize",
    "PySide6.QtMultimedia.QVideoFrame.startTime(self)->qint64",
    "PySide6.QtMultimedia.QVideoFrame.subtitleText(self)->QString",
    "PySide6.QtMultimedia.QVideoFrame.surfaceFormat(self)->PySide6.QtMultimedia.QVideoFrameFormat",
    "PySide6.QtMultimedia.QVideoFrame.swap(self,other:typing.Union[PySide6.QtMultimedia.QVideoFrame, PySide6.QtMultimedia.QVideoFrameFormat])",
    "PySide6.QtMultimedia.QVideoFrame.textureHandle(self,plane:int)->quint64",
    "PySide6.QtMultimedia.QVideoFrame.toImage(self)->PySide6.QtGui.QImage",
    "PySide6.QtMultimedia.QVideoFrame.unmap(self)",
    "PySide6.QtMultimedia.QVideoFrame.width(self)->int",
    "PySide6.QtMultimedia.QVideoFrame.__copy__()",
    nullptr}; // Sentinel

void init_QVideoFrame(PyObject *module)
{
    _Sbk_QVideoFrame_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QVideoFrame",
        "QVideoFrame",
        &Sbk_QVideoFrame_spec,
        &Shiboken::callCppDestructor< ::QVideoFrame >,
        0,
        0,
        0);
    auto *pyType = Sbk_QVideoFrame_TypeF(); // references _Sbk_QVideoFrame_Type
    InitSignatureStrings(pyType, QVideoFrame_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QVideoFrame_Type), Sbk_QVideoFrame_PropertyStrings);
    SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_IDX]
        = Sbk_QVideoFrame_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QVideoFrame_TypeF(),
        QVideoFrame_PythonToCpp_QVideoFrame_PTR,
        is_QVideoFrame_PythonToCpp_QVideoFrame_PTR_Convertible,
        QVideoFrame_PTR_CppToPython_QVideoFrame,
        QVideoFrame_COPY_CppToPython_QVideoFrame);

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

    // Add Python to C++ copy (value, not pointer neither reference) conversion to type converter.
    Shiboken::Conversions::addPythonToCppValueConversion(converter,
        QVideoFrame_PythonToCpp_QVideoFrame_COPY,
        is_QVideoFrame_PythonToCpp_QVideoFrame_COPY_Convertible);
    // Add implicit conversions to type converter.
    Shiboken::Conversions::addPythonToCppValueConversion(converter,
        constQVideoFrameFormatREF_PythonToCpp_QVideoFrame,
        is_constQVideoFrameFormatREF_PythonToCpp_QVideoFrame_Convertible);

    // Initialization of enums.

    // Initialization of enum 'HandleType'.
    SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_HANDLETYPE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QVideoFrame_TypeF(),
        "HandleType",
        "2:PySide6.QtMultimedia.QVideoFrame.HandleType",
        "QVideoFrame::HandleType");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_HANDLETYPE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_HANDLETYPE_IDX],
        Sbk_QVideoFrame_TypeF(), "NoHandle", (long) QVideoFrame::HandleType::NoHandle))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_HANDLETYPE_IDX],
        Sbk_QVideoFrame_TypeF(), "RhiTextureHandle", (long) QVideoFrame::HandleType::RhiTextureHandle))
        return;
    // Register converter for enum 'QVideoFrame::HandleType'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_HANDLETYPE_IDX],
            QVideoFrame_HandleType_CppToPython_QVideoFrame_HandleType);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QVideoFrame_HandleType_PythonToCpp_QVideoFrame_HandleType,
            is_QVideoFrame_HandleType_PythonToCpp_QVideoFrame_HandleType_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_HANDLETYPE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QVideoFrame::HandleType");
        Shiboken::Conversions::registerConverterName(converter, "HandleType");
    }
    // End of 'HandleType' enum.

    // Initialization of enum 'MapMode'.
    SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QVideoFrame_TypeF(),
        "MapMode",
        "2:PySide6.QtMultimedia.QVideoFrame.MapMode",
        "QVideoFrame::MapMode");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX],
        Sbk_QVideoFrame_TypeF(), "NotMapped", (long) QVideoFrame::MapMode::NotMapped))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX],
        Sbk_QVideoFrame_TypeF(), "ReadOnly", (long) QVideoFrame::MapMode::ReadOnly))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX],
        Sbk_QVideoFrame_TypeF(), "WriteOnly", (long) QVideoFrame::MapMode::WriteOnly))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX],
        Sbk_QVideoFrame_TypeF(), "ReadWrite", (long) QVideoFrame::MapMode::ReadWrite))
        return;
    // Register converter for enum 'QVideoFrame::MapMode'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX],
            QVideoFrame_MapMode_CppToPython_QVideoFrame_MapMode);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QVideoFrame_MapMode_PythonToCpp_QVideoFrame_MapMode,
            is_QVideoFrame_MapMode_PythonToCpp_QVideoFrame_MapMode_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_MAPMODE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QVideoFrame::MapMode");
        Shiboken::Conversions::registerConverterName(converter, "MapMode");
    }
    // End of 'MapMode' enum.

    // Initialization of enum 'RotationAngle'.
    SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QVideoFrame_TypeF(),
        "RotationAngle",
        "2:PySide6.QtMultimedia.QVideoFrame.RotationAngle",
        "QVideoFrame::RotationAngle");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX],
        Sbk_QVideoFrame_TypeF(), "Rotation0", (long) QVideoFrame::RotationAngle::Rotation0))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX],
        Sbk_QVideoFrame_TypeF(), "Rotation90", (long) QVideoFrame::RotationAngle::Rotation90))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX],
        Sbk_QVideoFrame_TypeF(), "Rotation180", (long) QVideoFrame::RotationAngle::Rotation180))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX],
        Sbk_QVideoFrame_TypeF(), "Rotation270", (long) QVideoFrame::RotationAngle::Rotation270))
        return;
    // Register converter for enum 'QVideoFrame::RotationAngle'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX],
            QVideoFrame_RotationAngle_CppToPython_QVideoFrame_RotationAngle);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QVideoFrame_RotationAngle_PythonToCpp_QVideoFrame_RotationAngle,
            is_QVideoFrame_RotationAngle_PythonToCpp_QVideoFrame_RotationAngle_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QVIDEOFRAME_ROTATIONANGLE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QVideoFrame::RotationAngle");
        Shiboken::Conversions::registerConverterName(converter, "RotationAngle");
    }
    // End of 'RotationAngle' enum.

    qRegisterMetaType< ::QVideoFrame >("QVideoFrame");
    qRegisterMetaType< ::QVideoFrame::HandleType >("QVideoFrame::HandleType");
    qRegisterMetaType< ::QVideoFrame::MapMode >("QVideoFrame::MapMode");
    qRegisterMetaType< ::QVideoFrame::RotationAngle >("QVideoFrame::RotationAngle");
}
