previewcallback

How to make threads work in Series

不问归期 提交于 2019-12-24 17:27:28
问题 I have created a CameraApp . And getting byte[] cameraPreviewCallback in onPreviewFrame(byte byteArray[] , Camera camera) I am converting these byteArray to rgb and doing a lot of stuff too. So It is working slowly. So I think I should get benefit from java.util.concurrent package. But didn't find an easy way to handle what I want. I want multiple threads to do my job serially but each time one can set bitmap to surfaceView . And also have to check that: No Old byte of Array shouldn't be draw

How can I add thermal effect to YUV image

为君一笑 提交于 2019-11-28 01:44:13
After googling a lot. I find a way to change Preview of a single frame. Correct me if i am wrong. camera.setPreviewCallback(new PreviewCallback() callBack let you get the frame of a Camera in byte . Now you can save it or modify it. First of all i only want to add thermal or night effect to these byte. How can i add these color(Effects) to YUV Image or byte[] data. camera.setPreviewCallback(new PreviewCallback() { @Override public void onPreviewFrame(byte[] data, Camera camera) { // TODO Auto-generated method stub Camera.Parameters parameters = camera.getParameters(); Size size = parameters

How can I add thermal effect to YUV image

柔情痞子 提交于 2019-11-26 23:33:45
问题 After googling a lot. I find a way to change Preview of a single frame. Correct me if i am wrong. camera.setPreviewCallback(new PreviewCallback() callBack let you get the frame of a Camera in byte . Now you can save it or modify it. First of all i only want to add thermal or night effect to these byte. How can i add these color(Effects) to YUV Image or byte[] data. camera.setPreviewCallback(new PreviewCallback() { @Override public void onPreviewFrame(byte[] data, Camera camera) { // TODO Auto