SurfaceView get pictures methods I want to get pictures from the camera timer with SurfaceView way to do, I found a bit, the code is very fragmented
unavailable.
Do you have a similar code?
SurfaceView image can regularly get the code?
Thank
------ Solution ----------------------------------- ---------
final void setPreviewCallback (Camera.PreviewCallback cb)
Installs a callback to be invoked for every preview frame in addition to displaying them on the screen.
abstract void onPreviewFrame (byte [] data, Camera camera)
Called as preview frames are displayed.
here to return to the preview frame rate quickly, data as a YUV data stream needs to be converted to RGB add a good timing, you can get the effect you want.
------ For reference only ---------------------------------- -----
Thank you, always respond the fastest and most professional.
没有评论:
发表评论