These transformations are all applied in YCbCr (a.k.a. YUV) color space unless stated otherwise. That means they all happen after the initial de-bayering but before re-sampling for the actual output format (unless noted otherwise):