diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Inputstream.h | 31 | ||||
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h | 15 |
2 files changed, 38 insertions, 8 deletions
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" { | |||
| 120 | FLAG_HEARING_IMPAIRED = 0x0080, | 120 | FLAG_HEARING_IMPAIRED = 0x0080, |
| 121 | FLAG_VISUAL_IMPAIRED = 0x0100 | 121 | FLAG_VISUAL_IMPAIRED = 0x0100 |
| 122 | }; | 122 | }; |
| 123 | |||
| 124 | enum INPUTSTREAM_COLORSPACE | ||
| 125 | { | ||
| 126 | COLORSPACE_UNKNOWN, | ||
| 127 | COLORSPACE_BT709, | ||
| 128 | COLORSPACE_BT470M, | ||
| 129 | COLORSPACE_BT470BG, | ||
| 130 | COLORSPACE_SMPTE170M, | ||
| 131 | COLORSPACE_SMPTE240M, | ||
| 132 | COLORSPACE_FILM, | ||
| 133 | COLORSPACE_BT2020, | ||
| 134 | COLORSPACE_SMPTE428, | ||
| 135 | COLORSPACE_SMPTEST428_1, | ||
| 136 | COLORSPACE_SMPTE431, | ||
| 137 | COLORSPACE_SMPTE432, | ||
| 138 | COLORSPACE_JEDEC_P22 | ||
| 139 | }; | ||
| 140 | |||
| 141 | enum INPUTSTREAM_COLORRANGE | ||
| 142 | { | ||
| 143 | COLORRANGE_UNKNOWN, | ||
| 144 | COLORRANGE_LIMITED, | ||
| 145 | COLORRANGE_FULLRANGE | ||
| 146 | }; | ||
| 147 | |||
| 123 | uint32_t m_flags; | 148 | uint32_t m_flags; |
| 124 | 149 | ||
| 125 | char m_name[256]; /*!< @brief (optinal) name of the stream, \0 for default handling */ | 150 | char m_name[256]; /*!< @brief (optinal) name of the stream, \0 for default handling */ |
| @@ -139,6 +164,7 @@ extern "C" { | |||
| 139 | unsigned int m_Width; /*!< @brief width of the stream reported by the demuxer */ | 164 | unsigned int m_Width; /*!< @brief width of the stream reported by the demuxer */ |
| 140 | float m_Aspect; /*!< @brief display aspect of stream */ | 165 | float m_Aspect; /*!< @brief display aspect of stream */ |
| 141 | 166 | ||
| 167 | |||
| 142 | unsigned int m_Channels; /*!< @brief (required) amount of channels */ | 168 | unsigned int m_Channels; /*!< @brief (required) amount of channels */ |
| 143 | unsigned int m_SampleRate; /*!< @brief (required) sample rate */ | 169 | unsigned int m_SampleRate; /*!< @brief (required) sample rate */ |
| 144 | unsigned int m_BitRate; /*!< @brief (required) bit rate */ | 170 | unsigned int m_BitRate; /*!< @brief (required) bit rate */ |
| @@ -146,6 +172,11 @@ extern "C" { | |||
| 146 | unsigned int m_BlockAlign; | 172 | unsigned int m_BlockAlign; |
| 147 | 173 | ||
| 148 | CRYPTO_INFO m_cryptoInfo; | 174 | CRYPTO_INFO m_cryptoInfo; |
| 175 | |||
| 176 | // new in API version 2.0.8 | ||
| 177 | unsigned int m_codecFourCC; /*!< @brief Codec If available, the fourcc code codec */ | ||
| 178 | INPUTSTREAM_COLORSPACE m_colorSpace; /*!< @brief definition of colorspace */ | ||
| 179 | INPUTSTREAM_COLORRANGE m_colorRange; /*!< @brief color range if available */ | ||
| 149 | }; | 180 | }; |
| 150 | 181 | ||
| 151 | struct INPUTSTREAM_TIMES | 182 | 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 | |||
| 531 | virtual void FreeEvents(unsigned int event_count, PERIPHERAL_EVENT* events) { } | 531 | virtual void FreeEvents(unsigned int event_count, PERIPHERAL_EVENT* events) { } |
| 532 | 532 | ||
| 533 | /*! | 533 | /*! |
| 534 | * @brief Send an input event to the specified peripheral | 534 | * @brief Send an input event to the peripheral |
| 535 | * @param peripheralIndex The index of the device receiving the input event | ||
| 536 | * @param event The input event | 535 | * @param event The input event |
| 537 | * @return true if the event was handled, false otherwise | 536 | * @return true if the event was handled, false otherwise |
| 538 | */ | 537 | */ |
| @@ -677,9 +676,9 @@ namespace addon | |||
| 677 | * @param[optional] deviceName The name of the device to refresh, or empty/null for all devices | 676 | * @param[optional] deviceName The name of the device to refresh, or empty/null for all devices |
| 678 | * @param[optional] controllerId The controller ID to refresh, or empty/null for all controllers | 677 | * @param[optional] controllerId The controller ID to refresh, or empty/null for all controllers |
| 679 | */ | 678 | */ |
| 680 | void RefreshButtonMaps(const std::string& strDeviceName = "", const std::string& strControllerId = "") | 679 | void RefreshButtonMaps(const std::string& deviceName = "", const std::string& controllerId = "") |
| 681 | { | 680 | { |
| 682 | return m_instanceData->toKodi.refresh_button_maps(m_instanceData->toKodi.kodiInstance, strDeviceName.c_str(), strControllerId.c_str()); | 681 | return m_instanceData->toKodi.refresh_button_maps(m_instanceData->toKodi.kodiInstance, deviceName.c_str(), controllerId.c_str()); |
| 683 | } | 682 | } |
| 684 | 683 | ||
| 685 | /*! | 684 | /*! |
| @@ -690,9 +689,9 @@ namespace addon | |||
| 690 | * | 689 | * |
| 691 | * @return The number of features matching the request parameters | 690 | * @return The number of features matching the request parameters |
| 692 | */ | 691 | */ |
| 693 | unsigned int FeatureCount(const std::string& strControllerId, JOYSTICK_FEATURE_TYPE type = JOYSTICK_FEATURE_TYPE_UNKNOWN) | 692 | unsigned int FeatureCount(const std::string& controllerId, JOYSTICK_FEATURE_TYPE type = JOYSTICK_FEATURE_TYPE_UNKNOWN) |
| 694 | { | 693 | { |
| 695 | return m_instanceData->toKodi.feature_count(m_instanceData->toKodi.kodiInstance, strControllerId.c_str(), type); | 694 | return m_instanceData->toKodi.feature_count(m_instanceData->toKodi.kodiInstance, controllerId.c_str(), type); |
| 696 | } | 695 | } |
| 697 | 696 | ||
| 698 | /*! | 697 | /*! |
| @@ -704,9 +703,9 @@ namespace addon | |||
| 704 | * @return The type of the specified feature, or JOYSTICK_FEATURE_TYPE_UNKNOWN | 703 | * @return The type of the specified feature, or JOYSTICK_FEATURE_TYPE_UNKNOWN |
| 705 | * if unknown | 704 | * if unknown |
| 706 | */ | 705 | */ |
| 707 | JOYSTICK_FEATURE_TYPE FeatureType(const std::string& strControllerId, const std::string &featureName) | 706 | JOYSTICK_FEATURE_TYPE FeatureType(const std::string& controllerId, const std::string &featureName) |
| 708 | { | 707 | { |
| 709 | return m_instanceData->toKodi.feature_type(m_instanceData->toKodi.kodiInstance, strControllerId.c_str(), featureName.c_str()); | 708 | return m_instanceData->toKodi.feature_type(m_instanceData->toKodi.kodiInstance, controllerId.c_str(), featureName.c_str()); |
| 710 | } | 709 | } |
| 711 | 710 | ||
| 712 | private: | 711 | private: |
