From 483c0b88bfc1b798396c31a4dd2f5239399ce59e Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 15 Oct 2018 01:14:02 +0200 Subject: sync with upstream --- .../include/kodi/addon-instance/Inputstream.h | 31 ++++++++++++++++++++++ .../include/kodi/addon-instance/Peripheral.h | 15 +++++------ 2 files changed, 38 insertions(+), 8 deletions(-) (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance') diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Inputstream.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Inputstream.h index 23a91e7..252edbf 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Inputstream.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Inputstream.h @@ -120,6 +120,31 @@ extern "C" { FLAG_HEARING_IMPAIRED = 0x0080, FLAG_VISUAL_IMPAIRED = 0x0100 }; + + enum INPUTSTREAM_COLORSPACE + { + COLORSPACE_UNKNOWN, + COLORSPACE_BT709, + COLORSPACE_BT470M, + COLORSPACE_BT470BG, + COLORSPACE_SMPTE170M, + COLORSPACE_SMPTE240M, + COLORSPACE_FILM, + COLORSPACE_BT2020, + COLORSPACE_SMPTE428, + COLORSPACE_SMPTEST428_1, + COLORSPACE_SMPTE431, + COLORSPACE_SMPTE432, + COLORSPACE_JEDEC_P22 + }; + + enum INPUTSTREAM_COLORRANGE + { + COLORRANGE_UNKNOWN, + COLORRANGE_LIMITED, + COLORRANGE_FULLRANGE + }; + uint32_t m_flags; char m_name[256]; /*!< @brief (optinal) name of the stream, \0 for default handling */ @@ -139,6 +164,7 @@ extern "C" { unsigned int m_Width; /*!< @brief width of the stream reported by the demuxer */ float m_Aspect; /*!< @brief display aspect of stream */ + unsigned int m_Channels; /*!< @brief (required) amount of channels */ unsigned int m_SampleRate; /*!< @brief (required) sample rate */ unsigned int m_BitRate; /*!< @brief (required) bit rate */ @@ -146,6 +172,11 @@ extern "C" { unsigned int m_BlockAlign; CRYPTO_INFO m_cryptoInfo; + + // new in API version 2.0.8 + unsigned int m_codecFourCC; /*!< @brief Codec If available, the fourcc code codec */ + INPUTSTREAM_COLORSPACE m_colorSpace; /*!< @brief definition of colorspace */ + INPUTSTREAM_COLORRANGE m_colorRange; /*!< @brief color range if available */ }; struct INPUTSTREAM_TIMES diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h index 78e572b..2df8a36 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h @@ -531,8 +531,7 @@ namespace addon virtual void FreeEvents(unsigned int event_count, PERIPHERAL_EVENT* events) { } /*! - * @brief Send an input event to the specified peripheral - * @param peripheralIndex The index of the device receiving the input event + * @brief Send an input event to the peripheral * @param event The input event * @return true if the event was handled, false otherwise */ @@ -677,9 +676,9 @@ namespace addon * @param[optional] deviceName The name of the device to refresh, or empty/null for all devices * @param[optional] controllerId The controller ID to refresh, or empty/null for all controllers */ - void RefreshButtonMaps(const std::string& strDeviceName = "", const std::string& strControllerId = "") + void RefreshButtonMaps(const std::string& deviceName = "", const std::string& controllerId = "") { - return m_instanceData->toKodi.refresh_button_maps(m_instanceData->toKodi.kodiInstance, strDeviceName.c_str(), strControllerId.c_str()); + return m_instanceData->toKodi.refresh_button_maps(m_instanceData->toKodi.kodiInstance, deviceName.c_str(), controllerId.c_str()); } /*! @@ -690,9 +689,9 @@ namespace addon * * @return The number of features matching the request parameters */ - unsigned int FeatureCount(const std::string& strControllerId, JOYSTICK_FEATURE_TYPE type = JOYSTICK_FEATURE_TYPE_UNKNOWN) + unsigned int FeatureCount(const std::string& controllerId, JOYSTICK_FEATURE_TYPE type = JOYSTICK_FEATURE_TYPE_UNKNOWN) { - return m_instanceData->toKodi.feature_count(m_instanceData->toKodi.kodiInstance, strControllerId.c_str(), type); + return m_instanceData->toKodi.feature_count(m_instanceData->toKodi.kodiInstance, controllerId.c_str(), type); } /*! @@ -704,9 +703,9 @@ namespace addon * @return The type of the specified feature, or JOYSTICK_FEATURE_TYPE_UNKNOWN * if unknown */ - JOYSTICK_FEATURE_TYPE FeatureType(const std::string& strControllerId, const std::string &featureName) + JOYSTICK_FEATURE_TYPE FeatureType(const std::string& controllerId, const std::string &featureName) { - return m_instanceData->toKodi.feature_type(m_instanceData->toKodi.kodiInstance, strControllerId.c_str(), featureName.c_str()); + return m_instanceData->toKodi.feature_type(m_instanceData->toKodi.kodiInstance, controllerId.c_str(), featureName.c_str()); } private: -- cgit v1.2.3