Craig,
My bad...I didn't understand your comments regarding your imx485 OSC camera. Let me try again. I would suggest that you don't bother with 2:2 binning via the driver and, instead, use 2x2 color binning in CaLIGHT. It separates the RGGB color channels into four separate images and then 2:2 bins each image. I then recombines the four separate images into a RGGB color image. The downside is that you much acquire your images at full resolution. The very much upside of CaLIGHT 2:2 color RAW (i.e.RGGB before debayering is applied)binning is a 50% reduction in color noise. Binning the image after debayering (i.e. RGB) yields roughly 50% for the green channel but only 20 to 30% for the red and blue channels. So you end up with a color image that has the maximum possible noise reduction.
Regardless of which way you 2:2 bin there is a 16 bit limit that you can't get around. I don't remember what the driver does but I think it adds the four pixel values together and the sum is clamped at 65,535. The imx485 has a 12 bit sensor so this can be done without clamping...but the resulting image is greyscale. In CaLIGHTs, the pixel values have already been right shifted so they typically range from 0 to 65535. In order to avoid clamping at 16 bit, CaLIGHTs divides the summed value by 4. The net result is a smaller color image with very good noise reduction.
I wrote my own focusing routine for my QHY camera which uses the camera's 8 bit video mode. If I 2:2 bin I get a nice greyscale image with small stars. I wanted to focus using the RGGB raw pixels at full resolution but I found that the bayer matrix on the imaging chip results in a checkboard pattern when you zoom in. My solution was to convert the RGGB values into pseudo luminance values using the whitebalance parameters for the camera. I multiplied the Red pixel values by 2.0 by changing the red parameter from 16 to 32. I multiplied the blue pixel values by 1.5 by changing the blue parameter from 16 to 24. The end result was that the checkboard pattern was highly attenuated and the stars were twice as large. I think this improves my focusing.
Peter