Support embedded texture data for glTF + alpha
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / builder / base64-encoding.h
index c436c54..c7067ed 100644 (file)
@@ -22,6 +22,9 @@
 #include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/object/property.h>
 
+// INTERNAL INCLUDES
+#include <dali-toolkit/public-api/dali-toolkit-common.h>
+
 namespace Dali
 {
 namespace Toolkit
@@ -37,7 +40,20 @@ namespace Toolkit
  * @param[out] outputData The output data block
  * @return True if a data block was decoded successfully.
  */
-bool DecodeBase64PropertyData(const Property::Value& value, std::vector<uint32_t>& outputData);
+DALI_TOOLKIT_API bool DecodeBase64PropertyData(const Property::Value& value, std::vector<uint32_t>& outputData);
+
+/**
+ * @brief Parses a Property::STRING or Property::ARRAY of STRINGS to
+ * retrieve an array of uint8_t data.
+ *
+ * Data can be encoded using the base64 encoding scheme to allow it to be used
+ * in JSON (The property system maps to JSON types).
+ *
+ * @param[in] value The property value to decode
+ * @param[out] outputData The output data block
+ * @return True if a data block was decoded successfully.
+ */
+DALI_TOOLKIT_API bool DecodeBase64PropertyData(const Property::Value& value, std::vector<uint8_t>& outputData);
 
 /**
  * @brief Convert a block of uint32_t data into a Property::STRING or ARRAY of STRINGs
@@ -46,7 +62,7 @@ bool DecodeBase64PropertyData(const Property::Value& value, std::vector<uint32_t
  * @param[out] value The value to write data into (to avoid copying).
  * @param[in] inputData The input
  */
-void EncodeBase64PropertyData(Property::Value& value, const std::vector<uint32_t>& inputData);
+DALI_TOOLKIT_API void EncodeBase64PropertyData(Property::Value& value, const std::vector<uint32_t>& inputData);
 
 } // namespace Toolkit