} else if (out instanceof DataBufferInt) {
int[] a = ((DataBufferInt)out).getData();
if (depth() == IPL_DEPTH_8U || depth() == IPL_DEPTH_8S) {
in = in.order(ByteOrder.LITTLE_ENDIAN);
}
flipCopyWithGamma(in.asIntBuffer(), widthStep()/4, IntBuffer.wrap(a, start, a.length - start), step, gamma, flip);
} else if (out instanceof DataBufferShort) {
short[] a = ((DataBufferShort)out).getData();
flipCopyWithGamma(in.asShortBuffer(), widthStep()/2, ShortBuffer.wrap(a, start, a.length - start), step, true, gamma, flip);
} else if (out instanceof DataBufferUShort) {
short[] a = ((DataBufferUShort)out).getData();