Hi,
I have an B4A app that uses this routine to get the preview data.
Because I am only interested in the Y data from the YUV format
So with this code I get the Y data from the screensize used.
This works great and I spend a lot of time to get this and my app right.
Now I want to step to step convert this to IOS but this
important subroutine Camera1_Preview seems very different for me in IOS
I have some questions:
1.is it possible to use YUV as in B4a or possible as shown in this link:
http://stackoverflow.com/questions/...deo-from-the-camera-display-it-and-process-it
2.Is the bitmap not compressed if ? so how do I get this in an array.?
What is the format of the bitmap .
I have an B4A app that uses this routine to get the preview data.
Because I am only interested in the Y data from the YUV format
So with this code I get the Y data from the screensize used.
B4X:
Sub Camera1_Preview (PreviewPic() As Byte)
For i=0 To ((CamEx.PreviewHeight * CamEx.PreviewWidth)-1)
frames_array(i) = Unsigned(PreviewPic(i))
Next
End Sub
This works great and I spend a lot of time to get this and my app right.
Now I want to step to step convert this to IOS but this
important subroutine Camera1_Preview seems very different for me in IOS
B4X:
Private Sub cam_Preview (Image As Bitmap)
Dim out As OutputStream
out.InitializeToBytesArray(0)
Image.WriteToStream(out, 100, "JPEG")
cam.ReleaseFrame(Image) '<--- very important. New frames will not arrive without this call
End Sub
I have some questions:
1.is it possible to use YUV as in B4a or possible as shown in this link:
http://stackoverflow.com/questions/...deo-from-the-camera-display-it-and-process-it
2.Is the bitmap not compressed if ? so how do I get this in an array.?
What is the format of the bitmap .