blob: fc21d08febc158a974335a4c6c940798ccfe0972 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
diff --git a/libheif/heif_cxx.h b/libheif/heif_cxx.h
index e05a730..c19199f 100644
--- a/libheif/heif_cxx.h
+++ b/libheif/heif_cxx.h
@@ -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));
@@ -910,13 +910,13 @@ 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);
@@ -924,7 +924,7 @@ namespace heif {
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;
|