添加 ItemInfoBox 和 PrimaryItemBox 类,更新 HEICFile 类以支持提取主图像 ID 和列出可用项
This commit is contained in:
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user