Converts a 16-bit buffer to an 8-bit buffer in place. On error, returns null and frees the original buffer.
See Implementation
Converts a 16-bit buffer to an 8-bit buffer in place. On error, returns null and frees the original buffer.