Skip to content

Commit

Permalink
Merge pull request strukturag#338 from patlefort/master
Browse files Browse the repository at this point in the history
Add missing inline.
  • Loading branch information
farindk authored Sep 25, 2020
2 parents 612f8d7 + 52e1c8b commit c56eb9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libheif/heif_cxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ namespace heif {
}

// throws Error
ColorProfile_nclx Image::get_nclx_color_profile() const
inline ColorProfile_nclx Image::get_nclx_color_profile() const
{
heif_color_profile_nclx* nclx = nullptr;
Error err = Error(heif_image_get_nclx_color_profile(m_image.get(), &nclx));
Expand All @@ -910,21 +910,21 @@ namespace heif {
}


heif_color_profile_type Image::get_color_profile_type() const
inline heif_color_profile_type Image::get_color_profile_type() const
{
return heif_image_get_color_profile_type(m_image.get());
}

// throws Error
std::vector<uint8_t> Image::get_raw_color_profile() const
inline std::vector<uint8_t> Image::get_raw_color_profile() const
{
auto size = heif_image_get_raw_color_profile_size(m_image.get());
std::vector<uint8_t> profile(size);
heif_image_get_raw_color_profile(m_image.get(), profile.data());
return profile;
}

void Image::set_raw_color_profile(heif_color_profile_type type,
inline void Image::set_raw_color_profile(heif_color_profile_type type,
const std::vector<uint8_t>& data)
{
const char* profile_type = nullptr;
Expand Down

0 comments on commit c56eb9a

Please sign in to comment.