2017-12-31 10:48 GMT+01:00 Paul B Mahol <onemda at gmail.com>: > static void mangle_rgb_planes(uint8_t *dst[4], ptrdiff_t dst_stride, Why don't you add a new function mangle_gbr_planes() and keep rgb encoding? The function is not very large. Carl Eugen