Screenshot APIs only support 8-bit color

Originator:ricciadams
Number:rdar://26885406 Date Originated:
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
System Information states that my iMac's display is using a Pixel Depth of 30-bit color:

  Pixel Depth:	30-Bit Color (ARGB2101010)

In addition, several applications have windows which are reporting 16bpc (although some application windows are 8bpc).

When the main display is operating in non-8bpc mode, I would expect the screencapture command-line tool, CGWindowListCreateImage, and CGDisplayCreateImage to all return CGImage objects with >8 bits per component.  Currently, the returned images are always 8bpc.

This makes it impossible to create accurate color meter tools or screen capture tools.

Steps to Reproduce:
1. Take a screenshot, use CGWindowListCreateImage, or use CGDisplayCreateImage on a 10-bit display in the P3 color space.
2. The resulting image file or CGImage correctly has the P3 color space assigned, but has a depth of 8-bit.

Expected Results:


Actual Results:


Version:
10.12 Beta (16A201w)

Notes:


Configuration:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!