Commit aa6a2a8a for libheif
commit aa6a2a8a4f790f0e6a0a800dd7616660b80e77d0
Author: Dirk Farin <dirk.farin@gmail.com>
Date: Fri May 15 01:21:01 2026 +0200
Correct get_used_component_ids() documentation to match implementation
diff --git a/libheif/image/pixelimage.h b/libheif/image/pixelimage.h
index 3b93ae65..8ffa3bfd 100644
--- a/libheif/image/pixelimage.h
+++ b/libheif/image/pixelimage.h
@@ -225,7 +225,10 @@ public:
//const std::vector<uint16_t>& get_cmpd_component_types() { return m_cmpd_component_types; }
- // Returns the sorted list of component_indices of all planes that have pixel data.
+ // Returns the component ids of all components, in component-description
+ // order. This includes reference components that have no pixel plane
+ // (has_data_plane == false); the result size always equals
+ // get_number_of_used_components().
std::vector<uint32_t> get_used_component_ids() const;
std::vector<uint32_t> get_used_planar_component_ids() const;