Which video depths are actually used by macOS?

3 views
Skip to first unread message

Michael Crawford

unread,
Dec 8, 2017, 3:22:05 PM12/8/17
to darwin-...@lists.apple.com
The IOFramebuffer driver - a component of the IOGraphicsFamily -
supports 8, 16 and 32 bit.

However there is no UI for setting the bit depth in the Display Prefs.
That leads me to believe that only 32 bit is ever used.

Is that the case?

I Am Eternally In Your Debt,

Mike Crawford
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list (Darwin-...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-drivers/darwin-drivers-garchive-96018%40googlegroups.com

This email sent to darwin-drivers...@googlegroups.com

Phil Dennis-Jordan

unread,
Dec 12, 2017, 7:38:52 AM12/12/17
to Michael Crawford, Darwin Drivers
Hi Mike,

On Fri, Dec 8, 2017 at 9:21 PM, Michael Crawford <mi...@soggywizards.com> wrote:
> The IOFramebuffer driver - a component of the IOGraphicsFamily -
> supports 8, 16 and 32 bit.
>
> However there is no UI for setting the bit depth in the Display Prefs.
> That leads me to believe that only 32 bit is ever used.
>
> Is that the case?

If given it that choice, I have indeed never seen WindowServer pick
anything other than 32-bit mode since Mac OS X 10.6 or so. There's
little point in offering other depths, it just adds unnecessary
complexity to your code. Some iMacs use a higher bit depth than that;
the headers also declare some YUV pixel formats. I've not experimented
with unaccelerated IOFramebuffers that support any of these, but I
suspect you'll be safest if you do any conversions you might need
after grabbing the 32-bit RGB image.

Hope that helps,

Phil
Reply all
Reply to author
Forward
0 new messages