The issue was related to the endianness of my devices. Specifically, there was a difference in endianness between the host (written in Java) and the device (my GPU using OpenCL). The data transmitted through the camera buffer had its bytes reversed. Once I identified the problem and corrected the byte order, everything worked smoothly.