添加 .DS_Store 文件

This commit is contained in:
Nymiro
2025-10-20 11:44:49 +13:00
commit 23808a3ba6
6 changed files with 106 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
from parser import parse_boxes
def main():
# Test with the Apple HEIC file
print("--- Analyzing Apple HEIC file ---")
try:
with open('apple.heic', 'rb') as f:
top_level_boxes = parse_boxes(f)
for box in top_level_boxes:
print(box)
except FileNotFoundError:
print("Error: apple.heic not found.")
print("\n" + "="*40 + "\n")
# Test with the Samsung HEIC file
print("--- Analyzing Samsung HEIC file ---")
try:
with open('samsung.heic', 'rb') as f:
top_level_boxes = parse_boxes(f)
for box in top_level_boxes:
print(box)
except FileNotFoundError:
print("Error: samsung.heic not found.")
if __name__ == "__main__":
main()