modules: implement convert_buffer() in the gamma display filter