by creating temp buffers matching the format needed by the GimpLayerMode's process_pixels() function.