Camera freezes on first frame with " Invalid number of channels in input image" in logcat

were you the one with the yuv420p data? what I saw ought to be yuv422p

fascinating: C++ by-reference argument and C linkage - Stack Overflow