Skip to content

Add support for capturing Bayer RAW - #3

Merged
LiYanan2004 merged 2 commits into
mainfrom
capture-bayer-raw
Dec 31, 2025
Merged

LiYanan2004 merged 2 commits into
mainfrom
capture-bayer-raw

Conversation

@LiYanan2004

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings December 31, 2025 09:35
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for capturing Bayer RAW photos to the existing photo capture documentation. The documentation has been reorganized to consolidate RAW capture information (both Apple ProRAW and Bayer RAW) into a unified section with clearer guidance on availability and usage.

Key Changes:

  • Added a new "RAW Photo" section explaining RAW capture configuration with availability details for Apple ProRAW and Bayer RAW
  • Restructured documentation to consolidate previously separate Apple ProRAW section into the general RAW capture section
  • Updated guidance on saving photos with clarifications for proxy photo handling and 24MP capture

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

> tip:
> You can use the convenience method ``PhotoCaptureConfiguration/configuredFor24MPPhotoCapture()`` to setup the configuration

##### RAW Photo

Copilot AI Dec 31, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the trailing space after "RAW Photo". There is unnecessary whitespace at the end of this heading.

Suggested change
##### RAW Photo
##### RAW Photo

Copilot uses AI. Check for mistakes.
Comment on lines +62 to +67
```swift
let profile = CameraCaptureProfile(sessionPreset: .photo) {
PhotoCaptureService(options: .appleProRAW)
}
let configuration = PhotoCaptureConfiguration(dataFormat: .raw)
```

Copilot AI Dec 31, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code example shows using .appleProRAW option but sets the dataFormat to .raw, which would capture Bayer RAW instead of Apple ProRAW. This is inconsistent with the preceding text that says "If you want Apple ProRAW, also opt-in PhotoCaptureOptions/appleProRAW on the output." Either the code should use a data format that captures Apple ProRAW (the DataFormat enum doesn't seem to have an appleProRAW case based on the code, so this would just be .raw with the option enabled), or the example should be clarified to show Bayer RAW capture without the appleProRAW option.

Copilot uses AI. Check for mistakes.
You should use ``CameraShutterButton`` in the first place.

If you want to use your custom controls, call ``Camera/takePhoto(configuration:dataRepresentationCustomizer:)`` to trigger a capture and receive a ``CapturedPhoto`` value:
You can also capture a photo programmatically via ``Camera/takePhoto(configuration:dataRepresentationCustomizer:)`` and receive a ``CapturedPhoto`` value:

Copilot AI Dec 31, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sentence structure is awkward. Consider rephrasing to: "You can also capture a photo programmatically by calling Camera/takePhoto(configuration:dataRepresentationCustomizer:) to receive a CapturedPhoto value:"

Suggested change
You can also capture a photo programmatically via ``Camera/takePhoto(configuration:dataRepresentationCustomizer:)`` and receive a ``CapturedPhoto`` value:
You can also capture a photo programmatically by calling ``Camera/takePhoto(configuration:dataRepresentationCustomizer:)`` to receive a ``CapturedPhoto`` value:

Copilot uses AI. Check for mistakes.
@LiYanan2004
LiYanan2004 merged commit 2144f96 into main Dec 31, 2025
2 checks passed
@LiYanan2004
LiYanan2004 deleted the capture-bayer-raw branch December 31, 2025 09:53
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.

2 participants