// SPDX-License-Identifier: GPL-2.0-or-later
import QtQuick
import org.shotcut.qml

Metadata {
    type: Metadata.Filter
    name: qsTr("360: Equirectangular to Rectilinear")
    mlt_service: "frei0r.bigsh0t_eq_to_rect"
    keywords: qsTr('spherical projection', 'search keywords for the 360: Equirectangular to Rectilinear video filter') + ' 360: equirectangular rectilinear bigsh0t #rgba'
    objectName: "bigsh0t_eq_to_rect"
    qml: "ui.qml"
    vui: "vui.qml"
    icon: "icon.webp"
    help: 'https://forum.shotcut.org/t/360-equirectangular-to-rectilinear-video-filter/19166/1'

    keyframes {
        allowAnimateIn: true
        allowAnimateOut: true
        simpleProperties: ['yaw', "pitch", "roll", "fov", "fisheye"]
        parameters: [
            Parameter {
                name: qsTr('Yaw')
                property: 'yaw'
                isCurve: true
                minimum: -360
                maximum: 360
            },
            Parameter {
                name: qsTr('Pitch', 'rotation around the side-to-side axis (roll, pitch, yaw)')
                property: 'pitch'
                isCurve: true
                minimum: -180
                maximum: 180
            },
            Parameter {
                name: qsTr('Roll')
                property: 'roll'
                isCurve: true
                minimum: -180
                maximum: 180
            },
            Parameter {
                name: qsTr('FOV', 'field of view')
                property: 'fov'
                isCurve: true
                minimum: 0
                maximum: 720
            },
            Parameter {
                name: qsTr('Fisheye')
                property: 'fisheye'
                isCurve: true
                minimum: 0
                maximum: 100
            }
        ]
    }
}
