demosaic: make sure input and output buffers are same size when doing 1:1 demosaic.