RGB color space
Initially, images have to be transformed from the RGB color space to another color space, leading to three "components" that are handled separately. PGF uses a fully reversible modified YUV color transform. The transformation matrices are: