Yes, it's a similar project which I could post here.
The device is an 8" tablet.
The freezing occurs either after taking the 1st picture, the 2nd or whenever. I haven't managed to take more than three pictures.
Sub Camera1_Ready (Success As Boolean)
If Success Then
camEx.SetJpegQuality(90)
camEx.SetFocusMode("fixed")
camEx.CommitParameters
camEx.StartPreview
Log(camEx.GetPreviewSize)
Else
ToastMessageShow("Cannot open camera.", True)
End If
End Sub
but still freezing...
And camera is unusable until i reboot.. which poses another question: How could I somehow "restart something" so that I don't restart the whole device?
E/V4LCameraAdapter(2321): hardware/amlogic/camera/V4LCameraAdapter/V4LCameraAdapter.cpp:834 GetFrame - GetFrame: No buff for Dequeue
E/V4LCameraAdapter(2321): hardware/amlogic/camera/V4LCameraAdapter/V4LCameraAdapter.cpp:993 previewThread - Preview thread get frame fail, need sleep:33333
this is the solution ( the callback must be removed):
B4X:
camera.setPreviewCallback(new PreviewCallback() {
public void onPreviewFrame(byte[] data, Camera arg1) {
//invalidate surfaceview
}
});
(article from Stackoverflow, but I don't know how to implement it..)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.