更新 HEICFile 类以支持新特性,添加图像尺寸获取功能,重构解析逻辑,增强代码可读性和健壮性

This commit is contained in:
Nymiro
2025-10-20 12:47:47 +13:00
parent 812318c50c
commit 7715acd18b
10 changed files with 204 additions and 69 deletions
+5 -1
View File
@@ -12,4 +12,8 @@ class Box:
self.children: List['Box'] = [] # Initially empty
def __repr__(self) -> str:
return f"<Box '{self.type}' size={self.size} offset={self.offset}>"
return f"<Box '{self.type}' size={self.size} offset={self.offset}>"
def _post_parse_initialization(self):
"""Called by the parser after children have been assigned."""
pass