Open djnotes opened 6 years ago
I noticed there are methods built-in like setGamma, setHue, setContast, but they don't work at all.
i get the same error.i find this work for me.can not be a anonymous Inner Class
private final IFrameCallback mIFrameCallback = new IFrameCallback() {
@Override
public void onFrame(final ByteBuffer frameBuffer) {
Log.e(TAG,"onFrame ");
}
};
camera.setFrameCallback(mIFrameCallback,UVCCamera.PIXEL_FORMAT_NV21);
I am trying to set a preview frame callback so that I can apply effect on frames before showing them to the user. I am using
mUVCCamera.setFrameCallback(mIFrameCallback, UVCCamera.PIXEL_FORMAT_NV21);
, but according to logcat, this callback never gets called. How can I fix this? The complete activity code follows: