Skip to content

Add optional Nintendo 3DS MPO metadata parsing#12

Draft
Copilot wants to merge 5 commits intomasterfrom
copilot/parse-nintendo-mpo-headers
Draft

Add optional Nintendo 3DS MPO metadata parsing#12
Copilot wants to merge 5 commits intomasterfrom
copilot/parse-nintendo-mpo-headers

Conversation

Copy link

Copilot AI commented Nov 12, 2025

Nintendo 3DS cameras embed proprietary stereoscopic metadata in MPO files via APP2/NINT segments. This adds optional parsing to extract that data.

Changes

  • NintendoMetadata struct: Stores raw bytes from APP2/NINT segments
  • MPO.Nintendo field: Optional pointer field, nil when absent
  • parseNintendoMetadata(): Scans for FF E2 markers with "NINT" identifier
  • DecodeAll() enhancement: Buffers raw data to parse Nintendo segments after JPEG decode
  • HasNintendoMetadata() helper: Convenience method for presence check

Usage

mpo, _ := mpo.DecodeAll(reader)

if mpo.HasNintendoMetadata() {
    // Access raw Nintendo stereoscopic metadata
    data := mpo.Nintendo.Raw
}

Fully backward compatible—existing code unchanged. Reference: https://3dbrew.org/wiki/MPO

Original prompt

This section details on the original issue you should resolve

<issue_title>Potentially Optionally Parse Nintendo Specific MPO Headers</issue_title>
<issue_description>https://3dbrew.org/wiki/MPO has details on the implementation, it'll probably be worth poking eventually.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits November 12, 2025 18:50
Co-authored-by: donatj <133747+donatj@users.noreply.github.com>
Co-authored-by: donatj <133747+donatj@users.noreply.github.com>
Co-authored-by: donatj <133747+donatj@users.noreply.github.com>
Co-authored-by: donatj <133747+donatj@users.noreply.github.com>
Copilot AI changed the title [WIP] Add optional parsing for Nintendo MPO headers Add optional Nintendo 3DS MPO metadata parsing Nov 12, 2025
Copilot AI requested a review from donatj November 12, 2025 19:04
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.

Potentially Optionally Parse Nintendo Specific MPO Headers

2 participants