Commit 7a0faad6 for libheif
commit 7a0faad614d5f5e207e3f2f237612729869647c8
Author: Dirk Farin <dirk.farin@gmail.com>
Date: Sat Feb 28 12:58:53 2026 +0100
improve Box_prfr::dump (#1707)
diff --git a/libheif/omaf_boxes.cc b/libheif/omaf_boxes.cc
index c3b6abaf..4b45630f 100644
--- a/libheif/omaf_boxes.cc
+++ b/libheif/omaf_boxes.cc
@@ -53,7 +53,18 @@ std::string Box_prfr::dump(Indent& indent) const
{
std::ostringstream sstr;
sstr << Box::dump(indent);
- sstr << indent << "projection_type: " << m_projection << "\n";
+ sstr << indent << "projection_type: ";
+ switch (m_projection) {
+ case heif_omaf_image_projection_equirectangular:
+ sstr << "equirectangular\n";
+ break;
+ case heif_omaf_image_projection_cube_map:
+ sstr << "cube-map\n";
+ break;
+ default:
+ sstr << "unknown (" << m_projection << ")\n";
+ break;
+ }
return sstr.str();
}