Writing grayscale palette for 8-bit uncompressed video stream.