添加 ItemInfoBox 和 PrimaryItemBox 类,更新 HEICFile 类以支持提取主图像 ID 和列出可用项

This commit is contained in:
Nymiro
2025-10-20 12:25:22 +13:00
parent b4d35521cf
commit 812318c50c
8 changed files with 89 additions and 22 deletions
+3 -1
View File
@@ -3,11 +3,13 @@ from typing import List, BinaryIO
from io import BytesIO
from base import Box # Import the base Box class
from heic_types import ItemLocationBox
from heic_types import ItemLocationBox, PrimaryItemBox, ItemInfoBox
# The factory map remains here
BOX_TYPE_MAP = {
'iloc': ItemLocationBox,
'pitm': PrimaryItemBox,
'iinf': ItemInfoBox,
}
CONTAINER_BOXES = {'meta', 'moov', 'trak', 'iprp', 'ipco', 'dinf', 'fiinf', 'ipro'}