Skip to content

Decouple Motion Photo extractor from MotionPhotoChecker and track exact video/image offsets - #7

Merged
DichenZhang1 merged 1 commit into
Developmentfrom
fix/decouple-extractor-from-checker
Oct 6, 2026
Merged

DichenZhang1 merged 1 commit into
Developmentfrom
fix/decouple-extractor-from-checker

Conversation

@DichenZhang1

@DichenZhang1 DichenZhang1 commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Decouples ExtractMotionPhoto from MotionPhotoChecker so that extracting primary image, video track, and metadata does not require passing strict 1P checker validations first.

Changes

  1. motion_photo_checker_extractor_common.{h,cc}: Split ParseXmpMetadata() out of ParseAndCheckXmpMetadata() so ExtractMotionPhoto can parse XMP metadata directly without running MotionPhotoChecker rules.
  2. motion_photo_extractor/function.cc:
    • Remove MotionPhotoChecker dependency and calls (ParseAndCheckXmpMetadata, ReadDecodeAndCheckVideoMetadata) from ExtractMotionPhoto.
    • Guard the 3P MetadataEngine extraction fast-path with engine.IsMotionPhoto(collection).
  3. motion_photo_extractor_test.cc: Add unit test (ExtractionBypassesCheckerValidation) verifying that MotionPhotoExtractorFunction extracts primary image and video cleanly without running MotionPhotoChecker.

@DichenZhang1
DichenZhang1 force-pushed the fix/decouple-extractor-from-checker branch from f57e266 to 1da3d67 Compare October 6, 2026 18:52
@DichenZhang1
DichenZhang1 merged commit 562d71f into Development Oct 6, 2026
5 checks passed
@DichenZhang1
DichenZhang1 deleted the fix/decouple-extractor-from-checker branch October 13, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant