Change-Id: I48261134861299c9fd6fbe7dd4f729dcbf400b15
*
* @warning: you have responsibility to release the @p data memory if the @p copy is true
*/
- Result load(const char* data, uint32_t size, bool copy) noexcept;
- Result load(const char* data, uint32_t size) noexcept;
+ Result load(const char* data, uint32_t size, bool copy = false) noexcept;
/**
* @brief Resize the picture content with the given width and height.
}
-Result Picture::load(const char* data, uint32_t size) noexcept
-{
- return pImpl->load(data, size, false);
-}
-
-
Result Picture::load(uint32_t* data, uint32_t w, uint32_t h, bool copy) noexcept
{
if (!data || w <= 0 || h <= 0) return Result::InvalidArguments;