From c03f36588562de31590808ca0d1f6d540ec9d6ba Mon Sep 17 00:00:00 2001 From: PJ Date: Sun, 24 Mar 2024 05:52:15 +0100 Subject: [PATCH] add note pointing to Apple Q&A --- apps/desktop/src-tauri/src/capture/src/common/quartz.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/desktop/src-tauri/src/capture/src/common/quartz.rs b/apps/desktop/src-tauri/src/capture/src/common/quartz.rs index fc1209d4..ccb40da2 100644 --- a/apps/desktop/src-tauri/src/capture/src/common/quartz.rs +++ b/apps/desktop/src-tauri/src/capture/src/common/quartz.rs @@ -59,6 +59,8 @@ impl Frame <'_> { // aligned to squeeze the best performance out of the underlying hardware; in other words, // each row/scanline has to be cleanly divisible by a hardware-specific byte length so that // the buffer can be read in chunks without running into overlapping rows in a single chunk. + // This behaviour is only referred to fairly obliquely in documentation - for instance on + // [this page](https://developer.apple.com/library/archive/qa/qa1829/_index.html). // // This means that certain Mac configurations can end up with pixel buffers that contain // more bytes per row than would be expected from just the row width and the image format.