Skip to content

iOS 27 camera: the still image output takes 420f (N104 asks for a 10-bit still pool) - #371

Draft
claudiusthebot wants to merge 2 commits into
mainfrom
agent/scion-camera-app4/preview
Draft

claudiusthebot wants to merge 2 commits into
mainfrom
agent/scion-camera-app4/preview

Conversation

@claudiusthebot

Copy link
Copy Markdown
Collaborator

The camera's graph on iOS 27 could not start because the still image output had no pixel format.

N104's AVCaptureSession.plist marks the photo formats of both cameras (and 1080p, 720p, 1920 x 1440) UsesPacked10BitFirmwareStillImageOutputPixelFormat. With it, iOS 27.0.1's source node (-[BWMultiStreamCameraSourceNode _supportedPixelFormatsForOutputID:], 24A446's shared cache, logic only) keeps for the still image output only the stream's formats that are full range and 10-bit. The S9's streams offered 420f, 420v and BGRA, so none was left.

  • camera_refuse.c: -[FigCaptureSourceVideoFormat usesPacked10BitFirmwareStillImageOutputPixelFormat] answers NO, so the still image output takes 420f like every other output. cam_still10=1 keeps the plist's answer.
  • camera_formats.c: the StillImage output also offers xf20. camera_tenbit.c draws into such a pool: the picture is made in 8 bits into a scratch 420f buffer, then widened.
  • camera_device.c: deliver() takes xf20 under HAKIOS_CAMERA_N104 only. The 16.5 path is unchanged in behaviour (compiled without N104 to check). The arch-size allowance goes from 1989 to 2006 for this.
  • CAMERA.md: the fifth cause.

Built as cam-n104fmt-17.dylib (sha256 de5dc9d42595191dfef19f145d9a611c7bf3e317bc63a7effed9d13c85d623ba) on the build Mac. It is with the phone tester. Not run on a phone yet. This PR stays a draft until the phone test comes back.

The talon npm run preflight lane does not apply: this is scion-kernel, not a talon checkout. tools/arch-check.py passes locally.

🤖 Generated with Claude Code

… is drawn into xf20

N104's photo formats say UsesPacked10BitFirmwareStillImageOutputPixelFormat. With it, iOS 27.0.1's source node keeps for
its still image output only the stream's pixel formats that are 10-bit and full range
(-[BWMultiStreamCameraSourceNode _supportedPixelFormatsForOutputID:], 24A446's shared cache, its logic only); the S9's
streams offered 420f, 420v and BGRA, so the still image output had no pixel format.

camera_refuse.c answers NO to -[FigCaptureSourceVideoFormat usesPacked10BitFirmwareStillImageOutputPixelFormat] (the still
image output then takes 420f); cam_still10=1 keeps the plist's answer. camera_formats.c also offers 'xf20' on the
StillImage output, and camera_tenbit.c draws a picture into such a pool (made in 8 bits, widened). iOS 16.5's device is
unchanged in behaviour. Not run on a phone.
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