The current implementation works purely on RGBA buffers, and also creates an extra copy of each 4x4 chunk as it is being processed. This is not very ideal and it would be nice to refactor things to allow passing in buffers that don't have extra channels as padding, especially now that one- and two-channel formats are supported.
The current implementation works purely on RGBA buffers, and also creates an extra copy of each 4x4 chunk as it is being processed. This is not very ideal and it would be nice to refactor things to allow passing in buffers that don't have extra channels as padding, especially now that one- and two-channel formats are supported.